@fox-js/foxui 4.0.1-28 → 4.0.1-29

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.umd.js CHANGED
@@ -1,13 +1,13 @@
1
- (function(C,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("@fox-js/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","@fox-js/icons-vue","@fox-js/i18n"],t):(C=typeof globalThis<"u"?globalThis:C||self,t(C.FoxUI={},C.Vue,C.FoxValidator,C.FoxIconsVue,C.FoxI18n))})(this,function(C,t,Ze,te,se){"use strict";/*!
2
- * @fox-js/foxui-base v4.0.0 Thu Feb 29 2024 00:07:21 GMT+0800 (中国标准时间)
3
- */const Xt=window,ks=typeof window<"u";function bs(){return typeof Xt<"u"?Xt.requestAnimationFrame||Xt.webkitRequestAnimationFrame||function(e){Xt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Sa(e){ks?cancelAnimationFrame(e):clearTimeout(e)}const We=bs();/*!
1
+ (function(w,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("@fox-js/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","@fox-js/icons-vue","@fox-js/i18n"],t):(w=typeof globalThis<"u"?globalThis:w||self,t(w.FoxUI={},w.Vue,w.FoxValidator,w.FoxIconsVue,w.FoxI18n))})(this,function(w,t,Je,te,se){"use strict";/*!
2
+ * @fox-js/foxui-base v4.0.0 Sun Mar 03 2024 23:55:43 GMT+0800 (中国标准时间)
3
+ */const Qt=window,As=typeof window<"u";function Vs(){return typeof Qt<"u"?Qt.requestAnimationFrame||Qt.webkitRequestAnimationFrame||function(e){Qt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Va(e){As?cancelAnimationFrame(e):clearTimeout(e)}const Ye=Vs();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
- */function Qt(e,o="0"){let l=0,n=-1;e[0]=="-"&&(l++,n=1,e=e.substring(1),e.length),o[0]=="-"&&(l++,n=2,o=o.substring(1),o.length),e=we(e),o=we(o),[e,o]=jo(we(e),we(o)),l==1&&(n==1?e=Ho(e):o=Ho(o));let a=Ca(e,o);return l?l==2?"-"+we(a):e.length<a.length?we(a.substring(1)):"-"+we(Ho(a)):we(a)}function Ho(e){let o="",l=e.length,n=e.split(".")[1],a=n?n.length:0;for(let s=0;s<l;s++)e[s]>="0"&&e[s]<="9"?o+=9-parseInt(e[s]):o+=e[s];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return Ca(o,r)}function we(e){let o=e.split(".");for(o[0]||(o[0]="0");o[0][0]=="0"&&o[0].length>1;)o[0]=o[0].substring(1);return o[0]+(o[1]?"."+o[1]:"")}function jo(e,o){let l=e.split("."),n=o.split("."),a=l[0].length,r=n[0].length;return a>r?n[0]=new Array(Math.abs(a-r)+1).join("0")+(n[0]?n[0]:""):l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""),a=l[1]?l[1].length:0,r=n[1]?n[1].length:0,(a||r)&&(a>r?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-r)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),o=n[0]+(n[1]?"."+n[1]:""),[e,o]}function Ca(e,o){[e,o]=jo(e,o);let l="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){l="."+l;continue}let r=parseInt(e[a])+parseInt(o[a])+n;l=r%10+l,n=Math.floor(r/10)}return n?n.toString()+l:l}var be=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(be||{});function Bt(e,o=0,l=be.HALF_EVEN){if(l===be.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),r=a[0],s=a[1];if(o<0){if(o=-o,r.length<=o)return"0";{let c=r.substr(0,r.length-o);return e=c+"."+r.substr(r.length-o)+s,c=Bt(e,0,l),(n?"-":"")+c+new Array(o+1).join("0")}}if(o==0)return r.length,wa(a[1],r,n,l)?(n?"-":"")+Wo(r):(n?"-":"")+r;if(a[1]){if(a[1].length<o)return(n?"-":"")+r+"."+a[1]+new Array(o-a[1].length+1).join("0")}else return(n?"-":"")+r+"."+new Array(o+1).join("0");s=a[1].substring(0,o);let i=a[1].substring(o);return i&&wa(i,s,n,l)&&(s=Wo(s),s.length>o)?(n?"-":"")+Wo(r,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+r+"."+s}function wa(e,o,l,n){if(!e||e===new Array(e.length+1).join("0")||n===be.DOWN||!l&&n===be.FLOOR||l&&n===be.CEILING)return!1;if(n===be.UP||l&&n===be.FLOOR||!l&&n===be.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case be.HALF_DOWN:return!1;case be.HALF_UP:return!0;case be.HALF_EVEN:default:return parseInt(o[o.length-1])%2==1}}function Wo(e,o=0){o||(o=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let a=l;a>=0;a--){let r=parseInt(e[a])+o;r==10?(o=1,r=0):o=0,n+=r}return o&&(n+=o),n.split("").reverse().join("")}function Yo(e,o){e=e.toString(),o=o.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),o[0]=="-"&&(l++,o=o.substr(1)),e=At(e),o=At(o);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),o.indexOf(".")!=-1&&(a=o.length-o.indexOf(".")-1);let r=n+a;if(e=At(e.replace(".","")),o=At(o.replace(".","")),e.length<o.length){let h=e;e=o,o=h}if(o=="0")return"0";let s=o.length,i=0,c=[],u=s-1,m="";for(let h=0;h<s;h++)c[h]=e.length-1;for(let h=0;h<2*e.length;h++){let p=0;for(let k=o.length-1;k>=u&&k>=0;k--)c[k]>-1&&c[k]<e.length&&(p+=parseInt(e[c[k]--])*parseInt(o[k]));p+=i,i=Math.floor(p/10),m=p%10+m,u--}return m=At(Ss(m,r)),l==1&&(m="-"+m),m}function Ss(e,o){return o==0?e:(e=o>=e.length?new Array(o-e.length+1).join("0")+e:e,e.substr(0,e.length-o)+"."+e.substr(e.length-o,o))}function At(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 Xo(e,o,l=8){if(o==0)throw new Error("Cannot divide by 0");if(e=e.toString(),o=o.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),o=o.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;o[0]=="-"&&(o=o.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=o.indexOf(".")>0?o.length-o.indexOf(".")-1:-1;if(o=we(o.replace(".","")),a>=0){let u=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(u==-1)e=we(e+new Array(a+1).join("0"));else if(a>u)e=e.replace(".",""),e=we(e+new Array(a-u+1).join("0"));else if(a<u){e=e.replace(".","");let m=e.length-u+a;e=we(e.substring(0,m)+"."+e.substring(m))}else a==u&&(e=we(e.replace(".","")))}let r=0,s=o.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let u=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(u+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=u,i="0."+new Array(u).join("0")}for(l=l+2;r<=l;){let u=0;for(;parseInt(c)>=parseInt(o);)c=Qt(c,"-"+o),u++;i+=u,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(n==1?"-":"")+we(Bt(i,l-2))}function Qo(e,o){return e=e.toString(),o=o.toString(),o=Go(o),Qt(e,o)}function Go(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Na(e,o){if(o==0)throw new Error("Cannot divide by 0");e=e.toString(),o=o.toString(),Ba(e),Ba(o);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),o[0]=="-"&&(o=o.substr(1));let n=Qo(e,Yo(o,Bt(Xo(e,o),0,be.FLOOR)));return l+n}function Ba(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Aa(e,o){let l=!1;if(e[0]=="-"&&o[0]!="-")return-1;if(e[0]!="-"&&o[0]=="-")return 1;if(e[0]=="-"&&o[0]=="-"&&(e=e.substr(1),o=o.substr(1),l=!0),[e,o]=jo(e,o),e.localeCompare(o)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=o[n])return e[n]>o[n]?l?-1:1:l?1:-1;return 0}class re{value;static RoundingModes=be;static validate(o){if(o){if(o=o.toString(),isNaN(o))throw Error("Parameter is not a number: "+o);o[0]=="+"&&(o=o.substring(1))}else o="0";if(o.startsWith(".")?o="0"+o:o.startsWith("-.")&&(o="-0"+o.substr(1)),/e/i.test(o)){let[l,n]=o.split(/[eE]/);l=we(l);let a="";l[0]=="-"&&(a="-",l=l.substring(1)),l.indexOf(".")>=0?(n=parseInt(n)+l.indexOf("."),l=l.replace(".","")):n=parseInt(n)+l.length,l.length<n?o=a+l+new Array(n-l.length+1).join("0"):l.length>=n&&n>0?o=a+we(l.substring(0,n))+(l.length>n?"."+l.substring(n):""):o=a+"0."+new Array(-n+1).join("0")+l}return o}constructor(o="0"){this.value=re.validate(o)}getValue(){return this.value}static getPrettyValue(o,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");o=re.validate(o);let a=o.charAt(0)=="-";a&&(o=o.substring(1));var r=o.indexOf(".");r=r>0?r:o.length;for(var s="",i=r;i>0;)i<l?(l=i,i=0):i-=l,s=o.substring(i,i+l)+(i<r-l&&i>=0?n:"")+s;return(a?"-":"")+s+o.substring(r)}getPrettyValue(o,l){return re.getPrettyValue(this.value,o,l)}static round(o,l=0,n=be.HALF_EVEN){if(o=re.validate(o),isNaN(l))throw Error("Precision is not a number: "+l);return Bt(o,l,n)}round(o=0,l=be.HALF_EVEN){if(isNaN(o))throw Error("Precision is not a number: "+o);return new re(Bt(this.value,o,l))}static floor(o){return o=re.validate(o),o.indexOf(".")===-1?o:re.round(o,0,be.FLOOR)}floor(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,be.FLOOR)}static ceil(o){return o=re.validate(o),o.indexOf(".")===-1?o:re.round(o,0,be.CEILING)}ceil(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,be.CEILING)}static add(o,l){return o=re.validate(o),l=re.validate(l),Qt(o,l)}add(o){return new re(Qt(this.value,o.getValue()))}static subtract(o,l){return o=re.validate(o),l=re.validate(l),Qo(o,l)}subtract(o){return new re(Qo(this.value,o.getValue()))}static multiply(o,l){return o=re.validate(o),l=re.validate(l),Yo(o,l)}multiply(o){return new re(Yo(this.value,o.getValue()))}static divide(o,l,n){return o=re.validate(o),l=re.validate(l),Xo(o,l,n)}divide(o,l){return new re(Xo(this.value,o.getValue(),l))}static modulus(o,l){return o=re.validate(o),l=re.validate(l),Na(o,l)}modulus(o){return new re(Na(this.value,o.getValue()))}static compareTo(o,l){return o=re.validate(o),l=re.validate(l),Aa(o,l)}compareTo(o){return Aa(this.value,o.getValue())}static negate(o){return o=re.validate(o),Go(o)}negate(){return new re(Go(this.value))}}function Va(e,o){return re.multiply(`${e}`,`${o}`)}function Zo(e,o,l=8){return re.divide(`${e}`,`${o}`,l)}function Jo(e,o){return e=`${e}`,o=`${o}`,re.compareTo(e,o)}function Ta(e){return re.negate(e)}function Gt(e,o=-1,l=!1,n=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,c="",u=r.indexOf(".");u!=-1&&(i=r.substring(0,u),c=r.substring(u+1)),o!=-1&&(o<c.length?c=c.substring(0,o):l&&o>c.length&&(c=c.padEnd(o,"0")));let m;if(n>0){let h="",p=i.split("").reverse();for(let k=0;k<p.length;k++)h+=p[k]+((k+1)%n==0&&k+1!=p.length?a:"");c.length==0?m=`${s}${h.split("").reverse().join("")}`:m=`${s}${h.split("").reverse().join("")}.${c}`}else c.length==0?m=`${s}${i}`:m=`${s}${i}.${c}`;return m}function $a(e){let o=`${e}`,l=o.charAt(0);l=="-"?o=o.substring(1):l="";let n=o.replace(/[^\d\.-]/g,"");return`${l}${n}`}const Ye=typeof window<"u",Xe=We;function Ea(e){return e==null}const Zt=Array.isArray,Cs=e=>_t(e)==="[object Map]",ws=e=>_t(e)==="[object Set]",Oe=e=>e instanceof Date,Jt=e=>typeof e=="function",Da=e=>typeof e=="string",Ns=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",_o=e=>De(e)&&Jt(e.then)&&Jt(e.catch),Ia=Object.prototype.toString,_t=e=>Ia.call(e),en=e=>_t(e)==="[object Object]",qa=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Bs(e){return e.__esModule||qa&&e[Symbol.toStringTag]==="Module"}const As=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Je(...e){let o=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,n=e.length,a=!1;for(typeof o=="boolean"&&(a=o,o=e[l]??{},l++),typeof o!="object"&&(o={});l<n;l++)if(e[l]!==null&&e[l]!==void 0){let r=e[l];for(let s in r){let i=o[s],c=r[s];if(i!==c)if(a===!0&&c&&typeof c=="object"){let u;Array.isArray(c)?u=i&&Array.isArray(i)?i:[]:u=i&&typeof i=="object"?i:{},o[s]=Je(a,u,c)}else c!==void 0&&(o[s]=c)}}return o}function tn(e,o,l=!1){if(!l)Je(!0,e,o);else{if(typeof o!="object")return{};typeof e!="object"&&(e={});for(let a in o){let r=e[a],s=o[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!en(s))continue;r=tn(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}const n=Object.getOwnPropertySymbols(o);for(let a of n){let r=e[a],s=o[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!en(s))continue;r=tn(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}}return e}const on=As?Promise.resolve():null;function Vs(e,...o){on!==null?o&&o.length>0?on.then(()=>{e(o)}):on.then(e):o&&o.length>0?setTimeout(()=>{e(o)}):setTimeout(e)}function he(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function pe(e){return typeof e=="number"?e:Number(e)}const Ts={"[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 _e(e){let l=Object.prototype.toString.call(e);return e==null?String(e):Ts[l]||"object"}function eo(e){if(!e)return!0;const{display:o}=window.getComputedStyle(e);return o==="none"}function za(e){return e&&typeof e=="object"&&"setInterval"in e}function Ma(e){let o=!!e&&"length"in e&&e.length,l=_e(e);return l==="function"||za(e)?!1:l==="array"||o===0||typeof o=="number"&&o>0&&o-1 in e}function Pa(e,o){let l=+o.length,n=0,a=e.length;for(;n<l;n++)e[a++]=o[n];return e.length=a,e}function $s(e,o=[]){let l=o;return e!=null&&(Ma(Object(e))?Pa(l,typeof e=="string"?[e]:e):l.push(e)),l}function Me(e,o){if(e==o)return!0;if(e===void 0||o===void 0)return!1;let l=_e(e),n=_e(o);if(l!==n)return!1;if(l==="object"){let a=Object.keys(e),r=Object.keys(o);if(a.length!==r.length)return!1;for(let s=0;s<a.length;s++){let i=a[s],c=e[i],u=o[i];if(!Me(c,u))return!1}return!0}else if(l==="array"){if(e.length!==o.length)return!1;for(let a=0;a<e.length;a++){let r=e[a],s=o[a];if(!Me(r,s))return!1}return!0}return!1}function Ra(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ce=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function xa(e){return ce(e)?!0:(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 La(e){if(e==null)return 0;let o=`${e}`;if(o.length==0)return 0;o.charAt(0)=="-"&&(o=o.substring(1)),o=o.replace(/[^\d\.-]/g,"");const l=o.indexOf(".");return l==-1?o.length:l}function Oa(e){if(e==null)return 0;const o=`${e}`;if(o.length==0)return 0;const l=o.indexOf(".");return l==-1?0:o.length-(l+1)}function Fa(e,o,l){const n=e.indexOf(o);return n===-1?e:o==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(l,"")}function nn(e,o=!0,l=!0){o?e=Fa(e,".",/\./g):e=e.replace(/\./g,""),l?e=Fa(e,"-",/-/g):e=e.replace(/-/,"");const n=o?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Es(e,o){return typeof e=="object"||Array.isArray(e)?o.findIndex(l=>{if(Me(e,l))return!0}):o.indexOf(e)}function Ds(e,o){if(typeof e=="object"||Array.isArray(e)){let l=o.reverse().findIndex(n=>{if(Me(e,n))return!0});return l!==-1&&(l=o.length-1-l),l}return o.lastIndexOf(e)}function ge(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ke(e,...o){const l={};return o.forEach(n=>{for(const a in n)l[a]=e[a]}),l}function ln(e,...o){const l=[];o.forEach(a=>{Reflect.apply([].push,l,Reflect.ownKeys(a))});const n={};for(const a in e)l.includes(a)||(n[a]=e[a]);return n}const Ka=(e,o,l)=>{const n=Object.assign({},e),a=Object.assign({},l);return Object.keys(o).length>0?(Object.keys(n).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(n[r]=o[a[r]]):o[r]&&(n[r]=o[r])}),n):e};function an(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&e.stopPropagation()}const et=(e,o=2)=>{for(e+="";e.length<o;)e="0"+e;return e.toString()},Fe=(e,o,l)=>Math.min(Math.max(e,o),l),rn=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Ce=Symbol.for("BroadcastKey");class sn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(o,l,n){this.parent=o,this.proxy=l,this.name=n,o!==null&&o.addChild(this)}addChild(o){this.children.push(o)}removeChild(o){const l=this.children.findIndex(n=>o===n);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(o,l,...n){if(o.maxLevel!==void 0&&o.maxLevel!==null&&o.maxLevel>0){if(o.level=o.level??0,o.level>o.maxLevel)return[];o.level++}let a=!1;!o.name||o.name==="*"?a=!0:!o.name||o.name==="+"?(a=!1,o.name="*"):Ra(o.name)&&this.name&&o.name.test(this.name)?a=!0:typeof o.name=="function"?a=Reflect.apply(o.name,null,[this.name]):o.name===this.name&&(a=!0);const r=[];if(a){const s=this.callbacks.get(l);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...n]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[l]=="function"){const c=Reflect.apply(i[l],i,[...n]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...o},l,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(o,l,...n){const a=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...o},l,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(o,l){this.callbacks.set(o,l)}}function to(e,o,l,n){const a=new sn(o,e,l);if(n&&typeof n=="object")for(const r in n)a.on(r,n[r]);return a}function Is(e,o,l){const n=l;if(n[Ce])return n[Ce];const a=t.inject(Ce,null),r=new sn(a,l,e);if(o&&typeof o=="object")for(const s in o)r.on(s,o[s]);return n[Ce]=r,t.provide(Ce,r),t.onUnmounted(()=>{r.destroy(),n[Ce]=void 0}),r}function Vt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ce]??t.inject(Ce,null):t.inject(Ce,null)}const tt=e=>e.default??e;class qs{error(o,l){const n=l,a=Vt(l);a?a.emit({name:"*",maxLevel:1},"setErrorTip",o):typeof n.setErrorTip=="function"&&n.setErrorTip(o)}reset(o){const l=o,n=Vt(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(o){const l=o,n=Vt(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(o,l,n){Array.isArray(o)||(o=[o]);const a=n,r=Vt(n),s=l.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=o.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(o){return o.modelValue}}let va=new qs;function zs(e){va=e}function Ms(e,o){tt(Ze).setValidator(e,o)}function Ps(e){tt(Ze).deleteValidator(e)}let Ua=["blur","clear"];function Rs(e){Ua=e}function Ha(){return Ua}let ja=["focus","change"];function xs(e){ja=e}function Wa(){return ja}function Ls(e){tt(Ze).messages(e)}function Tt(...e){const o=[];return e.forEach(l=>{l.forEach(n=>{const a=o.findIndex(r=>r.type===n.type);a!==-1&&o.splice(a,1),o.push(n)})}),o}function oo(e){return e.forEach(o=>{o.type==="required"&&(o.required===null||o.required===void 0)&&(o.required=!0),!o.type&&(o.required===!0||o.required===!1)&&(o.type="required")}),e}const Ke=Symbol("ValidateSchemaKey");class Ya{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(o,l,n){this.parent=o,this.descriptor=l,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let o=this.proxy.$attrs;o&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const l=oo(Tt(this.attrRules,this.rules)),n=[];for(let r in o){let s=o[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),n.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};n.push(c)}}this.attrRules=oo(n);const a=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(o,...l){const n=this.descriptor.validateHandler;if(n&&typeof n[o]=="function")return Reflect.apply(n[o],n,[...l]);const a=va;return a&&typeof a[o]=="function"?Reflect.apply(a[o],a,[...l]):null}decorate(o,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",o,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(o){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",o,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(o,l,n=!1){n?tt(Ze).setValidator(o,l):this.validators[o]=l}getValidator(o){let l=this.validators[o]??null;return l||(l=this.parent?.getValidator(o)??null),l}deleteValidator(o,l=!1){l?tt(Ze).deleteValidator(o):Reflect.deleteProperty(this.validators,o)}hasValidator(o,l=!1){if(l)return tt(Ze).hasValidator(o);{let n=Reflect.has(this.validators,o);return!n&&this.parent!==null&&(n=this.parent.hasValidator(o,!1)),n}}setRule(o){const l=Tt(this.attrRules,this.rules);o===null?this.rules=[]:Array.isArray(o)?this.rules=oo(o):this.rules=oo([o]);const n=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(n,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=Tt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(l.length>0){const a={[`${n}`]:l},r=this.getValue(),s={[`${n}`]:r},i=tt(Ze),c=new i(a),u=this.proxy??s;return c.validate(s,{context:u}).then(h=>{if(h.pass)this.success();else{let p="error";Array.isArray(h.errors)&&h.errors.length>0&&(p=h.errors[0].message??p,h.errors=[h.errors[0]],h.errors[0].ref=u),this.error(p)}return h}).catch(h=>{const p=h.message??`${h}`;return this.error(p),h})}}return Promise.resolve({pass:!0})}}function no(e,o,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const a=l.valueName;l.validateHandler={getValue(r){return r[a]}}}return new Ya(o,l,e)}const Xa=Symbol("EventEmitterKey");class Os{register=new Map;proxy;constructor(o){this.proxy=o}destroy(){this.proxy=null,this.register.clear()}off(o,l){let n=this.register.get(o);if(n&&Array.isArray(n)){let a=n.findIndex(r=>r===l);a!==-1&&n.splice(a,1)}}on(o,l){let n=this.register.get(o);n||(n=new Array,this.register.set(o,n)),n.push(l)}emit(o,...l){const n=this.register.get(o);n&&n.forEach(a=>{try{Reflect.apply(a,null,[o,...l])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[o,...l])}}function it(e,o){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},o)}}function lo(e,o){let l=0;return function(...n){const a=new Date().getTime();a-l<o||(l=a,Reflect.apply(e,null,[...n]))}}function Fs(e,o){const l=it((n,a)=>{e=n,a()},o);return t.customRef((n,a)=>({get(){return n(),e},set(r){l(r,a)}}))}function Ks(e){let o=!1;return function(...l){o||(o=!0,Reflect.apply(e,null,[...l]))}}function cn(e,o,l,n=0,a=!0){let r=o,s=0;if(a){const c=e();if(s++,c||s>l)return}const i=()=>{const c=e();s++,!(c||s>l)&&(r+=n,setTimeout(i,r))};setTimeout(i,r)}const Ie=Symbol("DomainKey"),ct=Symbol("DataItemsKey");class ao{_parent=null;get parent(){return this._parent}set parent(o){this._parent=o}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(o){this._broadcast=o}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(o){this._validateSchema=o}_props=t.reactive({});constructor(o=null){this._name=o}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(o,l=[]){for(const n in o){const a=o[n];l.length>0&&l.indexOf(a)!==-1||(this._props[n]=a)}}has(o){if(Reflect.has(this._props,o)){const l=this._props[o];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(o)}delete(o){Reflect.deleteProperty(this._props,o)}set(o,l){this._props[o]=l}get(o,l){if(Reflect.has(this._props,o)){const n=this._props[o];if(n!=null)return n}return this.parent==null?l:this.parent.get(o,l)}getForParent(o,l){return this.parent==null?l:this.parent.get(o,l)}getForSelf(o){return this._props[o]}getAll(o){const l=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,o)){const a=n._props[o];l.push(a)}n=n._parent}return l}}const vs=new ao;function dt(){return vs}function ve(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ie]??t.inject(Ie,null):t.inject(Ie,null)}const dn=Symbol("OriginalDateKey");function un(e,o,l=[],n){const a=t.getCurrentInstance(),r=a?.proxy;let s=t.inject(Ie,null);s===null&&(s=dt());const i=e||o.prop||o.name,c=new ao(i);c.parent=s;const u=y=>{r[dn]||p(y),c.set("modelValue",y)},m=()=>c.getForSelf("modelValue")??null,h=()=>r[dn]??null,p=y=>{const S={};Je(!0,S,t.toRaw(y)),r[dn]=S};t.isReactive(o)||typeof o=="function"?t.watch(o,y=>{c.merge(y,l)},{immediate:!0}):c.merge(o,l),o.modelValue&&p(o.modelValue),r[Ie]=c,t.provide(Ie,c);let k=null,g=null;if(a!==null){const y=t.inject(Ce,null);k=to(r,y,i,n),c.broadcast=k,r[Ce]=k,t.provide(Ce,k),r.broadcast=(d,f,...b)=>Reflect.apply(k.emit,k,[d,f,...b]);const S=t.inject(Ke,null);g=no(r,S,{componentName:""}),c.validateSchema=g,r[Ke]=g,t.provide(Ke,g),r[ct]=new Map,r.validate=(d=!0)=>{const f=[];let b=null;const w={deep:!1};if(d===!0)b={name:"*"};else if(Array.isArray(d)&&d.length>0){const V=d;b={name:E=>E?V.indexOf(E)!==-1:!1}}else if(d!=null&&typeof d=="object"){const V=d;if(w.ignoreHidden=V.ignoreHidden,Array.isArray(V.include)&&V.include.length>0){const E=V.include;b={name:I=>I?E.indexOf(I)!==-1:!1}}else if(Array.isArray(V.exclude)&&V.exclude.length>0){const E=V.exclude;b={name:I=>I?E.indexOf(I)===-1:!1}}else b={name:"*"}}if(b){const V=k?.emitToChildren(b,"validate",w);V&&Reflect.apply([].push,f,V)}return f.length==1?f[0]:f.length>1?Promise.all(f).then(V=>{let E=[];return V.forEach(I=>{I.pass===!1&&Array.isArray(I.errors)&&(E=[...E,...I.errors])}),E.length>0?{pass:!1,errors:E}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(d,f=!0,b=!1)=>{if(b===!0){Reflect.ownKeys(d).forEach(V=>{let E=String(V);const D=Za(c,E,{componentName:"",fieldName:E,pureDataValidate:!0},k,g);r[ct].set(E,D);const z=d[E];z&&D.validateSchema.setRule(z)});return}if(f){const w=Reflect.ownKeys(d),V={name:E=>w.includes(E)};k?.emitToChildren(V,"setNameValidateRules",d,!1)}},r.clearValidate=(d=!0)=>{let f=null;if(d===!0)f={name:"*"};else if(Array.isArray(d)&&d.length>0){const b=d;f={name:w=>w?b.indexOf(w)!==-1:!1}}else if(d!=null&&typeof d=="object"){const b=d;if(Array.isArray(b.include)&&b.include.length>0){const w=b.include;f={name:V=>V?w.indexOf(V)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const w=b.exclude;f={name:V=>V?w.indexOf(V)===-1:!1}}else f={name:"*"}}f&&k?.emitToChildren(f,"clearValidate",!1)},r.resetFields=d=>{const f=m();if(!f)return;const b={};if(Je(!0,b,h()??{}),Array.isArray(d))d.forEach(w=>{f[w]=b[w]});else if(d&&Array.isArray(d.include))(d.include??[]).forEach(V=>{f[V]=b[V]});else if(d&&Array.isArray(d.exclude)){let w=d.exclude??[];Reflect.ownKeys(b).forEach(V=>{w.includes(V)||(f[V]=b[V])})}else Object.assign(f,b);r.clearValidate(d)},r.setModelValue=(d,f)=>{!f||f===i?u(d):k?.emitToChildren({name:f},"setModelValue",d)},r.getModelValue=()=>m()}return t.onUnmounted(()=>{c.destroy(),r[Ie]=void 0,r[ct]&&(r[ct].clear(),r[ct]=void 0),k!==null&&(k.destroy(),r[Ce]=void 0),g!==null&&(g.destroy(),r[Ke]=void 0)}),c}function Qa(e,o,l=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(Ie,null);r===null&&(r=dt());const s=e||o.prop||o.name,i=new ao(s);return i.parent=r,t.isReactive(o)||typeof o=="function"?t.watch(o,c=>{i.merge(c,l)},{immediate:!0}):i.merge(o,l),a[Ie]=i,t.provide(Ie,i),t.onUnmounted(()=>{i.destroy(),a[Ie]=void 0}),i}function Ga(e,o,l){const a=ve(e)?.get("rules");if(!a)return;let r=a[l];r&&(Array.isArray(r)||(r=[r]),o.setRule(r))}function Be(e,o,l){const a=t.getCurrentInstance()?.proxy,r=o??"",s=t.inject(Ce,null),i=to(a,s,r,l);a[Ce]=i,t.provide(Ce,i),a.broadcast=(g,y,...S)=>Reflect.apply(i.emit,i,[g,y,...S]);const c=t.inject(Ke,null);e.fieldName=e.fieldName??r;const u=no(a,c,e);a[Ke]=u,t.provide(Ke,u),Ga(a,u,r),a.validate=(g=null)=>{const y=[];let S=!1,d=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)d=!0,S=!0;else if(g&&typeof g=="object"){const f=g;f.ignoreHidden===!0&&eo(a.$el)?d=!1:(Array.isArray(f.include)&&f.include.indexOf(r)!==-1||Array.isArray(f.exclude)&&f.exclude.indexOf(r),d=!0),S=f.deep??!1}else typeof g=="boolean"&&(S=g),d=!0;if(d){const f=u?.validate();y.push(f)}if(S){let f=null;const b={deep:!1};if(g===!0)f={name:"*"};else if(Array.isArray(g)&&g.length>0){const w=g;f={name:V=>V?w.indexOf(V)!==-1:!1}}else if(g!=null&&typeof g=="object"){const w=g;if(b.ignoreHidden=w.ignoreHidden,Array.isArray(w.include)&&w.include.length>0){const V=w.include;f={name:E=>E?V.indexOf(E)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const V=w.exclude;f={name:E=>E?V.indexOf(E)===-1:!1}}else f={name:"*"}}if(f){const w=i.emitToChildren(f,"validate",b);Reflect.apply([].push,y,w)}}return y.length==1?y[0]:y.length>1?Promise.all(y).then(f=>{let b=[];return f.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(b=[...b,...w.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=g=>u?.setRule(g),a.setNameValidateRules=(g,y=!1)=>{const S=g[r];if(S&&u?.setRule(S),y){const d={name:f=>Reflect.ownKeys(g).includes(f)};i.emitToChildren(d,"setNameValidateRules",g,!1)}},a.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(o??"")!==-1)&&u?.clear();let y=null;if(g===!0)y={name:"*"};else if(Array.isArray(g)&&g.length>0){const S=g;y={name:d=>d?S.indexOf(d)!==-1:!1}}else if(g!=null&&typeof g=="object"){const S=g;if(Array.isArray(S.include)&&S.include.length>0){const d=S.include;y={name:f=>f?d.indexOf(f)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const d=S.exclude;y={name:f=>f?d.indexOf(f)===-1:!1}}else y={name:"*"}}y&&i.emitToChildren(y,"clearValidate",!1)};const m=new Os(a);a[Xa]=m;const h=it((g="validate")=>{g==="reset"?u.clear():u.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ha()).forEach(g=>{m.on(g,y=>{h("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Wa()).forEach(g=>{m.on(g,y=>{h("reset")})}),t.onUnmounted(()=>{i.destroy(),a[Ce]=void 0,u.destroy(),a[Ke]=void 0,m.destroy(),a[Xa]=void 0}),{broadcast:i,validateSchema:u,emitEvent:(g,...y)=>{Reflect.apply(m.emit,m,[g,...y])},onEvent:(g,y)=>{Reflect.apply(m.on,m,[y])},offEvent:(g,y)=>{Reflect.apply(m.off,m,[y])}}}function Za(e,o,l,n,a){const r={},s=o??"",i={getValue(){const m=e.getForSelf("modelValue");return m?m[s]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,s):!1}};l.fieldName=s,l.validateHandler={getValue(m){return i.getValue()}};const c=no({},a,l);r.validate=(m=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const h=[];let p=!1,k=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)k=!0,p=!0;else if(m&&typeof m=="object"){const g=m;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),k=!0,p=g.deep??!1}else typeof m=="boolean"&&(p=m),k=!0;if(k){const g=c?.validate();h.push(g)}if(p){let g=null;const y={deep:!1};if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const S=m;g={name:d=>d?S.indexOf(d)!==-1:!1}}else if(m!=null&&typeof m=="object"){const S=m;if(Array.isArray(S.include)&&S.include.length>0){const d=S.include;g={name:f=>f?d.indexOf(f)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const d=S.exclude;g={name:f=>f?d.indexOf(f)===-1:!1}}else g={name:"*"}}if(g){const S=u.emitToChildren(g,"validate",y);Reflect.apply([].push,h,S)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(g=>{let y=[];return g.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(y=[...y,...S.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>c?.setRule(m),r.setNameValidateRules=m=>{const h=m[s];h&&c?.setRule(h)};const u=to(null,n,s,r);return{broadcast:u,validateSchema:c}}const fe=e=>e?`${ie(e)}px`:"";function ie(e,o=-1){if(typeof e=="number")return e>0&&e<1&&o>0?e*o:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let a=Number(e.substring(0,l)),r=1;if(Ye){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(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))*o;const n=Number(e);return isNaN(n)?0:n}const Qe="PageStateKey";function Pe(e){const o={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(o.top=ie(e.top)),e.left!==null&&e.left!==void 0&&(o.left=ie(e.left)),e.bottom!==null&&e.bottom!==void 0&&(o.bottom=ie(e.bottom)),e.right!==null&&e.right!==void 0&&(o.right=ie(e.right))),o}function fn(e,o,l={},n=!0,a=-1,r=-1,s=0,i=0){if(e.headerHeight=ie(l.headerHeight??o.headerHeight??-1),e.headerPadding=Pe(l.headerPadding??o.headerPadding),e.footerHeight=ie(l.footerHeight??o.footerHeight??-1),e.footerPadding=Pe(l.footerPadding??o.footerPadding),e.contentPadding=Pe(l.contentPadding??o.contentPadding),n){const c=l.height??o.height;c?e.height=ie(c,r):e.height=ie(r)-ie(s,r)-ie(i,r),e.width=ie(l.width??o.width??0,a)}}function Ja(e,o={}){const l={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},o.safeAreaInset??{});a&&(n.safeAreaTop=ie(a.top),n.safeAreaBottom=ie(a.bottom),n.safeAreaLeft=ie(a.left),n.safeAreaRight=ie(a.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,u=e.get("footerBarHeight")??0;fn(n,r,o,!0,s,i,c,u);const m=t.reactive(n),h=e.getForParent(Qe);h&&(n.height=co(e,h),n.width=uo(e,h),t.watch([()=>co(e,h),()=>uo(e,h)],([k,g])=>{m.height=k,m.width=g}));const p=!h;return t.watch([()=>o.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([k,g,y=-1,S=-1,d=0,f=0])=>{fn(m,g,o,p,y,S,d,f)}),e.set(Qe,m),m}function ro(e){return e.get(Qe)}function so(e,o){if(o=o??e.get(Qe),o&&o.headerMounted){const l=o.safeAreaTop==-1?0:o.safeAreaTop;return o.headerAllHeight??o.headerHeight+l}return 0}function io(e,o){if(o=o??e.get(Qe),o&&o.footerMounted){const l=o.safeAreaBottom==-1?0:o.safeAreaBottom;return o.footerAllHeight??o.footerHeight+l}return 0}function co(e,o){if(o=o??e.get(Qe),o){if(o.contentInnerHeight)return o.contentInnerHeight;const l=so(e,o),n=io(e,o);return o.height-l-n-(o.contentPadding.top??0)-(o.contentPadding.bottom??0)}return 0}function uo(e,o){return o=o??e.get(Qe),o?o.contentInnerWidth??o.width-(o.contentPadding.left??0)-(o.contentPadding.right??0):0}function Us(e,o){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[o,e]):!1}function Hs(e){return!!e.getForParent(Qe)}var fo=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(fo||{});function mn(e,o){return e==null?!1:typeof o=="function"?o(e):!0}function Ae(e,o,l=1,n){const a=ve();return a==null?e:l===0?t.computed(()=>{const r=a.getAll(o);for(let i=r.length-1;i>=0;i--){const c=r[i];if(mn(c,n))return c}const s=e.value;return mn(s,n)?s:null}):t.computed(()=>{const r=e.value;return mn(r,n)?r:a?.get(o)})}function Ee(e){return Ae(e,"readonly",0,function(l){return he(l)})}function Ve(e){return Ae(e,"disabled",0,function(l){return he(l)})}function qe(e,o="modelValue",l){const n=t.toRef(e,o);let a=n.value;typeof l=="function"&&(a=l(n.value));const r=t.ref(a);return t.watch(n,s=>{if(typeof l=="function"){const i=l(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const _a=new Map,mo=new Map;let pn=null;function js(e){pn=e}function er(e,o,l){if(l){let n=mo.get(l);n||(n=new Map,mo.set(l,n)),n.set(e,o)}else _a.set(e,o)}function ut(e,o,l){!l&&pn&&(l=pn(e)??void 0);let n=null;if(l){let a=mo.get(l);a&&(n=a.get(o))}return n||(n=_a.get(o)),n}function Ws(e,o){for(let l in e){const n=e[l];er(l,n,o)}}function Ys(e){mo.delete(e)}function Xs(){return{top:0,left:0,bottom:0,right:0}}function Qs(e=0,o=0){if(Ye){const l=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:l,height:n-ie(e,n)-ie(o,n)};return{rootWidth:l,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:-1,footerHeight:-1}}}class Gs{packages;_version;get version(){return this._version}constructor(o,l){this.packages=o,this._version=l}install(o,l){l?.install!==!1&&this.packages.forEach(r=>{r.install?o.use(r):r.name&&o.component(r.name,r)});const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=dt();if(this.initPageLayout(l,a),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=lo(()=>{const i={...l},c=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=u,this.initPageLayout(i,a)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in l)n.indexOf(r)===-1&&a.set(r,l[r])}initPageLayout(o,l){const n=o.headerBarHeight??0,a=o.footerBarHeight??0,r=Je({},Xs(),o.safeAreaInset),s=Qs(n,a),i=Je({},s.pageLayout,o.pageLayout);l=l??dt(),l.set("safeAreaInset",r),l.set("headerBarHeight",n),l.set("footerBarHeight",a),l.set("pageLayout",i),l.set("rootWidth",s.rootWidth),l.set("rootHeight",s.rootHeight)}setScopeGetter(o){js(o)}setAPI(o,l,n){er(o,l,n)}getAPI(o,l,n){return ut(o,l,n)}batchSetAPI(o,l){Ws(o,l)}clearScopeAPI(o){Ys(o)}getRootDomain(){return dt()}}function j(e){const o="fox-"+e;return{componentName:o,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=n=>{n.component(l.name,l)},t.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,t.defineComponent(l)}}}const Zs=(e,o)=>{let l=document.body;const n=e.teleport||"body";n!="body"&&(Da(n)?l=document.querySelector(n):l=e.teleport);const a=document.createElement("view"),r=o.name?o.name+"-":"",s=e.id||new Date().getTime();a.id=r+s;let i={};Jt(o.wrapper)?i=o.wrapper(l,a):i=o.wrapper;const c=t.createApp(i,e),u=o.components;return u&&u.forEach(m=>{c.use(m)}),l.appendChild(a),{instance:c.mount(a),unmount:()=>{c.unmount(),l.removeChild(a)}}},tr=(e,o)=>e?t.h(e,o):"",ue={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},me={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],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}},or={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}},nr={name:{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}},lr=[];for(const e in nr)lr.push(e);function Te(e,o=null){if(o||(o=t.getCurrentInstance()),o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const Js=Symbol.for("InnerPageScopeKey"),_s=(e,o)=>({inheritAttrs:!0,props:{...ue,...or,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}},setup(l,n){const a=un(l.name,l);if(a){const u=Ja(a,l);Te({getPageContentHeight:()=>co(a,u),getPageContentWidth:()=>uo(a,u),getPageHeaderHeight:()=>so(a,u),getPageFooterHeight:()=>io(a,u)});const m=t.inject(Js,!1);u&&m&&(u.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),i=t.getCurrentInstance(),c=(u,m=!1)=>{const h=i?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(u,!0,m)};return t.watch([()=>l.rules,()=>l.pureDataRules],([u,m],[h,p])=>{if(u&&h){const k=t.toRaw(h),g=t.toRaw(u),y=g?Reflect.ownKeys(g):[];(k?Reflect.ownKeys(k):[]).forEach(d=>{y.includes(d)||(g[d]=[])}),c(g)}if(m&&p){const k=t.toRaw(p),g=t.toRaw(m),y=g?Reflect.ownKeys(g):[];(k?Reflect.ownKeys(k):[]).forEach(d=>{y.includes(d)||(g[d]=[])}),c(g,!0)}},{deep:!0}),t.onMounted(()=>{if(l.rules){const u=t.toRaw(l.rules);c(u)}if(l.pureDataRules){const u=t.toRaw(l.pureDataRules);c(u,!0)}}),{classes:r,styles:s}}}),{componentName:ei,create:ti,scope:qB}=j("page"),oi=ti(_s(ei));function ni(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Z=(e,o)=>{const l=e.__vccOpts||e;for(const[n,a]of o)l[n]=a;return l},hn=Z(oi,[["render",ni]]);function po(e){const o=t.unref(e);return{width:o.offsetWidth,height:o.offsetHeight}}function gn(e){const o=t.unref(e),l=window.getComputedStyle(o,null),n=parseFloat(l.getPropertyValue("padding-left")),a=parseFloat(l.getPropertyValue("padding-right")),r=parseFloat(l.getPropertyValue("padding-top")),s=parseFloat(l.getPropertyValue("padding-bottom"));return{width:o.clientWidth-n-a,height:o.clientHeight-r-s}}const li=(e,o,l,n=!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,default:l},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=ve(),i=s?ro(s):null;i&&(i.headerMounted=!0);const c=e,u=t.computed(()=>({[c]:!0,[`${c}--border`]:a.border,[`${c}--fixed`]:a.fixed,[`${c}--safe-area-inset-top`]:a.safeAreaInsetTop})),m=t.computed(()=>({[`${c}__inner`]:!0,[`${c}__inner--${a.align}`]:!0})),h=a.height!==null&&a.height!==void 0?ie(a.height):null,p=t.computed(()=>{const N={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const B=Pe(a.padding??i.headerPadding);return Object.assign(N,B),h&&(i.headerHeight=h),i.headerHeight>0&&(N.height=i.headerHeight),N.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,N.safeAreaTop>0&&(N.top=N.safeAreaTop+(B.top??0),N.height&&N.height>0&&(N.height=N.height+N.safeAreaTop)),N}if(h&&(N.height=h),a.padding){const B=Pe(a.padding);Object.assign(N,B)}return N}),k=t.ref(null),g=()=>{if(i&&k.value&&!eo(k.value)){if(!n){const N=po(k.value);i.headerAllHeight=N.height}return i.headerMounted=!0,!0}return!1};let y=null;t.onMounted(()=>{i&&(cn(g,50,5,50,!0),window.ResizeObserver&&k.value&&(y=new window.ResizeObserver(()=>{g()}),y.observe(k.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,y&&(y.disconnect(),y=null))});const S=t.computed(()=>{const N={};return p.value.height!==null&&p.value.height!==void 0&&(N.height=`${p.value.height}px`),p.value.top!==null&&p.value.top!==void 0&&(N.paddingTop=`${p.value.top}px`),p.value.left!==null&&p.value.left!==void 0&&(N.paddingLeft=`${p.value.left}px`),p.value.right!==null&&p.value.right!==void 0&&(N.paddingRight=`${p.value.right}px`),p.value.bottom!==null&&p.value.bottom!==void 0&&(N.paddingBottom=`${p.value.bottom}px`),N}),d=t.computed(()=>!(p.value.height!==null&&p.value.height!==void 0&&p.value.height<=0));function f(){r.emit("back")}function b(){r.emit("click-title")}function w(){r.emit("click-right")}function V(){r.emit("click-right-text")}const E=()=>{if(!a.leftShow)return null;const N=[];if(r.slots.left)N.push(r.slots.left());else{if(r.slots.leftIcon){const B=t.h("view",{class:"left-icon",onClick:f},[r.slots.leftIcon()]);N.push(B)}else if(a.leftIcon){const B=t.h("view",{class:"left-icon",onClick:f},[t.h(a.leftIcon)]);N.push(B)}if(a.leftText){const B=t.h("view",{class:"left-text",onClick:f},[a.leftText]);N.push(B)}}return N.length===0?null:t.h("view",{class:"fox-header-bar__left"},N)},I=()=>{if(!a.rightShow)return null;const N=[];if(r.slots.right)N.push(r.slots.right());else{if(a.rightText){const B=t.h("view",{class:"right-text",onClick:V},[a.rightText]);N.push(B)}if(r.slots.rightIcon){const B=t.h("view",{class:"right-icon",onClick:w},[r.slots.rightIcon()]);N.push(B)}else if(a.rightIcon){const B=t.h("view",{class:"right-icon",onClick:w},[t.h(a.rightIcon)]);N.push(B)}}return N.length===0?null:t.h("view",{class:"fox-header-bar__right"},N)},D=()=>{if(!a.titleShow)return null;const N=[],B=r.slots.default?r.slots.default():null;if(B)N.push(B);else{if(a.title){const R=t.h("view",{class:"title-text"},[a.title]);N.push(R)}if(r.slots.titleIcon){const R=t.h("view",{class:"title-icon",onClick:b},[r.slots.titleIcon()]);N.push(R)}else if(a.titleIcon){const R=t.h("view",{class:"title-icon",onClick:b},[t.h(a.titleIcon)]);N.push(R)}}return N.length===0?null:t.h("view",{class:"fox-header-bar__title"},N)},z=()=>{const N=[],B=r.slots.bottom?r.slots.bottom():null;return B&&N.push(B),N.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},N)};return()=>{if(!d.value)return null;const N=[];if(r.slots.all)N.push(r.slots.all());else{const R=[],L=E();L&&R.push(L);const $=D();$&&R.push($);const T=I();if(T&&R.push(T),R.length>0){const A=t.h("view",{class:m.value},R);N.push(A)}const q=z();q&&N.push(q)}if(N.length===0)return null;const B={class:u.value,style:S.value,ref:k};return t.h("view",B,N)}}}),{componentName:ai,create:ri,scope:si}=j("header-bar"),yn=ri(li(ai,si,te.Left,!1));function ii(e,o,l=!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(n,a){const r=ve(),s=r?ro(r):null,i=t.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),c=n.height!==null&&n.height!==void 0?ie(n.height):null,u=t.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const y=Pe(n.padding??s.footerPadding);return Object.assign(g,y),c&&(s.footerHeight=c),s.footerHeight>0&&(g.height=s.footerHeight),g.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(y.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(c&&(g.height=c),n.padding){const y=Pe(n.padding);Object.assign(g,y)}return g}),m=t.ref(null),h=()=>{if(s&&m.value&&!eo(m.value)){if(!l){const g=po(m.value);s.footerAllHeight=g.height}return s.footerMounted=!0,!0}return!1};let p=null;t.onMounted(()=>{s&&(cn(h,50,5,50,!0),window.ResizeObserver&&(p=new window.ResizeObserver(()=>{h()}),p.observe(m.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,p&&(p.disconnect(),p=null))});const k=t.computed(()=>{const g={};return u.value.height!==null&&u.value.height!==void 0&&(g.height=fe(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(g.paddingTop=fe(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(g.paddingLeft=fe(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(g.paddingRight=fe(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(g.paddingBottom=fe(u.value.bottom)),g});return()=>{const g=a.slots.default?a.slots.default():[],y={ref:m,class:i.value,style:k.value};return t.h("view",y,g)}}}}const{componentName:ci,create:di,scope:ui}=j("footer-bar"),kn=di(ii(ci,ui,!1));function fi(e,o){return{props:{padding:{type:[Object],required:!1}},setup(l){const n=ve(),a=t.computed(()=>({[e]:!0})),r=n?ro(n):null,s=t.computed(()=>{const u={};if(n&&r){if(l.padding){const d=Pe(l.padding);Object.assign(r.contentPadding,d)}const m=so(n,r),h=io(n,r);let p="";r.contentHeight?p=`${r.contentHeight}`:p=`${r.height}px`,console.debug("[content]page height:",p),console.debug("[content]header height:",m),console.debug("[content]footer height:",h),console.debug("[content]padding:",r.contentPadding),u.height=p;let k=(r&&r.contentPadding&&r.contentPadding.top)??-1;(k>=0||m>0)&&(k=k<0?0:k,u.paddingTop=`${m+k}px`);let g=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(g>=0||h>0)&&(g=g<0?0:g,u.paddingBottom=`${h+g}px`);const y=(r&&r.contentPadding&&r.contentPadding.left)??-1;y>=0&&(u.paddingLeft=`${y}px`);const S=(r&&r.contentPadding&&r.contentPadding.right)??-1;return S>=0&&(u.paddingRight=`${S}px`),u}if(l.padding){const m=Pe(l.padding);m.left&&(u.paddingLeft=`${m.left}px`),m.top&&(u.paddingTop=`${m.top}px`),m.right&&(u.paddingRight=`${m.right}px`),m.bottom&&(u.paddingBottom=`${m.bottom}px`)}return u}),i=t.ref(null),c=it(()=>{if(r&&i.value){const u=gn(i.value);r.contentInnerHeight=u.height,r.contentInnerWidth=u.width}},0);return t.onMounted(()=>{c()}),n&&r&&t.watch([()=>s.value,()=>a.value],([])=>{c()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:mi,create:pi,scope:zB}=j("content"),hi=pi(fi(mi));function gi(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const bn=Z(hi,[["render",gi]]),ft="GroupStateKey",ar=Symbol.for("GroupScopeKey");function ho(){return t.inject(ar,!1)}function go(e=!0){t.provide(ar,e)}function yi(e,o={}){Reflect.ownKeys(o).forEach(n=>{if(typeof n!="string")return;const a=o[n];Ea(a)||(e[n]=a)})}function ki(e,o={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};yi(n,o);const a=t.shallowRef(n),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(ft,r),r}function Sn(e,o,l=-1,n=-1,a=!1,r,s,i){const c=e.get(ft);if(!c)return;const u=e.get("groupLayout")??{};l===-1&&(l=u.column??1),n===-1&&(n=u.gutter??0),r||(r=u.minItemWidth??-1),s||(s=u.maxItemWidth??-1);const m=ie(r),h=ie(s);i||(i=u.type??"grid");const p=()=>{const k=o===""||o===-1,g=ie(o);let y=pe(l);const S=ie(n);if(!k){let b=(g-(y-1)*S)/y;for(;h!==-1&&b>h;)y++,b=(g-(y-1)*S)/y;for(;m!==-1&&y>1&&b<m;)y--,b=(g-(y-1)*S)/y}let d=!1;const f=c.layout;f.value.width=o,f.value.column!==y&&(f.value.column=y,d=!0),f.value.gutter!==S&&(f.value.gutter=S,d=!0),f.value.type!==i&&(f.value.type=i,d=!0),d&&t.triggerRef(f)};if(a)p();else{const k=++c.passport;setTimeout(()=>{k===c.passport&&p()},50)}}function yo(e,o=!1){let l;return o?l=e.getForParent(ft):l=e.get(ft),l.layout}function ko(e,o=!1){let l;return o?l=e.getForParent(ft):l=e.get(ft),l.order}function rr(e,o=1){if(o==="stretch")return-1;const l=pe(o);return l===-1?100:100*l/e}function bo(e,o,l=1,n=0,a){const r={};let s=0;a?s=ie(a):s=rr(o.column,l),s>0&&(r.width=`${s}%`);const i=rr(o.column,n);i>0&&(r["margin-left"]=`${i}%`);const c=o.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function So(e,o,l=1,n=0){if(l==="stretch"){const c=e.index%o.column,u=c+(o.column-c);return e.index=e.index+(u-c),{"grid-column":`${c+1} / -1`}}let a=pe(l);if(a===-1){const c=e.index%o.column;return o.column,c==0?e.index=e.index+o.column:e.index=e.index+(o.column-c)+o.column,{"grid-column":"1 / -1"}}if(a>o.column){const c=e.index%o.column;return o.column,c==0?e.index=e.index+o.column:e.index=e.index+(o.column-c)+o.column,{"grid-column":"1 / -1"}}const r=pe(n)%o.column;let s=(e.index+r)%o.column,i=s+a;return i>o.column?(s=0,i=s+a,e.index=e.index+(o.column-s)+a):e.index=e.index+r+a,r>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const sr=Symbol("RollingStateKey");function bi(e){t.provide(sr,e)}function Si(){return t.inject(sr,null)}function Cn(e){let o=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(l.getPropertyValue("padding-top")),r=parseFloat(l.getPropertyValue("padding-bottom"));o=e.clientHeight-a-r}else o=e.offsetHeight;return o}function Ci(e){let o=Cn(e);if(o<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),o=Cn(l),document.body.removeChild(l)}return o}function wi(e,o,l){if(e<=0)return"1fr";const n=(e-(o-1)*l)/o;return n>0?`${n}px`:"1fr"}const Ni={...ue,...or,...nr};function Bi(e,o,l){return{props:Ni,emits:["update:collapse"],setup(n,a){const r=un(n.name,n,lr),s=ki(r,{type:n.type}),i=ho();go(!0);const c=n.rollingDisplay?Si():null,u=t.ref(null),m=t.computed(()=>n.rollingDisplay?c&&!c.disabled:!1),h=t.computed(()=>i&&r?yo(r,!0).value:null),p=t.getCurrentInstance(),k=(W,Q=!1)=>{const _=p?.proxy;_&&typeof _.setNameValidateRules=="function"&&_.setNameValidateRules(W,!0,Q)};t.watch([()=>n.rules,()=>n.pureDataRules],([W,Q],[_,oe])=>{if(W&&_){const ne=t.toRaw(_),ae=t.toRaw(W),ye=ae?Reflect.ownKeys(ae):[];(ne?Reflect.ownKeys(ne):[]).forEach(Le=>{ye.includes(Le)||(ae[Le]=[])}),k(ae)}if(Q&&oe){const ne=t.toRaw(oe),ae=t.toRaw(Q),ye=ae?Reflect.ownKeys(ae):[];(ne?Reflect.ownKeys(ne):[]).forEach(Le=>{ye.includes(Le)||(ae[Le]=[])}),k(ae,!0)}},{deep:!0});const g=e,y=t.computed(()=>{const W={};if(W.height=q.value,n.width)n.width!=="auto"&&(W.width=fe(n.width));else{const Q=i?ko(r,!0):null;if(h.value&&Q){if(h.value.type==="grid"){const _=So(Q,h.value,n.span,n.offset);Object.assign(W,_)}else if(h.value.type==="flow"){const _=bo(Q,h.value,n.span,n.offset,n.width);Object.assign(W,_)}}}return W}),S=t.computed(()=>{const W=s.layout.value.type;return W==="grid"||W==="flow"?{[`${g}--${W}`]:!0,[`${g}--${W}-justify-${n.justify}`]:!0,[`${g}--${W}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${W}`]:!0,[`${g}--gutter`]:!0}}),d=t.computed(()=>{if(s.layout.value.type==="grid"){let Q="";if(n.columnWidth)Q=`repeat(auto-fill, ${n.columnWidth})`;else{const _=wi(z.value,s.layout.value.column,s.layout.value.gutter);Q=`repeat(${s.layout.value.column}, ${_})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":Q}}}),f=t.toRef(n,"title"),b=t.toRef(n,"gutter"),w=t.toRef(n,"column"),V=t.computed(()=>i||m.value?!0:he(n.isWrap)),E=[],I=W=>{E.push(W)},D=()=>{let W=E.length;E.splice(0,W)},z=t.ref(-1),N=W=>{const Q=gn(W).width;Q>0&&Q!==z.value&&(z.value=Q)};Sn(r,z.value,w.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&t.watch([z,w,b],([W,Q,_])=>{s.order.index=0,Sn(r,W,Q,_,!1,n.minItemWidth,n.maxItemWidth,n.type)});const B=t.computed(()=>A.value?n.expandText??"":n.collapseText??""),R=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),L=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!A.value,"is-collapse":A.value})),$=t.ref(),T=t.ref(),q=t.computed(()=>O.value||fe(n.height)||""),A=t.ref(!1),O=t.ref(""),x=t.ref(!1);let M=-1;const F=(W,Q=!0)=>{const _=$.value;if(_&&A.value!==W){if(M=M===-1?Ci(_):M,x.value=!0,Q)if(_.style["will-change"]="height",_.ontransitionend=function(){_.ontransitionend=null,this.style["will-change"]="auto",W||(O.value="",x.value=!1)},W){let oe=0;n.collapseHeight?oe=n.collapseHeight:T.value&&T.value.classList.contains(`${e}__header`)&&(oe=T.value.offsetHeight),O.value=`${M}px`,t.nextTick(()=>{O.value=`${oe}px`})}else O.value=`${M}px`;else if(W){let oe=0;n.collapseHeight?oe=n.collapseHeight:T.value&&T.value.classList.contains(`${e}__header`)&&(oe=T.value.offsetHeight),O.value=`${oe}px`}else x.value=!1,O.value=`${M}px`;A.value=W,a.emit("update:collapse",W)}};t.watch(()=>n.collapse,W=>{F(W)});const G=()=>{Y()},Y=W=>{W=W??!A.value,F(W)};Te({toggleCollapse:Y,doLayout:()=>{E[0]&&(N(E[0]),Sn(r,z.value,w.value,b.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let K=null,U=!0;const P=W=>{if(n.rules){const Q=t.toRaw(n.rules);k(Q)}if(n.pureDataRules){const Q=t.toRaw(n.pureDataRules);k(Q,!0)}if(Ye&&(W&&F(he(n.collapse),!1),n.autoLayout&&Array.isArray(E)&&E.length>0)){const Q=E[0];N(Q),window.ResizeObserver&&(K=new window.ResizeObserver(()=>{N(Q)}),K.observe(Q))}},v=()=>{K?.disconnect(),K=null},H=!m.value||c?.acquire();H&&(u.value=m.value?!0:null),t.onMounted(()=>{if(H&&(P(U),U=!1),m.value&&c){let W=null,Q=c.initialHeight;c.observe($.value,_=>{if(_!==u.value)if(_)u.value=!0,A.value||(O.value=""),W=setTimeout(()=>{W=null,u.value!==!1&&(P(U),U=!1)},100);else{if(W!==null&&clearTimeout(W),u.value=!1,!A.value)if(U)O.value=c.initialHeight;else{let oe=Cn($.value);oe<=0?O.value=Q:(O.value=`${oe}px`,Q=O.value)}U||v()}})}}),t.onUnmounted(()=>{K?.disconnect(),c&&c.unobserve($.value)});const J=(W="right")=>{const Q=[];if(B.value){const ne={class:R.value},ae=t.h("span",ne,[B.value]);Q.push(ae)}const _={class:L.value},oe=l(n.collapseIcon,_);return oe&&Q.push(oe),Q.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${W}`]:!0},onClick:G},Q):null},X=(W,Q,_,oe)=>{const ne={...S.value};return Q===0&&(ne[`${g}__first`]=!0),_>=oe-1&&(ne[`${g}__last`]=!0),t.h("div",{ref:I,key:`${Q}`,class:ne,style:d.value},W)};return()=>{if(m.value&&u.value!==!0){const ne=n.tag||"div";return t.h(ne,{ref:$,prop:n.name,class:{[`${g}`]:!0,"is-collapse":x.value},style:y.value},[])}s.order.index=0;const W=[];let Q=0;if(a.slots.header){const ne={key:`${Q++}`,ref:T,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},ae=t.h("div",ne,[a.slots.header()]);W.push(ae)}else{const ne=[],ae=n.collapsePosition==="left";if(ae&&n.showCollapse){const ye=J("left");ye&&ne.push(ye)}if(f.value){if(n.showMark){const Se={class:{[`${g}__header-mark`]:!0}};n.markColor&&(Se.style={background:n.markColor});const Le=t.h("div",Se);ne.push(Le)}const ye=t.h("div",{class:{[`${g}__header-title`]:!0}},[f.value]);ne.push(ye)}if(a.slots.toolbar&&ne.push(a.slots.toolbar()),!ae&&n.showCollapse){const ye=J("right");ye&&ne.push(ye)}if(ne.length>0){const ye={key:`${Q++}`,ref:T,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},Se=t.h("div",ye,ne);W.push(Se)}}D();const _=a.slots.default?a.slots.default():[],oe=s.layout.value.type;if(oe==="grid"){const ne=X(_,Q++,0,_.length);W.push(ne)}else if(oe==="flow"){const ne=X(_,Q++,0,_.length);W.push(ne)}else for(let ne=0;ne<_.length;ne++){const ae=_[ne],ye=X([ae],Q++,ne,_.length);W.push(ye)}if(V.value){const ne=n.tag||"div";return t.h(ne,{ref:$,prop:n.name,class:{[`${g}`]:!0,"is-collapse":x.value},style:y.value},[W])}else return W}}}}const{componentName:Ai,create:Vi,scope:Ti}=j("group"),wn=Vi(Bi(Ai,Ti,(e=te.RectUp,o={})=>t.h(e,o)));function $i(e){return e===window}const Ei=/matrix\((.+)\)/,ir=e=>{const o=t.unref(e);if(!o)return{x:0,y:0};if($i(o))return{x:0,y:0};let l=0,n=0,a=o;for(;a!==null;)l+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let r=0,s=0,i=0,c=0;for(a=o;a!==document;){s+=a.scrollTop,r+=a.scrollLeft;const{transform:u}=window.getComputedStyle(a);if(u){const m=Ei.exec(u);if(m){let p=m[1].split(/\s*,\s*/);p.length==6&&(i+=Number(p[4]),c+=Number(p[5]))}}a=a.parentNode}return l-=r,n-=s,l+=i,n+=c,{x:l,y:n}};class Di{watchedListeners=[];add(o){this.watchedListeners.push(o)}remove(o){const l=this.watchedListeners.indexOf(o);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(o=>{try{o()}catch{}})}}class Ii{monitorRegister=new WeakMap;watch(o,l){let n=o.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r||(r=new Di,n.addEventListener("scroll",r.listen),n===document.body&&n.addEventListener("resize",r.listen),this.monitorRegister.set(n,r)),r.add(l),n=n.parentNode}}unwatch(o,l){let n=o.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r&&(r.remove(l),r.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",r.listen),n===document.body&&n.removeEventListener("resize",r.listen))),n=n.parentNode}}}const cr=new Ii,dr={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:qi,create:zi}=j("price"),Mi=zi({props:{...dr},setup(e){const o=t.computed(()=>({[qi]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),n=t.computed(()=>ge(e.price)==0?"":Gt(e.price,e.decimalLength,!0,pe(e.digits),e.separator)),a=t.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:o,showSymbol:l,intText:a,decimalText:r}}}),Pi=["innerHTML"],Ri=["innerHTML"];function xi(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Pi)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ri)):t.createCommentVNode("",!0)],2)}const Ge=Z(Mi,[["render",xi]]),{componentName:Nn,create:Li}=j("hint-text"),Oi=Li({components:{Price:Ge},props:{...dr,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,o){const l=t.ref({top:null,right:null,bottom:null,left:null}),n=t.ref({x:0,y:0}),a=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),u=(B,R,L,$,T,q)=>{const A=document.documentElement.clientWidth||document.body.clientWidth,O=document.documentElement.clientHeight||document.body.clientHeight,x=B.split("-");let M=[];x[0]==="top"?M=["top","bottom","right","left"]:x[0]==="bottom"?M=["bottom","top","right","left"]:x[0]==="left"?M=["left","top","bottom","right"]:x[0]==="right"&&(M=["right","top","bottom","left"]);const F={top:null,right:null,bottom:null,left:null},G=[];for(let Y=0;Y<M.length;Y++){const ee=M[Y];if(G[0]=ee,x[1]&&(G[1]=x[1]),ee==="top"){const K=R.y-q-e.arrowSize-e.offset;if(K>=0){F.top=K;let U=0;x[1]==="start"?U=R.x:x[1]==="end"?U=R.x+L-T:U=R.x+L/2-T/2;const P=A-U-T;P<0?(U+=P,h.value=-P):h.value=0,F.left=U<0?0:U;break}}else if(ee==="bottom"){const K=R.y+$+e.arrowSize+e.offset;if(K+q<=O){F.top=K;let U=0;x[1]==="start"?U=R.x:x[1]==="end"?U=R.x+L-T:U=R.x+L/2-T/2;const P=A-U-T;P<0?(U+=P,h.value=-P):h.value=0,F.left=U<0?0:U;break}}else if(ee==="left"){const K=R.x-T-e.arrowSize-e.offset;if(K>=0){F.left=K;let U=0;x[1]==="start"?U=R.y:x[1]==="end"?U=R.y+$-q:U=R.y+$/2-q/2,F.top=U<0?0:U;break}}else if(ee==="right"){const K=R.x+L+e.arrowSize+e.offset;if(K+T<=A){F.left=K;let U=0;x[1]==="start"?U=R.y:x[1]==="end"?U=R.y+$-q:U=R.y+$/2-q/2,F.top=U<0?0:U;break}}}return{bestPlacement:G.join("-"),bestInsetRect:F}},m=(B,R,L=10)=>{if(!Ye||R===!1||!B)return;n.value=ir(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const $=c.value.offsetHeight,T=c.value.offsetWidth,{bestPlacement:q,bestInsetRect:A}=u(e.placement,n.value,a.value,r.value,T,$);s.value=q,l.value=A,i.value=!0},h=t.ref(0),p=it(()=>{m(e.message,e.visible)},10),k=t.ref(e.visible);t.watch(()=>e.visible,B=>{k.value=B});const g=t.computed(()=>k.value&&y.value),y=t.ref(!0),S=it(B=>{const R=B[0];R&&(y.value=R.isIntersecting)},10),d=new IntersectionObserver(S);t.watch([()=>e.message,()=>e.visible],([B,R])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{m(e.message,e.visible)},0),cr.watch(e.reference,p),d.observe(e.reference)}),t.onBeforeMount(()=>{cr.unwatch(e.reference,p),d.unobserve(e.reference),d.disconnect()});const f=t.computed(()=>{const B={[Nn]:!0};return s.value.startsWith("top")?B["is-top"]=!0:s.value.startsWith("right")?B["is-right"]=!0:s.value.startsWith("bottom")?B["is-bottom"]=!0:s.value.startsWith("right")&&(B["is-right"]=!0),e.size==="small"?B["is-small"]=!0:e.size==="large"&&(B["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(B[`${e.customClass}`]=!0),B}),b=t.computed(()=>{const B={};l.value.top!==null&&(B.top=`${l.value.top}px`),l.value.right!==null&&(B.right=`${l.value.right}px`),l.value.bottom!==null&&(B.bottom=`${l.value.bottom}px`),l.value.left!==null&&(B.left=`${l.value.left}px`),e.autoFit&&(B["min-width"]=`${a.value}px`);const R=document.documentElement.clientWidth||document.body.clientWidth;return B["max-width"]=`${R}px`,i.value&&(B.opacity="1"),e.transition||(B.transition="none"),e.zIndex&&(B["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(B,e.customStyle),B}),w=t.computed(()=>{const B=[`${Nn}__content`];return e.customTextClass&&B.push(e.customTextClass),B}),V=t.computed(()=>{const B={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(B,e.customTextStyle),B}),E=t.computed(()=>({[`${Nn}__arrow`]:!0})),I=t.computed(()=>{const B={};return e.showArrow?(B.width=`${e.arrowSize}px`,B.height=`${e.arrowSize}px`,s.value==="top"?(B.left="50%",B.bottom=`-${e.arrowSize}px`,B.transform=" translate(-50%, 0%)"):s.value==="top-start"?(B.left=`${e.arrowOffset+h.value}px`,B.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(B.right=`${e.arrowOffset-h.value}px`,B.bottom=`-${e.arrowSize}px`):s.value==="right"?(B.left=`-${e.arrowSize}px`,B.top="50%",B.transform=" translate(0%, -50%)"):s.value==="right-start"?(B.left=`-${e.arrowSize}px`,B.top=`${e.arrowOffset}px`):s.value==="right-end"?(B.left=`-${e.arrowSize}px`,B.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(B.left="50%",B.top=`-${e.arrowSize}px`,B.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(B.left=`${e.arrowOffset+h.value}px`,B.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(B.right=`${e.arrowOffset-h.value}px`,B.top=`-${e.arrowSize}px`):s.value==="left"?(B.right=`-${e.arrowSize}px`,B.top="50%",B.transform=" translate(0%, -50%)"):s.value==="left-start"?(B.right=`-${e.arrowSize}px`,B.top=`${e.arrowOffset}px`):s.value==="left-end"&&(B.right=`-${e.arrowSize}px`,B.bottom=`-${e.arrowOffset}px`),B):{display:"none"}}),D=t.computed(()=>g.value&&e.closeOnClick),z=t.computed(()=>{const B={};return e.zIndex&&(B["z-index"]=`${e.zIndex}`),B});return{show:g,tipRef:c,classes:f,styles:b,textClasses:w,textStyles:V,arrowClasses:E,arrowStyles:I,overlayShow:D,overlayStyle:z,onClickOverlay:()=>{k.value=!1,o.emit("update:visible",!1)}}}});function Fi(e,o,l,n,a,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:o[0]||(o[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.message),1)],64))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const ur=Z(Oi,[["render",Fi]]);class fr{seed=new Date().getTime();constructor(o){this.seed=o??new Date().getTime()}get(){let o=this.seed++;return this.seed<0&&(this.seed=0),o}}const Bn={},Ki=new fr,mt=new Map,Co=e=>{if(e){const o=document.getElementById(e);mt.delete(e),o&&o.parentNode?.removeChild(o)}else{for(const o of mt.keys()){const l=document.getElementById(o);l&&l.parentNode?.removeChild(l)}mt.clear()}},vi=e=>{e.unmount=Co;const o=document.getElementById(e.id);if(o){const l=mt.get(e.id);l?e={...Bn,...l,...e}:e={...Bn,...e},e.transition=!1;const n=t.createVNode(ur,e);return t.render(n,o),e.id}},Ui=e=>{e.unmount=Co;let o=e.id??`hinttext_${Ki.get()}`;e={...Bn,...e},e.id=o,mt.set(o,e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(ur,e);return t.render(n,l),document.body.appendChild(l),o},Hi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},ot={show(e,o,l={},n=!0){Hi(o);const a=l.id;return a&&mt.has(a)?vi({...l,message:o,reference:e}):(n&&Co(),Ui({...l,message:o,reference:e}))},hide(e){Co(e)},install(e){e.config.globalProperties.$hintText=ot}},{componentName:mr,create:ji}=j("item"),Wi=ji({inheritAttrs:!0,props:{...ue,...me},emits:["appear","disappear"],setup(e,o){const l=e.prop??o.attrs.name;Be({componentName:mr,validate:!1},l);const n=ve(),a=ho();go(!1);const r=t.computed(()=>a&&n?yo(n,!1).value:null),s=mr,i=t.ref(null),c=t.computed(()=>{const X={[s]:!0,[`${s}__gutter`]:r.value&&r.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(X[e.errorMarkClass]=!!R.value,X[e.warnMarkClass]=!!N.value,X[e.infoMarkClass]=!!D.value,typeof i.value=="function"){const W=i.value(l);X[W]=!0}else if(typeof i.value=="string"){const W=i.value;X[W]=!0}return X}),u=t.ref(null),m=t.computed(()=>{const X={};if(e.width)e.width!=="auto"&&(X.width=fe(e.width));else{const W=a&&n?ko(n,!1):null;if(r.value&&W){if(r.value.type==="grid"){const Q=So(W,r.value,e.span,e.offset);Object.assign(X,Q)}else if(r.value.type==="flow"){const Q=bo(W,r.value,e.span,e.offset,e.width);Object.assign(X,Q)}}}if(typeof u.value=="function"){const W=u.value(l);W&&Object.assign(X,W)}else if(u.value&&typeof u.value=="object"){const W=u.value;Object.assign(X,W)}return X}),h=t.ref(null),p=t.computed({get:()=>h.value??he(e.isRequired),set:X=>{h.value=X}}),k=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof o.slots.label=="function"),g=Ae(t.toRef(e,"labelPosition"),"labelPosition",fo.Near),y=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),S=t.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${y.value}`]:!0})),d=t.computed(()=>({label:!0,[`label--${y.value}`]:!0})),f=Ae(t.toRef(e,"labelWidth"),"labelWidth",fo.Near),b=t.computed(()=>f&&f.value?{width:fe(f.value)}:{}),w=t.computed(()=>({"label--string":!0,"label--required":p.value})),V=t.computed(()=>({content:!0,[e.contentClass]:!0})),E=t.computed(()=>({...e.contentStyle})),I=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Te({setRequired(X){p.value=X},setErrorTip(X){I.errorTip=X},setErrorIcon(X){I.errorIcon=X},setWarnTip(X){I.warnTip=X},setWarnIcon(X){I.warnIcon=X},setInfoTip(X){I.infoTip=X},setInfoIcon(X){I.infoIcon=X},setCustomClassName(X){i.value=X},setCustomStyle(X){u.value=X}});const D=t.computed(()=>e.infoTip||I.infoTip),z=t.computed(()=>e.infoIcon||I.infoIcon),N=t.computed(()=>e.warnTip||I.warnTip),B=t.computed(()=>e.warnIcon||I.warnIcon),R=t.computed(()=>e.errorTip||I.errorTip),L=t.computed(()=>e.errorIcon||I.errorIcon),$=t.computed(()=>R.value?"error":N.value?"warn":D.value?"info":""),T=t.computed(()=>$.value.length>0),q=t.computed(()=>$.value==="error"?R.value:$.value==="warn"?N.value:$.value==="info"?D.value:""),A=t.computed(()=>$.value==="error"?L.value:$.value==="warn"?B.value:$.value==="info"?z.value:null),O=t.computed(()=>{let X={[`${s}__tip`]:!0,[`${s}__tip--${$.value}`]:!0};return $.value==="error"&&e.errorClass?X[`${e.errorClass}`]=!0:$.value==="warn"&&e.warnClass?X[`${e.warnClass}`]=!0:$.value==="info"&&e.infoClass&&(X[`${e.infoClass}`]=!0),X}),x=t.computed(()=>{let X={};return g&&g.value==="top"||!k.value?X["padding-left"]="0px":f&&f.value&&(X["padding-left"]=fe(f.value)),X}),M=()=>{const X=A.value;return X?typeof X=="function"?t.h("div",{class:"fox-item__tip--icon"},[X()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(X)]):null},F=()=>{const X=q.value;return X?typeof X=="function"?t.h("div",{class:"fox-item__tip--text"},[X()]):t.h("div",{class:"fox-item__tip--text"},[X]):null},G=t.computed(()=>o.slots.fixedPreTip),Y=t.computed(()=>({[`${s}__fixed-pre-tip`]:!0})),ee=t.computed(()=>o.slots.fixedTip),K=t.computed(()=>({[`${s}__fixed-tip`]:!0})),U=t.ref();let P="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([X,W,Q,_])=>{U.value&&(X&&!ce(W)?P?ot.show(U.value,W,{..._,id:P,type:Q},!0):P=ot.show(U.value,W,{..._,type:Q},!0):ot.hide(P))});let v=null;const H=()=>{v||!U.value||(v=new IntersectionObserver(X=>{let W=!1;for(let Q of X)if(Q.intersectionRatio>0){W=!0,W&&o.emit("appear",Q);break}W||o.emit("disappear")}),v.observe(U.value))},J=()=>{!v||!U.value||(v.unobserve(U.value),v=null)};return t.watch(()=>he(e.appearListen),X=>{X?H():J()}),t.onMounted(()=>{he(e.appearListen)&&H()}),t.onUnmounted(J),{classes:c,styles:m,mainClasses:S,hasLabel:k,labelClasses:d,labelStyles:b,labelStringClasses:w,contentClasses:V,contentStyles:E,contentRef:U,hasTip:T,mTip:q,mIcon:A,renderIcon:M,renderTip:F,tipClasses:O,tipStyles:x,hasFixedTip:ee,fixedTipClasses:K,hasFixedPreTip:G,fixedPreTipClasses:Y}}}),Yi=["prop"];function Xi(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2),t.renderSlot(e.$slots,"fixedPreTip")],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon()),{key:0})):t.createCommentVNode("",!0),e.mTip?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderTip()),{key:1})):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,Yi)}const Ne=Z(Wi,[["render",Xi]]);function Qi(e,o){return{props:{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"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(l,n){const a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:l.span==="stretch",[`${a}__${l.align}`]:!0})),s=ve(),i=ho();go(!1);const c=t.computed(()=>{const u={};if(l.width)l.width!=="auto"&&(u.width=fe(l.width));else if(i&&s){const m=yo(s,!1),h=ko(s,!1);if(m.value&&h){if(m.value.type==="grid"){const p=So(h,m.value,l.span,l.offset);Object.assign(u,p)}else if(m.value.type==="flow"){const p=bo(h,m.value,l.span,l.offset,l.width);Object.assign(u,p)}}}return u});return()=>{const u=[];if(n.slots.default){const h=n.slots.default();if(l.divide)for(let p=0;p<h.length;p++){if(p>0){const k=t.h("div",{class:{[`${a}__divide`]:!0}});u.push(k)}u.push(h[p])}else Reflect.apply([].push,u,h)}const m={class:r.value,style:c.value};return t.h("div",m,u)}}}}const{componentName:Gi,create:Zi,scope:PB}=j("row-item"),An=Zi(Qi(Gi));function Ji(e,o){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(l,n){const a=ve(),r=ho();go(!1);const s=t.computed(()=>r&&a?yo(a,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:l.span==="stretch"})),u=t.computed(()=>{const m={};if(l.width)l.width!=="auto"&&(m.width=fe(l.width));else{const h=r&&a?ko(a,!1):null;if(s.value&&h){if(s.value.type==="grid"){const p=So(h,s.value,l.span,l.offset);Object.assign(m,p)}else if(s.value.type==="flow"){const p=bo(h,s.value,l.span,l.offset,l.width);Object.assign(m,p)}}}return m});return()=>{const m={class:c.value,style:u.value};return n.slots&&typeof n.slots.default=="function"?t.h("div",m,n.slots.default()):t.h("div",m)}}}}const{componentName:_i,create:ec,scope:RB}=j("slot-item"),Vn=ec(Ji(_i)),pr={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 tc(e,o,l,n){return{props:{...ue,...me,...pr},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ve(t.computed(()=>a.disabled)),i=Ee(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),{toLocaleRefs:u}=se.useFoxI18n(o),m=u(a,["placeholder"]),h=t.ref(!1),p=qe(a,"modelValue"),k=e,g=t.computed(()=>({[k]:!0,[`${k}__disabled`]:s.value,[`${k}__readonly`]:i.value})),y=Ae(t.computed(()=>a.textAlign),"textAlign"),S=t.computed(()=>{const T={};return y.value&&(T["text-align"]=y.value),T}),d=T=>{let A=T.target.value;a.type==="digit"&&(A=nn(A,!0)),a.type==="number"&&(A=nn(A,!1)),a.maxLength&&A.length>Number(a.maxLength)&&(A=A.slice(0,Number(a.maxLength))),p.value=A,c("update:modelValue",A,T),c("change",A,T)};let f=qe(a,"hintText"),b=t.ref(!1);const w=T=>{let A=T.target.value;h.value=!0,ce(f.value)||(b.value=!0),c("focus",A,T)},V=T=>{setTimeout(()=>{b.value&&(b.value=!1),h.value=!1},0);let A=T.target.value;a.maxLength&&A.length>Number(a.maxLength)&&(A=A.slice(0,Number(a.maxLength))),c("blur",A,T)},E=t.computed(()=>({[`${k}__append`]:!0})),I=t.computed(()=>{const T={};return r.slots.append&&!D.value&&!L.value&&(T.display="none"),T}),D=t.computed(()=>ge(a.unit)>0),z=t.computed(()=>!L.value),N=t.computed(()=>({hidden:!z.value})),B=T=>{p.value="",c("update:modelValue","",T),c("change","",T),c("clear","")},R=t.computed(()=>he(a.clearable)&&!s.value&&!i.value),L=t.computed(()=>{let T=ge(p.value)>0;return he(a.clearable)&&T&&h.value}),$=t.computed(()=>({action:!0,hidden:!L.value}));return()=>{const T={class:g.value,style:S.value,type:a.type,maxlength:a.maxLength,placeholder:m.placeholder.value,disabled:s.value,readonly:i.value,value:p.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:d,onFocus:w,onBlur:V},q=[],A=t.h("input",T);q.push(A);const O=[];if(R.value){const K={class:["action-icon"]},U=t.h(n,K),P={class:$.value,onClick:B},v=t.h("view",P,{default:()=>[U]});O.push(v)}if(D.value){const K=t.h("view",{class:N.value},[a.unit]);O.push(K)}const x={class:E.value,style:I.value},M=t.h("view",x,{default:()=>O});q.push(M);const F={default:()=>q};F.label=r.slots.default,F.prepend=r.slots.prepend,F.append=r.slots.append,F.fixedPreTip=r.slots.fixedPreTip,F.fixedTip=r.slots.fixedTip;const Y={...ln(a,pr),hintText:f.value,hintVisible:b.value};return t.h(l,Y,F)}}}}const{componentName:oc,create:nc,scope:lc}=j("input-item"),Tn=nc(tc(oc,lc,Ne,te.CircleClose));function hr(e,o=0){let l=`${e}`,n=l.indexOf(".");if(n==-1)return l;let a=n;for(let r=l.length-1;r>=n;r--)if(l.charAt(r)!="0"){a=r;break}return a-n<o?a=n+o+1:a!=n&&(a+=1),a>l.length?l=l.padEnd(a,"0"):l=l.substring(0,a),l}function gr(e,o,l=20){if(typeof o=="string"&&(o=pe(o)),o==1||o==-1)return`${e}`;if(o==0)return"0";if(o>0){let n=Va(`${e}`,`${o}`);return hr(n)}else{let n=Zo(`${e}`,Ta(`${o}`),20);return hr(n)}}function ac(e,o=-1,l=!1,n=3,a=","){return Gt(e,o,l,n,a)}function yr(e,o,l,n,a=!0){if(e=="")return"";if(e=$a(e),o=pe(o),o==1)return e;if(n)e=gr(e,o),l&&(e=="0"&&a?e=`${e}.`.padEnd(pe(l)+2,"0"):e=Zo(e,1,pe(l)));else{let r=-1*o;e=gr(e,r)}return e}function kr(e,o){let l={maxValid:!0,minValid:!0,message:""};if(o.min!==void 0){let n=he(o.minInclude),a=Jo(e,o.min);if(n&&a==-1||!n&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";l.message=r.replace("{0}",o.min),l.minValid=!1}}if(o.max!=null){let n=he(o.maxInclude),a=Jo(e,o.max);(n&&a==1||!n&&(a==0||a==1))&&(l.maxValid=!1)}return l}const br={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,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function rc(e,o,l,n){return{props:{...ue,...me,...br},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ve(t.computed(()=>a.disabled)),i=Ee(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),u=t.ref(!1),m=qe(a,"modelValue"),h=t.ref("");t.watch([()=>m.value,()=>a.rates,()=>a.precision],([x,M,F])=>{if(ce(x)){h.value="";return}const G=yr(x,M,F,!1);h.value!==G&&(h.value=G)},{immediate:!0});const p=t.computed(()=>{let x="";return u.value&&(x=h.value),x}),{t:k}=se.useFoxI18n(o),g=t.computed(()=>{let x=a.placeholder??"";return!u.value&&!ce(h.value)?x=ac(h.value,a.decimalLength,a.autoPadding,a.digits,a.separator):x=ce(x)?k(["placeholder"]):x,x}),y=e,S=t.computed(()=>({[y]:!0,[`${y}__disabled`]:s.value,[`${y}__placeholder`]:h.value.length>0})),d=Ae(t.computed(()=>a.textAlign),"textAlign"),f=t.computed(()=>{const x={};return d.value&&(x["text-align"]=d.value),x}),b=t.ref(""),w=t.computed(()=>{let x=b.value;return ce(x)&&(x=a.errorTip??""),x}),V=t.ref(""),E=t.ref(!1),I=x=>{let F=x.target.value;if(ce(F)){h.value="",m.value="",c("update:modelValue","",x),c("change","",x),he(a.showTip)&&E.value&&(E.value=!1);return}if(F.length>=2){let G=F;if(G.charAt(0)=="-"&&(G=G.substring(1)),G.length>=2&&G.charAt(0)=="0"&&G.charAt(1)!="."){t.triggerRef(h);return}}if(F!="-"){if(!xa(F)){t.triggerRef(h);return}if(a.integerLength!=-1&&La(F)>Number(a.integerLength)){t.triggerRef(h);return}if(a.decimalLength&&a.decimalLength!=-1&&Oa(F)>Number(a.decimalLength)){t.triggerRef(h);return}let G=kr(F,a);if(G.maxValid===!1){b.value=G.message,t.triggerRef(h);return}}else if(a.min!=null&&pe(a.min)>=0){t.triggerRef(h);return}V.value=F,he(a.showTip)&&(E.value=F.length>0),h.value=F,m.value=yr(F,a.rates,a.precision,!0),c("update:modelValue",m.value,x),c("change",m.value,x)},D=x=>{if(u.value=!0,he(a.showTip)){let M=h.value;ce(M)&&(M=a.hintText),ce(M)||(V.value=M,E.value=!0)}b.value="",c("focus",m.value,x)},z=x=>{if(setTimeout(()=>{u.value=!1,he(a.showTip)&&E.value===!0&&(E.value=!1)},0),!ce(h.value)){let M=kr(h.value,a);if(M.minValid===!1||M.maxValid===!1){b.value=M.message;return}}c("update:modelValue",m.value,x),c("blur",m.value,x)},N=t.computed(()=>({[`${y}__append`]:!0})),B=t.computed(()=>{const x={};return r.slots.append&&!R.value&&!A.value&&(x.display="none"),x}),R=t.computed(()=>ge(a.unit)>0),L=t.computed(()=>!A.value),$=t.computed(()=>({hidden:!L.value})),T=x=>{m.value="",c("update:modelValue","",x),c("change","",x),c("clear","")},q=t.computed(()=>he(a.clearable)&&!s.value&&!i.value),A=t.computed(()=>{let x=ge(m.value)>0;return he(a.clearable)&&x&&u.value}),O=t.computed(()=>({action:!0,hidden:!A.value}));return()=>{let x={class:S.value,style:f.value,type:"digit",maxlength:a.maxLength,placeholder:g.value,disabled:s.value,readonly:i.value,value:p.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:I,onFocus:D,onBlur:z},M=[],F=t.h("input",x);M.push(F);let G=[];if(q.value){const H={class:["action-icon"]},J=t.h(n,H),X={class:O.value,onClick:T},W=t.h("view",X,{default:()=>[J]});G.push(W)}if(R.value){const H=t.h("view",{class:$.value},[a.unit]);G.push(H)}const Y={class:N.value,style:B.value},ee=t.h("view",Y,{default:()=>G});M.push(ee);const K={default:()=>M};if(r.slots.default){let H=r.slots.default();K.label=()=>H}if(r.slots.prepend){let H=r.slots.prepend();K.prepend=()=>H}if(r.slots.append){let H=r.slots.append();K.append=()=>H}let P={...ln(a,br),errorTip:w.value,hintText:V.value,hintVisible:E.value,hintType:"number"};return t.h(l,P,K)}}}}const{componentName:sc,create:ic,scope:cc}=j("money-item"),$n=ic(rc(sc,cc,Ne,te.CircleClose)),En={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:dc,create:uc,scope:fc}=j("textarea"),mc=uc({props:{...En},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:o}){let{toLocaleRefs:l}=se.useFoxI18n(fc);const n=l(e,["placeholder"]),a=t.ref(),r=t.computed(()=>{const p=dc;return{[p]:!0,[`${p}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const s=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let p=a.value;p.style.height="auto";let k=p.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:g,minHeight:y}=e.autosize;g!==void 0&&(k=Math.min(k,g)),y!==void 0&&(k=Math.max(k,y))}k&&(p.style.height=k+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(p,k)=>{e.maxLength&&p.length>Number(e.maxLength)&&(p=p.substring(0,Number(e.maxLength))),o("update:modelValue",p,k),o("change",p,k)};return{...n,textareaRef:a,classes:r,styles:s,change:p=>{const k=p.target;c(k.value,p)},focus:p=>{e.disabled||e.readonly||o("focus",p)},blur:p=>{if(e.disabled||e.readonly)return;let g=p.target.value;c(g,p),o("blur",{value:g,event:p})}}}}),pc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],hc={key:0,class:"fox-textarea__limit"};function gc(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:t.normalizeStyle(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:o[0]||(o[0]=(...s)=>e.change&&e.change(...s)),onBlur:o[1]||(o[1]=(...s)=>e.blur&&e.blur(...s)),onFocus:o[2]||(o[2]=(...s)=>e.focus&&e.focus(...s)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,pc),e.limitShow?(t.openBlock(),t.createElementBlock("view",hc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const wo=Z(mc,[["render",gc]]);function yc(e,o,l,n){return{props:{...ue,...me,...En},emits:["update:modelValue","change","blur","focus"],setup(a,r){const s=Ve(t.computed(()=>a.disabled)),i=Ee(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),u=qe(a,"modelValue"),m=y=>{u.value=y,c("update:modelValue",y,{}),c("change",y,{})};let h=qe(a,"hintText"),p=t.ref(!1);const k=y=>{ce(h.value)||(p.value=!0),c("focus",u.value,y)},g=y=>{setTimeout(()=>{p.value&&(p.value=!1)},0),c("blur",u.value,y)};return()=>{const S={...ke(a,En),disabled:s.value,readonly:i.value,value:u.value,"onUpdate:modelValue":m,onFocus:k,onBlur:g},d=[],f=t.h(n,S);d.push(f);const b={default:()=>d};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 w=ke(a,me,ue);return t.h(l,w,b)}}}}const{componentName:kc,create:bc,scope:Sc}=j("textarea-item"),Dn=bc(yc(kc,Sc,Ne,wo));function Cc(e){return e===window}const $e=e=>{const o=t.unref(e);if(Cc(o)){const l=o.innerWidth,n=o.innerHeight;return{top:0,left:0,right:l,bottom:n,width:l,height:n}}return o&&o.getBoundingClientRect?o.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},nt={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},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,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:{}}},Sr=2e3;let Cr=Sr;const wc=(e,o)=>({components:o,props:{...nt},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:n}){const a=t.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),r=t.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),s=t.computed(()=>({zIndex:a.zIndex,transitionDuration:`${l.duration}s`,...l.style})),i=t.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),c=()=>{l.zIndex!==Sr&&(Cr=Number(l.zIndex)),n("update:visible",!0),a.zIndex=++Cr,l.destroyOnClose&&(a.showSlot=!0),n("open")},u=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+l.duration*1e3)},m=y=>{n("click-pop",y)},h=y=>{y.stopPropagation(),n("click-close-icon",y),n("update:visible",!1)},p=y=>{n("click-overlay",y),l.closeOnClickOverlay&&n("update:visible",!1)},k=y=>{n("opend",y)},g=y=>{n("closed",y)};return t.watch(()=>l.visible,y=>{l.visible?c():u()}),t.watch(()=>l.closeable,y=>{a.closed=y}),{...t.toRefs(a),popStyle:s,transitionName:i,classes:r,onClick:m,onClickCloseIcon:h,onClickOverlay:p,onOpened:k,onClosed:g}}});let $t=0;const wr="fox-overflow-hidden",Nr=()=>Ye?document.body:{classList:[]},Nc=e=>[()=>{if(e())try{!$t&&Nr().classList.add(wr),$t++}catch{}},()=>{if(e()&&$t)try{$t--,!$t&&Nr().classList.remove(wr)}catch{}}],Bc={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:Ac,create:Vc}=j("overlay"),Tc=Vc({props:{...Bc},emits:["click","update:visible"],setup(e,{emit:o}){const[l,n]=Nc(()=>e.lockScroll),a=t.computed(()=>({[Ac]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,i=>{i?l():n()}),{classes:a,style:r,onClick:i=>{o("click",i),e.closeOnClickOverlay&&o("update:visible",!1)}}}});function $c(e,o,l,n,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const lt=Z(Tc,[["render",$c]]),{componentName:Ec,create:Dc}=j("popup"),Ic=Dc(wc(Ec,{FoxOverLay:lt,Close:te.Close}));function qc(e,o,l,n,a,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:o[1]||(o[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[0]||(o[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const de=Z(Ic,[["render",qc]]),Br=10;function zc(e,o){return e>o&&e>Br?"horizontal":o>e&&o>Br?"vertical":""}function Ue(){const e=t.ref(0),o=t.ref(0),l=t.ref(0),n=t.ref(0),a=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),u=t.ref(0),m=t.ref(""),h=()=>m.value==="vertical",p=()=>m.value==="horizontal",k=()=>{s.value=0,i.value=0,c.value=0,u.value=0,m.value="",l.value=0};return{move:S=>{const d=S.touches[0];s.value=d.clientX-e.value,i.value=d.clientY-o.value,a.value=d.clientX,r.value=d.clientY,c.value=Math.abs(s.value),u.value=Math.abs(i.value),n.value=Date.now()-l.value,m.value||(m.value=zc(c.value,u.value))},start:S=>{k(),e.value=S.touches[0].clientX,o.value=S.touches[0].clientY,l.value=Date.now()},reset:k,startX:e,startY:o,startTime:l,duration:n,moveX:a,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:u,direction:m,isVertical:h,isHorizontal:p}}const Ar={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:1e3}},In={...nt,...Ar,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,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let Vr=36;function Mc(){return Vr}function Pc(e){Vr=e}function Re(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function qn(e,o){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?o[e.childrenKey]:o.children??null}function Rc(e,o,l){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(o[e.childrenKey]=l),o.children=l}function at(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function Tr(e,o){return typeof e.itemOptions=="function"?e.columnOptions(o):e.columnOptions}let xc=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const a=ut(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(De(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function Lc(){const e=t.getCurrentInstance();return new xc(e.proxy)}function $r(e,o,l){const n=Re(e,o),a=Re(e,l);if(n!==a)return!1;const r=at(e,o),s=at(e,l);return r===s}function Oc(e,o,l,n){if(l.length==0)return[];Array.isArray(o)||(o=[o]);const a=[],r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<o.length&&s<l.length;s++){const i=o[s];let u=l[s].findIndex(m=>{if(r==="text")return Re(e,m)===i;if(r==="value"){let h=at(e,m);return h==null&&(h=Re(e,m)),h===i}else if(r==="item")return $r(e,m,i)});if(u==-1)break;a.push(u)}else{let s=l[0];for(let i=0;i<o.length;i++){const c=o[i];let u=s.findIndex(h=>{if(r==="text")return Re(e,h)===c;if(r==="value"){let p=at(e,h);return p==null&&(p=Re(e,h)),p===c}else if(r==="item")return $r(e,h,c)});if(u==-1)break;a.push(u);const m=qn(e,s[u]);if(!Array.isArray(m))break;s=m}}return a}function Er(e,o,l,n){if(l.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<o.length&&s<l.length;s++){const i=l[s];let c=o[s];c<0&&c>=i.length&&(c=0);const u=i[c],m=Re(e,u);if(a.texts.push(m),a.items.push(u),r==="text")a.values.push(m);else if(r==="value"){let h=at(e,u);h==null&&(h=m),a.values.push(h)}else a.values.push(u)}else{let s=l[0];for(let i=0;i<o.length;i++){let c=o[i];c<0&&c>=s.length&&(c=0);const u=s[c],m=Object.assign({},u);m.children=null;const h=Re(e,u);if(a.texts.push(h),a.items.push(m),r==="text")a.values.push(h);else if(r==="value"){let p=at(e,u);p==null&&(p=h),a.values.push(p)}else a.values.push(m);if(!Array.isArray(u.children))break;s=u.children}}return a}function Dr(e){return{text:e,value:e}}const Fc=15,Kc=300,vc=200,{create:Uc}=j("picker-column");function Hc(e){e.stopPropagation()}function jc(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&Hc(e)}const Wc=Uc({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},...Ar},emits:["click","change","update:modelValue"],setup(e,{emit:o}){const l=t.computed(()=>({"fox-picker__list":!0})),n=t.computed(()=>({height:`${pe(e.visibleItemCount)*+e.itemHeight}px`})),a=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=D=>D>=h.currIndex+8||D<=h.currIndex-8,i=t.computed(()=>({transition:`transform ${h.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${h.deg})`,top:`${r.value}px`})),c=D=>`transform: rotate3d(1, 0, 0, ${-h.rotation*D}deg) translate3d(0px, 0px, 104px)`,u=t.computed(()=>({transition:`transform ${h.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${h.scrollDistance+r.value}px, 0)`})),m=t.ref(null),h=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),p=t.toRef(e,"source"),k=D=>Re(e,D),g=D=>at(e,D),y=Ue(),S=()=>{h.transitionEndTrigger&&(h.transitionEndTrigger(),h.transitionEndTrigger=null)},d=(D,z=!1,N=!1)=>{if(h.currIndex=D,z){const B=()=>{h.moving=!1,o("update:modelValue",D),o("change",D)};N?h.transitionEndTrigger=B:B()}},f=(D,z,N)=>{let B=D+h.startDistance;if(z==="end"){const R=-(p.value.length-1)*e.itemHeight;B<R&&(B=R,(!N||N<=0)&&(N=e.swipeDuration)),B>0&&(B=0,(!N||N<=0)&&(N=e.swipeDuration));let L=Math.abs(Math.round(-B/e.itemHeight));const $=-L*e.itemHeight,T=`${(L+1)*h.rotation}deg`,q=N?N>0:!1;d(L,!0,q),b($,z,N,T)}else{let R=(-B/e.itemHeight+1)*h.rotation;const L=(p.value.length+1)*h.rotation,$=0;if(R=Math.min(Math.max(R,$),L),e.threeDimensional&&(R<$||R>L))return;b(B,null,void 0,`${R}deg`)}},b=(D=0,z,N=vc,B)=>{z==="end"?h.scrollTime=N:h.scrollTime=0,h.deg=B,h.scrollDistance=D},w=(D,z)=>(D=Math.abs(D/z)/.003*(D<0?-1:1),D),V=D=>{e.readonly||(h.startDistance=h.scrollDistance,y.start(D),h.transitionEndTrigger=null)},E=D=>{e.readonly||(h.moving=!0,y.move(D),y.isVertical()&&(h.moving=!0,jc(D,!0)),f(y.deltaY.value,"",0))},I=()=>{if(e.readonly)return;const D=y.deltaY.value,z=y.duration.value;if(z<Kc&&Math.abs(D)>Fc){const B=w(D,z);f(B,"end",e.swipeDuration)}else f(D,"end",0)};return t.watch(()=>e.modelValue,D=>{if(h.currIndex!==D){h.currIndex=D;const z=-D*e.itemHeight;f(z)}}),t.onMounted(()=>{const D=-e.modelValue*e.itemHeight;f(D)}),{classes:l,styles:n,contentClasses:a,source:p,itemText:k,itemValue:g,...t.toRefs(h),roller:m,getItemText:Re,onTouchStart:V,onTouchMove:E,onTouchEnd:I,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:u,stopMomentum:S}}}),Yc={key:1,class:"fox-picker__item-tile"};function Xc(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:o[4]||(o[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",Yc,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Ir=Z(Wc,[["render",Xc]]),{create:Qc,componentName:Gc,scope:Zc}=j("picker"),Jc=Qc({components:{[Ir.name]:Ir,[de.name]:de},props:{...In},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:o}){const{toLocaleRefs:l,t:n}=se.useFoxI18n(Zc),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Mc());t.watch(()=>e.visible,N=>{N&&s.value<=0&&setTimeout(()=>{if(r.value){const B=$e(r.value);s.value=B.height,Pc(s.value)}},50)});const i=t.computed(()=>({[Gc]:!0})),c=Lc(),u=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([N,B])=>{if(N){let R=await c.load("picker",N,B);if(R.length>0){let L=R[0];if(Array.isArray(L)){if(typeof L[0]=="string"){let $=R,T=[];$.forEach(q=>{let A=q.map(O=>Dr(O));T.push(A)}),m.value=T}else m.value=R;u.value="multipleColumn"}else if(typeof L=="string"){let $=R,T=[],q=$.map(A=>Dr(A));T.push(q),m.value=T,u.value="singleColumn"}else{const $=qn(e,L);Array.isArray($)?(u.value="cascade",m.value=[R]):(u.value="singleColumn",m.value=[R])}}else m.value=[]}},{immediate:!0});const h=t.ref([]),p=t.ref(e.modelValue),k=t.ref([]),g=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([N,B])=>{let R=Oc(e,N,B,u.value);if(!Me(R,g.value)){g.value=R;let L=Er(e,R,B,u.value);L&&(h.value=L.texts,o("update:text",h.value))}});const y=t.ref(e.visible);t.watch(()=>e.visible,N=>{y.value=N});const S=N=>{let B=Tr(e,N);return De(B)?B.defaultIndex??0:0},d=N=>{if(e.readonly===!0)return!0;let B=Tr(e,N);return De(B)?B.readonly??!1:!1},f=(N,B)=>{let R=g.value;R[N]=B;for(let $=0;$<N;$++)R[$]==null&&(R[$]=S($));if(u.value==="cascade")for(let $=N+1;$<w.value.length;$++){let T=S($);$<R.length?R[$]=T:R.push(T)}else for(let $=R.length;$<w.value.length;$++){let T=S($);R.push(T)}g.value=R;let L=Er(e,R,m.value,u.value);L&&(h.value=L.texts,p.value=L.values,k.value=L.items)},b=N=>N<g.value.length?g.value[N]:S(N),w=t.computed(()=>{if(m.value.length==0)return[];if(u.value=="singleColumn"||u.value=="multipleColumn")return m.value;let N=[],B=0,R=m.value[0],L=0;for(;;){let $=R.map(A=>{let O=Object.assign({},A);return Rc(e,O,null),O});N.push($),B>=g.value.length?L=0:L=g.value[B],(L<0||L>=R.length)&&(L=0);let T=R[L];const q=qn(e,T);if(!Array.isArray(q))break;R=q,B++}return N}),V=t.computed(()=>pe(+e.visibleItemCount-1)/2*s.value);return{...a,pickerLineRef:r,classes:i,columns:w,dataType:u,show:y,itemHeight:s,top:V,isReadonly:d,getIndex:b,change:(N,B)=>{f(N,B)},close:()=>{o("close"),o("update:visible",!1)},confirm:()=>{if(e.readonly===!0){o("update:visible",!1);return}let N=m.value.length-1;for(;N>=0&&!(g.value[N]===null||g.value[N]===void 0);N--);if(N>=0&&f(N,0),u.value==="singleColumn"){let B=p.value.length>0?p.value[0]:"",R=k.value.length>0?k.value[0]:null;e.readonly||(o("update:modelValue",B),o("update:text",h.value),o("change",B,R)),o("confirm",B)}else e.readonly||(o("update:modelValue",p.value),o("update:text",h.value),o("change",p.value,k.value)),o("confirm",p.value);o("update:visible",!1)},clear:()=>{if(e.readonly===!0){o("update:visible",!1);return}u.value==="singleColumn"?(o("update:modelValue",""),o("change","")):(o("update:modelValue",[]),o("change",[])),o("clear",""),o("update:visible",!1)}}}}),_c={class:"fox-picker__bar"},ed={class:"fox-picker__title"},td={class:"fox-picker__bar__action"},od={class:"fox-picker__column"};function nd(e,o,l,n,a,r){const s=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":o[3]||(o[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",_c,[t.createElementVNode("view",ed,t.toDisplayString(e.title),1),t.createElementVNode("view",td,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:o[0]||(o[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:o[1]||(o[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:o[2]||(o[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",od,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(u),"column-index":u,modelValue:e.getIndex(u),"onUpdate:modelValue":m=>e.change(u,m),"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,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const pt=Z(Jc,[["render",nd]]);function ld(e,o,l,n,a,r,s=!0){return{props:{...ue,...me,...In,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"],setup(i,c){const u=Ve(t.computed(()=>i.disabled)),m=Ee(t.computed(()=>i.readonly)),{emitEvent:h}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:p}=se.useFoxI18n(o),k=p(i,["placeholder"]),g=t.ref(!1),y=qe(i,"modelValue"),S=t.ref([]),d=t.computed(()=>Array.isArray(S.value)?S.value.join(i.separator):S.value),f="fox-input-item",b=t.computed(()=>({[f]:!0,[`${f}__disabled`]:u.value})),w=Ae(t.computed(()=>i.textAlign),"textAlign"),V=t.computed(()=>{const ee={};return w.value&&(ee["text-align"]=w.value),ee}),E=t.ref(!1),I=()=>{E.value=!0},D=ee=>{E.value=ee},z=ee=>{y.value=ee,h("update:modelValue",ee)},N=(ee,K)=>{h("change",ee,K)},B=ee=>{let U=ee.target.value;g.value=!0,h("focus",U,ee)},R=ee=>{setTimeout(()=>{g.value=!1},0);let U=ee.target.value;i.maxLength&&U.length>Number(i.maxLength)&&(U=U.slice(0,Number(i.maxLength))),h("blur",U,ee)},L=ee=>{S.value=ee,Array.isArray(ee)&&ee.length===0?h("update:text",ee[0]):h("update:text",ee)},$=t.computed(()=>({[`${f}__append`]:!0})),T=t.computed(()=>ge(i.unit)>0),q=t.computed(()=>ge(i.unit)>0&&!g.value),A=t.computed(()=>({hidden:!q.value})),O=ee=>{y.value="",h("update:modelValue","",ee),h("change","",ee),h("clear","")},x=t.computed(()=>i.clearable&&!u.value&&!m.value),M=t.computed(()=>ge(y.value)>0&&g.value),F=ee=>{M.value?O(ee):I()},G=t.computed(()=>M.value&&x.value?n:a),Y=t.computed(()=>({action:!0}));return()=>{const ee={class:b.value,style:V.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:I,onFocus:B,onBlur:R};s&&(ee.disabled=!0);const K=[],U=t.h("input",ee);K.push(U);const P=[],v={class:["action-icon"]},H=t.h(G.value,v),J={class:Y.value,onClick:F},X=t.h("view",J,{default:()=>[H]});if(P.push(X),T.value){const Se=t.h("view",{class:A.value},[i.unit]);P.push(Se)}const W={class:$.value},Q=t.h("view",W,{default:()=>P});K.push(Q);const _={default:()=>K};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const oe=ke(i,In);oe.disabled=!1,oe.readonly=u.value||m.value,oe.visible=E.value,oe["onUpdate:visible"]=D,oe.modelValue=y.value,oe["onUpdate:modelValue"]=z,oe.text=S.value,oe["onUpdate:text"]=L,oe.onChange=N;const ne=t.h(r,oe);_.hide=()=>[ne];const ae=ke(i,me,ue);return t.h(l,ae,_)}}}}const{componentName:ad,create:rd,scope:sd}=j("picker-item"),zn=rd(ld(ad,sd,Ne,te.CircleClose,te.ArrowRight,pt,!1)),No=(e,o,l)=>e.map(n=>{const{value:a="value",text:r="text",children:s="children"}=l??{},{[a]:i,[r]:c,[s]:u,...m}=n,h={loading:!1,...m,level:o?(o&&o.level||0)+1:0,value:i,text:c,children:u,_parent:o};return h.children&&h.children.length&&(h.children=No(h.children,h,l)),h}),qr=(e,o)=>{let l=0,n;for(;(n=e[l++])&&o(n)!==!0;)n.children&&n.children.length&&qr(n.children,o)},id={topId:null,idKey:"id",pidKey:"pid",sortKey:""},cd=(e,o)=>{const l={...id,...o||{}},{topId:n,idKey:a,pidKey:r,sortKey:s}=l;let i=[],c={};return e.forEach(u=>{u={...u};const{[a]:m,[r]:h}=u,p=c[h]=c[h]||[];!i.length&&h===n&&(i=p),p.push(u),u.children=c[m]||(c[m]=[])}),s&&Object.keys(c).forEach(u=>{c[u].length>1&&c[u].sort((m,h)=>m[s]-h[s])}),c=null,i},dd=/scroll|auto|overlay/i,zr=window;function ud(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Mn(e,o=zr){let l=e;for(;l&&l!==o&&ud(l);){const{overflowY:n}=window.getComputedStyle(l);if(dd.test(n))return l;l=l.parentNode}return o}function Mr(e,o=zr){const l=t.ref();return t.onMounted(()=>{e.value&&(l.value=Mn(e.value,o))}),l}const{create:fd}=j("sticky"),md=fd({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:o}){const l=t.ref(),n=t.ref(),a=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>a.fixed?{height:`${a.height}px`}:{}),i=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)}:{}),c=()=>{const u=e.container;if(!l.value&&!u)return;const m=$e(l),h=n.value,p=$e(h),k=$e(u);a.height=m.height;const g=()=>{let S=!1;if(e.position==="top")S=u?r.value>m.top&&k.bottom>0:r.value>m.top;else{const d=document.documentElement.clientHeight;S=u?k.bottom>0&&d-r.value-p.height>k.top:d-r.value<m.bottom}return S},y=()=>{if(u)if(e.position==="top"){const S=k.bottom-r.value-p.height;return S<0?S:0}else{const S=document.documentElement.clientHeight,d=k.bottom-(S-r.value);return d<0?d:0}return 0};a.transform=y(),a.fixed=g()};return t.watch(()=>a.fixed,u=>{o("change",u)}),t.onMounted(()=>{c(),Mn(l.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Mn(l.value).removeEventListener("scroll",c)}),{rootRef:l,rootStyle:s,stickyRef:n,stickyStyle:i}}});function pd(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const Et=Z(md,[["render",pd]]),hd=(e,o,l,n)=>{const a=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(l&&l.getEnv()!==l.ENV_TYPE.WEB){let p=await n(a,l);r.value.width=p.width||0,r.value.height=p.height||0}else r.value.width=a.value?.clientWidth||0,r.value.height=a.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=Ue();let u="";const m=(p,k)=>{let g=p;switch(e.direction=="horizontal"?(u=p>0?"right":"left",g=Math.abs(g)/r.value.width*100):(u=k>0?"bottom":"top",g=k,g=Math.abs(g)/r.value?.height*100),g>85&&(g=85),u){case"left":case"top":o.isEnd()&&(g=0,i.moving=!1);break;case"right":case"bottom":g=-g,o.isBegin()&&(g=0,i.moving=!1);break}i.offset=g};return{touchMethods:{onTouchStart(p){e.swipeable&&c.start(p)},onTouchMove(p){e.swipeable&&(c.move(p),i.moving=!0,m(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(p.preventDefault(),p.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(p.preventDefault(),p.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,u){case"left":case"top":i.offset>35&&o.next();break;case"right":case"bottom":i.offset<-35&&o.prev();break}}},touchState:i,tabsContentRef:a}};class gd{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:yd}=j("tabs"),kd=yd({components:{[Et.name]:Et,JoySmile:te.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:o,slots:l}){const n=t.ref(null);let a;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=N=>{N.forEach((B,R)=>{let L=B.type;if(L=L.name||L,L=="fox-tab-pane"){let $=new gd;if(B.props?.title||B.props?.["pane-key"]||B.props?.paneKey){let T=_e(B.props?.["pane-key"]),q=T=="number"||T=="string"?String(B.props?.["pane-key"]):null,A=_e(B.props?.paneKey),O=A=="number"||A=="string"?String(B.props?.paneKey):null;$.title=B.props?.title,$.paneKey=q||O||String(R),$.disabled=B.props?.disabled}r.value.push($)}else{if(B.children==" ")return;Array.isArray(B.children)&&s(B.children)}})},i=t.ref(e.modelValue||0),c=N=>{let B=r.value.findIndex(R=>R.paneKey==N);r.value.length==0||B==-1||(i.value=B)},u=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),h=t.ref([]),p=N=>{const B=m.value,R=h.value;if(!B||!R||!R[i.value])return;const L=R[i.value];let $=0;e.direction==="vertical"?$=L.offsetTop-B.offsetTop+10-(B.offsetHeight-L.offsetHeight)/2:$=L.offsetLeft-(B.offsetWidth-L.offsetWidth)/2,k(B,$,N?0:.3,e.direction)},k=(N,B,R,L)=>{let $=0;const T=L==="horizontal"?N.scrollLeft:N.scrollTop,q=R===0?1:Math.round(R*1e3/16);function A(){L==="horizontal"?N.scrollLeft+=(B-T)/q:N.scrollTop+=(B-T)/q,++$<q&&Xe(A)}A()},g=(N=l.default?.())=>{r.value=[],N=N?.filter(B=>typeof B.children!="string"),N&&N.length&&s(N),c(e.modelValue),t.nextTick(()=>{p()})},y=N=>{a=N.fixed};t.watch(()=>l.default?.(),N=>{g(N)});const S=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,N=>{if(c(N),p(),a){let B=$e(n.value).top+S(),R=Math.ceil(B-e.top);window.scrollTo({top:R,behavior:"smooth"})}}),t.onMounted(g),t.onActivated(g);const d={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,d.updateValue(r.value[i.value])},prev:()=>{i.value-=1,d.updateValue(r.value[i.value])},updateValue:N=>{o("update:modelValue",N.paneKey),o("change",N)},tabChange:(N,B)=>{o("click",N),!(N.disabled||i.value==B)&&(i.value=B,d.updateValue(N))},setTabItemRef:(N,B)=>{h.value[B]=N}},{tabsContentRef:f,touchState:b,touchMethods:w}=hd(e,d),V=t.computed(()=>{let N=i.value*100;b.moving&&(N+=b.offset);let B={transform:e.direction=="horizontal"?`translate3d(-${N}%, 0, 0)`:`translate3d( 0,-${N}%, 0)`,transitionDuration:b.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(B={}),B}),E=t.computed(()=>({background:e.background})),I=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),D=t.computed(()=>{if(!e.titleGutter)return{};const N=fe(e.titleGutter);return e.direction==="vertical"?{marginTop:N,marginBottom:N}:{marginLeft:N,marginRight:N}}),z=t.computed(()=>l.fixedTitle);return{navRef:m,tabsContentRef:f,titles:r,contentStyle:V,tabsNavStyle:E,titleStyle:D,tabsActiveStyle:I,container:n,getScrollY:u,onStickyScroll:y,...d,...w,hasFixedTitle:z}}}),bd=["onClick"],Sd={key:0,class:"fox-tabs__titles-fixed-item"},Cd=["onClick"],wd={key:0,class:"fox-tabs__titles-fixed-item"};function Nd(e,o,l,n,a,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,u),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,bd))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Sd,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,u),key:c.paneKey,ref_for:!0,ref:m=>e.setTabItemRef(m,u)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Cd))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",wd,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:o[0]||(o[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:o[1]||(o[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:o[2]||(o[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:o[3]||(o[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const Dt=Z(kd,[["render",Nd]]),{create:Bd}=j("tab-pane"),Ad=Bd({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o}){const l=t.inject("tabsOpiton"),n=t.computed(()=>({display:l.animatedTime.value==0&&e.paneKey!=l.activeKey.value?"none":void 0}));return{...l,paneStyle:n}}});function Vd(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const It=Z(Ad,[["render",Vd]]);class Pr{nodes;config;constructor(o,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=No(o,null,this.config)}updateChildren(o,l){l?l.children=No(o,l,this.config):this.nodes=No(o,null,this.config)}getNodeByValue(o){let l;return qr(this.nodes,n=>{if(n.value===o)return l=n,!0}),l}getPathNodesByValue(o){if(!o.length)return[];const l=[];let n=this.nodes;for(;n&&n.length;){const a=n.find(r=>r.value===o[r.level]);if(!a)break;l.push(a),n=a.children}return l}isLeaf(o,l){const{leaf:n,children:a}=o,r=Array.isArray(a)&&!!a.length;return n||!r&&!l}hasChildren(o,l){if(this.isLeaf(o,l))return!1;const{children:a}=o;return Array.isArray(a)&&!!a.length}}const{create:Td,scope:$d}=j("cascader-pane"),Ed=Td({components:{Loading:te.Loading,Checklist:te.Checklist,[Dt.name]:Dt,[It.name]:It},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:o}){const l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),n=t.ref(0),a=t.ref(!1),r=t.ref(e.modelValue),s=t.ref(new Pr([],{})),i=t.ref([]),c=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),u=new Map;let m;const h=async()=>{u.clear(),i.value=[],n.value=0,a.value=!1,m=null;let{options:d}=e;l.value.convertConfig&&(d=cd(d,l.value.convertConfig)),s.value=new Pr(d,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),c.value&&!s.value.nodes.length&&await k({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:s.value.nodes,selectedNode:null}],p()},p=async()=>{const d=r.value;if(d===void 0||!s.value.nodes.length)return;if(d.length===0){n.value=0,i.value=[{nodes:s.value.nodes,selectedNode:null}];return}let f=d;if(c.value&&Array.isArray(d)&&d.length){f=[];let b=s.value.nodes.find(w=>w.value===d[0]);if(b){f=[b.value],a.value=!0;const w=await d.slice(1).reduce(async(V,E)=>{const I=await V;await k(I);const D=I?.children?.find(z=>z.value===E);return D&&f.push(E),Promise.resolve(D)},Promise.resolve(b));await k(w),a.value=!1}}f.length&&d===e.modelValue&&s.value.getPathNodesByValue(f).map((w,V)=>{n.value=V,S.handleNode(w,!0)})},k=async d=>{if(!d)return;if(!l.value.lazyLoad){d.leaf=!0;return}if(s.value.isLeaf(d,c.value)||s.value.hasChildren(d,c.value))return;d.loading=!0;const f=d.root?null:d;let b=u.get(d);b||(b=new Promise(V=>{l.value.lazyLoad?.(d,V)}),u.set(d,b));const w=await b;Array.isArray(w)&&w.length>0?s.value.updateChildren(w,f):d.leaf=!0,d.loading=!1,u.delete(d)},g=d=>{const f=d.map(b=>b.value);r.value=f,o("change",f,d),o("update:modelValue",f,d)},{t:y}=se.useFoxI18n($d),S={async handleNode(d,f){const{disabled:b,loading:w}=d;if(!(!f&&b||!i.value[n.value])){if(s.value.isLeaf(d,c.value)){if(d.leaf=!0,i.value[n.value].selectedNode=d,i.value=i.value.slice(0,d.level+1),!f){const V=i.value.map(E=>E.selectedNode);g(V),o("pathChange",V)}return}if(s.value.hasChildren(d,c.value)){const V=d.level+1;if(i.value[n.value].selectedNode=d,i.value=i.value.slice(0,V),i.value.push({nodes:d.children||[],selectedNode:null}),n.value=V,!f){const E=i.value.map(I=>I.selectedNode);o("pathChange",E)}return}m=d,!w&&(await k(d),m===d&&(i.value[n.value].selectedNode=d,S.handleNode(d,f)))}},handleTabClick(d){m=null,n.value=Number(d.paneKey)},formatTabTitle(d){return d.selectedNode?d.selectedNode.text:y("select")},isSelected(d,f){return d.selectedNode&&d.selectedNode.value===f.value}};return t.watch([l,()=>e.options],()=>{h()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,d=>{d!==r.value&&(r.value=d,p())}),t.watch(()=>e.visible,d=>{d&&Array.isArray(r.value)&&r.value.length>0&&p()}),{panes:i,initLoading:a,tabsCursor:n,...S}}}),Dd={role:"menu",class:"fox-cascader__pane"},Id=["aria-checked","aria-disabled","onClick"],qd={class:"fox-cascader__item__title"},zd=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Md(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-tab-pane"),u=t.resolveComponent("fox-tabs");return t.openBlock(),t.createBlock(u,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":o[0]||(o[0]=m=>e.tabsCursor=m),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(m,h)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(m),key:h},{default:t.withCtx(()=>[t.createElementVNode("view",Dd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.nodes,p=>(t.openBlock(),t.createElementBlock("view",{key:p.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(m,p),disabled:p.disabled}]),"aria-checked":e.isSelected(m,p),"aria-disabled":p.disabled||void 0,role:"menuitemradio",onClick:k=>e.handleNode(p,!1)},[t.createElementVNode("view",qd,t.toDisplayString(p.text),1),p.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Id))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[zd]),_:1}))]),_:1},8,["modelValue","onClick"])}const Pd=Z(Ed,[["render",Md]]),{create:Rd}=j("cascader"),xd=Rd({components:{FoxCascaderPane:Pd,FoxPopup:de},props:{...nt,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:o}){const l=t.ref(e.modelValue),n=t.computed({get(){return e.visible},set(s){o("update:visible",s)}}),a=(s,i)=>{l.value=s,n.value=!1,o("change",s,i),o("update:modelValue",s)},r=s=>{o("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==l.value&&(l.value=s)}),{onChange:a,onPathChange:r,innerValue:l,innerVisible:n}}}),Ld=["innerHTML"];function Od(e,o,l,n,a,r){const s=t.resolveComponent("FoxCascaderPane"),i=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":o[0]||(o[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Ld)):t.createCommentVNode("",!0),t.createVNode(s,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(s,{key:1,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"]))}const Bo=Z(xd,[["render",Od]]);function qt(e,o){const l=e.textKey??"text";return o[l]??""}function zt(e,o){const l=e.valueKey??"value";return o[l]}function Rr(e,o){const l=e.childrenKey??"children";return o[l]}function Ao(e,o=[]){const l={texts:[],values:[]};for(let n=0;n<o.length;n++){const a=o[n],r=qt(e,a),s=zt(e,a);l.texts.push(r),l.values.push(s??"")}return l}function xr(e,o,l,n,a=[]){if(!l)return;const r=l[n];for(let s=0;s<o.length;s++)if(qt(e,o[s])===r){const c=zt(e,o[s])??"",u={[e.textKey]:r,[e.valueKey]:c};a.push(u);const m=Rr(e,o[s]);Array.isArray(m)&&xr(e,m,l,n+1,a);return}}function Lr(e,o,l,n,a=[]){if(!l)return;const r=l[n];for(let s=0;s<o.length;s++)if(zt(e,o[s])===r){const c=qt(e,o[s])??"",u={[e.textKey]:c,[e.valueKey]:r};a.push(u);const m=Rr(e,o[s]);Array.isArray(m)&&Lr(e,m,l,n+1,a);return}}function Pn(e,o,l){if(o===l)return!0;if(o.length!==l.length)return!1;for(let n=0;n<o.length;n++){const a=qt(e,o[n]),r=qt(e,l[n]);if(a!==r)return!1;const s=zt(e,o[n]),i=zt(e,l[n]);if(s!==i)return!1}return!0}let Fd=class{proxy;constructor(o){this.proxy=o}async load(o,l){const n="cascader";if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=ut(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(De(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Kd(){const e=t.getCurrentInstance();return new Fd(e.proxy)}function vd(e,o,l,n,a,r,s=!1){return{props:{...ue,...me,modelValue:{type:[Array,String]},pathNodes:{type:[Array]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes"],setup(i,c){const u=Ve(t.computed(()=>i.disabled)),m=Ee(t.computed(()=>i.readonly)),{emitEvent:h}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:p}=se.useFoxI18n(o),k=p(i,["placeholder"]),g=t.ref(!1),y=Kd(),S=t.ref([]);t.watch([()=>i.source,()=>i.params],async([U,P])=>{U&&(S.value=await y.load(U,P))},{immediate:!0});const d=t.ref([]),f=t.computed(()=>Array.isArray(d.value)?d.value.join(" "):d.value),b=t.ref([]),w=t.ref([]);t.watch([()=>i.modelValue],async([U])=>{if(i.lazy===!0){w.value.length==0&&(d.value=Array.isArray(U)?U:[],b.value=Array.isArray(U)?U:[]);return}if(i.valueType==="item"){let P=U;if(!Pn(i,P,w.value)){w.value=P;let v=Ao(i,P);d.value=v.texts,b.value=v.values}}else if(i.valueType==="text"){let P=U,v=[];if(xr(i,S.value,P,0,v),!Pn(i,v,w.value)){w.value=v;let H=Ao(i,v);P.value=H.texts,b.value=H.values}}else{let P=[];if(Lr(i,S.value,U,0,P),!Pn(i,P,w.value)){w.value=P;let v=Ao(i,P);d.value=v.texts,b.value=v.values}}},{immediate:!0});const V="fox-input-item",E=t.computed(()=>({[V]:!0,[`${V}__disabled`]:u.value})),I=Ae(t.computed(()=>i.textAlign),"textAlign"),D=t.computed(()=>{const U={};return I.value&&(U["text-align"]=I.value),U}),z=t.ref(!1),N=()=>{u.value===!0||m.value===!0||(z.value=!0)},B=U=>{z.value=U},R=(U,P)=>{let v=P.map(J=>{if(J==null)return J;let X={...J};return Reflect.deleteProperty(X,"text"),X[i.textKey]=J.text??"",Reflect.deleteProperty(X,"value"),X[i.valueKey]=J.value??"",X});w.value=v;let H=Ao(i,v);d.value=H.texts,b.value=H.values,i.valueType==="text"?(h("change",d.value,v),h("update:modelValue",d.value)):i.valueType==="item"?(h("change",v,v),h("update:modelValue",v)):(h("change",b.value,v),h("update:modelValue",b.value)),h("update:pathNodes",v)},L=U=>{let P=U.map(v=>{if(v==null)return v;let H={...v};return Reflect.deleteProperty(H,"text"),H[i.textKey]=v.text??"",Reflect.deleteProperty(H,"value"),H[i.valueKey]=v.value??"",H});h("pathChange",P)},$=U=>{g.value=!0,h("focus",b.value,U)},T=U=>{setTimeout(()=>{g.value=!1},0),h("blur",b.value,U)},q=t.computed(()=>({[`${V}__append`]:!0})),A=t.computed(()=>ge(i.unit)>0),O=t.computed(()=>ge(i.unit)>0&&!g.value),x=t.computed(()=>({hidden:!O.value})),M=U=>{w.value=[],d.value=[],b.value=[],h("update:modelValue",[]),h("change",[],U),h("clear",[]),h("update:pathNodes",[])},F=t.computed(()=>i.clearable&&!u.value&&!m.value),G=t.computed(()=>{let U=b.value&&b.value.length>0;return i.clearable&&U&&g.value}),Y=U=>{G.value?M(U):N()},ee=t.computed(()=>G.value&&F.value?n:a),K=t.computed(()=>({action:!0}));return()=>{const U={class:E.value,style:D.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:$,onBlur:T};s&&(U.disabled=!0);const P=[],v=t.h("input",U);P.push(v);const H=[],J={class:["action-icon"]},X=t.h(ee.value,J),W={class:K.value,onClick:Y},Q=t.h("view",W,{default:()=>[X]});if(H.push(Q),A.value){const st=t.h("view",{class:x.value},[i.unit]);H.push(st)}const _={class:q.value},oe=t.h("view",_,{default:()=>H});P.push(oe);const ne={default:()=>P};ne.label=c.slots.default,ne.prepend=c.slots.prepend,ne.append=c.slots.append,ne.fixedPreTip=c.slots.fixedPreTip,ne.fixedTip=c.slots.fixedTip;let ae={};ae.visible=z.value,ae["onUpdate:visible"]=B,ae.modelValue=b.value,ae.onChange=R,ae.onPathChange=L,ae.options=S.value,ae.title=i.title,ae.lazy=i.lazy,ae.lazyLoad=i.lazyLoad,ae.valueKey=i.valueKey,ae.textKey=i.textKey,ae.childrenKey=i.childrenKey,ae.convertConfig=i.convertConfig;const ye=t.h(r,ae);ne.hide=()=>[ye];const Se=ke(i,me,ue);return t.h(l,Se,ne)}}}}const{componentName:Ud,create:Hd,scope:jd}=j("cascader-item"),Rn=Hd(vd(Ud,jd,Ne,te.CircleClose,te.ArrowRight,Bo,!1));var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Or={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){var l=1e3,n=6e4,a=36e5,r="millisecond",s="second",i="minute",c="hour",u="day",m="week",h="month",p="quarter",k="year",g="date",y="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},b=function(L,$,T){var q=String(L);return!q||q.length>=$?L:""+Array($+1-q.length).join(T)+L},w={s:b,z:function(L){var $=-L.utcOffset(),T=Math.abs($),q=Math.floor(T/60),A=T%60;return($<=0?"+":"-")+b(q,2,"0")+":"+b(A,2,"0")},m:function L($,T){if($.date()<T.date())return-L(T,$);var q=12*(T.year()-$.year())+(T.month()-$.month()),A=$.clone().add(q,h),O=T-A<0,x=$.clone().add(q+(O?-1:1),h);return+(-(q+(T-A)/(O?A-x:x-A))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:h,y:k,w:m,d:u,D:g,h:c,m:i,s,ms:r,Q:p}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},V="en",E={};E[V]=f;var I=function(L){return L instanceof B},D=function L($,T,q){var A;if(!$)return V;if(typeof $=="string"){var O=$.toLowerCase();E[O]&&(A=O),T&&(E[O]=T,A=O);var x=$.split("-");if(!A&&x.length>1)return L(x[0])}else{var M=$.name;E[M]=$,A=M}return!q&&A&&(V=A),A||!q&&V},z=function(L,$){if(I(L))return L.clone();var T=typeof $=="object"?$:{};return T.date=L,T.args=arguments,new B(T)},N=w;N.l=D,N.i=I,N.w=function(L,$){return z(L,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var B=function(){function L(T){this.$L=D(T.locale,null,!0),this.parse(T)}var $=L.prototype;return $.parse=function(T){this.$d=function(q){var A=q.date,O=q.utc;if(A===null)return new Date(NaN);if(N.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var x=A.match(S);if(x){var M=x[2]-1||0,F=(x[7]||"0").substring(0,3);return O?new Date(Date.UTC(x[1],M,x[3]||1,x[4]||0,x[5]||0,x[6]||0,F)):new Date(x[1],M,x[3]||1,x[4]||0,x[5]||0,x[6]||0,F)}}return new Date(A)}(T),this.$x=T.x||{},this.init()},$.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},$.$utils=function(){return N},$.isValid=function(){return this.$d.toString()!==y},$.isSame=function(T,q){var A=z(T);return this.startOf(q)<=A&&A<=this.endOf(q)},$.isAfter=function(T,q){return z(T)<this.startOf(q)},$.isBefore=function(T,q){return this.endOf(q)<z(T)},$.$g=function(T,q,A){return N.u(T)?this[q]:this.set(A,T)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(T,q){var A=this,O=!!N.u(q)||q,x=N.p(T),M=function(v,H){var J=N.w(A.$u?Date.UTC(A.$y,H,v):new Date(A.$y,H,v),A);return O?J:J.endOf(u)},F=function(v,H){return N.w(A.toDate()[v].apply(A.toDate("s"),(O?[0,0,0,0]:[23,59,59,999]).slice(H)),A)},G=this.$W,Y=this.$M,ee=this.$D,K="set"+(this.$u?"UTC":"");switch(x){case k:return O?M(1,0):M(31,11);case h:return O?M(1,Y):M(0,Y+1);case m:var U=this.$locale().weekStart||0,P=(G<U?G+7:G)-U;return M(O?ee-P:ee+(6-P),Y);case u:case g:return F(K+"Hours",0);case c:return F(K+"Minutes",1);case i:return F(K+"Seconds",2);case s:return F(K+"Milliseconds",3);default:return this.clone()}},$.endOf=function(T){return this.startOf(T,!1)},$.$set=function(T,q){var A,O=N.p(T),x="set"+(this.$u?"UTC":""),M=(A={},A[u]=x+"Date",A[g]=x+"Date",A[h]=x+"Month",A[k]=x+"FullYear",A[c]=x+"Hours",A[i]=x+"Minutes",A[s]=x+"Seconds",A[r]=x+"Milliseconds",A)[O],F=O===u?this.$D+(q-this.$W):q;if(O===h||O===k){var G=this.clone().set(g,1);G.$d[M](F),G.init(),this.$d=G.set(g,Math.min(this.$D,G.daysInMonth())).$d}else M&&this.$d[M](F);return this.init(),this},$.set=function(T,q){return this.clone().$set(T,q)},$.get=function(T){return this[N.p(T)]()},$.add=function(T,q){var A,O=this;T=Number(T);var x=N.p(q),M=function(Y){var ee=z(O);return N.w(ee.date(ee.date()+Math.round(Y*T)),O)};if(x===h)return this.set(h,this.$M+T);if(x===k)return this.set(k,this.$y+T);if(x===u)return M(1);if(x===m)return M(7);var F=(A={},A[i]=n,A[c]=a,A[s]=l,A)[x]||1,G=this.$d.getTime()+T*F;return N.w(G,this)},$.subtract=function(T,q){return this.add(-1*T,q)},$.format=function(T){var q=this,A=this.$locale();if(!this.isValid())return A.invalidDate||y;var O=T||"YYYY-MM-DDTHH:mm:ssZ",x=N.z(this),M=this.$H,F=this.$m,G=this.$M,Y=A.weekdays,ee=A.months,K=function(H,J,X,W){return H&&(H[J]||H(q,O))||X[J].slice(0,W)},U=function(H){return N.s(M%12||12,H,"0")},P=A.meridiem||function(H,J,X){var W=H<12?"AM":"PM";return X?W.toLowerCase():W},v={YY:String(this.$y).slice(-2),YYYY:this.$y,M:G+1,MM:N.s(G+1,2,"0"),MMM:K(A.monthsShort,G,ee,3),MMMM:K(ee,G),D:this.$D,DD:N.s(this.$D,2,"0"),d:String(this.$W),dd:K(A.weekdaysMin,this.$W,Y,2),ddd:K(A.weekdaysShort,this.$W,Y,3),dddd:Y[this.$W],H:String(M),HH:N.s(M,2,"0"),h:U(1),hh:U(2),a:P(M,F,!0),A:P(M,F,!1),m:String(F),mm:N.s(F,2,"0"),s:String(this.$s),ss:N.s(this.$s,2,"0"),SSS:N.s(this.$ms,3,"0"),Z:x};return O.replace(d,function(H,J){return J||v[H]||x.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(T,q,A){var O,x=N.p(q),M=z(T),F=(M.utcOffset()-this.utcOffset())*n,G=this-M,Y=N.m(this,M);return Y=(O={},O[k]=Y/12,O[h]=Y,O[p]=Y/3,O[m]=(G-F)/6048e5,O[u]=(G-F)/864e5,O[c]=G/a,O[i]=G/n,O[s]=G/l,O)[x]||G,A?Y:N.a(Y)},$.daysInMonth=function(){return this.endOf(h).$D},$.$locale=function(){return E[this.$L]},$.locale=function(T,q){if(!T)return this.$L;var A=this.clone(),O=D(T,q,!0);return O&&(A.$L=O),A},$.clone=function(){return N.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()},L}(),R=B.prototype;return z.prototype=R,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",u],["$M",h],["$y",k],["$D",g]].forEach(function(L){R[L[1]]=function($){return this.$g($,L[0],L[1])}}),z.extend=function(L,$){return L.$i||(L($,B,z),L.$i=!0),z},z.locale=D,z.isDayjs=I,z.unix=function(L){return z(1e3*L)},z.en=E[V],z.Ls=E,z.p={},z})})(Or);var Wd=Or.exports;const xe=je(Wd);var Fr={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){var l={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"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(y){return(y=+y)+(y>68?1900:2e3)},u=function(y){return function(S){this[y]=+S}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var d=S.match(/([+-]|\d\d)/g),f=60*d[1]+(+d[2]||0);return f===0?0:d[0]==="+"?-f:f}(y)}],h=function(y){var S=i[y];return S&&(S.indexOf?S:S.s.concat(S.f))},p=function(y,S){var d,f=i.meridiem;if(f){for(var b=1;b<=24;b+=1)if(y.indexOf(f(b,0,S))>-1){d=b>12;break}}else d=y===(S?"pm":"PM");return d},k={A:[s,function(y){this.afternoon=p(y,!1)}],a:[s,function(y){this.afternoon=p(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[a,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[r,u("seconds")],ss:[r,u("seconds")],m:[r,u("minutes")],mm:[r,u("minutes")],H:[r,u("hours")],h:[r,u("hours")],HH:[r,u("hours")],hh:[r,u("hours")],D:[r,u("day")],DD:[a,u("day")],Do:[s,function(y){var S=i.ordinal,d=y.match(/\d+/);if(this.day=d[0],S)for(var f=1;f<=31;f+=1)S(f).replace(/\[|\]/g,"")===y&&(this.day=f)}],M:[r,u("month")],MM:[a,u("month")],MMM:[s,function(y){var S=h("months"),d=(h("monthsShort")||S.map(function(f){return f.slice(0,3)})).indexOf(y)+1;if(d<1)throw new Error;this.month=d%12||d}],MMMM:[s,function(y){var S=h("months").indexOf(y)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(y){this.year=c(y)}],YYYY:[/\d{4}/,u("year")],Z:m,ZZ:m};function g(y){var S,d;S=y,d=i&&i.formats;for(var f=(y=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(z,N,B){var R=B&&B.toUpperCase();return N||d[B]||l[B]||d[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(L,$,T){return $||T.slice(1)})})).match(n),b=f.length,w=0;w<b;w+=1){var V=f[w],E=k[V],I=E&&E[0],D=E&&E[1];f[w]=D?{regex:I,parser:D}:V.replace(/^\[|\]$/g,"")}return function(z){for(var N={},B=0,R=0;B<b;B+=1){var L=f[B];if(typeof L=="string")R+=L.length;else{var $=L.regex,T=L.parser,q=z.slice(R),A=$.exec(q)[0];T.call(N,A),z=z.replace(A,"")}}return function(O){var x=O.afternoon;if(x!==void 0){var M=O.hours;x?M<12&&(O.hours+=12):M===12&&(O.hours=0),delete O.afternoon}}(N),N}}return function(y,S,d){d.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var f=S.prototype,b=f.parse;f.parse=function(w){var V=w.date,E=w.utc,I=w.args;this.$u=E;var D=I[1];if(typeof D=="string"){var z=I[2]===!0,N=I[3]===!0,B=z||N,R=I[2];N&&(R=I[2]),i=this.$locale(),!z&&R&&(i=d.Ls[R]),this.$d=function(q,A,O){try{if(["x","X"].indexOf(A)>-1)return new Date((A==="X"?1e3:1)*q);var x=g(A)(q),M=x.year,F=x.month,G=x.day,Y=x.hours,ee=x.minutes,K=x.seconds,U=x.milliseconds,P=x.zone,v=new Date,H=G||(M||F?1:v.getDate()),J=M||v.getFullYear(),X=0;M&&!F||(X=F>0?F-1:v.getMonth());var W=Y||0,Q=ee||0,_=K||0,oe=U||0;return P?new Date(Date.UTC(J,X,H,W,Q,_,oe+60*P.offset*1e3)):O?new Date(Date.UTC(J,X,H,W,Q,_,oe)):new Date(J,X,H,W,Q,_,oe)}catch{return new Date("")}}(V,D,E),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),B&&V!=this.format(D)&&(this.$d=new Date("")),i={}}else if(D instanceof Array)for(var L=D.length,$=1;$<=L;$+=1){I[1]=D[$-1];var T=d.apply(this,I);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}$===L&&(this.$d=new Date(""))}else b.call(this,w)}}})})(Fr);var Yd=Fr.exports;const Xd=je(Yd);var Kr={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n,a){var r=n.prototype,s=r.format;a.en.ordinal=function(i){var c=["th","st","nd","rd"],u=i%100;return"["+i+(c[(u-20)%10]||c[u]||c[0])+"]"},r.format=function(i){var c=this,u=this.$locale();if(!this.isValid())return s.bind(this)(i);var m=this.$utils(),h=(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(p){switch(p){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return u.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return u.ordinal(c.week(),"W");case"w":case"ww":return m.s(c.week(),p==="w"?1:2,"0");case"W":case"WW":return m.s(c.isoWeek(),p==="W"?1:2,"0");case"k":case"kk":return m.s(String(c.$H===0?24:c.$H),p==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return p}});return s.bind(this)(h)}}})})(Kr);var Qd=Kr.exports;const Gd=je(Qd);var vr={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n,a){var r=n.prototype,s=function(h){return h&&(h.indexOf?h:h.s)},i=function(h,p,k,g,y){var S=h.name?h:h.$locale(),d=s(S[p]),f=s(S[k]),b=d||f.map(function(V){return V.slice(0,g)});if(!y)return b;var w=S.weekStart;return b.map(function(V,E){return b[(E+(w||0))%7]})},c=function(){return a.Ls[a.locale()]},u=function(h,p){return h.formats[p]||function(k){return k.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,y,S){return y||S.slice(1)})}(h.formats[p.toUpperCase()])},m=function(){var h=this;return{months:function(p){return p?p.format("MMMM"):i(h,"months")},monthsShort:function(p){return p?p.format("MMM"):i(h,"monthsShort","months",3)},firstDayOfWeek:function(){return h.$locale().weekStart||0},weekdays:function(p){return p?p.format("dddd"):i(h,"weekdays")},weekdaysMin:function(p){return p?p.format("dd"):i(h,"weekdaysMin","weekdays",2)},weekdaysShort:function(p){return p?p.format("ddd"):i(h,"weekdaysShort","weekdays",3)},longDateFormat:function(p){return u(h.$locale(),p)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return m.bind(this)()},a.localeData=function(){var h=c();return{firstDayOfWeek:function(){return h.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(p){return u(h,p)},meridiem:h.meridiem,ordinal:h.ordinal}},a.months=function(){return i(c(),"months")},a.monthsShort=function(){return i(c(),"monthsShort","months",3)},a.weekdays=function(h){return i(c(),"weekdays",null,null,h)},a.weekdaysShort=function(h){return i(c(),"weekdaysShort","weekdays",3,h)},a.weekdaysMin=function(h){return i(c(),"weekdaysMin","weekdays",2,h)}}})})(vr);var Zd=vr.exports;const Jd=je(Zd);var Ur={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){var l="week",n="year";return function(a,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(n).add(1,n).date(u),h=s(this).endOf(l);if(m.isBefore(h))return 1}var p=s(this).startOf(n).date(u).startOf(l).subtract(1,"millisecond"),k=this.diff(p,l,!0);return k<0?s(this).startOf("week").week():Math.ceil(k)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Ur);var _d=Ur.exports;const eu=je(_d);var Hr={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n){n.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}}})})(Hr);var tu=Hr.exports;const ou=je(tu);var jr={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n,a){n.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")}}})})(jr);var nu=jr.exports;const lu=je(nu);var Wr={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n){n.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(Wr);var au=Wr.exports;const ru=je(au);var Yr={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n){n.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(Yr);var su=Yr.exports;const iu=je(su);xe.extend(Jd),xe.extend(Gd),xe.extend(Xd),xe.extend(eu),xe.extend(ou),xe.extend(lu),xe.extend(ru),xe.extend(iu);const le={format(e,o){return xe(e).format(o)},parser(e,o){return xe(e,o).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,o,l){const a=new Date(e+"/"+o+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,o){let n=new Date(e+"/"+o+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,o){return/^0/.test(o)&&(o=o.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][o]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,o){o=o||"-";const l=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[l,n,a].join(o)},getDay(e,o){e=e||0;let l=o??new Date;const n=e*(1e3*60*60*24);return l=new Date(l.getTime()+n),this.date2Str(l)},compareDate(e,o){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let n;return typeof o=="string"?n=new Date(o.replace("-","/").replace("-","/")):n=o,!(l>=n)},isEqual(e,o){if(e===o)return!0;if(!e||!o)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let n;return typeof o=="string"?n=new Date(o).getTime():n=o,l==n},getMonthWeek:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l));let r=a.getDay(),s=a.getDate(),i=6-r;return n!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l)),r=new Date(Number(e),0,1),s=Math.round((a.valueOf()-r.valueOf())/864e5);let i=a.getDay(),c=6-i;return n!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l)),r=a.getTime();let s=a.getDay();if(n===0){const c=r-s*864e5,u=r+(6-s)*864e5,m=this.date2Str(new Date(c)),h=this.date2Str(new Date(u));return[m,h]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,u=r+(7-s)*i,m=this.date2Str(new Date(c)),h=this.date2Str(new Date(u));return[m,h]}},formatResultDate:function(e){let o=[...e.split("-")];return o[2]=le.getNumTwoBit(Number(o[2])),o[3]=`${o[0]}-${o[1]}-${o[2]}`,o[4]=le.getWhatDay(+o[0],+o[1],+o[2]),o},inScope4Day(e,o,l){const n=new Date(new Date(o).setDate(o.getDate()+l)),a=e.getTime(),r=n.getTime(),s=o.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s},inScope4Month(e,o,l){const n=new Date(new Date(o).setMonth(o.getMonth()+l)),a=e.getTime(),r=n.getTime(),s=o.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s}},Xr=new Date().getFullYear(),xn={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"},Vo=(e,o,l)=>{let n;if(Oe(o)?n=o:typeof o=="string"&&ge(o)>0?n=le.parser(o,l):n=new Date,n.toString()==="Invalid Date")return null;let a=Math.max(n.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Ln=(e,o,l)=>{Oe(o)||(o=e.minDate);let n=Math.max(o.getTime(),e.minDate.getTime());return n=Math.min(n,e.maxDate.getTime()),le.format(new Date(n),l)};let On={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(Xr-10,0,1),validator:Oe},maxDate:{type:Date,default:()=>new Date(Xr+10,11,31),validator:Oe},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:cu,scope:du}=j("date-picker"),uu=cu({components:{[pt.name]:pt},props:{...On},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:o}){const{t:l}=se.useFoxI18n(du),n={day:l("day"),year:l("year"),month:l("month"),hour:l("hour"),minute:l("minute"),seconds:l("seconds")},a=t.ref(!1);t.watch(()=>e.visible,d=>{a.value=d});function r(d,f){return new Date(d,f,0).getDate()}const s=(d,f)=>{const b=e[`${d}Date`],w=b.getFullYear();let V=1,E=1,I=0,D=0;d==="max"&&(V=12,E=r(f.getFullYear(),f.getMonth()+1),I=23,D=59);const z=D;return f.getFullYear()===w&&(V=b.getMonth()+1,f.getMonth()+1===V&&(E=b.getDate(),f.getDate()===E&&(I=b.getHours(),f.getHours()===I&&(D=b.getMinutes())))),{[`${d}Year`]:w,[`${d}Month`]:V,[`${d}Date`]:E,[`${d}Hour`]:I,[`${d}Minute`]:D,[`${d}Seconds`]:z}},i=t.computed(()=>{if(!p.value)return[];const{maxYear:d,maxDate:f,maxMonth:b,maxHour:w,maxMinute:V,maxSeconds:E}=s("max",p.value),{minYear:I,minDate:D,minMonth:z,minHour:N,minMinute:B,minSeconds:R}=s("min",p.value);let L=[{type:"year",range:[I,d]},{type:"month",range:[z,b]},{type:"day",range:[D,f]},{type:"hour",range:[N,w]},{type:"minute",range:[B,V]},{type:"seconds",range:[R,E]}];switch(e.type){case"date":L=L.slice(0,3);break;case"datetime":L=L.slice(0,5);break;case"time":L=L.slice(3,6);break;case"year-month":L=L.slice(0,2);break;case"month-day":L=L.slice(1,3);break;case"datehour":L=L.slice(0,4);break;case"hour-minute":L=L.slice(3,5);break}return L}),c=(d,f,b)=>{if(!(f>d))return null;const w=[];for(;d<=f;)e.isShowChinese?w.push({text:d+n[b],value:d}):w.push({text:`${d}`,value:d}),b==="minute"?d+=e.minuteStep:d++;return w},u=t.computed(()=>{let d=[];return i.value.forEach(f=>{let b=c(f.range[0],f.range[1],f.type);b&&d.push(b)}),d}),m=(d,f)=>d==="year"?f.getFullYear():d==="month"?f.getMonth()+1:d==="day"?f.getDate():d==="hour"?f.getHours():d==="minute"?f.getMinutes():d==="seconds"?f.getSeconds():0,h=t.ref(),p=t.ref(null);t.watchEffect(()=>{let d,f=e.modelValue;if(typeof f=="string"?f.length==0?d=new Date:e.valueFormat?d=Vo(e,e.modelValue,e.valueFormat):d=Vo(e,f,xn[e.type]):Oe(f)?d=f:d=new Date,!!d&&(!p.value||d.getTime()!==p.value.getTime())){p.value=d;let b=[];i.value.forEach(w=>{let V=m(w.type,d);b.push(V)}),h.value=b}});const k=d=>{if(e.type==="date"){let f=d;p.value=new Date(f[0],f[1]-1,Math.min(f[2],r(f[0],f[1])))}else if(e.type==="datetime"){let f=d;p.value=new Date(f[0],f[1]-1,Math.min(f[2],r(f[0],f[1])),f[3],f[4])}else if(e.type==="time"){let f=d,b=p.value??new Date,w=new Date(b.getFullYear(),b.getMonth(),b.getDate(),f[0],f[1],f[2]);p.value=w}else if(e.type==="year-month"){let f=d,b=new Date(f[0],f[1]-1);p.value=b}else if(e.type==="month-day"){let f=d,b=p.value??new Date,w=new Date(b.getFullYear(),f[0]-1,f[1]);p.value=w}else if(e.type==="datehour"){let f=d;p.value=new Date(f[0],f[1]-1,Math.min(f[2],r(f[0],f[1])),f[3])}else if(e.type==="hour-minute"){let f=d,b=p.value??new Date,w=new Date(b.getFullYear(),b.getMonth(),b.getDate(),f[0],f[1]);p.value=w}h.value=d};return{columns:u,dateIndexs:h,show:a,onClose:()=>{a.value=!1,o("update:visible",!1),o("update:close",!1)},onConfirm:d=>{k(d),a.value=!1;let f=p.value??new Date;if(e.valueFormat){let b=Ln(e,f,e.valueFormat);o("update:modelValue",b)}else o("update:modelValue",f);o("update:visible",!1),o("confirm",d)},onClear:()=>{o("clear")}}}});function fu(e,o,l,n,a,r){const s=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const To=Z(uu,[["render",fu]]);function mu(e){let o=e.format;if(!o){let l=e.type??"date";o=xn[l]}return o}function pu(e,o,l,n,a,r,s=!1){return{props:{...ue,...me,...On,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const u=Ve(t.computed(()=>i.disabled)),m=Ee(t.computed(()=>i.readonly)),{emitEvent:h}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:p}=se.useFoxI18n(o),k=p(i,["placeholder"]),g=t.ref(!1),S=qe(i,"modelValue",Y=>Y==null?null:typeof Y=="string"?Y.length==0?null:i.valueFormat?Vo(i,Y,i.valueFormat)??Y:Vo(i,Y,xn[i.type])??Y:Oe(Y)?Y:null),d=t.computed(()=>{if(!S.value)return"";const Y=mu(i);return Ln(i,S.value,Y)}),f="fox-input-item",b=t.computed(()=>({[f]:!0,[`${f}__disabled`]:u.value})),w=Ae(t.computed(()=>i.textAlign),"textAlign"),V=t.computed(()=>{const Y={};return w.value&&(Y["text-align"]=w.value),Y}),E=t.ref(!1),I=()=>{E.value=!0},D=()=>{E.value=!1};c.expose({showPicker:I,hidePicker:D});const z=Y=>{E.value=Y},N=Y=>{if(S.value=Y,i.valueFormat){let ee=Ln(i,Y,i.valueFormat);h("update:modelValue",ee,{}),h("change",ee,{})}else h("update:modelValue",Y,{}),h("change",Y,{})},B=Y=>{let K=Y.target.value;g.value=!0,h("focus",K,Y)},R=Y=>{setTimeout(()=>{g.value=!1},0);let K=Y.target.value;i.maxLength&&K.length>Number(i.maxLength)&&(K=K.slice(0,Number(i.maxLength))),h("blur",K,Y)},L=t.computed(()=>({[`${f}__append`]:!0})),$=t.computed(()=>ge(i.unit)>0),T=t.computed(()=>ge(i.unit)>0&&!g.value),q=t.computed(()=>({hidden:!T.value})),A=Y=>{S.value="",h("update:modelValue","",Y),h("change","",Y),h("clear",""),D()},O=t.computed(()=>i.clearable&&!u.value&&!m.value),x=t.computed(()=>{let Y=ge(S.value)>0;return i.clearable&&Y&&g.value}),M=Y=>{x.value?A(Y):I()},F=t.computed(()=>x.value&&O.value?n:a),G=t.computed(()=>({action:!0}));return()=>{const Y={class:b.value,style:V.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:I,onFocus:B,onBlur:R};s&&(Y.disabled=!0);const ee=[],K=t.h("input",Y);ee.push(K);const U=[],P={class:["action-icon"]},v=t.h(F.value,P),H={class:G.value,onClick:M},J=t.h("view",H,{default:()=>[v]});if(U.push(J),$.value){const Se=t.h("view",{class:q.value},[i.unit]);U.push(Se)}const X={class:L.value},W=t.h("view",X,{default:()=>U});ee.push(W);const Q={default:()=>ee};Q.label=c.slots.default,Q.prepend=c.slots.prepend,Q.append=c.slots.append,Q.fixedPreTip=c.slots.fixedPreTip,Q.fixedTip=c.slots.fixedTip;const _=ke(i,On);_.valueFormat=null,_.disabled=!1,_.readonly=u.value||m.value,_.visible=E.value,_["onUpdate:visible"]=z,_.modelValue=S.value,_["onUpdate:modelValue"]=N,_.onClear=A;const oe={};if(c.slots.top){const Se=c.slots.top();oe.top=()=>Se}if(c.slots.bottom){const Se=c.slots.bottom();oe.default=()=>Se}const ne=t.h(r,_,oe);Q.hide=()=>[ne];const ae=ke(i,me,ue);return t.h(l,ae,Q)}}}}const{create:hu,componentName:gu,scope:yu}=j("date-item"),Fn=hu(pu(gu,yu,Ne,te.CircleClose,te.Date,To,!1)),ku=39,bu=64,{create:Su,scope:Cu}=j("calendar-pane"),wu=Su({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:le.getDay(0)},endDate:{type:String,default:le.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:o,slots:l}){const{toLocaleRefs:n,t:a}=se.useFoxI18n(Cu),r=n(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(a("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),u=t.ref(null),m=t.ref(null),h=t.ref(null),p=t.ref(0),k=t.computed(()=>d.monthsData.slice(d.defaultRange[0],d.defaultRange[1])),g=t.computed(()=>l.btn),y=t.computed(()=>l["top-info"]),S=t.computed(()=>l["bottom-info"]),d=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),f=P=>P.split("-"),b=P=>le.isEqual(d.currDate[0],P),w=P=>le.isEqual(d.currDate[1],P),V=P=>d.currDate?.length>0?d.currDate?.some(v=>le.isEqual(v,P)):!1,E=(P,v)=>v.curData[0]+"-"+v.curData[1]+"-"+le.getNumTwoBit(+P.day),I=(P,v)=>{const H=E(P,v),{type:J}=e;return P.type=="curr"?le.isEqual(d.currDate,H)||(J=="range"||J=="week")&&(b(H)||w(H))||J=="multiple"&&V(H)?`${d.dayPrefix}--active`:d.propStartDate&&le.compareDate(H,d.propStartDate)||d.propEndDate&&le.compareDate(d.propEndDate,H)?`${d.dayPrefix}--disabled`:(J=="range"||J=="week")&&Array.isArray(d.currDate)&&Object.values(d.currDate).length==2&&le.compareDate(d.currDate[0],H)&&le.compareDate(H,d.currDate[1])?`${d.dayPrefix}--choose`:null:`${d.dayPrefix}--disabled`},D=()=>{const{type:P}=e;if(P=="range"&&d.chooseData.length==2||P!="range"){let v=d.chooseData.slice(0);P=="week"&&(v={weekDate:[N(d.chooseData[0]),N(d.chooseData[1])]}),o("choose",v),e.poppable&&o("update")}},z=(P,v,H=!1)=>{if(I(P,v)!=`${d.dayPrefix}--disabled`){const{type:J}=e;let[X,W]=v.curData,Q=[...v.curData];if(Q[2]=le.getNumTwoBit(Number(P.day)),Q[3]=`${Q[0]}-${Q[1]}-${Q[2]}`,Q[4]=le.getWhatDay(+Q[0],+Q[1],+Q[2]),J=="multiple")if(d.currDate?.length>0){let _;d.currDate?.forEach((oe,ne)=>{oe==Q[3]&&(_=ne)}),H?d.chooseData.push([...Q]):_!==void 0?(d.currDate.splice(_,1),d.chooseData.splice(_,1)):(d.currDate.push(Q[3]),d.chooseData.push([...Q]))}else d.currDate=[Q[3]],d.chooseData=[[...Q]];else if(J=="range"){let _=Object.values(d.currDate).length;_==2||_==0?d.currDate=[Q[3]]:le.compareDate(d.currDate[0],Q[3])?Array.isArray(d.currDate)&&d.currDate.push(Q[3]):Array.isArray(d.currDate)&&d.currDate.unshift(Q[3]),d.chooseData.length==2||!d.chooseData.length?d.chooseData=[[...Q]]:le.compareDate(d.chooseData[0][3],Q[3])?d.chooseData=[...d.chooseData,[...Q]]:d.chooseData=[[...Q],...d.chooseData]}else if(J=="week"){let _=le.getWeekDate(X,W,P.day,e.firstDayOfWeek);d.propStartDate&&le.compareDate(_[0],d.propStartDate)&&_.splice(0,1,d.propStartDate),d.propEndDate&&le.compareDate(d.propEndDate,_[1])&&_.splice(1,1,d.propEndDate),d.currDate=_,d.chooseData=[le.formatResultDate(_[0]),le.formatResultDate(_[1])]}else d.currDate=Q[3],d.chooseData=[...Q];if(!H){let _=d.chooseData;J=="week"&&(_={weekDate:[N(d.chooseData[0]),N(d.chooseData[1])]}),o("select",_),(e.isAutoBackFill||!e.poppable)&&D()}}},N=P=>{let[v,H,J]=P;return{date:P,monthWeekNum:le.getMonthWeek(v,H,J,e.firstDayOfWeek),yearWeekNum:le.getYearWeek(v,H,J,e.firstDayOfWeek)}},B=P=>{const v=P=="prev"?d.monthsData[0]:d.monthsData[d.monthsData.length-1];let H=parseInt(v.curData[0]),J=parseInt(v.curData[1].toString().replace(/^0/,""));switch(P){case"prev":J==1&&(H-=1),J=J==1?12:--J;break;case"next":J==12&&(H+=1),J=J==12?1:++J;break}return[H+"",le.getNumTwoBit(J),le.getMonthDays(String(H),String(J))+""]},R=(P,v,H)=>{let{year:J,month:X}=H;return v=="prev"&&P>=7&&(P-=7),Array.from(Array(P),(W,Q)=>({day:String(Q+1),type:v,year:J,month:X}))},L=(P,v,H,J)=>{P=P-e.firstDayOfWeek;let{year:X,month:W}=H;return v=="prev"&&P>=7&&(P-=7),Array.from(Array(J),(_,oe)=>({day:String(oe+1),type:v,year:X,month:W})).slice(J-P)},$=(P,v)=>{const H=le.getMonthPreDay(+P[0],+P[1]);let J=Number(P[1])-1,X=Number(P[0]);J<=0&&(J=12,X+=1);const W=le.getMonthDays(String(P[0]),String(P[1])),Q=le.getMonthDays(X+"",J+""),_={year:P[0],month:P[1]},oe={curData:P,title:a("monthTitle",{year:_.year,month:_.month}),monthData:[...L(H,"prev",{month:String(J),year:String(X)},Q),...R(W,"curr",_)],cssHeight:0,cssScrollHeight:0},ne=oe.monthData.length>35?6:5;oe.cssHeight=ku+bu*ne;let ae=0;d.monthsData.length>0&&(ae=d.monthsData[d.monthsData.length-1].cssScrollHeight+d.monthsData[d.monthsData.length-1].cssHeight),oe.cssScrollHeight=ae,v=="next"?(!d.endData||!le.compareDate(`${d.endData[0]}-${d.endData[1]}-${le.getMonthDays(d.endData[0],d.endData[1])}`,`${P[0]}-${P[1]}-${P[2]}`))&&d.monthsData.push(oe):!d.startData||!le.compareDate(`${P[0]}-${P[1]}-${P[2]}`,`${d.startData[0]}-${d.startData[1]}-01`)?d.monthsData.unshift(oe):d.unLoadPrev=!0},T=()=>{let P=e.startDate?e.startDate:le.getDay(0),v=e.endDate?e.endDate:le.getDay(365);d.propStartDate=P,d.propEndDate=v,d.startData=f(P),d.endData=f(v),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(d.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const H={year:Number(d.startData[0]),month:Number(d.startData[1])},J={year:Number(d.endData[0]),month:Number(d.endData[1])};let X=J.month-H.month;J.year-H.year>0&&(X=X+12*(J.year-H.year)),X<=0&&(X=1),$(d.startData,"next");let W=1;do $(B("next"),"next");while(W++<X);if(d.monthsNum=X,e.type=="range"&&Array.isArray(d.currDate))d.currDate.length>0&&(P&&le.compareDate(d.currDate[0],P)&&d.currDate.splice(0,1,P),v&&le.compareDate(v,d.currDate[1])&&d.currDate.splice(1,1,v),d.defaultData=[...f(d.currDate[0]),...f(d.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(d.currDate)){if(d.currDate.length>0){let Q=[],_={};d.currDate.forEach(oe=>{P&&!le.compareDate(oe,P)&&v&&!le.compareDate(v,oe)&&(Object.hasOwnProperty.call(_,oe)||(Q.push(oe),_[oe]=oe))}),d.currDate=[...Q],d.defaultData=[...f(Q[0])]}}else if(e.type=="week"&&Array.isArray(d.currDate)){if(d.currDate.length>0){let[Q,_,oe]=f(d.currDate[0]),ne=le.getWeekDate(Q,_,oe,e.firstDayOfWeek);d.currDate=ne,P&&le.compareDate(d.currDate[0],P)&&d.currDate.splice(0,1,P),v&&le.compareDate(v,d.currDate[1])&&d.currDate.splice(1,1,v),d.defaultData=[...f(d.currDate[0]),...f(d.currDate[1])]}}else d.currDate&&(P&&le.compareDate(d.currDate,P)?d.currDate=P:v&&!le.compareDate(d.currDate,v)&&(d.currDate=v),d.defaultData=[...f(d.currDate)])};Te({scrollToDate:P=>{le.compareDate(P,d.propStartDate)?P=d.propStartDate:le.compareDate(P,d.propEndDate)||(P=d.propEndDate);let v=f(P);d.monthsData.forEach((H,J)=>{if(H.title==a("monthTitle",{year:v[0],month:v[1]})&&c.value){let X=d.monthsData[J].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let W=0,Q=setInterval(()=>{if(W++,c.value){let _=X/10;c.value.scrollTop=c.value.scrollTop+_}W>=10&&(clearInterval(Q),c.value&&(c.value.scrollTop=d.monthsData[J].cssScrollHeight))},40)}else c.value.scrollTop=d.monthsData[J].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)},doLayout:()=>{let P=0,v=0;d.defaultData.length>0&&d.monthsData.forEach((X,W)=>{X.title==a("monthTitle",{year:d.defaultData[0],month:d.defaultData[1]})&&(P=W),(e.type=="range"||e.type=="week")&&X.title==a("monthTitle",{year:d.defaultData[3],month:d.defaultData[4]})&&(v=W)}),x(d.monthsNum,P),d.currentIndex=P,d.yearMonthTitle=d.monthsData[d.currentIndex].title,d.defaultData.length>0&&(d.isRange?(z({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0),z({day:d.defaultData[5],type:"curr"},d.monthsData[v],!0)):e.type=="week"?z({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0):e.type=="multiple"?[...d.currDate].forEach(X=>{let W=f(X),Q=d.currentIndex;d.monthsData.forEach((_,oe)=>{_.title==a("monthTitle",{year:W[0],month:W[1]})&&(Q=oe)}),z({day:W[2],type:"curr"},d.monthsData[Q],!0)}):z({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0));let H=d.monthsData[d.monthsData.length-1],J=H.cssHeight+H.cssScrollHeight;We(()=>{c?.value&&u?.value&&h?.value&&(p.value=c.value.clientHeight,u.value.style.height=`${J}px`,c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)}),d.avgHeight=Math.floor(J/(d.monthsNum+1))}});const x=(P,v)=>{P>=3?v>0&&v<P?d.defaultRange=[v-1,v+3]:v==0?d.defaultRange=[v,v+4]:v==P&&(d.defaultRange=[v-2,v+2]):d.defaultRange=[0,P+2];let H=d.monthsData[d.defaultRange[0]].cssScrollHeight;d.translateY=H},M=(P,v)=>(e.type=="range"||e.type=="week")&&P.type=="curr"&&I(P,v)=="fox-calendar__day--active",F=(P,v)=>M(P,v)&&b(E(P,v)),G=(P,v)=>d.currDate.length>=2&&w(E(P,v))?M(P,v):!1,Y=()=>{if(d.currDate.length>=2)return le.isEqual(d.currDate[0],d.currDate[1])},ee=P=>{const v=`${P.year}-${P.month}-${Number(P.day)<10?"0"+P.day:P.day}`;return le.isEqual(v,le.date2Str(new Date))},K=P=>{if(d.monthsData.length<=1)return;const v=P.target.scrollTop;let H=Math.floor(v/d.avgHeight);if(H==0)v>=d.monthsData[H+1].cssScrollHeight&&(H+=1);else if(H>0&&H<d.monthsNum-1)v>=d.monthsData[H+1].cssScrollHeight&&(H+=1),v<d.monthsData[H].cssScrollHeight&&(H-=1);else{const J=Math.round(v+p.value);J<d.monthsData[H].cssScrollHeight+d.monthsData[H].cssHeight&&v>d.monthsData[H-1].cssScrollHeight&&(H-=1),H+1<=d.monthsNum&&J>=d.monthsData[H+1].cssScrollHeight+d.monthsData[H+1].cssHeight&&(H+=1),H>=1&&v<d.monthsData[H-1].cssScrollHeight&&(H-=1)}d.currentIndex!==H&&(d.currentIndex=H,x(d.monthsNum,H)),d.yearMonthTitle=d.monthsData[H].title},U=()=>{d.chooseData.splice(0),d.monthsData.splice(0),T()};return T(),t.watch(()=>e.defaultValue,P=>{P&&e.poppable&&U()}),{weeks:i,compConthsData:k,showTopBtn:g,topInfo:y,bottomInfo:S,rangeTip:Y,mothsViewScroll:K,getClass:I,isStartTip:F,isEndTip:G,chooseDay:z,isCurrDay:ee,confirm:D,months:c,...t.toRefs(d),...t.toRefs(e),...r,monthsPanel:u,weeksPanel:m,viewArea:h}}}),Nu={class:"fox-calendar__header"},Bu={key:0,class:"fox-calendar__header-title"},Au={key:1,class:"fox-calendar__header-slot"},Vu={key:2,class:"fox-calendar__header-subtitle"},Tu={class:"fox-calendar__weekdays",ref:"weeksPanel"},$u={class:"fox-calendar__panel",ref:"monthsPanel"},Eu={class:"fox-calendar__month-title"},Du={class:"fox-calendar__days"},Iu=["onClick"],qu={class:"fox-calendar__day-value"},zu={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Mu={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Pu={key:2,class:"fox-calendar__day-tips--curr"},Ru={key:4,class:"fox-calendar__day-tip"},xu={key:0,class:"fox-calendar__footer"};function Lu(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",Nu,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Bu,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Au,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Vu,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Tu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:i},t.toDisplayString(s),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:o[0]||(o[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",$u,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:i},[t.createElementVNode("view",Eu,t.toDisplayString(s.title),1),t.createElementVNode("view",Du,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:m=>e.chooseDay(c,s)},[t.createElementVNode("view",qu,[t.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[t.createTextVNode(t.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",zu,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Mu,[t.renderSlot(e.$slots,"bottom-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",Pu,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,s)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,s)?(t.openBlock(),t.createElementBlock("view",Ru,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,Iu))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",xu,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:o[1]||(o[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const Qr=Z(wu,[["render",Lu]]),Ou=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Kn={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6}},{create:Fu}=j("calendar"),Ku=Fu({components:{[Qr.name]:Qr,[de.name]:de},props:{...Kn},emits:["choose","close","update:visible","select"],setup(e,{emit:o,slots:l}){const n=t.computed(()=>l.btn),a=t.computed(()=>l["top-info"]),r=t.computed(()=>l.day),s=t.computed(()=>l["bottom-info"]),i=t.ref(null),c=y=>{i.value?.scrollToDate(y)},u=()=>{i.value?.initPosition()};t.watch(()=>e.visible,y=>{y&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Te({scrollToDate:c,initPosition:u});const m=()=>{o("update:visible",!1)},h=()=>{o("close"),o("update:visible",!1)};return{closePopup:()=>{h()},update:m,close:h,select:y=>{o("select",y)},choose:y=>{h(),o("choose",y)},calendarRef:i,showTopBtn:n,topInfo:a,dayInfo:r,bottomInfo:s}}});function vu(e,o,l,n,a,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:{height:"85vh"}}),{default:t.withCtx(()=>[t.createVNode(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const $o=Z(Ku,[["render",vu]]),vn=(e,o)=>{let l;return Oe(e)?l=e:typeof e=="string"&&ge(e)>0?l=le.parser(e,o):l=new Date,l},ht=(e,o,l)=>(Oe(o)||(o=new Date),le.format(o,l)),gt=e=>{let o=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,n=`${e.getDate()}`,a=le.date2Str(e),r=le.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[o,l,n,a,r]};function Uu(e,o,l,n,{CloseIcon:a,MarkIcon:r},s=!1){return{props:{...ue,...me,...Kn,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const u=Ve(t.computed(()=>i.disabled)),m=Ee(t.computed(()=>i.readonly)),{emitEvent:h}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:p}=se.useFoxI18n(o),k=p(i,["placeholder"]),g=t.ref(!1),y=t.computed(()=>i.type==="range"),S=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),d=()=>{S.startDate!==null&&(S.startDate=null,S.endDate=null,S.startArray=[],S.endArray=[])},f=(K,U="one",P="YYYY-MM-DD")=>{if(Ou(K)){d();return}if(y.value&&Array.isArray(K)&&K.length==2){let v,H;typeof K[0]=="string"?(v=vn(K[0],P),H=vn(K[1],P)):(v=K[0],H=K[1]);let J=gt(v),X=gt(H);(S.startDate===null||S.startDate.getTime()!==v.getTime()||S.endDate?.getTime()!==H.getTime())&&(S.startDate=v,S.startArray=J,S.endDate=H,S.endArray=X)}else{let v;typeof K=="string"?v=vn(K,P):v=K;let H=gt(v);(S.startDate===null||S.startDate.getTime()!==v.getTime())&&(S.startDate=v,S.startArray=H)}};f(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,K=>{f(K,i.type,i.valueFormat)});const b=t.computed(()=>{if(S.startDate===null)return"";if(y.value){let K=ht(i,S.startDate,i.format),U=ht(i,S.endDate,i.format);return`${K} ${i.rangeSeparator} ${U}`}else{let K=ht(i,S.startDate,i.format);return i.showWeek&&(K=`${K} ${S.startArray[4]}`),K}}),w=t.computed(()=>{if(S.startDate===null)return null;if(y.value){let K=le.date2Str(S.startDate),U=le.date2Str(S.endDate??new Date);return[K,U]}else return le.date2Str(S.startDate)}),V="fox-input-item",E=t.computed(()=>({[V]:!0,[`${V}__disabled`]:u.value})),I=Ae(t.computed(()=>i.textAlign),"textAlign"),D=t.computed(()=>{const K={};return I.value&&(K["text-align"]=I.value),K}),z=t.ref(!1),N=()=>{m.value||u.value||(z.value=!0)},B=K=>{z.value=K},R=K=>{if(K){if(y.value&&Array.isArray(K)){let U=K[0],P=pe(U[0]),v=pe(U[1]),H=pe(U[2]),J=new Date(P,v-1,H),X=K[1];P=pe(X[0]),v=pe(X[1]),H=pe(X[2]);let W=new Date(P,v-1,H);if(S.startDate=J,S.startArray=gt(J),S.endDate=W,S.endArray=gt(W),i.valueFormat){let Q=ht(i,J,i.valueFormat),_=ht(i,W,i.valueFormat);h("update:modelValue",[Q,_],{})}else h("update:modelValue",[J,W],{})}else{let U=K,P=pe(U[0]),v=pe(U[1]),H=pe(U[2]),J=new Date(P,v-1,H);if(S.startDate=J,S.startArray=gt(J),i.valueFormat){let X=ht(i,J,i.valueFormat);h("update:modelValue",X,{})}else h("update:modelValue",J,{})}h("change",K,{})}},L=K=>{let P=K.target.value;g.value=!0,h("focus",P,K)},$=K=>{setTimeout(()=>{g.value=!1},0);let P=K.target.value;i.maxLength&&P.length>Number(i.maxLength)&&(P=P.slice(0,Number(i.maxLength))),h("blur",P,K)},T=t.computed(()=>({[`${V}__append`]:!0})),q=t.computed(()=>ge(i.unit)>0),A=t.computed(()=>ge(i.unit)>0&&!g.value),O=t.computed(()=>({hidden:!A.value})),x=K=>{d(),h("update:modelValue",null,K),h("change","",K),h("clear","")},M=t.computed(()=>i.clearable&&!u.value&&!m.value),F=t.computed(()=>{let K=ge(b.value)>0;return i.clearable&&K&&g.value}),G=K=>{F.value?x(K):N()},Y=t.computed(()=>F.value&&M.value?a:r),ee=t.computed(()=>({action:!0}));return()=>{const K={class:E.value,style:D.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:N,onFocus:L,onBlur:$};s&&(K.disabled=!0);const U=[],P=t.h("input",K);U.push(P);const v=[],H={class:["action-icon"]},J=t.h(Y.value,H),X={class:ee.value,onClick:G},W=t.h("view",X,{default:()=>[J]});if(v.push(W),q.value){const st=t.h("view",{class:O.value},[i.unit]);v.push(st)}const Q={class:T.value},_=t.h("view",Q,{default:()=>v});U.push(_);const oe={default:()=>U};oe.label=c.slots.default,oe.prepend=c.slots.prepend,oe.append=c.slots.append,oe.fixedPreTip=c.slots.fixedPreTip,oe.fixedTip=c.slots.fixedTip;const ne=ke(i,Kn);ne.visible=z.value,ne["onUpdate:visible"]=B,ne["default-value"]=w.value,ne.onChoose=R;const ae={};if(c.slots.btn){const st=c.slots.btn();ae.btn=()=>st}c.slots.day&&(ae.day=c.slots.day),c.slots.topInfo&&(ae.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(ae.bottomInfo=c.slots.bottomInfo);const ye=t.h(l,ne,ae);oe.hide=()=>[ye];const Se=ke(i,me,ue);return t.h(n,Se,oe)}}}}const{componentName:Hu,create:ju,scope:Wu}=j("calendar-item"),Un=ju(Uu(Hu,Wu,$o,Ne,{CloseIcon:te.CircleClose,MarkIcon:te.Date},!1)),Yu={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 Xu(e,{CheckNormal:o,Checked:l}){return{props:{...Yu},setup(n,{emit:a,slots:r}){let s=t.inject("parent",null);const i=t.computed(()=>s.label.value===n.label),c=t.computed(()=>n.disabled?"fox-radio__icon--disable":i.value?"fox-radio__icon":"fox-radio__icon--unchecked"),u=t.computed(()=>s.position),m=()=>{if(i.value){if(r.checkedIcon)return r.checkedIcon();{const y=ie(n.iconSize),S=n.checkedIcon??l;return t.h(S,{width:y,height:y,class:c.value})}}else{if(r.icon)return r.icon();{const y=ie(n.iconSize),S=n.icon??o;return t.h(S,{width:y,height:y,class:c.value})}}},h=()=>t.h("view",{class:`${e}__label ${n.disabled?`${e}__label--disabled`:""}`},r.default?.()),p=()=>t.h("view",{class:`${e}__button ${i.value&&`${e}__button--active`} ${n.disabled?`${e}__button--disabled`:""}`},r.default?.()),k=()=>{i.value||n.disabled||n.readonly||s.updateValue(n.label)},g=u.value==="left";return()=>t.h("view",{class:`${e} ${e}--${n.shape} ${g?`${e}--reverse`:""}`,onClick:k},[n.shape=="button"?p():g?[h(),m()]:[m(),h()]])}}}const{componentName:Qu,create:Gu}=j("radio"),Eo=Gu(Xu(Qu,{CheckNormal:te.CheckNormal,Checked:te.CheckChecked})),{componentName:Gr,create:Zu}=j("radio-group"),Do=Zu({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{emit:o,slots:l}){const n=a=>o("update:modelValue",a);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:n}),t.watch(()=>e.modelValue,a=>o("change",a)),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),t.h("view",{class:`${Gr} ${Gr}--${e.direction}`,style:a},l.default?.())}}});function Zr(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(Io(e,r)===l)return a}else if(n==="item"){if(Me(l,r))return a}else if(Mt(e,r)===l)return a}return-1}function Io(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function Mt(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function Ju(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function _u(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let ef=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);let a=ut(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(De(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function tf(){const e=t.getCurrentInstance();return new ef(e.proxy)}function of(e){return{text:e,value:e}}const Jr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},nf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}};function lf(e,o,l,n,a){return{props:{...ue,...me,...Jr,...nf,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,Boolean,Object],default:""}},emits:["change","update:modelValue"],setup(r,s){const i=Ee(t.computed(()=>r.readonly)),c=Ve(t.computed(()=>r.disabled)),u=Ae(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!c.value||!i.value}},r.prop??s.attrs.name),h=tf(),p=t.ref([]);t.watch([()=>r.source,()=>r.params],async([d,f])=>{if(d){const b=await h.load("radio",d,f);if(b.length>0)if(typeof b[0]=="string"){const E=b.map(I=>of(I));p.value=E}else p.value=b}},{immediate:!0});let k=t.ref(-1);t.watch([()=>r.modelValue,()=>p.value],async([d,f])=>{k.value=Zr(r,f,d,r.valueType)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;if(k.value===-1)return null;const d=p.value[k.value];return Mt(r,d)}),y=d=>{let f=null,b=null;if(p.value.length>0){let w=Zr(r,p.value,d,"value");k.value=w,w>=0&&(b=p.value[w],r.valueType==="text"?f=Io(r,b):r.valueType==="item"?f=b:f=Mt(r,b))}else f=d;m("update:modelValue",f),m("change",f,b)},S=()=>{let d=null,f=null;if(p.value.length>0&&k.value!==-1){let b=p.value[k.value];r.valueType==="text"?d=Io(r,b):r.valueType==="item"?d=b:d=Mt(r,b)}m("update:modelValue",d),m("change",d,f)};if(Te({clear(){k.value!==-1&&(k.value=-1,S())}}),r.source){const d=()=>{const f=[],b=ke(r,Jr);return p.value.forEach((w,V)=>{const E=Mt(r,w),I=Ju(r,w);let D={...b,label:E,disabled:I};const z=_u(r,w,V);D={...D,...z},c.value&&(D.disabled=!0),i.value&&(D.readonly=!0);const N={};if(s.slots.icon&&(N.icon=s.slots.icon),s.slots.checkedIcon&&(N.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const R=s.slots.text(w);N.default=()=>[R]}else{const R=Io(r,w);N.default=()=>R}let B=t.h(a,D,N);f.push(B)}),f};return()=>{const f=d(),b={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:g,"onUpdate:modelValue":y},w=t.h(n,b,{default:()=>f}),V={default:()=>w};V.label=s.slots.default,V.prepend=s.slots.prepend,V.append=s.slots.append,V.fixedPreTip=s.slots.fixedPreTip,V.fixedTip=s.slots.fixedTip;const E=ke(r,me,ue);return t.h(l,E,V)}}else return()=>{const d=s.slots.options?.()??[];return t.h(n,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:g,"update:modelValue":y},{default:()=>d})}}}}const{componentName:af,create:rf,scope:sf}=j("radio-item"),Hn=rf(lf(af,sf,Ne,Do,Eo)),cf=(e,{CheckNormal:o,Checked:l,Indeterminate:n})=>({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,{emit:r,slots:s}){const i=t.inject("parent",null),c=t.reactive({partialSelect:a.indeterminate});t.watch(()=>a.indeterminate,b=>{c.partialSelect=b});const u=t.computed(()=>!!i),m=t.computed(()=>u.value?i.value.value.includes(a.label):!!a.modelValue),h=t.computed(()=>u.value?i.position:a.textPosition),p=t.computed(()=>a.disabled?"fox-checkbox__icon--disable":c.partialSelect?"fox-checkbox__icon--indeterminate":m.value?"fox-checkbox__icon":"fox-checkbox__icon--unchecked");let k="";const g=(b,w)=>{k="click",r("update:modelValue",b),r("change",b,w)};t.watch(()=>a.modelValue,b=>{k=="click"?k="":r("change",b)});const y=()=>{if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const b=ie(a.iconSize),w=a.indeterminateIcon??n;return t.h(w,{width:b,height:b,class:p.value})}}else if(m.value){if(s.checkedIcon)return s.checkedIcon();{const b=ie(a.iconSize),w=a.checkedIcon??l;return t.h(w,{width:b,height:b,class:p.value})}}else{if(s.icon)return s.icon();{const b=ie(a.iconSize),w=a.icon??o;return t.h(w,{width:b,height:b,class:p.value})}}},S=()=>t.h("view",{class:`${e}__label ${a.disabled?`${e}__label--disabled`:""}`},s.default?.()),d=()=>t.h("view",{class:`${e}__button ${m.value&&`${e}__button--active`} ${a.disabled?`${e}__button--disabled`:""}`},s.default?.()),f=b=>{if(!(a.disabled||a.readonly)){if(m.value&&c.partialSelect){c.partialSelect=!1,g(m.value,s.default?.()[0].children);return}if(g(!m.value,s.default?.()[0].children),u.value){const w=i.value.value,V=i.max.value,{label:E}=a,I=w.indexOf(E);I>-1?w.splice(I,1):I<=-1&&(w.length<V||!V)&&w.push(E),i.updateValue(w)}}};return t.onMounted(()=>{u.value&&i.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{u.value&&i.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${a.shape} ${h.value==="left"?`${e}--reverse`:""}`,onClick:f},[a.shape=="button"?d():[y(),S()]])}}),{componentName:df,create:uf}=j("checkbox"),qo=uf(cf(df,{CheckNormal:te.CheckNormal,Checked:te.Checked,Indeterminate:te.CheckDisabled})),{create:ff,componentName:_r}=j("checkbox-group"),zo=ff({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:o,emit:l}){const n=t.reactive({children:[]}),a=u=>{u.proxy&&n.children.push(u.proxy)},r=u=>{u.proxy&&(n.children=n.children.filter(m=>m!==u.proxy))},s=u=>{l("update:modelValue",u),l("change",u)},i=u=>{const m=[];u&&n.children.forEach(h=>{h?.disabled||m.push(h?.label)}),l("update:modelValue",m)},c=()=>{const u=n.children.filter(m=>m?.disabled?!1:!e.modelValue.includes(m.label)).map(m=>m.label);l("update:modelValue",u)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:a,unlink:r}),t.watch(()=>e.modelValue,u=>{l("change",u)}),Te({toggleAll:i,toggleReverse:c}),()=>{const u={};return e.textAlign&&(u["text-align"]=e.textAlign),t.h("view",{class:`${_r} ${_r}--${e.direction}`,style:u},o.default?.())}}});function es(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(jn(e,r)===l)return a}else if(n==="item"){if(Me(l,r))return a}else if(Mo(e,r)===l)return a}return-1}function jn(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function Mo(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function mf(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function pf(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let hf=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);let a=ut(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(De(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function gf(){const e=t.getCurrentInstance();return new hf(e.proxy)}function yf(e){return{text:e,value:e}}const kf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},ts={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}};function bf(e,o,l,n,a){return{props:{...kf,...ts,...ue,...me,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:[]}},emits:["change","update:modelValue"],setup(r,s){const i=Ve(t.computed(()=>r.disabled)),c=Ve(t.computed(()=>r.readonly)),u=Ae(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!i.value||!c.value}},r.prop??s.attrs.name),h=gf(),p=t.ref([]);t.watch([()=>r.source,()=>r.params],async([d,f])=>{if(d){const b=await h.load("checkbox",d,f);if(b.length>0)if(typeof b[0]=="string"){const E=b.map(I=>yf(I));p.value=E}else p.value=b}},{immediate:!0});const k=t.ref([]);t.watch([()=>r.modelValue,()=>p.value],async([d,f])=>{const b=[];Array.isArray(d)&&d.forEach(w=>{let V=es(r,f,w,r.valueType);V!==-1&&b.push(V)}),!Me(b,k.value)&&(k.value=b)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;let d=[];return k.value.forEach(f=>{let b=p.value[f];d.push(Mo(r,b))}),d}),y=d=>{let f=[],b=[];if(p.value.length>0){const w=[];Array.isArray(d)&&d.forEach(V=>{let E=es(r,p.value,V,"value");E!==-1&&w.push(E);const I=p.value[E];b.push(I),r.valueType==="text"?f.push(jn(r,I)):r.valueType==="item"?f.push(I):f.push(Mo(r,I))}),k.value=w}else f=d;m("update:modelValue",f),m("change",f,b)},S=t.ref();if(Te({toggleAll:d=>{S.value.toggleAll(d)},toggleReverse:()=>{S.value.toggleReverse()}}),r.source){const d=()=>{const f=[],b=ke(r,ts);return p.value.forEach((w,V)=>{const E=Mo(r,w),I=mf(r,w);let D={...b,label:E,disabled:I};const z=pf(r,w,V);D={...D,...z},i.value&&(D.disabled=!0),c.value&&(D.readonly=!0);const N={};if(s.slots.icon&&(N.icon=s.slots.icon),s.slots.checkedIcon&&(N.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(N.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const R=s.slots.text(w);N.default=()=>[R]}else{const R=jn(r,w);N.default=()=>R}let B=t.h(a,D,N);f.push(B)}),f};return()=>{const f=d(),b={class:`${e}`,ref:S,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:g.value,"onUpdate:modelValue":y},w=t.h(n,b,{default:()=>f}),V={default:()=>w};V.label=s.slots.default,V.prepend=s.slots.prepend,V.append=s.slots.append,V.fixedPreTip=s.slots.fixedPreTip,V.fixedTip=s.slots.fixedTip;const E=ke(r,me,ue);return t.h(l,E,V)}}else return()=>{const d=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:S,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:u.value,modelValue:g,"onUpdate:modelValue":y},{default:()=>d})}}}}const{componentName:Sf,create:Cf,scope:wf}=j("checkbox-item"),Wn=Cf(bf(Sf,wf,Ne,zo,qo)),Yn={modelValue:{type:[String,Number,Boolean],default:!1},disable:{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:Nf,create:Bf}=j("switch"),Af=Bf({components:{Loading1:te.Loading1},props:{...Yn},emits:["change","update:modelValue","update:loading"],setup(e,{emit:o}){const l=t.computed(()=>e.modelValue===e.activeValue),n=t.computed(()=>{const i=Nf;return{[i]:!0,[l.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-disable`]:e.disable,[`${i}-base`]:!0}}),a=t.computed(()=>({backgroundColor:l.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disable||e.loading)return;r="click";const c=l.value?e.inactiveValue:e.activeValue;o("update:modelValue",c),o("change",c,i)};return t.watch(()=>e.modelValue,i=>{r=="click"?r="":o("change",i)}),{classes:n,style:a,isActive:l,onClick:s}}}),Vf={class:"fox-switch-button"};function Tf(e,o,l,n,a,r){const s=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",Vf,[e.loading?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(s,{name:"loading",color:e.activeColor},null,8,["color"])]):t.createCommentVNode("",!0),e.activeText?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label open"},t.toDisplayString(e.activeText),513),[[t.vShow,e.isActive]]),t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label close"},t.toDisplayString(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):t.createCommentVNode("",!0)])],6)}const Po=Z(Af,[["render",Tf]]);function $f(e,o,l,n){return{props:{...ue,...me,...Yn},emits:["change","update:modelValue"],setup(a,r){const s=Ve(t.computed(()=>a.disabled)),i=Ee(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),u=e,m=qe(a,"modelValue"),h=p=>{m.value=p,c("update:modelValue",p,{}),c("change",p,{})};return()=>{const k={...ke(a,Yn),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":h},g=[],y=t.h(n,k);g.push(y);const S={default:()=>g};S.label=r.slots.default,S.fixedPreTip=r.slots.fixedPreTip,S.fixedTip=r.slots.fixedTip;const d=ke(a,me,ue);return d["content-class"]=u,t.h(l,d,S)}}}}const{componentName:Ef,create:Df,scope:If}=j("switch-item"),Xn=Df($f(Ef,If,Ne,Po));function qf(e,o,l,n){return{props:{...ue,...me,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"],setup(a,r){const{emitEvent:s}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},a.prop??r.attrs.name),{toLocaleRefs:i}=se.useFoxI18n(o),c=i(a,["placeholder"]),u=Ve(t.computed(()=>a.disabled)),m=Ee(t.computed(()=>a.readonly)),h=qe(a,"modelValue"),p=t.computed(()=>({[`${e}`]:!0})),k=t.computed(()=>({[`${e}__main`]:!0,[`${e}__disabled`]:u.value,[`${e}__placeholder`]:!u.value&&ce(h.value)})),g=Ae(t.computed(()=>a.textAlign),"textAlign"),y=t.computed(()=>{const R={};return g.value&&(R["text-align"]=g.value),R}),S=t.computed(()=>!ce(a.modelValue)||r.slots.main?!0:!!ce(a.desc)),d=t.computed(()=>ce(h.value)?c.placeholder.value:h.value),f=t.computed(()=>!ce(a.desc)||r.slots.sub),b=t.computed(()=>({[`${e}__sub`]:!0})),w=t.computed(()=>{const R={};return g.value&&(R["text-align"]=g.value),R}),V=()=>{s("focus",h.value)},E=()=>{s("blur",h.value)},I=t.computed(()=>({[`${e}__append`]:!0})),D=t.computed(()=>ge(a.unit)>0),z=R=>{u.value==!0||m.value==!0||s("click")},N=t.computed(()=>a.icon??l),B=t.computed(()=>({action:!0}));return()=>{const R=[];if(typeof r.slots.content=="function"){const Y=r.slots.content();R.push(Y)}else{const Y=[];if(S.value){const U={tabIndex:0,class:k.value,style:y.value,onFocus:V,onBlur:E,onClick:z};let P=null;r.slots.main?P=t.h("view",U,[r.slots.main(d.value)]):P=t.h("view",U,[d.value]),Y.push(P)}if(f.value){const U={tabIndex:0,class:b.value,style:w.value,onFocus:V,onBlur:E,onClick:z};let P=null;r.slots.sub?P=t.h("view",U,[r.slots.sub(a.desc)]):P=t.h("view",U,[a.desc]),Y.push(P)}const ee={class:p.value},K=t.h("view",ee,Y);R.push(K)}const L=[],$=ie(a.iconSize);let T=r.slots.icon;if(!T){const Y={width:$,height:$,class:["action-icon"]};T=t.h(N.value,Y)}const q={class:B.value,onClick:z},A=t.h("view",q,{default:()=>[T]});if(L.push(A),D.value){const Y=t.h("view",{},[a.unit]);L.push(Y)}const O={class:I.value},x=t.h("view",O,{default:()=>L});R.push(x);const M={default:()=>R};M.label=r.slots.default,M.prepend=r.slots.prepend,M.append=r.slots.append,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;const F=ke(a,me,ue);return t.h(n,F,M)}}}}const{componentName:zf,create:Mf,scope:Pf}=j("link-item"),Qn=Mf(qf(zf,Pf,te.ArrowRight,Ne)),Gn={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:Rf,componentName:xf}=j("rate"),Lf=Rf({props:{...Gn},emits:["update:modelValue","change"],setup(e,{emit:o,slots:l}){const n=t.ref([]),a=t.computed(()=>({[xf]:!0})),r=k=>{o("update:modelValue",k),o("change",k)},s=(k,g)=>{if(e.disabled||e.readonly)return;let y=0;g===1&&e.modelValue===g||(y=g,e.allowHalf&&k==2&&(y-=.5)),r(y)},i=(k,g,y)=>{let S=0;for(let d=g.value.length-1;d>=0;d--){const f=g.value[d];if(k>f.offsetLeft){y?S=d+(k>f.offsetLeft+f.clientWidth/2?1:.5):S=d+1;break}}return S},c=Ue(),u={onTouchStart(k){!e.touchable||e.readonly||c.start(k)},onTouchMove(k){e.touchable&&(c.move(k),c.isHorizontal()&&n.value&&(k.preventDefault(),r(i(c.moveX.value,n,e.allowHalf))))}},m=Math.random().toString(36).slice(-8),h=t.computed(()=>e.customIcon??te.StarFillN);return{classes:a,...u,onClick:s,toPxDesc:fe,renderIcon:(k,g)=>t.h(k,g),rateRefs:n,refRandomId:m,slots:l,customIcon:h}}}),Of=["id"],Ff={class:"fox-rate-item__icon--full"},Kf={key:0,class:"fox-rate-item__icon--half"},vf={key:1,class:"fox-rate-item__icon--half"};function Uf(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:s,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+s,style:t.normalizeStyle(s<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",Ff,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=e.modelValue?e.activeColor:e.voidColor})),{class:t.normalizeClass(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||s>e.modelValue}]),onClick:i=>e.onClick(1,s)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>s?(t.openBlock(),t.createElementBlock("view",Kf,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<s?(t.openBlock(),t.createElementBlock("view",vf,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):t.createCommentVNode("",!0)],12,Of))),128))],34)}const yt=Z(Lf,[["render",Uf]]);function Hf(e,o,l,n){return{props:{...ue,...me,...Gn},emits:["change","update:modelValue"],setup(a,r){const s=Ve(t.computed(()=>a.disabled)),i=Ee(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),u=e,m=qe(a,"modelValue"),h=p=>{m.value=p,c("update:modelValue",p,{}),c("change",p,{})};return()=>{const k={...ke(a,Gn),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":h},g=[],y=t.h(n,k);g.push(y);const S={default:()=>g};if(r.slots.default){const b=r.slots.default();S.label=()=>b}const d=ke(a,me,ue);return d["content-class"]=u,t.h(l,d,S)}}}}const{componentName:jf,create:Wf,scope:Yf}=j("rate-item"),Zn=Wf(Hf(jf,Yf,Ne,yt)),Jn={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,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],default:"请选择"},confirmText:{type:[String],default:"确认"},loadText:{type:[String]},loadMoreText:{type:[String],default:"无更多数据"},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,default:"请输入关键字"},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0}};function Xf(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(Ro(e,r)===l)return a}else if(n==="item"){if(Me(l,r))return a}else if(ns(e,r)===l)return a}return-1}function Ro(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function os(e,o){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?o[e.subTextKey]:o.text}function ns(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function Qf(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function Gf(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}class Zf{proxy;constructor(o){this.proxy=o}async load(o,l,n,a,r,s,i){if(Array.isArray(l)){let u=l;typeof i=="function"&&(u=u.filter(i));let m=(n-1)*a,h=m+a;h>u.length&&(h=u.length);const p=u.slice(m,h);return{totalSize:u.length,page:p}}if(typeof l=="function")return await Reflect.apply(l,null,[n,a,r,s]);const c=ut(this.proxy,o);return c===null?(console.error(`${o} component not found api function`),{totalSize:0,page:[]}):(De(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[l,n,a,r]))}}function Jf(){const e=t.getCurrentInstance();return new Zf(e.proxy)}const{componentName:_f,create:em,scope:tm}=j("infinite-loading"),om=em({props:{modelValue:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!0},threshold:{type:Number,default:200},loadText:{type:String},loadMoreText:{type:String},useCapture:{type:Boolean,default:!1}},emits:["scroll-change","load-more","update:modelValue"],components:{Loading:te.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=se.useFoxI18n(tm),a=n(e,["pullText","loadText","loadMoreText"]),r=t.ref(),s=Mr(r),i=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[_f]:!0})),u=y=>y?y.offsetTop+u(y.offsetParent):0,m=()=>{let y=0,S=0,d="down";if(s.value==window){const f=rn();r.value&&(y=u(r.value)+r.value.offsetHeight-f-window.innerHeight),S=f}else{const{scrollHeight:f,clientHeight:b,scrollTop:w}=s.value;y=f-b-w,S=w}return i.beforeScrollTop>S?d="up":d="down",i.beforeScrollTop=S,o("scroll-change",S),y<=e.threshold&&d=="down"},h=()=>{We(()=>{if(!m()||!e.hasMore||i.isInfiniting)return!1;i.isInfiniting=!0,o("update:modelValue",!0),t.nextTick(()=>o("load-more"))})},p=()=>{s.value&&s.value.addEventListener("scroll",h,e.useCapture)},k=()=>{s.value&&s.value.removeEventListener("scroll",h,e.useCapture)};t.onMounted(()=>{p()}),t.onUnmounted(()=>{k()});const g=t.ref(!1);return t.onActivated(()=>{g.value&&(g.value=!1,p())}),t.onDeactivated(()=>{g.value=!0,k()}),t.watch(()=>e.modelValue,y=>{y||(i.isInfiniting=!1)}),{classes:c,scroller:r,...t.toRefs(i),slots:l,...a}}}),nm={class:"fox-infinite__container"},lm={class:"fox-infinite__bottom"},am={key:0,class:"fox-infinite__bottom-box"},rm={class:"fox-infinite__bottom-box__text"},sm={class:"fox-infinite__bottom-tips"};function im(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"scroller"},[t.createElementVNode("view",nm,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",lm,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",am,[t.renderSlot(e.$slots,"loading",{},()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[t.createVNode(s,{class:"fox-icon-loading fox-infinite__bottom-box__img"})]),t.createElementVNode("view",rm,t.toDisplayString(e.loadText),1)])])):e.hasMore?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"finished",{key:1},()=>[t.createElementVNode("view",sm,t.toDisplayString(e.loadMoreText),1)])])],2)}const xo=Z(om,[["render",im]]),{componentName:cm,create:dm}=j("button"),um=dm({components:{Loading:te.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:o,slots:l}){const{type:n,size:a,shape:r,disabled:s,loading:i,color:c,plain:u,block:m}=t.toRefs(e),h=g=>{!i.value&&!s.value&&o("click",g)},p=t.computed(()=>{const g=cm;return{[g]:!0,[`${g}--${n.value}`]:n.value,[`${g}--${a.value}`]:a.value,[`${g}--${r.value}`]:r.value,[`${g}--plain`]:u.value,[`${g}--block`]:m.value,[`${g}--disabled`]:s.value,[`${g}--loading`]:i.value}}),k=t.computed(()=>{const g={};return c?.value&&(u.value?(g.color=c.value,g.background="#fff",c.value?.includes("gradient")||(g.borderColor=c.value)):(g.color="#fff",g.background=c.value)),g});return{handleClick:h,classes:p,getStyle:k}}}),fm={class:"fox-button__wrap"};function mm(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:o[0]||(o[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",fm,[e.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading"})):t.createCommentVNode("",!0),e.$slots.icon&&!e.loading?t.renderSlot(e.$slots,"icon",{key:1}):t.createCommentVNode("",!0),e.$slots.default?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass({"fox-button__text":e.$slots.icon||e.loading})},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)])],6)}const ze=Z(um,[["render",mm]]),{create:pm,scope:hm}=j("searchbar"),gm=pm({props:{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,default:()=>te.CircleClose},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},emits:["change","update:modelValue","blur","focus","clear","search","click-input","click-left-icon","click-right-icon"],setup(e,{emit:o}){const{toLocaleRefs:l}=se.useFoxI18n(hm),n=l(e,["placeholder"]),a=t.reactive({active:!1}),r=t.computed(()=>({background:e.background})),s=t.computed(()=>({background:e.inputBackground})),i=f=>{let w=f.target.value;e.maxLength&&w.length>Number(e.maxLength)&&(w=w.slice(0,Number(e.maxLength))),o("update:modelValue",w,f),o("change",w,f)},c=t.ref({}),u=f=>{let w=f.target.value;a.active=!0,c.value=e.focusStyle,o("focus",w,f)},m=f=>{setTimeout(()=>{a.active=!1},0);let w=f.target.value;e.maxLength&&w.length>Number(e.maxLength)&&(w=w.slice(0,Number(e.maxLength))),c.value={},o("blur",w,f)},h=f=>{o("update:modelValue","",f),o("change","",f),o("clear","")},p=()=>{o("search",e.modelValue)},k=f=>{o("click-input",f)},g=f=>{o("click-left-icon",e.modelValue,f)},y=f=>{o("click-right-icon",e.modelValue,f)},S=t.computed(()=>({textAlign:e.inputAlign})),d=t.ref(null);return t.onMounted(()=>{e.autofocus&&d.value.focus()}),{...n,inputsearch:d,...t.toRefs(a),valueChange:i,valueFocus:u,valueBlur:m,handleClear:h,handleSubmit:p,searchbarStyle:r,inputSearchbarStyle:s,focusCss:c,clickInput:k,leftIconClick:g,rightIconClick:y,styleSearchbar:S}}}),ym={key:0,class:"fox-searchbar__search-label"},km={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},bm=["type","maxlength","placeholder","value","disabled","readonly"],Sm={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-search-icon"},Cm={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function wm(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:"fox-searchbar",style:t.normalizeStyle(e.searchbarStyle)},[e.label?(t.openBlock(),t.createElementBlock("span",ym,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",km,[t.renderSlot(e.$slots,"leftout")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__search-input",e.shape]),style:t.normalizeStyle({...e.inputSearchbarStyle,...e.focusCss})},[e.$slots.leftin?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-searchbar__search-icon fox-searchbar__iptleft-search-icon",onClick:o[0]||(o[0]=(...s)=>e.leftIconClick&&e.leftIconClick(...s))},[t.renderSlot(e.$slots,"leftin")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner",e.$slots.rightin&&"fox-searchbar__input-inner-absolute"])},[t.createElementVNode("form",{class:"fox-searchbar__input-form",action:"#",onSubmit:o[5]||(o[5]=t.withModifiers((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[t.createElementVNode("input",{ref:"inputsearch",class:t.normalizeClass(["fox-searchbar__input-bar",e.clearable&&"fox-searchbar__input-bar_clear"]),type:e.inputType,maxlength:e.maxLength,placeholder:e.placeholder,value:e.modelValue,disabled:e.disabled,readonly:e.readonly,onClick:o[1]||(o[1]=(...s)=>e.clickInput&&e.clickInput(...s)),onInput:o[2]||(o[2]=(...s)=>e.valueChange&&e.valueChange(...s)),onFocus:o[3]||(o[3]=(...s)=>e.valueFocus&&e.valueFocus(...s)),onBlur:o[4]||(o[4]=(...s)=>e.valueBlur&&e.valueBlur(...s)),style:t.normalizeStyle(e.styleSearchbar)},null,46,bm)],32)],2),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner-icon",e.$slots.rightin&&"fox-searchbar__input-inner-icon-absolute"])},[e.clearable?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,onClick:o[6]||(o[6]=(...s)=>e.handleClear&&e.handleClear(...s)),class:"fox-searchbar__search-icon fox-searchbar__input-clear"},[e.$slots["clear-icon"]?t.renderSlot(e.$slots,"clear-icon",{key:0}):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.clearIcon),{key:1}))],512)),[[t.vShow,String(e.modelValue).length>0]]):t.createCommentVNode("",!0),e.$slots.rightin?(t.openBlock(),t.createElementBlock("view",Sm,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],2)],6),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",Cm,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const Lo=Z(gm,[["render",wm]]);function Nm(e,o,l){return{props:{...Jn},emits:["change","update:modelValue","update:text","loaded-data"],setup(n,{emit:a,slots:r}){const s=Jf(),i=t.ref([]),c=t.ref(1),u=t.ref(""),m=t.shallowRef(null),h=t.computed(()=>{const M={};return n.params&&Object.assign(M,n.params),ce(u.value)||(M[`${n.searchKey}`]=u.value),m.value&&Object.assign(M,m.value),M});let p=!0;const k=async(M,F,G)=>{try{let Y=null;ce(u.value)||(Y=K=>{const U=Ro(n,K);if(typeof U=="string"&&U.includes(u.value))return!0;const P=os(n,K);return!!(typeof P=="string"&&P.includes(u.value))});const ee=await s.load("actionsheet",M,F,G,h.value,p,Y??void 0);p=!1,ee.page.length===0?R.value=!1:(Reflect.apply([].push,i.value,ee.page),i.value.length>=ee.totalSize?R.value=!1:c.value=i.value.length/n.pageSize),B.value=!1}catch(Y){console.error("[FoxUI] Load ActionSheet Data Fail",Y),i.value=[]}setTimeout(()=>{a("loaded-data")},250)};t.watch([()=>n.source,()=>n.pageSize,()=>n.params],async([M,F,G])=>{n.source&&k(n.source,c.value,F)},{immediate:!0});const g=t.computed(()=>!n.multiple&&n.isAutoBackFill),y=t.ref([]);let S=null;const d=t.ref(n.visible);t.watch(()=>n.visible,M=>{d.value!==M&&(d.value=M),M?S=[...y.value]:S=null});const f=(M,F)=>{const G=[];return Array.isArray(M)||(M=[M]),M.forEach(Y=>{let ee=Xf(n,F,Y,n.valueType);ee!==-1&&G.push(ee)}),Me(G,y.value)?!1:(y.value=G,!0)};t.watch([()=>n.modelValue,()=>i.value],([M,F],[G,Y])=>{f(M,F)&&b()},{deep:!0});const b=()=>{const M=[],F=[],G=[];for(let Y of y.value){const ee=i.value[Y];F.push(ee);const K=Ro(n,ee);if(G.push(K),n.valueType==="item")M.push(ee);else if(n.valueType==="text")M.push(K);else{const U=ns(n,ee);M.push(U)}}n.multiple?(a("update:modelValue",M),a("update:text",G),a("change",M,F)):(a("update:modelValue",M[0]??null),a("update:text",G[0]??null),a("change",M[0],F[0]??null))},w=()=>{S&&(y.value=S)},V=M=>{const F=y.value.indexOf(M);n.multiple?F===-1?y.value.push(M):y.value.splice(F,1):F===-1?y.value=[M]:y.value=[],(g.value||!n.poppable&&!n.showFooter)&&(b(),I(!1))},E=t.computed(()=>({})),I=M=>{d.value=M,a("update:visible",M)},D=()=>{w(),I(!1)},z=()=>{I(!1),b()},N=()=>{i.value=[],c.value=1,n.source&&k(n.source,c.value,n.pageSize)},B=t.ref(!1),R=t.ref(!0),L=async()=>{if(!n.source){B.value=!1;return}await k(n.source,c.value,n.pageSize)};t.watch(()=>u.value,(M,F)=>{ce(M)&&!ce(F)&&L()});const $=()=>{let M=n.title??"";r.title&&(M=r.title());const F=t.h("view",{class:["fox-actionsheet__header-title"]},[M]),G=t.h(te.Close,{class:["fox-actionsheet__header-icon"],onClick:D});return t.h("view",{class:["fox-actionsheet__header"]},[F,G])},T=()=>{let M=null;if(r.search)M=r.search();else{const F={onSearch:N,placeholder:n.seachPlaceholder,disabled:n.disabled,modelValue:u.value,"onUpdate:modelValue":G=>{u.value=G}};M=t.h(Lo,F,{leftin:()=>t.h(te.Search2)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[M])},q=(M,F,G)=>{if(r.optionLabel)return r.optionLabel({text:M,subText:F,item:G});const Y=[],ee=t.h("view",{class:"fox-actionsheet__list-item-text"},[M]);if(Y.push(ee),F){const K=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[F]);Y.push(K)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},Y)},A=(M,F,G)=>{if(r.optionIcon)return r.optionIcon({checked:M,iconSize:F,item:G});if(M){if(r.checkedIcon)return r.checkedIcon();{const Y=n.checkedIcon??te.Checked;return t.h(Y,{width:F,height:F,class:["fox-actionsheet__list-item-icon"]})}}else{if(r.icon)return r.icon();{const Y=n.icon??te.CheckNormal;return t.h(Y,{width:F,height:F,class:["fox-actionsheet__list-item-icon"]})}}},O=()=>{const M=[];for(let F=0;F<i.value.length;F++){const G=i.value[F],Y=Ro(n,G),ee=os(n,G),K=["fox-actionsheet__list-item"],U={};let P=Qf(n,G),v=n.iconSize?ie(n.iconSize):null;const H=Gf(n,G,F);H&&(P=P||H.disabled,H.class&&K.push(H.class),H.style&&Object.assign(U,H.style)),P=!!(n.disabled||P);const J=y.value.includes(F);P&&K.push("is-disabled"),J&&K.push("is-checked");const X={class:K,style:U,key:`${F}`,onClick:()=>{P||V(F)}};let W=[];if(r.option)W.push(r.option({item:G}));else{const _=q(Y,ee,G);W.push(_);const oe=A(J,v,G);W.push(oe)}const Q=t.h("view",X,W);M.push(Q)}return M},x=()=>{let M=[];if(r.buttons)M=r.buttons();else{const G=t.h(ze,{type:"primary",block:"block",onClick:z,disabled:n.disabled},{default:()=>n.confirmText});M.push(G)}return t.h("view",{class:"fox-actionsheet__footer"},[M])};return Te({search:async(M=null,F=!0)=>{m.value=M&&t.toRaw(M),t.triggerRef(m),F&&(i.value=[],c.value=1),t.nextTick(()=>{L()})},clear:()=>{i.value=[],c.value=1}}),()=>{const M=[];if(n.showHeader){const J=$();M.push(J)}if(n.showSearchbar){const J=T();M.push(J)}const F=O(),G={hasMore:R.value,loadText:n.loadText,loadMoreText:n.loadMoreText,modelValue:B.value,"onUpdate:modelValue":J=>{B.value=J},onLoadMore:L},Y=t.h(xo,G,{default:()=>F}),ee={};n.optionsHeight&&(ee.height=n.optionsHeight);const K={"fox-actionsheet__list":!0};n.poppable||(K["fox-actionsheet__list--inner"]=!0);const U=t.h("view",{class:K,style:ee},[Y]);if(M.push(U),n.showFooter&&!g.value){const J=x();M.push(J)}const P=t.h("view",{class:"fox-actionsheet"},M);if(!n.poppable)return P;const v=["fox-actionsheet__popup"];n.popClass&&v.push(n.popClass);const H={popClass:v.join(" "),style:E.value,visible:d.value,closeable:!1,"onUpdate:visible":I,position:n.position,round:"round",onClickOverlay:D,closeOnClickOverlay:n.closeOnClickOverlay};return t.h(de,H,{default:()=>P})}}}}const{componentName:xB,create:Bm,scope:LB}=j("actionsheet-pane"),Oo=Bm(Nm()),Am={type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Vm(e,o,l,n,a,r,s){return{props:{...ue,...me,...Am,...Jn},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const u=Ve(t.computed(()=>i.disabled)),m=Ee(t.computed(()=>i.readonly)),{emitEvent:h}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:p}=se.useFoxI18n(o),k=p(i,["placeholder"]),g=t.ref(!1),y=qe(i,"modelValue"),S=t.ref(""),d=t.computed(()=>Array.isArray(S.value)?S.value.join(i.separator):S.value),f="fox-input-item",b=t.computed(()=>({[f]:!0,[`${f}__disabled`]:u.value})),w=Ae(t.computed(()=>i.textAlign),"textAlign"),V=t.computed(()=>{const K={};return w.value&&(K["text-align"]=w.value),K}),E=t.ref(!1),I=()=>{E.value=!0},D=K=>{E.value=K},z=K=>{y.value=K,h("update:modelValue",K)},N=(K,U)=>{h("change",K,U)},B=K=>{let P=K.target.value;g.value=!0,h("focus",P,K)},R=K=>{setTimeout(()=>{g.value=!1},0);let P=K.target.value;i.maxLength&&P.length>Number(i.maxLength)&&(P=P.slice(0,Number(i.maxLength))),h("blur",P,K)},L=K=>{S.value=K,h("update:text",K)},$=t.computed(()=>({[`${f}__append`]:!0})),T=t.computed(()=>ge(i.unit)>0),q=t.computed(()=>ge(i.unit)>0&&!g.value),A=t.computed(()=>({hidden:!q.value})),O=K=>{y.value="",h("update:modelValue","",K),h("change","",K),h("clear","")},x=t.computed(()=>i.clearable&&!u.value&&!m.value),M=t.computed(()=>ge(y.value)>0&&g.value),F=K=>{M.value?O(K):I()},G=t.computed(()=>M.value&&x.value?n:a),Y=t.computed(()=>({action:!0})),ee=t.ref(null);return Te({search:K=>{ee.value&&ee.value.search(K)}}),()=>{const K={class:b.value,style:V.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:I,onFocus:B,onBlur:R};s&&(K.disabled=!0);const U=[],P=t.h("input",K);U.push(P);const v=[],H={class:["action-icon"]},J=t.h(G.value,H),X={class:Y.value,onClick:F},W=t.h("view",X,{default:()=>[J]});if(v.push(W),T.value){const st=t.h("view",{class:A.value},[i.unit]);v.push(st)}const Q={class:$.value},_=t.h("view",Q,{default:()=>v});U.push(_);const oe={default:()=>U};oe.label=c.slots.default,oe.prepend=c.slots.prepend,oe.append=c.slots.append,oe.fixedPreTip=c.slots.fixedPreTip,oe.fixedTip=c.slots.fixedTip;const ne=ke(i,Jn);ne.ref=ee,ne.class=i.actionsheetProps,ne.disabled=u.value||m.value,ne.visible=E.value,ne["onUpdate:visible"]=D,ne.modelValue=y.value,ne["onUpdate:modelValue"]=z,ne.text=S.value,ne["onUpdate:text"]=L,ne.onChange=N,ne.poppable=!0;const ae={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},ye=t.h(r,ne,ae);oe.hide=()=>[ye];const Se=ke(i,me,ue);return t.h(l,Se,oe)}}}}const{componentName:Tm,create:$m,scope:Em}=j("actionsheet-item"),_n=$m(Vm(Tm,Em,Ne,te.CircleClose,te.ArrowRight,Oo));function Dm(e,o){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return Qa(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:OB,create:Im,scope:FB}=j("domain-provider"),el=Im(Dm()),qm={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 zm(e,o){return{inheritAttrs:!1,props:qm,setup(l,{slots:n}){if(Ye&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const s=(p,k)=>{if(m===null){r.set(p,{visible:null,callback:k});return}a.has(p)&&m.unobserve(p),a.set(p,{visible:null,callback:k}),m.observe(p)},i=p=>{if(m===null){r.delete(p);return}a.has(p)&&(a.delete(p),m.unobserve(p))};let c=l.initialVisibleObserverSize;bi({acquire:()=>{const p=c>0;return c--,p},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:s,unobserve:i});let m=null;const h=(p,k,g)=>{m=new IntersectionObserver(y=>{for(let S of y){let d=!1;S.intersectionRatio>0&&(d=!0);const f=a.get(S.target);if(f)try{if(l.loadPolicy==="lazy"&&!d&&f.visible!==null)return;f.visible=d,f.callback(d)}catch(b){console.error(b)}}},{root:p,rootMargin:k,threshold:g}),r.forEach((y,S)=>{a.set(S,y),m?.observe(S)}),r.clear()};t.watch([()=>l.root,()=>l.disabled],([p,k])=>{if(k||!p||m)return;let g=null;typeof p=="string"?g=document.querySelector(p):g=p,g&&h(g,l.rootMargin,l.threshold)},{immediate:!0}),t.onUnmounted(()=>{m&&(m.disconnect(),m=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:KB,create:Mm,scope:vB}=j("rolling-provider"),tl=Mm(zm()),{create:Pm,componentName:Fo,scope:UB}=j("tabs-bar"),Rm=Pm({components:{MoreH:te.MoreH},props:{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"},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},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{slots:o,emit:l}){const n=t.computed(()=>{const q={};return q[`${Fo}`]=!0,q}),a=t.computed(()=>{const q={};return q[`${Fo}__titles`]=!0,q[`${e.direction}`]=!0,e.align==="left"&&(q.left=!0),e.scroll===!0&&(q.scrollable=!0),e.shape&&(q[`${e.shape}`]=!0),q}),r=t.computed(()=>({})),s=t.computed(()=>{if(!e.gutter)return 0;const q=ie(e.gutter);return q<=0?0:q}),i=t.ref(e.modelValue);t.watch(()=>e.modelValue,q=>{i.value!==q&&(i.value=q,T(!1))});const c=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),u=t.ref(),m=t.ref(!1),h=()=>{const q=!m.value;p(q)},p=q=>{const A=q;A?(m.value=A,setTimeout(()=>{c.value["fox-tabs-bar__popup--show"]=!0,c.value["fox-tabs-bar__popup--hide"]=!1},0)):(c.value["fox-tabs-bar__popup--show"]=!1,c.value["fox-tabs-bar__popup--hide"]=!0,u.value?u.value.addEventListener("transitionend",()=>{m.value=!1},{once:!0}):setTimeout(()=>{m.value=!1},0))},k=t.ref(),g=t.ref([]),y=(q,A)=>{g.value[A]=q},S=q=>A=>{y(A,q)},d=(q,A)=>{const O=k.value,x=g.value;if(!O||!x||!x[q])return;const M=x[q];let F=0;e.direction==="vertical"?F=M.offsetTop-(O.offsetHeight-M.offsetHeight)/2:F=M.offsetLeft-(O.offsetWidth-M.offsetWidth)/2,f(O,F,A?0:.3,e.direction)},f=(q,A,O,x)=>{let M=0;const F=x==="horizontal"?q.scrollLeft:q.scrollTop,G=O===0?1:Math.round(O*1e3/16);function Y(){x==="horizontal"?q.scrollLeft+=(A-F)/G:q.scrollTop+=(A-F)/G,++M<G&&Xe(Y)}Y()},b=q=>q[e.textKey],w=q=>q[e.valueKey],V=q=>q[e.visibleKey],E=q=>q[e.disabledKey],I=(q,A)=>{const O=e.itemOptions;return typeof O=="function"?O(q,A):O||null},D=(q,A)=>{const O=w(q),x={};x[`${Fo}__titles-item`]=!0,x.disabled=E(q),x.active=O===i.value,e.shape&&(x[`${e.shape}`]=!0),e.ellipsis&&(x.ellipsis=!0);const M=I(q,A);return M&&(M.class&&(x[`${M.class}`]=!0),M.disabled===!0&&(x.disabled=M.disabled)),x},z=(q,A)=>{const O={};if(s.value>0){const M=Math.abs(s.value/2);e.direction==="vertical"?(O["margin-top"]=`${M}px`,O["margin-bottom"]=`${M}px`):(O["margin-left"]=`${M}px`,O["margin-right"]=`${M}px`)}const x=I(q,A);return x&&x.style&&Object.assign(O,x.style),O},N=(q,A)=>`${w(q)??A}`,B=(q,A)=>{const O=w(q),x={};x[`${Fo}__popup-item`]=!0,x.disabled=E(q),x.active=O===i.value,e.shape&&(x[`${e.shape}`]=!0);const M=I(q,A);return M&&M.disabled===!0&&(x.disabled=M.disabled),x},R=t.computed(()=>(e.data??[]).filter(A=>V(A)!==!1)),L=(q,A)=>{const O=w(q);i.value=O,d(A,!1),l("update:modelValue",O),l("change",q,A)},$=(q,A)=>{L(q,A),p(!1)},T=q=>{if(!Array.isArray(e.data)||!e.scroll)return;const A=e.data.findIndex(O=>w(O)===i.value);A!==-1&&d(A,q)};return t.watch(()=>e.data,()=>{setTimeout(T,0)}),t.onMounted(()=>{T(!0)}),{classes:n,titlesClasses:a,titlesStyles:r,itemClasses:D,itemStyles:z,itemKey:N,popupItemClasses:B,filterTabItems:R,getItemText:b,getItemValue:w,onTabChange:L,titlesRef:k,createItemRefs:S,togglePopupVisible:h,onQuickNavigate:$,popupClasses:c,popupVisible:m,popupRef:u}}}),xm={class:"fox-tabs-bar"},Lm=["onClick"],Om={class:"fox-tabs-bar__titles-item-text"},Fm=t.createElementVNode("view",{class:"fox-tabs-bar__titles-item-line"},null,-1),Km=["onClick"];function vm(e,o,l,n,a,r){const s=t.resolveComponent("MoreH");return t.openBlock(),t.createElementBlock("view",xm,[t.createElementVNode("view",{ref:"titlesRef",class:t.normalizeClass(e.titlesClasses),style:t.normalizeStyle(e.titlesStyles)},[t.renderSlot(e.$slots,"default",{},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filterTabItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:e.createItemRefs(c),class:t.normalizeClass(e.itemClasses(i,c)),style:t.normalizeStyle(e.itemStyles(i,c)),key:e.itemKey(i),onClick:u=>e.onTabChange(i,c)},[t.renderSlot(e.$slots,"item",{item:i,index:c},()=>[t.createElementVNode("view",Om,t.toDisplayString(e.getItemText(i)),1),Fm])],14,Lm))),128))])],6),e.showQuickNavigation?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs-bar__navigation",onClick:o[0]||(o[0]=(...i)=>e.togglePopupVisible&&e.togglePopupVisible(...i))},[t.renderSlot(e.$slots,"navigation",{},()=>[t.createVNode(s)])])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("view",{ref:"popupRef",class:t.normalizeClass(e.popupClasses)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filterTabItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.popupItemClasses(i,c)),key:e.itemKey(i),onClick:u=>e.onQuickNavigate(i,c)},[t.renderSlot(e.$slots,"popup-item",{item:i,index:c},()=>[t.createTextVNode(t.toDisplayString(e.getItemText(i)),1)])],10,Km))),128))],2),[[t.vShow,e.popupVisible]])])}const ol=Z(Rm,[["render",vm]]),ls=Symbol("TabsStatesKey"),{create:Um}=j("tabs-container"),Hm=Um({props:{modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"}},emits:["update:modelValue","change"],setup(e,{emit:o}){const l=t.shallowRef([]),n={current:t.ref(e.modelValue??""),direction:t.ref(e.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:m=>{const h={name:m};n.current.value===m&&(h.loaded=!0),l.value.push(h),t.triggerRef(l)},remove:m=>{const h=l.value.findIndex(p=>p.name===m);h!==-1&&l.value.splice(h,1)},isLoaded:m=>{const h=l.value.findIndex(p=>p.name===m);return h!==-1?n.current.value?l.value[h].loaded??!1:h===0:!1}};t.provide(ls,n);const a=m=>{const h=l.value.findIndex(p=>p.name===m);h!==-1&&(l.value[h].loaded=!0,t.triggerRef(l))};t.watch([()=>e.modelValue,()=>e.direction],([m,h])=>{n.current.value!==m&&(n.current.value=m??"",a(m??"")),n.direction.value!==h&&(n.direction.value=h)});const r=t.ref(null),s=t.ref(null),i=t.computed(()=>({"fox-tabs-container":!0,[`${e.direction}`]:!0})),c=t.computed(()=>{const m={},h=l.value.length;if(h<=0)return m;const p=l.value.findIndex(k=>k.name===n.current.value);return n.direction.value==="vertical"?n.tabHeight.value>0&&(m.height=`${h*n.tabHeight.value}px`,p!==-1&&(m.transform=`translate(0, -${p*n.tabHeight.value}px)`)):n.tabWidth.value>0&&(m.width=`${h*n.tabWidth.value}px`,p!==-1&&(m.transform=`translate(-${p*n.tabWidth.value}px, 0)`)),m});let u=null;return t.onMounted(()=>{if(!r.value)return;const m=()=>{const h=po(r.value);n.tabWidth.value=h.width,n.tabHeight.value=h.height};window.ResizeObserver&&(u=new window.ResizeObserver(m),u.observe(r.value)),m()}),t.onBeforeUnmount(()=>{u&&(u.disconnect(),u=null)}),{tabsRef:r,panesRef:s,classes:i,panesStyles:c}}});function jm(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"tabsRef"},[t.createElementVNode("view",{class:"fox-tabs-container__panes",style:t.normalizeStyle(e.panesStyles),ref:"panesRef"},[t.renderSlot(e.$slots,"default")],4)],2)}const nl=Z(Hm,[["render",jm]]),{create:Wm}=j("tabs-pane"),Ym=Wm({components:{Loading:te.Loading},props:{paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null}},setup(e,{emit:o}){const l=t.inject(ls);t.onMounted(()=>{l.add(e.paneKey)}),t.onBeforeUnmount(()=>{l.remove(e.paneKey)});const n=t.computed(()=>{const r={};return l.direction.value==="vertical"&&l.tabHeight.value>0?r.height=`${l.tabHeight.value}px`:l.tabWidth.value>0&&(r.width=`${l.tabWidth.value}px`),r}),a=t.computed(()=>e.loaded!=null?he(e.loaded):l.isLoaded(e.paneKey));return{styles:n,isLoaded:a}}}),Xm={class:"fox-tabs-pane__empty"},Qm=t.createElementVNode("view",{class:"fox-tabs-pane__empty-text"},"loading",-1);function Gm(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:"fox-tabs-pane",style:t.normalizeStyle(e.styles)},[e.isLoaded?t.renderSlot(e.$slots,"default",{key:0}):t.renderSlot(e.$slots,"empty",{key:1},()=>[t.createElementVNode("view",Xm,[t.createVNode(s,{class:"fox-tabs-pane__empty-icon"}),Qm])])],4)}const ll=Z(Ym,[["render",Gm]]),as=10;function Zm(e,o){return e>o&&e>as?"horizontal":o>e&&o>as?"vertical":""}function Jm(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},o=()=>e.direction==="vertical",l=()=>e.direction==="horizontal",n=()=>{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 e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Zm(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:n,isVertical:o,isHorizontal:l,state:e}}function _m(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function ep(e){e.stopPropagation()}function tp(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&ep(e)}class op{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(o,l){this.startMove=o,this.updateMove=l,this.isTouch=_m()}open(o){Array.isArray(o)||(o=[o]),this.els=o;const l=Jm(),n=(a,r,s,i)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(l.start(a),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(l.move(a),tp(a,!0),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(o=>{this.touchstart&&o.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function np(e,o){return new op(e,o)}const lp={top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},draggable:{type:[Boolean]}},ap=(e,o,l,n=!1)=>({props:{...lp},emits:["click"],setup(a,{slots:r,emit:s}){const i=t.reactive({top:a.top,right:a.right,bottom:a.bottom,left:a.left}),c=t.computed(()=>({[`${e}`]:!0})),u=t.computed(()=>{const f={};return ce(i.top)||(f.top=i.top),ce(i.right)||(f.right=i.right),ce(i.bottom)||(f.bottom=i.bottom),ce(i.left)||(f.left=i.left),ce(a.width)||(f.width=a.width),ce(a.height)||(f.height=a.height),ce(a.color)||(f.color=a.color),ce(a.background)||(f.background=a.background),f}),m=t.computed(()=>({[`${e}__icon`]:!0})),h=()=>{s("click")},p=t.ref(null),k=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},g={x:0,y:0},d=np(f=>{if(!p.value)return;const b=p.value;k(),i.left=b.offsetLeft,i.top=b.offsetTop,b.style.left=`${i.left}px`,b.style.top=`${i.top}px`,b.style.right=null,b.style.bottom=null,g.x=i.left,g.y=i.top},f=>{if(!p.value)return;const b=p.value;k(),i.left=g.x+f.x,i.top=g.y+f.y,b.style.left=`${i.left}px`,b.style.top=`${i.top}px`});return t.onMounted(()=>{if(a.draggable&&p.value){const f=[p.value];d.open(f)}}),t.onBeforeUnmount(()=>{a.draggable&&p.value&&d.close()}),()=>{let f=[];const b=typeof r.default=="function"?r.default():[];if(b&&b.length>0)f=b;else{const V=t.h(l,{class:m.value});f.push(V)}const w={ref:V=>{p.value=V},class:c.value,style:u.value,onClick:h};return t.h("view",w,f)}}}),{componentName:rp,create:sp,scope:ip}=j("floating-button"),al=sp(ap(rp,ip,te.Uploader,!1));function cp(e,o){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const n=l.getBoundingClientRect().width;if(n>0){o(n);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const a=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),o(a)},500)}const dp={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function up(e,o){return{props:{...dp},emits:["click"],setup(l,n){const a=t.ref(!0),r=t.ref(null),s=t.computed(()=>{const p={[`${e}`]:!0,"is-truncated":l.truncated};return l.type&&(p[`${e}--${l.type??"default"}`]=!0),l.size&&(p[`${e}--${l.size}`]=!0),p}),i=t.computed(()=>{const p={},k=l.textColor??l.color;return k&&(p.color=k),p}),c=p=>{if(p&&he(l.showOverflowTooltip)){const k=p.clientWidth;cp(p,g=>{a.value=g<=k})}};let u=null;t.onMounted(()=>{if(!he(l.showOverflowTooltip))return;const p=r.value;c(p),p&&window.ResizeObserver&&(u=new window.ResizeObserver(()=>{c(p)}),u.observe(p))}),t.onUnmounted(()=>{u?.disconnect()});const m=(p,k)=>{let g=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const y=l.highlightFilter;if(p.indexOf(y)!==-1){const d=p.replace(new RegExp(y,"g"),`<span>${y}</span>`);k.innerHTML=d,k.class["is-highlight"]=!0,g=t.h(l.tag,k)}}else if(typeof l.highlightFilter=="function"){const y=l.highlightFilter(p);y&&(k.innerHTML=y,k.class["is-highlight"]=!0,g=t.h(l.tag,k))}return g},h=p=>{n.emit("click",p)};return()=>{const p={onClick:h,class:s.value,style:i.value,ref:r};let k=null;if(he(l.numberFormat)&&typeof n.slots.default=="function"){const d=n.slots.default();if(Array.isArray(d)&&d.length===1){const f=d[0].type.toString();if(f==="Symbol(Text)"||f==="Symbol(v-txt)"){const b=pe(l.digits),w=pe(l.decimalLength),V=he(l.autoPadding);let E=`${d[0].children}`,I=E.split("").reverse().join("");I=Gt(I,w,V,b,l.separator),E=I.split("").reverse().join(""),l.highlightFilter!==void 0&&(k=m(E,p)),k||(p.innerHTML=E,k=t.h(l.tag,p))}}}else{if(l.highlightFilter!==void 0&&typeof n.slots.default=="function"){const d=n.slots.default();if(Array.isArray(d)&&d.length===1){const f=d[0].type.toString();if(f==="Symbol(Text)"||f==="Symbol(v-txt)"){const b=`${d[0].children}`;k=m(b,p),k||(p.innerHTML=b,k=t.h(l.tag,p))}}}k||(k=t.h(l.tag,p,{default:n.slots.default}))}if(!l.mark&&!l.icon&&!n.slots.mark)return k;let y=null;if(l.icon){const d={[`${e}__mark-wrap`]:!0};l.type&&(d[`${e}__mark-wrap--${l.type}`]=!0);const f={},b=l.color;b&&(f.color=b);const w={class:d,style:f};y=t.h("view",w,t.h(l.icon))}else if(n.slots.mark){const d={[`${e}__mark-wrap`]:!0};l.type&&(d[`${e}__mark-wrap--${l.type}`]=!0);const f={},b=l.color;b&&(f.color=b);const w={class:d,style:f};y=t.h("view",w,{default:n.slots.mark})}else{const d={[`${e}__mark`]:!0};l.type&&(d[`${e}__mark--${l.type??"default"}`]=!0);const f={},b=l.color;b&&(f["background-color"]=b);const w={class:d,style:f};y=t.h("view",w)}const S={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",S,[y,k])}}}}const{componentName:fp,create:mp,scope:HB}=j("text"),rl=mp(up(fp)),{componentName:pp,create:hp}=j("cell"),gp=hp({components:{Right:te.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:o}){const l=t.computed(()=>{const r=pp;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),n=t.computed(()=>({borderRadius:fe(e.roundRadius)}));return{handleClick:r=>{o("click",r)},classes:l,baseStyle:n}}}),yp={key:0,class:"fox-cell__icon"},kp={key:1,class:"fox-cell__title"},bp={class:"title"},Sp={class:"fox-cell__title-desc"};function Cp(e,o,l,n,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:o[0]||(o[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",yp,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",kp,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",bp,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Sp,t.toDisplayString(e.subTitle),1)],64)):t.renderSlot(e.$slots,"title",{key:1},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),7)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"link",{},()=>[e.isLink?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const sl=Z(gp,[["render",Cp]]),{componentName:wp,create:Np}=j("cell-group"),Bp=Np({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[wp]:!0}))}}}),Ap={key:1,class:"fox-cell-group__title"},Vp={key:3,class:"fox-cell-group__desc"},Tp={class:"fox-cell-group__wrap"};function $p(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):e.title?(t.openBlock(),t.createElementBlock("view",Ap,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.$slots.desc?t.renderSlot(e.$slots,"desc",{key:2}):e.desc?(t.openBlock(),t.createElementBlock("view",Vp,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Tp,[t.renderSlot(e.$slots,"default")])],2)}const il=Z(Bp,[["render",$p]]),{componentName:Ep,create:Dp}=j("image"),Ip=Dp({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:te.Image,ImageError:te.ImageError},emits:["click","load","error"],setup(e,{emit:o}){const l=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),n=t.computed(()=>{const k=Ep;return{[k]:!0,[`${k}-round`]:e.round}}),a=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const k={threshold:[0],rootMargin:"0px"};a.value=new IntersectionObserver(g=>{g.forEach(y=>{y.isIntersecting&&(r.value=!0,a.value.disconnect())})},k),s.value&&a.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{a.value&&a.value.disconnect()});const c=t.computed(()=>{let k={};return e.width&&(k.width=fe(e.width)),e.height&&(k.height=fe(e.height)),e.radius!==void 0&&e.radius!==null&&(k.overflow="hidden",k.borderRadius=fe(e.radius)),k}),u=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,k=>{l.isError=!1,l.loading=!0});const m=()=>{l.loading=!1,o("load")},h=()=>{l.isError=!0,l.loading=!1,o("error")},p=k=>{o("click",k)};return{...t.toRefs(l),imageClick:p,classes:n,styles:u,stylebox:c,error:h,load:m,show:r,imgRef:s}}}),qp=["src","date-src","alt"],zp={key:0,class:"fox-img-loading"},Mp={key:1,class:"fox-img-error"};function Pp(e,o,l,n,a,r){const s=t.resolveComponent("Image"),i=t.resolveComponent("ImageError");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.stylebox),onClick:o[2]||(o[2]=(...c)=>e.imageClick&&e.imageClick(...c))},[t.createElementVNode("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:o[0]||(o[0]=(...c)=>e.load&&e.load(...c)),onError:o[1]||(o[1]=(...c)=>e.error&&e.error(...c)),style:t.normalizeStyle(e.styles)},null,44,qp),e.loading?(t.openBlock(),t.createElementBlock("div",zp,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,width:"16px",height:"20px",name:"image"})),t.renderSlot(e.$slots,"loading")])):t.createCommentVNode("",!0),e.isError&&!e.loading?(t.openBlock(),t.createElementBlock("div",Mp,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,width:"16px",height:"20px",name:"imageError"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}const cl=Z(Ip,[["render",Pp]]),{create:Rp}=j("layout"),dl=Rp({}),{componentName:xp,create:Lp}=j("col"),Op=Lp({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const o=xp,l=t.inject("gutter"),n=t.computed(()=>({[o]:!0,[`${o}-gutter`]:l,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),a=t.computed(()=>({paddingLeft:l/2+"px",paddingRight:l/2+"px"}));return{classes:n,style:a}}});function Fp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const ul=Z(Op,[["render",Fp]]),{componentName:Kp,create:vp}=j("row"),Up=vp({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 o=Kp;t.provide("gutter",e.gutter);const l=(a,r)=>a?r?`fox-row-${a}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
5
+ */function Gt(e,n="0"){let l=0,o=-1;e[0]=="-"&&(l++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(l++,o=2,n=n.substring(1),n.length),e=we(e),n=we(n),[e,n]=Wn(we(e),we(n)),l==1&&(o==1?e=jn(e):n=jn(n));let a=Ta(e,n);return l?l==2?"-"+we(a):e.length<a.length?we(a.substring(1)):"-"+we(jn(a)):we(a)}function jn(e){let n="",l=e.length,o=e.split(".")[1],a=o?o.length:0;for(let s=0;s<l;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 Ta(n,r)}function we(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 Wn(e,n){let l=e.split("."),o=n.split("."),a=l[0].length,r=o[0].length;return a>r?o[0]=new Array(Math.abs(a-r)+1).join("0")+(o[0]?o[0]:""):l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""),a=l[1]?l[1].length:0,r=o[1]?o[1].length:0,(a||r)&&(a>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(a-r)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function Ta(e,n){[e,n]=Wn(e,n);let l="",o=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){l="."+l;continue}let r=parseInt(e[a])+parseInt(n[a])+o;l=r%10+l,o=Math.floor(r/10)}return o?o.toString()+l:l}var be=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(be||{});function At(e,n=0,l=be.HALF_EVEN){if(l===be.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let a=e.split("."),r=a[0],s=a[1];if(n<0){if(n=-n,r.length<=n)return"0";{let c=r.substr(0,r.length-n);return e=c+"."+r.substr(r.length-n)+s,c=At(e,0,l),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,$a(a[1],r,o,l)?(o?"-":"")+Yn(r):(o?"-":"")+r;if(a[1]){if(a[1].length<n)return(o?"-":"")+r+"."+a[1]+new Array(n-a[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");s=a[1].substring(0,n);let i=a[1].substring(n);return i&&$a(i,s,o,l)&&(s=Yn(s),s.length>n)?(o?"-":"")+Yn(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function $a(e,n,l,o){if(!e||e===new Array(e.length+1).join("0")||o===be.DOWN||!l&&o===be.FLOOR||l&&o===be.CEILING)return!1;if(o===be.UP||l&&o===be.FLOOR||!l&&o===be.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(o){case be.HALF_DOWN:return!1;case be.HALF_UP:return!0;case be.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Yn(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let l=e.length-1,o="";for(let a=l;a>=0;a--){let r=parseInt(e[a])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function Xn(e,n){e=e.toString(),n=n.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),n[0]=="-"&&(l++,n=n.substr(1)),e=Vt(e),n=Vt(n);let o=0,a=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(a=n.length-n.indexOf(".")-1);let r=o+a;if(e=Vt(e.replace(".","")),n=Vt(n.replace(".","")),e.length<n.length){let p=e;e=n,n=p}if(n=="0")return"0";let s=n.length,i=0,c=[],u=s-1,m="";for(let p=0;p<s;p++)c[p]=e.length-1;for(let p=0;p<2*e.length;p++){let h=0;for(let k=n.length-1;k>=u&&k>=0;k--)c[k]>-1&&c[k]<e.length&&(h+=parseInt(e[c[k]--])*parseInt(n[k]));h+=i,i=Math.floor(h/10),m=h%10+m,u--}return m=Vt(Ts(m,r)),l==1&&(m="-"+m),m}function Ts(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 Vt(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 Qn(e,n,l=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var a=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=we(n.replace(".","")),a>=0){let u=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(u==-1)e=we(e+new Array(a+1).join("0"));else if(a>u)e=e.replace(".",""),e=we(e+new Array(a-u+1).join("0"));else if(a<u){e=e.replace(".","");let m=e.length-u+a;e=we(e.substring(0,m)+"."+e.substring(m))}else a==u&&(e=we(e.replace(".","")))}let r=0,s=n.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let u=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(u+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=u,i="0."+new Array(u).join("0")}for(l=l+2;r<=l;){let u=0;for(;parseInt(c)>=parseInt(n);)c=Gt(c,"-"+n),u++;i+=u,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(o==1?"-":"")+we(At(i,l-2))}function Gn(e,n){return e=e.toString(),n=n.toString(),n=Zn(n),Gt(e,n)}function Zn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ea(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Da(e),Da(n);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=Gn(e,Xn(n,At(Qn(e,n),0,be.FLOOR)));return l+o}function Da(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ia(e,n){let l=!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),l=!0),[e,n]=Wn(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?l?-1:1:l?1:-1;return 0}class re{value;static RoundingModes=be;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[l,o]=n.split(/[eE]/);l=we(l);let a="";l[0]=="-"&&(a="-",l=l.substring(1)),l.indexOf(".")>=0?(o=parseInt(o)+l.indexOf("."),l=l.replace(".","")):o=parseInt(o)+l.length,l.length<o?n=a+l+new Array(o-l.length+1).join("0"):l.length>=o&&o>0?n=a+we(l.substring(0,o))+(l.length>o?"."+l.substring(o):""):n=a+"0."+new Array(-o+1).join("0")+l}return n}constructor(n="0"){this.value=re.validate(n)}getValue(){return this.value}static getPrettyValue(n,l,o){if(!(l||o))l=3,o=",";else if(!(l&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=re.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<l?(l=i,i=0):i-=l,s=n.substring(i,i+l)+(i<r-l&&i>=0?o:"")+s;return(a?"-":"")+s+n.substring(r)}getPrettyValue(n,l){return re.getPrettyValue(this.value,n,l)}static round(n,l=0,o=be.HALF_EVEN){if(n=re.validate(n),isNaN(l))throw Error("Precision is not a number: "+l);return At(n,l,o)}round(n=0,l=be.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new re(At(this.value,n,l))}static floor(n){return n=re.validate(n),n.indexOf(".")===-1?n:re.round(n,0,be.FLOOR)}floor(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,be.FLOOR)}static ceil(n){return n=re.validate(n),n.indexOf(".")===-1?n:re.round(n,0,be.CEILING)}ceil(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,be.CEILING)}static add(n,l){return n=re.validate(n),l=re.validate(l),Gt(n,l)}add(n){return new re(Gt(this.value,n.getValue()))}static subtract(n,l){return n=re.validate(n),l=re.validate(l),Gn(n,l)}subtract(n){return new re(Gn(this.value,n.getValue()))}static multiply(n,l){return n=re.validate(n),l=re.validate(l),Xn(n,l)}multiply(n){return new re(Xn(this.value,n.getValue()))}static divide(n,l,o){return n=re.validate(n),l=re.validate(l),Qn(n,l,o)}divide(n,l){return new re(Qn(this.value,n.getValue(),l))}static modulus(n,l){return n=re.validate(n),l=re.validate(l),Ea(n,l)}modulus(n){return new re(Ea(this.value,n.getValue()))}static compareTo(n,l){return n=re.validate(n),l=re.validate(l),Ia(n,l)}compareTo(n){return Ia(this.value,n.getValue())}static negate(n){return n=re.validate(n),Zn(n)}negate(){return new re(Zn(this.value))}}function qa(e,n){return re.multiply(`${e}`,`${n}`)}function Jn(e,n,l=8){return re.divide(`${e}`,`${n}`,l)}function _n(e,n){return e=`${e}`,n=`${n}`,re.compareTo(e,n)}function Ma(e){return re.negate(e)}function Zt(e,n=-1,l=!1,o=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,c="",u=r.indexOf(".");u!=-1&&(i=r.substring(0,u),c=r.substring(u+1)),n!=-1&&(n<c.length?c=c.substring(0,n):l&&n>c.length&&(c=c.padEnd(n,"0")));let m;if(o>0){let p="",h=i.split("").reverse();for(let k=0;k<h.length;k++)p+=h[k]+((k+1)%o==0&&k+1!=h.length?a:"");c.length==0?m=`${s}${p.split("").reverse().join("")}`:m=`${s}${p.split("").reverse().join("")}.${c}`}else c.length==0?m=`${s}${i}`:m=`${s}${i}.${c}`;return m}function za(e){let n=`${e}`,l=n.charAt(0);l=="-"?n=n.substring(1):l="";let o=n.replace(/[^\d\.-]/g,"");return`${l}${o}`}const Xe=typeof window<"u",Fe=Ye;function xa(e){return e==null}const Jt=Array.isArray,$s=e=>en(e)==="[object Map]",Es=e=>en(e)==="[object Set]",Oe=e=>e instanceof Date,_t=e=>typeof e=="function",La=e=>typeof e=="string",Ds=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",eo=e=>Te(e)&&_t(e.then)&&_t(e.catch),Pa=Object.prototype.toString,en=e=>Pa.call(e),to=e=>en(e)==="[object Object]",Ra=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Is(e){return e.__esModule||Ra&&e[Symbol.toStringTag]==="Module"}const qs=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function _e(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,o=e.length,a=!1;for(typeof n=="boolean"&&(a=n,n=e[l]??{},l++),typeof n!="object"&&(n={});l<o;l++)if(e[l]!==null&&e[l]!==void 0){let r=e[l];for(let s in r){let i=n[s],c=r[s];if(i!==c)if(a===!0&&c&&typeof c=="object"){let u;Array.isArray(c)?u=i&&Array.isArray(i)?i:[]:u=i&&typeof i=="object"?i:{},n[s]=_e(a,u,c)}else c!==void 0&&(n[s]=c)}}return n}function no(e,n,l=!1){if(!l)_e(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let a in n){let r=e[a],s=n[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!to(s))continue;r=no(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}const o=Object.getOwnPropertySymbols(n);for(let a of o){let r=e[a],s=n[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!to(s))continue;r=no(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}}return e}const oo=qs?Promise.resolve():null;function Ms(e,...n){oo!==null?n&&n.length>0?oo.then(()=>{e(n)}):oo.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function he(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function pe(e){return typeof e=="number"?e:Number(e)}const zs={"[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 et(e){let l=Object.prototype.toString.call(e);return e==null?String(e):zs[l]||"object"}function tn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Fa(e){return e&&typeof e=="object"&&"setInterval"in e}function Oa(e){let n=!!e&&"length"in e&&e.length,l=et(e);return l==="function"||Fa(e)?!1:l==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function va(e,n){let l=+n.length,o=0,a=e.length;for(;o<l;o++)e[a++]=n[o];return e.length=a,e}function xs(e,n=[]){let l=n;return e!=null&&(Oa(Object(e))?va(l,typeof e=="string"?[e]:e):l.push(e)),l}function ze(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let l=et(e),o=et(n);if(l!==o)return!1;if(l==="object"){let a=Object.keys(e),r=Object.keys(n);if(a.length!==r.length)return!1;for(let s=0;s<a.length;s++){let i=a[s],c=e[i],u=n[i];if(!ze(c,u))return!1}return!0}else if(l==="array"){if(e.length!==n.length)return!1;for(let a=0;a<e.length;a++){let r=e[a],s=n[a];if(!ze(r,s))return!1}return!0}return!1}function Ka(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const de=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Ua(e){return de(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),de(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Ha(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 l=n.indexOf(".");return l==-1?n.length:l}function ja(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const l=n.indexOf(".");return l==-1?0:n.length-(l+1)}function Wa(e,n,l){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(l,"")}function lo(e,n=!0,l=!0){n?e=Wa(e,".",/\./g):e=e.replace(/\./g,""),l?e=Wa(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function Ls(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(l=>{if(ze(e,l))return!0}):n.indexOf(e)}function Ps(e,n){if(typeof e=="object"||Array.isArray(e)){let l=n.reverse().findIndex(o=>{if(ze(e,o))return!0});return l!==-1&&(l=n.length-1-l),l}return n.lastIndexOf(e)}function ge(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ke(e,...n){const l={};return n.forEach(o=>{for(const a in o)l[a]=e[a]}),l}function ao(e,...n){const l=[];n.forEach(a=>{Reflect.apply([].push,l,Reflect.ownKeys(a))});const o={};for(const a in e)l.includes(a)||(o[a]=e[a]);return o}const Ya=(e,n,l)=>{const o=Object.assign({},e),a=Object.assign({},l);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(o[r]=n[a[r]]):n[r]&&(o[r]=n[r])}),o):e};function ro(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const tt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},ve=(e,n,l)=>Math.min(Math.max(e,n),l),so=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Ce=Symbol.for("BroadcastKey");class io{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,l,o){this.parent=n,this.proxy=l,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const l=this.children.findIndex(o=>n===o);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,l,...o){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let a=!1;!n.name||n.name==="*"?a=!0:!n.name||n.name==="+"?(a=!1,n.name="*"):Ka(n.name)&&this.name&&n.name.test(this.name)?a=!0:typeof n.name=="function"?a=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(a=!0);const r=[];if(a){const s=this.callbacks.get(l);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...o]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[l]=="function"){const c=Reflect.apply(i[l],i,[...o]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...n},l,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(n,l,...o){const a=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...n},l,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(n,l){this.callbacks.set(n,l)}}function nn(e,n,l,o){const a=new io(n,e,l);if(o&&typeof o=="object")for(const r in o)a.on(r,o[r]);return a}function Rs(e,n,l){const o=l;if(o[Ce])return o[Ce];const a=t.inject(Ce,null),r=new io(a,l,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[Ce]=r,t.provide(Ce,r),t.onUnmounted(()=>{r.destroy(),o[Ce]=void 0}),r}function Tt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ce]??t.inject(Ce,null):t.inject(Ce,null)}const nt=e=>e.default??e;class Fs{error(n,l){const o=l,a=Tt(l);a?a.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const l=n,o=Tt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(n){const l=n,o=Tt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(n,l,o){Array.isArray(n)||(n=[n]);const a=o,r=Tt(o),s=l.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let Xa=new Fs;function Os(e){Xa=e}function vs(e,n){nt(Je).setValidator(e,n)}function Ks(e){nt(Je).deleteValidator(e)}let Qa=["blur","clear"];function Us(e){Qa=e}function Ga(){return Qa}let Za=["focus","change"];function Hs(e){Za=e}function Ja(){return Za}function js(e){nt(Je).messages(e)}function $t(...e){const n=[];return e.forEach(l=>{l.forEach(o=>{const a=n.findIndex(r=>r.type===o.type);a!==-1&&n.splice(a,1),n.push(o)})}),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}const Ke=Symbol("ValidateSchemaKey");class _a{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,l,o){this.parent=n,this.descriptor=l,this.proxy=o,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const l=on($t(this.attrRules,this.rules)),o=[];for(let r in n){let s=n[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),o.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};o.push(c)}}this.attrRules=on(o);const a=$t(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...l){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...l]);const a=Xa;return a&&typeof a[n]=="function"?Reflect.apply(a[n],a,[...l]):null}decorate(n,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,l,o=!1){o?nt(Je).setValidator(n,l):this.validators[n]=l}getValidator(n){let l=this.validators[n]??null;return l||(l=this.parent?.getValidator(n)??null),l}deleteValidator(n,l=!1){l?nt(Je).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,l=!1){if(l)return nt(Je).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const l=$t(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=on(n):this.rules=on([n]);const o=$t(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=$t(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(l.length>0){const a={[`${o}`]:l},r=this.getValue(),s={[`${o}`]:r},i=nt(Je),c=new i(a),u=this.proxy??s;return c.validate(s,{context:u}).then(p=>{if(p.pass)this.success();else{let h="error";Array.isArray(p.errors)&&p.errors.length>0&&(h=p.errors[0].message??h,p.errors=[p.errors[0]],p.errors[0].ref=u),this.error(h)}return p}).catch(p=>{const h=p.message??`${p}`;return this.error(h),p})}}return Promise.resolve({pass:!0})}}function ln(e,n,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const a=l.valueName;l.validateHandler={getValue(r){return r[a]}}}return new _a(n,l,e)}const er=Symbol("EventEmitterKey");class Ws{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,l){let o=this.register.get(n);if(o&&Array.isArray(o)){let a=o.findIndex(r=>r===l);a!==-1&&o.splice(a,1)}}on(n,l){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(l)}emit(n,...l){const o=this.register.get(n);o&&o.forEach(a=>{try{Reflect.apply(a,null,[n,...l])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...l])}}function dt(e,n){let l=null;return function(...o){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...o])},n)}}function an(e,n){let l=0;return function(...o){const a=new Date().getTime();a-l<n||(l=a,Reflect.apply(e,null,[...o]))}}function Ys(e,n){const l=dt((o,a)=>{e=o,a()},n);return t.customRef((o,a)=>({get(){return o(),e},set(r){l(r,a)}}))}function Xs(e){let n=!1;return function(...l){n||(n=!0,Reflect.apply(e,null,[...l]))}}function co(e,n,l,o=0,a=!0){let r=n,s=0;if(a){const c=e();if(s++,c||s>l)return}const i=()=>{const c=e();s++,!(c||s>l)&&(r+=o,setTimeout(i,r))};setTimeout(i,r)}const Ie=Symbol("DomainKey"),ut=Symbol("DataItemsKey");class rn{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,l=[]){for(const o in n){const a=n[o];l.length>0&&l.indexOf(a)!==-1||(this._props[o]=a)}}has(n){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,l){this._props[n]=l}get(n,l){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?l:this.parent.get(n,l)}getForParent(n,l){return this.parent==null?l:this.parent.get(n,l)}getForSelf(n){return this._props[n]}getAll(n){const l=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const a=o._props[n];l.push(a)}o=o._parent}return l}}const Qs=new rn;function ft(){return Qs}function Ue(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ie]??t.inject(Ie,null):t.inject(Ie,null)}const uo=Symbol("OriginalDateKey");function fo(e,n,l=[],o){const a=t.getCurrentInstance(),r=a?.proxy;let s=t.inject(Ie,null);s===null&&(s=ft());const i=e||n.prop||n.name,c=new rn(i);c.parent=s;const u=b=>{r[uo]||h(b),c.set("modelValue",b)},m=()=>c.getForSelf("modelValue")??null,p=()=>r[uo]??null,h=b=>{const S={};_e(!0,S,t.toRaw(b)),r[uo]=S};t.isReactive(n)||typeof n=="function"?t.watch(n,b=>{c.merge(b,l)},{immediate:!0}):c.merge(n,l),n.modelValue&&h(n.modelValue),r[Ie]=c,t.provide(Ie,c);let k=null,g=null;if(a!==null){const b=t.inject(Ce,null);k=nn(r,b,i,o),c.broadcast=k,r[Ce]=k,t.provide(Ce,k),r.broadcast=(d,f,...y)=>Reflect.apply(k.emit,k,[d,f,...y]);const S=t.inject(Ke,null);g=ln(r,S,{componentName:""}),c.validateSchema=g,r[Ke]=g,t.provide(Ke,g),r[ut]=new Map,r.validate=(d=!0)=>{const f=[];let y=null;const C={deep:!1};if(d===!0)y={name:"*"};else if(Array.isArray(d)&&d.length>0){const B=d;y={name:E=>E?B.indexOf(E)!==-1:!1}}else if(d!=null&&typeof d=="object"){const B=d;if(C.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const E=B.include;y={name:q=>q?E.indexOf(q)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const E=B.exclude;y={name:q=>q?E.indexOf(q)===-1:!1}}else y={name:"*"}}if(y){const B=k?.emitToChildren(y,"validate",C);B&&Reflect.apply([].push,f,B)}return f.length==1?f[0]:f.length>1?Promise.all(f).then(B=>{let E=[];return B.forEach(q=>{q.pass===!1&&Array.isArray(q.errors)&&(E=[...E,...q.errors])}),E.length>0?{pass:!1,errors:E}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(d,f=!0,y=!1)=>{if(y===!0){Reflect.ownKeys(d).forEach(B=>{let E=String(B);const I=or(c,E,{componentName:"",fieldName:E,pureDataValidate:!0},k,g);r[ut].set(E,I);const z=d[E];z&&I.validateSchema.setRule(z)});return}if(f){const C=Reflect.ownKeys(d),B={name:E=>C.includes(E)};k?.emitToChildren(B,"setNameValidateRules",d,!1)}},r.clearValidate=(d=!0)=>{let f=null;if(d===!0)f={name:"*"};else if(Array.isArray(d)&&d.length>0){const y=d;f={name:C=>C?y.indexOf(C)!==-1:!1}}else if(d!=null&&typeof d=="object"){const y=d;if(Array.isArray(y.include)&&y.include.length>0){const C=y.include;f={name:B=>B?C.indexOf(B)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const C=y.exclude;f={name:B=>B?C.indexOf(B)===-1:!1}}else f={name:"*"}}f&&k?.emitToChildren(f,"clearValidate",!1)},r.resetFields=d=>{const f=m();if(!f)return;const y={};if(_e(!0,y,p()??{}),Array.isArray(d))d.forEach(C=>{f[C]=y[C]});else if(d&&Array.isArray(d.include))(d.include??[]).forEach(B=>{f[B]=y[B]});else if(d&&Array.isArray(d.exclude)){let C=d.exclude??[];Reflect.ownKeys(y).forEach(B=>{C.includes(B)||(f[B]=y[B])})}else Object.assign(f,y);r.clearValidate(d)},r.setModelValue=(d,f)=>{!f||f===i?u(d):k?.emitToChildren({name:f},"setModelValue",d)},r.getModelValue=()=>m()}return t.onUnmounted(()=>{c.destroy(),r[Ie]=void 0,r[ut]&&(r[ut].clear(),r[ut]=void 0),k!==null&&(k.destroy(),r[Ce]=void 0),g!==null&&(g.destroy(),r[Ke]=void 0)}),c}function tr(e,n,l=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(Ie,null);r===null&&(r=ft());const s=e||n.prop||n.name,i=new rn(s);return i.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{i.merge(c,l)},{immediate:!0}):i.merge(n,l),a[Ie]=i,t.provide(Ie,i),t.onUnmounted(()=>{i.destroy(),a[Ie]=void 0}),i}function nr(e,n,l){const a=Ue(e)?.get("rules");if(!a)return;let r=a[l];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Be(e,n,l){const a=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(Ce,null),i=nn(a,s,r,l);a[Ce]=i,t.provide(Ce,i),a.broadcast=(g,b,...S)=>Reflect.apply(i.emit,i,[g,b,...S]);const c=t.inject(Ke,null);e.fieldName=e.fieldName??r;const u=ln(a,c,e);a[Ke]=u,t.provide(Ke,u),nr(a,u,r),a.validate=(g=null)=>{const b=[];let S=!1,d=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)d=!0,S=!0;else if(g&&typeof g=="object"){const f=g;f.ignoreHidden===!0&&tn(a.$el)?d=!1:(Array.isArray(f.include)&&f.include.indexOf(r)!==-1||Array.isArray(f.exclude)&&f.exclude.indexOf(r),d=!0),S=f.deep??!1}else typeof g=="boolean"&&(S=g),d=!0;if(d){const f=u?.validate();b.push(f)}if(S){let f=null;const y={deep:!1};if(g===!0)f={name:"*"};else if(Array.isArray(g)&&g.length>0){const C=g;f={name:B=>B?C.indexOf(B)!==-1:!1}}else if(g!=null&&typeof g=="object"){const C=g;if(y.ignoreHidden=C.ignoreHidden,Array.isArray(C.include)&&C.include.length>0){const B=C.include;f={name:E=>E?B.indexOf(E)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const B=C.exclude;f={name:E=>E?B.indexOf(E)===-1:!1}}else f={name:"*"}}if(f){const C=i.emitToChildren(f,"validate",y);Reflect.apply([].push,b,C)}}return b.length==1?b[0]:b.length>1?Promise.all(b).then(f=>{let y=[];return f.forEach(C=>{C.pass===!1&&Array.isArray(C.errors)&&(y=[...y,...C.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=g=>u?.setRule(g),a.setNameValidateRules=(g,b=!1)=>{const S=g[r];if(S&&u?.setRule(S),b){const d={name:f=>Reflect.ownKeys(g).includes(f)};i.emitToChildren(d,"setNameValidateRules",g,!1)}},a.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(n??"")!==-1)&&u?.clear();let b=null;if(g===!0)b={name:"*"};else if(Array.isArray(g)&&g.length>0){const S=g;b={name:d=>d?S.indexOf(d)!==-1:!1}}else if(g!=null&&typeof g=="object"){const S=g;if(Array.isArray(S.include)&&S.include.length>0){const d=S.include;b={name:f=>f?d.indexOf(f)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const d=S.exclude;b={name:f=>f?d.indexOf(f)===-1:!1}}else b={name:"*"}}b&&i.emitToChildren(b,"clearValidate",!1)};const m=new Ws(a);a[er]=m;const p=dt((g="validate")=>{g==="reset"?u.clear():u.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Ga()).forEach(g=>{m.on(g,b=>{p("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Ja()).forEach(g=>{m.on(g,b=>{p("reset")})}),t.onUnmounted(()=>{i.destroy(),a[Ce]=void 0,u.destroy(),a[Ke]=void 0,m.destroy(),a[er]=void 0}),{broadcast:i,validateSchema:u,emitEvent:(g,...b)=>{Reflect.apply(m.emit,m,[g,...b])},onEvent:(g,b)=>{Reflect.apply(m.on,m,[b])},offEvent:(g,b)=>{Reflect.apply(m.off,m,[b])}}}function or(e,n,l,o,a){const r={},s=n??"",i={getValue(){const m=e.getForSelf("modelValue");return m?m[s]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,s):!1}};l.fieldName=s,l.validateHandler={getValue(m){return i.getValue()}};const c=ln({},a,l);r.validate=(m=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const p=[];let h=!1,k=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)k=!0,h=!0;else if(m&&typeof m=="object"){const g=m;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),k=!0,h=g.deep??!1}else typeof m=="boolean"&&(h=m),k=!0;if(k){const g=c?.validate();p.push(g)}if(h){let g=null;const b={deep:!1};if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const S=m;g={name:d=>d?S.indexOf(d)!==-1:!1}}else if(m!=null&&typeof m=="object"){const S=m;if(Array.isArray(S.include)&&S.include.length>0){const d=S.include;g={name:f=>f?d.indexOf(f)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const d=S.exclude;g={name:f=>f?d.indexOf(f)===-1:!1}}else g={name:"*"}}if(g){const S=u.emitToChildren(g,"validate",b);Reflect.apply([].push,p,S)}}return p.length==1?p[0]:p.length>1?Promise.all(p).then(g=>{let b=[];return g.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(b=[...b,...S.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>c?.setRule(m),r.setNameValidateRules=m=>{const p=m[s];p&&c?.setRule(p)};const u=nn(null,o,s,r);return{broadcast:u,validateSchema:c}}const fe=e=>e?`${ie(e)}px`:"";function ie(e,n=-1){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 l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let a=Number(e.substring(0,l)),r=1;if(Xe){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(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))*n;const o=Number(e);return isNaN(o)?0:o}const Qe="PageStateKey";function xe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ie(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ie(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ie(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ie(e.right))),n}function mo(e,n,l={},o=!0,a=-1,r=-1,s=0,i=0){if(e.headerHeight=ie(l.headerHeight??n.headerHeight??-1),e.headerPadding=xe(l.headerPadding??n.headerPadding),e.footerHeight=ie(l.footerHeight??n.footerHeight??-1),e.footerPadding=xe(l.footerPadding??n.footerPadding),e.contentPadding=xe(l.contentPadding??n.contentPadding),o){const c=l.height??n.height;c?e.height=ie(c,r):e.height=ie(r)-ie(s,r)-ie(i,r),e.width=ie(l.width??n.width??0,a)}}function lr(e,n={}){const l={top:null,left:null,bottom:null,right:null},o={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});a&&(o.safeAreaTop=ie(a.top),o.safeAreaBottom=ie(a.bottom),o.safeAreaLeft=ie(a.left),o.safeAreaRight=ie(a.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,u=e.get("footerBarHeight")??0;mo(o,r,n,!0,s,i,c,u);const m=t.reactive(o),p=e.getForParent(Qe);p&&(o.height=un(e,p),o.width=fn(e,p),t.watch([()=>un(e,p),()=>fn(e,p)],([k,g])=>{m.height=k,m.width=g}));const h=!p;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([k,g,b=-1,S=-1,d=0,f=0])=>{mo(m,g,n,h,b,S,d,f)}),e.set(Qe,m),m}function sn(e){return e.get(Qe)}function cn(e,n){if(n=n??e.get(Qe),n&&n.headerMounted){const l=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+l}return 0}function dn(e,n){if(n=n??e.get(Qe),n&&n.footerMounted){const l=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+l}return 0}function un(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const l=cn(e,n),o=dn(e,n);return n.height-l-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function fn(e,n){return n=n??e.get(Qe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function Gs(e,n){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[n,e]):!1}function Zs(e){return!!e.getForParent(Qe)}var mn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(mn||{});function po(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ae(e,n,l=1,o){const a=Ue();return a==null?e:l===0?t.computed(()=>{const r=a.getAll(n);for(let i=r.length-1;i>=0;i--){const c=r[i];if(po(c,o))return c}const s=e.value;return po(s,o)?s:null}):t.computed(()=>{const r=e.value;return po(r,o)?r:a?.get(n)})}function De(e){return Ae(e,"readonly",0,function(l){return he(l)})}function Ve(e){return Ae(e,"disabled",0,function(l){return he(l)})}function qe(e,n="modelValue",l){const o=t.toRef(e,n);let a=o.value;typeof l=="function"&&(a=l(o.value));const r=t.ref(a);return t.watch(o,s=>{if(typeof l=="function"){const i=l(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const ar=new Map,pn=new Map;let ho=null;function Js(e){ho=e}function rr(e,n,l){if(l){let o=pn.get(l);o||(o=new Map,pn.set(l,o)),o.set(e,n)}else ar.set(e,n)}function Ge(e,n,l){!l&&ho&&(l=ho(e)??void 0);let o=null;if(l){let a=pn.get(l);a&&(o=a.get(n))}return o||(o=ar.get(n)),o}function _s(e,n){for(let l in e){const o=e[l];rr(l,o,n)}}function ei(e){pn.delete(e)}function ti(){return{top:0,left:0,bottom:0,right:0}}function ni(e=0,n=0){if(Xe){const l=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,a={width:l,height:o-ie(e,o)-ie(n,o)};return{rootWidth:l,rootHeight:o,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:-1,footerHeight:-1}}}class oi{packages;_version;get version(){return this._version}constructor(n,l){this.packages=n,this._version=l}install(n,l){l?.install!==!1&&this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)});const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=ft();if(this.initPageLayout(l,a),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=an(()=>{const i={...l},c=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=u,this.initPageLayout(i,a)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in l)o.indexOf(r)===-1&&a.set(r,l[r])}initPageLayout(n,l){const o=n.headerBarHeight??0,a=n.footerBarHeight??0,r=_e({},ti(),n.safeAreaInset),s=ni(o,a),i=_e({},s.pageLayout,n.pageLayout);l=l??ft(),l.set("safeAreaInset",r),l.set("headerBarHeight",o),l.set("footerBarHeight",a),l.set("pageLayout",i),l.set("rootWidth",s.rootWidth),l.set("rootHeight",s.rootHeight)}setScopeGetter(n){Js(n)}setAPI(n,l,o){rr(n,l,o)}getAPI(n,l,o){return Ge(n,l,o)}batchSetAPI(n,l){_s(n,l)}clearScopeAPI(n){ei(n)}getRootDomain(){return ft()}}function X(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=n,l.install=o=>{o.component(l.name,l)},t.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,t.defineComponent(l)}}}const li=(e,n)=>{let l=document.body;const o=e.teleport||"body";o!="body"&&(La(o)?l=document.querySelector(o):l=e.teleport);const a=document.createElement("view"),r=n.name?n.name+"-":"",s=e.id||new Date().getTime();a.id=r+s;let i={};_t(n.wrapper)?i=n.wrapper(l,a):i=n.wrapper;const c=t.createApp(i,e),u=n.components;return u&&u.forEach(m=>{c.use(m)}),l.appendChild(a),{instance:c.mount(a),unmount:()=>{c.unmount(),l.removeChild(a)}}},sr=(e,n)=>e?t.h(e,n):"",ue={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},me={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],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}},ir={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}},cr={name:{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}},dr=[];for(const e in cr)dr.push(e);function $e(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let l=n.proxy;Object.assign(l,e)}}const ai=Symbol.for("InnerPageScopeKey"),ri=(e,n)=>({inheritAttrs:!0,props:{...ue,...ir,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}},setup(l,o){const a=fo(l.name,l);if(a){const u=lr(a,l);$e({getPageContentHeight:()=>un(a,u),getPageContentWidth:()=>fn(a,u),getPageHeaderHeight:()=>cn(a,u),getPageFooterHeight:()=>dn(a,u)});const m=t.inject(ai,!1);u&&m&&(u.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),i=t.getCurrentInstance(),c=(u,m=!1)=>{const p=i?.proxy;p&&typeof p.setNameValidateRules=="function"&&p.setNameValidateRules(u,!0,m)};return t.watch([()=>l.rules,()=>l.pureDataRules],([u,m],[p,h])=>{if(u&&p){const k=t.toRaw(p),g=t.toRaw(u),b=g?Reflect.ownKeys(g):[];(k?Reflect.ownKeys(k):[]).forEach(d=>{b.includes(d)||(g[d]=[])}),c(g)}if(m&&h){const k=t.toRaw(h),g=t.toRaw(m),b=g?Reflect.ownKeys(g):[];(k?Reflect.ownKeys(k):[]).forEach(d=>{b.includes(d)||(g[d]=[])}),c(g,!0)}},{deep:!0}),t.onMounted(()=>{if(l.rules){const u=t.toRaw(l.rules);c(u)}if(l.pureDataRules){const u=t.toRaw(l.pureDataRules);c(u,!0)}}),{classes:r,styles:s}}}),{componentName:si,create:ii,scope:y2}=X("page"),ci=ii(ri(si));function di(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const J=(e,n)=>{const l=e.__vccOpts||e;for(const[o,a]of n)l[o]=a;return l},go=J(ci,[["render",di]]);function hn(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function yo(e){const n=t.unref(e),l=window.getComputedStyle(n,null),o=parseFloat(l.getPropertyValue("padding-left")),a=parseFloat(l.getPropertyValue("padding-right")),r=parseFloat(l.getPropertyValue("padding-top")),s=parseFloat(l.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-a,height:n.clientHeight-r-s}}const ui=(e,n,l,o=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:l},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=Ue(),i=s?sn(s):null;i&&(i.headerMounted=!0);const c=e,u=t.computed(()=>({[c]:!0,[`${c}--border`]:a.border,[`${c}--fixed`]:a.fixed,[`${c}--safe-area-inset-top`]:a.safeAreaInsetTop})),m=t.computed(()=>({[`${c}__inner`]:!0,[`${c}__inner--${a.align}`]:!0})),p=a.height!==null&&a.height!==void 0?ie(a.height):null,h=t.computed(()=>{const N={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const A=xe(a.padding??i.headerPadding);return Object.assign(N,A),p&&(i.headerHeight=p),i.headerHeight>0&&(N.height=i.headerHeight),N.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,N.safeAreaTop>0&&(N.top=N.safeAreaTop+(A.top??0),N.height&&N.height>0&&(N.height=N.height+N.safeAreaTop)),N}if(p&&(N.height=p),a.padding){const A=xe(a.padding);Object.assign(N,A)}return N}),k=t.ref(null),g=()=>{if(i&&k.value&&!tn(k.value)){if(!o){const N=hn(k.value);i.headerAllHeight=N.height}return i.headerMounted=!0,!0}return!1};let b=null;t.onMounted(()=>{i&&(co(g,50,5,50,!0),window.ResizeObserver&&k.value&&(b=new window.ResizeObserver(()=>{g()}),b.observe(k.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,b&&(b.disconnect(),b=null))});const S=t.computed(()=>{const N={};return h.value.height!==null&&h.value.height!==void 0&&(N.height=`${h.value.height}px`),h.value.top!==null&&h.value.top!==void 0&&(N.paddingTop=`${h.value.top}px`),h.value.left!==null&&h.value.left!==void 0&&(N.paddingLeft=`${h.value.left}px`),h.value.right!==null&&h.value.right!==void 0&&(N.paddingRight=`${h.value.right}px`),h.value.bottom!==null&&h.value.bottom!==void 0&&(N.paddingBottom=`${h.value.bottom}px`),N}),d=t.computed(()=>!(h.value.height!==null&&h.value.height!==void 0&&h.value.height<=0));function f(){r.emit("back")}function y(){r.emit("click-title")}function C(){r.emit("click-right")}function B(){r.emit("click-right-text")}const E=()=>{if(!a.leftShow)return null;const N=[];if(r.slots.left)N.push(r.slots.left());else{if(r.slots.leftIcon){const A=t.h("view",{class:"left-icon",onClick:f},[r.slots.leftIcon()]);N.push(A)}else if(a.leftIcon){const A=t.h("view",{class:"left-icon",onClick:f},[t.h(a.leftIcon)]);N.push(A)}if(a.leftText){const A=t.h("view",{class:"left-text",onClick:f},[a.leftText]);N.push(A)}}return N.length===0?null:t.h("view",{class:"fox-header-bar__left"},N)},q=()=>{if(!a.rightShow)return null;const N=[];if(r.slots.right)N.push(r.slots.right());else{if(a.rightText){const A=t.h("view",{class:"right-text",onClick:B},[a.rightText]);N.push(A)}if(r.slots.rightIcon){const A=t.h("view",{class:"right-icon",onClick:C},[r.slots.rightIcon()]);N.push(A)}else if(a.rightIcon){const A=t.h("view",{class:"right-icon",onClick:C},[t.h(a.rightIcon)]);N.push(A)}}return N.length===0?null:t.h("view",{class:"fox-header-bar__right"},N)},I=()=>{if(!a.titleShow)return null;const N=[],A=r.slots.default?r.slots.default():null;if(A)N.push(A);else{if(a.title){const L=t.h("view",{class:"title-text"},[a.title]);N.push(L)}if(r.slots.titleIcon){const L=t.h("view",{class:"title-icon",onClick:y},[r.slots.titleIcon()]);N.push(L)}else if(a.titleIcon){const L=t.h("view",{class:"title-icon",onClick:y},[t.h(a.titleIcon)]);N.push(L)}}return N.length===0?null:t.h("view",{class:"fox-header-bar__title"},N)},z=()=>{const N=[],A=r.slots.bottom?r.slots.bottom():null;return A&&N.push(A),N.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},N)};return()=>{if(!d.value)return null;const N=[];if(r.slots.all)N.push(r.slots.all());else{const L=[],O=E();O&&L.push(O);const D=I();D&&L.push(D);const T=q();if(T&&L.push(T),L.length>0){const V=t.h("view",{class:m.value},L);N.push(V)}const M=z();M&&N.push(M)}if(N.length===0)return null;const A={class:u.value,style:S.value,ref:k};return t.h("view",A,N)}}}),{componentName:fi,create:mi,scope:pi}=X("header-bar"),ko=mi(ui(fi,pi,te.Left,!1));function hi(e,n,l=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,a){const r=Ue(),s=r?sn(r):null,i=t.computed(()=>{const g=e;return{[g]:!0,[`${g}--${o.align}`]:!0,[`${g}--border`]:o.border,[`${g}--fixed`]:o.fixed,[`${g}--safe-area-inset-bottom`]:o.safeAreaInsetBottom}}),c=o.height!==null&&o.height!==void 0?ie(o.height):null,u=t.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const b=xe(o.padding??s.footerPadding);return Object.assign(g,b),c&&(s.footerHeight=c),s.footerHeight>0&&(g.height=s.footerHeight),g.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(b.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(c&&(g.height=c),o.padding){const b=xe(o.padding);Object.assign(g,b)}return g}),m=t.ref(null),p=()=>{if(s&&m.value&&!tn(m.value)){if(!l){const g=hn(m.value);s.footerAllHeight=g.height}return s.footerMounted=!0,!0}return!1};let h=null;t.onMounted(()=>{s&&(co(p,50,5,50,!0),window.ResizeObserver&&(h=new window.ResizeObserver(()=>{p()}),h.observe(m.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,h&&(h.disconnect(),h=null))});const k=t.computed(()=>{const g={};return u.value.height!==null&&u.value.height!==void 0&&(g.height=fe(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(g.paddingTop=fe(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(g.paddingLeft=fe(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(g.paddingRight=fe(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(g.paddingBottom=fe(u.value.bottom)),g});return()=>{const g=a.slots.default?a.slots.default():[],b={ref:m,class:i.value,style:k.value};return t.h("view",b,g)}}}}const{componentName:gi,create:yi,scope:ki}=X("footer-bar"),bo=yi(hi(gi,ki,!1));function bi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(l){const o=Ue(),a=t.computed(()=>({[e]:!0})),r=o?sn(o):null,s=t.computed(()=>{const u={};if(o&&r){if(l.padding){const d=xe(l.padding);Object.assign(r.contentPadding,d)}const m=cn(o,r),p=dn(o,r);let h="";r.contentHeight?h=`${r.contentHeight}`:h=`${r.height}px`,console.debug("[content]page height:",h),console.debug("[content]header height:",m),console.debug("[content]footer height:",p),console.debug("[content]padding:",r.contentPadding),u.height=h;let k=(r&&r.contentPadding&&r.contentPadding.top)??-1;(k>=0||m>0)&&(k=k<0?0:k,u.paddingTop=`${m+k}px`);let g=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(g>=0||p>0)&&(g=g<0?0:g,u.paddingBottom=`${p+g}px`);const b=(r&&r.contentPadding&&r.contentPadding.left)??-1;b>=0&&(u.paddingLeft=`${b}px`);const S=(r&&r.contentPadding&&r.contentPadding.right)??-1;return S>=0&&(u.paddingRight=`${S}px`),u}if(l.padding){const m=xe(l.padding);m.left&&(u.paddingLeft=`${m.left}px`),m.top&&(u.paddingTop=`${m.top}px`),m.right&&(u.paddingRight=`${m.right}px`),m.bottom&&(u.paddingBottom=`${m.bottom}px`)}return u}),i=t.ref(null),c=dt(()=>{if(r&&i.value){const u=yo(i.value);r.contentInnerHeight=u.height,r.contentInnerWidth=u.width}},0);return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>s.value,()=>a.value],([])=>{c()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:Si,create:Ci,scope:k2}=X("content"),wi=Ci(bi(Si));function Ni(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const So=J(wi,[["render",Ni]]),mt="GroupStateKey",ur=Symbol.for("GroupScopeKey");function gn(){return t.inject(ur,!1)}function yn(e=!0){t.provide(ur,e)}function Bi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const a=n[o];xa(a)||(e[o]=a)})}function Ai(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Bi(o,n);const a=t.shallowRef(o),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(mt,r),r}function Co(e,n,l=-1,o=-1,a=!1,r,s,i){const c=e.get(mt);if(!c)return;const u=e.get("groupLayout")??{};l===-1&&(l=u.column??1),o===-1&&(o=u.gutter??0),r||(r=u.minItemWidth??-1),s||(s=u.maxItemWidth??-1);const m=ie(r),p=ie(s);i||(i=u.type??"grid");const h=()=>{const k=n===""||n===-1,g=ie(n);let b=pe(l);const S=ie(o);if(!k){let y=(g-(b-1)*S)/b;for(;p!==-1&&y>p;)b++,y=(g-(b-1)*S)/b;for(;m!==-1&&b>1&&y<m;)b--,y=(g-(b-1)*S)/b}let d=!1;const f=c.layout;f.value.width=n,f.value.column!==b&&(f.value.column=b,d=!0),f.value.gutter!==S&&(f.value.gutter=S,d=!0),f.value.type!==i&&(f.value.type=i,d=!0),d&&t.triggerRef(f)};if(a)h();else{const k=++c.passport;setTimeout(()=>{k===c.passport&&h()},50)}}function kn(e,n=!1){let l;return n?l=e.getForParent(mt):l=e.get(mt),l.layout}function bn(e,n=!1){let l;return n?l=e.getForParent(mt):l=e.get(mt),l.order}function fr(e,n=1){if(n==="stretch")return-1;const l=pe(n);return l===-1?100:100*l/e}function Sn(e,n,l=1,o=0,a){const r={};let s=0;a?s=ie(a):s=fr(n.column,l),s>0&&(r.width=`${s}%`);const i=fr(n.column,o);i>0&&(r["margin-left"]=`${i}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function Cn(e,n,l=1,o=0){if(l==="stretch"){const c=e.index%n.column,u=c+(n.column-c);return e.index=e.index+(u-c),{"grid-column":`${c+1} / -1`}}let a=pe(l);if(a===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(a>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=pe(o)%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}`}}const mr=Symbol("RollingStateKey");function Vi(e){t.provide(mr,e)}function Ti(){return t.inject(mr,null)}function wo(e){let n=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(l.getPropertyValue("padding-top")),r=parseFloat(l.getPropertyValue("padding-bottom"));n=e.clientHeight-a-r}else n=e.offsetHeight;return n}function $i(e){let n=wo(e);if(n<=0){const l=e.cloneNode(!0),o=e.offsetWidth;l.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),n=wo(l),document.body.removeChild(l)}return n}function Ei(e,n,l){if(e<=0)return"1fr";const o=(e-(n-1)*l)/n;return o>0?`${o}px`:"1fr"}const Di={...ue,...ir,...cr};function Ii(e,n,l){return{props:Di,emits:["update:collapse"],setup(o,a){const r=fo(o.name,o,dr),s=Ai(r,{type:o.type}),i=gn();yn(!0);const c=o.rollingDisplay?Ti():null,u=t.ref(null),m=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),p=t.computed(()=>i&&r?kn(r,!0).value:null),h=t.getCurrentInstance(),k=(G,Z=!1)=>{const _=h?.proxy;_&&typeof _.setNameValidateRules=="function"&&_.setNameValidateRules(G,!0,Z)};t.watch([()=>o.rules,()=>o.pureDataRules],([G,Z],[_,ne])=>{if(G&&_){const oe=t.toRaw(_),ae=t.toRaw(G),ye=ae?Reflect.ownKeys(ae):[];(oe?Reflect.ownKeys(oe):[]).forEach(Re=>{ye.includes(Re)||(ae[Re]=[])}),k(ae)}if(Z&&ne){const oe=t.toRaw(ne),ae=t.toRaw(Z),ye=ae?Reflect.ownKeys(ae):[];(oe?Reflect.ownKeys(oe):[]).forEach(Re=>{ye.includes(Re)||(ae[Re]=[])}),k(ae,!0)}},{deep:!0});const g=e,b=t.computed(()=>{const G={};if(G.height=M.value,o.width)o.width!=="auto"&&(G.width=fe(o.width));else{const Z=i?bn(r,!0):null;if(p.value&&Z){if(p.value.type==="grid"){const _=Cn(Z,p.value,o.span,o.offset);Object.assign(G,_)}else if(p.value.type==="flow"){const _=Sn(Z,p.value,o.span,o.offset,o.width);Object.assign(G,_)}}}return G}),S=t.computed(()=>{const G=s.layout.value.type;return G==="grid"||G==="flow"?{[`${g}--${G}`]:!0,[`${g}--${G}-justify-${o.justify}`]:!0,[`${g}--${G}-align-${o.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${G}`]:!0,[`${g}--gutter`]:!0}}),d=t.computed(()=>{if(s.layout.value.type==="grid"){let Z="";if(o.columnWidth)Z=`repeat(auto-fill, ${o.columnWidth})`;else{const _=Ei(z.value,s.layout.value.column,s.layout.value.gutter);Z=`repeat(${s.layout.value.column}, ${_})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":Z}}}),f=t.toRef(o,"title"),y=t.toRef(o,"gutter"),C=t.toRef(o,"column"),B=t.computed(()=>i||m.value?!0:he(o.isWrap)),E=[],q=G=>{E.push(G)},I=()=>{let G=E.length;E.splice(0,G)},z=t.ref(-1),N=G=>{const Z=yo(G).width;Z>0&&Z!==z.value&&(z.value=Z)};Co(r,z.value,C.value,y.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([z,C,y],([G,Z,_])=>{s.order.index=0,Co(r,G,Z,_,!1,o.minItemWidth,o.maxItemWidth,o.type)});const A=t.computed(()=>V.value?o.expandText??"":o.collapseText??""),L=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),O=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!V.value,"is-collapse":V.value})),D=t.ref(),T=t.ref(),M=t.computed(()=>v.value||fe(o.height)||""),V=t.ref(!1),v=t.ref(""),$=t.ref(!1);let K=-1;const W=(G,Z=!0)=>{const _=D.value;if(_&&V.value!==G){if(K=K===-1?$i(_):K,$.value=!0,Z)if(_.style["will-change"]="height",_.ontransitionend=function(){_.ontransitionend=null,this.style["will-change"]="auto",G||(v.value="",$.value=!1)},G){let ne=0;o.collapseHeight?ne=o.collapseHeight:T.value&&T.value.classList.contains(`${e}__header`)&&(ne=T.value.offsetHeight),v.value=`${K}px`,t.nextTick(()=>{v.value=`${ne}px`})}else v.value=`${K}px`;else if(G){let ne=0;o.collapseHeight?ne=o.collapseHeight:T.value&&T.value.classList.contains(`${e}__header`)&&(ne=T.value.offsetHeight),v.value=`${ne}px`}else $.value=!1,v.value=`${K}px`;V.value=G,a.emit("update:collapse",G)}};t.watch(()=>o.collapse,G=>{W(G)});const U=()=>{F()},F=G=>{G=G??!V.value,W(G)};$e({toggleCollapse:F,doLayout:()=>{E[0]&&(N(E[0]),Co(r,z.value,C.value,y.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let P=null,R=!0;const x=G=>{if(o.rules){const Z=t.toRaw(o.rules);k(Z)}if(o.pureDataRules){const Z=t.toRaw(o.pureDataRules);k(Z,!0)}if(Xe&&(G&&W(he(o.collapse),!1),o.autoLayout&&Array.isArray(E)&&E.length>0)){const Z=E[0];N(Z),window.ResizeObserver&&(P=new window.ResizeObserver(()=>{N(Z)}),P.observe(Z))}},H=()=>{P?.disconnect(),P=null},Y=!m.value||c?.acquire();Y&&(u.value=m.value?!0:null),t.onMounted(()=>{if(Y&&(x(R),R=!1),m.value&&c){let G=null,Z=c.initialHeight;c.observe(D.value,_=>{if(_!==u.value)if(_)u.value=!0,V.value||(v.value=""),G=setTimeout(()=>{G=null,u.value!==!1&&(x(R),R=!1)},100);else{if(G!==null&&clearTimeout(G),u.value=!1,!V.value)if(R)v.value=c.initialHeight;else{let ne=wo(D.value);ne<=0?v.value=Z:(v.value=`${ne}px`,Z=v.value)}R||H()}})}}),t.onUnmounted(()=>{P?.disconnect(),c&&c.unobserve(D.value)});const ee=(G="right")=>{const Z=[];if(A.value){const oe={class:L.value},ae=t.h("span",oe,[A.value]);Z.push(ae)}const _={class:O.value},ne=l(o.collapseIcon,_);return ne&&Z.push(ne),Z.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${G}`]:!0},onClick:U},Z):null},Q=(G,Z,_,ne)=>{const oe={...S.value};return Z===0&&(oe[`${g}__first`]=!0),_>=ne-1&&(oe[`${g}__last`]=!0),t.h("div",{ref:q,key:`${Z}`,class:oe,style:d.value},G)};return()=>{if(m.value&&u.value!==!0){const oe=o.tag||"div";return t.h(oe,{ref:D,prop:o.name,class:{[`${g}`]:!0,"is-collapse":$.value},style:b.value},[])}s.order.index=0;const G=[];let Z=0;if(a.slots.header){const oe={key:`${Z++}`,ref:T,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},ae=t.h("div",oe,[a.slots.header()]);G.push(ae)}else{const oe=[],ae=o.collapsePosition==="left";if(ae&&o.showCollapse){const ye=ee("left");ye&&oe.push(ye)}if(f.value){if(o.showMark){const Se={class:{[`${g}__header-mark`]:!0}};o.markColor&&(Se.style={background:o.markColor});const Re=t.h("div",Se);oe.push(Re)}const ye=t.h("div",{class:{[`${g}__header-title`]:!0}},[f.value]);oe.push(ye)}if(a.slots.toolbar&&oe.push(a.slots.toolbar()),!ae&&o.showCollapse){const ye=ee("right");ye&&oe.push(ye)}if(oe.length>0){const ye={key:`${Z++}`,ref:T,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},Se=t.h("div",ye,oe);G.push(Se)}}I();const _=a.slots.default?a.slots.default():[],ne=s.layout.value.type;if(ne==="grid"){const oe=Q(_,Z++,0,_.length);G.push(oe)}else if(ne==="flow"){const oe=Q(_,Z++,0,_.length);G.push(oe)}else for(let oe=0;oe<_.length;oe++){const ae=_[oe],ye=Q([ae],Z++,oe,_.length);G.push(ye)}if(B.value){const oe=o.tag||"div";return t.h(oe,{ref:D,prop:o.name,class:{[`${g}`]:!0,"is-collapse":$.value},style:b.value},[G])}else return G}}}}const{componentName:qi,create:Mi,scope:zi}=X("group"),No=Mi(Ii(qi,zi,(e=te.RectUp,n={})=>t.h(e,n)));function xi(e){return e===window}const Li=/matrix\((.+)\)/,pr=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(xi(n))return{x:0,y:0};let l=0,o=0,a=n;for(;a!==null;)l+=a.offsetLeft,o+=a.offsetTop,a=a.offsetParent;let r=0,s=0,i=0,c=0;for(a=n;a!==document;){s+=a.scrollTop,r+=a.scrollLeft;const{transform:u}=window.getComputedStyle(a);if(u){const m=Li.exec(u);if(m){let h=m[1].split(/\s*,\s*/);h.length==6&&(i+=Number(h[4]),c+=Number(h[5]))}}a=a.parentNode}return l-=r,o-=s,l+=i,o+=c,{x:l,y:o}};class Pi{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const l=this.watchedListeners.indexOf(n);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Ri{monitorRegister=new WeakMap;watch(n,l){let o=n.parentNode;const a=document.body.parentNode;for(;o&&o!==a;){let r=this.monitorRegister.get(o);r||(r=new Pi,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(l),o=o.parentNode}}unwatch(n,l){let o=n.parentNode;const a=document.body.parentNode;for(;o&&o!==a;){let r=this.monitorRegister.get(o);r&&(r.remove(l),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}}const hr=new Ri,gr={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:Fi,create:Oi}=X("price"),vi=Oi({props:{...gr},setup(e){const n=t.computed(()=>({[Fi]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ge(e.price)==0?"":Zt(e.price,e.decimalLength,!0,pe(e.digits),e.separator)),a=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:n,showSymbol:l,intText:a,decimalText:r}}}),Ki=["innerHTML"],Ui=["innerHTML"];function Hi(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ki)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Ui)):t.createCommentVNode("",!0)],2)}const Ze=J(vi,[["render",Hi]]),{componentName:Bo,create:ji}=X("hint-text"),Wi=ji({components:{Price:Ze},props:{...gr,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 l=t.ref({top:null,right:null,bottom:null,left:null}),o=t.ref({x:0,y:0}),a=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),u=(A,L,O,D,T,M)=>{const V=document.documentElement.clientWidth||document.body.clientWidth,v=document.documentElement.clientHeight||document.body.clientHeight,$=A.split("-");let K=[];$[0]==="top"?K=["top","bottom","right","left"]:$[0]==="bottom"?K=["bottom","top","right","left"]:$[0]==="left"?K=["left","top","bottom","right"]:$[0]==="right"&&(K=["right","top","bottom","left"]);const W={top:null,right:null,bottom:null,left:null},U=[];for(let F=0;F<K.length;F++){const j=K[F];if(U[0]=j,$[1]&&(U[1]=$[1]),j==="top"){const P=L.y-M-e.arrowSize-e.offset;if(P>=0){W.top=P;let R=0;$[1]==="start"?R=L.x:$[1]==="end"?R=L.x+O-T:R=L.x+O/2-T/2;const x=V-R-T;x<0?(R+=x,p.value=-x):p.value=0,W.left=R<0?0:R;break}}else if(j==="bottom"){const P=L.y+D+e.arrowSize+e.offset;if(P+M<=v){W.top=P;let R=0;$[1]==="start"?R=L.x:$[1]==="end"?R=L.x+O-T:R=L.x+O/2-T/2;const x=V-R-T;x<0?(R+=x,p.value=-x):p.value=0,W.left=R<0?0:R;break}}else if(j==="left"){const P=L.x-T-e.arrowSize-e.offset;if(P>=0){W.left=P;let R=0;$[1]==="start"?R=L.y:$[1]==="end"?R=L.y+D-M:R=L.y+D/2-M/2,W.top=R<0?0:R;break}}else if(j==="right"){const P=L.x+O+e.arrowSize+e.offset;if(P+T<=V){W.left=P;let R=0;$[1]==="start"?R=L.y:$[1]==="end"?R=L.y+D-M:R=L.y+D/2-M/2,W.top=R<0?0:R;break}}}return{bestPlacement:U.join("-"),bestInsetRect:W}},m=(A,L,O=10)=>{if(!Xe||L===!1||!A)return;o.value=pr(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const D=c.value.offsetHeight,T=c.value.offsetWidth,{bestPlacement:M,bestInsetRect:V}=u(e.placement,o.value,a.value,r.value,T,D);s.value=M,l.value=V,i.value=!0},p=t.ref(0),h=dt(()=>{m(e.message,e.visible)},10),k=t.ref(e.visible);t.watch(()=>e.visible,A=>{k.value=A});const g=t.computed(()=>k.value&&b.value),b=t.ref(!0),S=dt(A=>{const L=A[0];L&&(b.value=L.isIntersecting)},10),d=new IntersectionObserver(S);t.watch([()=>e.message,()=>e.visible],([A,L])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{m(e.message,e.visible)},0),hr.watch(e.reference,h),d.observe(e.reference)}),t.onBeforeMount(()=>{hr.unwatch(e.reference,h),d.unobserve(e.reference),d.disconnect()});const f=t.computed(()=>{const A={[Bo]:!0};return s.value.startsWith("top")?A["is-top"]=!0:s.value.startsWith("right")?A["is-right"]=!0:s.value.startsWith("bottom")?A["is-bottom"]=!0:s.value.startsWith("right")&&(A["is-right"]=!0),e.size==="small"?A["is-small"]=!0:e.size==="large"&&(A["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(A[`${e.customClass}`]=!0),A}),y=t.computed(()=>{const A={};l.value.top!==null&&(A.top=`${l.value.top}px`),l.value.right!==null&&(A.right=`${l.value.right}px`),l.value.bottom!==null&&(A.bottom=`${l.value.bottom}px`),l.value.left!==null&&(A.left=`${l.value.left}px`),e.autoFit&&(A["min-width"]=`${a.value}px`);const L=document.documentElement.clientWidth||document.body.clientWidth;return A["max-width"]=`${L}px`,i.value&&(A.opacity="1"),e.transition||(A.transition="none"),e.zIndex&&(A["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(A,e.customStyle),A}),C=t.computed(()=>{const A=[`${Bo}__content`];return e.customTextClass&&A.push(e.customTextClass),A}),B=t.computed(()=>{const A={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(A,e.customTextStyle),A}),E=t.computed(()=>({[`${Bo}__arrow`]:!0})),q=t.computed(()=>{const A={};return e.showArrow?(A.width=`${e.arrowSize}px`,A.height=`${e.arrowSize}px`,s.value==="top"?(A.left="50%",A.bottom=`-${e.arrowSize}px`,A.transform=" translate(-50%, 0%)"):s.value==="top-start"?(A.left=`${e.arrowOffset+p.value}px`,A.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(A.right=`${e.arrowOffset-p.value}px`,A.bottom=`-${e.arrowSize}px`):s.value==="right"?(A.left=`-${e.arrowSize}px`,A.top="50%",A.transform=" translate(0%, -50%)"):s.value==="right-start"?(A.left=`-${e.arrowSize}px`,A.top=`${e.arrowOffset}px`):s.value==="right-end"?(A.left=`-${e.arrowSize}px`,A.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(A.left="50%",A.top=`-${e.arrowSize}px`,A.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(A.left=`${e.arrowOffset+p.value}px`,A.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(A.right=`${e.arrowOffset-p.value}px`,A.top=`-${e.arrowSize}px`):s.value==="left"?(A.right=`-${e.arrowSize}px`,A.top="50%",A.transform=" translate(0%, -50%)"):s.value==="left-start"?(A.right=`-${e.arrowSize}px`,A.top=`${e.arrowOffset}px`):s.value==="left-end"&&(A.right=`-${e.arrowSize}px`,A.bottom=`-${e.arrowOffset}px`),A):{display:"none"}}),I=t.computed(()=>g.value&&e.closeOnClick),z=t.computed(()=>{const A={};return e.zIndex&&(A["z-index"]=`${e.zIndex}`),A});return{show:g,tipRef:c,classes:f,styles:y,textClasses:C,textStyles:B,arrowClasses:E,arrowStyles:q,overlayShow:I,overlayStyle:z,onClickOverlay:()=>{k.value=!1,n.emit("update:visible",!1)}}}});function Yi(e,n,l,o,a,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.message),1)],64))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const yr=J(Wi,[["render",Yi]]);class Ao{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const Vo={},Xi=new Ao,pt=new Map,wn=e=>{if(e){const n=document.getElementById(e);pt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of pt.keys()){const l=document.getElementById(n);l&&l.parentNode?.removeChild(l)}pt.clear()}},Qi=e=>{e.unmount=wn;const n=document.getElementById(e.id);if(n){const l=pt.get(e.id);l?e={...Vo,...l,...e}:e={...Vo,...e},e.transition=!1;const o=t.createVNode(yr,e);return t.render(o,n),e.id}},Gi=e=>{e.unmount=wn;let n=e.id??`hinttext_${Xi.get()}`;e={...Vo,...e},e.id=n,pt.set(n,e);const l=document.createElement("div");l.id=e.id;const o=t.createVNode(yr,e);return t.render(o,l),document.body.appendChild(l),n},Zi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},ot={show(e,n,l={},o=!0){Zi(n);const a=l.id;return a&&pt.has(a)?Qi({...l,message:n,reference:e}):(o&&wn(),Gi({...l,message:n,reference:e}))},hide(e){wn(e)},install(e){e.config.globalProperties.$hintText=ot}},{componentName:kr,create:Ji}=X("item"),_i=Ji({inheritAttrs:!0,props:{...ue,...me},emits:["appear","disappear"],setup(e,n){const l=e.prop??n.attrs.name;Be({componentName:kr,validate:!1},l);const o=Ue(),a=gn();yn(!1);const r=t.computed(()=>a&&o?kn(o,!1).value:null),s=kr,i=t.ref(null),c=t.computed(()=>{const Q={[s]:!0,[`${s}__gutter`]:r.value&&r.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(Q[e.errorMarkClass]=!!L.value,Q[e.warnMarkClass]=!!N.value,Q[e.infoMarkClass]=!!I.value,typeof i.value=="function"){const G=i.value(l);Q[G]=!0}else if(typeof i.value=="string"){const G=i.value;Q[G]=!0}return Q}),u=t.ref(null),m=t.computed(()=>{const Q={};if(e.width)e.width!=="auto"&&(Q.width=fe(e.width));else{const G=a&&o?bn(o,!1):null;if(r.value&&G){if(r.value.type==="grid"){const Z=Cn(G,r.value,e.span,e.offset);Object.assign(Q,Z)}else if(r.value.type==="flow"){const Z=Sn(G,r.value,e.span,e.offset,e.width);Object.assign(Q,Z)}}}if(typeof u.value=="function"){const G=u.value(l);G&&Object.assign(Q,G)}else if(u.value&&typeof u.value=="object"){const G=u.value;Object.assign(Q,G)}return Q}),p=t.ref(null),h=t.computed({get:()=>p.value??he(e.isRequired),set:Q=>{p.value=Q}}),k=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),g=Ae(t.toRef(e,"labelPosition"),"labelPosition",mn.Near),b=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),S=t.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${b.value}`]:!0})),d=t.computed(()=>({label:!0,[`label--${b.value}`]:!0})),f=Ae(t.toRef(e,"labelWidth"),"labelWidth",mn.Near),y=t.computed(()=>f&&f.value?{width:fe(f.value)}:{}),C=t.computed(()=>({"label--string":!0,"label--required":h.value})),B=t.computed(()=>({content:!0,[e.contentClass]:!0})),E=t.computed(()=>({...e.contentStyle})),q=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(Q){h.value=Q},setErrorTip(Q){q.errorTip=Q},setErrorIcon(Q){q.errorIcon=Q},setWarnTip(Q){q.warnTip=Q},setWarnIcon(Q){q.warnIcon=Q},setInfoTip(Q){q.infoTip=Q},setInfoIcon(Q){q.infoIcon=Q},setCustomClassName(Q){i.value=Q},setCustomStyle(Q){u.value=Q}});const I=t.computed(()=>e.infoTip||q.infoTip),z=t.computed(()=>e.infoIcon||q.infoIcon),N=t.computed(()=>e.warnTip||q.warnTip),A=t.computed(()=>e.warnIcon||q.warnIcon),L=t.computed(()=>e.errorTip||q.errorTip),O=t.computed(()=>e.errorIcon||q.errorIcon),D=t.computed(()=>L.value?"error":N.value?"warn":I.value?"info":""),T=t.computed(()=>D.value.length>0),M=t.computed(()=>D.value==="error"?L.value:D.value==="warn"?N.value:D.value==="info"?I.value:""),V=t.computed(()=>D.value==="error"?O.value:D.value==="warn"?A.value:D.value==="info"?z.value:null),v=t.computed(()=>{let Q={[`${s}__tip`]:!0,[`${s}__tip--${D.value}`]:!0};return D.value==="error"&&e.errorClass?Q[`${e.errorClass}`]=!0:D.value==="warn"&&e.warnClass?Q[`${e.warnClass}`]=!0:D.value==="info"&&e.infoClass&&(Q[`${e.infoClass}`]=!0),Q}),$=t.computed(()=>{let Q={};return g&&g.value==="top"||!k.value?Q["padding-left"]="0px":f&&f.value&&(Q["padding-left"]=fe(f.value)),Q}),K=()=>{const Q=V.value;return Q?typeof Q=="function"?t.h("div",{class:"fox-item__tip--icon"},[Q()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(Q)]):null},W=()=>{const Q=M.value;return Q?typeof Q=="function"?t.h("div",{class:"fox-item__tip--text"},[Q()]):t.h("div",{class:"fox-item__tip--text"},[Q]):null},U=t.computed(()=>n.slots.fixedPreTip),F=t.computed(()=>({[`${s}__fixed-pre-tip`]:!0})),j=t.computed(()=>n.slots.fixedTip),P=t.computed(()=>({[`${s}__fixed-tip`]:!0})),R=t.ref();let x="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([Q,G,Z,_])=>{R.value&&(Q&&!de(G)?x?ot.show(R.value,G,{..._,id:x,type:Z},!0):x=ot.show(R.value,G,{..._,type:Z},!0):ot.hide(x))});let H=null;const Y=()=>{H||!R.value||(H=new IntersectionObserver(Q=>{let G=!1;for(let Z of Q)if(Z.intersectionRatio>0){G=!0,G&&n.emit("appear",Z);break}G||n.emit("disappear")}),H.observe(R.value))},ee=()=>{!H||!R.value||(H.unobserve(R.value),H=null)};return t.watch(()=>he(e.appearListen),Q=>{Q?Y():ee()}),t.onMounted(()=>{he(e.appearListen)&&Y()}),t.onUnmounted(ee),{classes:c,styles:m,mainClasses:S,hasLabel:k,labelClasses:d,labelStyles:y,labelStringClasses:C,contentClasses:B,contentStyles:E,contentRef:R,hasTip:T,mTip:M,mIcon:V,renderIcon:K,renderTip:W,tipClasses:v,tipStyles:$,hasFixedTip:j,fixedTipClasses:P,hasFixedPreTip:U,fixedPreTipClasses:F}}}),ec=["prop"];function tc(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2),t.renderSlot(e.$slots,"fixedPreTip")],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon()),{key:0})):t.createCommentVNode("",!0),e.mTip?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderTip()),{key:1})):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,ec)}const Ne=J(_i,[["render",tc]]);function nc(e,n){return{props:{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"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(l,o){const a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:l.span==="stretch",[`${a}__${l.align}`]:!0})),s=Ue(),i=gn();yn(!1);const c=t.computed(()=>{const u={};if(l.width)l.width!=="auto"&&(u.width=fe(l.width));else if(i&&s){const m=kn(s,!1),p=bn(s,!1);if(m.value&&p){if(m.value.type==="grid"){const h=Cn(p,m.value,l.span,l.offset);Object.assign(u,h)}else if(m.value.type==="flow"){const h=Sn(p,m.value,l.span,l.offset,l.width);Object.assign(u,h)}}}return u});return()=>{const u=[];if(o.slots.default){const p=o.slots.default();if(l.divide)for(let h=0;h<p.length;h++){if(h>0){const k=t.h("div",{class:{[`${a}__divide`]:!0}});u.push(k)}u.push(p[h])}else Reflect.apply([].push,u,p)}const m={class:r.value,style:c.value};return t.h("div",m,u)}}}}const{componentName:oc,create:lc,scope:S2}=X("row-item"),To=lc(nc(oc));function ac(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(l,o){const a=Ue(),r=gn();yn(!1);const s=t.computed(()=>r&&a?kn(a,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:l.span==="stretch"})),u=t.computed(()=>{const m={};if(l.width)l.width!=="auto"&&(m.width=fe(l.width));else{const p=r&&a?bn(a,!1):null;if(s.value&&p){if(s.value.type==="grid"){const h=Cn(p,s.value,l.span,l.offset);Object.assign(m,h)}else if(s.value.type==="flow"){const h=Sn(p,s.value,l.span,l.offset,l.width);Object.assign(m,h)}}}return m});return()=>{const m={class:c.value,style:u.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",m,o.slots.default()):t.h("div",m)}}}}const{componentName:rc,create:sc,scope:C2}=X("slot-item"),$o=sc(ac(rc)),br={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 ic(e,n,l,o){return{props:{...ue,...me,...br},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ve(t.computed(()=>a.disabled)),i=De(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),{toLocaleRefs:u}=se.useFoxI18n(n),m=u(a,["placeholder"]),p=t.ref(!1),h=qe(a,"modelValue"),k=e,g=t.computed(()=>({[k]:!0,[`${k}__disabled`]:s.value,[`${k}__readonly`]:i.value})),b=Ae(t.computed(()=>a.textAlign),"textAlign"),S=t.computed(()=>{const T={};return b.value&&(T["text-align"]=b.value),T}),d=T=>{let V=T.target.value;a.type==="digit"&&(V=lo(V,!0)),a.type==="number"&&(V=lo(V,!1)),a.maxLength&&V.length>Number(a.maxLength)&&(V=V.slice(0,Number(a.maxLength))),h.value=V,c("update:modelValue",V,T),c("change",V,T)};let f=qe(a,"hintText"),y=t.ref(!1);const C=T=>{let V=T.target.value;p.value=!0,de(f.value)||(y.value=!0),c("focus",V,T)},B=T=>{setTimeout(()=>{y.value&&(y.value=!1),p.value=!1},0);let V=T.target.value;a.maxLength&&V.length>Number(a.maxLength)&&(V=V.slice(0,Number(a.maxLength))),c("blur",V,T)},E=t.computed(()=>({[`${k}__append`]:!0})),q=t.computed(()=>{const T={};return r.slots.append&&!I.value&&!O.value&&(T.display="none"),T}),I=t.computed(()=>ge(a.unit)>0),z=t.computed(()=>!O.value),N=t.computed(()=>({hidden:!z.value})),A=T=>{h.value="",c("update:modelValue","",T),c("change","",T),c("clear","")},L=t.computed(()=>he(a.clearable)&&!s.value&&!i.value),O=t.computed(()=>{let T=ge(h.value)>0;return he(a.clearable)&&T&&p.value}),D=t.computed(()=>({action:!0,hidden:!O.value}));return()=>{const T={class:g.value,style:S.value,type:a.type,maxlength:a.maxLength,placeholder:m.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:d,onFocus:C,onBlur:B},M=[],V=t.h("input",T);M.push(V);const v=[];if(L.value){const P={class:["action-icon"]},R=t.h(o,P),x={class:D.value,onClick:A},H=t.h("view",x,{default:()=>[R]});v.push(H)}if(I.value){const P=t.h("view",{class:N.value},[a.unit]);v.push(P)}const $={class:E.value,style:q.value},K=t.h("view",$,{default:()=>v});M.push(K);const W={default:()=>M};W.label=r.slots.default,W.prepend=r.slots.prepend,W.append=r.slots.append,W.fixedPreTip=r.slots.fixedPreTip,W.fixedTip=r.slots.fixedTip;const F={...ao(a,br),hintText:f.value,hintVisible:y.value};return t.h(l,F,W)}}}}const{componentName:cc,create:dc,scope:uc}=X("input-item"),Eo=dc(ic(cc,uc,Ne,te.CircleClose));function Sr(e,n=0){let l=`${e}`,o=l.indexOf(".");if(o==-1)return l;let a=o;for(let r=l.length-1;r>=o;r--)if(l.charAt(r)!="0"){a=r;break}return a-o<n?a=o+n+1:a!=o&&(a+=1),a>l.length?l=l.padEnd(a,"0"):l=l.substring(0,a),l}function Cr(e,n,l=20){if(typeof n=="string"&&(n=pe(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=qa(`${e}`,`${n}`);return Sr(o)}else{let o=Jn(`${e}`,Ma(`${n}`),20);return Sr(o)}}function fc(e,n=-1,l=!1,o=3,a=","){return Zt(e,n,l,o,a)}function wr(e,n,l,o,a=!0){if(e=="")return"";if(e=za(e),n=pe(n),n==1)return e;if(o)e=Cr(e,n),l&&(e=="0"&&a?e=`${e}.`.padEnd(pe(l)+2,"0"):e=Jn(e,1,pe(l)));else{let r=-1*n;e=Cr(e,r)}return e}function Nr(e,n){let l={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=he(n.minInclude),a=_n(e,n.min);if(o&&a==-1||!o&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";l.message=r.replace("{0}",n.min),l.minValid=!1}}if(n.max!=null){let o=he(n.maxInclude),a=_n(e,n.max);(o&&a==1||!o&&(a==0||a==1))&&(l.maxValid=!1)}return l}const Br={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,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function mc(e,n,l,o){return{props:{...ue,...me,...Br},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ve(t.computed(()=>a.disabled)),i=De(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),u=t.ref(!1),m=qe(a,"modelValue"),p=t.ref("");t.watch([()=>m.value,()=>a.rates,()=>a.precision],([$,K,W])=>{if(de($)){p.value="";return}const U=wr($,K,W,!1);p.value!==U&&(p.value=U)},{immediate:!0});const h=t.computed(()=>{let $="";return u.value&&($=p.value),$}),{t:k}=se.useFoxI18n(n),g=t.computed(()=>{let $=a.placeholder??"";return!u.value&&!de(p.value)?$=fc(p.value,a.decimalLength,a.autoPadding,a.digits,a.separator):$=de($)?k(["placeholder"]):$,$}),b=e,S=t.computed(()=>({[b]:!0,[`${b}__disabled`]:s.value,[`${b}__placeholder`]:p.value.length>0})),d=Ae(t.computed(()=>a.textAlign),"textAlign"),f=t.computed(()=>{const $={};return d.value&&($["text-align"]=d.value),$}),y=t.ref(""),C=t.computed(()=>{let $=y.value;return de($)&&($=a.errorTip??""),$}),B=t.ref(""),E=t.ref(!1),q=$=>{let W=$.target.value;if(de(W)){p.value="",m.value="",c("update:modelValue","",$),c("change","",$),he(a.showTip)&&E.value&&(E.value=!1);return}if(W.length>=2){let U=W;if(U.charAt(0)=="-"&&(U=U.substring(1)),U.length>=2&&U.charAt(0)=="0"&&U.charAt(1)!="."){t.triggerRef(p);return}}if(W!="-"){if(!Ua(W)){t.triggerRef(p);return}if(a.integerLength!=-1&&Ha(W)>Number(a.integerLength)){t.triggerRef(p);return}if(a.decimalLength&&a.decimalLength!=-1&&ja(W)>Number(a.decimalLength)){t.triggerRef(p);return}let U=Nr(W,a);if(U.maxValid===!1){y.value=U.message,t.triggerRef(p);return}}else if(a.min!=null&&pe(a.min)>=0){t.triggerRef(p);return}B.value=W,he(a.showTip)&&(E.value=W.length>0),p.value=W,m.value=wr(W,a.rates,a.precision,!0),c("update:modelValue",m.value,$),c("change",m.value,$)},I=$=>{if(u.value=!0,he(a.showTip)){let K=p.value;de(K)&&(K=a.hintText),de(K)||(B.value=K,E.value=!0)}y.value="",c("focus",m.value,$)},z=$=>{if(setTimeout(()=>{u.value=!1,he(a.showTip)&&E.value===!0&&(E.value=!1)},0),!de(p.value)){let K=Nr(p.value,a);if(K.minValid===!1||K.maxValid===!1){y.value=K.message;return}}c("update:modelValue",m.value,$),c("blur",m.value,$)},N=t.computed(()=>({[`${b}__append`]:!0})),A=t.computed(()=>{const $={};return r.slots.append&&!L.value&&!V.value&&($.display="none"),$}),L=t.computed(()=>ge(a.unit)>0),O=t.computed(()=>!V.value),D=t.computed(()=>({hidden:!O.value})),T=$=>{m.value="",c("update:modelValue","",$),c("change","",$),c("clear","")},M=t.computed(()=>he(a.clearable)&&!s.value&&!i.value),V=t.computed(()=>{let $=ge(m.value)>0;return he(a.clearable)&&$&&u.value}),v=t.computed(()=>({action:!0,hidden:!V.value}));return()=>{let $={class:S.value,style:f.value,type:"digit",maxlength:a.maxLength,placeholder:g.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:q,onFocus:I,onBlur:z},K=[],W=t.h("input",$);K.push(W);let U=[];if(M.value){const Y={class:["action-icon"]},ee=t.h(o,Y),Q={class:v.value,onClick:T},G=t.h("view",Q,{default:()=>[ee]});U.push(G)}if(L.value){const Y=t.h("view",{class:D.value},[a.unit]);U.push(Y)}const F={class:N.value,style:A.value},j=t.h("view",F,{default:()=>U});K.push(j);const P={default:()=>K};if(r.slots.default){let Y=r.slots.default();P.label=()=>Y}if(r.slots.prepend){let Y=r.slots.prepend();P.prepend=()=>Y}if(r.slots.append){let Y=r.slots.append();P.append=()=>Y}let x={...ao(a,Br),errorTip:C.value,hintText:B.value,hintVisible:E.value,hintType:"number"};return t.h(l,x,P)}}}}const{componentName:pc,create:hc,scope:gc}=X("money-item"),Do=hc(mc(pc,gc,Ne,te.CircleClose)),Io={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:yc,create:kc,scope:bc}=X("textarea"),Sc=kc({props:{...Io},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:l}=se.useFoxI18n(bc);const o=l(e,["placeholder"]),a=t.ref(),r=t.computed(()=>{const h=yc;return{[h]:!0,[`${h}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const s=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let h=a.value;h.style.height="auto";let k=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:g,minHeight:b}=e.autosize;g!==void 0&&(k=Math.min(k,g)),b!==void 0&&(k=Math.max(k,b))}k&&(h.style.height=k+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,k)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,k),n("change",h,k)};return{...o,textareaRef:a,classes:r,styles:s,change:h=>{const k=h.target;c(k.value,h)},focus:h=>{e.disabled||e.readonly||n("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let g=h.target.value;c(g,h),n("blur",{value:g,event:h})}}}}),Cc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],wc={key:0,class:"fox-textarea__limit"};function Nc(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:t.normalizeStyle(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...s)=>e.change&&e.change(...s)),onBlur:n[1]||(n[1]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[2]||(n[2]=(...s)=>e.focus&&e.focus(...s)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Cc),e.limitShow?(t.openBlock(),t.createElementBlock("view",wc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const Nn=J(Sc,[["render",Nc]]);function Bc(e,n,l,o){return{props:{...ue,...me,...Io},emits:["update:modelValue","change","blur","focus"],setup(a,r){const s=Ve(t.computed(()=>a.disabled)),i=De(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),u=qe(a,"modelValue"),m=b=>{u.value=b,c("update:modelValue",b,{}),c("change",b,{})};let p=qe(a,"hintText"),h=t.ref(!1);const k=b=>{de(p.value)||(h.value=!0),c("focus",u.value,b)},g=b=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",u.value,b)};return()=>{const S={...ke(a,Io),disabled:s.value,readonly:i.value,value:u.value,"onUpdate:modelValue":m,onFocus:k,onBlur:g},d=[],f=t.h(o,S);d.push(f);const y={default:()=>d};y.label=r.slots.default,y.prepend=r.slots.prepend,y.append=r.slots.append,y.fixedPreTip=r.slots.fixedPreTip,y.fixedTip=r.slots.fixedTip;const C=ke(a,me,ue);return t.h(l,C,y)}}}}const{componentName:Ac,create:Vc,scope:Tc}=X("textarea-item"),qo=Vc(Bc(Ac,Tc,Ne,Nn));function $c(e){return e===window}const Ee=e=>{const n=t.unref(e);if($c(n)){const l=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:l,bottom:o,width:l,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},lt={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},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,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:{}}},Ar=2e3;let Vr=Ar;const Ec=(e,n)=>({components:n,props:{...lt},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:o}){const a=t.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),r=t.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),s=t.computed(()=>({zIndex:a.zIndex,transitionDuration:`${l.duration}s`,...l.style})),i=t.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),c=()=>{l.zIndex!==Ar&&(Vr=Number(l.zIndex)),o("update:visible",!0),a.zIndex=++Vr,l.destroyOnClose&&(a.showSlot=!0),o("open")},u=()=>{o("update:visible",!1),o("close"),l.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+l.duration*1e3)},m=b=>{o("click-pop",b)},p=b=>{b.stopPropagation(),o("click-close-icon",b),o("update:visible",!1)},h=b=>{o("click-overlay",b),l.closeOnClickOverlay&&o("update:visible",!1)},k=b=>{o("opend",b)},g=b=>{o("closed",b)};return t.watch(()=>l.visible,b=>{l.visible?c():u()}),t.watch(()=>l.closeable,b=>{a.closed=b}),{...t.toRefs(a),popStyle:s,transitionName:i,classes:r,onClick:m,onClickCloseIcon:p,onClickOverlay:h,onOpened:k,onClosed:g}}});let Et=0;const Tr="fox-overflow-hidden",$r=()=>Xe?document.body:{classList:[]},Dc=e=>[()=>{if(e())try{!Et&&$r().classList.add(Tr),Et++}catch{}},()=>{if(e()&&Et)try{Et--,!Et&&$r().classList.remove(Tr)}catch{}}],Ic={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:qc,create:Mc}=X("overlay"),zc=Mc({props:{...Ic},emits:["click","update:visible"],setup(e,{emit:n}){const[l,o]=Dc(()=>e.lockScroll),a=t.computed(()=>({[qc]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,i=>{i?l():o()}),{classes:a,style:r,onClick:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function xc(e,n,l,o,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const at=J(zc,[["render",xc]]),{componentName:Lc,create:Pc}=X("popup"),Rc=Pc(Ec(Lc,{FoxOverLay:at,Close:te.Close}));function Fc(e,n,l,o,a,r){const s=t.resolveComponent("FoxOverLay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const ce=J(Rc,[["render",Fc]]),Er=10;function Oc(e,n){return e>n&&e>Er?"horizontal":n>e&&n>Er?"vertical":""}function He(){const e=t.ref(0),n=t.ref(0),l=t.ref(0),o=t.ref(0),a=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),u=t.ref(0),m=t.ref(""),p=()=>m.value==="vertical",h=()=>m.value==="horizontal",k=()=>{s.value=0,i.value=0,c.value=0,u.value=0,m.value="",l.value=0};return{move:S=>{const d=S.touches[0];s.value=d.clientX-e.value,i.value=d.clientY-n.value,a.value=d.clientX,r.value=d.clientY,c.value=Math.abs(s.value),u.value=Math.abs(i.value),o.value=Date.now()-l.value,m.value||(m.value=Oc(c.value,u.value))},start:S=>{k(),e.value=S.touches[0].clientX,n.value=S.touches[0].clientY,l.value=Date.now()},reset:k,startX:e,startY:n,startTime:l,duration:o,moveX:a,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:u,direction:m,isVertical:p,isHorizontal:h}}const Dr={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:1e3}},Mo={...lt,...Dr,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,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let Ir=36;function vc(){return Ir}function Kc(e){Ir=e}function Le(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function zo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Uc(e,n,l){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=l),n.children=l}function rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function qr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let Hc=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);const a=Ge(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Te(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}};function jc(){const e=t.getCurrentInstance();return new Hc(e.proxy)}function Mr(e,n,l){const o=Le(e,n),a=Le(e,l);if(o!==a)return!1;const r=rt(e,n),s=rt(e,l);return r===s}function Wc(e,n,l,o){if(l.length==0)return[];Array.isArray(n)||(n=[n]);const a=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<l.length;s++){const i=n[s];let u=l[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 Mr(e,m,i)});if(u==-1)break;a.push(u)}else{let s=l[0];for(let i=0;i<n.length;i++){const c=n[i];let u=s.findIndex(p=>{if(r==="text")return Le(e,p)===c;if(r==="value"){let h=rt(e,p);return h==null&&(h=Le(e,p)),h===c}else if(r==="item")return Mr(e,p,c)});if(u==-1)break;a.push(u);const m=zo(e,s[u]);if(!Array.isArray(m))break;s=m}}return a}function zr(e,n,l,o){if(l.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<l.length;s++){const i=l[s];let c=n[s];c<0&&c>=i.length&&(c=0);const u=i[c],m=Le(e,u);if(a.texts.push(m),a.items.push(u),r==="text")a.values.push(m);else if(r==="value"){let p=rt(e,u);p==null&&(p=m),a.values.push(p)}else a.values.push(u)}else{let s=l[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=s.length&&(c=0);const u=s[c],m=Object.assign({},u);m.children=null;const p=Le(e,u);if(a.texts.push(p),a.items.push(m),r==="text")a.values.push(p);else if(r==="value"){let h=rt(e,u);h==null&&(h=p),a.values.push(h)}else a.values.push(m);if(!Array.isArray(u.children))break;s=u.children}}return a}function xr(e){return{text:e,value:e}}const Yc=15,Xc=300,Qc=200,{create:Gc}=X("picker-column");function Zc(e){e.stopPropagation()}function Jc(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Zc(e)}const _c=Gc({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},...Dr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const l=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${pe(e.visibleItemCount)*+e.itemHeight}px`})),a=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=I=>I>=p.currIndex+8||I<=p.currIndex-8,i=t.computed(()=>({transition:`transform ${p.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${p.deg})`,top:`${r.value}px`})),c=I=>`transform: rotate3d(1, 0, 0, ${-p.rotation*I}deg) translate3d(0px, 0px, 104px)`,u=t.computed(()=>({transition:`transform ${p.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${p.scrollDistance+r.value}px, 0)`})),m=t.ref(null),p=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=t.toRef(e,"source"),k=I=>Le(e,I),g=I=>rt(e,I),b=He(),S=()=>{p.transitionEndTrigger&&(p.transitionEndTrigger(),p.transitionEndTrigger=null)},d=(I,z=!1,N=!1)=>{if(p.currIndex=I,z){const A=()=>{p.moving=!1,n("update:modelValue",I),n("change",I)};N?p.transitionEndTrigger=A:A()}},f=(I,z,N)=>{let A=I+p.startDistance;if(z==="end"){const L=-(h.value.length-1)*e.itemHeight;A<L&&(A=L,(!N||N<=0)&&(N=e.swipeDuration)),A>0&&(A=0,(!N||N<=0)&&(N=e.swipeDuration));let O=Math.abs(Math.round(-A/e.itemHeight));const D=-O*e.itemHeight,T=`${(O+1)*p.rotation}deg`,M=N?N>0:!1;d(O,!0,M),y(D,z,N,T)}else{let L=(-A/e.itemHeight+1)*p.rotation;const O=(h.value.length+1)*p.rotation,D=0;if(L=Math.min(Math.max(L,D),O),e.threeDimensional&&(L<D||L>O))return;y(A,null,void 0,`${L}deg`)}},y=(I=0,z,N=Qc,A)=>{z==="end"?p.scrollTime=N:p.scrollTime=0,p.deg=A,p.scrollDistance=I},C=(I,z)=>(I=Math.abs(I/z)/.003*(I<0?-1:1),I),B=I=>{e.readonly||(p.startDistance=p.scrollDistance,b.start(I),p.transitionEndTrigger=null)},E=I=>{e.readonly||(p.moving=!0,b.move(I),b.isVertical()&&(p.moving=!0,Jc(I,!0)),f(b.deltaY.value,"",0))},q=()=>{if(e.readonly)return;const I=b.deltaY.value,z=b.duration.value;if(z<Xc&&Math.abs(I)>Yc){const A=C(I,z);f(A,"end",e.swipeDuration)}else f(I,"end",0)};return t.watch(()=>e.modelValue,I=>{if(p.currIndex!==I){p.currIndex=I;const z=-I*e.itemHeight;f(z)}}),t.onMounted(()=>{const I=-e.modelValue*e.itemHeight;f(I)}),{classes:l,styles:o,contentClasses:a,source:h,itemText:k,itemValue:g,...t.toRefs(p),roller:m,getItemText:Le,onTouchStart:B,onTouchMove:E,onTouchEnd:q,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:u,stopMomentum:S}}}),ed={key:1,class:"fox-picker__item-tile"};function td(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:n[4]||(n[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",ed,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Lr=J(_c,[["render",td]]),{create:nd,componentName:od,scope:ld}=X("picker"),ad=nd({components:{[Lr.name]:Lr,[ce.name]:ce},props:{...Mo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:l,t:o}=se.useFoxI18n(ld),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(vc());t.watch(()=>e.visible,N=>{N&&s.value<=0&&setTimeout(()=>{if(r.value){const A=Ee(r.value);s.value=A.height,Kc(s.value)}},50)});const i=t.computed(()=>({[od]:!0})),c=jc(),u=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([N,A])=>{if(N){let L=await c.load("picker",N,A);if(L.length>0){let O=L[0];if(Array.isArray(O)){if(typeof O[0]=="string"){let D=L,T=[];D.forEach(M=>{let V=M.map(v=>xr(v));T.push(V)}),m.value=T}else m.value=L;u.value="multipleColumn"}else if(typeof O=="string"){let D=L,T=[],M=D.map(V=>xr(V));T.push(M),m.value=T,u.value="singleColumn"}else{const D=zo(e,O);Array.isArray(D)?(u.value="cascade",m.value=[L]):(u.value="singleColumn",m.value=[L])}}else m.value=[]}},{immediate:!0});const p=t.ref([]),h=t.ref(e.modelValue),k=t.ref([]),g=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([N,A])=>{let L=Wc(e,N,A,u.value);if(!ze(L,g.value)){g.value=L;let O=zr(e,L,A,u.value);O&&(p.value=O.texts,n("update:text",p.value))}});const b=t.ref(e.visible);t.watch(()=>e.visible,N=>{b.value=N});const S=N=>{let A=qr(e,N);return Te(A)?A.defaultIndex??0:0},d=N=>{if(e.readonly===!0)return!0;let A=qr(e,N);return Te(A)?A.readonly??!1:!1},f=(N,A)=>{let L=g.value;L[N]=A;for(let D=0;D<N;D++)L[D]==null&&(L[D]=S(D));if(u.value==="cascade")for(let D=N+1;D<C.value.length;D++){let T=S(D);D<L.length?L[D]=T:L.push(T)}else for(let D=L.length;D<C.value.length;D++){let T=S(D);L.push(T)}g.value=L;let O=zr(e,L,m.value,u.value);O&&(p.value=O.texts,h.value=O.values,k.value=O.items)},y=N=>N<g.value.length?g.value[N]:S(N),C=t.computed(()=>{if(m.value.length==0)return[];if(u.value=="singleColumn"||u.value=="multipleColumn")return m.value;let N=[],A=0,L=m.value[0],O=0;for(;;){let D=L.map(V=>{let v=Object.assign({},V);return Uc(e,v,null),v});N.push(D),A>=g.value.length?O=0:O=g.value[A],(O<0||O>=L.length)&&(O=0);let T=L[O];const M=zo(e,T);if(!Array.isArray(M))break;L=M,A++}return N}),B=t.computed(()=>pe(+e.visibleItemCount-1)/2*s.value);return{...a,pickerLineRef:r,classes:i,columns:C,dataType:u,show:b,itemHeight:s,top:B,isReadonly:d,getIndex:y,change:(N,A)=>{f(N,A)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let N=m.value.length-1;for(;N>=0&&!(g.value[N]===null||g.value[N]===void 0);N--);if(N>=0&&f(N,0),u.value==="singleColumn"){let A=h.value.length>0?h.value[0]:"",L=k.value.length>0?k.value[0]:null;e.readonly||(n("update:modelValue",A),n("update:text",p.value),n("change",A,L)),n("confirm",A)}else e.readonly||(n("update:modelValue",h.value),n("update:text",p.value),n("change",h.value,k.value)),n("confirm",h.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}u.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),rd={class:"fox-picker__bar"},sd={class:"fox-picker__title"},id={class:"fox-picker__bar__action"},cd={class:"fox-picker__column"};function dd(e,n,l,o,a,r){const s=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",rd,[t.createElementVNode("view",sd,t.toDisplayString(e.title),1),t.createElementVNode("view",id,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",cd,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(u),"column-index":u,modelValue:e.getIndex(u),"onUpdate:modelValue":m=>e.change(u,m),"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,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const ht=J(ad,[["render",dd]]);function ud(e,n,l,o,a,r,s=!0){return{props:{...ue,...me,...Mo,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"],setup(i,c){const u=Ve(t.computed(()=>i.disabled)),m=De(t.computed(()=>i.readonly)),{emitEvent:p}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),k=h(i,["placeholder"]),g=t.ref(!1),b=qe(i,"modelValue"),S=t.ref([]),d=t.computed(()=>Array.isArray(S.value)?S.value.join(i.separator):S.value),f="fox-input-item",y=t.computed(()=>({[f]:!0,[`${f}__disabled`]:u.value})),C=Ae(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const j={};return C.value&&(j["text-align"]=C.value),j}),E=t.ref(!1),q=()=>{E.value=!0},I=j=>{E.value=j},z=j=>{b.value=j,p("update:modelValue",j)},N=(j,P)=>{p("change",j,P)},A=j=>{let R=j.target.value;g.value=!0,p("focus",R,j)},L=j=>{setTimeout(()=>{g.value=!1},0);let R=j.target.value;i.maxLength&&R.length>Number(i.maxLength)&&(R=R.slice(0,Number(i.maxLength))),p("blur",R,j)},O=j=>{S.value=j,Array.isArray(j)&&j.length===0?p("update:text",j[0]):p("update:text",j)},D=t.computed(()=>({[`${f}__append`]:!0})),T=t.computed(()=>ge(i.unit)>0),M=t.computed(()=>ge(i.unit)>0&&!g.value),V=t.computed(()=>({hidden:!M.value})),v=j=>{b.value="",p("update:modelValue","",j),p("change","",j),p("clear","")},$=t.computed(()=>i.clearable&&!u.value&&!m.value),K=t.computed(()=>ge(b.value)>0&&g.value),W=j=>{K.value?v(j):q()},U=t.computed(()=>K.value&&$.value?o:a),F=t.computed(()=>({action:!0}));return()=>{const j={class:y.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:q,onFocus:A,onBlur:L};s&&(j.disabled=!0);const P=[],R=t.h("input",j);P.push(R);const x=[],H={class:["action-icon"]},Y=t.h(U.value,H),ee={class:F.value,onClick:W},Q=t.h("view",ee,{default:()=>[Y]});if(x.push(Q),T.value){const Se=t.h("view",{class:V.value},[i.unit]);x.push(Se)}const G={class:D.value},Z=t.h("view",G,{default:()=>x});P.push(Z);const _={default:()=>P};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const ne=ke(i,Mo);ne.disabled=!1,ne.readonly=u.value||m.value,ne.visible=E.value,ne["onUpdate:visible"]=I,ne.modelValue=b.value,ne["onUpdate:modelValue"]=z,ne.text=S.value,ne["onUpdate:text"]=O,ne.onChange=N;const oe=t.h(r,ne);_.hide=()=>[oe];const ae=ke(i,me,ue);return t.h(l,ae,_)}}}}const{componentName:fd,create:md,scope:pd}=X("picker-item"),xo=md(ud(fd,pd,Ne,te.CircleClose,te.ArrowRight,ht,!1)),Bn=(e,n,l)=>e.map(o=>{const{value:a="value",text:r="text",children:s="children"}=l??{},{[a]:i,[r]:c,[s]:u,...m}=o,p={loading:!1,...m,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:u,_parent:n};return p.children&&p.children.length&&(p.children=Bn(p.children,p,l)),p}),Pr=(e,n)=>{let l=0,o;for(;(o=e[l++])&&n(o)!==!0;)o.children&&o.children.length&&Pr(o.children,n)},hd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},gd=(e,n)=>{const l={...hd,...n||{}},{topId:o,idKey:a,pidKey:r,sortKey:s}=l;let i=[],c={};return e.forEach(u=>{u={...u};const{[a]:m,[r]:p}=u,h=c[p]=c[p]||[];!i.length&&p===o&&(i=h),h.push(u),u.children=c[m]||(c[m]=[])}),s&&Object.keys(c).forEach(u=>{c[u].length>1&&c[u].sort((m,p)=>m[s]-p[s])}),c=null,i},yd=/scroll|auto|overlay/i,Rr=window;function kd(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Lo(e,n=Rr){let l=e;for(;l&&l!==n&&kd(l);){const{overflowY:o}=window.getComputedStyle(l);if(yd.test(o))return l;l=l.parentNode}return n}function Fr(e,n=Rr){const l=t.ref();return t.onMounted(()=>{e.value&&(l.value=Lo(e.value,n))}),l}const{create:bd}=X("sticky"),Sd=bd({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 l=t.ref(),o=t.ref(),a=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>a.fixed?{height:`${a.height}px`}:{}),i=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)}:{}),c=()=>{const u=e.container;if(!l.value&&!u)return;const m=Ee(l),p=o.value,h=Ee(p),k=Ee(u);a.height=m.height;const g=()=>{let S=!1;if(e.position==="top")S=u?r.value>m.top&&k.bottom>0:r.value>m.top;else{const d=document.documentElement.clientHeight;S=u?k.bottom>0&&d-r.value-h.height>k.top:d-r.value<m.bottom}return S},b=()=>{if(u)if(e.position==="top"){const S=k.bottom-r.value-h.height;return S<0?S:0}else{const S=document.documentElement.clientHeight,d=k.bottom-(S-r.value);return d<0?d:0}return 0};a.transform=b(),a.fixed=g()};return t.watch(()=>a.fixed,u=>{n("change",u)}),t.onMounted(()=>{c(),Lo(l.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Lo(l.value).removeEventListener("scroll",c)}),{rootRef:l,rootStyle:s,stickyRef:o,stickyStyle:i}}});function Cd(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const Dt=J(Sd,[["render",Cd]]),wd=(e,n,l,o)=>{const a=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(l&&l.getEnv()!==l.ENV_TYPE.WEB){let h=await o(a,l);r.value.width=h.width||0,r.value.height=h.height||0}else r.value.width=a.value?.clientWidth||0,r.value.height=a.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=He();let u="";const m=(h,k)=>{let g=h;switch(e.direction=="horizontal"?(u=h>0?"right":"left",g=Math.abs(g)/r.value.width*100):(u=k>0?"bottom":"top",g=k,g=Math.abs(g)/r.value?.height*100),g>85&&(g=85),u){case"left":case"top":n.isEnd()&&(g=0,i.moving=!1);break;case"right":case"bottom":g=-g,n.isBegin()&&(g=0,i.moving=!1);break}i.offset=g};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,m(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(h.preventDefault(),h.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(h.preventDefault(),h.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,u){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:a}};class Nd{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Bd}=X("tabs"),Ad=Bd({components:{[Dt.name]:Dt,JoySmile:te.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:l}){const o=t.ref(null);let a;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=N=>{N.forEach((A,L)=>{let O=A.type;if(O=O.name||O,O=="fox-tab-pane"){let D=new Nd;if(A.props?.title||A.props?.["pane-key"]||A.props?.paneKey){let T=et(A.props?.["pane-key"]),M=T=="number"||T=="string"?String(A.props?.["pane-key"]):null,V=et(A.props?.paneKey),v=V=="number"||V=="string"?String(A.props?.paneKey):null;D.title=A.props?.title,D.paneKey=M||v||String(L),D.disabled=A.props?.disabled}r.value.push(D)}else{if(A.children==" ")return;Array.isArray(A.children)&&s(A.children)}})},i=t.ref(e.modelValue||0),c=N=>{let A=r.value.findIndex(L=>L.paneKey==N);r.value.length==0||A==-1||(i.value=A)},u=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),p=t.ref([]),h=N=>{const A=m.value,L=p.value;if(!A||!L||!L[i.value])return;const O=L[i.value];let D=0;e.direction==="vertical"?D=O.offsetTop-A.offsetTop+10-(A.offsetHeight-O.offsetHeight)/2:D=O.offsetLeft-(A.offsetWidth-O.offsetWidth)/2,k(A,D,N?0:.3,e.direction)},k=(N,A,L,O)=>{let D=0;const T=O==="horizontal"?N.scrollLeft:N.scrollTop,M=L===0?1:Math.round(L*1e3/16);function V(){O==="horizontal"?N.scrollLeft+=(A-T)/M:N.scrollTop+=(A-T)/M,++D<M&&Fe(V)}V()},g=(N=l.default?.())=>{r.value=[],N=N?.filter(A=>typeof A.children!="string"),N&&N.length&&s(N),c(e.modelValue),t.nextTick(()=>{h()})},b=N=>{a=N.fixed};t.watch(()=>l.default?.(),N=>{g(N)});const S=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,N=>{if(c(N),h(),a){let A=Ee(o.value).top+S(),L=Math.ceil(A-e.top);window.scrollTo({top:L,behavior:"smooth"})}}),t.onMounted(g),t.onActivated(g);const d={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,d.updateValue(r.value[i.value])},prev:()=>{i.value-=1,d.updateValue(r.value[i.value])},updateValue:N=>{n("update:modelValue",N.paneKey),n("change",N)},tabChange:(N,A)=>{n("click",N),!(N.disabled||i.value==A)&&(i.value=A,d.updateValue(N))},setTabItemRef:(N,A)=>{p.value[A]=N}},{tabsContentRef:f,touchState:y,touchMethods:C}=wd(e,d),B=t.computed(()=>{let N=i.value*100;y.moving&&(N+=y.offset);let A={transform:e.direction=="horizontal"?`translate3d(-${N}%, 0, 0)`:`translate3d( 0,-${N}%, 0)`,transitionDuration:y.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(A={}),A}),E=t.computed(()=>({background:e.background})),q=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),I=t.computed(()=>{if(!e.titleGutter)return{};const N=fe(e.titleGutter);return e.direction==="vertical"?{marginTop:N,marginBottom:N}:{marginLeft:N,marginRight:N}}),z=t.computed(()=>l.fixedTitle);return{navRef:m,tabsContentRef:f,titles:r,contentStyle:B,tabsNavStyle:E,titleStyle:I,tabsActiveStyle:q,container:o,getScrollY:u,onStickyScroll:b,...d,...C,hasFixedTitle:z}}}),Vd=["onClick"],Td={key:0,class:"fox-tabs__titles-fixed-item"},$d=["onClick"],Ed={key:0,class:"fox-tabs__titles-fixed-item"};function Dd(e,n,l,o,a,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,u),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Vd))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Td,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,u),key:c.paneKey,ref_for:!0,ref:m=>e.setTabItemRef(m,u)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,$d))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Ed,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[1]||(n[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[2]||(n[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const It=J(Ad,[["render",Dd]]),{create:Id}=X("tab-pane"),qd=Id({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const l=t.inject("tabsOpiton"),o=t.computed(()=>({display:l.animatedTime.value==0&&e.paneKey!=l.activeKey.value?"none":void 0}));return{...l,paneStyle:o}}});function Md(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const qt=J(qd,[["render",Md]]);class Or{nodes;config;constructor(n,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=Bn(n,null,this.config)}updateChildren(n,l){l?l.children=Bn(n,l,this.config):this.nodes=Bn(n,null,this.config)}getNodeByValue(n){let l;return Pr(this.nodes,o=>{if(o.value===n)return l=o,!0}),l}getPathNodesByValue(n){if(!n.length)return[];const l=[];let o=this.nodes;for(;o&&o.length;){const a=o.find(r=>r.value===n[r.level]);if(!a)break;l.push(a),o=a.children}return l}isLeaf(n,l){const{leaf:o,children:a}=n,r=Array.isArray(a)&&!!a.length;return o||!r&&!l}hasChildren(n,l){if(this.isLeaf(n,l))return!1;const{children:a}=n;return Array.isArray(a)&&!!a.length}}const{create:zd,scope:xd}=X("cascader-pane"),Ld=zd({components:{Loading:te.Loading,Checklist:te.Checklist,[It.name]:It,[qt.name]:qt},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 l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),o=t.ref(0),a=t.ref(!1),r=t.ref(e.modelValue),s=t.ref(new Or([],{})),i=t.ref([]),c=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),u=new Map;let m;const p=async()=>{u.clear(),i.value=[],o.value=0,a.value=!1,m=null;let{options:d}=e;l.value.convertConfig&&(d=gd(d,l.value.convertConfig)),s.value=new Or(d,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),c.value&&!s.value.nodes.length&&await k({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:s.value.nodes,selectedNode:null}],h()},h=async()=>{const d=r.value;if(d===void 0||!s.value.nodes.length)return;if(d.length===0){o.value=0,i.value=[{nodes:s.value.nodes,selectedNode:null}];return}let f=d;if(c.value&&Array.isArray(d)&&d.length){f=[];let y=s.value.nodes.find(C=>C.value===d[0]);if(y){f=[y.value],a.value=!0;const C=await d.slice(1).reduce(async(B,E)=>{const q=await B;await k(q);const I=q?.children?.find(z=>z.value===E);return I&&f.push(E),Promise.resolve(I)},Promise.resolve(y));await k(C),a.value=!1}}f.length&&d===e.modelValue&&s.value.getPathNodesByValue(f).map((C,B)=>{o.value=B,S.handleNode(C,!0)})},k=async d=>{if(!d)return;if(!l.value.lazyLoad){d.leaf=!0;return}if(s.value.isLeaf(d,c.value)||s.value.hasChildren(d,c.value))return;d.loading=!0;const f=d.root?null:d;let y=u.get(d);y||(y=new Promise(B=>{l.value.lazyLoad?.(d,B)}),u.set(d,y));const C=await y;Array.isArray(C)&&C.length>0?s.value.updateChildren(C,f):d.leaf=!0,d.loading=!1,u.delete(d)},g=d=>{const f=d.map(y=>y.value);r.value=f,n("change",f,d),n("update:modelValue",f,d)},{t:b}=se.useFoxI18n(xd),S={async handleNode(d,f){const{disabled:y,loading:C}=d;if(!(!f&&y||!i.value[o.value])){if(s.value.isLeaf(d,c.value)){if(d.leaf=!0,i.value[o.value].selectedNode=d,i.value=i.value.slice(0,d.level+1),!f){const B=i.value.map(E=>E.selectedNode);g(B),n("pathChange",B)}return}if(s.value.hasChildren(d,c.value)){const B=d.level+1;if(i.value[o.value].selectedNode=d,i.value=i.value.slice(0,B),i.value.push({nodes:d.children||[],selectedNode:null}),o.value=B,!f){const E=i.value.map(q=>q.selectedNode);n("pathChange",E)}return}m=d,!C&&(await k(d),m===d&&(i.value[o.value].selectedNode=d,S.handleNode(d,f)))}},handleTabClick(d){m=null,o.value=Number(d.paneKey)},formatTabTitle(d){return d.selectedNode?d.selectedNode.text:b("select")},isSelected(d,f){return d.selectedNode&&d.selectedNode.value===f.value}};return t.watch([l,()=>e.options],()=>{p()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,d=>{d!==r.value&&(r.value=d,h())}),t.watch(()=>e.visible,d=>{d&&Array.isArray(r.value)&&r.value.length>0&&h()}),{panes:i,initLoading:a,tabsCursor:o,...S}}}),Pd={role:"menu",class:"fox-cascader__pane"},Rd=["aria-checked","aria-disabled","onClick"],Fd={class:"fox-cascader__item__title"},Od=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function vd(e,n,l,o,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-tab-pane"),u=t.resolveComponent("fox-tabs");return t.openBlock(),t.createBlock(u,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=m=>e.tabsCursor=m),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(m,p)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(m),key:p},{default:t.withCtx(()=>[t.createElementVNode("view",Pd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.nodes,h=>(t.openBlock(),t.createElementBlock("view",{key:h.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(m,h),disabled:h.disabled}]),"aria-checked":e.isSelected(m,h),"aria-disabled":h.disabled||void 0,role:"menuitemradio",onClick:k=>e.handleNode(h,!1)},[t.createElementVNode("view",Fd,t.toDisplayString(h.text),1),h.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Rd))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Od]),_:1}))]),_:1},8,["modelValue","onClick"])}const Kd=J(Ld,[["render",vd]]),{create:Ud}=X("cascader"),Hd=Ud({components:{FoxCascaderPane:Kd,FoxPopup:ce},props:{...lt,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const l=t.ref(e.modelValue),o=t.computed({get(){return e.visible},set(s){n("update:visible",s)}}),a=(s,i)=>{l.value=s,o.value=!1,n("change",s,i),n("update:modelValue",s)},r=s=>{n("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==l.value&&(l.value=s)}),{onChange:a,onPathChange:r,innerValue:l,innerVisible:o}}}),jd=["innerHTML"];function Wd(e,n,l,o,a,r){const s=t.resolveComponent("FoxCascaderPane"),i=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,jd)):t.createCommentVNode("",!0),t.createVNode(s,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(s,{key:1,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"]))}const An=J(Hd,[["render",Wd]]);function Mt(e,n){const l=e.textKey??"text";return n[l]??""}function zt(e,n){const l=e.valueKey??"value";return n[l]}function vr(e,n){const l=e.childrenKey??"children";return n[l]}function Vn(e,n=[]){const l={texts:[],values:[]};for(let o=0;o<n.length;o++){const a=n[o],r=Mt(e,a),s=zt(e,a);l.texts.push(r),l.values.push(s??"")}return l}function Kr(e,n,l,o,a=[]){if(!l)return;const r=l[o];for(let s=0;s<n.length;s++)if(Mt(e,n[s])===r){const c=zt(e,n[s])??"",u={[e.textKey]:r,[e.valueKey]:c};a.push(u);const m=vr(e,n[s]);Array.isArray(m)&&Kr(e,m,l,o+1,a);return}}function Ur(e,n,l,o,a=[]){if(!l)return;const r=l[o];for(let s=0;s<n.length;s++)if(zt(e,n[s])===r){const c=Mt(e,n[s])??"",u={[e.textKey]:c,[e.valueKey]:r};a.push(u);const m=vr(e,n[s]);Array.isArray(m)&&Ur(e,m,l,o+1,a);return}}function Po(e,n,l){if(n===l)return!0;if(n.length!==l.length)return!1;for(let o=0;o<n.length;o++){const a=Mt(e,n[o]),r=Mt(e,l[o]);if(a!==r)return!1;const s=zt(e,n[o]),i=zt(e,l[o]);if(s!==i)return!1}return!0}let Yd=class{proxy;constructor(n){this.proxy=n}async load(n,l){const o="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(l);const a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Te(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(n,l))}};function Xd(){const e=t.getCurrentInstance();return new Yd(e.proxy)}function Qd(e,n,l,o,a,r,s=!1){return{props:{...ue,...me,modelValue:{type:[Array,String]},pathNodes:{type:[Array]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes"],setup(i,c){const u=Ve(t.computed(()=>i.disabled)),m=De(t.computed(()=>i.readonly)),{emitEvent:p}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),k=h(i,["placeholder"]),g=t.ref(!1),b=Xd(),S=t.ref([]);t.watch([()=>i.source,()=>i.params],async([R,x])=>{R&&(S.value=await b.load(R,x))},{immediate:!0});const d=t.ref([]),f=t.computed(()=>Array.isArray(d.value)?d.value.join(" "):d.value),y=t.ref([]),C=t.ref([]);t.watch([()=>i.modelValue],async([R])=>{if(i.lazy===!0){C.value.length==0&&(d.value=Array.isArray(R)?R:[],y.value=Array.isArray(R)?R:[]);return}if(i.valueType==="item"){let x=R;if(!Po(i,x,C.value)){C.value=x;let H=Vn(i,x);d.value=H.texts,y.value=H.values}}else if(i.valueType==="text"){let x=R,H=[];if(Kr(i,S.value,x,0,H),!Po(i,H,C.value)){C.value=H;let Y=Vn(i,H);x.value=Y.texts,y.value=Y.values}}else{let x=[];if(Ur(i,S.value,R,0,x),!Po(i,x,C.value)){C.value=x;let H=Vn(i,x);d.value=H.texts,y.value=H.values}}},{immediate:!0});const B="fox-input-item",E=t.computed(()=>({[B]:!0,[`${B}__disabled`]:u.value})),q=Ae(t.computed(()=>i.textAlign),"textAlign"),I=t.computed(()=>{const R={};return q.value&&(R["text-align"]=q.value),R}),z=t.ref(!1),N=()=>{u.value===!0||m.value===!0||(z.value=!0)},A=R=>{z.value=R},L=(R,x)=>{let H=x.map(ee=>{if(ee==null)return ee;let Q={...ee};return Reflect.deleteProperty(Q,"text"),Q[i.textKey]=ee.text??"",Reflect.deleteProperty(Q,"value"),Q[i.valueKey]=ee.value??"",Q});C.value=H;let Y=Vn(i,H);d.value=Y.texts,y.value=Y.values,i.valueType==="text"?(p("change",d.value,H),p("update:modelValue",d.value)):i.valueType==="item"?(p("change",H,H),p("update:modelValue",H)):(p("change",y.value,H),p("update:modelValue",y.value)),p("update:pathNodes",H)},O=R=>{let x=R.map(H=>{if(H==null)return H;let Y={...H};return Reflect.deleteProperty(Y,"text"),Y[i.textKey]=H.text??"",Reflect.deleteProperty(Y,"value"),Y[i.valueKey]=H.value??"",Y});p("pathChange",x)},D=R=>{g.value=!0,p("focus",y.value,R)},T=R=>{setTimeout(()=>{g.value=!1},0),p("blur",y.value,R)},M=t.computed(()=>({[`${B}__append`]:!0})),V=t.computed(()=>ge(i.unit)>0),v=t.computed(()=>ge(i.unit)>0&&!g.value),$=t.computed(()=>({hidden:!v.value})),K=R=>{C.value=[],d.value=[],y.value=[],p("update:modelValue",[]),p("change",[],R),p("clear",[]),p("update:pathNodes",[])},W=t.computed(()=>i.clearable&&!u.value&&!m.value),U=t.computed(()=>{let R=y.value&&y.value.length>0;return i.clearable&&R&&g.value}),F=R=>{U.value?K(R):N()},j=t.computed(()=>U.value&&W.value?o:a),P=t.computed(()=>({action:!0}));return()=>{const R={class:E.value,style:I.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:D,onBlur:T};s&&(R.disabled=!0);const x=[],H=t.h("input",R);x.push(H);const Y=[],ee={class:["action-icon"]},Q=t.h(j.value,ee),G={class:P.value,onClick:F},Z=t.h("view",G,{default:()=>[Q]});if(Y.push(Z),V.value){const ct=t.h("view",{class:$.value},[i.unit]);Y.push(ct)}const _={class:M.value},ne=t.h("view",_,{default:()=>Y});x.push(ne);const oe={default:()=>x};oe.label=c.slots.default,oe.prepend=c.slots.prepend,oe.append=c.slots.append,oe.fixedPreTip=c.slots.fixedPreTip,oe.fixedTip=c.slots.fixedTip;let ae={};ae.visible=z.value,ae["onUpdate:visible"]=A,ae.modelValue=y.value,ae.onChange=L,ae.onPathChange=O,ae.options=S.value,ae.title=i.title,ae.lazy=i.lazy,ae.lazyLoad=i.lazyLoad,ae.valueKey=i.valueKey,ae.textKey=i.textKey,ae.childrenKey=i.childrenKey,ae.convertConfig=i.convertConfig;const ye=t.h(r,ae);oe.hide=()=>[ye];const Se=ke(i,me,ue);return t.h(l,Se,oe)}}}}const{componentName:Gd,create:Zd,scope:Jd}=X("cascader-item"),Ro=Zd(Qd(Gd,Jd,Ne,te.CircleClose,te.ArrowRight,An,!1));var je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function We(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Hr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){var l=1e3,o=6e4,a=36e5,r="millisecond",s="second",i="minute",c="hour",u="day",m="week",p="month",h="quarter",k="year",g="date",b="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,d=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,f={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},y=function(O,D,T){var M=String(O);return!M||M.length>=D?O:""+Array(D+1-M.length).join(T)+O},C={s:y,z:function(O){var D=-O.utcOffset(),T=Math.abs(D),M=Math.floor(T/60),V=T%60;return(D<=0?"+":"-")+y(M,2,"0")+":"+y(V,2,"0")},m:function O(D,T){if(D.date()<T.date())return-O(T,D);var M=12*(T.year()-D.year())+(T.month()-D.month()),V=D.clone().add(M,p),v=T-V<0,$=D.clone().add(M+(v?-1:1),p);return+(-(M+(T-V)/(v?V-$:$-V))||0)},a:function(O){return O<0?Math.ceil(O)||0:Math.floor(O)},p:function(O){return{M:p,y:k,w:m,d:u,D:g,h:c,m:i,s,ms:r,Q:h}[O]||String(O||"").toLowerCase().replace(/s$/,"")},u:function(O){return O===void 0}},B="en",E={};E[B]=f;var q=function(O){return O instanceof A},I=function O(D,T,M){var V;if(!D)return B;if(typeof D=="string"){var v=D.toLowerCase();E[v]&&(V=v),T&&(E[v]=T,V=v);var $=D.split("-");if(!V&&$.length>1)return O($[0])}else{var K=D.name;E[K]=D,V=K}return!M&&V&&(B=V),V||!M&&B},z=function(O,D){if(q(O))return O.clone();var T=typeof D=="object"?D:{};return T.date=O,T.args=arguments,new A(T)},N=C;N.l=I,N.i=q,N.w=function(O,D){return z(O,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var A=function(){function O(T){this.$L=I(T.locale,null,!0),this.parse(T)}var D=O.prototype;return D.parse=function(T){this.$d=function(M){var V=M.date,v=M.utc;if(V===null)return new Date(NaN);if(N.u(V))return new Date;if(V instanceof Date)return new Date(V);if(typeof V=="string"&&!/Z$/i.test(V)){var $=V.match(S);if($){var K=$[2]-1||0,W=($[7]||"0").substring(0,3);return v?new Date(Date.UTC($[1],K,$[3]||1,$[4]||0,$[5]||0,$[6]||0,W)):new Date($[1],K,$[3]||1,$[4]||0,$[5]||0,$[6]||0,W)}}return new Date(V)}(T),this.$x=T.x||{},this.init()},D.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},D.$utils=function(){return N},D.isValid=function(){return this.$d.toString()!==b},D.isSame=function(T,M){var V=z(T);return this.startOf(M)<=V&&V<=this.endOf(M)},D.isAfter=function(T,M){return z(T)<this.startOf(M)},D.isBefore=function(T,M){return this.endOf(M)<z(T)},D.$g=function(T,M,V){return N.u(T)?this[M]:this.set(V,T)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(T,M){var V=this,v=!!N.u(M)||M,$=N.p(T),K=function(H,Y){var ee=N.w(V.$u?Date.UTC(V.$y,Y,H):new Date(V.$y,Y,H),V);return v?ee:ee.endOf(u)},W=function(H,Y){return N.w(V.toDate()[H].apply(V.toDate("s"),(v?[0,0,0,0]:[23,59,59,999]).slice(Y)),V)},U=this.$W,F=this.$M,j=this.$D,P="set"+(this.$u?"UTC":"");switch($){case k:return v?K(1,0):K(31,11);case p:return v?K(1,F):K(0,F+1);case m:var R=this.$locale().weekStart||0,x=(U<R?U+7:U)-R;return K(v?j-x:j+(6-x),F);case u:case g:return W(P+"Hours",0);case c:return W(P+"Minutes",1);case i:return W(P+"Seconds",2);case s:return W(P+"Milliseconds",3);default:return this.clone()}},D.endOf=function(T){return this.startOf(T,!1)},D.$set=function(T,M){var V,v=N.p(T),$="set"+(this.$u?"UTC":""),K=(V={},V[u]=$+"Date",V[g]=$+"Date",V[p]=$+"Month",V[k]=$+"FullYear",V[c]=$+"Hours",V[i]=$+"Minutes",V[s]=$+"Seconds",V[r]=$+"Milliseconds",V)[v],W=v===u?this.$D+(M-this.$W):M;if(v===p||v===k){var U=this.clone().set(g,1);U.$d[K](W),U.init(),this.$d=U.set(g,Math.min(this.$D,U.daysInMonth())).$d}else K&&this.$d[K](W);return this.init(),this},D.set=function(T,M){return this.clone().$set(T,M)},D.get=function(T){return this[N.p(T)]()},D.add=function(T,M){var V,v=this;T=Number(T);var $=N.p(M),K=function(F){var j=z(v);return N.w(j.date(j.date()+Math.round(F*T)),v)};if($===p)return this.set(p,this.$M+T);if($===k)return this.set(k,this.$y+T);if($===u)return K(1);if($===m)return K(7);var W=(V={},V[i]=o,V[c]=a,V[s]=l,V)[$]||1,U=this.$d.getTime()+T*W;return N.w(U,this)},D.subtract=function(T,M){return this.add(-1*T,M)},D.format=function(T){var M=this,V=this.$locale();if(!this.isValid())return V.invalidDate||b;var v=T||"YYYY-MM-DDTHH:mm:ssZ",$=N.z(this),K=this.$H,W=this.$m,U=this.$M,F=V.weekdays,j=V.months,P=function(Y,ee,Q,G){return Y&&(Y[ee]||Y(M,v))||Q[ee].slice(0,G)},R=function(Y){return N.s(K%12||12,Y,"0")},x=V.meridiem||function(Y,ee,Q){var G=Y<12?"AM":"PM";return Q?G.toLowerCase():G},H={YY:String(this.$y).slice(-2),YYYY:this.$y,M:U+1,MM:N.s(U+1,2,"0"),MMM:P(V.monthsShort,U,j,3),MMMM:P(j,U),D:this.$D,DD:N.s(this.$D,2,"0"),d:String(this.$W),dd:P(V.weekdaysMin,this.$W,F,2),ddd:P(V.weekdaysShort,this.$W,F,3),dddd:F[this.$W],H:String(K),HH:N.s(K,2,"0"),h:R(1),hh:R(2),a:x(K,W,!0),A:x(K,W,!1),m:String(W),mm:N.s(W,2,"0"),s:String(this.$s),ss:N.s(this.$s,2,"0"),SSS:N.s(this.$ms,3,"0"),Z:$};return v.replace(d,function(Y,ee){return ee||H[Y]||$.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(T,M,V){var v,$=N.p(M),K=z(T),W=(K.utcOffset()-this.utcOffset())*o,U=this-K,F=N.m(this,K);return F=(v={},v[k]=F/12,v[p]=F,v[h]=F/3,v[m]=(U-W)/6048e5,v[u]=(U-W)/864e5,v[c]=U/a,v[i]=U/o,v[s]=U/l,v)[$]||U,V?F:N.a(F)},D.daysInMonth=function(){return this.endOf(p).$D},D.$locale=function(){return E[this.$L]},D.locale=function(T,M){if(!T)return this.$L;var V=this.clone(),v=I(T,M,!0);return v&&(V.$L=v),V},D.clone=function(){return N.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},O}(),L=A.prototype;return z.prototype=L,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",u],["$M",p],["$y",k],["$D",g]].forEach(function(O){L[O[1]]=function(D){return this.$g(D,O[0],O[1])}}),z.extend=function(O,D){return O.$i||(O(D,A,z),O.$i=!0),z},z.locale=I,z.isDayjs=q,z.unix=function(O){return z(1e3*O)},z.en=E[B],z.Ls=E,z.p={},z})})(Hr);var _d=Hr.exports;const Pe=We(_d);var jr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){var l={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(b){return(b=+b)+(b>68?1900:2e3)},u=function(b){return function(S){this[b]=+S}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var d=S.match(/([+-]|\d\d)/g),f=60*d[1]+(+d[2]||0);return f===0?0:d[0]==="+"?-f:f}(b)}],p=function(b){var S=i[b];return S&&(S.indexOf?S:S.s.concat(S.f))},h=function(b,S){var d,f=i.meridiem;if(f){for(var y=1;y<=24;y+=1)if(b.indexOf(f(y,0,S))>-1){d=y>12;break}}else d=b===(S?"pm":"PM");return d},k={A:[s,function(b){this.afternoon=h(b,!1)}],a:[s,function(b){this.afternoon=h(b,!0)}],S:[/\d/,function(b){this.milliseconds=100*+b}],SS:[a,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[r,u("seconds")],ss:[r,u("seconds")],m:[r,u("minutes")],mm:[r,u("minutes")],H:[r,u("hours")],h:[r,u("hours")],HH:[r,u("hours")],hh:[r,u("hours")],D:[r,u("day")],DD:[a,u("day")],Do:[s,function(b){var S=i.ordinal,d=b.match(/\d+/);if(this.day=d[0],S)for(var f=1;f<=31;f+=1)S(f).replace(/\[|\]/g,"")===b&&(this.day=f)}],M:[r,u("month")],MM:[a,u("month")],MMM:[s,function(b){var S=p("months"),d=(p("monthsShort")||S.map(function(f){return f.slice(0,3)})).indexOf(b)+1;if(d<1)throw new Error;this.month=d%12||d}],MMMM:[s,function(b){var S=p("months").indexOf(b)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,u("year")],YY:[a,function(b){this.year=c(b)}],YYYY:[/\d{4}/,u("year")],Z:m,ZZ:m};function g(b){var S,d;S=b,d=i&&i.formats;for(var f=(b=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(z,N,A){var L=A&&A.toUpperCase();return N||d[A]||l[A]||d[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(O,D,T){return D||T.slice(1)})})).match(o),y=f.length,C=0;C<y;C+=1){var B=f[C],E=k[B],q=E&&E[0],I=E&&E[1];f[C]=I?{regex:q,parser:I}:B.replace(/^\[|\]$/g,"")}return function(z){for(var N={},A=0,L=0;A<y;A+=1){var O=f[A];if(typeof O=="string")L+=O.length;else{var D=O.regex,T=O.parser,M=z.slice(L),V=D.exec(M)[0];T.call(N,V),z=z.replace(V,"")}}return function(v){var $=v.afternoon;if($!==void 0){var K=v.hours;$?K<12&&(v.hours+=12):K===12&&(v.hours=0),delete v.afternoon}}(N),N}}return function(b,S,d){d.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(c=b.parseTwoDigitYear);var f=S.prototype,y=f.parse;f.parse=function(C){var B=C.date,E=C.utc,q=C.args;this.$u=E;var I=q[1];if(typeof I=="string"){var z=q[2]===!0,N=q[3]===!0,A=z||N,L=q[2];N&&(L=q[2]),i=this.$locale(),!z&&L&&(i=d.Ls[L]),this.$d=function(M,V,v){try{if(["x","X"].indexOf(V)>-1)return new Date((V==="X"?1e3:1)*M);var $=g(V)(M),K=$.year,W=$.month,U=$.day,F=$.hours,j=$.minutes,P=$.seconds,R=$.milliseconds,x=$.zone,H=new Date,Y=U||(K||W?1:H.getDate()),ee=K||H.getFullYear(),Q=0;K&&!W||(Q=W>0?W-1:H.getMonth());var G=F||0,Z=j||0,_=P||0,ne=R||0;return x?new Date(Date.UTC(ee,Q,Y,G,Z,_,ne+60*x.offset*1e3)):v?new Date(Date.UTC(ee,Q,Y,G,Z,_,ne)):new Date(ee,Q,Y,G,Z,_,ne)}catch{return new Date("")}}(B,I,E),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),A&&B!=this.format(I)&&(this.$d=new Date("")),i={}}else if(I instanceof Array)for(var O=I.length,D=1;D<=O;D+=1){q[1]=I[D-1];var T=d.apply(this,q);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}D===O&&(this.$d=new Date(""))}else y.call(this,C)}}})})(jr);var eu=jr.exports;const tu=We(eu);var Wr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){return function(l,o,a){var r=o.prototype,s=r.format;a.en.ordinal=function(i){var c=["th","st","nd","rd"],u=i%100;return"["+i+(c[(u-20)%10]||c[u]||c[0])+"]"},r.format=function(i){var c=this,u=this.$locale();if(!this.isValid())return s.bind(this)(i);var m=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(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return u.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return u.ordinal(c.week(),"W");case"w":case"ww":return m.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return m.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return m.s(String(c.$H===0?24:c.$H),h==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return h}});return s.bind(this)(p)}}})})(Wr);var nu=Wr.exports;const ou=We(nu);var Yr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){return function(l,o,a){var r=o.prototype,s=function(p){return p&&(p.indexOf?p:p.s)},i=function(p,h,k,g,b){var S=p.name?p:p.$locale(),d=s(S[h]),f=s(S[k]),y=d||f.map(function(B){return B.slice(0,g)});if(!b)return y;var C=S.weekStart;return y.map(function(B,E){return y[(E+(C||0))%7]})},c=function(){return a.Ls[a.locale()]},u=function(p,h){return p.formats[h]||function(k){return k.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,b,S){return b||S.slice(1)})}(p.formats[h.toUpperCase()])},m=function(){var p=this;return{months:function(h){return h?h.format("MMMM"):i(p,"months")},monthsShort:function(h){return h?h.format("MMM"):i(p,"monthsShort","months",3)},firstDayOfWeek:function(){return p.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(p,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(p,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(p,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return u(p.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return m.bind(this)()},a.localeData=function(){var p=c();return{firstDayOfWeek:function(){return p.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 u(p,h)},meridiem:p.meridiem,ordinal:p.ordinal}},a.months=function(){return i(c(),"months")},a.monthsShort=function(){return i(c(),"monthsShort","months",3)},a.weekdays=function(p){return i(c(),"weekdays",null,null,p)},a.weekdaysShort=function(p){return i(c(),"weekdaysShort","weekdays",3,p)},a.weekdaysMin=function(p){return i(c(),"weekdaysMin","weekdays",2,p)}}})})(Yr);var lu=Yr.exports;const au=We(lu);var Xr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){var l="week",o="year";return function(a,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(o).add(1,o).date(u),p=s(this).endOf(l);if(m.isBefore(p))return 1}var h=s(this).startOf(o).date(u).startOf(l).subtract(1,"millisecond"),k=this.diff(h,l,!0);return k<0?s(this).startOf("week").week():Math.ceil(k)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Xr);var ru=Xr.exports;const su=We(ru);var Qr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){return function(l,o){o.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}}})})(Qr);var iu=Qr.exports;const cu=We(iu);var Gr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){return function(l,o,a){o.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")}}})})(Gr);var du=Gr.exports;const uu=We(du);var Zr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){return function(l,o){o.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(Zr);var fu=Zr.exports;const mu=We(fu);var Jr={exports:{}};(function(e,n){(function(l,o){e.exports=o()})(je,function(){return function(l,o){o.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(Jr);var pu=Jr.exports;const hu=We(pu);Pe.extend(au),Pe.extend(ou),Pe.extend(tu),Pe.extend(su),Pe.extend(cu),Pe.extend(uu),Pe.extend(mu),Pe.extend(hu);const le={format(e,n){return Pe(e).format(n)},parser(e,n){return Pe(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,l){const a=new Date(e+"/"+n+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const l=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[l,o,a].join(n)},getDay(e,n){e=e||0;let l=n??new Date;const o=e*(1e3*60*60*24);return l=new Date(l.getTime()+o),this.date2Str(l)},compareDate(e,n){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(l>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,l==o},getMonthWeek:function(e,n,l,o=0){const a=new Date(Number(e),parseInt(n)-1,Number(l));let r=a.getDay(),s=a.getDate(),i=6-r;return o!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,l,o=0){const a=new Date(Number(e),parseInt(n)-1,Number(l)),r=new Date(Number(e),0,1),s=Math.round((a.valueOf()-r.valueOf())/864e5);let i=a.getDay(),c=6-i;return o!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,n,l,o=0){const a=new Date(Number(e),parseInt(n)-1,Number(l)),r=a.getTime();let s=a.getDay();if(o===0){const c=r-s*864e5,u=r+(6-s)*864e5,m=this.date2Str(new Date(c)),p=this.date2Str(new Date(u));return[m,p]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,u=r+(7-s)*i,m=this.date2Str(new Date(c)),p=this.date2Str(new Date(u));return[m,p]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=le.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=le.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,l){const o=new Date(new Date(n).setDate(n.getDate()+l)),a=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s},inScope4Month(e,n,l){const o=new Date(new Date(n).setMonth(n.getMonth()+l)),a=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s}},_r=new Date().getFullYear(),Fo={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"},Tn=(e,n,l)=>{let o;if(Oe(n)?o=n:typeof n=="string"&&ge(n)>0?o=le.parser(n,l):o=new Date,o.toString()==="Invalid Date")return null;let a=Math.max(o.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Oo=(e,n,l)=>{Oe(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),le.format(new Date(o),l)};let vo={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(_r-10,0,1),validator:Oe},maxDate:{type:Date,default:()=>new Date(_r+10,11,31),validator:Oe},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:gu,scope:yu}=X("date-picker"),ku=gu({components:{[ht.name]:ht},props:{...vo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:l}=se.useFoxI18n(yu),o={day:l("day"),year:l("year"),month:l("month"),hour:l("hour"),minute:l("minute"),seconds:l("seconds")},a=t.ref(!1);t.watch(()=>e.visible,d=>{a.value=d});function r(d,f){return new Date(d,f,0).getDate()}const s=(d,f)=>{const y=e[`${d}Date`],C=y.getFullYear();let B=1,E=1,q=0,I=0;d==="max"&&(B=12,E=r(f.getFullYear(),f.getMonth()+1),q=23,I=59);const z=I;return f.getFullYear()===C&&(B=y.getMonth()+1,f.getMonth()+1===B&&(E=y.getDate(),f.getDate()===E&&(q=y.getHours(),f.getHours()===q&&(I=y.getMinutes())))),{[`${d}Year`]:C,[`${d}Month`]:B,[`${d}Date`]:E,[`${d}Hour`]:q,[`${d}Minute`]:I,[`${d}Seconds`]:z}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:d,maxDate:f,maxMonth:y,maxHour:C,maxMinute:B,maxSeconds:E}=s("max",h.value),{minYear:q,minDate:I,minMonth:z,minHour:N,minMinute:A,minSeconds:L}=s("min",h.value);let O=[{type:"year",range:[q,d]},{type:"month",range:[z,y]},{type:"day",range:[I,f]},{type:"hour",range:[N,C]},{type:"minute",range:[A,B]},{type:"seconds",range:[L,E]}];switch(e.type){case"date":O=O.slice(0,3);break;case"datetime":O=O.slice(0,5);break;case"time":O=O.slice(3,6);break;case"year-month":O=O.slice(0,2);break;case"month-day":O=O.slice(1,3);break;case"datehour":O=O.slice(0,4);break;case"hour-minute":O=O.slice(3,5);break}return O}),c=(d,f,y)=>{if(!(f>d))return null;const C=[];for(;d<=f;)e.isShowChinese?C.push({text:d+o[y],value:d}):C.push({text:`${d}`,value:d}),y==="minute"?d+=e.minuteStep:d++;return C},u=t.computed(()=>{let d=[];return i.value.forEach(f=>{let y=c(f.range[0],f.range[1],f.type);y&&d.push(y)}),d}),m=(d,f)=>d==="year"?f.getFullYear():d==="month"?f.getMonth()+1:d==="day"?f.getDate():d==="hour"?f.getHours():d==="minute"?f.getMinutes():d==="seconds"?f.getSeconds():0,p=t.ref(),h=t.ref(null);t.watchEffect(()=>{let d,f=e.modelValue;if(typeof f=="string"?f.length==0?d=new Date:e.valueFormat?d=Tn(e,e.modelValue,e.valueFormat):d=Tn(e,f,Fo[e.type]):Oe(f)?d=f:d=new Date,!!d&&(!h.value||d.getTime()!==h.value.getTime())){h.value=d;let y=[];i.value.forEach(C=>{let B=m(C.type,d);y.push(B)}),p.value=y}});const k=d=>{if(e.type==="date"){let f=d;h.value=new Date(f[0],f[1]-1,Math.min(f[2],r(f[0],f[1])))}else if(e.type==="datetime"){let f=d;h.value=new Date(f[0],f[1]-1,Math.min(f[2],r(f[0],f[1])),f[3],f[4])}else if(e.type==="time"){let f=d,y=h.value??new Date,C=new Date(y.getFullYear(),y.getMonth(),y.getDate(),f[0],f[1],f[2]);h.value=C}else if(e.type==="year-month"){let f=d,y=new Date(f[0],f[1]-1);h.value=y}else if(e.type==="month-day"){let f=d,y=h.value??new Date,C=new Date(y.getFullYear(),f[0]-1,f[1]);h.value=C}else if(e.type==="datehour"){let f=d;h.value=new Date(f[0],f[1]-1,Math.min(f[2],r(f[0],f[1])),f[3])}else if(e.type==="hour-minute"){let f=d,y=h.value??new Date,C=new Date(y.getFullYear(),y.getMonth(),y.getDate(),f[0],f[1]);h.value=C}p.value=d};return{columns:u,dateIndexs:p,show:a,onClose:()=>{a.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:d=>{k(d),a.value=!1;let f=h.value??new Date;if(e.valueFormat){let y=Oo(e,f,e.valueFormat);n("update:modelValue",y)}else n("update:modelValue",f);n("update:visible",!1),n("confirm",d)},onClear:()=>{n("clear")}}}});function bu(e,n,l,o,a,r){const s=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const $n=J(ku,[["render",bu]]);function Su(e){let n=e.format;if(!n){let l=e.type??"date";n=Fo[l]}return n}function Cu(e,n,l,o,a,r,s=!1){return{props:{...ue,...me,...vo,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const u=Ve(t.computed(()=>i.disabled)),m=De(t.computed(()=>i.readonly)),{emitEvent:p}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),k=h(i,["placeholder"]),g=t.ref(!1),S=qe(i,"modelValue",F=>F==null?null:typeof F=="string"?F.length==0?null:i.valueFormat?Tn(i,F,i.valueFormat)??F:Tn(i,F,Fo[i.type])??F:Oe(F)?F:null),d=t.computed(()=>{if(!S.value)return"";const F=Su(i);return Oo(i,S.value,F)}),f="fox-input-item",y=t.computed(()=>({[f]:!0,[`${f}__disabled`]:u.value})),C=Ae(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const F={};return C.value&&(F["text-align"]=C.value),F}),E=t.ref(!1),q=()=>{E.value=!0},I=()=>{E.value=!1};c.expose({showPicker:q,hidePicker:I});const z=F=>{E.value=F},N=F=>{if(S.value=F,i.valueFormat){let j=Oo(i,F,i.valueFormat);p("update:modelValue",j,{}),p("change",j,{})}else p("update:modelValue",F,{}),p("change",F,{})},A=F=>{let P=F.target.value;g.value=!0,p("focus",P,F)},L=F=>{setTimeout(()=>{g.value=!1},0);let P=F.target.value;i.maxLength&&P.length>Number(i.maxLength)&&(P=P.slice(0,Number(i.maxLength))),p("blur",P,F)},O=t.computed(()=>({[`${f}__append`]:!0})),D=t.computed(()=>ge(i.unit)>0),T=t.computed(()=>ge(i.unit)>0&&!g.value),M=t.computed(()=>({hidden:!T.value})),V=F=>{S.value="",p("update:modelValue","",F),p("change","",F),p("clear",""),I()},v=t.computed(()=>i.clearable&&!u.value&&!m.value),$=t.computed(()=>{let F=ge(S.value)>0;return i.clearable&&F&&g.value}),K=F=>{$.value?V(F):q()},W=t.computed(()=>$.value&&v.value?o:a),U=t.computed(()=>({action:!0}));return()=>{const F={class:y.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:q,onFocus:A,onBlur:L};s&&(F.disabled=!0);const j=[],P=t.h("input",F);j.push(P);const R=[],x={class:["action-icon"]},H=t.h(W.value,x),Y={class:U.value,onClick:K},ee=t.h("view",Y,{default:()=>[H]});if(R.push(ee),D.value){const Se=t.h("view",{class:M.value},[i.unit]);R.push(Se)}const Q={class:O.value},G=t.h("view",Q,{default:()=>R});j.push(G);const Z={default:()=>j};Z.label=c.slots.default,Z.prepend=c.slots.prepend,Z.append=c.slots.append,Z.fixedPreTip=c.slots.fixedPreTip,Z.fixedTip=c.slots.fixedTip;const _=ke(i,vo);_.valueFormat=null,_.disabled=!1,_.readonly=u.value||m.value,_.visible=E.value,_["onUpdate:visible"]=z,_.modelValue=S.value,_["onUpdate:modelValue"]=N,_.onClear=V;const ne={};if(c.slots.top){const Se=c.slots.top();ne.top=()=>Se}if(c.slots.bottom){const Se=c.slots.bottom();ne.default=()=>Se}const oe=t.h(r,_,ne);Z.hide=()=>[oe];const ae=ke(i,me,ue);return t.h(l,ae,Z)}}}}const{create:wu,componentName:Nu,scope:Bu}=X("date-item"),Ko=wu(Cu(Nu,Bu,Ne,te.CircleClose,te.Date,$n,!1)),Au=39,Vu=64,{create:Tu,scope:$u}=X("calendar-pane"),Eu=Tu({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:le.getDay(0)},endDate:{type:String,default:le.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:l}){const{toLocaleRefs:o,t:a}=se.useFoxI18n($u),r=o(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(a("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),u=t.ref(null),m=t.ref(null),p=t.ref(null),h=t.ref(0),k=t.computed(()=>d.monthsData.slice(d.defaultRange[0],d.defaultRange[1])),g=t.computed(()=>l.btn),b=t.computed(()=>l["top-info"]),S=t.computed(()=>l["bottom-info"]),d=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),f=x=>x.split("-"),y=x=>le.isEqual(d.currDate[0],x),C=x=>le.isEqual(d.currDate[1],x),B=x=>d.currDate?.length>0?d.currDate?.some(H=>le.isEqual(H,x)):!1,E=(x,H)=>H.curData[0]+"-"+H.curData[1]+"-"+le.getNumTwoBit(+x.day),q=(x,H)=>{const Y=E(x,H),{type:ee}=e;return x.type=="curr"?le.isEqual(d.currDate,Y)||(ee=="range"||ee=="week")&&(y(Y)||C(Y))||ee=="multiple"&&B(Y)?`${d.dayPrefix}--active`:d.propStartDate&&le.compareDate(Y,d.propStartDate)||d.propEndDate&&le.compareDate(d.propEndDate,Y)?`${d.dayPrefix}--disabled`:(ee=="range"||ee=="week")&&Array.isArray(d.currDate)&&Object.values(d.currDate).length==2&&le.compareDate(d.currDate[0],Y)&&le.compareDate(Y,d.currDate[1])?`${d.dayPrefix}--choose`:null:`${d.dayPrefix}--disabled`},I=()=>{const{type:x}=e;if(x=="range"&&d.chooseData.length==2||x!="range"){let H=d.chooseData.slice(0);x=="week"&&(H={weekDate:[N(d.chooseData[0]),N(d.chooseData[1])]}),n("choose",H),e.poppable&&n("update")}},z=(x,H,Y=!1)=>{if(q(x,H)!=`${d.dayPrefix}--disabled`){const{type:ee}=e;let[Q,G]=H.curData,Z=[...H.curData];if(Z[2]=le.getNumTwoBit(Number(x.day)),Z[3]=`${Z[0]}-${Z[1]}-${Z[2]}`,Z[4]=le.getWhatDay(+Z[0],+Z[1],+Z[2]),ee=="multiple")if(d.currDate?.length>0){let _;d.currDate?.forEach((ne,oe)=>{ne==Z[3]&&(_=oe)}),Y?d.chooseData.push([...Z]):_!==void 0?(d.currDate.splice(_,1),d.chooseData.splice(_,1)):(d.currDate.push(Z[3]),d.chooseData.push([...Z]))}else d.currDate=[Z[3]],d.chooseData=[[...Z]];else if(ee=="range"){let _=Object.values(d.currDate).length;_==2||_==0?d.currDate=[Z[3]]:le.compareDate(d.currDate[0],Z[3])?Array.isArray(d.currDate)&&d.currDate.push(Z[3]):Array.isArray(d.currDate)&&d.currDate.unshift(Z[3]),d.chooseData.length==2||!d.chooseData.length?d.chooseData=[[...Z]]:le.compareDate(d.chooseData[0][3],Z[3])?d.chooseData=[...d.chooseData,[...Z]]:d.chooseData=[[...Z],...d.chooseData]}else if(ee=="week"){let _=le.getWeekDate(Q,G,x.day,e.firstDayOfWeek);d.propStartDate&&le.compareDate(_[0],d.propStartDate)&&_.splice(0,1,d.propStartDate),d.propEndDate&&le.compareDate(d.propEndDate,_[1])&&_.splice(1,1,d.propEndDate),d.currDate=_,d.chooseData=[le.formatResultDate(_[0]),le.formatResultDate(_[1])]}else d.currDate=Z[3],d.chooseData=[...Z];if(!Y){let _=d.chooseData;ee=="week"&&(_={weekDate:[N(d.chooseData[0]),N(d.chooseData[1])]}),n("select",_),(e.isAutoBackFill||!e.poppable)&&I()}}},N=x=>{let[H,Y,ee]=x;return{date:x,monthWeekNum:le.getMonthWeek(H,Y,ee,e.firstDayOfWeek),yearWeekNum:le.getYearWeek(H,Y,ee,e.firstDayOfWeek)}},A=x=>{const H=x=="prev"?d.monthsData[0]:d.monthsData[d.monthsData.length-1];let Y=parseInt(H.curData[0]),ee=parseInt(H.curData[1].toString().replace(/^0/,""));switch(x){case"prev":ee==1&&(Y-=1),ee=ee==1?12:--ee;break;case"next":ee==12&&(Y+=1),ee=ee==12?1:++ee;break}return[Y+"",le.getNumTwoBit(ee),le.getMonthDays(String(Y),String(ee))+""]},L=(x,H,Y)=>{let{year:ee,month:Q}=Y;return H=="prev"&&x>=7&&(x-=7),Array.from(Array(x),(G,Z)=>({day:String(Z+1),type:H,year:ee,month:Q}))},O=(x,H,Y,ee)=>{x=x-e.firstDayOfWeek;let{year:Q,month:G}=Y;return H=="prev"&&x>=7&&(x-=7),Array.from(Array(ee),(_,ne)=>({day:String(ne+1),type:H,year:Q,month:G})).slice(ee-x)},D=(x,H)=>{const Y=le.getMonthPreDay(+x[0],+x[1]);let ee=Number(x[1])-1,Q=Number(x[0]);ee<=0&&(ee=12,Q+=1);const G=le.getMonthDays(String(x[0]),String(x[1])),Z=le.getMonthDays(Q+"",ee+""),_={year:x[0],month:x[1]},ne={curData:x,title:a("monthTitle",{year:_.year,month:_.month}),monthData:[...O(Y,"prev",{month:String(ee),year:String(Q)},Z),...L(G,"curr",_)],cssHeight:0,cssScrollHeight:0},oe=ne.monthData.length>35?6:5;ne.cssHeight=Au+Vu*oe;let ae=0;d.monthsData.length>0&&(ae=d.monthsData[d.monthsData.length-1].cssScrollHeight+d.monthsData[d.monthsData.length-1].cssHeight),ne.cssScrollHeight=ae,H=="next"?(!d.endData||!le.compareDate(`${d.endData[0]}-${d.endData[1]}-${le.getMonthDays(d.endData[0],d.endData[1])}`,`${x[0]}-${x[1]}-${x[2]}`))&&d.monthsData.push(ne):!d.startData||!le.compareDate(`${x[0]}-${x[1]}-${x[2]}`,`${d.startData[0]}-${d.startData[1]}-01`)?d.monthsData.unshift(ne):d.unLoadPrev=!0},T=()=>{let x=e.startDate?e.startDate:le.getDay(0),H=e.endDate?e.endDate:le.getDay(365);d.propStartDate=x,d.propEndDate=H,d.startData=f(x),d.endData=f(H),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(d.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const Y={year:Number(d.startData[0]),month:Number(d.startData[1])},ee={year:Number(d.endData[0]),month:Number(d.endData[1])};let Q=ee.month-Y.month;ee.year-Y.year>0&&(Q=Q+12*(ee.year-Y.year)),Q<=0&&(Q=1),D(d.startData,"next");let G=1;do D(A("next"),"next");while(G++<Q);if(d.monthsNum=Q,e.type=="range"&&Array.isArray(d.currDate))d.currDate.length>0&&(x&&le.compareDate(d.currDate[0],x)&&d.currDate.splice(0,1,x),H&&le.compareDate(H,d.currDate[1])&&d.currDate.splice(1,1,H),d.defaultData=[...f(d.currDate[0]),...f(d.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(d.currDate)){if(d.currDate.length>0){let Z=[],_={};d.currDate.forEach(ne=>{x&&!le.compareDate(ne,x)&&H&&!le.compareDate(H,ne)&&(Object.hasOwnProperty.call(_,ne)||(Z.push(ne),_[ne]=ne))}),d.currDate=[...Z],d.defaultData=[...f(Z[0])]}}else if(e.type=="week"&&Array.isArray(d.currDate)){if(d.currDate.length>0){let[Z,_,ne]=f(d.currDate[0]),oe=le.getWeekDate(Z,_,ne,e.firstDayOfWeek);d.currDate=oe,x&&le.compareDate(d.currDate[0],x)&&d.currDate.splice(0,1,x),H&&le.compareDate(H,d.currDate[1])&&d.currDate.splice(1,1,H),d.defaultData=[...f(d.currDate[0]),...f(d.currDate[1])]}}else d.currDate&&(x&&le.compareDate(d.currDate,x)?d.currDate=x:H&&!le.compareDate(d.currDate,H)&&(d.currDate=H),d.defaultData=[...f(d.currDate)])};$e({scrollToDate:x=>{le.compareDate(x,d.propStartDate)?x=d.propStartDate:le.compareDate(x,d.propEndDate)||(x=d.propEndDate);let H=f(x);d.monthsData.forEach((Y,ee)=>{if(Y.title==a("monthTitle",{year:H[0],month:H[1]})&&c.value){let Q=d.monthsData[ee].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let G=0,Z=setInterval(()=>{if(G++,c.value){let _=Q/10;c.value.scrollTop=c.value.scrollTop+_}G>=10&&(clearInterval(Z),c.value&&(c.value.scrollTop=d.monthsData[ee].cssScrollHeight))},40)}else c.value.scrollTop=d.monthsData[ee].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)},doLayout:()=>{let x=0,H=0;d.defaultData.length>0&&d.monthsData.forEach((Q,G)=>{Q.title==a("monthTitle",{year:d.defaultData[0],month:d.defaultData[1]})&&(x=G),(e.type=="range"||e.type=="week")&&Q.title==a("monthTitle",{year:d.defaultData[3],month:d.defaultData[4]})&&(H=G)}),$(d.monthsNum,x),d.currentIndex=x,d.yearMonthTitle=d.monthsData[d.currentIndex].title,d.defaultData.length>0&&(d.isRange?(z({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0),z({day:d.defaultData[5],type:"curr"},d.monthsData[H],!0)):e.type=="week"?z({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0):e.type=="multiple"?[...d.currDate].forEach(Q=>{let G=f(Q),Z=d.currentIndex;d.monthsData.forEach((_,ne)=>{_.title==a("monthTitle",{year:G[0],month:G[1]})&&(Z=ne)}),z({day:G[2],type:"curr"},d.monthsData[Z],!0)}):z({day:d.defaultData[2],type:"curr"},d.monthsData[d.currentIndex],!0));let Y=d.monthsData[d.monthsData.length-1],ee=Y.cssHeight+Y.cssScrollHeight;Ye(()=>{c?.value&&u?.value&&p?.value&&(h.value=c.value.clientHeight,u.value.style.height=`${ee}px`,c.value.scrollTop=d.monthsData[d.currentIndex].cssScrollHeight)}),d.avgHeight=Math.floor(ee/(d.monthsNum+1))}});const $=(x,H)=>{x>=3?H>0&&H<x?d.defaultRange=[H-1,H+3]:H==0?d.defaultRange=[H,H+4]:H==x&&(d.defaultRange=[H-2,H+2]):d.defaultRange=[0,x+2];let Y=d.monthsData[d.defaultRange[0]].cssScrollHeight;d.translateY=Y},K=(x,H)=>(e.type=="range"||e.type=="week")&&x.type=="curr"&&q(x,H)=="fox-calendar__day--active",W=(x,H)=>K(x,H)&&y(E(x,H)),U=(x,H)=>d.currDate.length>=2&&C(E(x,H))?K(x,H):!1,F=()=>{if(d.currDate.length>=2)return le.isEqual(d.currDate[0],d.currDate[1])},j=x=>{const H=`${x.year}-${x.month}-${Number(x.day)<10?"0"+x.day:x.day}`;return le.isEqual(H,le.date2Str(new Date))},P=x=>{if(d.monthsData.length<=1)return;const H=x.target.scrollTop;let Y=Math.floor(H/d.avgHeight);if(Y==0)H>=d.monthsData[Y+1].cssScrollHeight&&(Y+=1);else if(Y>0&&Y<d.monthsNum-1)H>=d.monthsData[Y+1].cssScrollHeight&&(Y+=1),H<d.monthsData[Y].cssScrollHeight&&(Y-=1);else{const ee=Math.round(H+h.value);ee<d.monthsData[Y].cssScrollHeight+d.monthsData[Y].cssHeight&&H>d.monthsData[Y-1].cssScrollHeight&&(Y-=1),Y+1<=d.monthsNum&&ee>=d.monthsData[Y+1].cssScrollHeight+d.monthsData[Y+1].cssHeight&&(Y+=1),Y>=1&&H<d.monthsData[Y-1].cssScrollHeight&&(Y-=1)}d.currentIndex!==Y&&(d.currentIndex=Y,$(d.monthsNum,Y)),d.yearMonthTitle=d.monthsData[Y].title},R=()=>{d.chooseData.splice(0),d.monthsData.splice(0),T()};return T(),t.watch(()=>e.defaultValue,x=>{x&&e.poppable&&R()}),{weeks:i,compConthsData:k,showTopBtn:g,topInfo:b,bottomInfo:S,rangeTip:F,mothsViewScroll:P,getClass:q,isStartTip:W,isEndTip:U,chooseDay:z,isCurrDay:j,confirm:I,months:c,...t.toRefs(d),...t.toRefs(e),...r,monthsPanel:u,weeksPanel:m,viewArea:p}}}),Du={class:"fox-calendar__header"},Iu={key:0,class:"fox-calendar__header-title"},qu={key:1,class:"fox-calendar__header-slot"},Mu={key:2,class:"fox-calendar__header-subtitle"},zu={class:"fox-calendar__weekdays",ref:"weeksPanel"},xu={class:"fox-calendar__panel",ref:"monthsPanel"},Lu={class:"fox-calendar__month-title"},Pu={class:"fox-calendar__days"},Ru=["onClick"],Fu={class:"fox-calendar__day-value"},Ou={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},vu={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Ku={key:2,class:"fox-calendar__day-tips--curr"},Uu={key:4,class:"fox-calendar__day-tip"},Hu={key:0,class:"fox-calendar__footer"};function ju(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",Du,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Iu,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",qu,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Mu,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",zu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:i},t.toDisplayString(s),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",xu,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:i},[t.createElementVNode("view",Lu,t.toDisplayString(s.title),1),t.createElementVNode("view",Pu,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:m=>e.chooseDay(c,s)},[t.createElementVNode("view",Fu,[t.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[t.createTextVNode(t.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Ou,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",vu,[t.renderSlot(e.$slots,"bottom-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",Ku,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,s)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,s)?(t.openBlock(),t.createElementBlock("view",Uu,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,Ru))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Hu,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const es=J(Eu,[["render",ju]]),Wu=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Uo={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6}},{create:Yu}=X("calendar"),Xu=Yu({components:{[es.name]:es,[ce.name]:ce},props:{...Uo},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:l}){const o=t.computed(()=>l.btn),a=t.computed(()=>l["top-info"]),r=t.computed(()=>l.day),s=t.computed(()=>l["bottom-info"]),i=t.ref(null),c=b=>{i.value?.scrollToDate(b)},u=()=>{i.value?.initPosition()};t.watch(()=>e.visible,b=>{b&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),$e({scrollToDate:c,initPosition:u});const m=()=>{n("update:visible",!1)},p=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{p()},update:m,close:p,select:b=>{n("select",b)},choose:b=>{p(),n("choose",b)},calendarRef:i,showTopBtn:o,topInfo:a,dayInfo:r,bottomInfo:s}}});function Qu(e,n,l,o,a,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:{height:"85vh"}}),{default:t.withCtx(()=>[t.createVNode(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const En=J(Xu,[["render",Qu]]),Ho=(e,n)=>{let l;return Oe(e)?l=e:typeof e=="string"&&ge(e)>0?l=le.parser(e,n):l=new Date,l},gt=(e,n,l)=>(Oe(n)||(n=new Date),le.format(n,l)),yt=e=>{let n=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,o=`${e.getDate()}`,a=le.date2Str(e),r=le.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,l,o,a,r]};function Gu(e,n,l,o,{CloseIcon:a,MarkIcon:r},s=!1){return{props:{...ue,...me,...Uo,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const u=Ve(t.computed(()=>i.disabled)),m=De(t.computed(()=>i.readonly)),{emitEvent:p}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),k=h(i,["placeholder"]),g=t.ref(!1),b=t.computed(()=>i.type==="range"),S=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),d=()=>{S.startDate!==null&&(S.startDate=null,S.endDate=null,S.startArray=[],S.endArray=[])},f=(P,R="one",x="YYYY-MM-DD")=>{if(Wu(P)){d();return}if(b.value&&Array.isArray(P)&&P.length==2){let H,Y;typeof P[0]=="string"?(H=Ho(P[0],x),Y=Ho(P[1],x)):(H=P[0],Y=P[1]);let ee=yt(H),Q=yt(Y);(S.startDate===null||S.startDate.getTime()!==H.getTime()||S.endDate?.getTime()!==Y.getTime())&&(S.startDate=H,S.startArray=ee,S.endDate=Y,S.endArray=Q)}else{let H;typeof P=="string"?H=Ho(P,x):H=P;let Y=yt(H);(S.startDate===null||S.startDate.getTime()!==H.getTime())&&(S.startDate=H,S.startArray=Y)}};f(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,P=>{f(P,i.type,i.valueFormat)});const y=t.computed(()=>{if(S.startDate===null)return"";if(b.value){let P=gt(i,S.startDate,i.format),R=gt(i,S.endDate,i.format);return`${P} ${i.rangeSeparator} ${R}`}else{let P=gt(i,S.startDate,i.format);return i.showWeek&&(P=`${P} ${S.startArray[4]}`),P}}),C=t.computed(()=>{if(S.startDate===null)return null;if(b.value){let P=le.date2Str(S.startDate),R=le.date2Str(S.endDate??new Date);return[P,R]}else return le.date2Str(S.startDate)}),B="fox-input-item",E=t.computed(()=>({[B]:!0,[`${B}__disabled`]:u.value})),q=Ae(t.computed(()=>i.textAlign),"textAlign"),I=t.computed(()=>{const P={};return q.value&&(P["text-align"]=q.value),P}),z=t.ref(!1),N=()=>{m.value||u.value||(z.value=!0)},A=P=>{z.value=P},L=P=>{if(P){if(b.value&&Array.isArray(P)){let R=P[0],x=pe(R[0]),H=pe(R[1]),Y=pe(R[2]),ee=new Date(x,H-1,Y),Q=P[1];x=pe(Q[0]),H=pe(Q[1]),Y=pe(Q[2]);let G=new Date(x,H-1,Y);if(S.startDate=ee,S.startArray=yt(ee),S.endDate=G,S.endArray=yt(G),i.valueFormat){let Z=gt(i,ee,i.valueFormat),_=gt(i,G,i.valueFormat);p("update:modelValue",[Z,_],{})}else p("update:modelValue",[ee,G],{})}else{let R=P,x=pe(R[0]),H=pe(R[1]),Y=pe(R[2]),ee=new Date(x,H-1,Y);if(S.startDate=ee,S.startArray=yt(ee),i.valueFormat){let Q=gt(i,ee,i.valueFormat);p("update:modelValue",Q,{})}else p("update:modelValue",ee,{})}p("change",P,{})}},O=P=>{let x=P.target.value;g.value=!0,p("focus",x,P)},D=P=>{setTimeout(()=>{g.value=!1},0);let x=P.target.value;i.maxLength&&x.length>Number(i.maxLength)&&(x=x.slice(0,Number(i.maxLength))),p("blur",x,P)},T=t.computed(()=>({[`${B}__append`]:!0})),M=t.computed(()=>ge(i.unit)>0),V=t.computed(()=>ge(i.unit)>0&&!g.value),v=t.computed(()=>({hidden:!V.value})),$=P=>{d(),p("update:modelValue",null,P),p("change","",P),p("clear","")},K=t.computed(()=>i.clearable&&!u.value&&!m.value),W=t.computed(()=>{let P=ge(y.value)>0;return i.clearable&&P&&g.value}),U=P=>{W.value?$(P):N()},F=t.computed(()=>W.value&&K.value?a:r),j=t.computed(()=>({action:!0}));return()=>{const P={class:E.value,style:I.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:y.value,onClick:N,onFocus:O,onBlur:D};s&&(P.disabled=!0);const R=[],x=t.h("input",P);R.push(x);const H=[],Y={class:["action-icon"]},ee=t.h(F.value,Y),Q={class:j.value,onClick:U},G=t.h("view",Q,{default:()=>[ee]});if(H.push(G),M.value){const ct=t.h("view",{class:v.value},[i.unit]);H.push(ct)}const Z={class:T.value},_=t.h("view",Z,{default:()=>H});R.push(_);const ne={default:()=>R};ne.label=c.slots.default,ne.prepend=c.slots.prepend,ne.append=c.slots.append,ne.fixedPreTip=c.slots.fixedPreTip,ne.fixedTip=c.slots.fixedTip;const oe=ke(i,Uo);oe.visible=z.value,oe["onUpdate:visible"]=A,oe["default-value"]=C.value,oe.onChoose=L;const ae={};if(c.slots.btn){const ct=c.slots.btn();ae.btn=()=>ct}c.slots.day&&(ae.day=c.slots.day),c.slots.topInfo&&(ae.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(ae.bottomInfo=c.slots.bottomInfo);const ye=t.h(l,oe,ae);ne.hide=()=>[ye];const Se=ke(i,me,ue);return t.h(o,Se,ne)}}}}const{componentName:Zu,create:Ju,scope:_u}=X("calendar-item"),jo=Ju(Gu(Zu,_u,En,Ne,{CloseIcon:te.CircleClose,MarkIcon:te.Date},!1)),ef={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 tf(e,{CheckNormal:n,Checked:l}){return{props:{...ef},setup(o,{emit:a,slots:r}){let s=t.inject("parent",null);const i=t.computed(()=>s.label.value===o.label),c=t.computed(()=>o.disabled?"fox-radio__icon--disable":i.value?"fox-radio__icon":"fox-radio__icon--unchecked"),u=t.computed(()=>s.position),m=()=>{if(i.value){if(r.checkedIcon)return r.checkedIcon();{const b=ie(o.iconSize),S=o.checkedIcon??l;return t.h(S,{width:b,height:b,class:c.value})}}else{if(r.icon)return r.icon();{const b=ie(o.iconSize),S=o.icon??n;return t.h(S,{width:b,height:b,class:c.value})}}},p=()=>t.h("view",{class:`${e}__label ${o.disabled?`${e}__label--disabled`:""}`},r.default?.()),h=()=>t.h("view",{class:`${e}__button ${i.value&&`${e}__button--active`} ${o.disabled?`${e}__button--disabled`:""}`},r.default?.()),k=()=>{i.value||o.disabled||o.readonly||s.updateValue(o.label)},g=u.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${g?`${e}--reverse`:""}`,onClick:k},[o.shape=="button"?h():g?[p(),m()]:[m(),p()]])}}}const{componentName:nf,create:of}=X("radio"),Dn=of(tf(nf,{CheckNormal:te.CheckNormal,Checked:te.CheckChecked})),{componentName:ts,create:lf}=X("radio-group"),In=lf({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{emit:n,slots:l}){const o=a=>n("update:modelValue",a);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:o}),t.watch(()=>e.modelValue,a=>n("change",a)),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),t.h("view",{class:`${ts} ${ts}--${e.direction}`,style:a},l.default?.())}}});function ns(e,n,l,o="value"){for(let a=0;a<n.length;a++){let r=n[a];if(o==="text"){if(qn(e,r)===l)return a}else if(o==="item"){if(ze(l,r))return a}else if(xt(e,r)===l)return a}return-1}function qn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function xt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function af(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function rf(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}let sf=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);let a=Ge(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Te(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}};function cf(){const e=t.getCurrentInstance();return new sf(e.proxy)}function df(e){return{text:e,value:e}}const os={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},uf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}};function ff(e,n,l,o,a){return{props:{...ue,...me,...os,...uf,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,Boolean,Object],default:""}},emits:["change","update:modelValue"],setup(r,s){const i=De(t.computed(()=>r.readonly)),c=Ve(t.computed(()=>r.disabled)),u=Ae(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!c.value||!i.value}},r.prop??s.attrs.name),p=cf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([d,f])=>{if(d){const y=await p.load("radio",d,f);if(y.length>0)if(typeof y[0]=="string"){const E=y.map(q=>df(q));h.value=E}else h.value=y}},{immediate:!0});let k=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([d,f])=>{k.value=ns(r,f,d,r.valueType)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;if(k.value===-1)return null;const d=h.value[k.value];return xt(r,d)}),b=d=>{let f=null,y=null;if(h.value.length>0){let C=ns(r,h.value,d,"value");k.value=C,C>=0&&(y=h.value[C],r.valueType==="text"?f=qn(r,y):r.valueType==="item"?f=y:f=xt(r,y))}else f=d;m("update:modelValue",f),m("change",f,y)},S=()=>{let d=null,f=null;if(h.value.length>0&&k.value!==-1){let y=h.value[k.value];r.valueType==="text"?d=qn(r,y):r.valueType==="item"?d=y:d=xt(r,y)}m("update:modelValue",d),m("change",d,f)};if($e({clear(){k.value!==-1&&(k.value=-1,S())}}),r.source){const d=()=>{const f=[],y=ke(r,os);return h.value.forEach((C,B)=>{const E=xt(r,C),q=af(r,C);let I={...y,label:E,disabled:q};const z=rf(r,C,B);I={...I,...z},c.value&&(I.disabled=!0),i.value&&(I.readonly=!0);const N={};if(s.slots.icon&&(N.icon=s.slots.icon),s.slots.checkedIcon&&(N.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const L=s.slots.text(C);N.default=()=>[L]}else{const L=qn(r,C);N.default=()=>L}let A=t.h(a,I,N);f.push(A)}),f};return()=>{const f=d(),y={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:g,"onUpdate:modelValue":b},C=t.h(o,y,{default:()=>f}),B={default:()=>C};B.label=s.slots.default,B.prepend=s.slots.prepend,B.append=s.slots.append,B.fixedPreTip=s.slots.fixedPreTip,B.fixedTip=s.slots.fixedTip;const E=ke(r,me,ue);return t.h(l,E,B)}}else return()=>{const d=s.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:g,"update:modelValue":b},{default:()=>d})}}}}const{componentName:mf,create:pf,scope:hf}=X("radio-item"),Wo=pf(ff(mf,hf,Ne,In,Dn)),gf=(e,{CheckNormal:n,Checked:l,Indeterminate:o})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(a,{emit:r,slots:s}){const i=t.inject("parent",null),c=t.reactive({partialSelect:a.indeterminate});t.watch(()=>a.indeterminate,y=>{c.partialSelect=y});const u=t.computed(()=>!!i),m=t.computed(()=>u.value?i.value.value.includes(a.label):!!a.modelValue),p=t.computed(()=>u.value?i.position:a.textPosition),h=t.computed(()=>a.disabled?"fox-checkbox__icon--disable":c.partialSelect?"fox-checkbox__icon--indeterminate":m.value?"fox-checkbox__icon":"fox-checkbox__icon--unchecked");let k="";const g=(y,C)=>{k="click",r("update:modelValue",y),r("change",y,C)};t.watch(()=>a.modelValue,y=>{k=="click"?k="":r("change",y)});const b=()=>{if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const y=ie(a.iconSize),C=a.indeterminateIcon??o;return t.h(C,{width:y,height:y,class:h.value})}}else if(m.value){if(s.checkedIcon)return s.checkedIcon();{const y=ie(a.iconSize),C=a.checkedIcon??l;return t.h(C,{width:y,height:y,class:h.value})}}else{if(s.icon)return s.icon();{const y=ie(a.iconSize),C=a.icon??n;return t.h(C,{width:y,height:y,class:h.value})}}},S=()=>t.h("view",{class:`${e}__label ${a.disabled?`${e}__label--disabled`:""}`},s.default?.()),d=()=>t.h("view",{class:`${e}__button ${m.value&&`${e}__button--active`} ${a.disabled?`${e}__button--disabled`:""}`},s.default?.()),f=y=>{if(!(a.disabled||a.readonly)){if(m.value&&c.partialSelect){c.partialSelect=!1,g(m.value,s.default?.()[0].children);return}if(g(!m.value,s.default?.()[0].children),u.value){const C=i.value.value,B=i.max.value,{label:E}=a,q=C.indexOf(E);q>-1?C.splice(q,1):q<=-1&&(C.length<B||!B)&&C.push(E),i.updateValue(C)}}};return t.onMounted(()=>{u.value&&i.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{u.value&&i.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${a.shape} ${p.value==="left"?`${e}--reverse`:""}`,onClick:f},[a.shape=="button"?d():[b(),S()]])}}),{componentName:yf,create:kf}=X("checkbox"),Mn=kf(gf(yf,{CheckNormal:te.CheckNormal,Checked:te.Checked,Indeterminate:te.CheckDisabled})),{create:bf,componentName:ls}=X("checkbox-group"),zn=bf({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,emit:l}){const o=t.reactive({children:[]}),a=u=>{u.proxy&&o.children.push(u.proxy)},r=u=>{u.proxy&&(o.children=o.children.filter(m=>m!==u.proxy))},s=u=>{l("update:modelValue",u),l("change",u)},i=u=>{const m=[];u&&o.children.forEach(p=>{p?.disabled||m.push(p?.label)}),l("update:modelValue",m)},c=()=>{const u=o.children.filter(m=>m?.disabled?!1:!e.modelValue.includes(m.label)).map(m=>m.label);l("update:modelValue",u)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:a,unlink:r}),t.watch(()=>e.modelValue,u=>{l("change",u)}),$e({toggleAll:i,toggleReverse:c}),()=>{const u={};return e.textAlign&&(u["text-align"]=e.textAlign),t.h("view",{class:`${ls} ${ls}--${e.direction}`,style:u},n.default?.())}}});function as(e,n,l,o="value"){for(let a=0;a<n.length;a++){let r=n[a];if(o==="text"){if(Yo(e,r)===l)return a}else if(o==="item"){if(ze(l,r))return a}else if(xn(e,r)===l)return a}return-1}function Yo(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function xn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Sf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Cf(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}let wf=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);let a=Ge(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Te(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}};function Nf(){const e=t.getCurrentInstance();return new wf(e.proxy)}function Bf(e){return{text:e,value:e}}const Af={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},rs={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}};function Vf(e,n,l,o,a){return{props:{...Af,...rs,...ue,...me,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:[]}},emits:["change","update:modelValue"],setup(r,s){const i=Ve(t.computed(()=>r.disabled)),c=Ve(t.computed(()=>r.readonly)),u=Ae(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!i.value||!c.value}},r.prop??s.attrs.name),p=Nf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([d,f])=>{if(d){const y=await p.load("checkbox",d,f);if(y.length>0)if(typeof y[0]=="string"){const E=y.map(q=>Bf(q));h.value=E}else h.value=y}},{immediate:!0});const k=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([d,f])=>{const y=[];Array.isArray(d)&&d.forEach(C=>{let B=as(r,f,C,r.valueType);B!==-1&&y.push(B)}),!ze(y,k.value)&&(k.value=y)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;let d=[];return k.value.forEach(f=>{let y=h.value[f];d.push(xn(r,y))}),d}),b=d=>{let f=[],y=[];if(h.value.length>0){const C=[];Array.isArray(d)&&d.forEach(B=>{let E=as(r,h.value,B,"value");E!==-1&&C.push(E);const q=h.value[E];y.push(q),r.valueType==="text"?f.push(Yo(r,q)):r.valueType==="item"?f.push(q):f.push(xn(r,q))}),k.value=C}else f=d;m("update:modelValue",f),m("change",f,y)},S=t.ref();if($e({toggleAll:d=>{S.value.toggleAll(d)},toggleReverse:()=>{S.value.toggleReverse()}}),r.source){const d=()=>{const f=[],y=ke(r,rs);return h.value.forEach((C,B)=>{const E=xn(r,C),q=Sf(r,C);let I={...y,label:E,disabled:q};const z=Cf(r,C,B);I={...I,...z},i.value&&(I.disabled=!0),c.value&&(I.readonly=!0);const N={};if(s.slots.icon&&(N.icon=s.slots.icon),s.slots.checkedIcon&&(N.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(N.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const L=s.slots.text(C);N.default=()=>[L]}else{const L=Yo(r,C);N.default=()=>L}let A=t.h(a,I,N);f.push(A)}),f};return()=>{const f=d(),y={class:`${e}`,ref:S,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:g.value,"onUpdate:modelValue":b},C=t.h(o,y,{default:()=>f}),B={default:()=>C};B.label=s.slots.default,B.prepend=s.slots.prepend,B.append=s.slots.append,B.fixedPreTip=s.slots.fixedPreTip,B.fixedTip=s.slots.fixedTip;const E=ke(r,me,ue);return t.h(l,E,B)}}else return()=>{const d=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:S,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:u.value,modelValue:g,"onUpdate:modelValue":b},{default:()=>d})}}}}const{componentName:Tf,create:$f,scope:Ef}=X("checkbox-item"),Xo=$f(Vf(Tf,Ef,Ne,zn,Mn)),Qo={modelValue:{type:[String,Number,Boolean],default:!1},disable:{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:Df,create:If}=X("switch"),qf=If({components:{Loading1:te.Loading1},props:{...Qo},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const l=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const i=Df;return{[i]:!0,[l.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-disable`]:e.disable,[`${i}-base`]:!0}}),a=t.computed(()=>({backgroundColor:l.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disable||e.loading)return;r="click";const c=l.value?e.inactiveValue:e.activeValue;n("update:modelValue",c),n("change",c,i)};return t.watch(()=>e.modelValue,i=>{r=="click"?r="":n("change",i)}),{classes:o,style:a,isActive:l,onClick:s}}}),Mf={class:"fox-switch-button"};function zf(e,n,l,o,a,r){const s=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",Mf,[e.loading?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(s,{name:"loading",color:e.activeColor},null,8,["color"])]):t.createCommentVNode("",!0),e.activeText?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label open"},t.toDisplayString(e.activeText),513),[[t.vShow,e.isActive]]),t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label close"},t.toDisplayString(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):t.createCommentVNode("",!0)])],6)}const Ln=J(qf,[["render",zf]]);function xf(e,n,l,o){return{props:{...ue,...me,...Qo},emits:["change","update:modelValue"],setup(a,r){const s=Ve(t.computed(()=>a.disabled)),i=De(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),u=e,m=qe(a,"modelValue"),p=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const k={...ke(a,Qo),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":p},g=[],b=t.h(o,k);g.push(b);const S={default:()=>g};S.label=r.slots.default,S.fixedPreTip=r.slots.fixedPreTip,S.fixedTip=r.slots.fixedTip;const d=ke(a,me,ue);return d["content-class"]=u,t.h(l,d,S)}}}}const{componentName:Lf,create:Pf,scope:Rf}=X("switch-item"),Go=Pf(xf(Lf,Rf,Ne,Ln));function Ff(e,n,l,o){return{props:{...ue,...me,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"],setup(a,r){const{emitEvent:s}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},a.prop??r.attrs.name),{toLocaleRefs:i}=se.useFoxI18n(n),c=i(a,["placeholder"]),u=Ve(t.computed(()=>a.disabled)),m=De(t.computed(()=>a.readonly)),p=qe(a,"modelValue"),h=t.computed(()=>({[`${e}`]:!0})),k=t.computed(()=>({[`${e}__main`]:!0,[`${e}__disabled`]:u.value,[`${e}__placeholder`]:!u.value&&de(p.value)})),g=Ae(t.computed(()=>a.textAlign),"textAlign"),b=t.computed(()=>{const L={};return g.value&&(L["text-align"]=g.value),L}),S=t.computed(()=>!de(a.modelValue)||r.slots.main?!0:!!de(a.desc)),d=t.computed(()=>de(p.value)?c.placeholder.value:p.value),f=t.computed(()=>!de(a.desc)||r.slots.sub),y=t.computed(()=>({[`${e}__sub`]:!0})),C=t.computed(()=>{const L={};return g.value&&(L["text-align"]=g.value),L}),B=()=>{s("focus",p.value)},E=()=>{s("blur",p.value)},q=t.computed(()=>({[`${e}__append`]:!0})),I=t.computed(()=>ge(a.unit)>0),z=L=>{u.value==!0||m.value==!0||s("click")},N=t.computed(()=>a.icon??l),A=t.computed(()=>({action:!0}));return()=>{const L=[];if(typeof r.slots.content=="function"){const F=r.slots.content();L.push(F)}else{const F=[];if(S.value){const R={tabIndex:0,class:k.value,style:b.value,onFocus:B,onBlur:E,onClick:z};let x=null;r.slots.main?x=t.h("view",R,[r.slots.main(d.value)]):x=t.h("view",R,[d.value]),F.push(x)}if(f.value){const R={tabIndex:0,class:y.value,style:C.value,onFocus:B,onBlur:E,onClick:z};let x=null;r.slots.sub?x=t.h("view",R,[r.slots.sub(a.desc)]):x=t.h("view",R,[a.desc]),F.push(x)}const j={class:h.value},P=t.h("view",j,F);L.push(P)}const O=[],D=ie(a.iconSize);let T=r.slots.icon;if(!T){const F={width:D,height:D,class:["action-icon"]};T=t.h(N.value,F)}const M={class:A.value,onClick:z},V=t.h("view",M,{default:()=>[T]});if(O.push(V),I.value){const F=t.h("view",{},[a.unit]);O.push(F)}const v={class:q.value},$=t.h("view",v,{default:()=>O});L.push($);const K={default:()=>L};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 W=ke(a,me,ue);return t.h(o,W,K)}}}}const{componentName:Of,create:vf,scope:Kf}=X("link-item"),Zo=vf(Ff(Of,Kf,te.ArrowRight,Ne)),Jo={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:Uf,componentName:Hf}=X("rate"),jf=Uf({props:{...Jo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:l}){const o=t.ref([]),a=t.computed(()=>({[Hf]:!0})),r=k=>{n("update:modelValue",k),n("change",k)},s=(k,g)=>{if(e.disabled||e.readonly)return;let b=0;g===1&&e.modelValue===g||(b=g,e.allowHalf&&k==2&&(b-=.5)),r(b)},i=(k,g,b)=>{let S=0;for(let d=g.value.length-1;d>=0;d--){const f=g.value[d];if(k>f.offsetLeft){b?S=d+(k>f.offsetLeft+f.clientWidth/2?1:.5):S=d+1;break}}return S},c=He(),u={onTouchStart(k){!e.touchable||e.readonly||c.start(k)},onTouchMove(k){e.touchable&&(c.move(k),c.isHorizontal()&&o.value&&(k.preventDefault(),r(i(c.moveX.value,o,e.allowHalf))))}},m=Math.random().toString(36).slice(-8),p=t.computed(()=>e.customIcon??te.StarFillN);return{classes:a,...u,onClick:s,toPxDesc:fe,renderIcon:(k,g)=>t.h(k,g),rateRefs:o,refRandomId:m,slots:l,customIcon:p}}}),Wf=["id"],Yf={class:"fox-rate-item__icon--full"},Xf={key:0,class:"fox-rate-item__icon--half"},Qf={key:1,class:"fox-rate-item__icon--half"};function Gf(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:s,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+s,style:t.normalizeStyle(s<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",Yf,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=e.modelValue?e.activeColor:e.voidColor})),{class:t.normalizeClass(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||s>e.modelValue}]),onClick:i=>e.onClick(1,s)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>s?(t.openBlock(),t.createElementBlock("view",Xf,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<s?(t.openBlock(),t.createElementBlock("view",Qf,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):t.createCommentVNode("",!0)],12,Wf))),128))],34)}const kt=J(jf,[["render",Gf]]);function Zf(e,n,l,o){return{props:{...ue,...me,...Jo},emits:["change","update:modelValue"],setup(a,r){const s=Ve(t.computed(()=>a.disabled)),i=De(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),u=e,m=qe(a,"modelValue"),p=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const k={...ke(a,Jo),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":p},g=[],b=t.h(o,k);g.push(b);const S={default:()=>g};if(r.slots.default){const y=r.slots.default();S.label=()=>y}const d=ke(a,me,ue);return d["content-class"]=u,t.h(l,d,S)}}}}const{componentName:Jf,create:_f,scope:em}=X("rate-item"),_o=_f(Zf(Jf,em,Ne,kt)),el={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,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],default:"请选择"},confirmText:{type:[String],default:"确认"},loadText:{type:[String]},loadMoreText:{type:[String],default:"无更多数据"},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,default:"请输入关键字"},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0}};function tm(e,n,l,o="value"){for(let a=0;a<n.length;a++){let r=n[a];if(o==="text"){if(Pn(e,r)===l)return a}else if(o==="item"){if(ze(l,r))return a}else if(is(e,r)===l)return a}return-1}function Pn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ss(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function is(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function nm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function om(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}let lm=class{proxy;constructor(n){this.proxy=n}async load(n,l,o,a,r,s,i){if(Array.isArray(l)){let u=l;typeof i=="function"&&(u=u.filter(i));let m=(o-1)*a,p=m+a;p>u.length&&(p=u.length);const h=u.slice(m,p);return{totalSize:u.length,page:h}}if(typeof l=="function")return await Reflect.apply(l,null,[o,a,r,s]);const c=Ge(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Te(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[l,o,a,r]))}};function am(){const e=t.getCurrentInstance();return new lm(e.proxy)}const{componentName:rm,create:sm,scope:im}=X("infinite-loading"),cm=sm({props:{modelValue:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!0},threshold:{type:Number,default:200},loadText:{type:String},loadMoreText:{type:String},useCapture:{type:Boolean,default:!1}},emits:["scroll-change","load-more","update:modelValue"],components:{Loading:te.Loading},setup(e,{emit:n,slots:l}){const{toLocaleRefs:o}=se.useFoxI18n(im),a=o(e,["pullText","loadText","loadMoreText"]),r=t.ref(),s=Fr(r),i=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[rm]:!0})),u=b=>b?b.offsetTop+u(b.offsetParent):0,m=()=>{let b=0,S=0,d="down";if(s.value==window){const f=so();r.value&&(b=u(r.value)+r.value.offsetHeight-f-window.innerHeight),S=f}else{const{scrollHeight:f,clientHeight:y,scrollTop:C}=s.value;b=f-y-C,S=C}return i.beforeScrollTop>S?d="up":d="down",i.beforeScrollTop=S,n("scroll-change",S),b<=e.threshold&&d=="down"},p=()=>{Ye(()=>{if(!m()||!e.hasMore||i.isInfiniting)return!1;i.isInfiniting=!0,n("update:modelValue",!0),t.nextTick(()=>n("load-more"))})},h=()=>{s.value&&s.value.addEventListener("scroll",p,e.useCapture)},k=()=>{s.value&&s.value.removeEventListener("scroll",p,e.useCapture)};t.onMounted(()=>{h()}),t.onUnmounted(()=>{k()});const g=t.ref(!1);return t.onActivated(()=>{g.value&&(g.value=!1,h())}),t.onDeactivated(()=>{g.value=!0,k()}),t.watch(()=>e.modelValue,b=>{b||(i.isInfiniting=!1)}),{classes:c,scroller:r,...t.toRefs(i),slots:l,...a}}}),dm={class:"fox-infinite__container"},um={class:"fox-infinite__bottom"},fm={key:0,class:"fox-infinite__bottom-box"},mm={class:"fox-infinite__bottom-box__text"},pm={class:"fox-infinite__bottom-tips"};function hm(e,n,l,o,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"scroller"},[t.createElementVNode("view",dm,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",um,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",fm,[t.renderSlot(e.$slots,"loading",{},()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[t.createVNode(s,{class:"fox-icon-loading fox-infinite__bottom-box__img"})]),t.createElementVNode("view",mm,t.toDisplayString(e.loadText),1)])])):e.hasMore?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"finished",{key:1},()=>[t.createElementVNode("view",pm,t.toDisplayString(e.loadMoreText),1)])])],2)}const Rn=J(cm,[["render",hm]]),{componentName:gm,create:ym}=X("button"),km=ym({components:{Loading:te.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:l}){const{type:o,size:a,shape:r,disabled:s,loading:i,color:c,plain:u,block:m}=t.toRefs(e),p=g=>{!i.value&&!s.value&&n("click",g)},h=t.computed(()=>{const g=gm;return{[g]:!0,[`${g}--${o.value}`]:o.value,[`${g}--${a.value}`]:a.value,[`${g}--${r.value}`]:r.value,[`${g}--plain`]:u.value,[`${g}--block`]:m.value,[`${g}--disabled`]:s.value,[`${g}--loading`]:i.value}}),k=t.computed(()=>{const g={};return c?.value&&(u.value?(g.color=c.value,g.background="#fff",c.value?.includes("gradient")||(g.borderColor=c.value)):(g.color="#fff",g.background=c.value)),g});return{handleClick:p,classes:h,getStyle:k}}}),bm={class:"fox-button__wrap"};function Sm(e,n,l,o,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",bm,[e.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading"})):t.createCommentVNode("",!0),e.$slots.icon&&!e.loading?t.renderSlot(e.$slots,"icon",{key:1}):t.createCommentVNode("",!0),e.$slots.default?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass({"fox-button__text":e.$slots.icon||e.loading})},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)])],6)}const Me=J(km,[["render",Sm]]),{create:Cm,scope:wm}=X("searchbar"),Nm=Cm({props:{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,default:()=>te.CircleClose},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},emits:["change","update:modelValue","blur","focus","clear","search","click-input","click-left-icon","click-right-icon"],setup(e,{emit:n}){const{toLocaleRefs:l}=se.useFoxI18n(wm),o=l(e,["placeholder"]),a=t.reactive({active:!1}),r=t.computed(()=>({background:e.background})),s=t.computed(()=>({background:e.inputBackground})),i=f=>{let C=f.target.value;e.maxLength&&C.length>Number(e.maxLength)&&(C=C.slice(0,Number(e.maxLength))),n("update:modelValue",C,f),n("change",C,f)},c=t.ref({}),u=f=>{let C=f.target.value;a.active=!0,c.value=e.focusStyle,n("focus",C,f)},m=f=>{setTimeout(()=>{a.active=!1},0);let C=f.target.value;e.maxLength&&C.length>Number(e.maxLength)&&(C=C.slice(0,Number(e.maxLength))),c.value={},n("blur",C,f)},p=f=>{n("update:modelValue","",f),n("change","",f),n("clear","")},h=()=>{n("search",e.modelValue)},k=f=>{n("click-input",f)},g=f=>{n("click-left-icon",e.modelValue,f)},b=f=>{n("click-right-icon",e.modelValue,f)},S=t.computed(()=>({textAlign:e.inputAlign})),d=t.ref(null);return t.onMounted(()=>{e.autofocus&&d.value.focus()}),{...o,inputsearch:d,...t.toRefs(a),valueChange:i,valueFocus:u,valueBlur:m,handleClear:p,handleSubmit:h,searchbarStyle:r,inputSearchbarStyle:s,focusCss:c,clickInput:k,leftIconClick:g,rightIconClick:b,styleSearchbar:S}}}),Bm={key:0,class:"fox-searchbar__search-label"},Am={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},Vm=["type","maxlength","placeholder","value","disabled","readonly"],Tm={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-search-icon"},$m={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function Em(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:"fox-searchbar",style:t.normalizeStyle(e.searchbarStyle)},[e.label?(t.openBlock(),t.createElementBlock("span",Bm,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",Am,[t.renderSlot(e.$slots,"leftout")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__search-input",e.shape]),style:t.normalizeStyle({...e.inputSearchbarStyle,...e.focusCss})},[e.$slots.leftin?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-searchbar__search-icon fox-searchbar__iptleft-search-icon",onClick:n[0]||(n[0]=(...s)=>e.leftIconClick&&e.leftIconClick(...s))},[t.renderSlot(e.$slots,"leftin")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner",e.$slots.rightin&&"fox-searchbar__input-inner-absolute"])},[t.createElementVNode("form",{class:"fox-searchbar__input-form",action:"#",onSubmit:n[5]||(n[5]=t.withModifiers((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[t.createElementVNode("input",{ref:"inputsearch",class:t.normalizeClass(["fox-searchbar__input-bar",e.clearable&&"fox-searchbar__input-bar_clear"]),type:e.inputType,maxlength:e.maxLength,placeholder:e.placeholder,value:e.modelValue,disabled:e.disabled,readonly:e.readonly,onClick:n[1]||(n[1]=(...s)=>e.clickInput&&e.clickInput(...s)),onInput:n[2]||(n[2]=(...s)=>e.valueChange&&e.valueChange(...s)),onFocus:n[3]||(n[3]=(...s)=>e.valueFocus&&e.valueFocus(...s)),onBlur:n[4]||(n[4]=(...s)=>e.valueBlur&&e.valueBlur(...s)),style:t.normalizeStyle(e.styleSearchbar)},null,46,Vm)],32)],2),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner-icon",e.$slots.rightin&&"fox-searchbar__input-inner-icon-absolute"])},[e.clearable?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[6]||(n[6]=(...s)=>e.handleClear&&e.handleClear(...s)),class:"fox-searchbar__search-icon fox-searchbar__input-clear"},[e.$slots["clear-icon"]?t.renderSlot(e.$slots,"clear-icon",{key:0}):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.clearIcon),{key:1}))],512)),[[t.vShow,String(e.modelValue).length>0]]):t.createCommentVNode("",!0),e.$slots.rightin?(t.openBlock(),t.createElementBlock("view",Tm,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],2)],6),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",$m,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const Fn=J(Nm,[["render",Em]]);function Dm(e,n,l){return{props:{...el},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(o,{emit:a,slots:r}){const s=am(),i=t.ref([]),c=t.ref(1),u=t.ref(""),m=t.shallowRef(null),p=t.computed(()=>{const $={};return o.params&&Object.assign($,o.params),de(u.value)||($[`${o.searchKey}`]=u.value),m.value&&Object.assign($,m.value),$});let h=!0;const k=async($,K,W)=>{try{let U=null;de(u.value)||(U=j=>{const P=Pn(o,j);if(typeof P=="string"&&P.includes(u.value))return!0;const R=ss(o,j);return!!(typeof R=="string"&&R.includes(u.value))});const F=await s.load("actionsheet",$,K,W,p.value,h,U??void 0);h=!1,Array.isArray(F)?(i.value=F,A.value=!1,c.value=1):F.page.length===0?A.value=!1:(Reflect.apply([].push,i.value,F.page),i.value.length>=F.totalSize?A.value=!1:c.value=i.value.length/o.pageSize),N.value=!1}catch(U){console.error("[FoxUI] Load ActionSheet Data Fail",U),i.value=[]}setTimeout(()=>{a("loaded-data")},250)};t.watch([()=>o.source,()=>o.pageSize,()=>o.params],async([$,K,W])=>{o.source&&k(o.source,c.value,K)},{immediate:!0});const g=t.computed(()=>!o.multiple&&o.isAutoBackFill),b=t.ref([]);let S=null;const d=t.ref(o.visible);t.watch(()=>o.visible,$=>{d.value!==$&&(d.value=$),$?S=[...b.value]:S=null});const f=($,K)=>{const W=[];return Array.isArray($)||($=[$]),$.forEach(U=>{let F=tm(o,K,U,o.valueType);F!==-1&&W.push(F)}),ze(W,b.value)?!1:(b.value=W,!0)};t.watch([()=>o.modelValue,()=>i.value],([$,K],[W,U])=>{f($,K)&&y()},{deep:!0});const y=()=>{const $=[],K=[],W=[];for(let U of b.value){const F=i.value[U];K.push(F);const j=Pn(o,F);if(W.push(j),o.valueType==="item")$.push(F);else if(o.valueType==="text")$.push(j);else{const P=is(o,F);$.push(P)}}o.multiple?(a("update:modelValue",$),a("update:text",W),a("change",$,K)):(a("update:modelValue",$[0]??null),a("update:text",W[0]??null),a("change",$[0],K[0]??null))},C=()=>{S&&(b.value=S)},B=$=>{const K=b.value.indexOf($);o.multiple?K===-1?b.value.push($):b.value.splice(K,1):K===-1?b.value=[$]:b.value=[],(g.value||!o.poppable&&!o.showFooter)&&(y(),E(!1))},E=$=>{d.value=$,a("update:visible",$)},q=()=>{C(),E(!1)},I=()=>{E(!1),y()},z=()=>{i.value=[],c.value=1,o.source&&k(o.source,c.value,o.pageSize)},N=t.ref(!1),A=t.ref(!0),L=async()=>{if(!o.source){N.value=!1;return}await k(o.source,c.value,o.pageSize)};t.watch(()=>u.value,($,K)=>{de($)&&!de(K)&&L()});const O=()=>{let $=o.title??"";r.title&&($=r.title());const K=t.h("view",{class:["fox-actionsheet__header-title"]},[$]),W=t.h(te.Close,{class:["fox-actionsheet__header-icon"],onClick:q});return t.h("view",{class:["fox-actionsheet__header"]},[K,W])},D=()=>{let $=null;if(r.search)$=r.search();else{const K={onSearch:z,placeholder:o.seachPlaceholder,disabled:o.disabled,modelValue:u.value,"onUpdate:modelValue":W=>{u.value=W}};$=t.h(Fn,K,{leftin:()=>t.h(te.Search2)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[$])},T=($,K,W,U,F)=>{if(r.optionLabel)return r.optionLabel({text:$,checked:K,disabled:W,subText:U,item:F});const j=[],P=t.h("view",{class:"fox-actionsheet__list-item-text"},[$]);if(j.push(P),U){const R=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[U]);j.push(R)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},j)},M=($,K,W,U)=>{if(r.optionIcon)return r.optionIcon({checked:$,disabled:K,iconSize:W,item:U});if($){if(r.checkedIcon)return r.checkedIcon({disabled:K,item:U});{const F=o.checkedIcon??te.Checked;return t.h(F,{width:W,height:W,class:["fox-actionsheet__list-item-icon"]})}}else{if(r.icon)return r.icon({disabled:K,item:U});{const F=o.icon??te.CheckNormal;return t.h(F,{width:W,height:W,class:["fox-actionsheet__list-item-icon"]})}}},V=()=>{const $=[];for(let K=0;K<i.value.length;K++){const W=i.value[K],U=Pn(o,W),F=ss(o,W),j=["fox-actionsheet__list-item"],P={};let R=nm(o,W),x=o.iconSize?ie(o.iconSize):null;const H=om(o,W,K);H&&(R=R||H.disabled,H.class&&j.push(H.class),H.style&&Object.assign(P,H.style)),R=!!(o.disabled||R);const Y=b.value.includes(K);R&&j.push("is-disabled"),Y&&j.push("is-checked");const ee={class:j,style:P,key:`${K}`,onClick:()=>{R||B(K)}};let Q=[];if(r.option)Q.push(r.option({item:W,checked:Y,disabled:R}));else{const Z=T(U,Y,R,F,W);Q.push(Z);const _=M(Y,R,x,W);Q.push(_)}const G=t.h("view",ee,Q);$.push(G)}return $},v=()=>{let $=[];if(r.buttons)$=r.buttons();else{const W=t.h(Me,{type:"primary",block:"block",onClick:I,disabled:o.disabled},{default:()=>o.confirmText});$.push(W)}return t.h("view",{class:"fox-actionsheet__footer"},[$])};return $e({search:async($=null,K=!0)=>{m.value=$&&t.toRaw($),t.triggerRef(m),K&&(i.value=[],c.value=1),t.nextTick(()=>{L()})},clear:()=>{i.value=[],c.value=1}}),()=>{const $=[];if(o.showHeader){const x=O();$.push(x)}if(o.showSearchbar){const x=D();$.push(x)}let K=null;if(r.content)K=r.content();else{const x=V(),H={hasMore:A.value,loadText:o.loadText,loadMoreText:o.loadMoreText,modelValue:N.value,"onUpdate:modelValue":Y=>{N.value=Y},onLoadMore:L};K=t.h(Rn,H,{default:()=>x})}const W={};o.optionsHeight&&(W.height=o.optionsHeight);const U={"fox-actionsheet__list":!0};o.poppable||(U["fox-actionsheet__list--inner"]=!0);const F=t.h("view",{class:U,style:W},[K]);if($.push(F),o.showFooter&&!g.value){const x=v();$.push(x)}const j=t.h("view",{class:"fox-actionsheet"},$);if(!o.poppable)return j;const P=["fox-actionsheet__popup"];o.popClass&&P.push(o.popClass);const R={popClass:P.join(" "),visible:d.value,closeable:!1,"onUpdate:visible":E,position:o.position,round:"round",onClickOverlay:q,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(ce,R,{default:()=>j})}}}}const{componentName:w2,create:Im,scope:N2}=X("actionsheet-pane"),On=Im(Dm()),qm={type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Mm(e,n,l,o,a,r,s){return{props:{...ue,...me,...qm,...el},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const u=Ve(t.computed(()=>i.disabled)),m=De(t.computed(()=>i.readonly)),{emitEvent:p}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!u.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=se.useFoxI18n(n),k=h(i,["placeholder"]),g=t.ref(!1),b=qe(i,"modelValue"),S=t.ref(""),d=t.computed(()=>Array.isArray(S.value)?S.value.join(i.separator):S.value),f="fox-input-item",y=t.computed(()=>({[f]:!0,[`${f}__disabled`]:u.value})),C=Ae(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const P={};return C.value&&(P["text-align"]=C.value),P}),E=t.ref(!1),q=()=>{E.value=!0},I=P=>{E.value=P},z=P=>{b.value=P,p("update:modelValue",P)},N=(P,R)=>{p("change",P,R)},A=P=>{let x=P.target.value;g.value=!0,p("focus",x,P)},L=P=>{setTimeout(()=>{g.value=!1},0);let x=P.target.value;i.maxLength&&x.length>Number(i.maxLength)&&(x=x.slice(0,Number(i.maxLength))),p("blur",x,P)},O=P=>{S.value=P,p("update:text",P)},D=t.computed(()=>({[`${f}__append`]:!0})),T=t.computed(()=>ge(i.unit)>0),M=t.computed(()=>ge(i.unit)>0&&!g.value),V=t.computed(()=>({hidden:!M.value})),v=P=>{b.value="",p("update:modelValue","",P),p("change","",P),p("clear","")},$=t.computed(()=>i.clearable&&!u.value&&!m.value),K=t.computed(()=>ge(b.value)>0&&g.value),W=P=>{K.value?v(P):q()},U=t.computed(()=>K.value&&$.value?o:a),F=t.computed(()=>({action:!0})),j=t.ref(null);return $e({search:P=>{j.value&&j.value.search(P)}}),()=>{const P={class:y.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:q,onFocus:A,onBlur:L};s&&(P.disabled=!0);const R=[],x=t.h("input",P);R.push(x);const H=[],Y={class:["action-icon"]},ee=t.h(U.value,Y),Q={class:F.value,onClick:W},G=t.h("view",Q,{default:()=>[ee]});if(H.push(G),T.value){const ct=t.h("view",{class:V.value},[i.unit]);H.push(ct)}const Z={class:D.value},_=t.h("view",Z,{default:()=>H});R.push(_);const ne={default:()=>R};ne.label=c.slots.default,ne.prepend=c.slots.prepend,ne.append=c.slots.append,ne.fixedPreTip=c.slots.fixedPreTip,ne.fixedTip=c.slots.fixedTip;const oe=ke(i,el);oe.ref=j,oe.class=i.actionsheetProps,oe.disabled=u.value||m.value,oe.visible=E.value,oe["onUpdate:visible"]=I,oe.modelValue=b.value,oe["onUpdate:modelValue"]=z,oe.text=S.value,oe["onUpdate:text"]=O,oe.onChange=N,oe.poppable=!0;const ae={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},ye=t.h(r,oe,ae);ne.hide=()=>[ye];const Se=ke(i,me,ue);return t.h(l,Se,ne)}}}}const{componentName:zm,create:xm,scope:Lm}=X("actionsheet-item"),tl=xm(Mm(zm,Lm,Ne,te.CircleClose,te.ArrowRight,On)),{create:Pm,componentName:vn,scope:B2}=X("tabs-bar"),Rm=Pm({components:{MoreH:te.MoreH},props:{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"},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},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{slots:n,emit:l}){const o=t.computed(()=>{const M={};return M[`${vn}`]=!0,M}),a=t.computed(()=>{const M={};return M[`${vn}__titles`]=!0,M[`${e.direction}`]=!0,e.align==="left"&&(M.left=!0),e.scroll===!0&&(M.scrollable=!0),e.shape&&(M[`${e.shape}`]=!0),M}),r=t.computed(()=>({})),s=t.computed(()=>{if(!e.gutter)return 0;const M=ie(e.gutter);return M<=0?0:M}),i=t.ref(e.modelValue);t.watch(()=>e.modelValue,M=>{i.value!==M&&(i.value=M,T(!1))});const c=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),u=t.ref(),m=t.ref(!1),p=()=>{const M=!m.value;h(M)},h=M=>{const V=M;V?(m.value=V,setTimeout(()=>{c.value["fox-tabs-bar__popup--show"]=!0,c.value["fox-tabs-bar__popup--hide"]=!1},0)):(c.value["fox-tabs-bar__popup--show"]=!1,c.value["fox-tabs-bar__popup--hide"]=!0,u.value?u.value.addEventListener("transitionend",()=>{m.value=!1},{once:!0}):setTimeout(()=>{m.value=!1},0))},k=t.ref(),g=t.ref([]),b=(M,V)=>{g.value[V]=M},S=M=>V=>{b(V,M)},d=(M,V)=>{const v=k.value,$=g.value;if(!v||!$||!$[M])return;const K=$[M];let W=0;e.direction==="vertical"?W=K.offsetTop-(v.offsetHeight-K.offsetHeight)/2:W=K.offsetLeft-(v.offsetWidth-K.offsetWidth)/2,f(v,W,V?0:.3,e.direction)},f=(M,V,v,$)=>{let K=0;const W=$==="horizontal"?M.scrollLeft:M.scrollTop,U=v===0?1:Math.round(v*1e3/16);function F(){$==="horizontal"?M.scrollLeft+=(V-W)/U:M.scrollTop+=(V-W)/U,++K<U&&Fe(F)}F()},y=M=>M[e.textKey],C=M=>M[e.valueKey],B=M=>M[e.visibleKey],E=M=>M[e.disabledKey],q=(M,V)=>{const v=e.itemOptions;return typeof v=="function"?v(M,V):v||null},I=(M,V)=>{const v=C(M),$={};$[`${vn}__titles-item`]=!0,$.disabled=E(M),$.active=v===i.value,e.shape&&($[`${e.shape}`]=!0),e.ellipsis&&($.ellipsis=!0);const K=q(M,V);return K&&(K.class&&($[`${K.class}`]=!0),K.disabled===!0&&($.disabled=K.disabled)),$},z=(M,V)=>{const v={};if(s.value>0){const K=Math.abs(s.value/2);e.direction==="vertical"?(v["margin-top"]=`${K}px`,v["margin-bottom"]=`${K}px`):(v["margin-left"]=`${K}px`,v["margin-right"]=`${K}px`)}const $=q(M,V);return $&&$.style&&Object.assign(v,$.style),v},N=(M,V)=>`${C(M)??V}`,A=(M,V)=>{const v=C(M),$={};$[`${vn}__popup-item`]=!0,$.disabled=E(M),$.active=v===i.value,e.shape&&($[`${e.shape}`]=!0);const K=q(M,V);return K&&K.disabled===!0&&($.disabled=K.disabled),$},L=t.computed(()=>(e.data??[]).filter(V=>B(V)!==!1)),O=(M,V)=>{const v=C(M);i.value=v,e.scroll&&d(V,!1),l("update:modelValue",v),l("change",M,V)},D=(M,V)=>{O(M,V),h(!1)},T=M=>{if(!Array.isArray(e.data)||!e.scroll)return;const V=e.data.findIndex(v=>C(v)===i.value);V!==-1&&d(V,M)};return t.watch(()=>e.data,()=>{setTimeout(T,0)}),t.onMounted(()=>{T(!0)}),{classes:o,titlesClasses:a,titlesStyles:r,itemClasses:I,itemStyles:z,itemKey:N,popupItemClasses:A,filterTabItems:L,getItemText:y,getItemValue:C,onTabChange:O,titlesRef:k,createItemRefs:S,togglePopupVisible:p,onQuickNavigate:D,popupClasses:c,popupVisible:m,popupRef:u}}}),Fm={class:"fox-tabs-bar"},Om=["onClick"],vm={class:"fox-tabs-bar__titles-item-text"},Km=t.createElementVNode("view",{class:"fox-tabs-bar__titles-item-line"},null,-1),Um=["onClick"];function Hm(e,n,l,o,a,r){const s=t.resolveComponent("MoreH");return t.openBlock(),t.createElementBlock("view",Fm,[t.createElementVNode("view",{ref:"titlesRef",class:t.normalizeClass(e.titlesClasses),style:t.normalizeStyle(e.titlesStyles)},[t.renderSlot(e.$slots,"default",{},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filterTabItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:e.createItemRefs(c),class:t.normalizeClass(e.itemClasses(i,c)),style:t.normalizeStyle(e.itemStyles(i,c)),key:e.itemKey(i),onClick:u=>e.onTabChange(i,c)},[t.renderSlot(e.$slots,"item",{item:i,index:c},()=>[t.createElementVNode("view",vm,t.toDisplayString(e.getItemText(i)),1),Km])],14,Om))),128))])],6),e.showQuickNavigation?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs-bar__navigation",onClick:n[0]||(n[0]=(...i)=>e.togglePopupVisible&&e.togglePopupVisible(...i))},[t.renderSlot(e.$slots,"navigation",{},()=>[t.createVNode(s)])])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("view",{ref:"popupRef",class:t.normalizeClass(e.popupClasses)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filterTabItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.popupItemClasses(i,c)),key:e.itemKey(i),onClick:u=>e.onQuickNavigate(i,c)},[t.renderSlot(e.$slots,"popup-item",{item:i,index:c},()=>[t.createTextVNode(t.toDisplayString(e.getItemText(i)),1)])],10,Um))),128))],2),[[t.vShow,e.popupVisible]])])}const nl=J(Rm,[["render",Hm]]),cs=Symbol("TabsStatesKey"),{create:jm}=X("tabs-container"),Wm=jm({props:{modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"}},emits:["update:modelValue","change"],setup(e,{emit:n}){const l=t.shallowRef([]),o={current:t.ref(e.modelValue??""),direction:t.ref(e.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:m=>{const p={name:m};o.current.value===m&&(p.loaded=!0),l.value.push(p),t.triggerRef(l)},remove:m=>{const p=l.value.findIndex(h=>h.name===m);p!==-1&&l.value.splice(p,1)},isLoaded:m=>{const p=l.value.findIndex(h=>h.name===m);return p!==-1?o.current.value?l.value[p].loaded??!1:p===0:!1}};t.provide(cs,o);const a=m=>{const p=l.value.findIndex(h=>h.name===m);p!==-1&&(l.value[p].loaded=!0,t.triggerRef(l))};t.watch([()=>e.modelValue,()=>e.direction],([m,p])=>{o.current.value!==m&&(o.current.value=m??"",a(m??"")),o.direction.value!==p&&(o.direction.value=p)});const r=t.ref(null),s=t.ref(null),i=t.computed(()=>({"fox-tabs-container":!0,[`${e.direction}`]:!0})),c=t.computed(()=>{const m={},p=l.value.length;if(p<=0)return m;const h=l.value.findIndex(k=>k.name===o.current.value);return o.direction.value==="vertical"?o.tabHeight.value>0&&(m.height=`${p*o.tabHeight.value}px`,h!==-1&&(m.transform=`translate(0, -${h*o.tabHeight.value}px)`)):o.tabWidth.value>0&&(m.width=`${p*o.tabWidth.value}px`,h!==-1&&(m.transform=`translate(-${h*o.tabWidth.value}px, 0)`)),m});let u=null;return t.onMounted(()=>{if(!r.value)return;const m=()=>{const p=hn(r.value);o.tabWidth.value=p.width,o.tabHeight.value=p.height};window.ResizeObserver&&(u=new window.ResizeObserver(m),u.observe(r.value)),m()}),t.onBeforeUnmount(()=>{u&&(u.disconnect(),u=null)}),{tabsRef:r,panesRef:s,classes:i,panesStyles:c}}});function Ym(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"tabsRef"},[t.createElementVNode("view",{class:"fox-tabs-container__panes",style:t.normalizeStyle(e.panesStyles),ref:"panesRef"},[t.renderSlot(e.$slots,"default")],4)],2)}const ol=J(Wm,[["render",Ym]]),{create:Xm}=X("tabs-pane"),Qm=Xm({components:{Loading:te.Loading},props:{paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null}},setup(e,{emit:n}){const l=t.inject(cs);t.onMounted(()=>{l.add(e.paneKey)}),t.onBeforeUnmount(()=>{l.remove(e.paneKey)});const o=t.computed(()=>{const r={};return l.direction.value==="vertical"&&l.tabHeight.value>0?r.height=`${l.tabHeight.value}px`:l.tabWidth.value>0&&(r.width=`${l.tabWidth.value}px`),r}),a=t.computed(()=>e.loaded!=null?he(e.loaded):l.isLoaded(e.paneKey));return{styles:o,isLoaded:a}}}),Gm={class:"fox-tabs-pane__empty"},Zm=t.createElementVNode("view",{class:"fox-tabs-pane__empty-text"},"loading",-1);function Jm(e,n,l,o,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:"fox-tabs-pane",style:t.normalizeStyle(e.styles)},[e.isLoaded?t.renderSlot(e.$slots,"default",{key:0}):t.renderSlot(e.$slots,"empty",{key:1},()=>[t.createElementVNode("view",Gm,[t.createVNode(s,{class:"fox-tabs-pane__empty-icon"}),Zm])])],4)}const ll=J(Qm,[["render",Jm]]),_m={direction:{type:[String],default:"horizontal"},mode:{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"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function ep(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ds(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function us(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function tp(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function al(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function rl(e,n,l){return typeof e.itemOptions=="function"?e.itemOptions(n,l):e.itemOptions}let np=class{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[o]);const a=Ge(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Te(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(a,null,[l,o]))}};function op(){const e=t.getCurrentInstance();return new np(e.proxy)}function lp(e,n,l,o){return{props:{..._m},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:s}){const i=e,c=op(),u=t.ref([]),m=t.computed(()=>u.value.filter(U=>tp(a,U)!==!1)),p=t.ref(-1),h=()=>{const U=a.modelValue,F=m.value.findIndex(j=>ds(a,j)===U);p.value!==F&&(p.value=F,a.scroll&&K(F,!1))};t.watch([()=>a.modelValue,m],()=>{h()});const k=U=>p.value===U,g=U=>{if(U<0&&U>=m.value.length)return!1;const F=m.value[U],P=(rl(a,F,U)??{}).status??al(a,F);return k(U)||P},b=t.computed(()=>{const U={[i]:!0};return a.mode?U[`is-${a.mode}`]=!0:a.direction&&(U[`is-${a.direction}`]=!0),a.scroll&&(U["is-scroll"]=!0),U}),S=t.computed(()=>({})),d=(U,F,j,P)=>{const R={[`${i}__step`]:!0};return P&&(R[`${P}`]=!0),U===p.value?R["is-active"]=!0:F==="done"?R["is-done"]=!0:F==="error"?R["is-error"]=!0:F==="half"?R["is-half"]=!0:j?R["is-disabled"]=!0:R["is-normal"]=!0,R},f=(U,F={})=>{const j={...F};return U===m.value.length-1?j.flex="0 0 auto":a.step?a.direction==="vertical"?j.height=a.step:j.width=a.step:j.flex="1 1 100%",j},y=(U,F)=>{let j={};if(F<m.value.length-1){const P=F+1;g(F)&&g(P)?a.direction==="vertical"?j.height="100%":j.width="100%":j.opacity="0"}return j},C=U=>m.value.length-1===U,B=(U,F)=>{debugger;if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&F>p.value||p.value===F)return;const j=p.value,P=F;p.value=F,a.scroll&&K(F,!1);const R=ds(a,U);s("update:modelValue",R);const x={fromIndex:j,currentIndex:P,item:U,items:m.value,clickNavigatePolicy:a.clickNavigatePolicy};s("change",R,x)},E=t.ref(!0),q=async(U,F)=>{try{const j=await c.load("stesbar",U,F);Array.isArray(j)&&(u.value=j),E.value=!1}catch(j){console.error("[FoxUI] Load StepsBar Data Fail",j),u.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([U,F])=>{U&&q(U,F)},{immediate:!0});const I=(U,F,j,P)=>{let R=null;if(r.icon)R=r.icon({item:U,index:F,status:j});else if(j==="done"){const H={};a.iconSize&&(H.width=a.iconSize,H.height=a.iconSize);const Y=a.icon??l;R=t.h(Y,H)}else R=t.h("span",{},[`${F+1}`]);const x={class:"fox-steps-bar__icon",onClick:()=>{P||B(U,F)}};return t.h("view",x,[R])},z=(U,F,j)=>{const P=t.h("i",{class:"fox-steps-bar__line-inner",style:y(U,F)});return t.h("view",{class:"fox-steps-bar__line"},[P])},N=()=>{let U=null;if(r.markIcon)U=r.markIcon();else{const j={};a.iconSize&&(j.width=a.markIconSize,j.height=a.markIconSize);const P=a.markIcon??o;U=t.h(P,j)}return t.h("view",{class:"fox-steps-bar__mark"},[U])},A=(U,F,j,P)=>{const R=[];if(!C(F)){const Y=z(U,F);R.push(Y)}const x=I(U,F,j,P);R.push(x);const H={class:"fox-steps-bar__head"};return t.h("view",H,R)},L=(U,F,j,P)=>{let R=null;r.main?R=r.main({item:U,index:F,status:j}):R=ep(a,U);const x={class:"fox-steps-bar__main",onClick:()=>{P||B(U,F)}};return t.h("view",x,[R])},O=(U,F,j)=>{let P=null;if(r.sub){P=r.sub({item:U,index:F,status:j});const R={class:"fox-steps-bar__sub"};return t.h("view",R,[P])}return null},D=(U,F)=>{const j=rl(a,U,F)??{},P=j.status??al(a,U);let R=us(a,U);j.disabled===!0&&(R=!0),a.disabled===!0&&(R=!0);const x=[],H=I(U,F,P,R);H&&x.push(H);const Y=L(U,F,P,R);Y&&x.push(Y);const ee=z(U,F);ee&&x.push(ee);const Q=t.h("view",{class:"fox-steps-bar__head"},x),G=j.class,Z=j.style??{},_={ref:$(F),class:d(F,P,R,G),style:f(F,Z)};return t.h("view",_,[Q])},T=(U,F)=>{const j=rl(a,U,F)??{},P=j.status??al(a,U);let R=us(a,U);j.disabled===!0&&(R=!0),a.disabled===!0&&(R=!0);const x=[],H=a.layout;for(let G of H)if(G==="head"){const Z=A(U,F,P,R);x.push(Z)}else if(G==="main"){const Z=L(U,F,P,R);x.push(Z)}else if(G==="sub"){const Z=O(U,F,P);x.push(Z)}else if(G==="mark"){const Z=N();x.push(Z)}const Y=j.class,ee=j.style??{},Q={ref:$(F),class:d(F,P,R,Y),style:f(F,ee)};return t.h("view",Q,x)},M=t.ref(),V=t.ref([]),v=(U,F)=>{V.value[F]=U},$=U=>F=>{v(F,U)},K=(U,F)=>{const j=M.value,P=V.value;if(!j||!P||!P[U])return;const R=P[U];let x=0;a.direction==="vertical"?x=R.offsetTop-(j.offsetHeight-R.offsetHeight)/2:x=R.offsetLeft-(j.offsetWidth-R.offsetWidth)/2,W(j,x,F?0:.3,a.direction)},W=(U,F,j,P)=>{let R=0;const x=P==="horizontal"?U.scrollLeft:U.scrollTop,H=j===0?1:Math.round(j*1e3/16);function Y(){P==="horizontal"?U.scrollLeft+=(F-x)/H:U.scrollTop+=(F-x)/H,++R<H&&Fe(Y)}Y()};return()=>{const U=[];if(a.mode==="simple")for(let j=0;j<m.value.length;j++){const P=m.value[j],R=D(P,j);U.push(R)}else for(let j=0;j<m.value.length;j++){const P=m.value[j],R=T(P,j);U.push(R)}const F={ref:M,class:b.value,style:S.value};return t.h("view",F,U)}}}}const{componentName:ap,create:rp,scope:sp}=X("steps-bar"),sl=rp(lp(ap,sp,te.Checklist,te.ArrowRight)),fs=10;function ip(e,n){return e>n&&e>fs?"horizontal":n>e&&n>fs?"vertical":""}function cp(){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",l=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const 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 e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=ip(e.offsetX,e.offsetY))},start:s=>{if(o(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:l,state:e}}function dp(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function up(e){e.stopPropagation()}function fp(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&up(e)}class mp{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,l){this.startMove=n,this.updateMove=l,this.isTouch=dp()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const l=cp(),o=(a,r,s,i)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(l.start(a),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(l.move(a),fp(a,!0),o(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{o(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function pp(e,n){return new mp(e,n)}const hp={top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},draggable:{type:[Boolean]}},gp=(e,n,l,o=!1)=>({props:{...hp},emits:["click"],setup(a,{slots:r,emit:s}){const i=t.reactive({top:a.top,right:a.right,bottom:a.bottom,left:a.left}),c=t.computed(()=>({[`${e}`]:!0})),u=t.computed(()=>{const f={};return de(i.top)||(f.top=i.top),de(i.right)||(f.right=i.right),de(i.bottom)||(f.bottom=i.bottom),de(i.left)||(f.left=i.left),de(a.width)||(f.width=a.width),de(a.height)||(f.height=a.height),de(a.color)||(f.color=a.color),de(a.background)||(f.background=a.background),f}),m=t.computed(()=>({[`${e}__icon`]:!0})),p=()=>{s("click")},h=t.ref(null),k=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},g={x:0,y:0},d=pp(f=>{if(!h.value)return;const y=h.value;k(),i.left=y.offsetLeft,i.top=y.offsetTop,y.style.left=`${i.left}px`,y.style.top=`${i.top}px`,y.style.right=null,y.style.bottom=null,g.x=i.left,g.y=i.top},f=>{if(!h.value)return;const y=h.value;k(),i.left=g.x+f.x,i.top=g.y+f.y,y.style.left=`${i.left}px`,y.style.top=`${i.top}px`});return t.onMounted(()=>{if(a.draggable&&h.value){const f=[h.value];d.open(f)}}),t.onBeforeUnmount(()=>{a.draggable&&h.value&&d.close()}),()=>{let f=[];const y=typeof r.default=="function"?r.default():[];if(y&&y.length>0)f=y;else{const B=t.h(l,{class:m.value});f.push(B)}const C={ref:B=>{h.value=B},class:c.value,style:u.value,onClick:p};return t.h("view",C,f)}}}),{componentName:yp,create:kp,scope:bp}=X("floating-button"),il=kp(gp(yp,bp,te.Uploader,!1)),Sp={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,default:"确认"},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1,default:"取消"},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}},Cp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function wp(e,n,l){return{props:{...Sp},setup(o,{attrs:a,slots:r}){const s=e,i=t.ref(!0),c=f=>{i.value=f},u=f=>{if(typeof o.unmount=="function")try{o.unmount()}catch(y){console.error(y)}if(typeof o.callback=="function")try{o.callback(f)}catch(y){console.error(y)}},m=()=>{u("confirm")},p=()=>{u("cancel")},h=()=>{u("close")},k=(f,y)=>Cp(f)?(y.src=f,t.h("img",y)):typeof f=="string"?(Array.isArray(y.class)?y.class.push(f):y.class&&typeof y.class=="object"?y[`${f}`]=!0:typeof y.class=="string"?y.class=`${y.class}, ${f}`:y.class=f,t.h(o.tag,y)):t.h(f,y),g=()=>{const f=[];if(o.icon){const C={class:[`${s}__header-icon`]},B=k(o.icon,C);f.push(B)}if(o.title){const C=t.h("view",{class:`${s}__header-title`},[o.title]);f.push(C)}if(o.showClose&&o.closeIcon){const C={class:[`${s}__header-close-icon`],onClick:h},B=k(o.closeIcon,C);f.push(B)}const y={class:[`${s}__header`]};return t.h("view",y,f)},b=(f,y)=>{const C=[];if(y){const E={class:`${s}__group-title`},q=t.h("view",E,[y]);C.push(q)}if(f){const E=[];Array.isArray(f)||(f=[f]);for(let q of f){const I={class:`${s}__group-row`,innerHTML:q},z=t.h("view",I);E.push(z)}if(E.length>0){const q={class:`${s}__group-rows`},I=t.h("view",q,E);C.push(I)}}if(C.length===0)return null;const B={class:`${s}__group`};return t.h("view",B,C)},S=()=>{const f=[];if(typeof o.message=="string"){const y=b(o.message);f.push(y)}else if(Array.isArray(o.message))for(let y of o.message)if(typeof y=="string"){const C=b(y);f.push(C)}else{const C=b(y.content,y.title);f.push(C)}else if(typeof o.message=="function"){const y=o.message();f.push(y)}else{const y=o.message;f.push(y)}return f},d=()=>{const f=[];if(o.showCancelButton){const C={class:[`${s}__footer-button`],style:{},onClick:p};o.cancelButtonClass&&C.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(C.style,o.cancleButtonStyle);const B=t.h("button",C,[o.cancelButtonText]);f.push(B)}if(o.showConfirmButton){const C={class:[`${s}__footer-button`],style:{},onClick:m};o.confirmButtonClass&&C.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(C.style,o.confirmButtonStyle);const B=t.h("button",C,[o.confirmButtonText]);f.push(B)}if(f.length===0)return null;const y={class:`${s}__footer`};return t.h("view",y,f)};return()=>{const f=[],y=g();y&&f.push(y);const C=S();C&&f.push(C);const B=d();B&&f.push(B);const E={class:{[`${s}`]:!0,[`${s}--${o.type??"info"}`]:!0}},q=t.h("view",E,f),I=[`${s}__popup`];o.popClass&&I.push(o.popClass);const z={};o.width&&(z.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(z.height=typeof o.height=="number"?`${o.height}px`:o.height);const N={popClass:I.join(" "),style:z,visible:i.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":c,position:o.position,round:"round",onClickOverlay:h,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(l,N,{default:()=>q})}}}}const{componentName:Np,create:Bp,scope:Ap}=X("messagebox"),Vp=Bp(wp(Np,Ap,ce)),Tp="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",$p="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",Ep="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",Dp="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",Ip=new Ao,qp={showCancelButton:!0,cancelButtonText:"取消",showConfirmButton:!0,confirmButtonText:"确认"},Mp=e=>{let n=document.body,l=e.teleport;l!="body"&&(typeof l=="string"?n=document.querySelector(l):l&&(n=e.teleport));const o=document.createElement("view"),a=`messagebox-${Ip.get()}`;o.id=a,e.unmount=()=>{const s=document.querySelector(`#${a}`);s&&s.parentNode?.removeChild(s)};const r=t.createVNode(Vp,e);n.appendChild(o),t.render(r,o)},st={show:(e,n,l,o)=>{const a={...qp};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(a,n):(n&&(a.message=n),l&&typeof l=="object"?Object.assign(a,l):(typeof l=="string"&&(a.title=l),o&&typeof o=="object"?Object.assign(a,o):typeof o=="string"&&(a.type=o)));const r=a.type??"info";return a.icon||(r==="success"?a.icon=Ep:r==="warning"?a.icon=Dp:r==="error"?a.icon=Tp:a.icon=$p),e==="alert"?(a.showCancelButton=!1,a.showConfirmButton=!0):e==="confirm"&&(a.showCancelButton=!0,a.showConfirmButton=!0),a.showClose&&!a.closeIcon&&(a.closeIcon=te.Close),new Promise((s,i)=>{const c=a.callback;a.callback=u=>{if(typeof c=="function")try{c(u)}catch(m){console.error(m)}s({action:u})},Mp(a)})},alert:(e,n,l)=>st.show("alert",e,n,l),confirm:(e,n,l)=>st.show("confirm",e,n,l),install(e){e.config.globalProperties.$alert=st.alert,e.config.globalProperties.$confirm=st.confirm}};function zp(e,n){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const o=l.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const a=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(a)},500)}const xp={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function Lp(e,n,l=!1){return{props:{...xp},emits:["click"],setup(o,a){const r=t.ref(!0),s=t.ref(null),i=t.computed(()=>{const k={[`${e}`]:!0,"is-truncated":o.truncated};return o.type&&(k[`${e}--${o.type??"default"}`]=!0),o.size&&(k[`${e}--${o.size}`]=!0),k}),c=t.computed(()=>{const k={},g=o.textColor??o.color;return g&&(k.color=g),k}),u=k=>{if(k&&he(o.showOverflowTooltip)){const g=k.clientWidth;zp(k,b=>{r.value=b<=g})}};let m=null;t.onMounted(()=>{if(!he(o.showOverflowTooltip))return;const k=s.value;u(k),k&&window.ResizeObserver&&(m=new window.ResizeObserver(()=>{u(k)}),m.observe(k))}),t.onUnmounted(()=>{m?.disconnect()});const p=(k,g)=>{let b=null;if(typeof o.highlightFilter=="string"&&o.highlightFilter.length>0){const S=o.highlightFilter;if(k.indexOf(S)!==-1){const f=k.replace(new RegExp(S,"g"),`<span>${S}</span>`);g.innerHTML=f,g.class["is-highlight"]=!0,b=t.h(o.tag,g)}}else if(typeof o.highlightFilter=="function"){const S=o.highlightFilter(k);S&&(g.innerHTML=S,g.class["is-highlight"]=!0,b=t.h(o.tag,g))}return b},h=k=>{a.emit("click",k)};return()=>{const k={onClick:h,class:i.value,style:c.value,ref:s};let g=null;if(he(o.numberFormat)&&typeof a.slots.default=="function"){const f=a.slots.default();if(Array.isArray(f)&&f.length===1){const y=f[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const C=pe(o.digits),B=pe(o.decimalLength),E=he(o.autoPadding);let q=`${f[0].children}`,I=q.split("").reverse().join("");I=Zt(I,B,E,C,o.separator),q=I.split("").reverse().join(""),o.highlightFilter!==void 0&&(g=p(q,k)),g||(k.innerHTML=q,g=t.h(o.tag,k))}}}else{if(o.highlightFilter!==void 0&&typeof a.slots.default=="function"){const f=a.slots.default();if(Array.isArray(f)&&f.length===1){const y=f[0].type.toString();if(y==="Symbol(Text)"||y==="Symbol(v-txt)"){const C=`${f[0].children}`;g=p(C,k),g||(k.innerHTML=C,g=t.h(o.tag,k))}}}g||(g=t.h(o.tag,k,{default:a.slots.default}))}if(!o.mark&&!o.icon&&!a.slots.mark)return g;let S=null;if(o.icon){const f={[`${e}__mark-wrap`]:!0};o.type&&(f[`${e}__mark-wrap--${o.type}`]=!0);const y={},C=o.color;C&&(y.color=C);const B={class:f,style:y};S=t.h("view",B,t.h(o.icon))}else if(a.slots.mark){const f={[`${e}__mark-wrap`]:!0};o.type&&(f[`${e}__mark-wrap--${o.type}`]=!0);const y={},C=o.color;C&&(y.color=C);const B={class:f,style:y};S=t.h("view",B,{default:a.slots.mark})}else{const f={[`${e}__mark`]:!0};o.type&&(f[`${e}__mark--${o.type??"default"}`]=!0);const y={},C=o.color;C&&(y["background-color"]=C);const B={class:f,style:y};S=t.h("view",B)}const d={class:{"fox-text__wrap":!0,"text-left":o.textPosition==="left","text-right":o.textPosition==="right"}};return t.h("view",d,[S,g])}}}}const{componentName:Pp,create:Rp,scope:Fp}=X("text"),cl=Rp(Lp(Pp,Fp,!1));function Op(e,n,l,o,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 c=n;for(let u=0;c&&u<r.length;u++){let m=r[u],p=c.find(h=>h[o]===m);if(!p)break;s.push(p[l])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let u=n[c],m=r[c];const p=u.find(h=>h[o]===m);if(!p)break;s.push(p[l])}else{let c=n;for(let u=0;c&&u<r.length;u++){let m=r[u],p=c.find(h=>h[o]===m);if(!p)break;s.push(p[l]),c=p[a]}}return s}class vp{proxy;constructor(n){this.proxy=n}async load(n,l,o){if(Array.isArray(l))return l;if(typeof l=="function")return await l(o);const a=Ge(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Te(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await a(l,o))}}function Kp(){const e=t.getCurrentInstance();return new vp(e.proxy)}const Up={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},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},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Hp(e,n,l=!1){return{props:{...Up},setup(o,{attrs:a,slots:r}){const s=Kp(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([m,p])=>{i.value=await s.load(o.sourceType,m,p)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let m=Op(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return m.length==0?o.emptyText??"":m.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${m[0]}`:m[0]:m.join(o.separator)}),u=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const m={...a};return r.default?r.default({text:c.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===c.value?t.h(o.emptyTag??"span",{...a,class:o.emptyClass},c.value):t.h(u,m,{default:()=>c.value}):t.h(u,m,c.value)}}}}const{componentName:jp,create:Wp,scope:Yp}=X("mapping"),dl=Wp(Hp(jp,Yp,!1));function Xp(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:o}){return tr(l.name,()=>l.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:A2,create:Qp,scope:V2}=X("domain-provider"),ul=Qp(Xp()),Gp={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 Zp(e,n){return{inheritAttrs:!1,props:Gp,setup(l,{slots:o}){if(Xe&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const s=(h,k)=>{if(m===null){r.set(h,{visible:null,callback:k});return}a.has(h)&&m.unobserve(h),a.set(h,{visible:null,callback:k}),m.observe(h)},i=h=>{if(m===null){r.delete(h);return}a.has(h)&&(a.delete(h),m.unobserve(h))};let c=l.initialVisibleObserverSize;Vi({acquire:()=>{const h=c>0;return c--,h},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:s,unobserve:i});let m=null;const p=(h,k,g)=>{m=new IntersectionObserver(b=>{for(let S of b){let d=!1;S.intersectionRatio>0&&(d=!0);const f=a.get(S.target);if(f)try{if(l.loadPolicy==="lazy"&&!d&&f.visible!==null)return;f.visible=d,f.callback(d)}catch(y){console.error(y)}}},{root:h,rootMargin:k,threshold:g}),r.forEach((b,S)=>{a.set(S,b),m?.observe(S)}),r.clear()};t.watch([()=>l.root,()=>l.disabled],([h,k])=>{if(k||!h||m)return;let g=null;typeof h=="string"?g=document.querySelector(h):g=h,g&&p(g,l.rootMargin,l.threshold)},{immediate:!0}),t.onUnmounted(()=>{m&&(m.disconnect(),m=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:T2,create:Jp,scope:$2}=X("rolling-provider"),fl=Jp(Zp()),{componentName:_p,create:eh}=X("cell"),th=eh({components:{Right:te.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 l=t.computed(()=>{const r=_p;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:fe(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:l,baseStyle:o}}}),nh={key:0,class:"fox-cell__icon"},oh={key:1,class:"fox-cell__title"},lh={class:"title"},ah={class:"fox-cell__title-desc"};function rh(e,n,l,o,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",nh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",oh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",lh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",ah,t.toDisplayString(e.subTitle),1)],64)):t.renderSlot(e.$slots,"title",{key:1},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),7)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"link",{},()=>[e.isLink?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const ml=J(th,[["render",rh]]),{componentName:sh,create:ih}=X("cell-group"),ch=ih({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[sh]:!0}))}}}),dh={key:1,class:"fox-cell-group__title"},uh={key:3,class:"fox-cell-group__desc"},fh={class:"fox-cell-group__wrap"};function mh(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):e.title?(t.openBlock(),t.createElementBlock("view",dh,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.$slots.desc?t.renderSlot(e.$slots,"desc",{key:2}):e.desc?(t.openBlock(),t.createElementBlock("view",uh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",fh,[t.renderSlot(e.$slots,"default")])],2)}const pl=J(ch,[["render",mh]]),{componentName:ph,create:hh}=X("image"),gh=hh({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:te.Image,ImageError:te.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const l=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),o=t.computed(()=>{const k=ph;return{[k]:!0,[`${k}-round`]:e.round}}),a=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const k={threshold:[0],rootMargin:"0px"};a.value=new IntersectionObserver(g=>{g.forEach(b=>{b.isIntersecting&&(r.value=!0,a.value.disconnect())})},k),s.value&&a.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{a.value&&a.value.disconnect()});const c=t.computed(()=>{let k={};return e.width&&(k.width=fe(e.width)),e.height&&(k.height=fe(e.height)),e.radius!==void 0&&e.radius!==null&&(k.overflow="hidden",k.borderRadius=fe(e.radius)),k}),u=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,k=>{l.isError=!1,l.loading=!0});const m=()=>{l.loading=!1,n("load")},p=()=>{l.isError=!0,l.loading=!1,n("error")},h=k=>{n("click",k)};return{...t.toRefs(l),imageClick:h,classes:o,styles:u,stylebox:c,error:p,load:m,show:r,imgRef:s}}}),yh=["src","date-src","alt"],kh={key:0,class:"fox-img-loading"},bh={key:1,class:"fox-img-error"};function Sh(e,n,l,o,a,r){const s=t.resolveComponent("Image"),i=t.resolveComponent("ImageError");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.stylebox),onClick:n[2]||(n[2]=(...c)=>e.imageClick&&e.imageClick(...c))},[t.createElementVNode("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:n[0]||(n[0]=(...c)=>e.load&&e.load(...c)),onError:n[1]||(n[1]=(...c)=>e.error&&e.error(...c)),style:t.normalizeStyle(e.styles)},null,44,yh),e.loading?(t.openBlock(),t.createElementBlock("div",kh,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,width:"16px",height:"20px",name:"image"})),t.renderSlot(e.$slots,"loading")])):t.createCommentVNode("",!0),e.isError&&!e.loading?(t.openBlock(),t.createElementBlock("div",bh,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,width:"16px",height:"20px",name:"imageError"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}const hl=J(gh,[["render",Sh]]),{create:Ch}=X("layout"),gl=Ch({}),{componentName:wh,create:Nh}=X("col"),Bh=Nh({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=wh,l=t.inject("gutter"),o=t.computed(()=>({[n]:!0,[`${n}-gutter`]:l,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),a=t.computed(()=>({paddingLeft:l/2+"px",paddingRight:l/2+"px"}));return{classes:o,style:a}}});function Ah(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const yl=J(Bh,[["render",Ah]]),{componentName:Vh,create:Th}=X("row"),$h=Th({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=Vh;t.provide("gutter",e.gutter);const l=(a,r)=>a?r?`fox-row-${a}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
6
6
  ${l("",e.type)}
7
7
  ${l("justify",e.justify)}
8
8
  ${l("align",e.align)}
9
9
  ${l("flex",e.flexWrap)}
10
- ${o}
10
+ ${n}
11
11
  `:`
12
- ${o}
13
- `)}}});function Hp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const fl=Z(Up,[["render",Hp]]),{componentName:jp,create:Wp}=j("divider"),Yp=Wp({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,o){return{classes:t.computed(()=>{const n=jp;let a={[n]:!0},r={};return e.direction==="horizontal"?r={...a,[`${n}-center`]:o.slots.default,[`${n}-left`]:e.contentPosition==="left",[`${n}-right`]:e.contentPosition==="right",[`${n}-dashed`]:e.dashed,[`${n}-hairline`]:e.hairline}:r={...a,[`${n}-vertical`]:e.direction==="vertical"},r})}}});function Xp(e,o,l,n,a,r){return e.direction==="horizontal"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes)},null,2))}const ml=Z(Yp,[["render",Xp]]);function Qp(e,o){const l=[],n=a=>{Array.isArray(a)&&a.forEach(r=>{if(t.isVNode(r)){if(o){if(r.type&&r.type.name===o){l.push(r);return}}else l.push(r);r.component?.subTree&&n(r.component.subTree.children),r.children&&n(r.children)}})};return n(e),l}function Gp(e,o,l){const n=Qp(e.subTree.children,l);o.sort((a,r)=>n.indexOf(a.vnode)-n.indexOf(r.vnode))}function Zp(e,o){const l=t.shallowReactive([]),n=t.getCurrentInstance(),a=i=>{i.proxy&&(l.push(t.markRaw(i)),Gp(n,l,o))},r=i=>{l.splice(l.indexOf(t.markRaw(i)),1)},s=Object.assign;return i=>(t.provide(e,s({add:a,remove:r,internalChildren:l},i)),{internalChildren:l})}const{componentName:rs}=j("grid"),ss=Symbol("grid"),Jp={props:{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}},setup(e,{slots:o}){Zp(ss,`${rs}-item`)({props:e});const l=t.computed(()=>{const a=rs;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),n=t.computed(()=>{const a={};return e.gutter&&(a.paddingLeft=fe(e.gutter)),a});return()=>t.h("view",{class:l.value,style:n.value},o.default?.())}},{create:_p}=j("grid"),pl=_p(Jp);function eh(e){const o=t.inject(e,null);if(o){const l=t.getCurrentInstance(),{add:n,remove:a,internalChildren:r}=o;n(l),t.onUnmounted(()=>a(l));const s=t.computed(()=>r.indexOf(l));return{parent:o,index:s}}return{parent:null,index:t.ref(-1)}}const{create:th,componentName:is}=j("grid-item"),oh=th({props:{text:{type:String}},emits:["click"],setup(e,{emit:o}){const l=eh(ss);if(!l.parent)return{};const n=l.index,a=l.parent.props,r=t.computed(()=>({[is]:!0})),s=t.computed(()=>{const u={flexBasis:`${100/+a.columnNum}%`};return a.square?u.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(u.paddingRight=fe(a.gutter),n.value>=a.columnNum&&(u.marginTop=fe(a.gutter))),u}),i=t.computed(()=>{const u=`${is}__content`;return{[`${u}`]:!0,[`${u}--border`]:a.border,[`${u}--surround`]:a.border&&a.gutter,[`${u}--center`]:a.center,[`${u}--square`]:a.square,[`${u}--reverse`]:a.reverse,[`${u}--${a.direction}`]:!!a.direction,[`${u}--clickable`]:a.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:u=>{o("click",u)}}}}),nh={class:"fox-grid-item__text"};function lh(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:o[0]||(o[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",nh,[e.text?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.text),1)],64)):t.renderSlot(e.$slots,"text",{key:1})])],2)],6)}const hl=Z(oh,[["render",lh]]),{componentName:ah,create:rh}=j("navbar"),sh=rh({components:{Left:te.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:o}){const{border:l,fixed:n,safeAreaInsetTop:a,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let u=t.ref();const m=t.computed(()=>{const S=ah;return{[S]:!0,[`${S}--border`]:l.value,[`${S}--fixed`]:n.value,[`${S}--safe-area-inset-top`]:a.value}}),h=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{n.value&&r.value&&t.nextTick(()=>{u.value=c?.value?.getBoundingClientRect().height,i.value.style.height=u.value+"px"})});function p(){o("on-click-back")}function k(){o("on-click-title")}function g(){o("on-click-icon")}function y(){o("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:m,styles:h,handleLeft:p,handleCenter:k,handleCenterIcon:g,handleRight:y}}}),ih={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},ch={key:1,class:"fox-navbar__text"},dh={class:"fox-navbar__title"},uh={key:0,class:"fox-navbar__text"},fh={key:1,class:"fox-navbar__text"},mh={class:"fox-navbar__title"},ph={key:0,class:"fox-navbar__text"};function hh(e,o,l,n,a,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",ih,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:o[0]||(o[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",ch,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",dh,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:o[1]||(o[1]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:o[3]||(o[3]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:o[2]||(o[2]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:o[4]||(o[4]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",uh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6)],512)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:o[5]||(o[5]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",fh,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",mh,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:o[6]||(o[6]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:o[8]||(o[8]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:o[7]||(o[7]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:o[9]||(o[9]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",ph,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const gl=Z(sh,[["render",hh]]),gh=(e,o,l)=>({components:l,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{default:"",type:String},activeText:{default:"",type:String},unActiveText:{default:"",type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(n,{emit:a}){const{toLocaleRefs:r}=se.useFoxI18n(o),s=r(n,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:n.visible,[n.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(h=!n.visible)=>{a("update:visible",h)},selected:(h,p)=>{a("selected",{item:h,event:p}),c.value=h.id},current:c}}}),{componentName:yh,create:kh,scope:bh}=j("fixednav"),Sh=kh(gh(yh,bh,{[lt.name]:lt,Left:te.Left})),Ch={class:"fox-fixednav__list"},wh=["onClick"],Nh=["src"],Bh={class:"span"},Ah={key:0,class:"b"},Vh={class:"text"};function Th(e,o,l,n,a,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Left");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(s,{key:0,visible:e.visible,"z-index":200,onClick:o[0]||(o[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",Ch,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:m=>e.selected(c,m),key:c.id||u},[t.createElementVNode("img",{src:c.icon},null,8,Nh),t.createElementVNode("view",Bh,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Ah,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,wh))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:o[1]||(o[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{color:"#fff"}),t.createElementVNode("view",Vh,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const yl=Z(Sh,[["render",Th]]),{componentName:$h,create:Eh}=j("menu"),Dh=Eh({components:{ArrowUp2:te.ArrowUp2,ArrowDown2:te.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:o,slots:l}){const n=t.ref(),a=t.ref(0),r=t.ref(!1),s=()=>{const S=t.reactive([]),d=t.reactive([]);return{children:S,linkChildren:b=>{const w=E=>{E.proxy&&(d.push(E),S.push(E.proxy))},V=E=>{if(E.proxy){let I=d.indexOf(E);I>-1&&d.splice(I,1);let D=S.indexOf(E.proxy);I>-1&&S.splice(D,1)}};t.provide("menuParent",Object.assign({removeLink:V,link:w,children:S,internalChildren:d},b))}}},{children:i,linkChildren:c}=s(),u=t.computed(()=>i.some(S=>S.state.showWrapper)),m=t.computed(()=>({[$h]:!0,"scroll-fixed":r.value})),h=()=>{if(n.value){const S=$e(n);e.direction==="down"?a.value=S.bottom:a.value=window.innerHeight-S.top}};c({props:e,offset:a});const p=S=>{i.forEach((d,f)=>{f===S?(h(),d.toggle()):d.state.showPopup&&d.toggle(!1,{immediate:!0})})},k=S=>Math.max(0,"scrollTop"in S?S.scrollTop:S.pageYOffset),g=()=>{const{scrollFixed:S}=e,d=k(window);r.value=d>(typeof S=="boolean"?30:Number(S))},y=S=>{let d="";const{titleClass:f}=e;return S&&(d+="active"),f&&(d+=` ${f}`),d};return t.onMounted(()=>{const{scrollFixed:S}=e;S&&window.addEventListener("scroll",g)}),t.onUnmounted(()=>{const{scrollFixed:S}=e;S&&window.removeEventListener("scroll",g)}),{toggleItem:p,children:i,opened:u,classes:m,barRef:n,getClasses:y}}}),Ih=["onClick"],qh={class:"fox-menu__title-text"},zh={class:"fox-menu__title-icon"};function Mh(e,o,l,n,a,r){const s=t.resolveComponent("ArrowUp2"),i=t.resolveComponent("ArrowDown2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:m=>!c.disabled&&e.toggleItem(u),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",qh,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",zh,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Ih))),128))],2),t.renderSlot(e.$slots,"default")],2)}const kl=Z(Dh,[["render",Mh]]),{componentName:Ph,create:Rh}=j("menu-item"),xh=Rh({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:{[de.name]:de,Check:te.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:o,slots:l}){const n=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),a=()=>{const k=t.inject("menuParent",null);if(k){const g=t.getCurrentInstance(),{link:y,removeLink:S}=k;return y(g),t.onUnmounted(()=>{S(g)}),{parent:k}}},{parent:r}=a(),s=t.computed(()=>({[Ph]:!0})),i=t.computed(()=>{const k={height:r.offset.value+"px"};return r.props.direction==="down"?k:{...k,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const k=e.options?.find(g=>g.value===e.modelValue);return k?k.text:""},state:n,parent:r,toggle:(k=!n.showPopup,g={})=>{k!==n.showPopup&&(n.showPopup=k,n.isShowPlaceholderElement=k,k&&(n.showWrapper=!0,o("open")))},onClick:k=>{n.showPopup=!1,n.isShowPlaceholderElement=!1,k.value!==e.modelValue&&(o("update:modelValue",k.value),o("change",k.value))},handleClose:()=>{o("close"),n.showWrapper=!1,n.isShowPlaceholderElement=!1},handleClickOutside:()=>{n.showPopup=!1,o("close")}}}}),Lh={class:"fox-menu-item__content fox-menu-item__overflow"},Oh=["onClick"];function Fh(e,o,l,n,a,r){const s=t.resolveComponent("Check"),i=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:o[0]||(o[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:t.normalizeStyle(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),t.createVNode(i,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",top:"auto"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":o[1]||(o[1]=c=>e.state.showPopup=c),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:t.withCtx(()=>[t.createElementVNode("view",Lh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:m=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps(e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass([c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),7)],14,Oh))),128)),t.renderSlot(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}const bl=Z(xh,[["render",Fh]]),{create:Kh}=j("tabbar"),vh=Kh({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,o){function l(a){n.value!==a&&(n.value=a,o.emit("update:modelValue",a),o.emit("change",a,n.children[a]))}const n=t.reactive({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:l});return t.provide("parent",n),t.watch(()=>e.modelValue,a=>{n.value=a}),{changeIndex:l}}});function Uh(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[t.renderSlot(e.$slots,"default")],2)}const Sl=Z(vh,[["render",Uh]]),{create:Hh}=j("tabbar-item"),jh=Hh({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,o){const l=t.inject("parent"),n=t.reactive({size:l.size,inactiveColor:l.inactiveColor,activeColor:l.activeColor,value:l.value,index:0}),a=t.getCurrentInstance();a!==null&&(u=>{if(u.proxy){let m=l.children.length;n.index=m;let h=Object.assign(u.proxy,{index:m});l.children.push(h)}})(a);const r=t.computed(()=>n.index===n.value);function s(c){l&&typeof l.changeIndex=="function"&&l.changeIndex(c)}const i=t.computed(()=>l?l.value:null);return t.watch(i,c=>{n.value=c}),{state:n,active:r,change:s}}}),Wh={class:"fox-tabbar-item_icon-box"},Yh={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Xh={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Qh={key:1,class:"fox-tabbar-item_icon-box_dot"},Gh={key:2},Zh={key:0};function Jh(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:t.normalizeStyle({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:o[0]||(o[0]=s=>e.change(e.state.index))},[t.createElementVNode("view",Wh,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",Yh,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",Xh,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",Qh)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",Gh,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.icon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):t.createCommentVNode("",!0),!e.icon&&e.activeImg?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:t.normalizeStyle({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?(t.openBlock(),t.createElementBlock("view",Zh,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Cl=Z(jh,[["render",Jh]]),{componentName:_h,create:eg}=j("elevator"),tg=eg({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,o){const l=t.ref(null),n=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=t.computed(()=>({[_h]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${n.scrollY+n.fixedTop}px, 0)`})),s=t.computed(()=>l.value.clientHeight),i=(d,f)=>{const b="data-";return d.getAttribute(b+f)},c=d=>{t.nextTick(()=>{!n.listGroup.includes(d)&&d!=null&&n.listGroup.push(d)})},u=()=>{let d=0;n.listHeight.push(d);for(let f=0;f<n.listGroup.length;f++){let b=n.listGroup[f];d+=Math.floor(b.clientHeight),n.listHeight.push(d)}},m=d=>{!d&&d!==0||(d<0&&(d=0),d>n.listHeight.length-2&&(d=n.listHeight.length-2),n.codeIndex=d,l.value.scrollTo(0,n.listHeight[d]))},h=d=>{n.scrollStart=!0;let f=i(d.target,"index"),b=d.touches[0];n.touchState.y1=b.pageY,n.anchorIndex=+f,n.codeIndex=+f,m(+f)},p=d=>{let f=d.touches[0];n.touchState.y2=f.pageY;let b=(n.touchState.y2-n.touchState.y1)/e.spaceHeight|0;n.codeIndex=n.anchorIndex+b,m(n.codeIndex)},k=()=>{n.scrollStart=!1},g=(d,f)=>{o.emit("click-item",d,f),n.currentData=f,n.currentKey=d},y=d=>{o.emit("click-index",d)},S=d=>{let b=d.target.scrollTop;const w=n.listHeight;n.scrollY=b;for(let V=0;V<w.length-1;V++){let E=w[V],I=w[V+1];if(n.scrollY>=E&&n.scrollY<I){n.currentIndex=V,n.diff=I-n.scrollY;return}}n.currentIndex=w.length-2};return t.onMounted(()=>{l.value.addEventListener("scroll",S)}),Te({scrollTo:m}),t.watch(()=>n.listGroup.length,()=>{n.listHeight=[],t.nextTick(u)}),t.watch(()=>n.diff,d=>{const f=n.listHeight;let b=d>0&&d<e.titleHeight?d-e.titleHeight:0;n.scrollY+s.value===f[f.length-1]&&b!==0&&(b=0),n.fixedTop!==b&&(n.fixedTop=b)}),t.watch(()=>n.currentIndex,d=>{o.emit("change",d)}),{classes:a,...t.toRefs(n),fixedStyle:r,clientHeight:s,setListGroup:c,listview:l,touchStart:h,touchMove:p,touchEnd:k,handleClickItem:g,handleClickIndex:y}}}),og={class:"fox-elevator__list__item__code"},ng=["onClick"],lg=["innerHTML"],ag={class:"fox-elevator__fixed-title"},rg={class:"fox-elevator__bars__inner"},sg=["data-index","onClick"];function ig(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",og,t.toDisplayString(s[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===i.id&&e.currentKey===s[e.acceptKey]}]),key:i.id,onClick:c=>e.handleClickItem(s[e.acceptKey],i)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:1,item:i}):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:i.name},null,8,lg))],10,ng))),128))]))),128)),e.isSticky?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__list__fixed",style:t.normalizeStyle(e.fixedStyle)},[t.createElementVNode("span",ag,t.toDisplayString(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):t.createCommentVNode("",!0)],4),e.indexList.length?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__code--current"},t.toDisplayString(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-elevator__bars",onTouchstart:o[0]||(o[0]=(...s)=>e.touchStart&&e.touchStart(...s)),onTouchmove:o[1]||(o[1]=t.withModifiers((...s)=>e.touchMove&&e.touchMove(...s),["stop","prevent"])),onTouchend:o[2]||(o[2]=(...s)=>e.touchEnd&&e.touchEnd(...s))},[t.createElementVNode("view",rg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:s[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":i,key:s[e.acceptKey],onClick:c=>e.handleClickIndex(s[e.acceptKey])},t.toDisplayString(s[e.acceptKey]),11,sg))),128))])],32)],2)}const Pt=Z(tg,[["render",ig]]),{componentName:WB,create:cg,scope:dg}=j("pagination"),ug=cg({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:o}){const{toLocaleRefs:l}=se.useFoxI18n(dg),n=l(e,["prevText","nextText"]),{modelValue:a,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:p,totalItems:k,itemsPerPage:g}=t.toRefs(e),y=+p.value||Math.ceil(+k.value/+g.value);return Math.max(1,y)}),u=(p,k)=>{p>c.value||p<1||(p!=a.value&&o("update:modelValue",p),k&&o("change",p))},m=(p,k,g=!1)=>({number:p,text:k,active:g}),h=t.computed(()=>{if(r.value=="simple")return;let p=[];const k=c.value,g=+s.value;let y=1,S=k;const d=k>g;d&&(y=Math.max(a.value-Math.floor(g/2),1),S=y+g-1,S>k&&(S=k,y=S-g+1));for(var f=y;f<=S;f++){const b=m(f,f,a.value==f);p.push(b)}if(d&&g>0&&i.value){if(y>1){const b=m(y-1,"...");p.unshift(b)}if(S<k){const b=m(S+1,"...");p.push(b)}}return p});return t.watchEffect(()=>{u(a.value,!1)}),{...n,modelValue:a,select:u,countRef:c,mode:r,pages:h,forceEllipses:i}}}),fg={class:"fox-pagination"},mg={key:0,class:"fox-pagination-contain"},pg=["onClick"],hg={key:1,class:"fox-pagination-contain"},gg={class:"fox-pagination-simple"};function yg(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",fg,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:o[0]||(o[0]=s=>e.select(e.modelValue-1,!0))},[t.renderSlot(e.$slots,"prev-text",{},()=>[t.createTextVNode(t.toDisplayString(e.prevText),1)])],2),e.mode=="multi"?(t.openBlock(),t.createElementBlock("view",mg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(s,i)=>(t.openBlock(),t.createElementBlock("view",{key:i+"pagination",class:t.normalizeClass(["fox-pagination-item",s.active?"active":""]),onClick:c=>e.select(s.number,!0)},[t.renderSlot(e.$slots,"page",{item:s},()=>[t.createTextVNode(t.toDisplayString(s.text),1)])],10,pg))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",hg,[t.createElementVNode("view",gg,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:o[1]||(o[1]=s=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const wl=Z(ug,[["render",yg]]),{componentName:cs,create:kg}=j("indicator"),bg=kg({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:o,align:l}=t.toRefs(e);return{classes:t.computed(()=>{const a=cs;return{[a]:!0,[`${a}--block`]:o.value,[`${a}--align__${l.value}`]:o.value&&l.value}}),componentName:cs,padZero:et}}});function Sg(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,s=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[s===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(s)||s),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const Nl=Z(bg,[["render",Sg]]),{componentName:Cg,create:wg}=j("side-navbar"),Ng=wg({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const o=t.ref(null),l=t.reactive({count:1,observer:null}),n=t.computed(()=>({[Cg]:!0})),a=(s,i=1)=>{for(let c=0;c<s.length;c++){let u=s[c];u?.children?.[0]&&(u.children[0].style.paddingLeft=+e.offset*i+"px",u.className.includes("fox-side-navbar-item")||a(Array.from(u.children[1].children),++l.count))}l.count--},r=()=>{let s=o.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),a(s))};return t.onMounted(()=>{r(),l.observer=new MutationObserver(function(){l.count=1,r()}),l.observer.observe(o.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(l),list:o,classes:n}}}),Bg={class:"fox-side-navbar__content"},Ag={class:"fox-side-navbar__content__list",ref:"list"};function Vg(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Bg,[t.createElementVNode("view",Ag,[t.renderSlot(e.$slots,"default")],512)])],2)}const Bl=Z(Ng,[["render",Vg]]),{componentName:Tg,create:$g}=j("side-navbar-item"),Eg=$g({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,o)=>({classes:t.computed(()=>({[Tg]:!0})),handleClick:()=>{o.emit("click")}})}),Dg=["ikey"],Ig={class:"fox-side-navbar-item__title"};function qg(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[t.createElementVNode("span",Ig,t.toDisplayString(e.title),1)],10,Dg)}const Al=Z(Eg,[["render",qg]]),{componentName:zg,create:Mg}=j("sub-side-navbar"),Pg=Mg({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:te.ArrowDown2,ArrowUp2:te.ArrowUp2},emits:["title-click"],setup:(e,o)=>{const l=t.reactive({direction:""}),n=t.computed(()=>({[zg]:!0})),a=t.computed(()=>({height:l.direction?"0px":"auto"})),r=()=>{o.emit("title-click"),l.direction=l.direction?"":"up"};return t.onMounted(()=>{l.direction=e.open?"":"up"}),{...t.toRefs(l),classes:n,style:a,handleClick:r}}}),Rg=["ikey"],xg={class:"fox-sub-side-navbar__title__text"},Lg={class:"fox-sub-side-navbar__title__icon"};function Og(e,o,l,n,a,r){const s=t.resolveComponent("ArrowDown2"),i=t.resolveComponent("ArrowUp2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-sub-side-navbar__title",onClick:o[0]||(o[0]=t.withModifiers((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[t.createElementVNode("span",xg,t.toDisplayString(e.title),1),t.createElementVNode("span",Lg,[e.direction?(t.openBlock(),t.createBlock(i,{key:1})):(t.openBlock(),t.createBlock(s,{key:0}))])]),t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,Rg)}const Vl=Z(Pg,[["render",Og]]),{componentName:Fg,create:Kg}=j("range"),vg=Kg({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:o}){const l=t.ref(0);let n,a;const r=t.ref(),s=t.ref(),i=Ue(),c=t.computed(()=>{const{marks:$,max:T,min:q}=e;return Object.keys($).map(parseFloat).sort((x,M)=>x-M).filter(x=>x>=q&&x<=T)}),u=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const $=Fg;return{[$]:!0,[`${$}-disabled`]:e.disabled,[`${$}-vertical`]:e.vertical,[`${$}-show-number`]:!e.hiddenRange}}),h=t.computed(()=>{const $="fox-range-container";return{[$]:!0,[`${$}-vertical`]:e.vertical}}),p=t.computed(()=>({background:e.inactiveColor})),k=t.computed(()=>({borderColor:e.buttonColor})),g=$=>!!e.range&&Array.isArray($),y=()=>{const{modelValue:$,min:T}=e;return g($)?`${($[1]-$[0])*100/u.value}%`:`${($-Number(T))*100/u.value}%`},S=()=>{const{modelValue:$,min:T}=e;return g($)?`${($[0]-Number(T))*100/u.value}%`:"0%"},d=t.computed(()=>e.vertical?{height:y(),top:S(),background:e.activeColor,transition:s.value?"none":void 0}:{width:y(),left:S(),background:e.activeColor,transition:s.value?"none":void 0}),f=$=>{const T="fox-range-mark",{modelValue:q,max:A,min:O}=e;let x=Number(O),M=Number(A);if(e.range){const[G,Y]=q;x=G,M=Y}else M=q;let F=$<=M&&$>=x;return{[`${T}-text`]:!0,[`${T}-text-active`]:F}},b=$=>{const{min:T,vertical:q}=e;let A={left:`${($-Number(T))/u.value*100}%`};return q&&(A={top:`${($-Number(T))/u.value*100}%`}),A},w=$=>{const{modelValue:T,max:q,min:A}=e;let O=Number(A),x=Number(q);if(e.range){const[G,Y]=T;O=G,x=Y}return{background:$<=x&&$>=O?e.activeColor:e.inactiveColor}},V=$=>{const{min:T,max:q,step:A}=e;return $=Math.max(+T,Math.min($,+q)),Math.round($/+A)*+A},E=($,T)=>JSON.stringify($)===JSON.stringify(T),I=$=>$[0]>$[1]?$.slice(0).reverse():$,D=($,T)=>{g($)?$=I($).map(V):$=V($),E($,e.modelValue)||o("update:modelValue",$),T&&!E($,n)&&o("change",$)},z=$=>{if(e.disabled)return;const{min:T,modelValue:q}=e,A=$e(r);let O=$.clientX-A.left,x=A.width;e.vertical&&(O=$.clientY-A.top,x=A.height);const M=Number(T)+O/x*u.value;if(g(q)){const[F,G]=q,Y=(F+G)/2;M<=Y?D([M,G],!0):D([F,M],!0)}else D(M,!0)},N=$=>{e.disabled||(i.start($),a=e.modelValue,g(a)?n=a.map(V):n=V(a),s.value="start")},B=$=>{if(e.disabled)return;s.value==="start"&&o("drag-start"),i.move($),s.value="draging";const T=$e(r);let q=i.deltaX.value,A=T.width,O=q/A*u.value;e.vertical&&(q=i.deltaY.value,A=T.height,O=q/A*u.value),g(n)?a[l.value]=n[l.value]+O:a=n+O,D(a),$.stopPropagation(),$.preventDefault()},R=()=>{e.disabled||(s.value==="draging"&&(D(a,!0),o("drag-end")),s.value="")},L=$=>Zt(e.modelValue)&&typeof $=="number"?e.modelValue[$]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:p,buttonStyle:k,onClick:z,onTouchStart:N,onTouchMove:B,onTouchEnd:R,...t.toRefs(e),barStyle:d,curValue:L,buttonIndex:l,containerClasses:h,markClassName:f,marksStyle:b,marksList:c,tickStyle:w}}}),Ug={key:0,class:"fox-range-min"},Hg={key:0,class:"fox-range-mark"},jg=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Wg={key:0,class:"number"},Yg=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Xg={key:0,class:"number"},Qg={key:1,class:"fox-range-max"};function Gg(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Ug,t.toDisplayString(+e.min),1)),t.createElementVNode("view",{ref:"root",style:t.normalizeStyle(e.wrapperStyle),class:t.normalizeClass(e.classes),onClick:o[9]||(o[9]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",Hg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,s=>(t.openBlock(),t.createElementBlock("span",{key:s,class:t.normalizeClass(e.markClassName(s)),style:t.normalizeStyle(e.marksStyle(s))},[t.createTextVNode(t.toDisplayString(s)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(s))},null,4)],6))),128))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-range-bar",style:t.normalizeStyle(e.barStyle)},[e.range?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList([0,1],s=>t.createElementVNode("view",{key:s,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":s==0,"fox-range-button-wrapper-right":s==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(s),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(i=>{typeof s=="number"&&(e.buttonIndex=s),e.onTouchStart(i)},["stop","prevent"]),onTouchmove:o[0]||(o[0]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:o[1]||(o[1]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:o[2]||(o[2]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:o[3]||(o[3]=i=>i.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Wg,t.toDisplayString(e.curValue(s)),1))],4))],42,jg)),64)):(t.openBlock(),t.createElementBlock("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:o[4]||(o[4]=t.withModifiers(s=>{e.onTouchStart(s)},["stop","prevent"])),onTouchmove:o[5]||(o[5]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:o[6]||(o[6]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:o[7]||(o[7]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:o[8]||(o[8]=s=>s.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Xg,t.toDisplayString(e.curValue()),1))],4))],40,Yg))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Qg,t.toDisplayString(+e.max),1))],2)}const Rt=Z(vg,[["render",Gg]]),{componentName:Zg,create:Jg}=j("input-number"),_g=Jg({components:{Minus:te.Minus,Plus:te.Plus},props:{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}},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:o}){const l=t.computed(()=>{const k=Zg;return{[k]:!0,[`${k}--disabled`]:e.disabled}}),n=k=>Number(k).toFixed(Number(e.decimalPlaces)),a=k=>{const g=k.target;o("update:modelValue",g.valueAsNumber,k)},r=(k,g)=>{let y=n(k);o("update:modelValue",y,g),o("change",y,g)},s=(k=Number(e.modelValue))=>k<Number(e.max)&&!e.disabled,i=(k=Number(e.modelValue))=>k>Number(e.min)&&!e.disabled,c=k=>{if(o("reduce",k),i()){let g=Number(e.modelValue)-Number(e.step);r(g,k)}else o("overlimit",k,"reduce")},u=k=>{if(o("add",k),s()){let g=Number(e.modelValue)+Number(e.step);r(g,k)}else o("overlimit",k,"add")},m=k=>{e.disabled||e.readonly||o("focus",k)},h=k=>{if(e.disabled||e.readonly)return;let y=k.target.valueAsNumber;y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),r(y,k),o("blur",k)},p=k=>{let g=Number(k);return g<Number(e.min)?g=Number(e.min):g>Number(e.max)&&(g=Number(e.max)),g};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const k=p(e.modelValue);k!==Number(e.modelValue)&&r(k,{})}),{classes:l,change:a,blur:h,focus:m,add:u,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:fe}}}),ey=["min","max","disabled","readonly","value"];function ty(e,o,l,n,a,r){const s=t.resolveComponent("Minus"),i=t.resolveComponent("Plus");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:o[0]||(o[0]=(...c)=>e.reduce&&e.reduce(...c))},[t.renderSlot(e.$slots,"left-icon",{},()=>[t.createVNode(s,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxDesc(e.inputWidth),height:e.toPxDesc(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:o[1]||(o[1]=(...c)=>e.change&&e.change(...c)),onBlur:o[2]||(o[2]=(...c)=>e.blur&&e.blur(...c)),onFocus:o[3]||(o[3]=(...c)=>e.focus&&e.focus(...c))},null,44,ey),t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:o[4]||(o[4]=(...c)=>e.add&&e.add(...c))},[t.renderSlot(e.$slots,"right-icon",{},()=>[t.createVNode(i,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2)],2)}const rt=Z(_g,[["render",ty]]),{create:oy,scope:ny}=j("short-password"),ly=oy({components:{[de.name]:de,Tips:te.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:o}){const{toLocaleRefs:l}=se.useFoxI18n(ny),n=l(e,["title","desc","tips"]),a=t.ref(e.modelValue),r=t.computed(()=>u(Number(e.length))),s=t.ref(e.visible),i=h=>{h.stopPropagation(),o("focus")};t.watch(()=>e.visible,h=>{s.value=h}),t.watch(()=>e.modelValue,h=>{a.value=h,String(h).length===r.value&&o("complete",h)});const c=()=>{o("update:visible",!1),o("close")},u=h=>Math.min(Math.max(4,h),6);return{comLen:r,realInput:a,onTouchStart:i,range:u,close:c,onTips:()=>{o("tips")},show:s,...n}}}),ay={class:"fox-short-password-title"},ry={class:"fox-short-password-subtitle"},sy={class:"fox-short-password-wrapper"},iy={key:0,class:"fox-short-password__item-icon"},cy={class:"fox-short-password__message"},dy={class:"fox-short-password--error"},uy={key:0,class:"fox-short-password--forget"};function fy(e,o,l,n,a,r){const s=t.resolveComponent("Tips"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(i,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":o[2]||(o[2]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("view",ay,t.toDisplayString(e.title),1),t.createElementVNode("view",ry,t.toDisplayString(e.desc),1),t.createElementVNode("div",sy,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:o[0]||(o[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:u},[String(e.realInput).length>u?(t.openBlock(),t.createElementBlock("view",iy)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",cy,[t.createElementVNode("view",dy,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",uy,[t.createVNode(s,{class:"icon",width:"11px",height:"11px"}),t.createElementVNode("view",{onClick:o[1]||(o[1]=(...c)=>e.onTips&&e.onTips(...c))},t.toDisplayString(e.tips),1)])):t.createCommentVNode("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}const Tl=Z(ly,[["render",fy]]);class my{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let py=class{options;constructor(o){this.options=o}upload(){const o=this.options,l=new XMLHttpRequest;if(l.timeout=o.timeout,l.upload){l.upload.addEventListener("progress",n=>{o.onProgress?.(n,o)},!1),l.onreadystatechange=()=>{l.readyState===4&&(l.status==o.xhrState?o.onSuccess?.(l.responseText,o):o.onFailure?.(l.responseText,o))},l.withCredentials=o.withCredentials,l.open(o.method,o.url,!0);for(const[n,a]of Object.entries(o.headers))l.setRequestHeader(n,a);o.onStart?.(o),o.beforeXhrUpload?o.beforeXhrUpload(l,o):l.send(o.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}};class hy{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const ds=(e,{args:o=[],done:l,canceled:n})=>{if(e){const a=e.apply(null,o);_o(a)?a.then(r=>{r?l(r):n&&n()}).catch(()=>{}):a?l():n&&n()}else l()},{create:gy}=j("progress"),yy=gy({components:{Checked:te.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 o=!!t.useSlots().default,l=t.ref(e.strokeWidth+"px"),n=t.ref(),a=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),s=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),i=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:l,percentage:r,bgStyle:s,textStyle:i,progressOuter:n,insideText:a,slotDefault:o}}}),ky={class:"fox-progress"},by={key:0,class:"fox-progress-text"};function Sy(e,o,l,n,a,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",ky,[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-outer",[e.showText&&!e.textInside?"fox-progress-outer-part":"",e.size?"fox-progress-"+e.size:""]]),ref:"progressOuter",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-inner",e.status=="active"?"fox-active":""]),style:t.normalizeStyle(e.bgStyle)},null,6),e.showText&&e.textInside&&!e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-progress-text fox-progress-insidetext",ref:"insideText",style:t.normalizeStyle({lineHeight:e.height,left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`,background:e.textBackground||e.strokeColor})},[t.createElementVNode("span",{style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)],4)):t.createCommentVNode("",!0),e.showText&&e.textInside&&e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:1,ref:"insideText",style:t.normalizeStyle({position:"absolute",top:"50%",left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`})},[t.renderSlot(e.$slots,"default")],4)):t.createCommentVNode("",!0)],6),e.showText&&!e.textInside?(t.openBlock(),t.createElementBlock("div",by,[e.status=="active"||e.status==""?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)):e.status=="icon"?t.renderSlot(e.$slots,"icon-name",{key:1},()=>[t.createVNode(s,{width:"15px",height:"15px",color:"#439422"})]):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const xt=Z(yy,[["render",Sy]]),{componentName:Cy,create:wy,scope:Ny}=j("uploader"),By=wy({components:{[xt.name]:xt,Photograph:te.Photograph,Failure:te.Failure,Loading:te.Loading,Del:te.Del,Link:te.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,o)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:o}){const{t:l}=se.useFoxI18n(Ny),n=t.reactive(e.fileList);let a=[];const r=t.computed(()=>({[Cy]:!0})),s=()=>{let f={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(f.capture="camera"),t.h("input",f)},i=f=>{f.value=""},c=f=>{o("file-item-click",{fileItem:f})},u=(f,b)=>{const w=new my;w.url=e.url,w.formData=f.formData,w.timeout=e.timeout*1,w.method=e.method,w.xhrState=e.xhrState,w.headers=e.headers,w.withCredentials=e.withCredentials,w.beforeXhrUpload=e.beforeXhrUpload;try{w.sourceFile=f.formData.get(e.name)}catch{}w.onStart=E=>{f.status="ready",f.message=l("readyUpload"),m(b),o("start",E)},w.onProgress=(E,I)=>{f.status="uploading",f.message=l("uploading"),f.percentage=(E.loaded/E.total*100).toFixed(0),o("progress",{event:E,option:I,percentage:f.percentage})},w.onSuccess=(E,I)=>{f.status="success",f.message=l("success"),o("success",{responseText:E,option:I,fileItem:f}),o("update:fileList",n)},w.onFailure=(E,I)=>{f.status="error",f.message=l("error"),o("failure",{responseText:E,option:I,fileItem:f})};let V=new py(w);e.autoUpload?V.upload():a.push(new Promise((E,I)=>{E(V)}))},m=(f=-1)=>{f>-1?a.splice(f,1):(a=[],n.splice(0,n.length))},h=()=>{Promise.all(a).then(f=>{f.forEach(b=>b.upload())})},p=f=>{f.forEach((b,w)=>{const V=new FormData;for(const[I,D]of Object.entries(e.data))V.append(I,D);V.append(e.name,b);const E=t.reactive(new hy);if(E.name=b.name,E.status="ready",E.type=b.type,E.formData=V,E.message=l("waitingUpload"),u(E,w),e.isPreview&&b.type.includes("image")){const I=new FileReader;I.onload=D=>{E.url=D.target.result,n.push(E)},I.readAsDataURL(b)}else n.push(E)})},k=f=>{const b=e.maximum*1,w=e.maximize*1,V=new Array;f=f.filter(I=>I.size>w?(V.push(I),!1):!0),V.length&&o("oversize",V);let E=f.length+n.length;return E>b&&f.splice(f.length-(E-b)),f},g=(f,b)=>{n.splice(b,1),o("delete",{file:f,fileList:n,index:b})},y=(f,b)=>{m(b),ds(e.beforeDelete,{args:[f,n],done:()=>g(f,b)})},S=f=>{if(e.disabled)return;const b=f.target;let{files:w}=b;e.beforeUpload?e.beforeUpload(w).then(V=>d(V)):d(w),o("change",{fileList:n,event:f}),e.clearInput&&i(b)},d=f=>{const b=k(new Array().slice.call(f));p(b)};return{onChange:S,onDelete:y,fileList:n,classes:r,fileItemClick:c,clearUploadQueue:m,submit:h,renderInput:s}}}),Ay={key:0,class:"fox-uploader__slot"},Vy={key:0,class:"fox-uploader__preview-img"},Ty={key:0,class:"fox-uploader__preview__progress"},$y={class:"fox-uploader__preview__progress__msg"},Ey=["onClick"],Dy=["onClick","src"],Iy={key:3,class:"fox-uploader__preview-img__file"},qy=["onClick"],zy={class:"file__name_tips"},My={class:"tips"},Py={key:1,class:"fox-uploader__preview-list"},Ry=["onClick"],xy={class:"file__name_tips"};function Ly(e,o,l,n,a,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),u=t.resolveComponent("Del"),m=t.resolveComponent("fox-progress"),h=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",Ay,[t.renderSlot(e.$slots,"default"),Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(p,k)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:p.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",Vy,[p.status!="success"?(t.openBlock(),t.createElementBlock("view",Ty,[p.status!="ready"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[p.status=="error"?(t.openBlock(),t.createBlock(s,{key:0,color:"#fff"})):(t.openBlock(),t.createBlock(i,{key:1,name:"loading",color:"#fff"}))],64)):t.createCommentVNode("",!0),t.createElementVNode("view",$y,t.toDisplayString(p.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:g=>e.onDelete(p,k)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,Ey)):t.createCommentVNode("",!0),p?.type?.includes("image")&&p.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:g=>e.fileItemClick(p),src:p.url},null,8,Dy)):(t.openBlock(),t.createElementBlock("view",Iy,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(p),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",zy,t.toDisplayString(p.name),1)],8,qy)])),t.createElementVNode("view",My,t.toDisplayString(p.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",Py,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(p),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[p.status]])},[t.createVNode(c,{class:"fox-uploader__preview-img__file__link"}),t.createElementVNode("view",xy,t.toDisplayString(p.name),1),e.isDeletable?(t.openBlock(),t.createBlock(u,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:g=>e.onDelete(p,k)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,Ry),p.status=="uploading"?(t.openBlock(),t.createBlock(m,{key:0,size:"small",percentage:p.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(h,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const $l=Z(By,[["render",Ly]]),Oy="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozOUNBQTQ0M0Y3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBz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r7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:Ky,scope:vy}=j("number-keyboard"),Uy=Ky({components:{[de.name]:de},props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:o}){const{toLocaleRefs:l}=se.useFoxI18n(vy),n=l(e,["confirmText"]),a=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:d}=e;let f={id:"lock",type:"lock"},b=Array.isArray(d)?d:[d];return b.length===1&&(f={id:b[0],type:"custom"}),[...c(),f,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const d=[];for(let f=1;f<=9;f++)d.push({id:f,type:"number"});return e.randomKeys?d.sort(()=>Math.random()>.5?1:-1):d}function u(){const d=c(),{customKey:f}=e;let b=Array.isArray(f)?f:[f];return b.length>2&&(b=[b[0],b[1]]),b.length==2&&e.title&&e.type!="rightColumn"&&(b=[b[0]]),b.length===1?e.title&&e.type!="rightColumn"?d.push({id:b[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):d.push({id:0,type:"number"},{id:b[0],type:"custom"}):b.length===2&&d.push({id:b[0],type:"custom"},{id:0,type:"number"},{id:b[1],type:"custom"}),d}const m=t.computed(()=>e.type=="rightColumn"||e.title!=""?u():i()),h=()=>{e.visible&&o("blur")},p=d=>{const f=s.value;f&&!f.contains(d.target)&&h()};t.watch(()=>e.visible,d=>{r.value=d,d?window.addEventListener("touchstart",p,!1):window.removeEventListener("touchstart",p,!1)});function k(d,f){f.stopPropagation(),a.value=d.id,(d.type=="number"||d.type=="custom")&&(o("input",d.id),e.modelValue.length<Number(e.maxlength)&&o("update:modelValue",e.modelValue+d.id)),d.type=="lock"&&S(),d.type=="delete"&&(o("delete"),o("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function g(d){d.stopPropagation()}function y(d){d.preventDefault(),a.value=void 0}function S(){o("update:visible",!1),o("close")}return{...n,delImg:Oy,lockImg:Fy,clickKeyIndex:a,defaultKey:i,closeBoard:S,onTouchEnd:y,onTouchMove:g,onTouchstart:k,keysList:m,genCustomKeys:u,getBasicKeys:c,root:s,show:r}}}),Hy={ref:"root"},jy={class:"fox-number-keyboard"},Wy={key:0,class:"fox-number-keyboard__header"},Yy={class:"fox-number-keyboard__title"},Xy={class:"fox-number-keyboard__body"},Qy={class:"fox-number-keyboard__keys"},Gy=["onTouchstart"],Zy=["src"],Jy=["src"],_y={key:0,class:"fox-number-keyboard__sidebar"},ek={class:"fox-key__wrapper"},tk=["src"];function ok(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",Hy,[t.createVNode(s,{visible:e.show,"onUpdate:visible":o[7]||(o[7]=i=>e.show=i),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",jy,[e.title?(t.openBlock(),t.createElementBlock("div",Wy,[t.createElementVNode("h3",Yy,t.toDisplayString(e.title),1),e.type=="default"?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-number-keyboard__close",onClick:o[0]||(o[0]=i=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",Xy,[t.createElementVNode("div",Qy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,i=>(t.openBlock(),t.createElementBlock("div",{key:"key"+i.id,class:t.normalizeClass(["fox-key__wrapper",{"fox-key__wrapper--wider":i.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{"fox-key--active":i.id==e.clickKeyIndex},{"fox-key--lock":i.type=="lock"},{"fox-key--delete":i.type=="delete"}]),onTouchstart:c=>e.onTouchstart(i,c),onTouchmove:o[1]||(o[1]=c=>e.onTouchMove(c)),onTouchend:o[2]||(o[2]=c=>e.onTouchEnd(c))},[i.type=="number"||i.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.id),1)],64)):t.createCommentVNode("",!0),i.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,Zy)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,Jy)):t.createCommentVNode("",!0)],42,Gy)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",_y,[t.createElementVNode("div",ek,[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:o[3]||(o[3]=i=>e.onTouchstart({id:"delete",type:"delete"},i)),onTouchmove:o[4]||(o[4]=i=>e.onTouchMove(i)),onTouchend:o[5]||(o[5]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("img",{src:e.delImg},null,8,tk)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:o[6]||(o[6]=i=>e.closeBoard())},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},t.toDisplayString(e.confirmText),3)])])):t.createCommentVNode("",!0)])])]),_:1},8,["visible","popClass"])],512)}const El=Z(Uy,[["render",ok]]),{componentName:nk,create:lk}=j("swipe"),ak=lk({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:o}){const l=t.computed(()=>({[nk]:!0})),n=f=>f.value?.clientWidth||0,a=t.ref(),r=t.computed(()=>n(a)),s=t.ref(),i=t.computed(()=>n(s));let c=!1,u="",m="";const h=t.reactive({offset:0,moving:!1}),p=(f="")=>{c=!0,f&&(h.offset=f==="left"?-i.value:r.value),o("open",{name:e.name,position:u||f})},k=()=>{h.offset=0,c=!1,o("close",{name:e.name,position:u})},g=t.computed(()=>({transform:`translate3d(${h.offset}px, 0, 0)`})),y=f=>{u=f>0?"right":"left";let b=f;switch(u){case"left":c&&m===u?b=-i.value:b=Math.abs(f)>i.value?-i.value:f;break;case"right":c&&m===u?b=r.value:b=Math.abs(f)>r.value?r.value:f;break}h.offset=b},S=Ue();return{classes:l,touchStyle:g,...{onTouchStart(f){e.disabled||S.start(f)},onTouchMove(f){e.disabled||(S.move(f),S.isHorizontal()&&(h.moving=!0,y(S.deltaX.value),e.touchMovePreventDefault&&f.preventDefault(),e.touchMoveStopPropagation&&f.stopPropagation()))},onTouchEnd(){if(h.moving)switch(h.moving=!1,m=u,u){case"left":Math.abs(h.offset)<=i.value/2?k():(h.offset=-i.value,p());break;case"right":Math.abs(h.offset)<=r.value/2?k():(h.offset=r.value,p());break}}},leftRef:a,rightRef:s,open:p,close:k}}}),rk={class:"fox-swipe__left",ref:"leftRef"},sk={class:"fox-swipe__content"},ik={class:"fox-swipe__right",ref:"rightRef"};function ck(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",rk,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",sk,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",ik,[t.renderSlot(e.$slots,"right")],512)],38)}const Lt=Z(ak,[["render",ck]]),{componentName:dk,create:uk}=j("action-sheet"),fk=uk({components:{[de.name]:de,Loading:te.Loading},props:{...nt,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:o}){const l=!!t.useSlots().default,n=t.computed(()=>({[dk]:!0}));return{slotDefault:l,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{o("cancel"),o("update:visible",!1)},chooseItem:(c,u)=>{!c.disable&&!c.loading&&(o("choose",c,u),o("update:visible",!1))},close:c=>{o("close",c),o("update:visible",!1)},classes:n}}}),mk={key:0,class:"fox-action-sheet__title"},pk={key:1},hk={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},gk={key:1,class:"fox-action-sheet__menu"},yk=["onClick"],kk={key:1},bk={class:"fox-action-sheet__subdesc"};function Sk(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.title?(t.openBlock(),t.createElementBlock("view",mk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",pk,[e.description?(t.openBlock(),t.createElementBlock("view",hk,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",gk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:t.normalizeStyle({color:e.isHighlight(c)||c.color}),key:u,onClick:m=>e.chooseItem(c,u)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",kk,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",bk,t.toDisplayString(c[e.optionSubTag]),1)],14,yk))),128))])):t.createCommentVNode("",!0),e.cancelTxt?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-action-sheet__cancel",onClick:o[0]||(o[0]=(...c)=>e.cancelActionSheet&&e.cancelActionSheet(...c))},t.toDisplayString(e.cancelTxt),1)):t.createCommentVNode("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}const Dl=Z(fk,[["render",Sk]]),{componentName:Ck,create:wk}=j("backtop"),Il=wk({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:o,slots:l}){const n=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),a=t.computed(()=>({[Ck]:!0,show:n.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){n.scrollEl instanceof Window?n.scrollTop=n.scrollEl.pageYOffset:n.scrollTop=n.scrollEl.scrollTop,n.backTop=n.scrollTop>=e.distance}function i(g=0){n.scrollEl instanceof Window?window.scrollTo(0,g):n.scrollEl.scrollTop=g}function c(){let g=We(function y(){var S=e.duration-Math.max(0,n.startTime-+new Date+e.duration),d=S*-n.scrollTop/e.duration+n.scrollTop;i(d),g=We(y),(S==e.duration||d==0)&&Sa(g)})}function u(){n.scrollEl.addEventListener("scroll",s,!1),n.scrollEl.addEventListener("resize",s,!1)}function m(){n.scrollEl.removeEventListener("scroll",s,!1),n.scrollEl.removeEventListener("resize",s,!1)}function h(g){n.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),o("click",g)}function p(){k.value?n.scrollEl=k.value.el:e.elId&&document.getElementById(e.elId)&&(n.scrollEl=document.getElementById(e.elId)),u()}t.onMounted(()=>{e.distance==0&&(n.backTop=!0),p()}),t.onUnmounted(()=>{m()}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1,p())}),t.onDeactivated(()=>{n.keepAlive=!0,m()});const k=t.computed(()=>{if(typeof l.content=="function"){const g=l.content();return Array.isArray(g)?g[0]:g}return null});return()=>{const g=[];k.value&&g.push(k.value);const y=[];if(typeof l.default=="function")y.push(l.default());else{const d=t.h(te.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});y.push(d)}const S=t.h("div",{class:a.value,style:r.value,onClick:h},y);return g.push(S),g}}}),{componentName:Nk,create:Bk}=j("drag"),Ak=Bk({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:o}){const l=t.ref(),n=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=t.computed(()=>({[Nk]:!0}));function r(){const h=document.documentElement;n.elWidth=l.value.offsetWidth,n.elHeight=l.value.offsetHeight,n.screenWidth=h.clientWidth,n.screenHeight=h.clientHeight}function s(h){n.boundary.left?+h.style.left.split("px")[0]>n.boundary.left?(h.style.left=+h.style.left.split("px")[0]-10+"px",Xe(()=>{s(h)})):h.style.left=`${n.boundary.left}px`:+h.style.left.split("px")[0]>10?(h.style.left=+h.style.left.split("px")[0]-10+"px",Xe(()=>{s(h)})):h.style.left="0px"}function i(h,p){p-parseInt(h.style.left.split("px")[0])>10?(h.style.left=parseInt(h.style.left.split("px")[0])+10+"px",Xe(()=>{i(h,p)})):h.style.left=p+"px"}function c(h){h.preventDefault();const p=h.currentTarget;if(h.targetTouches.length===1){const k=h.targetTouches[0];n.nx=k.clientX-n.position.x,n.ny=k.clientY-n.position.y,n.xPum=n.startLeft+n.nx,n.yPum=n.startTop+n.ny;const g=n.screenWidth-n.elWidth-n.boundary.right;Math.abs(n.xPum)>g?n.xPum=g:n.xPum<=n.boundary.left&&(n.xPum=n.boundary.left),n.yPum<n.boundary.top?n.yPum=n.boundary.top:n.yPum>n.screenHeight-n.elHeight-n.boundary.bottom&&(n.yPum=n.screenHeight-n.elHeight-n.boundary.bottom),e.direction!="y"&&(p.style.left=n.xPum+"px"),e.direction!="x"&&(p.style.top=n.yPum+"px")}}function u(h){const p=h.currentTarget;let g=h.changedTouches[0].clientX;const y=n.screenWidth-n.elWidth-n.boundary.right;g>y?g=y:g<n.boundary.left?g=n.boundary.left:g=g<n.screenWidth/2?n.boundary.left:y,e.direction!="y"&&e.attract&&(g<n.screenWidth/2?Xe(()=>{s(p)}):Xe(()=>{i(p,y)})),e.direction!="x"&&(p.style.top=n.yPum+"px")}function m(h){const p=h.currentTarget,k=h.touches[0],g=h.targetTouches[0];n.startTop=p.offsetTop,n.startLeft=p.offsetLeft,n.position.x=k.clientX,n.position.y=k.clientY,n.nx=g.clientX-n.position.x,n.ny=g.clientY-n.position.y,n.xPum=n.startLeft+n.nx,n.yPum=n.startTop+n.ny}return t.onMounted(()=>{r(),n.boundary=e.boundary}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1)}),t.onDeactivated(()=>{n.keepAlive=!0;const h=l;h.value.removeEventListener("touchstart",m),h.value.removeEventListener("touchmove",c),h.value.removeEventListener("touchend",u)}),{classes:a,myDrag:l,touchStart:m,touchMove:c,touchEnd:u}}});function Vk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:o[0]||(o[0]=s=>e.touchStart(s)),onTouchmove:o[1]||(o[1]=s=>e.touchMove(s)),onTouchend:o[2]||(o[2]=s=>e.touchEnd(s))},[t.renderSlot(e.$slots,"default")],34)}const ql=Z(Ak,[["render",Vk]]),{componentName:Tk,create:$k,scope:Ek}=j("dialog"),Dk=$k({inheritAttrs:!1,components:{[de.name]:de,[ze.name]:ze},props:{...nt,closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String,default:""},content:{type:[String,Object],default:""},noFooter:{type:Boolean,default:!1},noConfirmBtn:{type:Boolean,default:!1},noCancelBtn:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},closeOnPopstate:{type:Boolean,default:!1},footerDirection:{type:String,default:"horizontal"},customClass:{type:String,default:""},popStyle:{type:Object},beforeClose:{type:Function}},emits:["update","update:visible","confirm","cancel","opened","closed"],setup(e,{emit:o}){const{toLocaleRefs:l}=se.useFoxI18n(Ek),n=l(e,["confirmText","cancelText"]),a=t.ref(e.visible);t.onMounted(()=>{e.closeOnPopstate&&Ye&&window.addEventListener("popstate",function(){i("page")})}),t.watch(()=>e.visible,m=>{a.value=m,m&&o("opened")});const r=t.computed(()=>({[Tk]:!0,[e.customClass]:!0})),s=m=>{o("update",m),o("update:visible",m)},i=m=>{if(e.beforeClose){const h=e.beforeClose(m);_o(h)&&h.then(p=>{p&&(s(!1),o("closed"))})}else s(!1),o("closed")};return{...n,closed:i,classes:r,onCancel:()=>{o("cancel"),e.cancelAutoClose&&i("cancel")},onConfirm:()=>{o("confirm"),i("confirm")},showPopup:a}}}),Ik={key:0,class:"fox-dialog__header"},qk=["innerHTML"];function zk(e,o,l,n,a,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{teleport:e.teleport,visible:e.showPopup,"onUpdate:visible":o[0]||(o[0]=c=>e.showPopup=c),"close-on-click-overlay":e.closeOnClickOverlay,"lock-scroll":e.lockScroll,"pop-class":e.popClass,style:t.normalizeStyle(e.popStyle),"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,round:"",onClickOverlay:e.closed,onClickCloseIcon:e.closed},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("view",Ik,[e.$slots.header?t.renderSlot(e.$slots,"header",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.title),1)],64))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-dialog__content",style:t.normalizeStyle({textAlign:e.textAlign})},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):typeof e.content=="string"?(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.content},null,8,qk)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.content),{key:2}))],4),e.noFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-dialog__footer",{[e.footerDirection]:e.footerDirection}])},[e.$slots.footer?t.renderSlot(e.$slots,"footer",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.noCancelBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,size:"small",plain:"",type:"primary",class:"fox-dialog__footer-cancel",onClick:e.onCancel},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.cancelText),1)]),_:1},8,["onClick"])),e.noConfirmBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:1,size:"small",type:"primary",class:"fox-dialog__footer-ok",onClick:e.onConfirm},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1},8,["onClick"]))],64))],2))],2)]),_:3},8,["teleport","visible","close-on-click-overlay","lock-scroll","pop-class","style","overlay-class","overlay-style","onClickOverlay","onClickCloseIcon"])}const us=Z(Dk,[["render",zk]]);class Mk{title="";content="";cancelText="";confirmText="";textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=o=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1}class Pk{options=new Mk;instance;constructor(o){let l=Object.assign(this.options,o),n=document.body,a=l.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):n=l.teleport);const r=document.createElement("view");r.id="dialog-"+l.id;const s={setup(){return l.onUpdate=i=>{i==!1&&n.removeChild(r)},l?.onOpened&&l?.onOpened(),l.teleport=`#${r.id}`,()=>t.h(us,l)}};this.instance=t.createVNode(s),n.appendChild(r),t.render(this.instance,r)}close=()=>{};setDefaultOptions=o=>{};resetDefaultOptions=()=>{}}const Ot=function(e){return new Pk(e)};Ot.install=e=>{e.use(us),e.config.globalProperties.$dialog=Ot};const{componentName:Rk,create:xk,scope:Lk}=j("pull-refresh"),Ok=xk({props:{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}},emits:["change","refresh","update:modelValue"],components:{Loading:te.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=se.useFoxI18n(Lk),a=n(e,["pullingText","loosingText","loadingText"]),r=Ue(),s=t.ref(),i=Mr(s),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal"}),u=t.computed(()=>({[Rk]:!0})),m=t.computed(()=>{switch(c.status){case"pulling":return l.pulling?"":a.pullingText.value;case"loosing":return l.loosing?"":a.loosingText.value;case"loading":return l.loading?"":a.loadingText.value}}),h=t.computed(()=>({transitionDuration:`${e.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),p=t.computed(()=>{const w={};return e.headHeight!=50&&(w.height=fe(e.headHeight)),w}),k=w=>{const V=+(e.pullDistance||e.headHeight);let E=w;return w>V&&(w<V*2?E=(w+V)/2:E=V+w/4),Math.round(E)},g=(w,V)=>{const E=+(e.pullDistance||e.headHeight);c.distance=w,V?c.status="loading":w===0?c.status="normal":w<E?c.status="pulling":c.status="loosing",o("change",{status:c.status,distance:w})},y=()=>c.status!=="loading"&&c.status!=="complete",S=()=>i.value==window?rn()==0:i.value&&i.value.scrollTop==0,d=w=>{y()&&(S()?(r.start(w),c.isPullRefresh=!0):(c.distance=0,c.isPullRefresh=!1))},f=w=>{if(y()){r.move(w);const{deltaY:V}=r;r.isVertical()&&V.value>0&&c.isPullRefresh&&(w.cancelable&&w.preventDefault(),g(k(V.value)))}},b=()=>{c.isPullRefresh&&y()&&r.deltaY.value&&(c.status==="loosing"?(g(+e.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):g(0)),setTimeout(()=>{r.reset()},0)};return t.watch(()=>e.modelValue,w=>{w?g(+e.headHeight,!0):g(0)}),{classes:u,scroller:s,...t.toRefs(c),touchStart:d,touchMove:f,touchEnd:b,getStyle:h,slots:l,getHeightStyle:p,getPullStatus:m}}}),Fk={class:"fox-pull-refresh-container-topbox-text"};function Kk(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),ref:"scroller",onTouchstart:o[0]||(o[0]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:o[1]||(o[1]=(...i)=>e.touchMove&&e.touchMove(...i)),onTouchend:o[2]||(o[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[t.createElementVNode("div",{class:"fox-pull-refresh-container",style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("div",{class:"fox-pull-refresh-container-topbox",style:t.normalizeStyle(e.getHeightStyle)},[e.status=="loading"&&!e.slots.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading fox-pull-refresh-container-topbox-icon"})):t.createCommentVNode("",!0),t.createElementVNode("div",Fk,t.toDisplayString(e.getPullStatus),1),e.status=="pulling"?t.renderSlot(e.$slots,"pulling",{key:1}):t.createCommentVNode("",!0),e.status=="loosing"?t.renderSlot(e.$slots,"loosing",{key:2}):t.createCommentVNode("",!0),e.status=="loading"?t.renderSlot(e.$slots,"loading",{key:3}):t.createCommentVNode("",!0)],4),t.renderSlot(e.$slots,"default")],4)],34)}const zl=Z(Ok,[["render",Kk]]),{create:vk}=j("notify"),Uk=vk({components:{[de.name]:de},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:o}){const l=()=>{e.onClick&&e.onClick()};let n=null;const a=()=>{n&&clearTimeout(n),n=null},r=()=>{o("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,u=>{s.value=e.visible;const m=e.duration;u&&m&&(n=setTimeout(()=>{r()},m))},{immediate:!0});return{onAfterLeave:()=>{a(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:l,isShowPopup:s}}});function Hk(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.isShowPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.isShowPopup=i),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:o[0]||(o[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}const Ml=Z(Uk,[["render",Hk]]),Pl={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let kt=[],Ft=[];const fs=e=>{if(e){const o=document.getElementById(e);Ft=Ft.filter(l=>l.id!==e),kt=kt.filter(l=>l!==e),o&&document.body.removeChild(o)}else kt.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),Ft=[],kt=[]},jk=e=>{const o=document.getElementById(e.id);if(o){const l=Ft.find(a=>a.id===e.id);l?e={...Pl,...l,...e}:e={...Pl,...e};const n=t.createVNode(Ml,e);return t.render(n,o),n.component.data}},Kt=e=>{e.unmount=fs;let o;if(e.id){if(o=e.id,kt.find(r=>r===e.id))return jk(e)}else o=new Date().getTime()+"";e={...Pl,...e},e.id=o,kt.push(e.id),Ft.push(e);const l=document.createElement("view");l.id="notify-"+e.id;const n={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(l)},e.duration)}),()=>t.h(Ml,e)}},a=t.createVNode(n);document.body.appendChild(l),t.render(a,l)},vt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Rl={text(e,o={}){return vt(e),Kt({...o,msg:e})},primary(e,o={}){return vt(e),Kt({...o,msg:e,type:"primary"})},success(e,o={}){return vt(e),Kt({...o,msg:e,type:"success"})},danger(e,o={}){return vt(e),Kt({...o,msg:e,type:"danger"})},warn(e,o={}){return vt(e),Kt({...o,msg:e,type:"warning"})},hide(){fs()},install(e){e.use(Ml)}},{create:Wk}=j("toast"),Yk=Wk({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:o}){let l=null;const n=t.reactive({mounted:!1});t.onMounted(()=>{n.mounted=!0});const a=()=>{l&&(clearTimeout(l),l=null)},r=()=>{n.mounted=!1},s=()=>{a(),e.duration&&(l=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),o("close"))};e.duration&&s(),t.watch(()=>e.duration,k=>{k&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),u=()=>{const k=ie(e.iconSize);return t.h(e.icon,{width:k,height:k,color:e.iconColor})},m=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),h=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:r,clickCover:i,renderIcon:u,hasIcon:c,toastBodyClass:m,toastIconWrapperClass:h,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Xk={key:1,class:"fox-toast-title"},Qk=["innerHTML"];function Gk(e,o,l,n,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:o[0]||(o[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Xk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Qk)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const xl=Z(Yk,[["render",Gk]]),Ll={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1};let bt=[],Ut=[];const ms=e=>{if(e){const o=document.getElementById(e);Ut=Ut.filter(l=>l.id!==e),bt=bt.filter(l=>l!==e),o&&document.body.removeChild(o)}else bt.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),Ut=[],bt=[]},Zk=e=>{const o=document.getElementById(e.id);if(o){const l=Ut.find(a=>a.id===e.id);l?e={...Ll,...l,...e}:e={...Ll,...e};const n=t.createVNode(xl,e);return t.render(n,o),St}},Ht=e=>{e.unmount=ms;let o;if(e.id){if(o=e.id,bt.find(a=>a===e.id))return Zk(e)}else o=new Date().getTime()+"";e={...Ll,...e},e.id=o,bt.push(e.id),Ut.push(e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(xl,e);return t.render(n,l),document.body.appendChild(l),St},Ko=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},St={text(e,o={}){return Ko(e),Ht({...o,type:"text",msg:e})},success(e,o={}){return Ko(e),Ht({icon:te.Success,...o,msg:e,type:"success"})},fail(e,o={}){return Ko(e),Ht({icon:te.Failure,...o,msg:e,type:"fail"})},warn(e,o={}){return Ko(e),Ht({icon:te.Tips,...o,msg:e,type:"warn"})},loading(e,o={}){return Ht({icon:te.Loading,...o,msg:e,type:"loading"})},hide(e){ms(e)},install(e){e.use(xl),e.config.globalProperties.$toast=St}},{componentName:YB,create:Jk}=j("audio"),_k=Jk({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:te.Service,[Rt.name]:Rt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var y=["webkitVisibilityState","visibilitychange"];try{for(let S=0;S<y.length;S++)document.addEventListener(y[S],()=>{document.hidden?n.value.pause():a.playing&&setTimeout(()=>{n.value.play()},200)})}catch(S){S.message}});const r=y=>{const S=n.value;e.autoplay&&S&&S.paused&&S.play(),a.second=S.duration,a.duration=g(S.duration),o("can-play",y)},s=y=>{a.currentTime=parseInt(y.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,n.value.currentTime=a.currentTime,o("fastBack",a.currentTime)},c=()=>{const y=n.value;a.playing?(y.pause(),a.handPlaying=!1):(y.play(),a.handPlaying=!0),a.playing=!a.playing,o("play",a.playing)},u=()=>{a.currentTime++,n.value.currentTime=a.currentTime,o("forward",a.currentTime)},m=y=>{a.currentDuration=g(y),a.percent=y/a.second*100},h=()=>{a.playing=!1,o("ended")},p=y=>{const S=n.value;S.currentTime=a.second*y/100,o("changeProgress",S.currentTime)},k=()=>{a.hanMuted=!a.hanMuted,o("mute",a.hanMuted)},g=y=>{if(!y)return"00:00:00";let S=parseInt(y),d=Math.floor(S/3600),f=Math.floor((S-d*3600)/60),b=S-d*3600-f*60,w="";return w+=("0"+d.toString()).slice(-2)+":",w+=("0"+f.toString()).slice(-2)+":",w+=("0"+b.toString()).slice(-2),w};return t.watch(()=>a.currentTime,y=>{m(y)}),t.provide("audioParent",{children:[],props:e,audioData:a,handleMute:k,forward:u,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(a),audioRef:n,fastBack:i,forward:u,changeStatus:c,progressChange:p,audioEnd:h,onTimeupdate:s,handleMute:k,onCanplay:r,slots:l}}}),eb={class:"fox-audio"},tb={key:0,class:"fox-audio__progress"},ob={class:"fox-audio__time"},nb={class:"fox-audio__bar"},lb=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),ab={class:"fox-audio__time"},rb={key:1,class:"fox-audio__icon"},sb=["controls","src","preload","autoplay","loop","muted"];function ib(e,o,l,n,a,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",eb,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",tb,[t.createElementVNode("div",ob,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",nb,[t.createVNode(s,{modelValue:e.percent,"onUpdate:modelValue":o[0]||(o[0]=c=>e.percent=c),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:t.withCtx(()=>[lb]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",ab,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",rb,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:o[1]||(o[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):(t.openBlock(),t.createBlock(i,{key:1}))],2)])):t.createCommentVNode("",!0),e.type=="none"?(t.openBlock(),t.createElementBlock("div",{key:2,onClick:o[2]||(o[2]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type!="none"?t.renderSlot(e.$slots,"default",{key:3}):t.createCommentVNode("",!0),t.createElementVNode("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:o[3]||(o[3]=(...c)=>e.onTimeupdate&&e.onTimeupdate(...c)),onCanplay:o[4]||(o[4]=(...c)=>e.onCanplay&&e.onCanplay(...c)),onEnded:o[5]||(o[5]=(...c)=>e.audioEnd&&e.audioEnd(...c)),muted:e.hanMuted},null,40,sb)])}const Ol=Z(_k,[["render",ib]]),{componentName:XB,create:cb,scope:db}=j("audio-operate"),ub=cb({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:o}){const{t:l}=se.useFoxI18n(db),n=t.inject("audioParent"),a=t.reactive(n),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(a),customSlot:r,t:l}}}),fb={class:"fox-audio-operate"};function mb(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",fb,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:o[0]||(o[0]=(...i)=>e.fastBack&&e.fastBack(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:o[1]||(o[1]=(...i)=>e.changeStatus&&e.changeStatus(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:o[2]||(o[2]=(...i)=>e.forward&&e.forward(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:o[3]||(o[3]=(...i)=>e.handleMute&&e.handleMute(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("mute")),1)]),_:1},8,["type"])),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)])}const Fl=Z(ub,[["render",mb]]),{componentName:pb,create:hb}=j("avatar"),gb=hb({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:o,shape:l,bgColor:n,color:a}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),u=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const g=s?.avatarGroupRef?.value?.children;g&&k(g)});const m=t.computed(()=>({[pb]:!0,[`fox-avatar-${o.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${l.value||s?.props?.shape||"normal"}`]:!0})),h=t.computed(()=>({width:r.indexOf(o.value)>-1?"":`${o.value}px`,height:r.indexOf(o.value)>-1?"":`${o.value}px`,backgroundColor:`${n.value}`,color:`${a.value}`,marginLeft:u.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(u.maxIndex-u.index)}`:""})),p=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),k=g=>{u.maxIndex=g.length;for(let y=0;y<g.length;y++)g[y]&&g[y].classList&&g[y].classList[0]=="fox-avatar"&&g[y].setAttribute("data-index",y+1);u.index=i?.value?.dataset?.index,u.index==u.maxIndex&&u.index!=s?.props?.maxCount&&(u.showMax=!0)};return{classes:m,styles:h,maxStyles:p,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(u)}}});function yb(e,o,l,n,a,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const jt=Z(gb,[["render",yb]]),{componentName:kb,create:bb}=j("avatar-group"),Sb=bb({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:o,slots:l}){t.toRefs(e);const n=t.ref(null),a=t.ref(0),r=t.computed(()=>({[kb]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:n,index:a}),{classes:r,avatarGroupRef:n}}});function Cb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const Kl=Z(Sb,[["render",Cb]]);var vo=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(vo||{});function wb(e,o,l){let n=0,a=e.length-1,r=null;for(;n<=a;){r=Math.floor((n+a)/2);const s=e[r],i=l(s,o);if(i===1)return r;i===2?n=r+1:i===3&&(a=r-1)}return r}const{componentName:Nb,create:Bb}=j("list"),ps=document.documentElement.clientHeight||document.body.clientHeight||667,Ab=Bb({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:ps},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref(null),a=t.ref(null),r=t.reactive({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),s=t.computed(()=>Math.min(e.containerHeight,ps)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),u=t.computed(()=>({[Nb]:!0})),m=t.computed(()=>r.list.slice(r.start,c.value)),h=()=>{if(a.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},p=()=>{r.cachePositions=[];for(let d=0;d<r.list.length;++d)r.cachePositions[d]={index:d,height:e.height,top:d*e.height,bottom:(d+1)*(e.height+e.margin),dValue:0}},k=()=>{let d=a.value.childNodes;d=Array.from(d).filter(I=>I.nodeType===1);const f=d[0];d.forEach((I,D)=>{if(!I)return;const z=$e(I),{height:N}=z,R=r.cachePositions[D+r.start].height-N;R&&(r.cachePositions[D+r.start].bottom-=R,r.cachePositions[D+r.start].height=N,r.cachePositions[D+r.start].dValue=R)});let b=0;f&&(b=r.start);const w=r.cachePositions.length;let V=r.cachePositions[b].dValue;r.cachePositions[b].dValue=0;for(let I=b+1;I<w;++I){const D=r.cachePositions[I];r.cachePositions[I].top=r.cachePositions[I-1].bottom,r.cachePositions[I].bottom=r.cachePositions[I].bottom-V,D.dValue!==0&&(V+=D.dValue,D.dValue=0)}const E=r.cachePositions[w-1].bottom;r.phantomHeight=E},g=(d=0)=>{let f=wb(r.cachePositions,d,(w,V)=>{const E=w.bottom;return E===V?vo.eq:E<V?vo.lt:vo.gt});return r.cachePositions[f].bottom<d&&(f+=1),f},y=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,l.value.scrollTop=0,p(),r.phantomHeight=e.height*r.list.length},S=()=>{const d=l.value?.scrollTop,{originStartIndex:f}=r,b=g(d);b!==f&&(r.originStartIndex=b,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&o("scroll-bottom")),o(d>r.scrollTop?"scroll-up":"scroll-down",d),r.scrollTop=d};return t.watch(()=>e.listData,d=>{if(r.list=d.slice(),r.list.length===d.length)p(),k();else{y();return}}),t.watch(()=>r.start,()=>{a.value&&r.list.length>0&&k()}),{...t.toRefs(r),list:l,phantom:n,actualContent:a,getTransform:h,visibleData:m,classes:u,getContainerHeight:s,handleScrollEvent:S}}});function Vb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:o[0]||(o[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform()}),ref:"actualContent"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:s},[t.renderSlot(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}const vl=Z(Ab,[["render",Vb]]),{componentName:Tb,create:$b}=j("circleprogress"),Eb=$b({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:o}){const l=!!t.useSlots().default,n=Math.random().toString(36).slice(-8),a=t.computed(()=>({[Tb]:!0})),r=t.computed(()=>{const m=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${m} 0 90 a 45 45 0 1, ${m} 0 -90`}),s=t.computed(()=>De(e.color)?`url(#${n})`:e.color),i=t.computed(()=>{let m=283,h=m*Number(e.progress)/100;return{stroke:De(e.color)?`url(#${n})`:e.color,strokeDasharray:`${h}px ${m}px`}}),c=t.computed(()=>({stroke:e.pathColor})),u=t.computed(()=>{if(!De(e.color))return;let m=e.color;const h=Object.keys(m).sort((k,g)=>parseFloat(k)-parseFloat(g));let p=[];return h.map((k,g)=>{let y={key:"",value:""};y.key=k,y.value=m[k],p.push(y)}),p});return{classes:a,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:u,slotDefault:l,refRandomId:n}}}),Db={viewBox:"0 0 100 100"},Ib=["id"],qb=["offset","stop-color"],zb=["d","stroke-width"],Mb=["d","stroke","stroke-linecap","stroke-width"],Pb={class:"fox-circleprogress-text"},Rb={key:0};function xb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",Db,[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.stop,(s,i)=>(t.openBlock(),t.createElementBlock("stop",{key:i,offset:s.key,"stop-color":s.value},null,8,qb))),128))],8,Ib)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,zb),t.createElementVNode("path",{class:"fox-circleprogress-hover",style:t.normalizeStyle(e.hoverStyle),d:e.path,fill:"none",stroke:e.hoverColor,"stroke-linecap":e.strokeLinecap,"stroke-width":e.strokeWidth},null,12,Mb)])),t.createElementVNode("div",Pb,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Rb,t.toDisplayString(e.progress)+"%",1))])],6)}const Ul=Z(Eb,[["render",xb]]),{componentName:Lb,create:Ob}=j("noticebar"),Fb=Ob({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}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:te.Notice,CircleClose:te.CircleClose},emits:["click","close","across-end"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=t.computed(()=>({[Lb]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),u=t.computed(()=>{let I={};return e.color&&(I.color=e.color),e.background&&(I.background=e.background),e.direction=="vertical"&&(I.height=`${e.height}px`),I}),m=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),h=t.computed(()=>{let I={};if(e.complexAm)I={transform:`translateY(${r.distance}px)`};else if(r.animate){let D=~~(e.height/e.speed/4);I={transition:`all ${D==0?~~(e.height/e.speed):D}s`,"margin-top":`-${e.height}px`}}return I});t.watch(()=>e.text,I=>{p()}),t.watch(()=>e.list,I=>{r.scrollList=[...I]});const p=I=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!n.value||!a.value)return;const D=n.value.getBoundingClientRect().width,z=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?z>D:e.scrollable,r.isCanScroll?(r.wrapWidth=D,r.offsetWidth=z,r.duration=z/e.speed,r.animationClass="play"):r.animationClass=""},0)},k=I=>{o("click",I)},g=I=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",I)},y=I=>{r.firstRound=!1,o("across-end",I),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},S=()=>{d(),r.timer=setInterval(d,~~(e.height/e.speed/4*1e3)+e.standTime)},d=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},f=()=>{r.timer=setInterval(()=>{let I=100;for(let D=0;D<I;D++)b(D,!(D<I-1))},e.standTime+100*e.speed)},b=(I,D)=>{setTimeout(()=>{r.distance-=e.height/100,D&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},I*e.speed)},w=I=>{o("click",I)},V=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(l.default?E(l.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?f():S()},e.standTime)):p(e.text)}),t.watch(()=>l.default?l.default():[],I=>{e.direction==="vertical"&&l.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),E(I))});const E=I=>{I&&I.length>0&&(r.scrollList=I[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:u,contentStyle:m,horseLampStyle:h,wrap:n,content:a,handleClick:k,onClickIcon:g,onAnimationEnd:y,go:w,handleClickIcon:V,slots:l,toPxDesc:fe,wrapContentClass:c}}}),Kb={class:"fox-noticebar__page-lefticon"},vb={ref:"wrap",class:"fox-noticebar__page-wrap"},Ub={class:"showNotica"},Hb=["onClick"];function jb(e,o,l,n,a,r){const s=t.resolveComponent("Notice"),i=t.resolveComponent("CircleClose"),c=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:o[3]||(o[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[t.createElementVNode("view",Kb,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",vb,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:o[0]||(o[0]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u)),"on:webkitAnimationEnd":o[1]||(o[1]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__page-righticon",onClick:o[2]||(o[2]=t.withModifiers((...u)=>e.onClickIcon&&e.onClickIcon(...u),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",Ub,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(u,m)=>(t.openBlock(),t.createBlock(c,{key:m,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:u},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(u,m)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:m,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:h=>e.go(u)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(u),1)])],12,Hb))),128))],4)),t.createElementVNode("view",{class:"go",onClick:o[4]||(o[4]=u=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const Hl=Z(Fb,[["render",jb]]),Wb="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/ytTY2NheXWDs7e7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B,create:Qb,scope:Gb}=j("empty"),Zb={empty:Wb,error:Yb,network:Xb},Jb=Qb({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:o}=se.useFoxI18n(Gb),l=o(e,["description"]),{image:n,imageSize:a}=t.toRefs(e),r=t.computed(()=>a.value?typeof a.value=="number"?`width:${a.value}px;height:${a.value}px`:`width:${a.value};height:${a.value}`:""),i=n.value.startsWith("https://")||n.value.startsWith("http://")||n.value.startsWith("//")?n.value:Zb[n.value];return{...l,imageUrl:i,imgStyle:r}}}),_b={class:"fox-empty"},eS=["src"],tS={key:1,class:"fox-empty-description"};function oS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",_b,[t.createElementVNode("view",{class:"fox-empty-image",style:t.normalizeStyle(e.imgStyle)},[e.$slots.image?t.renderSlot(e.$slots,"image",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.imageUrl?(t.openBlock(),t.createElementBlock("img",{key:0,class:"img",src:e.imageUrl},null,8,eS)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",tS,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const jl=Z(Jb,[["render",oS]]),{create:nS,scope:lS}=j("video"),aS=nS({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:o}){const{t:l}=se.useFoxI18n(lS),n=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=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,E=>{E.src&&t.nextTick(()=>{n.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,E=>{n.state.isMuted=E?E.muted:!1},{immediate:!0});const s=()=>{n.videoElm=a.value,e.options.autoplay&&setTimeout(()=>{n.videoElm.play()},200),e.options.touchPlay&&(n.showTouchMask=!0),e.options.playsinline&&(n.videoElm.setAttribute("playsinline",e.options.playsinline),n.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),n.videoElm.setAttribute("x5-video-player-type","h5-page"),n.videoElm.setAttribute("x5-video-player-fullscreen",!1)),g(),n.showToolbox?i():(n.videoElm.addEventListener("play",()=>{n.state.playing=!0,o("play",n.videoElm)}),n.videoElm.addEventListener("pause",()=>{n.state.playing=!1,o("pause",n.videoElm)}),n.videoElm.addEventListener("ended",p),n.videoElm.addEventListener("timeupdate",lo(h,1e3)))},i=()=>{const E=a.value,I=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];n.player.$player=E,n.progressBar.progressElm=I,n.progressBar.pos=I.getBoundingClientRect(),n.videoSet.progress.width=Math.round(I.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return n.state.playing=!0,!1;if(n.state.playing=!n.state.playing,n.videoElm)if(n.state.playing)try{setTimeout(()=>{n.videoElm.play()},200),n.videoElm.addEventListener("progress",()=>{m()}),n.videoElm.addEventListener("timeupdate",lo(h,1e3)),n.videoElm.addEventListener("ended",p),o("play",n.videoElm)}catch{k()}else n.videoElm.pause(),o("pause",n.videoElm)},u=E=>{var I=Math.floor(E/3600);I<10&&(I="0"+I);var D=Math.floor(E%3600/60);D<10&&(D="0"+D);var z=Math.round(E%3600%60);z<10&&(z="0"+z);var N="";return I!=0?N=I+":"+D+":"+z:N=D+":"+z,N},m=()=>{n.videoSet.loaded&&(n.videoSet.loaded=n.videoElm.buffered.end(0)/n.videoElm.duration*100)},h=()=>{const E=n.videoElm.currentTime/n.videoElm.duration;n.videoSet.progress.current=Math.round(n.videoSet.progress.width*E),n.videoSet.totalTime=u(n.videoElm.duration),n.videoSet.displayTime=u(n.videoElm.currentTime),o("time",n.videoSet.displayTime,n.videoSet.totalTime)},p=()=>{n.state.playing=!1,n.state.isEnd=!0,n.videoSet.displayTime="00:00",n.videoSet.progress.current=0,n.videoElm.currentTime=0,o("playend",n.videoElm)},k=()=>{n.state.isError=!0},g=()=>{n.state.vol=e.options.volume},y=()=>{n.state.isMuted=!n.state.isMuted,n.videoElm.muted=n.state.isMuted},S=()=>{},d=E=>{let D=E.targetTouches[0].pageX-n.progressBar.pos.left;D<=0&&(D=0),D>=n.videoSet.progress.width&&(D=n.videoSet.progress.width),n.videoSet.progress.current=D;let z=n.videoSet.progress.current/n.videoSet.progress.width;n.videoElm.duration&&b(z,n.videoElm.duration)},f=E=>{let D=E.changedTouches[0].pageX-n.progressBar.pos.left;n.videoSet.progress.current=D;let z=D/n.videoSet.progress.width;n.videoElm.duration&&b(z,n.videoElm.duration)},b=(E,I)=>{n.videoElm.currentTime=Math.floor(E*I)},w=()=>{n.state.isError=!1,s()},V=()=>{n.state.fullScreen?(n.state.fullScreen=!1,document.webkitCancelFullScreen()):(n.state.fullScreen=!0,n.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:a,...t.toRefs(e),...t.toRefs(n),handleError:k,isDisabled:r,play:c,handleMuted:y,touchSlidSrart:S,touchSlidMove:d,touchSlidEnd:f,retry:w,fullScreen:V,t:l}}}),rS={class:"fox-video",ref:"videocon"},sS=["muted","autoplay","loop","poster","controls","preload"],iS=["src","type"],cS={class:"fox-video-controller__now"},dS={class:"fox-video-controller__progress"},uS={class:"fox-video-controller__progress-value",ref:"progressBar"},fS=[t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1)],mS={class:"fox-video-controller__played",ref:"playedBar"},pS={class:"fox-video-controller__total"},hS={class:"fox-video-error"},gS={class:"fox-video-error-tip"};function yS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",rS,[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:o[0]||(o[0]=(...s)=>e.handleError&&e.handleError(...s))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,iS)],40,sS),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:o[1]||(o[1]=(...s)=>e.play&&e.play(...s))},null,512)):t.createCommentVNode("",!0),e.showToolbox&&!e.isDisabled?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:o[2]||(o[2]=(...s)=>e.play&&e.play(...s))},null,512)),[[t.vShow,!e.state.playing]]):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[t.createElementVNode("div",{class:"fox-video-controller__playbtn",onClick:o[3]||(o[3]=(...s)=>e.play&&e.play(...s))}),t.createElementVNode("div",cS,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",dS,[t.createElementVNode("div",uS,[t.createElementVNode("div",{class:"buffered",style:t.normalizeStyle({width:`${e.videoSet.loaded}%`})},null,4),t.createElementVNode("div",{class:"fox-video-controller__ball",style:t.normalizeStyle({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:o[4]||(o[4]=t.withModifiers(s=>e.touchSlidMove(s),["stop","prevent"])),onTouchstart:o[5]||(o[5]=t.withModifiers(s=>e.touchSlidSrart(),["stop"])),onTouchend:o[6]||(o[6]=t.withModifiers(s=>e.touchSlidEnd(s),["stop"]))},fS,36),t.createElementVNode("div",mS,null,512)],512)]),t.createElementVNode("div",pS,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:o[7]||(o[7]=(...s)=>e.handleMuted&&e.handleMuted(...s))},null,2),t.createElementVNode("div",{class:"fox-video-controller__full",onClick:o[8]||(o[8]=(...s)=>e.fullScreen&&e.fullScreen(...s))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",hS,[t.createElementVNode("p",gS,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:o[9]||(o[9]=(...s)=>e.retry&&e.retry(...s))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const Ct=Z(aS,[["render",yS]]),{create:kS,componentName:bS}=j("steps"),Wl=kS({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:o,slots:l}){const n=t.reactive({children:[]}),a=t.computed(()=>{const i=bS;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&n.children.push(i)},s=i=>{o("click-step",i)};return t.provide("parent",{relation:r,state:n,props:e,onEmit:s}),()=>t.h("view",{class:a.value},l.default?.())}}),{create:SS,componentName:CS}=j("step"),wS=SS({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=t.getCurrentInstance(),o=t.inject("parent");o.relation(e);const l=t.reactive({dot:o.props.progressDot}),n=t.computed(()=>o.state.children.indexOf(e)+1),a=()=>{const c=n.value;return c<+o.props.current?"finish":c===+o.props.current?"process":"wait"},r=t.computed(()=>a()),s=t.computed(()=>{const c=CS;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{o.onEmit(n.value)};return{...t.toRefs(l),index:n,classes:s,handleClickStep:i}}}),NS={class:"fox-step-head"},BS=t.createElementVNode("view",{class:"fox-step-line"},null,-1),AS={class:"fox-step-icon-inner"},VS={key:1,class:"fox-step-inner"},TS={class:"fox-step-main"},$S={class:"fox-step-title"},ES={key:0},DS={key:0,class:"fox-step-content"},IS=["innerHTML"];function qS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[t.createElementVNode("view",NS,[BS,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",AS,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",VS,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",TS,[t.createElementVNode("view",$S,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",ES,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",DS,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,IS)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const Yl=Z(wS,[["render",qS]]),{create:zS,componentName:Xl}=j("swiper"),MS=zS({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:o,slots:l}){const n=t.ref(),a=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=Ue(),s=t.computed(()=>({[Xl]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const A=Xl;return{[`${A}-inner`]:!0,[`${A}-vertical`]:i.value}}),u=t.computed(()=>{const A=Xl;return{[`${A}-pagination`]:!0,[`${A}-pagination-vertical`]:i.value}}),m=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),h=t.computed(()=>r.direction.value===e.direction),p=t.computed(()=>a.children.length),k=t.computed(()=>a[i.value?"height":"width"]),g=t.computed(()=>p.value*k.value),y=t.computed(()=>a.rect?(i.value?a.rect.height:a.rect.width)-k.value*p.value:0),S=t.computed(()=>(a.active+p.value)%p.value),d=()=>{let A=0;A=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${A}px)`,[i.value?"height":"width"]:`${k.value*p.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},f=A=>{let O=[];const x=a.childrenVNode.length;let M=l?.default?.();if(M=M.filter(F=>F.children&&Array.isArray(F.children)),M.forEach(F=>{O=O.concat(F.children)}),!x)a.childrenVNode=O.slice(),A.proxy&&a.children.push(A.proxy);else if(x>O.length)a.children=a.children.filter(F=>A.proxy!==F);else if(x<O.length){for(let F=0;F<x;F++)if(O[F].key!==a.childrenVNode[F].key){A.proxy&&a.children.splice(F,0,A.proxy),A.vnode&&a.childrenVNode.splice(F,0,A.vnode);break}x!==O.length&&(A.proxy&&a.children.push(A.proxy),A.vnode&&a.childrenVNode.push(A.vnode))}else a.childrenVNode=O.slice(),A.proxy&&a.children.push(A.proxy)},b=(A,O=0)=>{let x=A*k.value;e.loop||(x=Math.min(x,-y.value));let M=O-x;return e.loop||(M=Fe(M,y.value,0)),M},w=A=>{const{active:O}=a;return A?e.loop?Fe(O+A,-1,p.value):Fe(O+A,0,p.value-1):O},V=({pace:A=0,offset:O=0,isEmit:x=!1})=>{if(p.value<=1)return;const{active:M}=a,F=w(A),G=b(F,O);if(e.loop){if(a.children[0]&&G!==y.value){const Y=G<y.value;a.children[0].setOffset(Y?g.value:0)}if(a.children[p.value-1]&&G!==0){const Y=G>0;a.children[p.value-1].setOffset(Y?-g.value:0)}}a.active=F,a.offset=G,x&&M!==a.active&&o("change",S.value),d()},E=()=>{a.moving=!0,a.active<=-1&&V({pace:p.value}),a.active>=p.value&&V({pace:-p.value})},I=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},D=A=>{E(),r.reset(),We(()=>{We(()=>{a.moving=!1,V({pace:A,isEmit:!0})})})},z=()=>{D(-1)},N=()=>{D(1)},B=A=>{E(),r.reset(),We(()=>{a.moving=!1;let O;e.loop&&p.value===A?O=a.active===0?0:A:O=A%p.value,V({pace:O-a.active,isEmit:!0})})},R=()=>{e.autoPlay<=0||p.value<=1||(I(),a.autoplayTimer=setTimeout(()=>{N(),R()},Number(e.autoPlay)))},L=(A=+e.initPage)=>{I(),a.rect=n.value.getBoundingClientRect(),A=Math.min(p.value-1,A),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=A,a.offset=b(a.active),a.moving=!0,d(),R()},$=A=>{e.isPreventDefault&&A.preventDefault(),e.isStopPropagation&&A.stopPropagation(),e.touchable&&(r.start(A),a.touchTime=Date.now(),I(),E())},T=A=>{e.touchable&&a.moving&&(r.move(A),h.value&&V({offset:m.value}))},q=A=>{if(!e.touchable||!a.moving)return;const O=m.value/(Date.now()-a.touchTime);if((Math.abs(O)>.3||Math.abs(m.value)>+(k.value/2).toFixed(2))&&h.value){let M=0;const F=i.value?r.offsetY.value:r.offsetX.value;e.loop?M=F>0?m.value>0?-1:1:0:M=-Math[m.value>0?"ceil":"floor"](m.value/k.value),V({pace:M,isEmit:!0})}else m.value&&V({pace:0});a.moving=!1,d(),R()};return t.provide("parent",{props:e,size:k,relation:f}),Te({prev:z,next:N,to:B}),t.onDeactivated(()=>{I()}),t.onBeforeUnmount(()=>{I()}),t.watch(()=>e.initPage,A=>{t.nextTick(()=>{L(Number(A))})}),t.watch(()=>a.children.length,()=>{t.nextTick(()=>{L()})}),t.watch(()=>e.autoPlay,A=>{A>0?R():I()}),{state:a,classes:s,classesInner:c,classesPagination:u,container:n,activePagination:S,onTouchStart:$,onTouchMove:T,onTouchEnd:q}}});function PS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.classesInner),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classesPagination)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(s,i)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===i}),key:i},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const wt=Z(MS,[["render",PS]]),{create:RS,componentName:xS}=j("swiper-item"),LS=RS({setup(e,{slots:o}){const l=t.inject("parent");l.relation(t.getCurrentInstance());const n=t.reactive({offset:0}),a=t.computed(()=>({[xS]:!0})),r=t.computed(()=>{const i={},c=l?.props.direction;return l?.size.value&&(i[c==="horizontal"?"width":"height"]=`${l?.size.value}px`),n.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${n.offset}px)`),i}),s=i=>{n.offset=i};return t.onUnmounted(()=>{l.relation(t.getCurrentInstance(),"unmount")}),Te({setOffset:s}),{style:r,classes:a}}});function OS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const Nt=Z(LS,[["render",OS]]),hs={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:FS}=j("image-preview-item"),KS=FS({props:{...hs,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:{[Ct.name]:Ct,[Nt.name]:Nt},setup(e,{emit:o}){const l=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),n=Ue(),a=t.computed(()=>{const{rootWidth:z,rootHeight:N}=e,B=N/z;return l.imageRatio>B}),r=t.computed(()=>{const z=e.image;if(z&&z.src){const{scale:N,moveX:B,moveY:R,moving:L,zooming:$}=l,T={transitionDuration:$||L?"0s":".3s"};if(N!==1){const q=B/N,A=R/N;T.transform=`scale(${N}, ${N}) translate(${q}px, ${A}px)`}return T}return{}}),s=t.computed(()=>{if(l.imageRatio){const{rootWidth:z,rootHeight:N}=e,B=a.value?N/l.imageRatio:z;return Math.max(0,(l.scale*B-z)/2)}return 0}),i=t.computed(()=>{if(l.imageRatio){const{rootWidth:z,rootHeight:N}=e,B=a.value?N:z*l.imageRatio;return Math.max(0,(l.scale*B-N)/2)}return 0}),c=z=>{const{naturalWidth:N,naturalHeight:B}=z.target;l.imageRatio=B/N},u=()=>{m(1),l.moveX=0,l.moveY=0},m=z=>{z=Fe(z,+e.minZoom,+e.maxZoom+1),z!==l.scale&&(l.scale=z,o("scale",{scale:z,index:e.initNo}))},h=()=>{const z=l.scale>1?1:2;m(z),l.moveX=0,l.moveY=0},p=z=>Math.sqrt((z[0].clientX-z[1].clientX)**2+(z[0].clientY-z[1].clientY)**2);let k,g,y,S,d,f,b;const w=z=>{const{touches:N}=z,{offsetX:B}=n;n.start(z),b=N.length,k=l.moveX,g=l.moveY,f=Date.now(),l.moving=b===1&&l.scale!==1,l.zooming=b===2&&!B.value,l.zooming&&(y=l.scale,S=p(z.touches))},V=z=>{const{touches:N}=z;if(n.move(z),(l.moving||l.zooming)&&an(z,!0),l.moving){const{deltaX:B,deltaY:R}=n,L=B.value+k,$=R.value+g;l.moveX=Fe(L,-s.value,s.value),l.moveY=Fe($,-i.value,i.value)}if(l.zooming&&N.length===2){const B=p(N),R=y*B/S;m(R)}},E=()=>{if(b==1&&e.video&&e.video.source||b>1)return;const{offsetX:z,offsetY:N}=n,B=Date.now()-f,R=250,L=5;z.value<L&&N.value<L&&B<R&&(d?(clearTimeout(d),d=null,h()):d=setTimeout(()=>{e.contentClose&&o("close"),d=null},R))},I=z=>{let N=!1;(l.moving||l.zooming)&&(N=!0,l.moving&&k===l.moveX&&g===l.moveY&&(N=!1),z.touches.length||(l.zooming&&(l.moveX=Fe(l.moveX,-s.value,s.value),l.moveY=Fe(l.moveY,-i.value,i.value),l.zooming=!1),l.moving=!1,k=0,g=0,y=1,l.scale<1&&u(),l.scale>e.maxZoom&&(l.scale=+e.maxZoom))),an(z,N),E(),n.reset()},D=()=>{o("close")};return t.watch(()=>e.initNo,u),t.watch(()=>e.show,z=>{z||u()}),{...t.toRefs(l),onTouchStart:w,onTouchMove:V,onTouchEnd:I,getDistance:p,imageStyle:r,imageLoad:c,closeSwiper:D}}}),vS=["src"];function US(e,o,l,n,a,r){const s=t.resolveComponent("fox-video"),i=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(i,{onClick:e.closeSwiper},{default:t.withCtx(()=>[t.createElementVNode("view",{style:t.normalizeStyle(e.imageStyle),class:"fox-image-preview-box",onTouchstart:o[1]||(o[1]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:o[2]||(o[2]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:o[3]||(o[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:o[4]||(o[4]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[e.image&&e.image.src?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:o[0]||(o[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,vS)):t.createCommentVNode("",!0),e.video&&e.video.source?(t.openBlock(),t.createBlock(s,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):t.createCommentVNode("",!0)],36)]),_:1},8,["onClick"])}const HS=Z(KS,[["render",US]]),{create:jS}=j("image-preview"),WS=jS({props:{...hs,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:HS,CircleClose:te.CircleClose,[de.name]:de,[wt.name]:wt},setup(e,{emit:o}){const l=t.ref(),n=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),a=t.computed(()=>{const m="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${m}-right`:`${m}-left`}`}),r=t.computed(()=>Zt(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=m=>{m!==n.active&&(n.active=m,o("change",n.active))},i=()=>{ds(e.beforeClose,{args:[n.active],done:()=>c()})},c=()=>{n.showPop=!1,o("close")},u=()=>{if(l.value){const m=$e(l.value);n.rootHeight=m.height,n.rootWidth=m.width}};return t.watch(()=>e.show,m=>{n.showPop=m,m&&(s(e.initNo),u())}),t.watch(()=>e.initNo,m=>{m!=n.active&&s(m)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:l,...t.toRefs(n),onClose:i,mergeImages:r,setActive:s,iconClasses:a}}}),YS={class:"fox-image-preview",ref:"swipeRef"},XS={key:0,class:"fox-image-preview-index"};function QS(e,o,l,n,a,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),u=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(u,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":o[1]||(o[1]=m=>e.showPop=m),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",YS,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(m,h)=>(t.openBlock(),t.createBlock(s,{key:h,video:h<e.videos.length?m:{},image:h>=e.videos.length?m:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",XS,t.toDisplayString(e.active+1)+" / "+t.toDisplayString(e.mergeImages.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.iconClasses),onClick:o[0]||(o[0]=(...m)=>e.onClose&&e.onClose(...m))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const gs=Z(WS,[["render",QS]]);class GS{show=!1;images=[];videos=[];contentClose=!0;initNo=0;paginationVisible=!1;paginationColor="";autoplay=0;isWrapTeleport=!1;showIndex=!0;closeable=!1;closeIconPosition="top-right";beforeClose;maxZoom=3;minZoom=1/3;isLoop=!0;teleport="body"}class ZS{options=new GS;constructor(o){const l=Object.assign(this.options,o),{unmount:n}=Zs(l,{name:"image-preview",components:[de,Ct,wt,Nt,lt],wrapper:()=>({setup(){return()=>(l.onClose=()=>{l.show=!1,t.nextTick(()=>{n()})},t.h(gs,l))}})})}}const Uo=e=>new ZS(e);Uo.install=e=>{e.use(gs)};function JS(e){const o=t.getCurrentInstance();if(o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const{componentName:ZB,create:_S}=j("countup"),e0=_S({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:o}){const l=t.ref(null),n=t.ref([]),a=D=>{D&&n.value.push(D)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:u}=t.reactive(e);t.watch(()=>e.customChangeNum,(D,z)=>{h(),S(0)}),t.watch(()=>e.machinePrizeLevel,(D,z)=>{r.prizeLevelTrun=D}),t.watch(()=>e.initNum,(D,z)=>{r.current=D,r.valFlag=!1,m()}),t.watch(()=>e.endNum,(D,z)=>{r.current=e.initNum,r.valFlag=!1,m()});const m=()=>{if(r.valFlag)return!1;s&&(i||c?u!="machine"&&S():(y(),setTimeout(()=>{r.valFlag=!0},300)))},h=()=>{clearInterval(Number(r.timer)),r.timer=null},p=(D,z,N)=>{const B=(D.toString().split(".")[1]||"").length,R=(z.toString().split(".")[1]||"").length,L=Math.pow(10,Math.max(B,R));return N=="-"?Number((D*L-z*L).toFixed(0))/L:Number((D*L+z*L).toFixed(0))/L},k=D=>{let{num_total_len:z,pointNum:N,initDigit1:B,initDigit2:R,sortFlag:L}=r,$=L=="add"||L=="equal"?String(R)[D-(z-N)]:10-Number(String(R)[D-(z-N)]),T=L=="add"||L=="equal"?String(B)[D]:10-Number(String(B)[D]),q=D>z-N-1?-$*100+"%":D<=String(B).length-1?-T*100+"%":0;return q=="-1000%"&&(q=0),q},g=D=>{let{num_total_len:z,pointNum:N,initDigit1:B,initDigit2:R,sortFlag:L}=r,$=String(R)[D-(z-N)];return D>z-N-1?$||0:D<=String(B).length-1?String(B)[D]:0},y=()=>{let{endNum:D,initNum:z,speed:N,toFixed:B}=e,R=setInterval(()=>{if(z>D)if(r.current<=D||r.current<=N)r.current=D.toFixed(B),clearInterval(R),o("scroll-end"),r.valFlag=!1;else{let L=parseFloat(String(r.current))-parseFloat(String(N));r.current=L.toFixed(B)}else if(r.current>=D)r.current=D.toFixed(B),clearInterval(R),o("scroll-end"),r.valFlag=!1;else{let L=parseFloat(String(r.current))+parseFloat(String(N));r.current=L.toFixed(B)}},e.during)},S=D=>{let{initNum:z,endNum:N,toFixed:B,customBgImg:R}=e;R&&(z=e.customChangeNum);let L,$,T,q;z!=0?(B!=0&&(z=Number(z.toFixed(B))),String(z).indexOf(".")>-1?(L=String(z).split(".")[0].length,$=String(z).split(".")[1].length):(L=String(z).length,$=0)):(L=1,$=0),N!=0?(B!=0&&(N=Number(N.toFixed(B))),String(N).indexOf(".")>-1?(T=String(N).split(".")[0].length,q=String(N).split(".")[1].length):(T=String(N).length,q=0)):(T=1,q=0);let A=L>=T?L:T,O=$>=q?$:q;r.num_total_len=A+O,r.pointNum=O,z>N?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=p(z,N,"-"),r.numberVal=Number(String(z))):z<N?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=p(N,z,"-"),r.numberVal=Number(String(N))):r.sortFlag="equal";var x=1;for(let F=0;F<r.pointNum;F++)x*=10;var M=r.numberVal*x;if(r.relNum=M,B!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(M).length),String(z).indexOf(".")>-1){let F=String(z).split(".");r.initDigit1=Number(F[0]),r.initDigit2=Number(F[1])}else r.initDigit1=z,r.initDigit2=0;i&&!R?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let F=n.value[r.num_total_len-1];d(F)}):D!==0&&w()},d=D=>{h();var z=1;r.pointNum!=0&&(z=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{f(D),r.totalCount=p(r.totalCount,z,"-"),r.totalCount<=0&&(h(),o("scroll-end"),r.valFlag=!1)},e.during)},f=D=>{let z=D.getAttribute("turn-number"),N;if(r.sortFlag=="add"?N=parseInt(String(z))+1:N=parseInt(String(z))-1>=0?parseInt(String(z))-1:9,D.setAttribute("turn-number",String(N)),(D.style.transition=="none 0s ease 0s"||N==1||!D.style.transition)&&(D.style.transition=`all linear ${e.during}ms`),N==10||r.sortFlag=="reduce"&&N==0){var B=null;D.style.top=`-${r.sortFlag=="add"?N*100:(10-N)*100}%`,D.setAttribute("turn-number","0"),B=setTimeout(()=>{B&&clearTimeout(B),D.style.transition="none",D.style.top="0",b(D,N)},.975*e.during)}else D.style.top=`-${r.sortFlag=="add"?N*100:(10-N)*100}%`;D.style.top=="-100%"&&r.sortFlag=="reduce"&&f(D.previousSibling)},b=(D,z)=>{setTimeout(()=>{z==10&&D.previousSibling&&f(D.previousSibling)},200)},w=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{o("scroll-end"),r.valFlag=!1})})},V=()=>{for(r.notPrize=[];r.notPrize.length<3;){var D=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(D)==-1&&r.notPrize.push(D)}};JS({machineLuck:()=>{const D=e.machineTurnMore<0?0:e.machineTurnMore;let z=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&V();for(let N=0;N<e.machineNum;N++)setTimeout(()=>{let B=z*(N+1+parseFloat(String(D)));r.prizeYPrev.length!=0&&(r.prizeY[N]=r.prizeYPrev[N]);let R=r.prizeYPrev[N]?r.prizeYPrev[N]:0,L=B+R+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(z-R);r.prizeLevelTrun<0&&(L+=e.numHeight*r.notPrize[N]),I(N,L,R)},500*N)}});const I=(D,z,N)=>{let B=setInterval(()=>{if(N<=z)N+=10,r.prizeY[D]=parseFloat(String(N));else if(clearInterval(B),B=null,r.finshMachine+=1,r.prizeY[D]=z,r.finshMachine==e.machineNum){let R=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach($=>{let T=$;for(;T>R;)T-=R;r.prizeYPrev.push(T)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(o("scroll-end",!1),r.valFlag=!1):(o("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{m()})}),t.onUnmounted(()=>{h(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:l,setRef:a,topNumber:k,turnNumber:g}}}),t0={class:"fox-countup"},o0=["turn-number"];function n0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",t0,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__machine",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+u,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,o0))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px",top:0,left:e.numWidth*(e.num_total_len-e.pointNum)+"px"})},".",4)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.current),1)],64))],64))])}const Ql=Z(e0,[["render",n0]]),l0=e=>{if(!e)return Date.now();let o=Number(e),l=o>0?+o:o.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:a0,create:r0}=j("countdown"),s0=r0({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:o,slots:l}){const n=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),a=t.computed(()=>({[a0]:!0})),r=t.computed(()=>c(n.restTime)),s=()=>{n.handleEndTime=e.endTime,n.diffTime=Date.now()-l0(e.startTime),n.counting||(n.counting=!0),i()},i=()=>{window!==void 0&&(n.timer=requestAnimationFrame(()=>{if(n.counting){const k=Date.now()-n.diffTime,g=Math.max(n.handleEndTime-k,0);n.restTime=g,g||(n.counting=!1,h(),o("on-end")),g>0&&i()}}))},c=(k,g)=>{const y=k;let S={d:0,h:0,m:0,s:0,ms:0};const d=1e3,f=60*d,b=60*f,w=24*b;return y>0&&(S.d=y>=d?Math.floor(y/w):0,S.h=Math.floor(y%w/b),S.m=Math.floor(y%b/f),S.s=Math.floor(y%f/d),S.ms=Math.floor(y%d)),g=="custom"?S:u({...S})},u=k=>{let{d:g,h:y,m:S,s:d,ms:f}=k,b=e.format;if(b.includes("DD")?b=b.replace("DD",et(g)):y+=Number(g)*24,b.includes("HH")?b=b.replace("HH",et(y)):S+=Number(y)*60,b.includes("mm")?b=b.replace("mm",et(S)):d+=Number(S)*60,b.includes("ss")?b=b.replace("ss",et(d)):f+=Number(d)*1e3,b.includes("S")){const w=et(f,3).toString();b.includes("SSS")?b=b.replace("SSS",w):b.includes("SS")?b=b.replace("SS",w.slice(0,2)):b.includes("S")&&(b=b.replace("SS",w.slice(0,1)))}return b},m=()=>{!n.counting&&!e.autoStart&&(n.counting=!0,n.handleEndTime=Date.now()+Number(n.restTime),i(),o("on-restart",n.restTime))},h=()=>{cancelAnimationFrame(n.timer),n.counting=!1,o("on-paused",n.restTime)},p=()=>{e.autoStart||(h(),n.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():n.restTime=e.time}),t.watch(()=>n.restTime,k=>{let g=c(k,"custom");o("update:modelValue",g),o("input",g)}),t.watch(()=>e.paused,(k,g)=>{g?(n.counting||(n.counting=!0,n.handleEndTime=Date.now()+Number(n.restTime),i()),o("on-restart",n.restTime)):n.counting&&h()}),t.watch(()=>e.endTime,k=>{s()}),t.watch(()=>e.startTime,k=>{s()}),{...t.toRefs(e),slots:l,classes:a,start:m,pause:h,renderTime:r,reset:p}}}),i0=["innerHTML"];function c0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,i0))],2)}const Gl=Z(s0,[["render",c0]]),{create:d0}=j("badge"),u0=d0({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const o=t.reactive({}),l=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),n=t.computed(()=>{if(e.dot)return;const a=e.value,r=e.max;return typeof a=="number"&&typeof r=="number"&&r<a?`${r}+`:a});return{state:o,stl:l,content:n}}}),f0={class:"fox-badge"},m0=["textContent"];function p0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",f0,[t.withDirectives(t.createElementVNode("view",{class:"fox-badge__icon",style:t.normalizeStyle(e.stl)},[t.renderSlot(e.$slots,"icon")],4),[[t.vShow,!e.hidden&&!e.dot&&e.$slots.icon]]),t.renderSlot(e.$slots,"default"),t.withDirectives(t.createElementVNode("view",{textContent:t.toDisplayString(e.content),class:t.normalizeClass(["fox-badge__content fox-badge__content--sup",{"fox-badge__content--dot":e.dot,"fox-badge__content--bubble":!e.dot&&e.bubble}]),style:t.normalizeStyle(e.stl)},null,14,m0),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const Zl=Z(u0,[["render",p0]]),{componentName:h0,create:g0}=j("tag"),y0=g0({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}},components:{Close:te.Close},emits:["close","click"],setup(e,{emit:o}){return{classes:t.computed(()=>{const s=h0;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}}),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(),o("close",s)},onClick:s=>{o("click",s)}}}});function k0(e,o,l,n,a,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const Wt=Z(y0,[["render",k0]]),{create:b0}=j("popover"),S0=b0({components:{FoxPopup:de},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:o}){const l=t.ref(),n=t.ref(),a=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const f="fox-popover-arrow",b=e.location,w=b.split("-")[0];return`${f} ${f}-${w} ${f}--${b}`}),c=t.computed(()=>{const f={},{bgColor:b,arrowOffset:w,location:V}=e,E=V.split("-")[0],I=V.split("-")[1],D=16;return b&&(f[`border${u(E)}Color`]=b),e.arrowOffset!=0&&(["bottom","top"].includes(E)&&(I||(f.left=`calc(50% + ${w}px)`),I=="start"&&(f.left=`${D+w}px`),I=="end"&&(f.right=`${D-w}px`)),["left","right"].includes(E)&&(I||(f.top=`calc(50% - ${w}px)`),I=="start"&&(f.top=`${D-w}px`),I=="end"&&(f.bottom=`${D+w}px`))),f}),u=f=>(f=f.toLowerCase(),f=f.replace(/\b\w+\b/g,b=>b.substring(0,1).toUpperCase()+b.substring(1)),f),m=t.computed(()=>{let f={};if(!r.value||!s.value)return{};const b=s.value.width,w=s.value.height,{width:V,height:E,left:I,top:D}=r.value,{location:z,offset:N}=e,B=z.split("-")[0],R=z.split("-")[1];let L=0,$=0;if(Zt(N)&&N.length==2&&(L+=Number(N[1]),$+=Number(N[0])),V){if(["bottom","top"].includes(B)){const T=B=="bottom"?E+L:-(w+L);f.top=`${D+T}px`,R||(f.left=`${-(b-V)/2+I+$}px`),R=="start"&&(f.left=`${I+$}px`),R=="end"&&(f.left=`${r.value.right+$}px`)}if(["left","right"].includes(B)){const T=B=="left"?-(b+L):V+L;f.left=`${I+T}px`,R||(f.top=`${D-w/2+E/2-4+$}px`),R=="start"&&(f.top=`${D+$}px`),R=="end"&&(f.top=`${D+E+$}px`)}}return f}),h=t.computed(()=>{const f={};return e.bgColor&&(f.background=e.bgColor),f}),p=()=>{let f=$e(l.value);e.targetId&&(f=$e(document.querySelector(`#${e.targetId}`))),r.value=f,setTimeout(()=>{s.value={height:n.value?.clientHeight,width:n.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{p()},200)}),t.watch(()=>e.visible,f=>{a.value=f,f?(window.addEventListener("touchstart",d,!0),p()):window.removeEventListener("touchstart",d,!0)});const k=f=>{o("update",f),o("update:visible",f)},g=()=>{k(!e.visible),o("open")},y=()=>{o("update:visible",!1),o("close")},S=(f,b)=>{!f.disabled&&o("choose",f,b),e.closeOnClickAction&&y()},d=f=>{const b=l.value,w=n.value;let V=b&&!b.contains(f.target);if(e.targetId){const E=document.querySelector(`#${e.targetId}`);V=E&&!E.contains(f.target)}V&&w&&!w.contains(f.target)&&e.closeOnClickOutside&&y()};return{showPopup:a,openPopover:g,popoverArrow:i,closePopover:y,chooseItem:S,popoverRef:l,popoverContentRef:n,getRootPosition:m,customStyle:h,popoverArrowStyle:c,renderIcon:tr}}}),C0={ref:"popoverContentRef",class:"fox-popover-content-group"},w0=["onClick"],N0={class:"fox-popover-menu-item-name"};function B0(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.targetId?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:o[0]||(o[0]=(...i)=>e.openPopover&&e.openPopover(...i))},[t.renderSlot(e.$slots,"reference")],512)),t.createElementVNode("view",{class:t.normalizeClass(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:t.normalizeStyle(e.getRootPosition)},[t.createVNode(s,{visible:e.showPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.showPopup=i),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:t.normalizeStyle(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:t.withCtx(()=>[t.createElementVNode("view",C0,[e.showArrow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.popoverArrowStyle)},null,6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(u=>e.chooseItem(i,c),["stop"])},[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",N0,t.toDisplayString(i.name),1)],10,w0))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Yt=Z(S0,[["render",B0]]),A0=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(o){const{avatarShape:l,round:n,avatarSize:a}=t.toRefs(o),r=t.computed(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${l.value}`]:l.value}});return{avatarShape:l,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:n.value}),getStyle:()=>a.value?{width:a.value,height:a.value}:{width:"50px",height:"50px"}}}}),{create:V0}=j("skeleton"),T0=V0(A0({[jt.name]:jt})),$0={key:0},E0={key:1,class:"fox-skeleton"},D0={key:0,class:"fox-skeleton-animation"},I0={class:"fox-skeleton-content"};function q0(e,o,l,n,a,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",E0,[e.animated?(t.openBlock(),t.createElementBlock("view",D0)):t.createCommentVNode("",!0),t.createElementVNode("view",I0,[e.avatar?(t.openBlock(),t.createBlock(s,{key:0,class:t.normalizeClass(e.avatarClass),shape:e.avatarShape,style:t.normalizeStyle(e.getStyle())},null,8,["class","shape","style"])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-skeleton-content__line",style:t.normalizeStyle({width:e.width})},[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockTitle")),style:t.normalizeStyle({height:e.height})},null,6)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.row),i=>(t.openBlock(),t.createElementBlock("view",{key:i,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockLine")),style:t.normalizeStyle({height:e.height})},null,6))),128))],4)])])):(t.openBlock(),t.createElementBlock("view",$0,[t.renderSlot(e.$slots,"default")]))}const Jl=Z(T0,[["render",q0]]),{create:z0,componentName:M0}=j("collapse"),P0=z0({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref(e.modelValue||(e.accordion?"":[])),a=t.computed(()=>({[M0]:!0}));t.watch(()=>e.modelValue,c=>{n.value=c});const r=(c,u,m=!0)=>{n.value=c,o("update:modelValue",c),o("change",c,u,m)},s=c=>{if(e.accordion)n.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(n.value))if(n.value.includes(c)){const u=n.value.filter(m=>m!==c);r(u,c,!1)}else{const u=n.value.concat([c]);r(u,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?n.value===c:Array.isArray(n.value)?n.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:l,classes:a}}});function R0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const _l=Z(P0,[["render",R0]]),{create:x0,componentName:L0}=j("collapse-item"),O0=x0({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:te.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const o=t.ref(null),l=t.ref(null),n=t.inject("collapseParent"),a=t.reactive(n),r=t.computed(()=>{const p=L0;return{[p]:!0,[p+"__border"]:e.border}}),s=t.computed(()=>a?a.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{a.updateVal(e.name)},u=()=>{s.value&&(i.value="auto")},m=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const p=l.value?.offsetHeight;i.value=p?`${p}px`:"auto"})})},h=()=>{const p=l.value?.offsetHeight;i.value=p?`${p}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,p=>{p?m():h()}),{classes:r,renderIcon:tr,wrapperRef:o,contentRef:l,open:m,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:u}}}),F0={class:"fox-collapse-item__title-main"},K0={class:"fox-collapse-item__title-main-value"},v0=["innerHTML"],U0={key:2,class:"fox-collapse-item__title-label"},H0={key:0,class:"fox-collapse-item__title-sub"},j0=["innerHTML"],W0={key:0,class:"fox-collapse__item-extraWrapper"},Y0={class:"fox-collapse__item-extraWrapper__extraRender"},X0={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function Q0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:o[0]||(o[0]=(...s)=>e.toggle&&e.toggle(...s))},[t.createElementVNode("view",F0,[t.createElementVNode("view",K0,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.title,class:"fox-collapse-item__title-mtitle"},null,8,v0)),e.label?(t.openBlock(),t.createElementBlock("view",U0,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",H0,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,j0)),t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title-icon",{"fox-collapse-item__title-icon--expanded":e.expanded}]),style:t.normalizeStyle({transform:"rotate("+(e.expanded?e.rotate:0)+"deg)"})},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.icon))))],6)],2),e.$slots.extra?(t.openBlock(),t.createElementBlock("view",W0,[t.createElementVNode("div",Y0,[t.renderSlot(e.$slots,"extra")])])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:t.normalizeStyle({willChange:"height",height:e.wrapperHeight}),onTransitionend:o[1]||(o[1]=(...s)=>e.onTransitionEnd&&e.onTransitionEnd(...s))},[t.createElementVNode("view",X0,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const ea=Z(O0,[["render",Q0]]),G0=t.defineComponent({setup(e){return()=>t.h("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}}),{componentName:Z0,create:J0,scope:_0}=j("table"),eC=J0({components:{RenderColumn:G0,DownArrow:te.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:o,slots:l}){const{t:n}=se.useFoxI18n(_0),a=t.reactive({curData:e.data}),r=t.computed(()=>({[Z0]:!0})),s=k=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${k.align?k.align:""}`]:!0}),i=k=>k.stylehead?k.stylehead:"",c=k=>k.stylecolumn?k.stylecolumn:"",u=k=>e.columns.filter(g=>g.key===k)[0],m=k=>{const g=e.columns.filter(y=>y.key===k);return g[0].stylecolumn?g[0].stylecolumn:""},h=k=>{k.sorter&&(o("sorter",k),a.curData=typeof k.sorter=="function"?a.curData.sort(k.sorter):k.sorter==="default"?a.curData.sort():a.curData)},p=()=>e.columns.map(k=>[k.key,k.render]);return t.watch(()=>e.data,k=>{a.curData=k.slice()}),{...t.toRefs(a),classes:r,cellClasses:s,getColumnItem:u,getColumnItemStyle:m,handleSorterClick:h,sortDataItem:p,t:n,stylehead:i,stylecolumn:c}}}),tC={class:"fox-table__main__head"},oC={class:"fox-table__main__head__tr"},nC=["onClick"],lC={class:"fox-table__main__body"},aC={key:1},rC={key:0,class:"fox-table__nodata"},sC={key:0,class:"fox-table__nodata__text"},iC={key:1,class:"fox-table__summary"},cC=["innerHTML"];function dC(e,o,l,n,a,r){const s=t.resolveComponent("DownArrow"),i=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",tC,[t.createElementVNode("view",oC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:u=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,nC))),128))])]),t.createElementVNode("view",lC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([u,m])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(u))]),key:u,style:t.normalizeStyle(e.getColumnItemStyle(u))},[typeof c[u]=="function"||typeof m=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[m,c[u]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",aC,t.toDisplayString(c[u]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",rC,[t.createElementVNode("div",{class:t.normalizeClass(["fox-table__nodata",{"fox-table__nodata--border":e.bordered}])},[t.renderSlot(e.$slots,"nodata"),e.$slots.nodata?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",sC,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",iC,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,cC)])):t.createCommentVNode("",!0)],2)}const ta=Z(eC,[["render",dC]]),{componentName:uC,create:fC}=j("ellipsis"),mC=fC({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:o}){const l=t.ref(null);let n=null,a=0;const r=t.ref(),s=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>({[uC]:!0}));t.watch(()=>e.content,(y,S)=>{y!=S&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!l.value)return;const y=window.getComputedStyle(l.value);n=document.createElement("div"),Array.prototype.slice.apply(y).forEach(f=>{n.style.setProperty(f,y.getPropertyValue(f))}),n.style.position="fixed",n.style.left="999999px",n.style.top="999999px",n.style.zIndex="-1000",n.style.height="auto",n.style.minHeight="auto",n.style.maxHeight="auto",n.style.textOverflow="clip",n.style.whiteSpace="normal",n.style.webkitLineClamp="unset",n.style.display="block";const d=p(y.lineHeight==="normal"?e.lineHeight:y.lineHeight);a=Math.floor(d*(Number(e.rows)+.5)+p(y.paddingTop)+p(y.paddingBottom)),n.innerText=e.content,document.body.appendChild(n),u()},u=()=>{if(n.offsetHeight<=a)s.exceeded=!1,document.body.removeChild(n);else{s.exceeded=!0;const y=e.content.length,S=Math.floor((0+y)/2),d=e.direction==="middle"?h([0,S],[S,y]):m(0,y);r.value=d,document.body.removeChild(n)}},m=(y,S)=>{const d=s.expanded?e.collapseText:e.expandText,f=e.content.length;if(S-y<=1)return e.direction==="end"?{leading:e.content.slice(0,y)+e.symbol}:{tailing:e.symbol+e.content.slice(S,f)};const b=Math.round((y+S)/2);return e.direction==="end"?n.innerText=e.content.slice(0,b)+e.symbol+d:n.innerText=d+e.symbol+e.content.slice(b,f),n.offsetHeight<=a?e.direction==="end"?m(b,S):m(y,b):e.direction==="end"?m(y,b):m(b,S)},h=(y,S)=>{const d=s.expanded?e.collapseText:e.expandText,f=e.content.length;if(y[1]-y[0]<=1&&S[1]-S[0]<=1)return{leading:e.content.slice(0,y[0])+e.symbol,tailing:e.symbol+e.content.slice(S[1],f)};const b=Math.floor((y[0]+y[1])/2),w=Math.ceil((S[0]+S[1])/2);return n.innerText=e.content.slice(0,b)+e.symbol+d+e.symbol+e.content.slice(w,f),n.offsetHeight<=a?h([b,y[1]],[S[0],w]):h([y[0],b],[w,S[1]])},p=y=>{if(!y)return 0;const S=y.match(/^\d*(\.\d*)?/);return S?Number(S[0]):0},k=y=>{y==1?(s.expanded=!0,o("change","expand")):(s.expanded=!1,o("change","collapse"))},g=()=>{o("click")};return{...t.toRefs(s),root:l,ellipsis:r,classes:i,clickHandle:k,handleClick:g}}}),pC={key:0},hC={key:1},gC={key:2};function yC(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[2]||(o[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",pC,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",hC,[t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.leading),1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:o[0]||(o[0]=t.withModifiers(s=>e.clickHandle(1),["stop"]))},t.toDisplayString(e.expandText),1)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.tailing),1)])):t.createCommentVNode("",!0),e.exceeded&&e.expanded?(t.openBlock(),t.createElementBlock("view",gC,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:o[1]||(o[1]=t.withModifiers(s=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const oa=Z(mC,[["render",yC]]),{componentName:kC,create:bC}=j("animate"),SC=bC({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:o}){const{type:l,loop:n,action:a}=t.toRefs(e),r=t.reactive({clicked:!1});let s=t.computed(()=>({"fox-animate__container":!0,[`${kC}-${l.value}`]:a.value==="initial"||r.clicked?l.value:!1,loop:n.value}));const i=c=>{r.clicked=!0,n.value||setTimeout(()=>{r.clicked=!1},1e3),o("click",c)};return{...t.toRefs(r),classes:s,handleClick:i}}}),CC={class:"fox-animate"};function wC(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",CC,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...s)=>e.handleClick&&e.handleClick(...s)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const na=Z(SC,[["render",wC]]),{componentName:NC,create:BC}=j("watermark"),AC=BC({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:o}){const l=t.reactive({base64Url:""}),{zIndex:n,gapX:a,gapY:r,width:s,height:i,rotate:c,image:u,imageWidth:m,imageHeight:h,content:p,fontStyle:k,fontWeight:g,fontColor:y,fontSize:S,fontFamily:d}=e,f=()=>{const w=document.createElement("canvas"),V=window.devicePixelRatio,E=w.getContext("2d"),I=`${(a+s)*V}px`,D=`${(r+i)*V}px`,z=s*V,N=i*V;if(w.setAttribute("width",I),w.setAttribute("height",D),E){if(u){E.translate(z/2,N/2),E.rotate(Math.PI/180*Number(c));const B=new Image;B.crossOrigin="anonymous",B.referrerPolicy="no-referrer",B.src=u,B.onload=()=>{E.drawImage(B,-m*V/2,-h*V/2,m*V,h*V),E.restore(),l.base64Url=w.toDataURL()}}else if(p){E.textBaseline="middle",E.textAlign="center",E.translate(z/2,N/2),E.rotate(Math.PI/180*Number(c));const B=Number(S)*V;E.font=`${k} normal ${g} ${B}px/${N}px ${d}`,E.fillStyle=y,E.fillText(p,0,0),E.restore(),l.base64Url=w.toDataURL()}}else throw new Error("当前环境不支持Canvas")};f(),t.watch(()=>[n,a,r,s,i,c,u,m,h,p,k,g,y,S,d],()=>{f()});const b=t.computed(()=>{const w=NC;return{[w]:!0,[`${w}-full-page`]:e.fullPage}});return{...t.toRefs(l),classes:b}}});function VC(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}const la=Z(AC,[["render",VC]]);function TC(e,o=2){return Object.is(parseFloat(e),NaN)?console.log(`传入的值:${e}不是一个数字`):(e=parseFloat(e),(Math.round((e+Number.EPSILON)*Math.pow(10,o))/Math.pow(10,o)).toFixed(o))}const{componentName:$C,create:EC}=j("trend-arrow"),DC=EC({components:{TriangleUp:te.TriangleUp,TriangleDown:te.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 o=t.reactive({rateTrend:e.rate>0}),l=t.computed(()=>({[$C]:!0})),n=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;o.rateTrend=r>0;const u=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?o.rateTrend?"+":"-":""}${TC(Number(u),s)}%`}),a=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:u}=e;return{color:u===0?c:i?o.rateTrend?s:r:c}});return{...t.toRefs(o),classes:l,calcRate:n,calcStyle:a}}});function IC(e,o,l,n,a,r){const s=t.resolveComponent("TriangleUp"),i=t.resolveComponent("TriangleDown");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.arrowLeft?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?t.renderSlot(e.$slots,"up-icon",{key:1},()=>[t.createVNode(s,{color:e.riseColor},null,8,["color"])]):t.createCommentVNode("",!0),Number(e.rate)!==0&&!e.rateTrend?t.renderSlot(e.$slots,"down-icon",{key:2},()=>[t.createVNode(i,{color:e.dropColor},null,8,["color"])]):t.createCommentVNode("",!0),e.arrowLeft?(t.openBlock(),t.createElementBlock("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)):t.createCommentVNode("",!0)],2)}const aa=Z(DC,[["render",IC]]),{create:qC}=j("tour"),zC=qC({components:{[Yt.name]:Yt,Close:te.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:o}){const l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),n=t.ref({}),a=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:m,maskWidth:h,maskHeight:p}=e,{width:k,height:g,left:y,top:S}=n.value,d=[y+k/2,S+g/2],f=Number(h||k),b=Number(p||g);return{width:`${f+ +m[1]*2}px`,height:`${b+ +m[0]*2}px`,top:`${d[1]-b/2-+m[0]}px`,left:`${d[0]-f/2-+m[1]}px`}}),s=m=>{m=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,i()}),o("change",l.active)},i=()=>{const m=document.querySelector(`#${e.steps[l.active].target}`),h=$e(m);n.value=h},c=()=>{l.showTour=!1,l.showPopup=!1,o("close",l.active),o("update:modelValue",!1)},u=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{l.active=0,i()}),t.watch(()=>e.modelValue,m=>{m&&i(),l.active=0,l.showTour=m,l.showPopup=m}),{...t.toRefs(l),classes:a,maskStyle:r,changeStep:s,close:c,handleClickMask:u}}}),MC={key:0,class:"fox-tour-content"},PC={key:0,class:"fox-tour-content-top"},RC={class:"fox-tour-content-inner"},xC={class:"fox-tour-content-bottom"},LC={class:"fox-tour-content-bottom-init"},OC={class:"fox-tour-content-bottom-operate"},FC={key:1,class:"fox-tour-content fox-tour-content-tile"},KC={class:"fox-tour-content-inner"};function vC(e,o,l,n,a,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-popover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour-masked",onClick:o[0]||(o[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,u)=>(t.openBlock(),t.createElementBlock("div",{key:u,style:{height:"0"}},[u==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":o[5]||(o[5]=m=>e.showPopup=m),location:c.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:c.popoverOffset||[0,12],arrowOffset:c.arrowOffset||0},{content:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",MC,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",PC,[t.createElementVNode("div",{onClick:o[1]||(o[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",RC,t.toDisplayString(c.content),1),t.createElementVNode("div",xC,[t.createElementVNode("div",LC,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",OC,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:o[2]||(o[2]=m=>e.changeStep("prev"))},t.toDisplayString(e.prevStepTxt),1)):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:o[3]||(o[3]=(...m)=>e.close&&e.close(...m))},t.toDisplayString(e.completeTxt),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:o[4]||(o[4]=m=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",FC,[t.createElementVNode("div",KC,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const ra=Z(zC,[["render",vC]]),{componentName:JB,create:UC,scope:HC}=j("address"),jC=UC({components:{Location:te.Location,Location2:te.Location2,Check:te.Check,Close:te.Close,Left:te.Left,[de.name]:de,[Pt.name]:Pt},inheritAttrs:!1,props:{...nt,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:o}){const{t:l}=se.useFoxI18n(HC),n=t.ref(null),a=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),u=t.ref(["province","city","country","town"]),m=t.ref(null),h=t.ref([0,0,0,0]),p=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),k=T=>{if(!Array.isArray(T))throw new TypeError("params muse be array.");if(!T.length)return[];T.forEach(A=>{if(!A.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const q=[];return T=T.sort((A,O)=>A.title.localeCompare(O.title)),T.forEach(A=>{const O=q.findIndex(x=>x.title===A.title);O<=-1?q.push({title:A.title,list:[].concat(A)}):q[O].list.push(A)}),q};let g=t.ref([]),y=t.reactive({});const S=t.ref("self"),d=t.ref(20),f=()=>{const T=e.modelValue,q=T.length;if(q>0){if(i.value=q-1,p.value.length==0){i.value=0;return}for(let A=0;A<q;A++){let O=[];switch(A){case 0:O=e.province;break;case 1:O=e.city;break;case 2:O=e.country;break;default:O=e.town}g.value[A]=O.filter(x=>x.id==T[A])[0]}w()}},b=(T,q)=>T&&T.name||i.value<q&&T?T.name:e.columnsPlaceholder[q]||l("select"),w=()=>{I(),t.nextTick(()=>{const T=a.value&&a.value.getElementsByClassName("active")[0];if(T){const q=T.offsetLeft;d.value=q||20}})},V=T=>{const q=i.value;c.value=i.value;const A={custom:u.value[q]};g.value[q]=T;for(let O=q+2;O<4;O++)g.value.splice(O,1);q<3?(i.value=q+1,w(),A.next=u.value[i.value],A.value=T,o("change",A)):(N(),o("update:modelValue"))},E=(T,q)=>{c.value=i.value,b(T,q)&&(i.value=q,w())},I=()=>{const T=m.value,q=c.value,A=h.value[i.value];T?.scrollTop&&(h.value[q]=T?.scrollTop),t.nextTick(()=>{T?.scrollTo({top:A,behavior:"auto"})})},D=T=>{const q=e.existAddress;let A={};q.forEach(O=>{O&&O.selectedAddress&&(A=O),O.selectedAddress=!1}),T.selectedAddress=!0,y=T,o("selected",A,T,q),N()},z=()=>{g.value=[],i.value=0,w()},N=(T="self")=>{S.value=T=="cross"?"cross":"self",r.value=!1},B=()=>{S.value="mask"},R=()=>{const T={addressIdStr:"",addressStr:"",province:g.value[0],city:g.value[1],country:g.value[2],town:g.value[3]},q={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(A=>{const O=g.value[A];T.addressIdStr+=`${A?"_":""}${O&&O.id||0}`,T.addressStr+=O&&O.name||""}),q.data=T):q.data=y,z(),S.value=="self"?o("close",q):o("close-mask",{closeWay:S}),o("update:visible",!1)},L=()=>{const T=s.value;s.value=T=="exist"?"custom":"exist",z(),o("switch-module",{type:s.value})},$=(T,q)=>{V(q)};return t.watch(()=>e.visible,T=>{r.value=T}),t.watch(()=>r.value,T=>{T&&f()}),{showPopup:r,privateType:s,tabIndex:i,tabName:u,selectedRegion:g,switchModule:L,closeWay:S,close:R,getTabName:b,nextAreaList:V,regionLine:n,tabRegion:a,lineDistance:d,changeRegionTab:E,selectedExist:D,clickOverlay:B,handClose:N,handleElevatorItem:$,initCustomSelected:f,...t.toRefs(e),t:l,regionList:p,transformData:k,scrollDom:m}}}),WC={class:"fox-address"},YC={class:"fox-address__header"},XC={class:"fox-address__header__title"},QC={key:0,class:"fox-address__custom"},GC={class:"fox-address__region",ref:"tabRegion"},ZC=["onClick"],JC={key:0,class:"active fox-address__region-item"},_C={key:0,class:"fox-address__detail"},ew={class:"fox-address__detail-list",ref:"scrollDom"},tw=["onClick"],ow={key:1,class:"fox-address__elevator-group"},nw={key:1,class:"fox-address__exist"},lw={class:"fox-address__exist-group"},aw={class:"fox-address__exist-group-list"},rw=["onClick"],sw={class:"fox-address__exist-item-info"},iw={key:0,class:"fox-address__exist-item-info-name"},cw={key:1,class:"fox-address__exist-item-info-phone"},dw={class:"fox-address__exist-item-info-bottom"},uw={class:"fox-address__exist-choose-btn"};function fw(e,o,l,n,a,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),u=t.resolveComponent("fox-elevator"),m=t.resolveComponent("Location2"),h=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(h,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:o[3]||(o[3]=p=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":o[4]||(o[4]=p=>e.showPopup=p),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",WC,[t.createElementVNode("view",YC,[t.createElementVNode("view",{class:"fox-address__header-back",onClick:o[0]||(o[0]=(...p)=>e.switchModule&&e.switchModule(...p))},[t.renderSlot(e.$slots,"back-icon",{},()=>[t.withDirectives(t.createVNode(s,{size:"14px"},null,512),[[t.vShow,e.type=="exist"&&e.privateType=="custom"]])])]),t.createElementVNode("view",XC,t.toDisplayString(e.privateType=="custom"?e.customAddressTitle||e.t("selectRegion"):e.existAddressTitle||e.t("deliveryTo")),1),t.createElementVNode("view",{class:"fox-address__header-close",onClick:o[1]||(o[1]=p=>e.handClose("cross"))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{color:"#cccccc",size:"14px"})])])]),["custom","custom2"].includes(e.privateType)?(t.openBlock(),t.createElementBlock("view",QC,[t.createElementVNode("view",GC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(p,k)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",k==e.tabIndex?"active":""]),key:k,onClick:g=>e.changeRegionTab(p,k)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(p,k)),1)],10,ZC))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",JC,[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(null,e.selectedRegion.length)),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-address__region-line",ref:"regionLine",style:t.normalizeStyle({left:e.lineDistance+"px"})},null,4)],512),e.privateType=="custom"?(t.openBlock(),t.createElementBlock("view",_C,[t.createElementVNode("ul",ew,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(p,k)=>(t.openBlock(),t.createElementBlock("li",{key:k,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==p.id?"active":""]),onClick:g=>e.nextAreaList(p)},[t.createElementVNode("div",null,[e.selectedRegion[e.tabIndex]?.id==p.id?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(p.name),1)])],10,tw))),128))],512)])):(t.openBlock(),t.createElementBlock("view",ow,[t.createVNode(u,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",nw,[t.createElementVNode("div",lw,[t.createElementVNode("ul",aw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(p,k)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",p.selectedAddress?"active":""]),key:k,onClick:g=>e.selectedExist(p)},[p.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(m,{class:"fox-address-select-icon",size:"13px"})]),p.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",sw,[p.name?(t.openBlock(),t.createElementBlock("div",iw,t.toDisplayString(p.name),1)):t.createCommentVNode("",!0),p.phone?(t.openBlock(),t.createElementBlock("div",cw,t.toDisplayString(p.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",dw,[t.createElementVNode("view",null,t.toDisplayString(p.provinceName+p.cityName+p.countyName+p.townName+p.addressDetail),1)])])],10,rw))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:o[2]||(o[2]=(...p)=>e.switchModule&&e.switchModule(...p))},[t.createElementVNode("div",uw,t.toDisplayString(e.customAndExistTitle||e.t("chooseAnotherAddress")),1)])):t.createCommentVNode("",!0)])),t.renderSlot(e.$slots,"bottom")])]),_:3},8,["lock-scroll","onClose","onClickOverlay","visible","teleportDisable","teleport"])}const sa=Z(jC,[["render",fw]]),{componentName:mw,create:pw}=j("barrage"),hw=pw({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 o=new Date().getTime(),l=!!t.useSlots().default,n=t.computed(()=>({[mw]:!0}));let a=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),u=t.ref(e.top),m=t.ref(0),h=e.speeds,p=t.ref(0);t.onMounted(()=>{k(),l&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(y(),m.value=0,g("hidden")):document.visibilityState==="visible"&&k()})}),t.onUnmounted(()=>{i.value=[],y()});const k=()=>{p.value=a.value.offsetWidth,l&&g("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${p.value}px`),d()},300)},g=b=>{let V=document.getElementsByClassName("slotBody"+o)?.[0]?.children||[];const E=[];V&&Array.from(V).forEach(I=>{b=="init"?(I.style.opacity="0",E.push(I)):(I.classList="",I.style={})}),b=="init"&&(i.value=E)},y=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,b=>{e.danmu.length>0&&(i.value=[...b])});const S=b=>{const w=m.value%i.value.length;!e.loop&&m.value===i.value.length?i.value.splice(i.value.length,0,b):i.value.splice(w,0,b)},d=()=>{y(),s=setTimeout(()=>{f()},e.frequency)},f=()=>{const b=e.loop?m.value%i.value.length:m.value;let w=document.createElement("view");l&&typeof i.value[b]=="object"?(w=i.value[b],w?.classList?.add("fox-barrage__item")):(w.innerHTML=i.value[b],w.classList.add("fox-barrage__item"),r.value.appendChild(w)),t.nextTick(()=>{const V=w.offsetHeight;if(w?.classList?.add("move"),w.style.animationDuration=`${h}ms`,w.style.top=b%c.value*(V+u.value)+20+"px",w.style.opacity="1",!l){const E=w.offsetWidth;w.style.width=E+20+"px"}w.addEventListener("animationend",()=>{l?w.classList.remove("move"):r.value.removeChild(w)}),!(!e.loop&&m.value>=i.value.length-1)&&(m.value++,m.value>=i.value.length&&(m.value=0),w.removeEventListener("animationend",()=>{}),d())})};return{classTime:o,classes:n,danmuList:i,dmBody:a,dmContainer:r,add:S}}});function gw(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"dmBody",class:t.normalizeClass(e.classes)},[t.createElementVNode("div",{ref:"dmContainer",class:t.normalizeClass(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["slotBody","slotBody"+e.classTime])},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)],2)],2)}const ia=Z(hw,[["render",gw]]),{componentName:yw,create:kw,scope:bw}=j("signature"),Sw=kw({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:{[ze.name]:ze},emits:["start","end","signing","confirm","clear"],setup(e,{emit:o}){const{toLocaleRefs:l}=se.useFoxI18n(bw),n=l(e,["unSupportTpl","reSign","confirmText"]),a=t.ref(null),r=t.ref(null),s=t.computed(()=>({[yw]:!0,[`${e.customClass}`]:e.customClass})),i=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let f=document.createElement("canvas");return!!(f.getContext&&f.getContext("2d"))},u=()=>{a.value.addEventListener(i.events[0],m,!1)},m=f=>{f.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,o("start"),a.value.addEventListener(i.events[1],h,!1),a.value.addEventListener(i.events[2],p,!1),a.value.addEventListener(i.events[3],k,!1)},h=f=>{f.preventDefault();let b=i.isSupportTouch?f.touches[0]:f;o("signing",b);let w=a.value.getBoundingClientRect(),V=b.clientX-w.left,E=b.clientY-w.top;i.ctx.lineTo(V,E),i.ctx.stroke()},p=f=>{f.preventDefault(),o("end"),a.value.removeEventListener(i.events[1],h,!1),a.value.removeEventListener(i.events[2],p,!1)},k=f=>{f.preventDefault(),a.value.removeEventListener(i.events[1],h,!1),a.value.removeEventListener(i.events[2],p,!1)},g=()=>{a.value.addEventListener(i.events[2],p,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),o("clear")},y=()=>{d(a.value)},S=f=>{if(!f)return!0;var b=document.createElement("canvas");return b.width=f.width,b.height=f.height,f?.toDataURL()==b.toDataURL()},d=f=>{let b;switch(e.type){case"png":b=f.toDataURL("image/png");break;case"jpg":b=f.toDataURL("image/jpeg",.8);break}const w=S(f)?"请绘制签名":f,V=S(f)?"":b;o("confirm",w,V)};return t.onMounted(()=>{c()&&(i.ctx=a.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,u())}),{...n,...t.toRefs(i),canvas:a,wrap:r,isCanvasSupported:c,confirm:y,clear:g,classes:s}}}),Cw={class:"fox-signature-inner",ref:"wrap"},ww=["height","width"],Nw={key:0,class:"fox-signature-unsopport"};function Bw(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",Cw,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,ww),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",Nw,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(s,{class:"fox-signature-btn",type:"default",onClick:o[0]||(o[0]=i=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(s,{class:"fox-signature-btn",type:"primary",onClick:o[1]||(o[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const ca=Z(Sw,[["render",Bw]]),{componentName:Aw,create:Vw,scope:Tw}=j("time-select"),$w=Vw({components:{[de.name]:de},props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!0},teleportDisable:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,o)=>{const{t:l}=se.useFoxI18n(Tw),n=t.computed(()=>({[Aw]:!0})),a=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),s=t.computed(()=>e.currentTime),i=()=>{o.emit("update:visible",!1),o.emit("select",s.value)};return t.provide("currentKey",r),t.provide("currentTime",s),{classes:n,popStyle:a,props:e,close:i,t:l}}}),Ew={class:"fox-time-select__title"},Dw={class:"fox-time-select__title__fixed"},Iw={key:0},qw={class:"fox-time-select__content"},zw={class:"fox-time-select__content__pannel"},Mw={class:"fox-time-select__content__detail"};function Pw(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{position:"bottom",closeable:"",round:"",teleportDisable:e.teleportDisable,visible:e.visible,style:t.normalizeStyle(e.popStyle),"lock-scroll":e.lockScroll,onClickOverlay:e.close,onClickCloseIcon:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Ew,[t.createElementVNode("view",Dw,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",Iw,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",qw,[t.createElementVNode("view",zw,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",Mw,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const da=Z($w,[["render",Pw]]),{componentName:Rw,create:xw}=j("time-pannel"),Lw=xw({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,o)=>{const l=t.inject("currentKey"),n=t.reactive({currentKey:l}),a=t.computed(()=>({[Rw]:!0,"fox-time-pannel--curr":n.currentKey==e.pannelKey})),r=s=>{o.emit("change",s)};return{...t.toRefs(n),classes:a,handlePannel:r}}});function Ow(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=s=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const ua=Z(Lw,[["render",Ow]]),{componentName:Fw,create:Kw}=j("time-detail"),vw=Kw({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,o)=>{const l=t.inject("currentKey"),n=t.inject("currentTime"),a=t.reactive({currentKey:l,currentTime:n}),r=t.computed(()=>({[Fw]:!0})),s=u=>{let m=a.currentTime.find(h=>h.key==a.currentKey);if(m)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":m.list.filter(h=>h===u).length>0}},i=t.computed(()=>e.times.find(u=>u.key==a.currentKey).list),c=u=>{o.emit("select",u)};return{classes:r,...t.toRefs(a),getClass:s,renderData:i,handleTime:c}}}),Uw={class:"fox-time-detail__detail fox-time-detail__detail--moring"},Hw={class:"fox-time-detail__detail__list"},jw=["onClick"];function Ww(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Uw,[t.createElementVNode("view",Hw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.renderData,s=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.getClass(s)),key:s,onClick:i=>e.handleTime(s)},t.toDisplayString(s),11,jw))),128))])])],2)}const fa=Z(vw,[["render",Ww]]),{componentName:_B,create:Yw,scope:Xw}=j("sku-header"),Qw=Yw({props:{goods:{type:Object,default:{}}},emits:[],components:{[Ge.name]:Ge},setup(e,{emit:o,slots:l}){const{t:n}=se.useFoxI18n(Xw);return{getSlots:r=>l[r],t:n}}}),Gw={class:"fox-sku-header"},Zw=["src"],Jw={class:"fox-sku-header-right"},_w={key:3,class:"fox-sku-header-right-extra"};function e1(e,o,l,n,a,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",Gw,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,Zw),t.createElementVNode("view",Jw,[e.getSlots("sku-header-price")?t.renderSlot(e.$slots,"sku-header-price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.goods.price,needSymbol:!0,thousands:!1},null,8,["price"])),e.getSlots("sku-header-extra")?t.renderSlot(e.$slots,"sku-header-extra",{key:2}):t.createCommentVNode("",!0),e.goods.skuId&&!e.getSlots("sku-header-extra")?(t.openBlock(),t.createElementBlock("view",_w,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const t1=Z(Qw,[["render",e1]]),{componentName:eA,create:o1}=j("sku-select"),n1=o1({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:o}){const l=t.ref([]);return t.watch(()=>e.sku,a=>{l.value=[].slice.call(a)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(l.value=[].slice.call(e.sku))}),{skuInfo:l,changeSaleChild:(a,r,s,i)=>{a.checkFlag||a.disable||o("selectSku",{sku:a,skuIndex:r,parentSku:s,parentIndex:i})}}}}),l1={class:"fox-sku-select"},a1={class:"fox-sku-select-item-title"},r1={class:"fox-sku-select-item-skus"},s1=["onClick"];function i1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",l1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:s.id},[t.createElementVNode("view",a1,t.toDisplayString(s.name),1),t.createElementVNode("view",r1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:m=>e.changeSaleChild(c,u,s,i),key:c.name},t.toDisplayString(c.name),11,s1))),128))])]))),128))])}const c1=Z(n1,[["render",i1]]),{componentName:tA,create:d1}=j("sku-stepper"),u1=d1({props:{stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},stepperExtraText:{type:[Function,Boolean],default:!1},stepperTitle:{type:String,default:"购买数量"}},emits:["click","changeSku","changeStepper","clickBtnOptions","overLimit","reduce","add"],components:{[rt.name]:rt},setup(e,{emit:o}){const l=t.ref(e.stepperMin);return t.onMounted(()=>{l.value=e.stepperMin}),{goodsCount:l,add:c=>{o("add",c)},reduce:c=>{o("reduce",c)},overlimit:(c,u)=>{o("overLimit",{action:u,value:parseInt(l.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&_e(c)=="function"?c():""},changeStepper:c=>{l.value=c,o("changeStepper",c)}}}}),f1={class:"fox-sku-stepper"},m1={class:"fox-sku-stepper-title"},p1=["innerHTML"],h1={class:"fox-sku-stepper-count"};function g1(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",f1,[t.createElementVNode("view",m1,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,p1),t.createElementVNode("view",h1,[t.createVNode(s,{modelValue:e.goodsCount,"onUpdate:modelValue":o[0]||(o[0]=i=>e.goodsCount=i),min:e.stepperMin,max:e.stepperMax,onAdd:e.add,onReduce:e.reduce,onOverlimit:e.overlimit,onChange:e.changeStepper},null,8,["modelValue","min","max","onAdd","onReduce","onOverlimit","onChange"])])])}const y1=Z(u1,[["render",g1]]),{componentName:oA,create:k1}=j("sku-operate"),b1=k1({props:{btnOptions:{type:Array,default:()=>["confirm"]},btnExtraText:{type:String,default:""},buyText:{type:String,default:"立即购买"},addCartText:{type:String,default:"加入购物车"},confirmText:{type:String,default:"确定"}},emits:["click","changeSku","changeBuyCount","clickBtnOperate"],setup(e,{emit:o,slots:l}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{o("clickBtnOperate",s)},getSlots:s=>l[s]}}}),S1={key:0,class:"fox-sku-operate"},C1={key:0,class:"fox-sku-operate-desc"},w1={key:1,class:"fox-sku-operate-btn"},N1=["onClick"];function B1(e,o,l,n,a,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",S1,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",C1,t.toDisplayString(e.btnExtraText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"operate-btn"),e.getSlots("operate-btn")?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",w1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.btnOptions,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass([`fox-sku-operate-btn-${s}`,"fox-sku-operate-btn-item"]),key:i,onClick:c=>e.clickBtnOperate(s)},t.toDisplayString(e.getBtnDesc(s)),11,N1))),128))]))])):t.createCommentVNode("",!0)}const A1=Z(b1,[["render",B1]]),{componentName:nA,create:V1,scope:T1}=j("sku"),$1=V1({props:{...nt,sku:{type:Array,default:[]},goods:{type:Object,default:{}},stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},btnOptions:{type:Array,default:()=>["confirm"]},stepperTitle:{type:String,default:""},stepperExtraText:{type:[Function,Boolean],default:!1},btnExtraText:{type:String,default:""},buyText:{type:String,default:""},addCartText:{type:String,default:""},confirmText:{type:String,default:""}},emits:["update:visible","select-sku","change-stepper","click-btn-operate","click-close-icon","click-overlay","close","reduce","add","over-limit"],components:{SkuHeader:t1,SkuSelect:c1,SkuStepper:y1,SkuOperate:A1,[de.name]:de},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=se.useFoxI18n(T1),a=n(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,S=>{r.value=S}),t.watch(()=>r.value,S=>{S==!1&&y()}),t.onMounted(()=>{});const i=S=>l[S],c=S=>{o("select-sku",S)},u=S=>{s.value=S,o("change-stepper",S)},m=S=>{o("add",S)},h=S=>{o("reduce",S)},p=S=>{o("over-limit",S)},k=S=>{o("click-btn-operate",{type:S,value:s.value})},g=S=>{S=="icon"&&o("click-close-icon"),S=="overlay"&&o("click-overlay"),S=="close"&&o("close"),r.value=!1},y=()=>{o("update:visible",!1)};return{showPopup:r,closePopup:g,selectSku:c,changeStepper:u,stepperOverLimit:p,clickBtnOperate:k,add:m,reduce:h,getSlots:i,...a}}}),E1={class:"fox-sku"},D1={class:"fox-sku-content"};function I1(e,o,l,n,a,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),u=t.resolveComponent("sku-operate"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":o[0]||(o[0]=h=>e.showPopup=h),onClickCloseIcon:o[1]||(o[1]=h=>e.closePopup("icon")),onClickOverlay:o[2]||(o[2]=h=>e.closePopup("overlay")),onClose:o[3]||(o[3]=h=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",E1,[t.renderSlot(e.$slots,"sku-header"),e.getSlots("sku-header")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,goods:e.goods},t.createSlots({_:2},[e.getSlots("sku-header-price")?{name:"sku-header-price",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-price")]),key:"0"}:void 0,e.getSlots("sku-header-extra")?{name:"sku-header-extra",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-extra")]),key:"1"}:void 0]),1032,["goods"])),t.createElementVNode("view",D1,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(u,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const ma=Z($1,[["render",I1]]),{create:q1}=j("card"),z1=q1({components:{[Ge.name]:Ge,[Wt.name]:Wt},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:o,slots:l}){return{isHaveSlot:a=>l[a]}}}),M1={class:"fox-card"},P1={class:"fox-card__left"},R1=["src"],x1={class:"fox-card__right"},L1={class:"fox-card__right__title"},O1={key:0,class:"fox-card__right__price"},F1={class:"fox-card__right__other"},K1={class:"fox-card__right__shop"},v1={class:"fox-card__right__shop__name"};function U1(e,o,l,n,a,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",M1,[t.createElementVNode("div",P1,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,R1)]),t.createElementVNode("div",x1,[t.createElementVNode("div",L1,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",O1,[e.isHaveSlot("price")?t.renderSlot(e.$slots,"price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.price},null,8,["price"])),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:2}):(t.openBlock(),t.createBlock(s,{key:3,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",F1,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(i,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(i,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",K1,[t.createElementVNode("div",v1,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const pa=Z(z1,[["render",U1]]),{create:H1,scope:j1}=j("ecard"),W1=H1({components:{[rt.name]:rt},props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:Array,default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"¥"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:o}){const{t:l}=se.useFoxI18n(j1),n=t.ref(null),a=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(p,k)=>{n.value=k,s.value=e.cardAmountMin,a.value=p.price,o("change",p),o("update:modelValue",p.price)},u=p=>{let g=p.target.value.replace(/[^\d]/g,"");r.value=g,a.value=g,Number(g)>e.cardAmountMax&&(r.value=e.cardAmountMax,a.value=e.cardAmountMax),Number(g)<e.cardAmountMin&&(r.value=e.cardAmountMin,a.value=e.cardAmountMin),o("inputChange",Number(r.value)),o("update:modelValue",Number(r.value))},m=()=>{n.value="input",s.value=e.cardAmountMin,a.value=r.value,o("update:modelValue",r.value),o("inputClick")},h=p=>{s.value=p,o("changeStep",s.value,a.value)};return t.watch(()=>e.modelValue,p=>{i.value=p}),{handleClick:c,changeStep:h,change:u,inputClick:m,stepValue:s,currentIndex:n,inputValue:r,money:i,t:l}}}),Y1={class:"fox-ecard"},X1={class:"fox-ecard__title"},Q1={class:"fox-ecard__list"},G1=["onClick"],Z1={class:"fox-ecard__list__input--con"},J1=["placeholder"],_1={class:"fox-ecard__list__step"};function eN(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",Y1,[t.createElementVNode("view",X1,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",Q1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:u=>e.handleClick(i,c)},t.toDisplayString(i.price),11,G1))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:o[2]||(o[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",Z1,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":o[0]||(o[0]=i=>e.inputValue=i),onInput:o[1]||(o[1]=(...i)=>e.change&&e.change(...i)),placeholder:e.placeholder||e.t("placeholder")},null,40,J1),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",_1,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(s,{modelValue:e.stepValue,"onUpdate:modelValue":o[3]||(o[3]=i=>e.stepValue=i),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const ha=Z(W1,[["render",eN]]),{create:tN,scope:oN}=j("address-list-item"),nN=tN({components:{Del:te.Del,Edit:te.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:o}){const{t:l}=se.useFoxI18n(oN);return{delClick:s=>{o("delIcon",s,e.item),s.stopPropagation()},editClick:s=>{o("editIcon",s,e.item),s.stopPropagation()},contentsClick:s=>{o("clickItem",s,e.item),s.stopPropagation()},t:l}}}),lN={class:"fox-address-list-item__info"},aN={class:"fox-address-list-item__info-contact"},rN={class:"fox-address-list-item__info-contact-name"},sN={class:"fox-address-list-item__info-contact-tel"},iN={key:0,class:"fox-address-list-item__info-contact-default"},cN={class:"fox-address-list-item__info-handle"},dN={class:"fox-address-list-item__addr"};function uN(e,o,l,n,a,r){const s=t.resolveComponent("Del"),i=t.resolveComponent("Edit");return t.openBlock(),t.createElementBlock("div",{class:"fox-address-list-item",onClick:o[0]||(o[0]=(...c)=>e.contentsClick&&e.contentsClick(...c))},[t.createElementVNode("div",lN,[t.createElementVNode("div",aN,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",rN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",sN,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",iN,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",cN,[t.renderSlot(e.$slots,"content-icon",{},()=>[t.createVNode(s,{name:"del",class:"fox-address-list-item__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(i,{name:"edit",class:"fox-address-list-item__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",dN,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const ys=Z(nN,[["render",uN]]),{create:fN}=j("address-list-general"),mN=fN({props:{item:{type:Object,default:{}},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1}},emits:["delIcon","editIcon","clickItem","longDown","longCopy","longSet","longDel","swipeDel"],components:{ItemContents:ys,[ze.name]:ze,[Lt.name]:Lt},setup(e,{emit:o}){const l=()=>t.h(ys,{item:e.item,onDelIcon(V){s(V)},onEditIcon(V){i(V)},onClickItem(V){c(V)}});let n=null;const a=t.ref(!1),r=t.ref(!1),s=V=>{o("delIcon",V,e.item),V.stopPropagation()},i=V=>{o("editIcon",V,e.item),V.stopPropagation()},c=V=>{a.value||(o("clickItem",V,e.item),V.stopPropagation())},u=V=>{o("longDel",V,e.item),V.stopPropagation()},m=V=>{n=0,r.value=!0,o("longDown",V,e.item)};return{renderCompontent:l,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:u,holddownstart:V=>{n=setTimeout(()=>{m(V)},300)},holddownmove:()=>{clearTimeout(n)},holddownend:()=>{clearTimeout(n)},copyCLick:V=>{o("longCopy",V,e.item),V.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:V=>{o("longSet",V,e.item),V.stopPropagation()},maskClick:V=>{n!=0&&(r.value=!1),V.stopPropagation(),V.preventDefault()},swipeDelClick:V=>{o("swipeDel",V,e.item),V.stopPropagation()},swipestart:()=>{a.value=!1},swipemove:()=>{a.value=!0}}}}),pN={key:0,class:"fox-address-list-general"},hN={class:"fox-address-list-swipe"};function gN(e,o,l,n,a,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(i,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(s,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>[t.createTextVNode("删除")]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",hN,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchmove:e.swipemove,onTouchstart:e.swipestart},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchmove","onTouchstart"]))])]),_:3})):(t.openBlock(),t.createElementBlock("div",pN,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchstart:e.holddownstart,onTouchend:e.holddownend,onTouchmove:e.holddownmove},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchstart","onTouchend","onTouchmove"])),e.longPress&&e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list-general__mask",onClick:o[3]||(o[3]=(...c)=>e.maskClick&&e.maskClick(...c))},[t.renderSlot(e.$slots,"longpress-all",{},()=>[t.createElementVNode("div",{class:"fox-address-list-general__mask-copy",onClick:o[0]||(o[0]=(...c)=>e.copyCLick&&e.copyCLick(...c))},"复制地址"),t.createElementVNode("div",{class:"fox-address-list-general__mask-set",onClick:o[1]||(o[1]=(...c)=>e.setDefault&&e.setDefault(...c))},"设置默认"),t.createElementVNode("div",{class:"fox-address-list-general__mask-del",onClick:o[2]||(o[2]=(...c)=>e.delLongClick&&e.delLongClick(...c))},"删除地址")])])):t.createCommentVNode("",!0),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-address-list__mask-bottom",onClick:o[4]||(o[4]=(...c)=>e.hideMaskClick&&e.hideMaskClick(...c))})):t.createCommentVNode("",!0)]))}const yN=Z(mN,[["render",gN]]),{componentName:kN,create:bN,scope:SN}=j("address-list"),CN=bN({props:{data:{type:Array,default:[]},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1},showBottomButton:{type:Boolean,default:!0},dataOptions:{type:Object,default:{}}},components:{GeneralShell:yN,[ze.name]:ze},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:o}){const{t:l}=se.useFoxI18n(SN),n=t.ref([]),a=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[kN]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(n.value=e.data.map(y=>Ka(a,y,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(y,S)=>{o("delIcon",y,S),y.stopPropagation()},c=(y,S)=>{o("editIcon",y,S),y.stopPropagation()},u=(y,S)=>{o("clickItem",y,S),y.stopPropagation()},m=(y,S)=>{o("longCopy",y,S),y.stopPropagation()},h=(y,S)=>{o("longSet",y,S),y.stopPropagation()},p=(y,S)=>{o("longDel",y,S),y.stopPropagation()},k=(y,S)=>{o("swipeDel",y,S),y.stopPropagation()},g=y=>{o("add",y),y.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:u,clickLongCopy:m,clickLongSet:h,clickLongDel:p,clickSwipeDel:k,addAddress:g,dataArray:n,t:l}}});function wN(e,o,l,n,a,r){const s=t.resolveComponent("general-shell"),i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,u)=>(t.openBlock(),t.createBlock(s,{key:u,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:o[0]||(o[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const ga=Z(CN,[["render",wN]]),{componentName:lA,create:NN}=j("category"),BN=NN({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:o,slots:l}){const n=t.ref(0),a=t.ref(!1);return{getChildList:s=>{n.value=s,o("change",s)},checkIndex:n,categoryLeft:a}}}),AN={class:"fox-category"},VN={class:"fox-category__cateList"},TN={key:0},$N=["onClick"];function EN(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",AN,[t.createElementVNode("div",VN,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",TN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.category,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category__cateListLeft",key:i},[t.createElementVNode("div",{class:t.normalizeClass([e.checkIndex==i?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(i)},t.toDisplayString(s.catName),11,$N)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const ya=Z(BN,[["render",EN]]),{componentName:aA,create:DN}=j("category-pane"),IN=DN({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:o}){return{onChange:n=>{o("onChange",n)}}}}),qN={class:"fox-category-pane"},zN={key:0,class:"fox-category-pane__cateListRight"},MN={class:"fox-category-pane__childTitle"},PN={key:0,class:"fox-category-pane__childItemList"},RN=["onClick"],xN=["src"],LN={class:"fox-category-pane__skuImg"},ON={key:1,class:"fox-category-pane__cateListRight"},FN={class:"fox-category-pane__childTitle"},KN={key:0,class:"fox-category-pane__childItemList"},vN=["onClick"],UN={class:"fox-category-pane__skuName"},HN={key:2,class:"fox-category-pane__selfItemList"},jN=["onClick"];function WN(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",qN,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",zN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",MN,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",PN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:u,onClick:m=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,xN),t.createElementVNode("div",LN,t.toDisplayString(c?.catName),1)],8,RN))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",ON,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",FN,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",KN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:u,onClick:m=>e.onChange(c)},[t.createElementVNode("div",UN,t.toDisplayString(c?.catName),1)],8,vN))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",HN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.customCategory,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__skuName",key:i,onClick:c=>e.onChange(s)},t.toDisplayString(s?.catName),9,jN))),128))])):t.createCommentVNode("",!0)])}const ka=Z(IN,[["render",WN]]),{componentName:rA,create:YN}=j("comment-header"),XN=YN({components:{[yt.name]:yt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:o}){return{handleClick:()=>{o("handleClick")}}}}),QN={class:"fox-comment-header__user"},GN={class:"fox-comment-header__user-avter"},ZN=["src"],JN={class:"fox-comment-header__user-score"},_N={key:0,class:"fox-comment-header__time"};function eB(e,o,l,n,a,r){const s=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:o[1]||(o[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",QN,[t.createElementVNode("view",GN,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,ZN)):t.createCommentVNode("",!0)]),e.type=="default"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},[t.createElementVNode("span",null,t.toDisplayString(e.info.nickName),1),t.renderSlot(e.$slots,"labels")],2),t.createElementVNode("view",JN,[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":o[0]||(o[0]=i=>e.info.score=i),size:"12",spacing:"5",readonly:"",onChange:e.handleClick},null,8,["modelValue","onChange"])])],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("span",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},t.toDisplayString(e.info.nickName),3),t.renderSlot(e.$slots,"labels")],2))]),e.info.time?(t.openBlock(),t.createElementBlock("view",_N,t.toDisplayString(e.info.time),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.type=="complex"?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__${e.type}-score`])},[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":o[2]||(o[2]=i=>e.info.score=i),size:"12",spacing:"3",readonly:""},null,8,["modelValue"]),t.createElementVNode("i",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-i`])},null,2),t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-size`])},t.toDisplayString(e.info.size),3)],2)):t.createCommentVNode("",!0)])}const tB=Z(XN,[["render",eB]]),{componentName:sA,create:oB}=j("comment-images"),nB=oB({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:te.Right},emits:["click","clickImages"],setup(e,{emit:o}){const l=t.ref(!1),n=t.ref(1),a=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),a.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),a.value=e.videos.concat(e.images)}),{isShowImage:l,initIndex:n,showImages:(s,i)=>{const{videos:c,images:u}=e,m=s=="img"?i-c.length:i;o("clickImages",{type:s,index:m,value:s=="img"?u[m]:c[m]})},totalImages:a}}}),lB=["onClick"],aB=["src"],rB=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),sB=["onClick"],iB=["src"],cB={key:0,class:"fox-comment-images__mask"};function dB(e,o,l,n,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:u=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,aB),rB],8,lB))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:u=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,iB),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",cB,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,sB)):t.createCommentVNode("",!0)],64))),128))],2)}const uB=Z(nB,[["render",dB]]),{componentName:iA,create:fB,scope:mB}=j("comment-bottom"),pB=fB({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:te.Fabulous,Comment:te.Comment,MoreX:te.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:o}){const{t:l}=se.useFoxI18n(mB),n=t.ref(!1),a=t.ref([]);return t.onMounted(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&a.value.push(c)})}),{showPopver:n,operate:i=>{i=="more"&&(n.value=!n.value),o("clickOperate",i)},mergeOp:a,handleClick:()=>{o("handleClick")},t:l}}}),hB={class:"fox-comment-bottom"},gB={key:0},yB={class:"fox-comment-bottom__cpx"},kB=["onClick"];function bB(e,o,l,n,a,r){const s=t.resolveComponent("Fabulous"),i=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",hB,[t.createElementVNode("view",{onClick:o[0]||(o[0]=(...u)=>e.handleClick&&e.handleClick(...u)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",gB,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",yB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(u,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${u}`]),onClick:h=>e.operate(u)},[u!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[u]),1),u=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),u=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:o[1]||(o[1]=h=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,kB))),128))])])}const SB=Z(pB,[["render",bB]]),{componentName:CB,create:wB,scope:NB}=j("comment"),BB=wB({props:{headerType:{type:String,default:"default"},imagesRows:{type:String,default:"one"},ellipsis:{type:[String,Number,Boolean],default:!1},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]},info:{type:Object,default:()=>({})},follow:{type:Object,default:()=>({})},labels:{type:Function,default:()=>""},operation:{type:Array,default:["replay","like","more"]}},components:{CommentHeader:tB,CommentImages:uB,CommentBottom:SB,Right:te.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:o}){const{t:l}=se.useFoxI18n(NB),n=t.computed(()=>({[CB]:!0})),a=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:n,conEllipsis:a,clickOperate:c=>{o("clickOperate",c)},handleClick:()=>{o("click",e.info)},clickImages:c=>{o("clickImages",c)},t:l}}}),AB=["innerHTML"],VB={class:"fox-comment__follow-title"},TB={class:"fox-comment__follow-com"},$B={key:0,class:"fox-comment__follow-img"};function EB(e,o,l,n,a,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),u=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:o[0]||(o[0]=(...m)=>e.handleClick&&e.handleClick(...m)),innerHTML:e.info.content},null,12,AB),t.createVNode(i,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:o[1]||(o[1]=(...m)=>e.handleClick&&e.handleClick(...m))},[t.createElementVNode("view",VB,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",TB,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",$B,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",e.follow.images.length))+" ",1),t.createVNode(c,{width:"12px"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(u,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const ba=Z(BB,[["render",EB]]),DB=[hn,yn,kn,bn,wn,Ne,An,Vn,Tn,$n,Dn,wo,zn,Rn,Fn,Un,Eo,Do,Hn,qo,zo,Wn,Xn,ot,Qn,Zn,Oo,_n,el,tl,ol,nl,ll,al,rl,ze,sl,il,lt,de,cl,dl,ul,fl,Et,ml,pl,hl,gl,yl,kl,bl,Sl,Cl,Pt,wl,Dt,It,Nl,Bl,Al,Vl,Rt,Lo,Bo,$o,To,rt,yt,pt,Tl,$l,El,Lt,Dl,Il,ql,Ot,xo,zl,Rl,Po,St,Ol,Fl,jt,Kl,vl,xt,Ul,Hl,jl,Ct,Wl,Yl,wt,Nt,Ge,Uo,Ql,Gl,Zl,Wt,Yt,Jl,_l,ea,ta,oa,na,la,aa,ra,sa,ia,ca,da,ua,fa,ma,pa,ha,ga,ya,ka,ba],IB=new Gs(DB,"4.0.0");C.ActionSheet=Dl,C.ActionsheetItem=_n,C.ActionsheetPane=Oo,C.Address=sa,C.AddressList=ga,C.Animate=na,C.Audio=Ol,C.AudioOperate=Fl,C.Avatar=jt,C.AvatarGroup=Kl,C.BackTop=Il,C.Badge=Zl,C.Barrage=ia,C.Broadcast=sn,C.BroadcastKey=Ce,C.Button=ze,C.Calendar=$o,C.CalendarItem=Un,C.Card=pa,C.Cascader=Bo,C.CascaderItem=Rn,C.Category=ya,C.CategoryPane=ka,C.Cell=sl,C.CellGroup=il,C.Checkbox=qo,C.CheckboxGroup=zo,C.CheckboxItem=Wn,C.CircleProgress=Ul,C.Col=ul,C.Collapse=_l,C.CollapseItem=ea,C.Comment=ba,C.Content=bn,C.CountDown=Gl,C.CountUp=Ql,C.DataItemsKey=ct,C.DateItem=Fn,C.DatePicker=To,C.DateUtils=le,C.Dialog=Ot,C.Divider=ml,C.Domain=ao,C.DomainKey=Ie,C.DomainProvider=el,C.Drag=ql,C.Ecard=ha,C.Elevator=Pt,C.Ellipsis=oa,C.Empty=jl,C.FixedNav=yl,C.FloatingButton=al,C.FooterBar=kn,C.FoxActionSheet=Dl,C.FoxActionsheetItem=_n,C.FoxActionsheetPane=Oo,C.FoxAddress=sa,C.FoxAddressList=ga,C.FoxAnimate=na,C.FoxAudio=Ol,C.FoxAudioOperate=Fl,C.FoxAvatar=jt,C.FoxAvatarGroup=Kl,C.FoxBackTop=Il,C.FoxBadge=Zl,C.FoxBarrage=ia,C.FoxButton=ze,C.FoxCalendar=$o,C.FoxCalendarItem=Un,C.FoxCard=pa,C.FoxCascader=Bo,C.FoxCascaderItem=Rn,C.FoxCategory=ya,C.FoxCategoryPane=ka,C.FoxCell=sl,C.FoxCellGroup=il,C.FoxCheckbox=qo,C.FoxCheckboxGroup=zo,C.FoxCheckboxItem=Wn,C.FoxCircleProgress=Ul,C.FoxCol=ul,C.FoxCollapse=_l,C.FoxCollapseItem=ea,C.FoxComment=ba,C.FoxContent=bn,C.FoxCountDown=Gl,C.FoxCountUp=Ql,C.FoxDateItem=Fn,C.FoxDatePicker=To,C.FoxDialog=Ot,C.FoxDivider=ml,C.FoxDomainProvider=el,C.FoxDrag=ql,C.FoxEcard=ha,C.FoxElevator=Pt,C.FoxEllipsis=oa,C.FoxEmpty=jl,C.FoxFixedNav=yl,C.FoxFloatingButton=al,C.FoxFooterBar=kn,C.FoxGrid=pl,C.FoxGridItem=hl,C.FoxGroup=wn,C.FoxHeaderBar=yn,C.FoxHintText=ot,C.FoxImage=cl,C.FoxImagePreview=Uo,C.FoxIndicator=Nl,C.FoxInfiniteLoading=xo,C.FoxInputItem=Tn,C.FoxInputNumber=rt,C.FoxItem=Ne,C.FoxLayout=dl,C.FoxLinkItem=Qn,C.FoxList=vl,C.FoxMenu=kl,C.FoxMenuItem=bl,C.FoxMoneyItem=$n,C.FoxNavbar=gl,C.FoxNoticeBar=Hl,C.FoxNotify=Rl,C.FoxNumberKeyboard=El,C.FoxOverLay=lt,C.FoxPage=hn,C.FoxPagination=wl,C.FoxPicker=pt,C.FoxPickerItem=zn,C.FoxPopover=Yt,C.FoxPopup=de,C.FoxPrice=Ge,C.FoxProgress=xt,C.FoxPullRefresh=zl,C.FoxRadio=Eo,C.FoxRadioGroup=Do,C.FoxRadioItem=Hn,C.FoxRange=Rt,C.FoxRate=yt,C.FoxRateItem=Zn,C.FoxRollingProvider=tl,C.FoxRow=fl,C.FoxRowItem=An,C.FoxSearchBar=Lo,C.FoxShortPassword=Tl,C.FoxSideNavBar=Bl,C.FoxSideNavBarItem=Al,C.FoxSignature=ca,C.FoxSkeleton=Jl,C.FoxSku=ma,C.FoxSlotItem=Vn,C.FoxStep=Yl,C.FoxSteps=Wl,C.FoxSticky=Et,C.FoxSubSideNavBar=Vl,C.FoxSwipe=Lt,C.FoxSwiper=wt,C.FoxSwiperItem=Nt,C.FoxSwitch=Po,C.FoxSwitchItem=Xn,C.FoxTabPane=It,C.FoxTabbar=Sl,C.FoxTabbarItem=Cl,C.FoxTable=ta,C.FoxTabs=Dt,C.FoxTabsBar=ol,C.FoxTabsContainer=nl,C.FoxTabsPane=ll,C.FoxTag=Wt,C.FoxText=rl,C.FoxTextarea=wo,C.FoxTextareaItem=Dn,C.FoxTimeDetail=fa,C.FoxTimePannel=ua,C.FoxTimeSelect=da,C.FoxToast=St,C.FoxTour=ra,C.FoxTrendArrow=aa,C.FoxUploader=$l,C.FoxVideo=Ct,C.FoxWaterMark=la,C.Grid=pl,C.GridItem=hl,C.Group=wn,C.HeaderBar=yn,C.HintText=ot,C.Image=cl,C.ImagePreview=Uo,C.Indicator=Nl,C.InfiniteLoading=xo,C.InputItem=Tn,C.InputNumber=rt,C.Item=Ne,C.Layout=dl,C.LinkItem=Qn,C.List=vl,C.Menu=kl,C.MenuItem=bl,C.MoneyItem=$n,C.Navbar=gl,C.NoticeBar=Hl,C.Notify=Rl,C.NumberKeyboard=El,C.OverLay=lt,C.Page=hn,C.Pagination=wl,C.Picker=pt,C.PickerItem=zn,C.Popover=Yt,C.Popup=de,C.Price=Ge,C.PriorityPolicy=fo,C.Progress=xt,C.PullRefresh=zl,C.Radio=Eo,C.RadioGroup=Do,C.RadioItem=Hn,C.Range=Rt,C.Rate=yt,C.RateItem=Zn,C.RollingProvider=tl,C.Row=fl,C.RowItem=An,C.SearchBar=Lo,C.ShortPassword=Tl,C.SideNavBar=Bl,C.SideNavBarItem=Al,C.Signature=ca,C.Skeleton=Jl,C.Sku=ma,C.SlotItem=Vn,C.Step=Yl,C.Steps=Wl,C.Sticky=Et,C.SubSideNavBar=Vl,C.Swipe=Lt,C.Swiper=wt,C.SwiperItem=Nt,C.Switch=Po,C.SwitchItem=Xn,C.TabPane=It,C.Tabbar=Sl,C.TabbarItem=Cl,C.Table=ta,C.Tabs=Dt,C.TabsBar=ol,C.TabsContainer=nl,C.TabsPane=ll,C.Tag=Wt,C.Text=rl,C.Textarea=wo,C.TextareaItem=Dn,C.TimeDetail=fa,C.TimePannel=ua,C.TimeSelect=da,C.Toast=St,C.Tour=ra,C.TrendArrow=aa,C.UniqueID=fr,C.Uploader=$l,C.ValidateSchema=Ya,C.ValidateSchemaKey=Ke,C.Video=Ct,C.WaterMark=la,C.cancelRaf=Sa,C.clamp=Fe,C.clearNonNumber=nn,C.clone=tn,C.compareTo=Jo,C.createBroadcast=to,C.createValidateSchema=no,C.debounce=it,C.debounceRef=Fs,C.decimalLength=Oa,C.default=IB,C.defineBroadcast=Is,C.defineConfigDomain=Qa,C.defineDataItem=Za,C.defineDomain=un,C.defineItem=Be,C.definePageState=Ja,C.deleteGlobalValidator=Ps,C.disabledProperty=Ve,C.divide=Zo,C.excludeProps=ln,C.extend=Je,C.floatData=Ka,C.getGlobalValidateCheckEvents=Ha,C.getGlobalValidateResetEvents=Wa,C.getPageContentAreaHeight=co,C.getPageContentAreaWidth=uo,C.getPageFooterAreaHeight=io,C.getPageHeaderAreaHeight=so,C.getRootDomain=dt,C.getScrollTopRoot=rn,C.hasSymbol=qa,C.includeProps=ke,C.indexOf=Es,C.installRules=Ga,C.integerLength=La,C.isArray=Zt,C.isArrayLike=Ma,C.isBrowser=Ye,C.isDate=Oe,C.isESModule=Bs,C.isEmptyString=ce,C.isEqual=Me,C.isFunction=Jt,C.isHidden=eo,C.isInnerPage=Us,C.isMap=Cs,C.isNil=Ea,C.isNumberString=xa,C.isObject=De,C.isPlainObject=en,C.isPromise=_o,C.isRegExp=Ra,C.isSet=ws,C.isString=Da,C.isSubPage=Hs,C.isSymbol=Ns,C.isWindow=za,C.lastIndexOf=Ds,C.makeArray=$s,C.merge=Pa,C.multiply=Va,C.negate=Ta,C.nextTick=Vs,C.numberFormat=Gt,C.objectToString=Ia,C.once=Ks,C.padZero=et,C.preventDefault=an,C.property=Ae,C.raf=Xe,C.readonlyProperty=Ee,C.setGlobalValidateCheckEvents=Rs,C.setGlobalValidateHandler=zs,C.setGlobalValidateMessages=Ls,C.setGlobalValidateResetEvents=xs,C.setGlobalValidator=Ms,C.throttle=lo,C.toBoolean=he,C.toNumber=pe,C.toPadding=Pe,C.toPx=ie,C.toPxDesc=fe,C.toTypeString=_t,C.toValue=qe,C.tryTimes=cn,C.typeOf=_e,C.unNumberFormat=$a,C.updatePageState=fn,C.useBroadcast=Vt,C.useDomain=ve,C.useExpose=Te,C.useInnerSize=gn,C.usePageState=ro,C.usePosition=ir,C.useRect=$e,C.useSize=po,C.useTouch=Ue,C.valueLength=ge,Object.defineProperties(C,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
12
+ ${n}
13
+ `)}}});function Eh(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const kl=J($h,[["render",Eh]]),{componentName:Dh,create:Ih}=X("divider"),qh=Ih({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:t.computed(()=>{const o=Dh;let a={[o]:!0},r={};return e.direction==="horizontal"?r={...a,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:r={...a,[`${o}-vertical`]:e.direction==="vertical"},r})}}});function Mh(e,n,l,o,a,r){return e.direction==="horizontal"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes)},null,2))}const bl=J(qh,[["render",Mh]]);function zh(e,n){const l=[],o=a=>{Array.isArray(a)&&a.forEach(r=>{if(t.isVNode(r)){if(n){if(r.type&&r.type.name===n){l.push(r);return}}else l.push(r);r.component?.subTree&&o(r.component.subTree.children),r.children&&o(r.children)}})};return o(e),l}function xh(e,n,l){const o=zh(e.subTree.children,l);n.sort((a,r)=>o.indexOf(a.vnode)-o.indexOf(r.vnode))}function Lh(e,n){const l=t.shallowReactive([]),o=t.getCurrentInstance(),a=i=>{i.proxy&&(l.push(t.markRaw(i)),xh(o,l,n))},r=i=>{l.splice(l.indexOf(t.markRaw(i)),1)},s=Object.assign;return i=>(t.provide(e,s({add:a,remove:r,internalChildren:l},i)),{internalChildren:l})}const{componentName:ms}=X("grid"),ps=Symbol("grid"),Ph={props:{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}},setup(e,{slots:n}){Lh(ps,`${ms}-item`)({props:e});const l=t.computed(()=>{const a=ms;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const a={};return e.gutter&&(a.paddingLeft=fe(e.gutter)),a});return()=>t.h("view",{class:l.value,style:o.value},n.default?.())}},{create:Rh}=X("grid"),Sl=Rh(Ph);function Fh(e){const n=t.inject(e,null);if(n){const l=t.getCurrentInstance(),{add:o,remove:a,internalChildren:r}=n;o(l),t.onUnmounted(()=>a(l));const s=t.computed(()=>r.indexOf(l));return{parent:n,index:s}}return{parent:null,index:t.ref(-1)}}const{create:Oh,componentName:hs}=X("grid-item"),vh=Oh({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const l=Fh(ps);if(!l.parent)return{};const o=l.index,a=l.parent.props,r=t.computed(()=>({[hs]:!0})),s=t.computed(()=>{const u={flexBasis:`${100/+a.columnNum}%`};return a.square?u.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(u.paddingRight=fe(a.gutter),o.value>=a.columnNum&&(u.marginTop=fe(a.gutter))),u}),i=t.computed(()=>{const u=`${hs}__content`;return{[`${u}`]:!0,[`${u}--border`]:a.border,[`${u}--surround`]:a.border&&a.gutter,[`${u}--center`]:a.center,[`${u}--square`]:a.square,[`${u}--reverse`]:a.reverse,[`${u}--${a.direction}`]:!!a.direction,[`${u}--clickable`]:a.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:u=>{n("click",u)}}}}),Kh={class:"fox-grid-item__text"};function Uh(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",Kh,[e.text?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.text),1)],64)):t.renderSlot(e.$slots,"text",{key:1})])],2)],6)}const Cl=J(vh,[["render",Uh]]),{componentName:Hh,create:jh}=X("navbar"),Wh=jh({components:{Left:te.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:l,fixed:o,safeAreaInsetTop:a,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let u=t.ref();const m=t.computed(()=>{const S=Hh;return{[S]:!0,[`${S}--border`]:l.value,[`${S}--fixed`]:o.value,[`${S}--safe-area-inset-top`]:a.value}}),p=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{u.value=c?.value?.getBoundingClientRect().height,i.value.style.height=u.value+"px"})});function h(){n("on-click-back")}function k(){n("on-click-title")}function g(){n("on-click-icon")}function b(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:m,styles:p,handleLeft:h,handleCenter:k,handleCenterIcon:g,handleRight:b}}}),Yh={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Xh={key:1,class:"fox-navbar__text"},Qh={class:"fox-navbar__title"},Gh={key:0,class:"fox-navbar__text"},Zh={key:1,class:"fox-navbar__text"},Jh={class:"fox-navbar__title"},_h={key:0,class:"fox-navbar__text"};function eg(e,n,l,o,a,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Yh,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:n[0]||(n[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Xh,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Qh,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:n[3]||(n[3]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",Gh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6)],512)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:n[5]||(n[5]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Zh,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Jh,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:n[8]||(n[8]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",_h,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const wl=J(Wh,[["render",eg]]),tg=(e,n,l)=>({components:l,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{default:"",type:String},activeText:{default:"",type:String},unActiveText:{default:"",type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(o,{emit:a}){const{toLocaleRefs:r}=se.useFoxI18n(n),s=r(o,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(p=!o.visible)=>{a("update:visible",p)},selected:(p,h)=>{a("selected",{item:p,event:h}),c.value=p.id},current:c}}}),{componentName:ng,create:og,scope:lg}=X("fixednav"),ag=og(tg(ng,lg,{[at.name]:at,Left:te.Left})),rg={class:"fox-fixednav__list"},sg=["onClick"],ig=["src"],cg={class:"span"},dg={key:0,class:"b"},ug={class:"text"};function fg(e,n,l,o,a,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Left");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(s,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",rg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:m=>e.selected(c,m),key:c.id||u},[t.createElementVNode("img",{src:c.icon},null,8,ig),t.createElementVNode("view",cg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",dg,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,sg))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{color:"#fff"}),t.createElementVNode("view",ug,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Nl=J(ag,[["render",fg]]),{componentName:mg,create:pg}=X("menu"),hg=pg({components:{ArrowUp2:te.ArrowUp2,ArrowDown2:te.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:l}){const o=t.ref(),a=t.ref(0),r=t.ref(!1),s=()=>{const S=t.reactive([]),d=t.reactive([]);return{children:S,linkChildren:y=>{const C=E=>{E.proxy&&(d.push(E),S.push(E.proxy))},B=E=>{if(E.proxy){let q=d.indexOf(E);q>-1&&d.splice(q,1);let I=S.indexOf(E.proxy);q>-1&&S.splice(I,1)}};t.provide("menuParent",Object.assign({removeLink:B,link:C,children:S,internalChildren:d},y))}}},{children:i,linkChildren:c}=s(),u=t.computed(()=>i.some(S=>S.state.showWrapper)),m=t.computed(()=>({[mg]:!0,"scroll-fixed":r.value})),p=()=>{if(o.value){const S=Ee(o);e.direction==="down"?a.value=S.bottom:a.value=window.innerHeight-S.top}};c({props:e,offset:a});const h=S=>{i.forEach((d,f)=>{f===S?(p(),d.toggle()):d.state.showPopup&&d.toggle(!1,{immediate:!0})})},k=S=>Math.max(0,"scrollTop"in S?S.scrollTop:S.pageYOffset),g=()=>{const{scrollFixed:S}=e,d=k(window);r.value=d>(typeof S=="boolean"?30:Number(S))},b=S=>{let d="";const{titleClass:f}=e;return S&&(d+="active"),f&&(d+=` ${f}`),d};return t.onMounted(()=>{const{scrollFixed:S}=e;S&&window.addEventListener("scroll",g)}),t.onUnmounted(()=>{const{scrollFixed:S}=e;S&&window.removeEventListener("scroll",g)}),{toggleItem:h,children:i,opened:u,classes:m,barRef:o,getClasses:b}}}),gg=["onClick"],yg={class:"fox-menu__title-text"},kg={class:"fox-menu__title-icon"};function bg(e,n,l,o,a,r){const s=t.resolveComponent("ArrowUp2"),i=t.resolveComponent("ArrowDown2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:m=>!c.disabled&&e.toggleItem(u),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",yg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",kg,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,gg))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Bl=J(hg,[["render",bg]]),{componentName:Sg,create:Cg}=X("menu-item"),wg=Cg({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:{[ce.name]:ce,Check:te.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:l}){const o=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),a=()=>{const k=t.inject("menuParent",null);if(k){const g=t.getCurrentInstance(),{link:b,removeLink:S}=k;return b(g),t.onUnmounted(()=>{S(g)}),{parent:k}}},{parent:r}=a(),s=t.computed(()=>({[Sg]:!0})),i=t.computed(()=>{const k={height:r.offset.value+"px"};return r.props.direction==="down"?k:{...k,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const k=e.options?.find(g=>g.value===e.modelValue);return k?k.text:""},state:o,parent:r,toggle:(k=!o.showPopup,g={})=>{k!==o.showPopup&&(o.showPopup=k,o.isShowPlaceholderElement=k,k&&(o.showWrapper=!0,n("open")))},onClick:k=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,k.value!==e.modelValue&&(n("update:modelValue",k.value),n("change",k.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),Ng={class:"fox-menu-item__content fox-menu-item__overflow"},Bg=["onClick"];function Ag(e,n,l,o,a,r){const s=t.resolveComponent("Check"),i=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:n[0]||(n[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:t.normalizeStyle(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),t.createVNode(i,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",top:"auto"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.state.showPopup=c),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:t.withCtx(()=>[t.createElementVNode("view",Ng,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:m=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps(e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass([c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),7)],14,Bg))),128)),t.renderSlot(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}const Al=J(wg,[["render",Ag]]),{create:Vg}=X("tabbar"),Tg=Vg({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 l(a){o.value!==a&&(o.value=a,n.emit("update:modelValue",a),n.emit("change",a,o.children[a]))}const o=t.reactive({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:l});return t.provide("parent",o),t.watch(()=>e.modelValue,a=>{o.value=a}),{changeIndex:l}}});function $g(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[t.renderSlot(e.$slots,"default")],2)}const Vl=J(Tg,[["render",$g]]),{create:Eg}=X("tabbar-item"),Dg=Eg({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 l=t.inject("parent"),o=t.reactive({size:l.size,inactiveColor:l.inactiveColor,activeColor:l.activeColor,value:l.value,index:0}),a=t.getCurrentInstance();a!==null&&(u=>{if(u.proxy){let m=l.children.length;o.index=m;let p=Object.assign(u.proxy,{index:m});l.children.push(p)}})(a);const r=t.computed(()=>o.index===o.value);function s(c){l&&typeof l.changeIndex=="function"&&l.changeIndex(c)}const i=t.computed(()=>l?l.value:null);return t.watch(i,c=>{o.value=c}),{state:o,active:r,change:s}}}),Ig={class:"fox-tabbar-item_icon-box"},qg={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Mg={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"},xg={key:2},Lg={key:0};function Pg(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:t.normalizeStyle({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=s=>e.change(e.state.index))},[t.createElementVNode("view",Ig,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",qg,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",Mg,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",zg)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",xg,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.icon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):t.createCommentVNode("",!0),!e.icon&&e.activeImg?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:t.normalizeStyle({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?(t.openBlock(),t.createElementBlock("view",Lg,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Tl=J(Dg,[["render",Pg]]),{componentName:Rg,create:Fg}=X("elevator"),Og=Fg({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 l=t.ref(null),o=t.reactive({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),a=t.computed(()=>({[Rg]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>l.value.clientHeight),i=(d,f)=>{const y="data-";return d.getAttribute(y+f)},c=d=>{t.nextTick(()=>{!o.listGroup.includes(d)&&d!=null&&o.listGroup.push(d)})},u=()=>{let d=0;o.listHeight.push(d);for(let f=0;f<o.listGroup.length;f++){let y=o.listGroup[f];d+=Math.floor(y.clientHeight),o.listHeight.push(d)}},m=d=>{!d&&d!==0||(d<0&&(d=0),d>o.listHeight.length-2&&(d=o.listHeight.length-2),o.codeIndex=d,l.value.scrollTo(0,o.listHeight[d]))},p=d=>{o.scrollStart=!0;let f=i(d.target,"index"),y=d.touches[0];o.touchState.y1=y.pageY,o.anchorIndex=+f,o.codeIndex=+f,m(+f)},h=d=>{let f=d.touches[0];o.touchState.y2=f.pageY;let y=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+y,m(o.codeIndex)},k=()=>{o.scrollStart=!1},g=(d,f)=>{n.emit("click-item",d,f),o.currentData=f,o.currentKey=d},b=d=>{n.emit("click-index",d)},S=d=>{let y=d.target.scrollTop;const C=o.listHeight;o.scrollY=y;for(let B=0;B<C.length-1;B++){let E=C[B],q=C[B+1];if(o.scrollY>=E&&o.scrollY<q){o.currentIndex=B,o.diff=q-o.scrollY;return}}o.currentIndex=C.length-2};return t.onMounted(()=>{l.value.addEventListener("scroll",S)}),$e({scrollTo:m}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(u)}),t.watch(()=>o.diff,d=>{const f=o.listHeight;let y=d>0&&d<e.titleHeight?d-e.titleHeight:0;o.scrollY+s.value===f[f.length-1]&&y!==0&&(y=0),o.fixedTop!==y&&(o.fixedTop=y)}),t.watch(()=>o.currentIndex,d=>{n.emit("change",d)}),{classes:a,...t.toRefs(o),fixedStyle:r,clientHeight:s,setListGroup:c,listview:l,touchStart:p,touchMove:h,touchEnd:k,handleClickItem:g,handleClickIndex:b}}}),vg={class:"fox-elevator__list__item__code"},Kg=["onClick"],Ug=["innerHTML"],Hg={class:"fox-elevator__fixed-title"},jg={class:"fox-elevator__bars__inner"},Wg=["data-index","onClick"];function Yg(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",vg,t.toDisplayString(s[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===i.id&&e.currentKey===s[e.acceptKey]}]),key:i.id,onClick:c=>e.handleClickItem(s[e.acceptKey],i)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:1,item:i}):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:i.name},null,8,Ug))],10,Kg))),128))]))),128)),e.isSticky?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__list__fixed",style:t.normalizeStyle(e.fixedStyle)},[t.createElementVNode("span",Hg,t.toDisplayString(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):t.createCommentVNode("",!0)],4),e.indexList.length?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__code--current"},t.toDisplayString(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-elevator__bars",onTouchstart:n[0]||(n[0]=(...s)=>e.touchStart&&e.touchStart(...s)),onTouchmove:n[1]||(n[1]=t.withModifiers((...s)=>e.touchMove&&e.touchMove(...s),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...s)=>e.touchEnd&&e.touchEnd(...s))},[t.createElementVNode("view",jg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:s[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":i,key:s[e.acceptKey],onClick:c=>e.handleClickIndex(s[e.acceptKey])},t.toDisplayString(s[e.acceptKey]),11,Wg))),128))])],32)],2)}const Lt=J(Og,[["render",Yg]]),{componentName:D2,create:Xg,scope:Qg}=X("pagination"),Gg=Xg({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:l}=se.useFoxI18n(Qg),o=l(e,["prevText","nextText"]),{modelValue:a,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:k,itemsPerPage:g}=t.toRefs(e),b=+h.value||Math.ceil(+k.value/+g.value);return Math.max(1,b)}),u=(h,k)=>{h>c.value||h<1||(h!=a.value&&n("update:modelValue",h),k&&n("change",h))},m=(h,k,g=!1)=>({number:h,text:k,active:g}),p=t.computed(()=>{if(r.value=="simple")return;let h=[];const k=c.value,g=+s.value;let b=1,S=k;const d=k>g;d&&(b=Math.max(a.value-Math.floor(g/2),1),S=b+g-1,S>k&&(S=k,b=S-g+1));for(var f=b;f<=S;f++){const y=m(f,f,a.value==f);h.push(y)}if(d&&g>0&&i.value){if(b>1){const y=m(b-1,"...");h.unshift(y)}if(S<k){const y=m(S+1,"...");h.push(y)}}return h});return t.watchEffect(()=>{u(a.value,!1)}),{...o,modelValue:a,select:u,countRef:c,mode:r,pages:p,forceEllipses:i}}}),Zg={class:"fox-pagination"},Jg={key:0,class:"fox-pagination-contain"},_g=["onClick"],ey={key:1,class:"fox-pagination-contain"},ty={class:"fox-pagination-simple"};function ny(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",Zg,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=s=>e.select(e.modelValue-1,!0))},[t.renderSlot(e.$slots,"prev-text",{},()=>[t.createTextVNode(t.toDisplayString(e.prevText),1)])],2),e.mode=="multi"?(t.openBlock(),t.createElementBlock("view",Jg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(s,i)=>(t.openBlock(),t.createElementBlock("view",{key:i+"pagination",class:t.normalizeClass(["fox-pagination-item",s.active?"active":""]),onClick:c=>e.select(s.number,!0)},[t.renderSlot(e.$slots,"page",{item:s},()=>[t.createTextVNode(t.toDisplayString(s.text),1)])],10,_g))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",ey,[t.createElementVNode("view",ty,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=s=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const $l=J(Gg,[["render",ny]]),{componentName:gs,create:oy}=X("indicator"),ly=oy({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:l}=t.toRefs(e);return{classes:t.computed(()=>{const a=gs;return{[a]:!0,[`${a}--block`]:n.value,[`${a}--align__${l.value}`]:n.value&&l.value}}),componentName:gs,padZero:tt}}});function ay(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,s=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[s===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(s)||s),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const El=J(ly,[["render",ay]]),{componentName:ry,create:sy}=X("side-navbar"),iy=sy({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=t.ref(null),l=t.reactive({count:1,observer:null}),o=t.computed(()=>({[ry]:!0})),a=(s,i=1)=>{for(let c=0;c<s.length;c++){let u=s[c];u?.children?.[0]&&(u.children[0].style.paddingLeft=+e.offset*i+"px",u.className.includes("fox-side-navbar-item")||a(Array.from(u.children[1].children),++l.count))}l.count--},r=()=>{let s=n.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),a(s))};return t.onMounted(()=>{r(),l.observer=new MutationObserver(function(){l.count=1,r()}),l.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(l),list:n,classes:o}}}),cy={class:"fox-side-navbar__content"},dy={class:"fox-side-navbar__content__list",ref:"list"};function uy(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",cy,[t.createElementVNode("view",dy,[t.renderSlot(e.$slots,"default")],512)])],2)}const Dl=J(iy,[["render",uy]]),{componentName:fy,create:my}=X("side-navbar-item"),py=my({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[fy]:!0})),handleClick:()=>{n.emit("click")}})}),hy=["ikey"],gy={class:"fox-side-navbar-item__title"};function yy(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[t.createElementVNode("span",gy,t.toDisplayString(e.title),1)],10,hy)}const Il=J(py,[["render",yy]]),{componentName:ky,create:by}=X("sub-side-navbar"),Sy=by({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:te.ArrowDown2,ArrowUp2:te.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const l=t.reactive({direction:""}),o=t.computed(()=>({[ky]:!0})),a=t.computed(()=>({height:l.direction?"0px":"auto"})),r=()=>{n.emit("title-click"),l.direction=l.direction?"":"up"};return t.onMounted(()=>{l.direction=e.open?"":"up"}),{...t.toRefs(l),classes:o,style:a,handleClick:r}}}),Cy=["ikey"],wy={class:"fox-sub-side-navbar__title__text"},Ny={class:"fox-sub-side-navbar__title__icon"};function By(e,n,l,o,a,r){const s=t.resolveComponent("ArrowDown2"),i=t.resolveComponent("ArrowUp2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-sub-side-navbar__title",onClick:n[0]||(n[0]=t.withModifiers((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[t.createElementVNode("span",wy,t.toDisplayString(e.title),1),t.createElementVNode("span",Ny,[e.direction?(t.openBlock(),t.createBlock(i,{key:1})):(t.openBlock(),t.createBlock(s,{key:0}))])]),t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,Cy)}const ql=J(Sy,[["render",By]]),{componentName:Ay,create:Vy}=X("range"),Ty=Vy({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 l=t.ref(0);let o,a;const r=t.ref(),s=t.ref(),i=He(),c=t.computed(()=>{const{marks:D,max:T,min:M}=e;return Object.keys(D).map(parseFloat).sort(($,K)=>$-K).filter($=>$>=M&&$<=T)}),u=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const D=Ay;return{[D]:!0,[`${D}-disabled`]:e.disabled,[`${D}-vertical`]:e.vertical,[`${D}-show-number`]:!e.hiddenRange}}),p=t.computed(()=>{const D="fox-range-container";return{[D]:!0,[`${D}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),k=t.computed(()=>({borderColor:e.buttonColor})),g=D=>!!e.range&&Array.isArray(D),b=()=>{const{modelValue:D,min:T}=e;return g(D)?`${(D[1]-D[0])*100/u.value}%`:`${(D-Number(T))*100/u.value}%`},S=()=>{const{modelValue:D,min:T}=e;return g(D)?`${(D[0]-Number(T))*100/u.value}%`:"0%"},d=t.computed(()=>e.vertical?{height:b(),top:S(),background:e.activeColor,transition:s.value?"none":void 0}:{width:b(),left:S(),background:e.activeColor,transition:s.value?"none":void 0}),f=D=>{const T="fox-range-mark",{modelValue:M,max:V,min:v}=e;let $=Number(v),K=Number(V);if(e.range){const[U,F]=M;$=U,K=F}else K=M;let W=D<=K&&D>=$;return{[`${T}-text`]:!0,[`${T}-text-active`]:W}},y=D=>{const{min:T,vertical:M}=e;let V={left:`${(D-Number(T))/u.value*100}%`};return M&&(V={top:`${(D-Number(T))/u.value*100}%`}),V},C=D=>{const{modelValue:T,max:M,min:V}=e;let v=Number(V),$=Number(M);if(e.range){const[U,F]=T;v=U,$=F}return{background:D<=$&&D>=v?e.activeColor:e.inactiveColor}},B=D=>{const{min:T,max:M,step:V}=e;return D=Math.max(+T,Math.min(D,+M)),Math.round(D/+V)*+V},E=(D,T)=>JSON.stringify(D)===JSON.stringify(T),q=D=>D[0]>D[1]?D.slice(0).reverse():D,I=(D,T)=>{g(D)?D=q(D).map(B):D=B(D),E(D,e.modelValue)||n("update:modelValue",D),T&&!E(D,o)&&n("change",D)},z=D=>{if(e.disabled)return;const{min:T,modelValue:M}=e,V=Ee(r);let v=D.clientX-V.left,$=V.width;e.vertical&&(v=D.clientY-V.top,$=V.height);const K=Number(T)+v/$*u.value;if(g(M)){const[W,U]=M,F=(W+U)/2;K<=F?I([K,U],!0):I([W,K],!0)}else I(K,!0)},N=D=>{e.disabled||(i.start(D),a=e.modelValue,g(a)?o=a.map(B):o=B(a),s.value="start")},A=D=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(D),s.value="draging";const T=Ee(r);let M=i.deltaX.value,V=T.width,v=M/V*u.value;e.vertical&&(M=i.deltaY.value,V=T.height,v=M/V*u.value),g(o)?a[l.value]=o[l.value]+v:a=o+v,I(a),D.stopPropagation(),D.preventDefault()},L=()=>{e.disabled||(s.value==="draging"&&(I(a,!0),n("drag-end")),s.value="")},O=D=>Jt(e.modelValue)&&typeof D=="number"?e.modelValue[D]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:h,buttonStyle:k,onClick:z,onTouchStart:N,onTouchMove:A,onTouchEnd:L,...t.toRefs(e),barStyle:d,curValue:O,buttonIndex:l,containerClasses:p,markClassName:f,marksStyle:y,marksList:c,tickStyle:C}}}),$y={key:0,class:"fox-range-min"},Ey={key:0,class:"fox-range-mark"},Dy=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Iy={key:0,class:"number"},qy=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],My={key:0,class:"number"},zy={key:1,class:"fox-range-max"};function xy(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",$y,t.toDisplayString(+e.min),1)),t.createElementVNode("view",{ref:"root",style:t.normalizeStyle(e.wrapperStyle),class:t.normalizeClass(e.classes),onClick:n[9]||(n[9]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",Ey,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,s=>(t.openBlock(),t.createElementBlock("span",{key:s,class:t.normalizeClass(e.markClassName(s)),style:t.normalizeStyle(e.marksStyle(s))},[t.createTextVNode(t.toDisplayString(s)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(s))},null,4)],6))),128))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-range-bar",style:t.normalizeStyle(e.barStyle)},[e.range?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList([0,1],s=>t.createElementVNode("view",{key:s,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":s==0,"fox-range-button-wrapper-right":s==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(s),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(i=>{typeof s=="number"&&(e.buttonIndex=s),e.onTouchStart(i)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:n[1]||(n[1]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:n[3]||(n[3]=i=>i.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Iy,t.toDisplayString(e.curValue(s)),1))],4))],42,Dy)),64)):(t.openBlock(),t.createElementBlock("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=t.withModifiers(s=>{e.onTouchStart(s)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:n[6]||(n[6]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:n[8]||(n[8]=s=>s.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",My,t.toDisplayString(e.curValue()),1))],4))],40,qy))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",zy,t.toDisplayString(+e.max),1))],2)}const Pt=J(Ty,[["render",xy]]),{componentName:Ly,create:Py}=X("input-number"),Ry=Py({components:{Minus:te.Minus,Plus:te.Plus},props:{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}},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const l=t.computed(()=>{const k=Ly;return{[k]:!0,[`${k}--disabled`]:e.disabled}}),o=k=>Number(k).toFixed(Number(e.decimalPlaces)),a=k=>{const g=k.target;n("update:modelValue",g.valueAsNumber,k)},r=(k,g)=>{let b=o(k);n("update:modelValue",b,g),n("change",b,g)},s=(k=Number(e.modelValue))=>k<Number(e.max)&&!e.disabled,i=(k=Number(e.modelValue))=>k>Number(e.min)&&!e.disabled,c=k=>{if(n("reduce",k),i()){let g=Number(e.modelValue)-Number(e.step);r(g,k)}else n("overlimit",k,"reduce")},u=k=>{if(n("add",k),s()){let g=Number(e.modelValue)+Number(e.step);r(g,k)}else n("overlimit",k,"add")},m=k=>{e.disabled||e.readonly||n("focus",k)},p=k=>{if(e.disabled||e.readonly)return;let b=k.target.valueAsNumber;b<Number(e.min)?b=Number(e.min):b>Number(e.max)&&(b=Number(e.max)),r(b,k),n("blur",k)},h=k=>{let g=Number(k);return g<Number(e.min)?g=Number(e.min):g>Number(e.max)&&(g=Number(e.max)),g};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const k=h(e.modelValue);k!==Number(e.modelValue)&&r(k,{})}),{classes:l,change:a,blur:p,focus:m,add:u,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:fe}}}),Fy=["min","max","disabled","readonly","value"];function Oy(e,n,l,o,a,r){const s=t.resolveComponent("Minus"),i=t.resolveComponent("Plus");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:n[0]||(n[0]=(...c)=>e.reduce&&e.reduce(...c))},[t.renderSlot(e.$slots,"left-icon",{},()=>[t.createVNode(s,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxDesc(e.inputWidth),height:e.toPxDesc(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[1]||(n[1]=(...c)=>e.change&&e.change(...c)),onBlur:n[2]||(n[2]=(...c)=>e.blur&&e.blur(...c)),onFocus:n[3]||(n[3]=(...c)=>e.focus&&e.focus(...c))},null,44,Fy),t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[4]=(...c)=>e.add&&e.add(...c))},[t.renderSlot(e.$slots,"right-icon",{},()=>[t.createVNode(i,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2)],2)}const it=J(Ry,[["render",Oy]]),{create:vy,scope:Ky}=X("short-password"),Uy=vy({components:{[ce.name]:ce,Tips:te.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:n}){const{toLocaleRefs:l}=se.useFoxI18n(Ky),o=l(e,["title","desc","tips"]),a=t.ref(e.modelValue),r=t.computed(()=>u(Number(e.length))),s=t.ref(e.visible),i=p=>{p.stopPropagation(),n("focus")};t.watch(()=>e.visible,p=>{s.value=p}),t.watch(()=>e.modelValue,p=>{a.value=p,String(p).length===r.value&&n("complete",p)});const c=()=>{n("update:visible",!1),n("close")},u=p=>Math.min(Math.max(4,p),6);return{comLen:r,realInput:a,onTouchStart:i,range:u,close:c,onTips:()=>{n("tips")},show:s,...o}}}),Hy={class:"fox-short-password-title"},jy={class:"fox-short-password-subtitle"},Wy={class:"fox-short-password-wrapper"},Yy={key:0,class:"fox-short-password__item-icon"},Xy={class:"fox-short-password__message"},Qy={class:"fox-short-password--error"},Gy={key:0,class:"fox-short-password--forget"};function Zy(e,n,l,o,a,r){const s=t.resolveComponent("Tips"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(i,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":n[2]||(n[2]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("view",Hy,t.toDisplayString(e.title),1),t.createElementVNode("view",jy,t.toDisplayString(e.desc),1),t.createElementVNode("div",Wy,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:u},[String(e.realInput).length>u?(t.openBlock(),t.createElementBlock("view",Yy)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",Xy,[t.createElementVNode("view",Qy,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",Gy,[t.createVNode(s,{class:"icon",width:"11px",height:"11px"}),t.createElementVNode("view",{onClick:n[1]||(n[1]=(...c)=>e.onTips&&e.onTips(...c))},t.toDisplayString(e.tips),1)])):t.createCommentVNode("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}const Ml=J(Uy,[["render",Zy]]);class Jy{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let _y=class{options;constructor(n){this.options=n}upload(){const n=this.options,l=new XMLHttpRequest;if(l.timeout=n.timeout,l.upload){l.upload.addEventListener("progress",o=>{n.onProgress?.(o,n)},!1),l.onreadystatechange=()=>{l.readyState===4&&(l.status==n.xhrState?n.onSuccess?.(l.responseText,n):n.onFailure?.(l.responseText,n))},l.withCredentials=n.withCredentials,l.open(n.method,n.url,!0);for(const[o,a]of Object.entries(n.headers))l.setRequestHeader(o,a);n.onStart?.(n),n.beforeXhrUpload?n.beforeXhrUpload(l,n):l.send(n.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}};class e0{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const ys=(e,{args:n=[],done:l,canceled:o})=>{if(e){const a=e.apply(null,n);eo(a)?a.then(r=>{r?l(r):o&&o()}).catch(()=>{}):a?l():o&&o()}else l()},{create:t0}=X("progress"),n0=t0({components:{Checked:te.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,l=t.ref(e.strokeWidth+"px"),o=t.ref(),a=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),s=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),i=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:l,percentage:r,bgStyle:s,textStyle:i,progressOuter:o,insideText:a,slotDefault:n}}}),o0={class:"fox-progress"},l0={key:0,class:"fox-progress-text"};function a0(e,n,l,o,a,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",o0,[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-outer",[e.showText&&!e.textInside?"fox-progress-outer-part":"",e.size?"fox-progress-"+e.size:""]]),ref:"progressOuter",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-inner",e.status=="active"?"fox-active":""]),style:t.normalizeStyle(e.bgStyle)},null,6),e.showText&&e.textInside&&!e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-progress-text fox-progress-insidetext",ref:"insideText",style:t.normalizeStyle({lineHeight:e.height,left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`,background:e.textBackground||e.strokeColor})},[t.createElementVNode("span",{style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)],4)):t.createCommentVNode("",!0),e.showText&&e.textInside&&e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:1,ref:"insideText",style:t.normalizeStyle({position:"absolute",top:"50%",left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`})},[t.renderSlot(e.$slots,"default")],4)):t.createCommentVNode("",!0)],6),e.showText&&!e.textInside?(t.openBlock(),t.createElementBlock("div",l0,[e.status=="active"||e.status==""?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)):e.status=="icon"?t.renderSlot(e.$slots,"icon-name",{key:1},()=>[t.createVNode(s,{width:"15px",height:"15px",color:"#439422"})]):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const Rt=J(n0,[["render",a0]]),{componentName:r0,create:s0,scope:i0}=X("uploader"),c0=s0({components:{[Rt.name]:Rt,Photograph:te.Photograph,Failure:te.Failure,Loading:te.Loading,Del:te.Del,Link:te.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:l}=se.useFoxI18n(i0),o=t.reactive(e.fileList);let a=[];const r=t.computed(()=>({[r0]:!0})),s=()=>{let f={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(f.capture="camera"),t.h("input",f)},i=f=>{f.value=""},c=f=>{n("file-item-click",{fileItem:f})},u=(f,y)=>{const C=new Jy;C.url=e.url,C.formData=f.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=f.formData.get(e.name)}catch{}C.onStart=E=>{f.status="ready",f.message=l("readyUpload"),m(y),n("start",E)},C.onProgress=(E,q)=>{f.status="uploading",f.message=l("uploading"),f.percentage=(E.loaded/E.total*100).toFixed(0),n("progress",{event:E,option:q,percentage:f.percentage})},C.onSuccess=(E,q)=>{f.status="success",f.message=l("success"),n("success",{responseText:E,option:q,fileItem:f}),n("update:fileList",o)},C.onFailure=(E,q)=>{f.status="error",f.message=l("error"),n("failure",{responseText:E,option:q,fileItem:f})};let B=new _y(C);e.autoUpload?B.upload():a.push(new Promise((E,q)=>{E(B)}))},m=(f=-1)=>{f>-1?a.splice(f,1):(a=[],o.splice(0,o.length))},p=()=>{Promise.all(a).then(f=>{f.forEach(y=>y.upload())})},h=f=>{f.forEach((y,C)=>{const B=new FormData;for(const[q,I]of Object.entries(e.data))B.append(q,I);B.append(e.name,y);const E=t.reactive(new e0);if(E.name=y.name,E.status="ready",E.type=y.type,E.formData=B,E.message=l("waitingUpload"),u(E,C),e.isPreview&&y.type.includes("image")){const q=new FileReader;q.onload=I=>{E.url=I.target.result,o.push(E)},q.readAsDataURL(y)}else o.push(E)})},k=f=>{const y=e.maximum*1,C=e.maximize*1,B=new Array;f=f.filter(q=>q.size>C?(B.push(q),!1):!0),B.length&&n("oversize",B);let E=f.length+o.length;return E>y&&f.splice(f.length-(E-y)),f},g=(f,y)=>{o.splice(y,1),n("delete",{file:f,fileList:o,index:y})},b=(f,y)=>{m(y),ys(e.beforeDelete,{args:[f,o],done:()=>g(f,y)})},S=f=>{if(e.disabled)return;const y=f.target;let{files:C}=y;e.beforeUpload?e.beforeUpload(C).then(B=>d(B)):d(C),n("change",{fileList:o,event:f}),e.clearInput&&i(y)},d=f=>{const y=k(new Array().slice.call(f));h(y)};return{onChange:S,onDelete:b,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:m,submit:p,renderInput:s}}}),d0={key:0,class:"fox-uploader__slot"},u0={key:0,class:"fox-uploader__preview-img"},f0={key:0,class:"fox-uploader__preview__progress"},m0={class:"fox-uploader__preview__progress__msg"},p0=["onClick"],h0=["onClick","src"],g0={key:3,class:"fox-uploader__preview-img__file"},y0=["onClick"],k0={class:"file__name_tips"},b0={class:"tips"},S0={key:1,class:"fox-uploader__preview-list"},C0=["onClick"],w0={class:"file__name_tips"};function N0(e,n,l,o,a,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),u=t.resolveComponent("Del"),m=t.resolveComponent("fox-progress"),p=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",d0,[t.renderSlot(e.$slots,"default"),Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(h,k)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:h.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",u0,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",f0,[h.status!="ready"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[h.status=="error"?(t.openBlock(),t.createBlock(s,{key:0,color:"#fff"})):(t.openBlock(),t.createBlock(i,{key:1,name:"loading",color:"#fff"}))],64)):t.createCommentVNode("",!0),t.createElementVNode("view",m0,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:g=>e.onDelete(h,k)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,p0)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:g=>e.fileItemClick(h),src:h.url},null,8,h0)):(t.openBlock(),t.createElementBlock("view",g0,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",k0,t.toDisplayString(h.name),1)],8,y0)])),t.createElementVNode("view",b0,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",S0,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[h.status]])},[t.createVNode(c,{class:"fox-uploader__preview-img__file__link"}),t.createElementVNode("view",w0,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(u,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:g=>e.onDelete(h,k)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,C0),h.status=="uploading"?(t.openBlock(),t.createBlock(m,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(p,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const zl=J(c0,[["render",N0]]),B0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj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TLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:V0,scope:T0}=X("number-keyboard"),$0=V0({components:{[ce.name]:ce},props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:n}){const{toLocaleRefs:l}=se.useFoxI18n(T0),o=l(e,["confirmText"]),a=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:d}=e;let f={id:"lock",type:"lock"},y=Array.isArray(d)?d:[d];return y.length===1&&(f={id:y[0],type:"custom"}),[...c(),f,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const d=[];for(let f=1;f<=9;f++)d.push({id:f,type:"number"});return e.randomKeys?d.sort(()=>Math.random()>.5?1:-1):d}function u(){const d=c(),{customKey:f}=e;let y=Array.isArray(f)?f:[f];return y.length>2&&(y=[y[0],y[1]]),y.length==2&&e.title&&e.type!="rightColumn"&&(y=[y[0]]),y.length===1?e.title&&e.type!="rightColumn"?d.push({id:y[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):d.push({id:0,type:"number"},{id:y[0],type:"custom"}):y.length===2&&d.push({id:y[0],type:"custom"},{id:0,type:"number"},{id:y[1],type:"custom"}),d}const m=t.computed(()=>e.type=="rightColumn"||e.title!=""?u():i()),p=()=>{e.visible&&n("blur")},h=d=>{const f=s.value;f&&!f.contains(d.target)&&p()};t.watch(()=>e.visible,d=>{r.value=d,d?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function k(d,f){f.stopPropagation(),a.value=d.id,(d.type=="number"||d.type=="custom")&&(n("input",d.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+d.id)),d.type=="lock"&&S(),d.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function g(d){d.stopPropagation()}function b(d){d.preventDefault(),a.value=void 0}function S(){n("update:visible",!1),n("close")}return{...o,delImg:B0,lockImg:A0,clickKeyIndex:a,defaultKey:i,closeBoard:S,onTouchEnd:b,onTouchMove:g,onTouchstart:k,keysList:m,genCustomKeys:u,getBasicKeys:c,root:s,show:r}}}),E0={ref:"root"},D0={class:"fox-number-keyboard"},I0={key:0,class:"fox-number-keyboard__header"},q0={class:"fox-number-keyboard__title"},M0={class:"fox-number-keyboard__body"},z0={class:"fox-number-keyboard__keys"},x0=["onTouchstart"],L0=["src"],P0=["src"],R0={key:0,class:"fox-number-keyboard__sidebar"},F0={class:"fox-key__wrapper"},O0=["src"];function v0(e,n,l,o,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",E0,[t.createVNode(s,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=i=>e.show=i),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",D0,[e.title?(t.openBlock(),t.createElementBlock("div",I0,[t.createElementVNode("h3",q0,t.toDisplayString(e.title),1),e.type=="default"?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-number-keyboard__close",onClick:n[0]||(n[0]=i=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",M0,[t.createElementVNode("div",z0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,i=>(t.openBlock(),t.createElementBlock("div",{key:"key"+i.id,class:t.normalizeClass(["fox-key__wrapper",{"fox-key__wrapper--wider":i.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{"fox-key--active":i.id==e.clickKeyIndex},{"fox-key--lock":i.type=="lock"},{"fox-key--delete":i.type=="delete"}]),onTouchstart:c=>e.onTouchstart(i,c),onTouchmove:n[1]||(n[1]=c=>e.onTouchMove(c)),onTouchend:n[2]||(n[2]=c=>e.onTouchEnd(c))},[i.type=="number"||i.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.id),1)],64)):t.createCommentVNode("",!0),i.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,L0)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,P0)):t.createCommentVNode("",!0)],42,x0)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",R0,[t.createElementVNode("div",F0,[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=i=>e.onTouchstart({id:"delete",type:"delete"},i)),onTouchmove:n[4]||(n[4]=i=>e.onTouchMove(i)),onTouchend:n[5]||(n[5]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("img",{src:e.delImg},null,8,O0)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=i=>e.closeBoard())},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},t.toDisplayString(e.confirmText),3)])])):t.createCommentVNode("",!0)])])]),_:1},8,["visible","popClass"])],512)}const xl=J($0,[["render",v0]]),{componentName:K0,create:U0}=X("swipe"),H0=U0({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 l=t.computed(()=>({[K0]:!0})),o=f=>f.value?.clientWidth||0,a=t.ref(),r=t.computed(()=>o(a)),s=t.ref(),i=t.computed(()=>o(s));let c=!1,u="",m="";const p=t.reactive({offset:0,moving:!1}),h=(f="")=>{c=!0,f&&(p.offset=f==="left"?-i.value:r.value),n("open",{name:e.name,position:u||f})},k=()=>{p.offset=0,c=!1,n("close",{name:e.name,position:u})},g=t.computed(()=>({transform:`translate3d(${p.offset}px, 0, 0)`})),b=f=>{u=f>0?"right":"left";let y=f;switch(u){case"left":c&&m===u?y=-i.value:y=Math.abs(f)>i.value?-i.value:f;break;case"right":c&&m===u?y=r.value:y=Math.abs(f)>r.value?r.value:f;break}p.offset=y},S=He();return{classes:l,touchStyle:g,...{onTouchStart(f){e.disabled||S.start(f)},onTouchMove(f){e.disabled||(S.move(f),S.isHorizontal()&&(p.moving=!0,b(S.deltaX.value),e.touchMovePreventDefault&&f.preventDefault(),e.touchMoveStopPropagation&&f.stopPropagation()))},onTouchEnd(){if(p.moving)switch(p.moving=!1,m=u,u){case"left":Math.abs(p.offset)<=i.value/2?k():(p.offset=-i.value,h());break;case"right":Math.abs(p.offset)<=r.value/2?k():(p.offset=r.value,h());break}}},leftRef:a,rightRef:s,open:h,close:k}}}),j0={class:"fox-swipe__left",ref:"leftRef"},W0={class:"fox-swipe__content"},Y0={class:"fox-swipe__right",ref:"rightRef"};function X0(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",j0,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",W0,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Y0,[t.renderSlot(e.$slots,"right")],512)],38)}const Ft=J(H0,[["render",X0]]),{componentName:Q0,create:G0}=X("action-sheet"),Z0=G0({components:{[ce.name]:ce,Loading:te.Loading},props:{...lt,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const l=!!t.useSlots().default,o=t.computed(()=>({[Q0]:!0}));return{slotDefault:l,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(c,u)=>{!c.disable&&!c.loading&&(n("choose",c,u),n("update:visible",!1))},close:c=>{n("close",c),n("update:visible",!1)},classes:o}}}),J0={key:0,class:"fox-action-sheet__title"},_0={key:1},ek={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},tk={key:1,class:"fox-action-sheet__menu"},nk=["onClick"],ok={key:1},lk={class:"fox-action-sheet__subdesc"};function ak(e,n,l,o,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.title?(t.openBlock(),t.createElementBlock("view",J0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",_0,[e.description?(t.openBlock(),t.createElementBlock("view",ek,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",tk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:t.normalizeStyle({color:e.isHighlight(c)||c.color}),key:u,onClick:m=>e.chooseItem(c,u)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",ok,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",lk,t.toDisplayString(c[e.optionSubTag]),1)],14,nk))),128))])):t.createCommentVNode("",!0),e.cancelTxt?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-action-sheet__cancel",onClick:n[0]||(n[0]=(...c)=>e.cancelActionSheet&&e.cancelActionSheet(...c))},t.toDisplayString(e.cancelTxt),1)):t.createCommentVNode("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}const Ll=J(Z0,[["render",ak]]),{componentName:rk,create:sk}=X("backtop"),Pl=sk({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:l}){const o=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),a=t.computed(()=>({[rk]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function i(g=0){o.scrollEl instanceof Window?window.scrollTo(0,g):o.scrollEl.scrollTop=g}function c(){let g=Ye(function b(){var S=e.duration-Math.max(0,o.startTime-+new Date+e.duration),d=S*-o.scrollTop/e.duration+o.scrollTop;i(d),g=Ye(b),(S==e.duration||d==0)&&Va(g)})}function u(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function m(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function p(g){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",g)}function h(){k.value?o.scrollEl=k.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),u()}t.onMounted(()=>{e.distance==0&&(o.backTop=!0),h()}),t.onUnmounted(()=>{m()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,h())}),t.onDeactivated(()=>{o.keepAlive=!0,m()});const k=t.computed(()=>{if(typeof l.content=="function"){const g=l.content();return Array.isArray(g)?g[0]:g}return null});return()=>{const g=[];k.value&&g.push(k.value);const b=[];if(typeof l.default=="function")b.push(l.default());else{const d=t.h(te.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});b.push(d)}const S=t.h("div",{class:a.value,style:r.value,onClick:p},b);return g.push(S),g}}}),{componentName:ik,create:ck}=X("drag"),dk=ck({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 l=t.ref(),o=t.reactive({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),a=t.computed(()=>({[ik]:!0}));function r(){const p=document.documentElement;o.elWidth=l.value.offsetWidth,o.elHeight=l.value.offsetHeight,o.screenWidth=p.clientWidth,o.screenHeight=p.clientHeight}function s(p){o.boundary.left?+p.style.left.split("px")[0]>o.boundary.left?(p.style.left=+p.style.left.split("px")[0]-10+"px",Fe(()=>{s(p)})):p.style.left=`${o.boundary.left}px`:+p.style.left.split("px")[0]>10?(p.style.left=+p.style.left.split("px")[0]-10+"px",Fe(()=>{s(p)})):p.style.left="0px"}function i(p,h){h-parseInt(p.style.left.split("px")[0])>10?(p.style.left=parseInt(p.style.left.split("px")[0])+10+"px",Fe(()=>{i(p,h)})):p.style.left=h+"px"}function c(p){p.preventDefault();const h=p.currentTarget;if(p.targetTouches.length===1){const k=p.targetTouches[0];o.nx=k.clientX-o.position.x,o.ny=k.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const g=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>g?o.xPum=g:o.xPum<=o.boundary.left&&(o.xPum=o.boundary.left),o.yPum<o.boundary.top?o.yPum=o.boundary.top:o.yPum>o.screenHeight-o.elHeight-o.boundary.bottom&&(o.yPum=o.screenHeight-o.elHeight-o.boundary.bottom),e.direction!="y"&&(h.style.left=o.xPum+"px"),e.direction!="x"&&(h.style.top=o.yPum+"px")}}function u(p){const h=p.currentTarget;let g=p.changedTouches[0].clientX;const b=o.screenWidth-o.elWidth-o.boundary.right;g>b?g=b:g<o.boundary.left?g=o.boundary.left:g=g<o.screenWidth/2?o.boundary.left:b,e.direction!="y"&&e.attract&&(g<o.screenWidth/2?Fe(()=>{s(h)}):Fe(()=>{i(h,b)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function m(p){const h=p.currentTarget,k=p.touches[0],g=p.targetTouches[0];o.startTop=h.offsetTop,o.startLeft=h.offsetLeft,o.position.x=k.clientX,o.position.y=k.clientY,o.nx=g.clientX-o.position.x,o.ny=g.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny}return t.onMounted(()=>{r(),o.boundary=e.boundary}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1)}),t.onDeactivated(()=>{o.keepAlive=!0;const p=l;p.value.removeEventListener("touchstart",m),p.value.removeEventListener("touchmove",c),p.value.removeEventListener("touchend",u)}),{classes:a,myDrag:l,touchStart:m,touchMove:c,touchEnd:u}}});function uk(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=s=>e.touchStart(s)),onTouchmove:n[1]||(n[1]=s=>e.touchMove(s)),onTouchend:n[2]||(n[2]=s=>e.touchEnd(s))},[t.renderSlot(e.$slots,"default")],34)}const Rl=J(dk,[["render",uk]]),{componentName:fk,create:mk,scope:pk}=X("dialog"),hk=mk({inheritAttrs:!1,components:{[ce.name]:ce,[Me.name]:Me},props:{...lt,closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String,default:""},content:{type:[String,Object],default:""},noFooter:{type:Boolean,default:!1},noConfirmBtn:{type:Boolean,default:!1},noCancelBtn:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},closeOnPopstate:{type:Boolean,default:!1},footerDirection:{type:String,default:"horizontal"},customClass:{type:String,default:""},popStyle:{type:Object},beforeClose:{type:Function}},emits:["update","update:visible","confirm","cancel","opened","closed"],setup(e,{emit:n}){const{toLocaleRefs:l}=se.useFoxI18n(pk),o=l(e,["confirmText","cancelText"]),a=t.ref(e.visible);t.onMounted(()=>{e.closeOnPopstate&&Xe&&window.addEventListener("popstate",function(){i("page")})}),t.watch(()=>e.visible,m=>{a.value=m,m&&n("opened")});const r=t.computed(()=>({[fk]:!0,[e.customClass]:!0})),s=m=>{n("update",m),n("update:visible",m)},i=m=>{if(e.beforeClose){const p=e.beforeClose(m);eo(p)&&p.then(h=>{h&&(s(!1),n("closed"))})}else s(!1),n("closed")};return{...o,closed:i,classes:r,onCancel:()=>{n("cancel"),e.cancelAutoClose&&i("cancel")},onConfirm:()=>{n("confirm"),i("confirm")},showPopup:a}}}),gk={key:0,class:"fox-dialog__header"},yk=["innerHTML"];function kk(e,n,l,o,a,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{teleport:e.teleport,visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=c=>e.showPopup=c),"close-on-click-overlay":e.closeOnClickOverlay,"lock-scroll":e.lockScroll,"pop-class":e.popClass,style:t.normalizeStyle(e.popStyle),"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,round:"",onClickOverlay:e.closed,onClickCloseIcon:e.closed},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("view",gk,[e.$slots.header?t.renderSlot(e.$slots,"header",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.title),1)],64))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-dialog__content",style:t.normalizeStyle({textAlign:e.textAlign})},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):typeof e.content=="string"?(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.content},null,8,yk)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.content),{key:2}))],4),e.noFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-dialog__footer",{[e.footerDirection]:e.footerDirection}])},[e.$slots.footer?t.renderSlot(e.$slots,"footer",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.noCancelBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,size:"small",plain:"",type:"primary",class:"fox-dialog__footer-cancel",onClick:e.onCancel},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.cancelText),1)]),_:1},8,["onClick"])),e.noConfirmBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:1,size:"small",type:"primary",class:"fox-dialog__footer-ok",onClick:e.onConfirm},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1},8,["onClick"]))],64))],2))],2)]),_:3},8,["teleport","visible","close-on-click-overlay","lock-scroll","pop-class","style","overlay-class","overlay-style","onClickOverlay","onClickCloseIcon"])}const ks=J(hk,[["render",kk]]);class bk{title="";content="";cancelText="";confirmText="";textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=n=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1}class Sk{options=new bk;instance;constructor(n){let l=Object.assign(this.options,n),o=document.body,a=l.teleport;a!="body"&&(typeof a=="string"?o=document.querySelector(a):o=l.teleport);const r=document.createElement("view");r.id="dialog-"+l.id;const s={setup(){return l.onUpdate=i=>{i==!1&&o.removeChild(r)},l?.onOpened&&l?.onOpened(),l.teleport=`#${r.id}`,()=>t.h(ks,l)}};this.instance=t.createVNode(s),o.appendChild(r),t.render(this.instance,r)}close=()=>{};setDefaultOptions=n=>{};resetDefaultOptions=()=>{}}const Ot=function(e){return new Sk(e)};Ot.install=e=>{e.use(ks),e.config.globalProperties.$dialog=Ot};const{componentName:Ck,create:wk,scope:Nk}=X("pull-refresh"),Bk=wk({props:{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}},emits:["change","refresh","update:modelValue"],components:{Loading:te.Loading},setup(e,{emit:n,slots:l}){const{toLocaleRefs:o}=se.useFoxI18n(Nk),a=o(e,["pullingText","loosingText","loadingText"]),r=He(),s=t.ref(),i=Fr(s),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal"}),u=t.computed(()=>({[Ck]:!0})),m=t.computed(()=>{switch(c.status){case"pulling":return l.pulling?"":a.pullingText.value;case"loosing":return l.loosing?"":a.loosingText.value;case"loading":return l.loading?"":a.loadingText.value}}),p=t.computed(()=>({transitionDuration:`${e.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=t.computed(()=>{const C={};return e.headHeight!=50&&(C.height=fe(e.headHeight)),C}),k=C=>{const B=+(e.pullDistance||e.headHeight);let E=C;return C>B&&(C<B*2?E=(C+B)/2:E=B+C/4),Math.round(E)},g=(C,B)=>{const E=+(e.pullDistance||e.headHeight);c.distance=C,B?c.status="loading":C===0?c.status="normal":C<E?c.status="pulling":c.status="loosing",n("change",{status:c.status,distance:C})},b=()=>c.status!=="loading"&&c.status!=="complete",S=()=>i.value==window?so()==0:i.value&&i.value.scrollTop==0,d=C=>{b()&&(S()?(r.start(C),c.isPullRefresh=!0):(c.distance=0,c.isPullRefresh=!1))},f=C=>{if(b()){r.move(C);const{deltaY:B}=r;r.isVertical()&&B.value>0&&c.isPullRefresh&&(C.cancelable&&C.preventDefault(),g(k(B.value)))}},y=()=>{c.isPullRefresh&&b()&&r.deltaY.value&&(c.status==="loosing"?(g(+e.headHeight,!0),n("update:modelValue",!0),t.nextTick(()=>n("refresh"))):g(0)),setTimeout(()=>{r.reset()},0)};return t.watch(()=>e.modelValue,C=>{C?g(+e.headHeight,!0):g(0)}),{classes:u,scroller:s,...t.toRefs(c),touchStart:d,touchMove:f,touchEnd:y,getStyle:p,slots:l,getHeightStyle:h,getPullStatus:m}}}),Ak={class:"fox-pull-refresh-container-topbox-text"};function Vk(e,n,l,o,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),ref:"scroller",onTouchstart:n[0]||(n[0]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.touchMove&&e.touchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[t.createElementVNode("div",{class:"fox-pull-refresh-container",style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("div",{class:"fox-pull-refresh-container-topbox",style:t.normalizeStyle(e.getHeightStyle)},[e.status=="loading"&&!e.slots.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading fox-pull-refresh-container-topbox-icon"})):t.createCommentVNode("",!0),t.createElementVNode("div",Ak,t.toDisplayString(e.getPullStatus),1),e.status=="pulling"?t.renderSlot(e.$slots,"pulling",{key:1}):t.createCommentVNode("",!0),e.status=="loosing"?t.renderSlot(e.$slots,"loosing",{key:2}):t.createCommentVNode("",!0),e.status=="loading"?t.renderSlot(e.$slots,"loading",{key:3}):t.createCommentVNode("",!0)],4),t.renderSlot(e.$slots,"default")],4)],34)}const Fl=J(Bk,[["render",Vk]]),{create:Tk}=X("notify"),$k=Tk({components:{[ce.name]:ce},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const l=()=>{e.onClick&&e.onClick()};let o=null;const a=()=>{o&&clearTimeout(o),o=null},r=()=>{n("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,u=>{s.value=e.visible;const m=e.duration;u&&m&&(o=setTimeout(()=>{r()},m))},{immediate:!0});return{onAfterLeave:()=>{a(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:l,isShowPopup:s}}});function Ek(e,n,l,o,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.isShowPopup=i),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}const Ol=J($k,[["render",Ek]]),vl={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let bt=[],vt=[];const bs=e=>{if(e){const n=document.getElementById(e);vt=vt.filter(l=>l.id!==e),bt=bt.filter(l=>l!==e),n&&document.body.removeChild(n)}else bt.forEach(n=>{const l=document.getElementById(n);l&&document.body.removeChild(l)}),vt=[],bt=[]},Dk=e=>{const n=document.getElementById(e.id);if(n){const l=vt.find(a=>a.id===e.id);l?e={...vl,...l,...e}:e={...vl,...e};const o=t.createVNode(Ol,e);return t.render(o,n),o.component.data}},Kt=e=>{e.unmount=bs;let n;if(e.id){if(n=e.id,bt.find(r=>r===e.id))return Dk(e)}else n=new Date().getTime()+"";e={...vl,...e},e.id=n,bt.push(e.id),vt.push(e);const l=document.createElement("view");l.id="notify-"+e.id;const o={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(l)},e.duration)}),()=>t.h(Ol,e)}},a=t.createVNode(o);document.body.appendChild(l),t.render(a,l)},Ut=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Kl={text(e,n={}){return Ut(e),Kt({...n,msg:e})},primary(e,n={}){return Ut(e),Kt({...n,msg:e,type:"primary"})},success(e,n={}){return Ut(e),Kt({...n,msg:e,type:"success"})},danger(e,n={}){return Ut(e),Kt({...n,msg:e,type:"danger"})},warn(e,n={}){return Ut(e),Kt({...n,msg:e,type:"warning"})},hide(){bs()},install(e){e.use(Ol)}},{create:Ik}=X("toast"),qk=Ik({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 l=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const a=()=>{l&&(clearTimeout(l),l=null)},r=()=>{o.mounted=!1},s=()=>{a(),e.duration&&(l=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),t.watch(()=>e.duration,k=>{k&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),u=()=>{const k=ie(e.iconSize);return t.h(e.icon,{width:k,height:k,color:e.iconColor})},m=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),p=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:u,hasIcon:c,toastBodyClass:m,toastIconWrapperClass:p,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Mk={key:1,class:"fox-toast-title"},zk=["innerHTML"];function xk(e,n,l,o,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Mk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,zk)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Ul=J(qk,[["render",xk]]),Hl={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1};let St=[],Ht=[];const Ss=e=>{if(e){const n=document.getElementById(e);Ht=Ht.filter(l=>l.id!==e),St=St.filter(l=>l!==e),n&&document.body.removeChild(n)}else St.forEach(n=>{const l=document.getElementById(n);l&&document.body.removeChild(l)}),Ht=[],St=[]},Lk=e=>{const n=document.getElementById(e.id);if(n){const l=Ht.find(a=>a.id===e.id);l?e={...Hl,...l,...e}:e={...Hl,...e};const o=t.createVNode(Ul,e);return t.render(o,n),Ct}},jt=e=>{e.unmount=Ss;let n;if(e.id){if(n=e.id,St.find(a=>a===e.id))return Lk(e)}else n=new Date().getTime()+"";e={...Hl,...e},e.id=n,St.push(e.id),Ht.push(e);const l=document.createElement("div");l.id=e.id;const o=t.createVNode(Ul,e);return t.render(o,l),document.body.appendChild(l),Ct},Kn=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Ct={text(e,n={}){return Kn(e),jt({...n,type:"text",msg:e})},success(e,n={}){return Kn(e),jt({icon:te.Success,...n,msg:e,type:"success"})},fail(e,n={}){return Kn(e),jt({icon:te.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return Kn(e),jt({icon:te.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return jt({icon:te.Loading,...n,msg:e,type:"loading"})},hide(e){Ss(e)},install(e){e.use(Ul),e.config.globalProperties.$toast=Ct}},{componentName:I2,create:Pk}=X("audio"),Rk=Pk({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:te.Service,[Pt.name]:Pt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:l}){const o=t.ref(null),a=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var b=["webkitVisibilityState","visibilitychange"];try{for(let S=0;S<b.length;S++)document.addEventListener(b[S],()=>{document.hidden?o.value.pause():a.playing&&setTimeout(()=>{o.value.play()},200)})}catch(S){S.message}});const r=b=>{const S=o.value;e.autoplay&&S&&S.paused&&S.play(),a.second=S.duration,a.duration=g(S.duration),n("can-play",b)},s=b=>{a.currentTime=parseInt(b.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,o.value.currentTime=a.currentTime,n("fastBack",a.currentTime)},c=()=>{const b=o.value;a.playing?(b.pause(),a.handPlaying=!1):(b.play(),a.handPlaying=!0),a.playing=!a.playing,n("play",a.playing)},u=()=>{a.currentTime++,o.value.currentTime=a.currentTime,n("forward",a.currentTime)},m=b=>{a.currentDuration=g(b),a.percent=b/a.second*100},p=()=>{a.playing=!1,n("ended")},h=b=>{const S=o.value;S.currentTime=a.second*b/100,n("changeProgress",S.currentTime)},k=()=>{a.hanMuted=!a.hanMuted,n("mute",a.hanMuted)},g=b=>{if(!b)return"00:00:00";let S=parseInt(b),d=Math.floor(S/3600),f=Math.floor((S-d*3600)/60),y=S-d*3600-f*60,C="";return C+=("0"+d.toString()).slice(-2)+":",C+=("0"+f.toString()).slice(-2)+":",C+=("0"+y.toString()).slice(-2),C};return t.watch(()=>a.currentTime,b=>{m(b)}),t.provide("audioParent",{children:[],props:e,audioData:a,handleMute:k,forward:u,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(a),audioRef:o,fastBack:i,forward:u,changeStatus:c,progressChange:h,audioEnd:p,onTimeupdate:s,handleMute:k,onCanplay:r,slots:l}}}),Fk={class:"fox-audio"},Ok={key:0,class:"fox-audio__progress"},vk={class:"fox-audio__time"},Kk={class:"fox-audio__bar"},Uk=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),Hk={class:"fox-audio__time"},jk={key:1,class:"fox-audio__icon"},Wk=["controls","src","preload","autoplay","loop","muted"];function Yk(e,n,l,o,a,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",Fk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",Ok,[t.createElementVNode("div",vk,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Kk,[t.createVNode(s,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=c=>e.percent=c),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:t.withCtx(()=>[Uk]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Hk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",jk,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:n[1]||(n[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):(t.openBlock(),t.createBlock(i,{key:1}))],2)])):t.createCommentVNode("",!0),e.type=="none"?(t.openBlock(),t.createElementBlock("div",{key:2,onClick:n[2]||(n[2]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type!="none"?t.renderSlot(e.$slots,"default",{key:3}):t.createCommentVNode("",!0),t.createElementVNode("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:n[3]||(n[3]=(...c)=>e.onTimeupdate&&e.onTimeupdate(...c)),onCanplay:n[4]||(n[4]=(...c)=>e.onCanplay&&e.onCanplay(...c)),onEnded:n[5]||(n[5]=(...c)=>e.audioEnd&&e.audioEnd(...c)),muted:e.hanMuted},null,40,Wk)])}const jl=J(Rk,[["render",Yk]]),{componentName:q2,create:Xk,scope:Qk}=X("audio-operate"),Gk=Xk({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:l}=se.useFoxI18n(Qk),o=t.inject("audioParent"),a=t.reactive(o),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(a),customSlot:r,t:l}}}),Zk={class:"fox-audio-operate"};function Jk(e,n,l,o,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Zk,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...i)=>e.fastBack&&e.fastBack(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...i)=>e.changeStatus&&e.changeStatus(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...i)=>e.forward&&e.forward(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...i)=>e.handleMute&&e.handleMute(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("mute")),1)]),_:1},8,["type"])),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)])}const Wl=J(Gk,[["render",Jk]]),{componentName:_k,create:eb}=X("avatar"),tb=eb({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:l,bgColor:o,color:a}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),u=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const g=s?.avatarGroupRef?.value?.children;g&&k(g)});const m=t.computed(()=>({[_k]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${l.value||s?.props?.shape||"normal"}`]:!0})),p=t.computed(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${o.value}`,color:`${a.value}`,marginLeft:u.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(u.maxIndex-u.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),k=g=>{u.maxIndex=g.length;for(let b=0;b<g.length;b++)g[b]&&g[b].classList&&g[b].classList[0]=="fox-avatar"&&g[b].setAttribute("data-index",b+1);u.index=i?.value?.dataset?.index,u.index==u.maxIndex&&u.index!=s?.props?.maxCount&&(u.showMax=!0)};return{classes:m,styles:p,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(u)}}});function nb(e,n,l,o,a,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const Wt=J(tb,[["render",nb]]),{componentName:ob,create:lb}=X("avatar-group"),ab=lb({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:l}){t.toRefs(e);const o=t.ref(null),a=t.ref(0),r=t.computed(()=>({[ob]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:a}),{classes:r,avatarGroupRef:o}}});function rb(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const Yl=J(ab,[["render",rb]]);var Un=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(Un||{});function sb(e,n,l){let o=0,a=e.length-1,r=null;for(;o<=a;){r=Math.floor((o+a)/2);const s=e[r],i=l(s,n);if(i===1)return r;i===2?o=r+1:i===3&&(a=r-1)}return r}const{componentName:ib,create:cb}=X("list"),Cs=document.documentElement.clientHeight||document.body.clientHeight||667,db=cb({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Cs},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const l=t.ref(null),o=t.ref(null),a=t.ref(null),r=t.reactive({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),s=t.computed(()=>Math.min(e.containerHeight,Cs)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),u=t.computed(()=>({[ib]:!0})),m=t.computed(()=>r.list.slice(r.start,c.value)),p=()=>{if(a.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let d=0;d<r.list.length;++d)r.cachePositions[d]={index:d,height:e.height,top:d*e.height,bottom:(d+1)*(e.height+e.margin),dValue:0}},k=()=>{let d=a.value.childNodes;d=Array.from(d).filter(q=>q.nodeType===1);const f=d[0];d.forEach((q,I)=>{if(!q)return;const z=Ee(q),{height:N}=z,L=r.cachePositions[I+r.start].height-N;L&&(r.cachePositions[I+r.start].bottom-=L,r.cachePositions[I+r.start].height=N,r.cachePositions[I+r.start].dValue=L)});let y=0;f&&(y=r.start);const C=r.cachePositions.length;let B=r.cachePositions[y].dValue;r.cachePositions[y].dValue=0;for(let q=y+1;q<C;++q){const I=r.cachePositions[q];r.cachePositions[q].top=r.cachePositions[q-1].bottom,r.cachePositions[q].bottom=r.cachePositions[q].bottom-B,I.dValue!==0&&(B+=I.dValue,I.dValue=0)}const E=r.cachePositions[C-1].bottom;r.phantomHeight=E},g=(d=0)=>{let f=sb(r.cachePositions,d,(C,B)=>{const E=C.bottom;return E===B?Un.eq:E<B?Un.lt:Un.gt});return r.cachePositions[f].bottom<d&&(f+=1),f},b=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,l.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},S=()=>{const d=l.value?.scrollTop,{originStartIndex:f}=r,y=g(d);y!==f&&(r.originStartIndex=y,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&n("scroll-bottom")),n(d>r.scrollTop?"scroll-up":"scroll-down",d),r.scrollTop=d};return t.watch(()=>e.listData,d=>{if(r.list=d.slice(),r.list.length===d.length)h(),k();else{b();return}}),t.watch(()=>r.start,()=>{a.value&&r.list.length>0&&k()}),{...t.toRefs(r),list:l,phantom:o,actualContent:a,getTransform:p,visibleData:m,classes:u,getContainerHeight:s,handleScrollEvent:S}}});function ub(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform()}),ref:"actualContent"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:s},[t.renderSlot(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}const Xl=J(db,[["render",ub]]),{componentName:fb,create:mb}=X("circleprogress"),pb=mb({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 l=!!t.useSlots().default,o=Math.random().toString(36).slice(-8),a=t.computed(()=>({[fb]:!0})),r=t.computed(()=>{const m=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${m} 0 90 a 45 45 0 1, ${m} 0 -90`}),s=t.computed(()=>Te(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let m=283,p=m*Number(e.progress)/100;return{stroke:Te(e.color)?`url(#${o})`:e.color,strokeDasharray:`${p}px ${m}px`}}),c=t.computed(()=>({stroke:e.pathColor})),u=t.computed(()=>{if(!Te(e.color))return;let m=e.color;const p=Object.keys(m).sort((k,g)=>parseFloat(k)-parseFloat(g));let h=[];return p.map((k,g)=>{let b={key:"",value:""};b.key=k,b.value=m[k],h.push(b)}),h});return{classes:a,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:u,slotDefault:l,refRandomId:o}}}),hb={viewBox:"0 0 100 100"},gb=["id"],yb=["offset","stop-color"],kb=["d","stroke-width"],bb=["d","stroke","stroke-linecap","stroke-width"],Sb={class:"fox-circleprogress-text"},Cb={key:0};function wb(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",hb,[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.stop,(s,i)=>(t.openBlock(),t.createElementBlock("stop",{key:i,offset:s.key,"stop-color":s.value},null,8,yb))),128))],8,gb)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,kb),t.createElementVNode("path",{class:"fox-circleprogress-hover",style:t.normalizeStyle(e.hoverStyle),d:e.path,fill:"none",stroke:e.hoverColor,"stroke-linecap":e.strokeLinecap,"stroke-width":e.strokeWidth},null,12,bb)])),t.createElementVNode("div",Sb,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Cb,t.toDisplayString(e.progress)+"%",1))])],6)}const Ql=J(pb,[["render",wb]]),{componentName:Nb,create:Bb}=X("noticebar"),Ab=Bb({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}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:te.Notice,CircleClose:te.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:l}){const o=t.ref(null),a=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=t.computed(()=>({[Nb]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),u=t.computed(()=>{let q={};return e.color&&(q.color=e.color),e.background&&(q.background=e.background),e.direction=="vertical"&&(q.height=`${e.height}px`),q}),m=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),p=t.computed(()=>{let q={};if(e.complexAm)q={transform:`translateY(${r.distance}px)`};else if(r.animate){let I=~~(e.height/e.speed/4);q={transition:`all ${I==0?~~(e.height/e.speed):I}s`,"margin-top":`-${e.height}px`}}return q});t.watch(()=>e.text,q=>{h()}),t.watch(()=>e.list,q=>{r.scrollList=[...q]});const h=q=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!a.value)return;const I=o.value.getBoundingClientRect().width,z=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?z>I:e.scrollable,r.isCanScroll?(r.wrapWidth=I,r.offsetWidth=z,r.duration=z/e.speed,r.animationClass="play"):r.animationClass=""},0)},k=q=>{n("click",q)},g=q=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",q)},b=q=>{r.firstRound=!1,n("across-end",q),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},S=()=>{d(),r.timer=setInterval(d,~~(e.height/e.speed/4*1e3)+e.standTime)},d=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},f=()=>{r.timer=setInterval(()=>{let q=100;for(let I=0;I<q;I++)y(I,!(I<q-1))},e.standTime+100*e.speed)},y=(q,I)=>{setTimeout(()=>{r.distance-=e.height/100,I&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},q*e.speed)},C=q=>{n("click",q)},B=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(l.default?E(l.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?f():S()},e.standTime)):h(e.text)}),t.watch(()=>l.default?l.default():[],q=>{e.direction==="vertical"&&l.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),E(q))});const E=q=>{q&&q.length>0&&(r.scrollList=q[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:u,contentStyle:m,horseLampStyle:p,wrap:o,content:a,handleClick:k,onClickIcon:g,onAnimationEnd:b,go:C,handleClickIcon:B,slots:l,toPxDesc:fe,wrapContentClass:c}}}),Vb={class:"fox-noticebar__page-lefticon"},Tb={ref:"wrap",class:"fox-noticebar__page-wrap"},$b={class:"showNotica"},Eb=["onClick"];function Db(e,n,l,o,a,r){const s=t.resolveComponent("Notice"),i=t.resolveComponent("CircleClose"),c=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:n[3]||(n[3]=(...u)=>e.handleClick&&e.handleClick(...u))},[t.createElementVNode("view",Vb,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",Tb,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u)),"on:webkitAnimationEnd":n[1]||(n[1]=(...u)=>e.onAnimationEnd&&e.onAnimationEnd(...u))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=t.withModifiers((...u)=>e.onClickIcon&&e.onClickIcon(...u),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",$b,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(u,m)=>(t.openBlock(),t.createBlock(c,{key:m,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:u},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(u,m)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:m,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:p=>e.go(u)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(u),1)])],12,Eb))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=u=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const Gl=J(Ab,[["render",Db]]),Ib="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19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N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:M2,create:zb,scope:xb}=X("empty"),Lb={empty:Ib,error:qb,network:Mb},Pb=zb({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=se.useFoxI18n(xb),l=n(e,["description"]),{image:o,imageSize:a}=t.toRefs(e),r=t.computed(()=>a.value?typeof a.value=="number"?`width:${a.value}px;height:${a.value}px`:`width:${a.value};height:${a.value}`:""),i=o.value.startsWith("https://")||o.value.startsWith("http://")||o.value.startsWith("//")?o.value:Lb[o.value];return{...l,imageUrl:i,imgStyle:r}}}),Rb={class:"fox-empty"},Fb=["src"],Ob={key:1,class:"fox-empty-description"};function vb(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",Rb,[t.createElementVNode("view",{class:"fox-empty-image",style:t.normalizeStyle(e.imgStyle)},[e.$slots.image?t.renderSlot(e.$slots,"image",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.imageUrl?(t.openBlock(),t.createElementBlock("img",{key:0,class:"img",src:e.imageUrl},null,8,Fb)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",Ob,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const Zl=J(Pb,[["render",vb]]),{create:Kb,scope:Ub}=X("video"),Hb=Kb({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:l}=se.useFoxI18n(Ub),o=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),a=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,E=>{E.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,E=>{o.state.isMuted=E?E.muted:!1},{immediate:!0});const s=()=>{o.videoElm=a.value,e.options.autoplay&&setTimeout(()=>{o.videoElm.play()},200),e.options.touchPlay&&(o.showTouchMask=!0),e.options.playsinline&&(o.videoElm.setAttribute("playsinline",e.options.playsinline),o.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),o.videoElm.setAttribute("x5-video-player-type","h5-page"),o.videoElm.setAttribute("x5-video-player-fullscreen",!1)),g(),o.showToolbox?i():(o.videoElm.addEventListener("play",()=>{o.state.playing=!0,n("play",o.videoElm)}),o.videoElm.addEventListener("pause",()=>{o.state.playing=!1,n("pause",o.videoElm)}),o.videoElm.addEventListener("ended",h),o.videoElm.addEventListener("timeupdate",an(p,1e3)))},i=()=>{const E=a.value,q=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=E,o.progressBar.progressElm=q,o.progressBar.pos=q.getBoundingClientRect(),o.videoSet.progress.width=Math.round(q.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return o.state.playing=!0,!1;if(o.state.playing=!o.state.playing,o.videoElm)if(o.state.playing)try{setTimeout(()=>{o.videoElm.play()},200),o.videoElm.addEventListener("progress",()=>{m()}),o.videoElm.addEventListener("timeupdate",an(p,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{k()}else o.videoElm.pause(),n("pause",o.videoElm)},u=E=>{var q=Math.floor(E/3600);q<10&&(q="0"+q);var I=Math.floor(E%3600/60);I<10&&(I="0"+I);var z=Math.round(E%3600%60);z<10&&(z="0"+z);var N="";return q!=0?N=q+":"+I+":"+z:N=I+":"+z,N},m=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},p=()=>{const E=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*E),o.videoSet.totalTime=u(o.videoElm.duration),o.videoSet.displayTime=u(o.videoElm.currentTime),n("time",o.videoSet.displayTime,o.videoSet.totalTime)},h=()=>{o.state.playing=!1,o.state.isEnd=!0,o.videoSet.displayTime="00:00",o.videoSet.progress.current=0,o.videoElm.currentTime=0,n("playend",o.videoElm)},k=()=>{o.state.isError=!0},g=()=>{o.state.vol=e.options.volume},b=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},S=()=>{},d=E=>{let I=E.targetTouches[0].pageX-o.progressBar.pos.left;I<=0&&(I=0),I>=o.videoSet.progress.width&&(I=o.videoSet.progress.width),o.videoSet.progress.current=I;let z=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&y(z,o.videoElm.duration)},f=E=>{let I=E.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=I;let z=I/o.videoSet.progress.width;o.videoElm.duration&&y(z,o.videoElm.duration)},y=(E,q)=>{o.videoElm.currentTime=Math.floor(E*q)},C=()=>{o.state.isError=!1,s()},B=()=>{o.state.fullScreen?(o.state.fullScreen=!1,document.webkitCancelFullScreen()):(o.state.fullScreen=!0,o.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:a,...t.toRefs(e),...t.toRefs(o),handleError:k,isDisabled:r,play:c,handleMuted:b,touchSlidSrart:S,touchSlidMove:d,touchSlidEnd:f,retry:C,fullScreen:B,t:l}}}),jb={class:"fox-video",ref:"videocon"},Wb=["muted","autoplay","loop","poster","controls","preload"],Yb=["src","type"],Xb={class:"fox-video-controller__now"},Qb={class:"fox-video-controller__progress"},Gb={class:"fox-video-controller__progress-value",ref:"progressBar"},Zb=[t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1)],Jb={class:"fox-video-controller__played",ref:"playedBar"},_b={class:"fox-video-controller__total"},eS={class:"fox-video-error"},tS={class:"fox-video-error-tip"};function nS(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",jb,[t.createElementVNode("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:n[0]||(n[0]=(...s)=>e.handleError&&e.handleError(...s))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,Yb)],40,Wb),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...s)=>e.play&&e.play(...s))},null,512)):t.createCommentVNode("",!0),e.showToolbox&&!e.isDisabled?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:n[2]||(n[2]=(...s)=>e.play&&e.play(...s))},null,512)),[[t.vShow,!e.state.playing]]):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[t.createElementVNode("div",{class:"fox-video-controller__playbtn",onClick:n[3]||(n[3]=(...s)=>e.play&&e.play(...s))}),t.createElementVNode("div",Xb,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",Qb,[t.createElementVNode("div",Gb,[t.createElementVNode("div",{class:"buffered",style:t.normalizeStyle({width:`${e.videoSet.loaded}%`})},null,4),t.createElementVNode("div",{class:"fox-video-controller__ball",style:t.normalizeStyle({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:n[4]||(n[4]=t.withModifiers(s=>e.touchSlidMove(s),["stop","prevent"])),onTouchstart:n[5]||(n[5]=t.withModifiers(s=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=t.withModifiers(s=>e.touchSlidEnd(s),["stop"]))},Zb,36),t.createElementVNode("div",Jb,null,512)],512)]),t.createElementVNode("div",_b,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...s)=>e.handleMuted&&e.handleMuted(...s))},null,2),t.createElementVNode("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...s)=>e.fullScreen&&e.fullScreen(...s))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",eS,[t.createElementVNode("p",tS,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...s)=>e.retry&&e.retry(...s))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const wt=J(Hb,[["render",nS]]),{create:oS,componentName:lS}=X("steps"),Jl=oS({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:l}){const o=t.reactive({children:[]}),a=t.computed(()=>{const i=lS;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&o.children.push(i)},s=i=>{n("click-step",i)};return t.provide("parent",{relation:r,state:o,props:e,onEmit:s}),()=>t.h("view",{class:a.value},l.default?.())}}),{create:aS,componentName:rS}=X("step"),sS=aS({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=t.getCurrentInstance(),n=t.inject("parent");n.relation(e);const l=t.reactive({dot:n.props.progressDot}),o=t.computed(()=>n.state.children.indexOf(e)+1),a=()=>{const c=o.value;return c<+n.props.current?"finish":c===+n.props.current?"process":"wait"},r=t.computed(()=>a()),s=t.computed(()=>{const c=rS;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(l),index:o,classes:s,handleClickStep:i}}}),iS={class:"fox-step-head"},cS=t.createElementVNode("view",{class:"fox-step-line"},null,-1),dS={class:"fox-step-icon-inner"},uS={key:1,class:"fox-step-inner"},fS={class:"fox-step-main"},mS={class:"fox-step-title"},pS={key:0},hS={key:0,class:"fox-step-content"},gS=["innerHTML"];function yS(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[t.createElementVNode("view",iS,[cS,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",dS,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",uS,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",fS,[t.createElementVNode("view",mS,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",pS,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",hS,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,gS)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const _l=J(sS,[["render",yS]]),{create:kS,componentName:ea}=X("swiper"),bS=kS({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:l}){const o=t.ref(),a=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=He(),s=t.computed(()=>({[ea]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const V=ea;return{[`${V}-inner`]:!0,[`${V}-vertical`]:i.value}}),u=t.computed(()=>{const V=ea;return{[`${V}-pagination`]:!0,[`${V}-pagination-vertical`]:i.value}}),m=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),p=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>a.children.length),k=t.computed(()=>a[i.value?"height":"width"]),g=t.computed(()=>h.value*k.value),b=t.computed(()=>a.rect?(i.value?a.rect.height:a.rect.width)-k.value*h.value:0),S=t.computed(()=>(a.active+h.value)%h.value),d=()=>{let V=0;V=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${V}px)`,[i.value?"height":"width"]:`${k.value*h.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},f=V=>{let v=[];const $=a.childrenVNode.length;let K=l?.default?.();if(K=K.filter(W=>W.children&&Array.isArray(W.children)),K.forEach(W=>{v=v.concat(W.children)}),!$)a.childrenVNode=v.slice(),V.proxy&&a.children.push(V.proxy);else if($>v.length)a.children=a.children.filter(W=>V.proxy!==W);else if($<v.length){for(let W=0;W<$;W++)if(v[W].key!==a.childrenVNode[W].key){V.proxy&&a.children.splice(W,0,V.proxy),V.vnode&&a.childrenVNode.splice(W,0,V.vnode);break}$!==v.length&&(V.proxy&&a.children.push(V.proxy),V.vnode&&a.childrenVNode.push(V.vnode))}else a.childrenVNode=v.slice(),V.proxy&&a.children.push(V.proxy)},y=(V,v=0)=>{let $=V*k.value;e.loop||($=Math.min($,-b.value));let K=v-$;return e.loop||(K=ve(K,b.value,0)),K},C=V=>{const{active:v}=a;return V?e.loop?ve(v+V,-1,h.value):ve(v+V,0,h.value-1):v},B=({pace:V=0,offset:v=0,isEmit:$=!1})=>{if(h.value<=1)return;const{active:K}=a,W=C(V),U=y(W,v);if(e.loop){if(a.children[0]&&U!==b.value){const F=U<b.value;a.children[0].setOffset(F?g.value:0)}if(a.children[h.value-1]&&U!==0){const F=U>0;a.children[h.value-1].setOffset(F?-g.value:0)}}a.active=W,a.offset=U,$&&K!==a.active&&n("change",S.value),d()},E=()=>{a.moving=!0,a.active<=-1&&B({pace:h.value}),a.active>=h.value&&B({pace:-h.value})},q=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},I=V=>{E(),r.reset(),Ye(()=>{Ye(()=>{a.moving=!1,B({pace:V,isEmit:!0})})})},z=()=>{I(-1)},N=()=>{I(1)},A=V=>{E(),r.reset(),Ye(()=>{a.moving=!1;let v;e.loop&&h.value===V?v=a.active===0?0:V:v=V%h.value,B({pace:v-a.active,isEmit:!0})})},L=()=>{e.autoPlay<=0||h.value<=1||(q(),a.autoplayTimer=setTimeout(()=>{N(),L()},Number(e.autoPlay)))},O=(V=+e.initPage)=>{q(),a.rect=o.value.getBoundingClientRect(),V=Math.min(h.value-1,V),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=V,a.offset=y(a.active),a.moving=!0,d(),L()},D=V=>{e.isPreventDefault&&V.preventDefault(),e.isStopPropagation&&V.stopPropagation(),e.touchable&&(r.start(V),a.touchTime=Date.now(),q(),E())},T=V=>{e.touchable&&a.moving&&(r.move(V),p.value&&B({offset:m.value}))},M=V=>{if(!e.touchable||!a.moving)return;const v=m.value/(Date.now()-a.touchTime);if((Math.abs(v)>.3||Math.abs(m.value)>+(k.value/2).toFixed(2))&&p.value){let K=0;const W=i.value?r.offsetY.value:r.offsetX.value;e.loop?K=W>0?m.value>0?-1:1:0:K=-Math[m.value>0?"ceil":"floor"](m.value/k.value),B({pace:K,isEmit:!0})}else m.value&&B({pace:0});a.moving=!1,d(),L()};return t.provide("parent",{props:e,size:k,relation:f}),$e({prev:z,next:N,to:A}),t.onDeactivated(()=>{q()}),t.onBeforeUnmount(()=>{q()}),t.watch(()=>e.initPage,V=>{t.nextTick(()=>{O(Number(V))})}),t.watch(()=>a.children.length,()=>{t.nextTick(()=>{O()})}),t.watch(()=>e.autoPlay,V=>{V>0?L():q()}),{state:a,classes:s,classesInner:c,classesPagination:u,container:o,activePagination:S,onTouchStart:D,onTouchMove:T,onTouchEnd:M}}});function SS(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.classesInner),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classesPagination)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(s,i)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===i}),key:i},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const Nt=J(bS,[["render",SS]]),{create:CS,componentName:wS}=X("swiper-item"),NS=CS({setup(e,{slots:n}){const l=t.inject("parent");l.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),a=t.computed(()=>({[wS]:!0})),r=t.computed(()=>{const i={},c=l?.props.direction;return l?.size.value&&(i[c==="horizontal"?"width":"height"]=`${l?.size.value}px`),o.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${o.offset}px)`),i}),s=i=>{o.offset=i};return t.onUnmounted(()=>{l.relation(t.getCurrentInstance(),"unmount")}),$e({setOffset:s}),{style:r,classes:a}}});function BS(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const Bt=J(NS,[["render",BS]]),ws={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:AS}=X("image-preview-item"),VS=AS({props:{...ws,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:{[wt.name]:wt,[Bt.name]:Bt},setup(e,{emit:n}){const l=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),o=He(),a=t.computed(()=>{const{rootWidth:z,rootHeight:N}=e,A=N/z;return l.imageRatio>A}),r=t.computed(()=>{const z=e.image;if(z&&z.src){const{scale:N,moveX:A,moveY:L,moving:O,zooming:D}=l,T={transitionDuration:D||O?"0s":".3s"};if(N!==1){const M=A/N,V=L/N;T.transform=`scale(${N}, ${N}) translate(${M}px, ${V}px)`}return T}return{}}),s=t.computed(()=>{if(l.imageRatio){const{rootWidth:z,rootHeight:N}=e,A=a.value?N/l.imageRatio:z;return Math.max(0,(l.scale*A-z)/2)}return 0}),i=t.computed(()=>{if(l.imageRatio){const{rootWidth:z,rootHeight:N}=e,A=a.value?N:z*l.imageRatio;return Math.max(0,(l.scale*A-N)/2)}return 0}),c=z=>{const{naturalWidth:N,naturalHeight:A}=z.target;l.imageRatio=A/N},u=()=>{m(1),l.moveX=0,l.moveY=0},m=z=>{z=ve(z,+e.minZoom,+e.maxZoom+1),z!==l.scale&&(l.scale=z,n("scale",{scale:z,index:e.initNo}))},p=()=>{const z=l.scale>1?1:2;m(z),l.moveX=0,l.moveY=0},h=z=>Math.sqrt((z[0].clientX-z[1].clientX)**2+(z[0].clientY-z[1].clientY)**2);let k,g,b,S,d,f,y;const C=z=>{const{touches:N}=z,{offsetX:A}=o;o.start(z),y=N.length,k=l.moveX,g=l.moveY,f=Date.now(),l.moving=y===1&&l.scale!==1,l.zooming=y===2&&!A.value,l.zooming&&(b=l.scale,S=h(z.touches))},B=z=>{const{touches:N}=z;if(o.move(z),(l.moving||l.zooming)&&ro(z,!0),l.moving){const{deltaX:A,deltaY:L}=o,O=A.value+k,D=L.value+g;l.moveX=ve(O,-s.value,s.value),l.moveY=ve(D,-i.value,i.value)}if(l.zooming&&N.length===2){const A=h(N),L=b*A/S;m(L)}},E=()=>{if(y==1&&e.video&&e.video.source||y>1)return;const{offsetX:z,offsetY:N}=o,A=Date.now()-f,L=250,O=5;z.value<O&&N.value<O&&A<L&&(d?(clearTimeout(d),d=null,p()):d=setTimeout(()=>{e.contentClose&&n("close"),d=null},L))},q=z=>{let N=!1;(l.moving||l.zooming)&&(N=!0,l.moving&&k===l.moveX&&g===l.moveY&&(N=!1),z.touches.length||(l.zooming&&(l.moveX=ve(l.moveX,-s.value,s.value),l.moveY=ve(l.moveY,-i.value,i.value),l.zooming=!1),l.moving=!1,k=0,g=0,b=1,l.scale<1&&u(),l.scale>e.maxZoom&&(l.scale=+e.maxZoom))),ro(z,N),E(),o.reset()},I=()=>{n("close")};return t.watch(()=>e.initNo,u),t.watch(()=>e.show,z=>{z||u()}),{...t.toRefs(l),onTouchStart:C,onTouchMove:B,onTouchEnd:q,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:I}}}),TS=["src"];function $S(e,n,l,o,a,r){const s=t.resolveComponent("fox-video"),i=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(i,{onClick:e.closeSwiper},{default:t.withCtx(()=>[t.createElementVNode("view",{style:t.normalizeStyle(e.imageStyle),class:"fox-image-preview-box",onTouchstart:n[1]||(n[1]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[2]||(n[2]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[4]||(n[4]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[e.image&&e.image.src?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:n[0]||(n[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,TS)):t.createCommentVNode("",!0),e.video&&e.video.source?(t.openBlock(),t.createBlock(s,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):t.createCommentVNode("",!0)],36)]),_:1},8,["onClick"])}const ES=J(VS,[["render",$S]]),{create:DS}=X("image-preview"),IS=DS({props:{...ws,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:ES,CircleClose:te.CircleClose,[ce.name]:ce,[Nt.name]:Nt},setup(e,{emit:n}){const l=t.ref(),o=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),a=t.computed(()=>{const m="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${m}-right`:`${m}-left`}`}),r=t.computed(()=>Jt(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=m=>{m!==o.active&&(o.active=m,n("change",o.active))},i=()=>{ys(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},u=()=>{if(l.value){const m=Ee(l.value);o.rootHeight=m.height,o.rootWidth=m.width}};return t.watch(()=>e.show,m=>{o.showPop=m,m&&(s(e.initNo),u())}),t.watch(()=>e.initNo,m=>{m!=o.active&&s(m)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:l,...t.toRefs(o),onClose:i,mergeImages:r,setActive:s,iconClasses:a}}}),qS={class:"fox-image-preview",ref:"swipeRef"},MS={key:0,class:"fox-image-preview-index"};function zS(e,n,l,o,a,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),u=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(u,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=m=>e.showPop=m),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",qS,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(m,p)=>(t.openBlock(),t.createBlock(s,{key:p,video:p<e.videos.length?m:{},image:p>=e.videos.length?m:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",MS,t.toDisplayString(e.active+1)+" / "+t.toDisplayString(e.mergeImages.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.iconClasses),onClick:n[0]||(n[0]=(...m)=>e.onClose&&e.onClose(...m))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Ns=J(IS,[["render",zS]]);class xS{show=!1;images=[];videos=[];contentClose=!0;initNo=0;paginationVisible=!1;paginationColor="";autoplay=0;isWrapTeleport=!1;showIndex=!0;closeable=!1;closeIconPosition="top-right";beforeClose;maxZoom=3;minZoom=1/3;isLoop=!0;teleport="body"}class LS{options=new xS;constructor(n){const l=Object.assign(this.options,n),{unmount:o}=li(l,{name:"image-preview",components:[ce,wt,Nt,Bt,at],wrapper:()=>({setup(){return()=>(l.onClose=()=>{l.show=!1,t.nextTick(()=>{o()})},t.h(Ns,l))}})})}}const Hn=e=>new LS(e);Hn.install=e=>{e.use(Ns)};function PS(e){const n=t.getCurrentInstance();if(n&&n.proxy){let l=n.proxy;Object.assign(l,e)}}const{componentName:x2,create:RS}=X("countup"),FS=RS({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 l=t.ref(null),o=t.ref([]),a=I=>{I&&o.value.push(I)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:u}=t.reactive(e);t.watch(()=>e.customChangeNum,(I,z)=>{p(),S(0)}),t.watch(()=>e.machinePrizeLevel,(I,z)=>{r.prizeLevelTrun=I}),t.watch(()=>e.initNum,(I,z)=>{r.current=I,r.valFlag=!1,m()}),t.watch(()=>e.endNum,(I,z)=>{r.current=e.initNum,r.valFlag=!1,m()});const m=()=>{if(r.valFlag)return!1;s&&(i||c?u!="machine"&&S():(b(),setTimeout(()=>{r.valFlag=!0},300)))},p=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(I,z,N)=>{const A=(I.toString().split(".")[1]||"").length,L=(z.toString().split(".")[1]||"").length,O=Math.pow(10,Math.max(A,L));return N=="-"?Number((I*O-z*O).toFixed(0))/O:Number((I*O+z*O).toFixed(0))/O},k=I=>{let{num_total_len:z,pointNum:N,initDigit1:A,initDigit2:L,sortFlag:O}=r,D=O=="add"||O=="equal"?String(L)[I-(z-N)]:10-Number(String(L)[I-(z-N)]),T=O=="add"||O=="equal"?String(A)[I]:10-Number(String(A)[I]),M=I>z-N-1?-D*100+"%":I<=String(A).length-1?-T*100+"%":0;return M=="-1000%"&&(M=0),M},g=I=>{let{num_total_len:z,pointNum:N,initDigit1:A,initDigit2:L,sortFlag:O}=r,D=String(L)[I-(z-N)];return I>z-N-1?D||0:I<=String(A).length-1?String(A)[I]:0},b=()=>{let{endNum:I,initNum:z,speed:N,toFixed:A}=e,L=setInterval(()=>{if(z>I)if(r.current<=I||r.current<=N)r.current=I.toFixed(A),clearInterval(L),n("scroll-end"),r.valFlag=!1;else{let O=parseFloat(String(r.current))-parseFloat(String(N));r.current=O.toFixed(A)}else if(r.current>=I)r.current=I.toFixed(A),clearInterval(L),n("scroll-end"),r.valFlag=!1;else{let O=parseFloat(String(r.current))+parseFloat(String(N));r.current=O.toFixed(A)}},e.during)},S=I=>{let{initNum:z,endNum:N,toFixed:A,customBgImg:L}=e;L&&(z=e.customChangeNum);let O,D,T,M;z!=0?(A!=0&&(z=Number(z.toFixed(A))),String(z).indexOf(".")>-1?(O=String(z).split(".")[0].length,D=String(z).split(".")[1].length):(O=String(z).length,D=0)):(O=1,D=0),N!=0?(A!=0&&(N=Number(N.toFixed(A))),String(N).indexOf(".")>-1?(T=String(N).split(".")[0].length,M=String(N).split(".")[1].length):(T=String(N).length,M=0)):(T=1,M=0);let V=O>=T?O:T,v=D>=M?D:M;r.num_total_len=V+v,r.pointNum=v,z>N?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(z,N,"-"),r.numberVal=Number(String(z))):z<N?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(N,z,"-"),r.numberVal=Number(String(N))):r.sortFlag="equal";var $=1;for(let W=0;W<r.pointNum;W++)$*=10;var K=r.numberVal*$;if(r.relNum=K,A!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(K).length),String(z).indexOf(".")>-1){let W=String(z).split(".");r.initDigit1=Number(W[0]),r.initDigit2=Number(W[1])}else r.initDigit1=z,r.initDigit2=0;i&&!L?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let W=o.value[r.num_total_len-1];d(W)}):I!==0&&C()},d=I=>{p();var z=1;r.pointNum!=0&&(z=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{f(I),r.totalCount=h(r.totalCount,z,"-"),r.totalCount<=0&&(p(),n("scroll-end"),r.valFlag=!1)},e.during)},f=I=>{let z=I.getAttribute("turn-number"),N;if(r.sortFlag=="add"?N=parseInt(String(z))+1:N=parseInt(String(z))-1>=0?parseInt(String(z))-1:9,I.setAttribute("turn-number",String(N)),(I.style.transition=="none 0s ease 0s"||N==1||!I.style.transition)&&(I.style.transition=`all linear ${e.during}ms`),N==10||r.sortFlag=="reduce"&&N==0){var A=null;I.style.top=`-${r.sortFlag=="add"?N*100:(10-N)*100}%`,I.setAttribute("turn-number","0"),A=setTimeout(()=>{A&&clearTimeout(A),I.style.transition="none",I.style.top="0",y(I,N)},.975*e.during)}else I.style.top=`-${r.sortFlag=="add"?N*100:(10-N)*100}%`;I.style.top=="-100%"&&r.sortFlag=="reduce"&&f(I.previousSibling)},y=(I,z)=>{setTimeout(()=>{z==10&&I.previousSibling&&f(I.previousSibling)},200)},C=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},B=()=>{for(r.notPrize=[];r.notPrize.length<3;){var I=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(I)==-1&&r.notPrize.push(I)}};PS({machineLuck:()=>{const I=e.machineTurnMore<0?0:e.machineTurnMore;let z=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&B();for(let N=0;N<e.machineNum;N++)setTimeout(()=>{let A=z*(N+1+parseFloat(String(I)));r.prizeYPrev.length!=0&&(r.prizeY[N]=r.prizeYPrev[N]);let L=r.prizeYPrev[N]?r.prizeYPrev[N]:0,O=A+L+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(z-L);r.prizeLevelTrun<0&&(O+=e.numHeight*r.notPrize[N]),q(N,O,L)},500*N)}});const q=(I,z,N)=>{let A=setInterval(()=>{if(N<=z)N+=10,r.prizeY[I]=parseFloat(String(N));else if(clearInterval(A),A=null,r.finshMachine+=1,r.prizeY[I]=z,r.finshMachine==e.machineNum){let L=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(D=>{let T=D;for(;T>L;)T-=L;r.prizeYPrev.push(T)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{m()})}),t.onUnmounted(()=>{p(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:l,setRef:a,topNumber:k,turnNumber:g}}}),OS={class:"fox-countup"},vS=["turn-number"];function KS(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",OS,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__machine",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+u,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,vS))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px",top:0,left:e.numWidth*(e.num_total_len-e.pointNum)+"px"})},".",4)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.current),1)],64))],64))])}const ta=J(FS,[["render",KS]]),US=e=>{if(!e)return Date.now();let n=Number(e),l=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:HS,create:jS}=X("countdown"),WS=jS({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:l}){const o=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),a=t.computed(()=>({[HS]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-US(e.startTime),o.counting||(o.counting=!0),i()},i=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const k=Date.now()-o.diffTime,g=Math.max(o.handleEndTime-k,0);o.restTime=g,g||(o.counting=!1,p(),n("on-end")),g>0&&i()}}))},c=(k,g)=>{const b=k;let S={d:0,h:0,m:0,s:0,ms:0};const d=1e3,f=60*d,y=60*f,C=24*y;return b>0&&(S.d=b>=d?Math.floor(b/C):0,S.h=Math.floor(b%C/y),S.m=Math.floor(b%y/f),S.s=Math.floor(b%f/d),S.ms=Math.floor(b%d)),g=="custom"?S:u({...S})},u=k=>{let{d:g,h:b,m:S,s:d,ms:f}=k,y=e.format;if(y.includes("DD")?y=y.replace("DD",tt(g)):b+=Number(g)*24,y.includes("HH")?y=y.replace("HH",tt(b)):S+=Number(b)*60,y.includes("mm")?y=y.replace("mm",tt(S)):d+=Number(S)*60,y.includes("ss")?y=y.replace("ss",tt(d)):f+=Number(d)*1e3,y.includes("S")){const C=tt(f,3).toString();y.includes("SSS")?y=y.replace("SSS",C):y.includes("SS")?y=y.replace("SS",C.slice(0,2)):y.includes("S")&&(y=y.replace("SS",C.slice(0,1)))}return y},m=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i(),n("on-restart",o.restTime))},p=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},h=()=>{e.autoStart||(p(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():o.restTime=e.time}),t.watch(()=>o.restTime,k=>{let g=c(k,"custom");n("update:modelValue",g),n("input",g)}),t.watch(()=>e.paused,(k,g)=>{g?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i()),n("on-restart",o.restTime)):o.counting&&p()}),t.watch(()=>e.endTime,k=>{s()}),t.watch(()=>e.startTime,k=>{s()}),{...t.toRefs(e),slots:l,classes:a,start:m,pause:p,renderTime:r,reset:h}}}),YS=["innerHTML"];function XS(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,YS))],2)}const na=J(WS,[["render",XS]]),{create:QS}=X("badge"),GS=QS({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const n=t.reactive({}),l=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),o=t.computed(()=>{if(e.dot)return;const a=e.value,r=e.max;return typeof a=="number"&&typeof r=="number"&&r<a?`${r}+`:a});return{state:n,stl:l,content:o}}}),ZS={class:"fox-badge"},JS=["textContent"];function _S(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",ZS,[t.withDirectives(t.createElementVNode("view",{class:"fox-badge__icon",style:t.normalizeStyle(e.stl)},[t.renderSlot(e.$slots,"icon")],4),[[t.vShow,!e.hidden&&!e.dot&&e.$slots.icon]]),t.renderSlot(e.$slots,"default"),t.withDirectives(t.createElementVNode("view",{textContent:t.toDisplayString(e.content),class:t.normalizeClass(["fox-badge__content fox-badge__content--sup",{"fox-badge__content--dot":e.dot,"fox-badge__content--bubble":!e.dot&&e.bubble}]),style:t.normalizeStyle(e.stl)},null,14,JS),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const oa=J(GS,[["render",_S]]),{componentName:e1,create:t1}=X("tag"),n1=t1({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:te.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const s=e1;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 o1(e,n,l,o,a,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const Yt=J(n1,[["render",o1]]),{create:l1}=X("popover"),a1=l1({components:{FoxPopup:ce},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const l=t.ref(),o=t.ref(),a=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const f="fox-popover-arrow",y=e.location,C=y.split("-")[0];return`${f} ${f}-${C} ${f}--${y}`}),c=t.computed(()=>{const f={},{bgColor:y,arrowOffset:C,location:B}=e,E=B.split("-")[0],q=B.split("-")[1],I=16;return y&&(f[`border${u(E)}Color`]=y),e.arrowOffset!=0&&(["bottom","top"].includes(E)&&(q||(f.left=`calc(50% + ${C}px)`),q=="start"&&(f.left=`${I+C}px`),q=="end"&&(f.right=`${I-C}px`)),["left","right"].includes(E)&&(q||(f.top=`calc(50% - ${C}px)`),q=="start"&&(f.top=`${I-C}px`),q=="end"&&(f.bottom=`${I+C}px`))),f}),u=f=>(f=f.toLowerCase(),f=f.replace(/\b\w+\b/g,y=>y.substring(0,1).toUpperCase()+y.substring(1)),f),m=t.computed(()=>{let f={};if(!r.value||!s.value)return{};const y=s.value.width,C=s.value.height,{width:B,height:E,left:q,top:I}=r.value,{location:z,offset:N}=e,A=z.split("-")[0],L=z.split("-")[1];let O=0,D=0;if(Jt(N)&&N.length==2&&(O+=Number(N[1]),D+=Number(N[0])),B){if(["bottom","top"].includes(A)){const T=A=="bottom"?E+O:-(C+O);f.top=`${I+T}px`,L||(f.left=`${-(y-B)/2+q+D}px`),L=="start"&&(f.left=`${q+D}px`),L=="end"&&(f.left=`${r.value.right+D}px`)}if(["left","right"].includes(A)){const T=A=="left"?-(y+O):B+O;f.left=`${q+T}px`,L||(f.top=`${I-C/2+E/2-4+D}px`),L=="start"&&(f.top=`${I+D}px`),L=="end"&&(f.top=`${I+E+D}px`)}}return f}),p=t.computed(()=>{const f={};return e.bgColor&&(f.background=e.bgColor),f}),h=()=>{let f=Ee(l.value);e.targetId&&(f=Ee(document.querySelector(`#${e.targetId}`))),r.value=f,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,f=>{a.value=f,f?(window.addEventListener("touchstart",d,!0),h()):window.removeEventListener("touchstart",d,!0)});const k=f=>{n("update",f),n("update:visible",f)},g=()=>{k(!e.visible),n("open")},b=()=>{n("update:visible",!1),n("close")},S=(f,y)=>{!f.disabled&&n("choose",f,y),e.closeOnClickAction&&b()},d=f=>{const y=l.value,C=o.value;let B=y&&!y.contains(f.target);if(e.targetId){const E=document.querySelector(`#${e.targetId}`);B=E&&!E.contains(f.target)}B&&C&&!C.contains(f.target)&&e.closeOnClickOutside&&b()};return{showPopup:a,openPopover:g,popoverArrow:i,closePopover:b,chooseItem:S,popoverRef:l,popoverContentRef:o,getRootPosition:m,customStyle:p,popoverArrowStyle:c,renderIcon:sr}}}),r1={ref:"popoverContentRef",class:"fox-popover-content-group"},s1=["onClick"],i1={class:"fox-popover-menu-item-name"};function c1(e,n,l,o,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.targetId?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:n[0]||(n[0]=(...i)=>e.openPopover&&e.openPopover(...i))},[t.renderSlot(e.$slots,"reference")],512)),t.createElementVNode("view",{class:t.normalizeClass(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:t.normalizeStyle(e.getRootPosition)},[t.createVNode(s,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.showPopup=i),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:t.normalizeStyle(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:t.withCtx(()=>[t.createElementVNode("view",r1,[e.showArrow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.popoverArrowStyle)},null,6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(u=>e.chooseItem(i,c),["stop"])},[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",i1,t.toDisplayString(i.name),1)],10,s1))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Xt=J(a1,[["render",c1]]),d1=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:l,round:o,avatarSize:a}=t.toRefs(n),r=t.computed(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${l.value}`]:l.value}});return{avatarShape:l,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:o.value}),getStyle:()=>a.value?{width:a.value,height:a.value}:{width:"50px",height:"50px"}}}}),{create:u1}=X("skeleton"),f1=u1(d1({[Wt.name]:Wt})),m1={key:0},p1={key:1,class:"fox-skeleton"},h1={key:0,class:"fox-skeleton-animation"},g1={class:"fox-skeleton-content"};function y1(e,n,l,o,a,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",p1,[e.animated?(t.openBlock(),t.createElementBlock("view",h1)):t.createCommentVNode("",!0),t.createElementVNode("view",g1,[e.avatar?(t.openBlock(),t.createBlock(s,{key:0,class:t.normalizeClass(e.avatarClass),shape:e.avatarShape,style:t.normalizeStyle(e.getStyle())},null,8,["class","shape","style"])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-skeleton-content__line",style:t.normalizeStyle({width:e.width})},[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockTitle")),style:t.normalizeStyle({height:e.height})},null,6)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.row),i=>(t.openBlock(),t.createElementBlock("view",{key:i,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockLine")),style:t.normalizeStyle({height:e.height})},null,6))),128))],4)])])):(t.openBlock(),t.createElementBlock("view",m1,[t.renderSlot(e.$slots,"default")]))}const la=J(f1,[["render",y1]]),{create:k1,componentName:b1}=X("collapse"),S1=k1({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const l=t.ref(null),o=t.ref(e.modelValue||(e.accordion?"":[])),a=t.computed(()=>({[b1]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,u,m=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,u,m)},s=c=>{if(e.accordion)o.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(o.value))if(o.value.includes(c)){const u=o.value.filter(m=>m!==c);r(u,c,!1)}else{const u=o.value.concat([c]);r(u,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?o.value===c:Array.isArray(o.value)?o.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:l,classes:a}}});function C1(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const aa=J(S1,[["render",C1]]),{create:w1,componentName:N1}=X("collapse-item"),B1=w1({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:te.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=t.ref(null),l=t.ref(null),o=t.inject("collapseParent"),a=t.reactive(o),r=t.computed(()=>{const h=N1;return{[h]:!0,[h+"__border"]:e.border}}),s=t.computed(()=>a?a.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{a.updateVal(e.name)},u=()=>{s.value&&(i.value="auto")},m=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},p=()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?m():p()}),{classes:r,renderIcon:sr,wrapperRef:n,contentRef:l,open:m,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:u}}}),A1={class:"fox-collapse-item__title-main"},V1={class:"fox-collapse-item__title-main-value"},T1=["innerHTML"],$1={key:2,class:"fox-collapse-item__title-label"},E1={key:0,class:"fox-collapse-item__title-sub"},D1=["innerHTML"],I1={key:0,class:"fox-collapse__item-extraWrapper"},q1={class:"fox-collapse__item-extraWrapper__extraRender"},M1={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function z1(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:n[0]||(n[0]=(...s)=>e.toggle&&e.toggle(...s))},[t.createElementVNode("view",A1,[t.createElementVNode("view",V1,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.title,class:"fox-collapse-item__title-mtitle"},null,8,T1)),e.label?(t.openBlock(),t.createElementBlock("view",$1,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",E1,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,D1)),t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title-icon",{"fox-collapse-item__title-icon--expanded":e.expanded}]),style:t.normalizeStyle({transform:"rotate("+(e.expanded?e.rotate:0)+"deg)"})},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.icon))))],6)],2),e.$slots.extra?(t.openBlock(),t.createElementBlock("view",I1,[t.createElementVNode("div",q1,[t.renderSlot(e.$slots,"extra")])])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:t.normalizeStyle({willChange:"height",height:e.wrapperHeight}),onTransitionend:n[1]||(n[1]=(...s)=>e.onTransitionEnd&&e.onTransitionEnd(...s))},[t.createElementVNode("view",M1,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const ra=J(B1,[["render",z1]]),x1=t.defineComponent({setup(e){return()=>t.h("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}}),{componentName:L1,create:P1,scope:R1}=X("table"),F1=P1({components:{RenderColumn:x1,DownArrow:te.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:l}){const{t:o}=se.useFoxI18n(R1),a=t.reactive({curData:e.data}),r=t.computed(()=>({[L1]:!0})),s=k=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${k.align?k.align:""}`]:!0}),i=k=>k.stylehead?k.stylehead:"",c=k=>k.stylecolumn?k.stylecolumn:"",u=k=>e.columns.filter(g=>g.key===k)[0],m=k=>{const g=e.columns.filter(b=>b.key===k);return g[0].stylecolumn?g[0].stylecolumn:""},p=k=>{k.sorter&&(n("sorter",k),a.curData=typeof k.sorter=="function"?a.curData.sort(k.sorter):k.sorter==="default"?a.curData.sort():a.curData)},h=()=>e.columns.map(k=>[k.key,k.render]);return t.watch(()=>e.data,k=>{a.curData=k.slice()}),{...t.toRefs(a),classes:r,cellClasses:s,getColumnItem:u,getColumnItemStyle:m,handleSorterClick:p,sortDataItem:h,t:o,stylehead:i,stylecolumn:c}}}),O1={class:"fox-table__main__head"},v1={class:"fox-table__main__head__tr"},K1=["onClick"],U1={class:"fox-table__main__body"},H1={key:1},j1={key:0,class:"fox-table__nodata"},W1={key:0,class:"fox-table__nodata__text"},Y1={key:1,class:"fox-table__summary"},X1=["innerHTML"];function Q1(e,n,l,o,a,r){const s=t.resolveComponent("DownArrow"),i=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",O1,[t.createElementVNode("view",v1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:u=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,K1))),128))])]),t.createElementVNode("view",U1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([u,m])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(u))]),key:u,style:t.normalizeStyle(e.getColumnItemStyle(u))},[typeof c[u]=="function"||typeof m=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[m,c[u]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",H1,t.toDisplayString(c[u]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",j1,[t.createElementVNode("div",{class:t.normalizeClass(["fox-table__nodata",{"fox-table__nodata--border":e.bordered}])},[t.renderSlot(e.$slots,"nodata"),e.$slots.nodata?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",W1,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",Y1,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,X1)])):t.createCommentVNode("",!0)],2)}const sa=J(F1,[["render",Q1]]),{componentName:G1,create:Z1}=X("ellipsis"),J1=Z1({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 l=t.ref(null);let o=null,a=0;const r=t.ref(),s=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>({[G1]:!0}));t.watch(()=>e.content,(b,S)=>{b!=S&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!l.value)return;const b=window.getComputedStyle(l.value);o=document.createElement("div"),Array.prototype.slice.apply(b).forEach(f=>{o.style.setProperty(f,b.getPropertyValue(f))}),o.style.position="fixed",o.style.left="999999px",o.style.top="999999px",o.style.zIndex="-1000",o.style.height="auto",o.style.minHeight="auto",o.style.maxHeight="auto",o.style.textOverflow="clip",o.style.whiteSpace="normal",o.style.webkitLineClamp="unset",o.style.display="block";const d=h(b.lineHeight==="normal"?e.lineHeight:b.lineHeight);a=Math.floor(d*(Number(e.rows)+.5)+h(b.paddingTop)+h(b.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),u()},u=()=>{if(o.offsetHeight<=a)s.exceeded=!1,document.body.removeChild(o);else{s.exceeded=!0;const b=e.content.length,S=Math.floor((0+b)/2),d=e.direction==="middle"?p([0,S],[S,b]):m(0,b);r.value=d,document.body.removeChild(o)}},m=(b,S)=>{const d=s.expanded?e.collapseText:e.expandText,f=e.content.length;if(S-b<=1)return e.direction==="end"?{leading:e.content.slice(0,b)+e.symbol}:{tailing:e.symbol+e.content.slice(S,f)};const y=Math.round((b+S)/2);return e.direction==="end"?o.innerText=e.content.slice(0,y)+e.symbol+d:o.innerText=d+e.symbol+e.content.slice(y,f),o.offsetHeight<=a?e.direction==="end"?m(y,S):m(b,y):e.direction==="end"?m(b,y):m(y,S)},p=(b,S)=>{const d=s.expanded?e.collapseText:e.expandText,f=e.content.length;if(b[1]-b[0]<=1&&S[1]-S[0]<=1)return{leading:e.content.slice(0,b[0])+e.symbol,tailing:e.symbol+e.content.slice(S[1],f)};const y=Math.floor((b[0]+b[1])/2),C=Math.ceil((S[0]+S[1])/2);return o.innerText=e.content.slice(0,y)+e.symbol+d+e.symbol+e.content.slice(C,f),o.offsetHeight<=a?p([y,b[1]],[S[0],C]):p([b[0],y],[C,S[1]])},h=b=>{if(!b)return 0;const S=b.match(/^\d*(\.\d*)?/);return S?Number(S[0]):0},k=b=>{b==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},g=()=>{n("click")};return{...t.toRefs(s),root:l,ellipsis:r,classes:i,clickHandle:k,handleClick:g}}}),_1={key:0},eC={key:1},tC={key:2};function nC(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[2]||(n[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",_1,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",eC,[t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.leading),1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:n[0]||(n[0]=t.withModifiers(s=>e.clickHandle(1),["stop"]))},t.toDisplayString(e.expandText),1)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.tailing),1)])):t.createCommentVNode("",!0),e.exceeded&&e.expanded?(t.openBlock(),t.createElementBlock("view",tC,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:n[1]||(n[1]=t.withModifiers(s=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const ia=J(J1,[["render",nC]]),{componentName:oC,create:lC}=X("animate"),aC=lC({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:l,loop:o,action:a}=t.toRefs(e),r=t.reactive({clicked:!1});let s=t.computed(()=>({"fox-animate__container":!0,[`${oC}-${l.value}`]:a.value==="initial"||r.clicked?l.value:!1,loop:o.value}));const i=c=>{r.clicked=!0,o.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",c)};return{...t.toRefs(r),classes:s,handleClick:i}}}),rC={class:"fox-animate"};function sC(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",rC,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const ca=J(aC,[["render",sC]]),{componentName:iC,create:cC}=X("watermark"),dC=cC({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 l=t.reactive({base64Url:""}),{zIndex:o,gapX:a,gapY:r,width:s,height:i,rotate:c,image:u,imageWidth:m,imageHeight:p,content:h,fontStyle:k,fontWeight:g,fontColor:b,fontSize:S,fontFamily:d}=e,f=()=>{const C=document.createElement("canvas"),B=window.devicePixelRatio,E=C.getContext("2d"),q=`${(a+s)*B}px`,I=`${(r+i)*B}px`,z=s*B,N=i*B;if(C.setAttribute("width",q),C.setAttribute("height",I),E){if(u){E.translate(z/2,N/2),E.rotate(Math.PI/180*Number(c));const A=new Image;A.crossOrigin="anonymous",A.referrerPolicy="no-referrer",A.src=u,A.onload=()=>{E.drawImage(A,-m*B/2,-p*B/2,m*B,p*B),E.restore(),l.base64Url=C.toDataURL()}}else if(h){E.textBaseline="middle",E.textAlign="center",E.translate(z/2,N/2),E.rotate(Math.PI/180*Number(c));const A=Number(S)*B;E.font=`${k} normal ${g} ${A}px/${N}px ${d}`,E.fillStyle=b,E.fillText(h,0,0),E.restore(),l.base64Url=C.toDataURL()}}else throw new Error("当前环境不支持Canvas")};f(),t.watch(()=>[o,a,r,s,i,c,u,m,p,h,k,g,b,S,d],()=>{f()});const y=t.computed(()=>{const C=iC;return{[C]:!0,[`${C}-full-page`]:e.fullPage}});return{...t.toRefs(l),classes:y}}});function uC(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}const da=J(dC,[["render",uC]]);function fC(e,n=2){return Object.is(parseFloat(e),NaN)?console.log(`传入的值:${e}不是一个数字`):(e=parseFloat(e),(Math.round((e+Number.EPSILON)*Math.pow(10,n))/Math.pow(10,n)).toFixed(n))}const{componentName:mC,create:pC}=X("trend-arrow"),hC=pC({components:{TriangleUp:te.TriangleUp,TriangleDown:te.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=t.reactive({rateTrend:e.rate>0}),l=t.computed(()=>({[mC]:!0})),o=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;n.rateTrend=r>0;const u=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${fC(Number(u),s)}%`}),a=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:u}=e;return{color:u===0?c:i?n.rateTrend?s:r:c}});return{...t.toRefs(n),classes:l,calcRate:o,calcStyle:a}}});function gC(e,n,l,o,a,r){const s=t.resolveComponent("TriangleUp"),i=t.resolveComponent("TriangleDown");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.arrowLeft?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?t.renderSlot(e.$slots,"up-icon",{key:1},()=>[t.createVNode(s,{color:e.riseColor},null,8,["color"])]):t.createCommentVNode("",!0),Number(e.rate)!==0&&!e.rateTrend?t.renderSlot(e.$slots,"down-icon",{key:2},()=>[t.createVNode(i,{color:e.dropColor},null,8,["color"])]):t.createCommentVNode("",!0),e.arrowLeft?(t.openBlock(),t.createElementBlock("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)):t.createCommentVNode("",!0)],2)}const ua=J(hC,[["render",gC]]),{create:yC}=X("tour"),kC=yC({components:{[Xt.name]:Xt,Close:te.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 l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),a=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:m,maskWidth:p,maskHeight:h}=e,{width:k,height:g,left:b,top:S}=o.value,d=[b+k/2,S+g/2],f=Number(p||k),y=Number(h||g);return{width:`${f+ +m[1]*2}px`,height:`${y+ +m[0]*2}px`,top:`${d[1]-y/2-+m[0]}px`,left:`${d[0]-f/2-+m[1]}px`}}),s=m=>{m=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,i()}),n("change",l.active)},i=()=>{const m=document.querySelector(`#${e.steps[l.active].target}`),p=Ee(m);o.value=p},c=()=>{l.showTour=!1,l.showPopup=!1,n("close",l.active),n("update:modelValue",!1)},u=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{l.active=0,i()}),t.watch(()=>e.modelValue,m=>{m&&i(),l.active=0,l.showTour=m,l.showPopup=m}),{...t.toRefs(l),classes:a,maskStyle:r,changeStep:s,close:c,handleClickMask:u}}}),bC={key:0,class:"fox-tour-content"},SC={key:0,class:"fox-tour-content-top"},CC={class:"fox-tour-content-inner"},wC={class:"fox-tour-content-bottom"},NC={class:"fox-tour-content-bottom-init"},BC={class:"fox-tour-content-bottom-operate"},AC={key:1,class:"fox-tour-content fox-tour-content-tile"},VC={class:"fox-tour-content-inner"};function TC(e,n,l,o,a,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-popover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour-masked",onClick:n[0]||(n[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,u)=>(t.openBlock(),t.createElementBlock("div",{key:u,style:{height:"0"}},[u==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=m=>e.showPopup=m),location:c.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:c.popoverOffset||[0,12],arrowOffset:c.arrowOffset||0},{content:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",bC,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",SC,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",CC,t.toDisplayString(c.content),1),t.createElementVNode("div",wC,[t.createElementVNode("div",NC,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",BC,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:n[2]||(n[2]=m=>e.changeStep("prev"))},t.toDisplayString(e.prevStepTxt),1)):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[3]||(n[3]=(...m)=>e.close&&e.close(...m))},t.toDisplayString(e.completeTxt),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:n[4]||(n[4]=m=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",AC,[t.createElementVNode("div",VC,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const fa=J(kC,[["render",TC]]),{componentName:L2,create:$C,scope:EC}=X("address"),DC=$C({components:{Location:te.Location,Location2:te.Location2,Check:te.Check,Close:te.Close,Left:te.Left,[ce.name]:ce,[Lt.name]:Lt},inheritAttrs:!1,props:{...lt,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:n}){const{t:l}=se.useFoxI18n(EC),o=t.ref(null),a=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),u=t.ref(["province","city","country","town"]),m=t.ref(null),p=t.ref([0,0,0,0]),h=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),k=T=>{if(!Array.isArray(T))throw new TypeError("params muse be array.");if(!T.length)return[];T.forEach(V=>{if(!V.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const M=[];return T=T.sort((V,v)=>V.title.localeCompare(v.title)),T.forEach(V=>{const v=M.findIndex($=>$.title===V.title);v<=-1?M.push({title:V.title,list:[].concat(V)}):M[v].list.push(V)}),M};let g=t.ref([]),b=t.reactive({});const S=t.ref("self"),d=t.ref(20),f=()=>{const T=e.modelValue,M=T.length;if(M>0){if(i.value=M-1,h.value.length==0){i.value=0;return}for(let V=0;V<M;V++){let v=[];switch(V){case 0:v=e.province;break;case 1:v=e.city;break;case 2:v=e.country;break;default:v=e.town}g.value[V]=v.filter($=>$.id==T[V])[0]}C()}},y=(T,M)=>T&&T.name||i.value<M&&T?T.name:e.columnsPlaceholder[M]||l("select"),C=()=>{q(),t.nextTick(()=>{const T=a.value&&a.value.getElementsByClassName("active")[0];if(T){const M=T.offsetLeft;d.value=M||20}})},B=T=>{const M=i.value;c.value=i.value;const V={custom:u.value[M]};g.value[M]=T;for(let v=M+2;v<4;v++)g.value.splice(v,1);M<3?(i.value=M+1,C(),V.next=u.value[i.value],V.value=T,n("change",V)):(N(),n("update:modelValue"))},E=(T,M)=>{c.value=i.value,y(T,M)&&(i.value=M,C())},q=()=>{const T=m.value,M=c.value,V=p.value[i.value];T?.scrollTop&&(p.value[M]=T?.scrollTop),t.nextTick(()=>{T?.scrollTo({top:V,behavior:"auto"})})},I=T=>{const M=e.existAddress;let V={};M.forEach(v=>{v&&v.selectedAddress&&(V=v),v.selectedAddress=!1}),T.selectedAddress=!0,b=T,n("selected",V,T,M),N()},z=()=>{g.value=[],i.value=0,C()},N=(T="self")=>{S.value=T=="cross"?"cross":"self",r.value=!1},A=()=>{S.value="mask"},L=()=>{const T={addressIdStr:"",addressStr:"",province:g.value[0],city:g.value[1],country:g.value[2],town:g.value[3]},M={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(V=>{const v=g.value[V];T.addressIdStr+=`${V?"_":""}${v&&v.id||0}`,T.addressStr+=v&&v.name||""}),M.data=T):M.data=b,z(),S.value=="self"?n("close",M):n("close-mask",{closeWay:S}),n("update:visible",!1)},O=()=>{const T=s.value;s.value=T=="exist"?"custom":"exist",z(),n("switch-module",{type:s.value})},D=(T,M)=>{B(M)};return t.watch(()=>e.visible,T=>{r.value=T}),t.watch(()=>r.value,T=>{T&&f()}),{showPopup:r,privateType:s,tabIndex:i,tabName:u,selectedRegion:g,switchModule:O,closeWay:S,close:L,getTabName:y,nextAreaList:B,regionLine:o,tabRegion:a,lineDistance:d,changeRegionTab:E,selectedExist:I,clickOverlay:A,handClose:N,handleElevatorItem:D,initCustomSelected:f,...t.toRefs(e),t:l,regionList:h,transformData:k,scrollDom:m}}}),IC={class:"fox-address"},qC={class:"fox-address__header"},MC={class:"fox-address__header__title"},zC={key:0,class:"fox-address__custom"},xC={class:"fox-address__region",ref:"tabRegion"},LC=["onClick"],PC={key:0,class:"active fox-address__region-item"},RC={key:0,class:"fox-address__detail"},FC={class:"fox-address__detail-list",ref:"scrollDom"},OC=["onClick"],vC={key:1,class:"fox-address__elevator-group"},KC={key:1,class:"fox-address__exist"},UC={class:"fox-address__exist-group"},HC={class:"fox-address__exist-group-list"},jC=["onClick"],WC={class:"fox-address__exist-item-info"},YC={key:0,class:"fox-address__exist-item-info-name"},XC={key:1,class:"fox-address__exist-item-info-phone"},QC={class:"fox-address__exist-item-info-bottom"},GC={class:"fox-address__exist-choose-btn"};function ZC(e,n,l,o,a,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),u=t.resolveComponent("fox-elevator"),m=t.resolveComponent("Location2"),p=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(p,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",IC,[t.createElementVNode("view",qC,[t.createElementVNode("view",{class:"fox-address__header-back",onClick:n[0]||(n[0]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.renderSlot(e.$slots,"back-icon",{},()=>[t.withDirectives(t.createVNode(s,{size:"14px"},null,512),[[t.vShow,e.type=="exist"&&e.privateType=="custom"]])])]),t.createElementVNode("view",MC,t.toDisplayString(e.privateType=="custom"?e.customAddressTitle||e.t("selectRegion"):e.existAddressTitle||e.t("deliveryTo")),1),t.createElementVNode("view",{class:"fox-address__header-close",onClick:n[1]||(n[1]=h=>e.handClose("cross"))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{color:"#cccccc",size:"14px"})])])]),["custom","custom2"].includes(e.privateType)?(t.openBlock(),t.createElementBlock("view",zC,[t.createElementVNode("view",xC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,k)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",k==e.tabIndex?"active":""]),key:k,onClick:g=>e.changeRegionTab(h,k)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,k)),1)],10,LC))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",PC,[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(null,e.selectedRegion.length)),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-address__region-line",ref:"regionLine",style:t.normalizeStyle({left:e.lineDistance+"px"})},null,4)],512),e.privateType=="custom"?(t.openBlock(),t.createElementBlock("view",RC,[t.createElementVNode("ul",FC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,k)=>(t.openBlock(),t.createElementBlock("li",{key:k,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick:g=>e.nextAreaList(h)},[t.createElementVNode("div",null,[e.selectedRegion[e.tabIndex]?.id==h.id?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(h.name),1)])],10,OC))),128))],512)])):(t.openBlock(),t.createElementBlock("view",vC,[t.createVNode(u,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",KC,[t.createElementVNode("div",UC,[t.createElementVNode("ul",HC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,k)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:k,onClick:g=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(m,{class:"fox-address-select-icon",size:"13px"})]),h.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",WC,[h.name?(t.openBlock(),t.createElementBlock("div",YC,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",XC,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",QC,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,jC))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:n[2]||(n[2]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.createElementVNode("div",GC,t.toDisplayString(e.customAndExistTitle||e.t("chooseAnotherAddress")),1)])):t.createCommentVNode("",!0)])),t.renderSlot(e.$slots,"bottom")])]),_:3},8,["lock-scroll","onClose","onClickOverlay","visible","teleportDisable","teleport"])}const ma=J(DC,[["render",ZC]]),{componentName:JC,create:_C}=X("barrage"),ew=_C({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(),l=!!t.useSlots().default,o=t.computed(()=>({[JC]:!0}));let a=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),u=t.ref(e.top),m=t.ref(0),p=e.speeds,h=t.ref(0);t.onMounted(()=>{k(),l&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(b(),m.value=0,g("hidden")):document.visibilityState==="visible"&&k()})}),t.onUnmounted(()=>{i.value=[],b()});const k=()=>{h.value=a.value.offsetWidth,l&&g("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${h.value}px`),d()},300)},g=y=>{let B=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const E=[];B&&Array.from(B).forEach(q=>{y=="init"?(q.style.opacity="0",E.push(q)):(q.classList="",q.style={})}),y=="init"&&(i.value=E)},b=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,y=>{e.danmu.length>0&&(i.value=[...y])});const S=y=>{const C=m.value%i.value.length;!e.loop&&m.value===i.value.length?i.value.splice(i.value.length,0,y):i.value.splice(C,0,y)},d=()=>{b(),s=setTimeout(()=>{f()},e.frequency)},f=()=>{const y=e.loop?m.value%i.value.length:m.value;let C=document.createElement("view");l&&typeof i.value[y]=="object"?(C=i.value[y],C?.classList?.add("fox-barrage__item")):(C.innerHTML=i.value[y],C.classList.add("fox-barrage__item"),r.value.appendChild(C)),t.nextTick(()=>{const B=C.offsetHeight;if(C?.classList?.add("move"),C.style.animationDuration=`${p}ms`,C.style.top=y%c.value*(B+u.value)+20+"px",C.style.opacity="1",!l){const E=C.offsetWidth;C.style.width=E+20+"px"}C.addEventListener("animationend",()=>{l?C.classList.remove("move"):r.value.removeChild(C)}),!(!e.loop&&m.value>=i.value.length-1)&&(m.value++,m.value>=i.value.length&&(m.value=0),C.removeEventListener("animationend",()=>{}),d())})};return{classTime:n,classes:o,danmuList:i,dmBody:a,dmContainer:r,add:S}}});function tw(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"dmBody",class:t.normalizeClass(e.classes)},[t.createElementVNode("div",{ref:"dmContainer",class:t.normalizeClass(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["slotBody","slotBody"+e.classTime])},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)],2)],2)}const pa=J(ew,[["render",tw]]),{componentName:nw,create:ow,scope:lw}=X("signature"),aw=ow({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:{[Me.name]:Me},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:l}=se.useFoxI18n(lw),o=l(e,["unSupportTpl","reSign","confirmText"]),a=t.ref(null),r=t.ref(null),s=t.computed(()=>({[nw]:!0,[`${e.customClass}`]:e.customClass})),i=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let f=document.createElement("canvas");return!!(f.getContext&&f.getContext("2d"))},u=()=>{a.value.addEventListener(i.events[0],m,!1)},m=f=>{f.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),a.value.addEventListener(i.events[1],p,!1),a.value.addEventListener(i.events[2],h,!1),a.value.addEventListener(i.events[3],k,!1)},p=f=>{f.preventDefault();let y=i.isSupportTouch?f.touches[0]:f;n("signing",y);let C=a.value.getBoundingClientRect(),B=y.clientX-C.left,E=y.clientY-C.top;i.ctx.lineTo(B,E),i.ctx.stroke()},h=f=>{f.preventDefault(),n("end"),a.value.removeEventListener(i.events[1],p,!1),a.value.removeEventListener(i.events[2],h,!1)},k=f=>{f.preventDefault(),a.value.removeEventListener(i.events[1],p,!1),a.value.removeEventListener(i.events[2],h,!1)},g=()=>{a.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},b=()=>{d(a.value)},S=f=>{if(!f)return!0;var y=document.createElement("canvas");return y.width=f.width,y.height=f.height,f?.toDataURL()==y.toDataURL()},d=f=>{let y;switch(e.type){case"png":y=f.toDataURL("image/png");break;case"jpg":y=f.toDataURL("image/jpeg",.8);break}const C=S(f)?"请绘制签名":f,B=S(f)?"":y;n("confirm",C,B)};return t.onMounted(()=>{c()&&(i.ctx=a.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,u())}),{...o,...t.toRefs(i),canvas:a,wrap:r,isCanvasSupported:c,confirm:b,clear:g,classes:s}}}),rw={class:"fox-signature-inner",ref:"wrap"},sw=["height","width"],iw={key:0,class:"fox-signature-unsopport"};function cw(e,n,l,o,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",rw,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,sw),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",iw,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(s,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=i=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(s,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const ha=J(aw,[["render",cw]]),{componentName:dw,create:uw,scope:fw}=X("time-select"),mw=uw({components:{[ce.name]:ce},props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!0},teleportDisable:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,n)=>{const{t:l}=se.useFoxI18n(fw),o=t.computed(()=>({[dw]:!0})),a=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),s=t.computed(()=>e.currentTime),i=()=>{n.emit("update:visible",!1),n.emit("select",s.value)};return t.provide("currentKey",r),t.provide("currentTime",s),{classes:o,popStyle:a,props:e,close:i,t:l}}}),pw={class:"fox-time-select__title"},hw={class:"fox-time-select__title__fixed"},gw={key:0},yw={class:"fox-time-select__content"},kw={class:"fox-time-select__content__pannel"},bw={class:"fox-time-select__content__detail"};function Sw(e,n,l,o,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{position:"bottom",closeable:"",round:"",teleportDisable:e.teleportDisable,visible:e.visible,style:t.normalizeStyle(e.popStyle),"lock-scroll":e.lockScroll,onClickOverlay:e.close,onClickCloseIcon:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",pw,[t.createElementVNode("view",hw,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",gw,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",yw,[t.createElementVNode("view",kw,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",bw,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const ga=J(mw,[["render",Sw]]),{componentName:Cw,create:ww}=X("time-pannel"),Nw=ww({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,n)=>{const l=t.inject("currentKey"),o=t.reactive({currentKey:l}),a=t.computed(()=>({[Cw]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:a,handlePannel:r}}});function Bw(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=s=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const ya=J(Nw,[["render",Bw]]),{componentName:Aw,create:Vw}=X("time-detail"),Tw=Vw({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,n)=>{const l=t.inject("currentKey"),o=t.inject("currentTime"),a=t.reactive({currentKey:l,currentTime:o}),r=t.computed(()=>({[Aw]:!0})),s=u=>{let m=a.currentTime.find(p=>p.key==a.currentKey);if(m)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":m.list.filter(p=>p===u).length>0}},i=t.computed(()=>e.times.find(u=>u.key==a.currentKey).list),c=u=>{n.emit("select",u)};return{classes:r,...t.toRefs(a),getClass:s,renderData:i,handleTime:c}}}),$w={class:"fox-time-detail__detail fox-time-detail__detail--moring"},Ew={class:"fox-time-detail__detail__list"},Dw=["onClick"];function Iw(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",$w,[t.createElementVNode("view",Ew,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.renderData,s=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.getClass(s)),key:s,onClick:i=>e.handleTime(s)},t.toDisplayString(s),11,Dw))),128))])])],2)}const ka=J(Tw,[["render",Iw]]),{componentName:P2,create:qw,scope:Mw}=X("sku-header"),zw=qw({props:{goods:{type:Object,default:{}}},emits:[],components:{[Ze.name]:Ze},setup(e,{emit:n,slots:l}){const{t:o}=se.useFoxI18n(Mw);return{getSlots:r=>l[r],t:o}}}),xw={class:"fox-sku-header"},Lw=["src"],Pw={class:"fox-sku-header-right"},Rw={key:3,class:"fox-sku-header-right-extra"};function Fw(e,n,l,o,a,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",xw,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,Lw),t.createElementVNode("view",Pw,[e.getSlots("sku-header-price")?t.renderSlot(e.$slots,"sku-header-price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.goods.price,needSymbol:!0,thousands:!1},null,8,["price"])),e.getSlots("sku-header-extra")?t.renderSlot(e.$slots,"sku-header-extra",{key:2}):t.createCommentVNode("",!0),e.goods.skuId&&!e.getSlots("sku-header-extra")?(t.openBlock(),t.createElementBlock("view",Rw,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const Ow=J(zw,[["render",Fw]]),{componentName:R2,create:vw}=X("sku-select"),Kw=vw({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:n}){const l=t.ref([]);return t.watch(()=>e.sku,a=>{l.value=[].slice.call(a)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(l.value=[].slice.call(e.sku))}),{skuInfo:l,changeSaleChild:(a,r,s,i)=>{a.checkFlag||a.disable||n("selectSku",{sku:a,skuIndex:r,parentSku:s,parentIndex:i})}}}}),Uw={class:"fox-sku-select"},Hw={class:"fox-sku-select-item-title"},jw={class:"fox-sku-select-item-skus"},Ww=["onClick"];function Yw(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("view",Uw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:s.id},[t.createElementVNode("view",Hw,t.toDisplayString(s.name),1),t.createElementVNode("view",jw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,u)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:m=>e.changeSaleChild(c,u,s,i),key:c.name},t.toDisplayString(c.name),11,Ww))),128))])]))),128))])}const Xw=J(Kw,[["render",Yw]]),{componentName:F2,create:Qw}=X("sku-stepper"),Gw=Qw({props:{stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},stepperExtraText:{type:[Function,Boolean],default:!1},stepperTitle:{type:String,default:"购买数量"}},emits:["click","changeSku","changeStepper","clickBtnOptions","overLimit","reduce","add"],components:{[it.name]:it},setup(e,{emit:n}){const l=t.ref(e.stepperMin);return t.onMounted(()=>{l.value=e.stepperMin}),{goodsCount:l,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,u)=>{n("overLimit",{action:u,value:parseInt(l.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&et(c)=="function"?c():""},changeStepper:c=>{l.value=c,n("changeStepper",c)}}}}),Zw={class:"fox-sku-stepper"},Jw={class:"fox-sku-stepper-title"},_w=["innerHTML"],eN={class:"fox-sku-stepper-count"};function tN(e,n,l,o,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",Zw,[t.createElementVNode("view",Jw,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,_w),t.createElementVNode("view",eN,[t.createVNode(s,{modelValue:e.goodsCount,"onUpdate:modelValue":n[0]||(n[0]=i=>e.goodsCount=i),min:e.stepperMin,max:e.stepperMax,onAdd:e.add,onReduce:e.reduce,onOverlimit:e.overlimit,onChange:e.changeStepper},null,8,["modelValue","min","max","onAdd","onReduce","onOverlimit","onChange"])])])}const nN=J(Gw,[["render",tN]]),{componentName:O2,create:oN}=X("sku-operate"),lN=oN({props:{btnOptions:{type:Array,default:()=>["confirm"]},btnExtraText:{type:String,default:""},buyText:{type:String,default:"立即购买"},addCartText:{type:String,default:"加入购物车"},confirmText:{type:String,default:"确定"}},emits:["click","changeSku","changeBuyCount","clickBtnOperate"],setup(e,{emit:n,slots:l}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{n("clickBtnOperate",s)},getSlots:s=>l[s]}}}),aN={key:0,class:"fox-sku-operate"},rN={key:0,class:"fox-sku-operate-desc"},sN={key:1,class:"fox-sku-operate-btn"},iN=["onClick"];function cN(e,n,l,o,a,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",aN,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",rN,t.toDisplayString(e.btnExtraText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"operate-btn"),e.getSlots("operate-btn")?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",sN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.btnOptions,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass([`fox-sku-operate-btn-${s}`,"fox-sku-operate-btn-item"]),key:i,onClick:c=>e.clickBtnOperate(s)},t.toDisplayString(e.getBtnDesc(s)),11,iN))),128))]))])):t.createCommentVNode("",!0)}const dN=J(lN,[["render",cN]]),{componentName:v2,create:uN,scope:fN}=X("sku"),mN=uN({props:{...lt,sku:{type:Array,default:[]},goods:{type:Object,default:{}},stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},btnOptions:{type:Array,default:()=>["confirm"]},stepperTitle:{type:String,default:""},stepperExtraText:{type:[Function,Boolean],default:!1},btnExtraText:{type:String,default:""},buyText:{type:String,default:""},addCartText:{type:String,default:""},confirmText:{type:String,default:""}},emits:["update:visible","select-sku","change-stepper","click-btn-operate","click-close-icon","click-overlay","close","reduce","add","over-limit"],components:{SkuHeader:Ow,SkuSelect:Xw,SkuStepper:nN,SkuOperate:dN,[ce.name]:ce},setup(e,{emit:n,slots:l}){const{toLocaleRefs:o}=se.useFoxI18n(fN),a=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,S=>{r.value=S}),t.watch(()=>r.value,S=>{S==!1&&b()}),t.onMounted(()=>{});const i=S=>l[S],c=S=>{n("select-sku",S)},u=S=>{s.value=S,n("change-stepper",S)},m=S=>{n("add",S)},p=S=>{n("reduce",S)},h=S=>{n("over-limit",S)},k=S=>{n("click-btn-operate",{type:S,value:s.value})},g=S=>{S=="icon"&&n("click-close-icon"),S=="overlay"&&n("click-overlay"),S=="close"&&n("close"),r.value=!1},b=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:g,selectSku:c,changeStepper:u,stepperOverLimit:h,clickBtnOperate:k,add:m,reduce:p,getSlots:i,...a}}}),pN={class:"fox-sku"},hN={class:"fox-sku-content"};function gN(e,n,l,o,a,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),u=t.resolveComponent("sku-operate"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=p=>e.showPopup=p),onClickCloseIcon:n[1]||(n[1]=p=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=p=>e.closePopup("overlay")),onClose:n[3]||(n[3]=p=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",pN,[t.renderSlot(e.$slots,"sku-header"),e.getSlots("sku-header")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,goods:e.goods},t.createSlots({_:2},[e.getSlots("sku-header-price")?{name:"sku-header-price",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-price")]),key:"0"}:void 0,e.getSlots("sku-header-extra")?{name:"sku-header-extra",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-extra")]),key:"1"}:void 0]),1032,["goods"])),t.createElementVNode("view",hN,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(u,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const ba=J(mN,[["render",gN]]),{create:yN}=X("card"),kN=yN({components:{[Ze.name]:Ze,[Yt.name]:Yt},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:n,slots:l}){return{isHaveSlot:a=>l[a]}}}),bN={class:"fox-card"},SN={class:"fox-card__left"},CN=["src"],wN={class:"fox-card__right"},NN={class:"fox-card__right__title"},BN={key:0,class:"fox-card__right__price"},AN={class:"fox-card__right__other"},VN={class:"fox-card__right__shop"},TN={class:"fox-card__right__shop__name"};function $N(e,n,l,o,a,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",bN,[t.createElementVNode("div",SN,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,CN)]),t.createElementVNode("div",wN,[t.createElementVNode("div",NN,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",BN,[e.isHaveSlot("price")?t.renderSlot(e.$slots,"price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.price},null,8,["price"])),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:2}):(t.openBlock(),t.createBlock(s,{key:3,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",AN,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(i,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(i,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",VN,[t.createElementVNode("div",TN,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Sa=J(kN,[["render",$N]]),{create:EN,scope:DN}=X("ecard"),IN=EN({components:{[it.name]:it},props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:Array,default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"¥"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:n}){const{t:l}=se.useFoxI18n(DN),o=t.ref(null),a=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,k)=>{o.value=k,s.value=e.cardAmountMin,a.value=h.price,n("change",h),n("update:modelValue",h.price)},u=h=>{let g=h.target.value.replace(/[^\d]/g,"");r.value=g,a.value=g,Number(g)>e.cardAmountMax&&(r.value=e.cardAmountMax,a.value=e.cardAmountMax),Number(g)<e.cardAmountMin&&(r.value=e.cardAmountMin,a.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},m=()=>{o.value="input",s.value=e.cardAmountMin,a.value=r.value,n("update:modelValue",r.value),n("inputClick")},p=h=>{s.value=h,n("changeStep",s.value,a.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:p,change:u,inputClick:m,stepValue:s,currentIndex:o,inputValue:r,money:i,t:l}}}),qN={class:"fox-ecard"},MN={class:"fox-ecard__title"},zN={class:"fox-ecard__list"},xN=["onClick"],LN={class:"fox-ecard__list__input--con"},PN=["placeholder"],RN={class:"fox-ecard__list__step"};function FN(e,n,l,o,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",qN,[t.createElementVNode("view",MN,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",zN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:u=>e.handleClick(i,c)},t.toDisplayString(i.price),11,xN))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:n[2]||(n[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",LN,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":n[0]||(n[0]=i=>e.inputValue=i),onInput:n[1]||(n[1]=(...i)=>e.change&&e.change(...i)),placeholder:e.placeholder||e.t("placeholder")},null,40,PN),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",RN,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(s,{modelValue:e.stepValue,"onUpdate:modelValue":n[3]||(n[3]=i=>e.stepValue=i),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const Ca=J(IN,[["render",FN]]),{create:ON,scope:vN}=X("address-list-item"),KN=ON({components:{Del:te.Del,Edit:te.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:l}=se.useFoxI18n(vN);return{delClick:s=>{n("delIcon",s,e.item),s.stopPropagation()},editClick:s=>{n("editIcon",s,e.item),s.stopPropagation()},contentsClick:s=>{n("clickItem",s,e.item),s.stopPropagation()},t:l}}}),UN={class:"fox-address-list-item__info"},HN={class:"fox-address-list-item__info-contact"},jN={class:"fox-address-list-item__info-contact-name"},WN={class:"fox-address-list-item__info-contact-tel"},YN={key:0,class:"fox-address-list-item__info-contact-default"},XN={class:"fox-address-list-item__info-handle"},QN={class:"fox-address-list-item__addr"};function GN(e,n,l,o,a,r){const s=t.resolveComponent("Del"),i=t.resolveComponent("Edit");return t.openBlock(),t.createElementBlock("div",{class:"fox-address-list-item",onClick:n[0]||(n[0]=(...c)=>e.contentsClick&&e.contentsClick(...c))},[t.createElementVNode("div",UN,[t.createElementVNode("div",HN,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",jN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",WN,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",YN,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",XN,[t.renderSlot(e.$slots,"content-icon",{},()=>[t.createVNode(s,{name:"del",class:"fox-address-list-item__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(i,{name:"edit",class:"fox-address-list-item__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",QN,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const Bs=J(KN,[["render",GN]]),{create:ZN}=X("address-list-general"),JN=ZN({props:{item:{type:Object,default:{}},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1}},emits:["delIcon","editIcon","clickItem","longDown","longCopy","longSet","longDel","swipeDel"],components:{ItemContents:Bs,[Me.name]:Me,[Ft.name]:Ft},setup(e,{emit:n}){const l=()=>t.h(Bs,{item:e.item,onDelIcon(B){s(B)},onEditIcon(B){i(B)},onClickItem(B){c(B)}});let o=null;const a=t.ref(!1),r=t.ref(!1),s=B=>{n("delIcon",B,e.item),B.stopPropagation()},i=B=>{n("editIcon",B,e.item),B.stopPropagation()},c=B=>{a.value||(n("clickItem",B,e.item),B.stopPropagation())},u=B=>{n("longDel",B,e.item),B.stopPropagation()},m=B=>{o=0,r.value=!0,n("longDown",B,e.item)};return{renderCompontent:l,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:u,holddownstart:B=>{o=setTimeout(()=>{m(B)},300)},holddownmove:()=>{clearTimeout(o)},holddownend:()=>{clearTimeout(o)},copyCLick:B=>{n("longCopy",B,e.item),B.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:B=>{n("longSet",B,e.item),B.stopPropagation()},maskClick:B=>{o!=0&&(r.value=!1),B.stopPropagation(),B.preventDefault()},swipeDelClick:B=>{n("swipeDel",B,e.item),B.stopPropagation()},swipestart:()=>{a.value=!1},swipemove:()=>{a.value=!0}}}}),_N={key:0,class:"fox-address-list-general"},eB={class:"fox-address-list-swipe"};function tB(e,n,l,o,a,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(i,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(s,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>[t.createTextVNode("删除")]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",eB,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchmove:e.swipemove,onTouchstart:e.swipestart},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchmove","onTouchstart"]))])]),_:3})):(t.openBlock(),t.createElementBlock("div",_N,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchstart:e.holddownstart,onTouchend:e.holddownend,onTouchmove:e.holddownmove},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchstart","onTouchend","onTouchmove"])),e.longPress&&e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list-general__mask",onClick:n[3]||(n[3]=(...c)=>e.maskClick&&e.maskClick(...c))},[t.renderSlot(e.$slots,"longpress-all",{},()=>[t.createElementVNode("div",{class:"fox-address-list-general__mask-copy",onClick:n[0]||(n[0]=(...c)=>e.copyCLick&&e.copyCLick(...c))},"复制地址"),t.createElementVNode("div",{class:"fox-address-list-general__mask-set",onClick:n[1]||(n[1]=(...c)=>e.setDefault&&e.setDefault(...c))},"设置默认"),t.createElementVNode("div",{class:"fox-address-list-general__mask-del",onClick:n[2]||(n[2]=(...c)=>e.delLongClick&&e.delLongClick(...c))},"删除地址")])])):t.createCommentVNode("",!0),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-address-list__mask-bottom",onClick:n[4]||(n[4]=(...c)=>e.hideMaskClick&&e.hideMaskClick(...c))})):t.createCommentVNode("",!0)]))}const nB=J(JN,[["render",tB]]),{componentName:oB,create:lB,scope:aB}=X("address-list"),rB=lB({props:{data:{type:Array,default:[]},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1},showBottomButton:{type:Boolean,default:!0},dataOptions:{type:Object,default:{}}},components:{GeneralShell:nB,[Me.name]:Me},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:l}=se.useFoxI18n(aB),o=t.ref([]),a=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[oB]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(b=>Ya(a,b,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(b,S)=>{n("delIcon",b,S),b.stopPropagation()},c=(b,S)=>{n("editIcon",b,S),b.stopPropagation()},u=(b,S)=>{n("clickItem",b,S),b.stopPropagation()},m=(b,S)=>{n("longCopy",b,S),b.stopPropagation()},p=(b,S)=>{n("longSet",b,S),b.stopPropagation()},h=(b,S)=>{n("longDel",b,S),b.stopPropagation()},k=(b,S)=>{n("swipeDel",b,S),b.stopPropagation()},g=b=>{n("add",b),b.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:u,clickLongCopy:m,clickLongSet:p,clickLongDel:h,clickSwipeDel:k,addAddress:g,dataArray:o,t:l}}});function sB(e,n,l,o,a,r){const s=t.resolveComponent("general-shell"),i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,u)=>(t.openBlock(),t.createBlock(s,{key:u,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:n[0]||(n[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const wa=J(rB,[["render",sB]]),{componentName:K2,create:iB}=X("category"),cB=iB({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:n,slots:l}){const o=t.ref(0),a=t.ref(!1);return{getChildList:s=>{o.value=s,n("change",s)},checkIndex:o,categoryLeft:a}}}),dB={class:"fox-category"},uB={class:"fox-category__cateList"},fB={key:0},mB=["onClick"];function pB(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",dB,[t.createElementVNode("div",uB,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",fB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.category,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category__cateListLeft",key:i},[t.createElementVNode("div",{class:t.normalizeClass([e.checkIndex==i?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(i)},t.toDisplayString(s.catName),11,mB)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Na=J(cB,[["render",pB]]),{componentName:U2,create:hB}=X("category-pane"),gB=hB({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),yB={class:"fox-category-pane"},kB={key:0,class:"fox-category-pane__cateListRight"},bB={class:"fox-category-pane__childTitle"},SB={key:0,class:"fox-category-pane__childItemList"},CB=["onClick"],wB=["src"],NB={class:"fox-category-pane__skuImg"},BB={key:1,class:"fox-category-pane__cateListRight"},AB={class:"fox-category-pane__childTitle"},VB={key:0,class:"fox-category-pane__childItemList"},TB=["onClick"],$B={class:"fox-category-pane__skuName"},EB={key:2,class:"fox-category-pane__selfItemList"},DB=["onClick"];function IB(e,n,l,o,a,r){return t.openBlock(),t.createElementBlock("div",yB,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",kB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",bB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",SB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:u,onClick:m=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,wB),t.createElementVNode("div",NB,t.toDisplayString(c?.catName),1)],8,CB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",BB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",AB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",VB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:u,onClick:m=>e.onChange(c)},[t.createElementVNode("div",$B,t.toDisplayString(c?.catName),1)],8,TB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",EB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.customCategory,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__skuName",key:i,onClick:c=>e.onChange(s)},t.toDisplayString(s?.catName),9,DB))),128))])):t.createCommentVNode("",!0)])}const Ba=J(gB,[["render",IB]]),{componentName:H2,create:qB}=X("comment-header"),MB=qB({components:{[kt.name]:kt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),zB={class:"fox-comment-header__user"},xB={class:"fox-comment-header__user-avter"},LB=["src"],PB={class:"fox-comment-header__user-score"},RB={key:0,class:"fox-comment-header__time"};function FB(e,n,l,o,a,r){const s=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:n[1]||(n[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",zB,[t.createElementVNode("view",xB,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,LB)):t.createCommentVNode("",!0)]),e.type=="default"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},[t.createElementVNode("span",null,t.toDisplayString(e.info.nickName),1),t.renderSlot(e.$slots,"labels")],2),t.createElementVNode("view",PB,[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":n[0]||(n[0]=i=>e.info.score=i),size:"12",spacing:"5",readonly:"",onChange:e.handleClick},null,8,["modelValue","onChange"])])],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("span",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},t.toDisplayString(e.info.nickName),3),t.renderSlot(e.$slots,"labels")],2))]),e.info.time?(t.openBlock(),t.createElementBlock("view",RB,t.toDisplayString(e.info.time),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.type=="complex"?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__${e.type}-score`])},[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":n[2]||(n[2]=i=>e.info.score=i),size:"12",spacing:"3",readonly:""},null,8,["modelValue"]),t.createElementVNode("i",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-i`])},null,2),t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-size`])},t.toDisplayString(e.info.size),3)],2)):t.createCommentVNode("",!0)])}const OB=J(MB,[["render",FB]]),{componentName:j2,create:vB}=X("comment-images"),KB=vB({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:te.Right},emits:["click","clickImages"],setup(e,{emit:n}){const l=t.ref(!1),o=t.ref(1),a=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),a.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),a.value=e.videos.concat(e.images)}),{isShowImage:l,initIndex:o,showImages:(s,i)=>{const{videos:c,images:u}=e,m=s=="img"?i-c.length:i;n("clickImages",{type:s,index:m,value:s=="img"?u[m]:c[m]})},totalImages:a}}}),UB=["onClick"],HB=["src"],jB=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),WB=["onClick"],YB=["src"],XB={key:0,class:"fox-comment-images__mask"};function QB(e,n,l,o,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:u=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,HB),jB],8,UB))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:u=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,YB),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",XB,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,WB)):t.createCommentVNode("",!0)],64))),128))],2)}const GB=J(KB,[["render",QB]]),{componentName:W2,create:ZB,scope:JB}=X("comment-bottom"),_B=ZB({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:te.Fabulous,Comment:te.Comment,MoreX:te.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:l}=se.useFoxI18n(JB),o=t.ref(!1),a=t.ref([]);return t.onMounted(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&a.value.push(c)})}),{showPopver:o,operate:i=>{i=="more"&&(o.value=!o.value),n("clickOperate",i)},mergeOp:a,handleClick:()=>{n("handleClick")},t:l}}}),e2={class:"fox-comment-bottom"},t2={key:0},n2={class:"fox-comment-bottom__cpx"},o2=["onClick"];function l2(e,n,l,o,a,r){const s=t.resolveComponent("Fabulous"),i=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",e2,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...u)=>e.handleClick&&e.handleClick(...u)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",t2,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",n2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(u,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${u}`]),onClick:p=>e.operate(u)},[u!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[u]),1),u=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),u=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=p=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,o2))),128))])])}const a2=J(_B,[["render",l2]]),{componentName:r2,create:s2,scope:i2}=X("comment"),c2=s2({props:{headerType:{type:String,default:"default"},imagesRows:{type:String,default:"one"},ellipsis:{type:[String,Number,Boolean],default:!1},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]},info:{type:Object,default:()=>({})},follow:{type:Object,default:()=>({})},labels:{type:Function,default:()=>""},operation:{type:Array,default:["replay","like","more"]}},components:{CommentHeader:OB,CommentImages:GB,CommentBottom:a2,Right:te.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:l}=se.useFoxI18n(i2),o=t.computed(()=>({[r2]:!0})),a=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:o,conEllipsis:a,clickOperate:c=>{n("clickOperate",c)},handleClick:()=>{n("click",e.info)},clickImages:c=>{n("clickImages",c)},t:l}}}),d2=["innerHTML"],u2={class:"fox-comment__follow-title"},f2={class:"fox-comment__follow-com"},m2={key:0,class:"fox-comment__follow-img"};function p2(e,n,l,o,a,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),u=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:n[0]||(n[0]=(...m)=>e.handleClick&&e.handleClick(...m)),innerHTML:e.info.content},null,12,d2),t.createVNode(i,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:n[1]||(n[1]=(...m)=>e.handleClick&&e.handleClick(...m))},[t.createElementVNode("view",u2,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",f2,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",m2,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",e.follow.images.length))+" ",1),t.createVNode(c,{width:"12px"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(u,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const Aa=J(c2,[["render",p2]]),h2=[go,ko,bo,So,No,Ne,To,$o,Eo,Do,qo,Nn,xo,Ro,Ko,jo,Dn,In,Wo,Mn,zn,Xo,Go,ot,Zo,_o,On,tl,nl,ol,ll,sl,il,st,cl,dl,ul,fl,Me,ml,pl,at,ce,hl,gl,yl,kl,Dt,bl,Sl,Cl,wl,Nl,Bl,Al,Vl,Tl,Lt,$l,It,qt,El,Dl,Il,ql,Pt,Fn,An,En,$n,it,kt,ht,Ml,zl,xl,Ft,Ll,Pl,Rl,Ot,Rn,Fl,Kl,Ln,Ct,jl,Wl,Wt,Yl,Xl,Rt,Ql,Gl,Zl,wt,Jl,_l,Nt,Bt,Ze,Hn,ta,na,oa,Yt,Xt,la,aa,ra,sa,ia,ca,da,ua,fa,ma,pa,ha,ga,ya,ka,ba,Sa,Ca,wa,Na,Ba,Aa],g2=new oi(h2,"4.0.0");w.ActionSheet=Ll,w.ActionsheetItem=tl,w.ActionsheetPane=On,w.Address=ma,w.AddressList=wa,w.Animate=ca,w.Audio=jl,w.AudioOperate=Wl,w.Avatar=Wt,w.AvatarGroup=Yl,w.BackTop=Pl,w.Badge=oa,w.Barrage=pa,w.Broadcast=io,w.BroadcastKey=Ce,w.Button=Me,w.Calendar=En,w.CalendarItem=jo,w.Card=Sa,w.Cascader=An,w.CascaderItem=Ro,w.Category=Na,w.CategoryPane=Ba,w.Cell=ml,w.CellGroup=pl,w.Checkbox=Mn,w.CheckboxGroup=zn,w.CheckboxItem=Xo,w.CircleProgress=Ql,w.Col=yl,w.Collapse=aa,w.CollapseItem=ra,w.Comment=Aa,w.Content=So,w.CountDown=na,w.CountUp=ta,w.DataItemsKey=ut,w.DateItem=Ko,w.DatePicker=$n,w.DateUtils=le,w.Dialog=Ot,w.Divider=bl,w.Domain=rn,w.DomainKey=Ie,w.DomainProvider=ul,w.Drag=Rl,w.Ecard=Ca,w.Elevator=Lt,w.Ellipsis=ia,w.Empty=Zl,w.FixedNav=Nl,w.FloatingButton=il,w.FooterBar=bo,w.FoxActionSheet=Ll,w.FoxActionsheetItem=tl,w.FoxActionsheetPane=On,w.FoxAddress=ma,w.FoxAddressList=wa,w.FoxAnimate=ca,w.FoxAudio=jl,w.FoxAudioOperate=Wl,w.FoxAvatar=Wt,w.FoxAvatarGroup=Yl,w.FoxBackTop=Pl,w.FoxBadge=oa,w.FoxBarrage=pa,w.FoxButton=Me,w.FoxCalendar=En,w.FoxCalendarItem=jo,w.FoxCard=Sa,w.FoxCascader=An,w.FoxCascaderItem=Ro,w.FoxCategory=Na,w.FoxCategoryPane=Ba,w.FoxCell=ml,w.FoxCellGroup=pl,w.FoxCheckbox=Mn,w.FoxCheckboxGroup=zn,w.FoxCheckboxItem=Xo,w.FoxCircleProgress=Ql,w.FoxCol=yl,w.FoxCollapse=aa,w.FoxCollapseItem=ra,w.FoxComment=Aa,w.FoxContent=So,w.FoxCountDown=na,w.FoxCountUp=ta,w.FoxDateItem=Ko,w.FoxDatePicker=$n,w.FoxDialog=Ot,w.FoxDivider=bl,w.FoxDomainProvider=ul,w.FoxDrag=Rl,w.FoxEcard=Ca,w.FoxElevator=Lt,w.FoxEllipsis=ia,w.FoxEmpty=Zl,w.FoxFixedNav=Nl,w.FoxFloatingButton=il,w.FoxFooterBar=bo,w.FoxGrid=Sl,w.FoxGridItem=Cl,w.FoxGroup=No,w.FoxHeaderBar=ko,w.FoxHintText=ot,w.FoxImage=hl,w.FoxImagePreview=Hn,w.FoxIndicator=El,w.FoxInfiniteLoading=Rn,w.FoxInputItem=Eo,w.FoxInputNumber=it,w.FoxItem=Ne,w.FoxLayout=gl,w.FoxLinkItem=Zo,w.FoxList=Xl,w.FoxMapping=dl,w.FoxMenu=Bl,w.FoxMenuItem=Al,w.FoxMessageBox=st,w.FoxMoneyItem=Do,w.FoxNavbar=wl,w.FoxNoticeBar=Gl,w.FoxNotify=Kl,w.FoxNumberKeyboard=xl,w.FoxOverLay=at,w.FoxPage=go,w.FoxPagination=$l,w.FoxPicker=ht,w.FoxPickerItem=xo,w.FoxPopover=Xt,w.FoxPopup=ce,w.FoxPrice=Ze,w.FoxProgress=Rt,w.FoxPullRefresh=Fl,w.FoxRadio=Dn,w.FoxRadioGroup=In,w.FoxRadioItem=Wo,w.FoxRange=Pt,w.FoxRate=kt,w.FoxRateItem=_o,w.FoxRollingProvider=fl,w.FoxRow=kl,w.FoxRowItem=To,w.FoxSearchBar=Fn,w.FoxShortPassword=Ml,w.FoxSideNavBar=Dl,w.FoxSideNavBarItem=Il,w.FoxSignature=ha,w.FoxSkeleton=la,w.FoxSku=ba,w.FoxSlotItem=$o,w.FoxStep=_l,w.FoxSteps=Jl,w.FoxStepsBar=sl,w.FoxSticky=Dt,w.FoxSubSideNavBar=ql,w.FoxSwipe=Ft,w.FoxSwiper=Nt,w.FoxSwiperItem=Bt,w.FoxSwitch=Ln,w.FoxSwitchItem=Go,w.FoxTabPane=qt,w.FoxTabbar=Vl,w.FoxTabbarItem=Tl,w.FoxTable=sa,w.FoxTabs=It,w.FoxTabsBar=nl,w.FoxTabsContainer=ol,w.FoxTabsPane=ll,w.FoxTag=Yt,w.FoxText=cl,w.FoxTextarea=Nn,w.FoxTextareaItem=qo,w.FoxTimeDetail=ka,w.FoxTimePannel=ya,w.FoxTimeSelect=ga,w.FoxToast=Ct,w.FoxTour=fa,w.FoxTrendArrow=ua,w.FoxUploader=zl,w.FoxVideo=wt,w.FoxWaterMark=da,w.Grid=Sl,w.GridItem=Cl,w.Group=No,w.HeaderBar=ko,w.HintText=ot,w.Image=hl,w.ImagePreview=Hn,w.Indicator=El,w.InfiniteLoading=Rn,w.InputItem=Eo,w.InputNumber=it,w.Item=Ne,w.Layout=gl,w.LinkItem=Zo,w.List=Xl,w.Mapping=dl,w.Menu=Bl,w.MenuItem=Al,w.MessageBox=st,w.MoneyItem=Do,w.Navbar=wl,w.NoticeBar=Gl,w.Notify=Kl,w.NumberKeyboard=xl,w.OverLay=at,w.Page=go,w.Pagination=$l,w.Picker=ht,w.PickerItem=xo,w.Popover=Xt,w.Popup=ce,w.Price=Ze,w.PriorityPolicy=mn,w.Progress=Rt,w.PullRefresh=Fl,w.Radio=Dn,w.RadioGroup=In,w.RadioItem=Wo,w.Range=Pt,w.Rate=kt,w.RateItem=_o,w.RollingProvider=fl,w.Row=kl,w.RowItem=To,w.SearchBar=Fn,w.ShortPassword=Ml,w.SideNavBar=Dl,w.SideNavBarItem=Il,w.Signature=ha,w.Skeleton=la,w.Sku=ba,w.SlotItem=$o,w.Step=_l,w.Steps=Jl,w.StepsBar=sl,w.Sticky=Dt,w.SubSideNavBar=ql,w.Swipe=Ft,w.Swiper=Nt,w.SwiperItem=Bt,w.Switch=Ln,w.SwitchItem=Go,w.TabPane=qt,w.Tabbar=Vl,w.TabbarItem=Tl,w.Table=sa,w.Tabs=It,w.TabsBar=nl,w.TabsContainer=ol,w.TabsPane=ll,w.Tag=Yt,w.Text=cl,w.Textarea=Nn,w.TextareaItem=qo,w.TimeDetail=ka,w.TimePannel=ya,w.TimeSelect=ga,w.Toast=Ct,w.Tour=fa,w.TrendArrow=ua,w.UniqueID=Ao,w.Uploader=zl,w.ValidateSchema=_a,w.ValidateSchemaKey=Ke,w.Video=wt,w.WaterMark=da,w.cancelRaf=Va,w.clamp=ve,w.clearNonNumber=lo,w.clone=no,w.compareTo=_n,w.createBroadcast=nn,w.createValidateSchema=ln,w.debounce=dt,w.debounceRef=Ys,w.decimalLength=ja,w.default=g2,w.defineBroadcast=Rs,w.defineConfigDomain=tr,w.defineDataItem=or,w.defineDomain=fo,w.defineItem=Be,w.definePageState=lr,w.deleteGlobalValidator=Ks,w.disabledProperty=Ve,w.divide=Jn,w.excludeProps=ao,w.extend=_e,w.floatData=Ya,w.getGlobalValidateCheckEvents=Ga,w.getGlobalValidateResetEvents=Ja,w.getPageContentAreaHeight=un,w.getPageContentAreaWidth=fn,w.getPageFooterAreaHeight=dn,w.getPageHeaderAreaHeight=cn,w.getRootDomain=ft,w.getScrollTopRoot=so,w.hasSymbol=Ra,w.includeProps=ke,w.indexOf=Ls,w.installRules=nr,w.integerLength=Ha,w.isArray=Jt,w.isArrayLike=Oa,w.isBrowser=Xe,w.isDate=Oe,w.isESModule=Is,w.isEmptyString=de,w.isEqual=ze,w.isFunction=_t,w.isHidden=tn,w.isInnerPage=Gs,w.isMap=$s,w.isNil=xa,w.isNumberString=Ua,w.isObject=Te,w.isPlainObject=to,w.isPromise=eo,w.isRegExp=Ka,w.isSet=Es,w.isString=La,w.isSubPage=Zs,w.isSymbol=Ds,w.isWindow=Fa,w.lastIndexOf=Ps,w.makeArray=xs,w.merge=va,w.multiply=qa,w.negate=Ma,w.nextTick=Ms,w.numberFormat=Zt,w.objectToString=Pa,w.once=Xs,w.padZero=tt,w.preventDefault=ro,w.property=Ae,w.raf=Fe,w.readonlyProperty=De,w.setGlobalValidateCheckEvents=Us,w.setGlobalValidateHandler=Os,w.setGlobalValidateMessages=js,w.setGlobalValidateResetEvents=Hs,w.setGlobalValidator=vs,w.throttle=an,w.toBoolean=he,w.toNumber=pe,w.toPadding=xe,w.toPx=ie,w.toPxDesc=fe,w.toTypeString=en,w.toValue=qe,w.tryTimes=co,w.typeOf=et,w.unNumberFormat=za,w.updatePageState=mo,w.useBroadcast=Tt,w.useDomain=Ue,w.useExpose=$e,w.useInnerSize=yo,w.usePageState=sn,w.usePosition=pr,w.useRect=Ee,w.useSize=hn,w.useTouch=He,w.valueLength=ge,Object.defineProperties(w,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});