@fox-js/foxui 4.0.1-70 → 4.0.1-72

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,8 +1,8 @@
1
- (function(B,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):(B=typeof globalThis<"u"?globalThis:B||self,t(B.FoxUI={},B.Vue,B.FoxValidator,B.FoxIconsVue,B.FoxI18n))})(this,function(B,t,ot,le,ie){"use strict";/*!
2
- * @fox-js/foxui-base v4.0.0 Sat Nov 30 2024 09:30:04 GMT+0800 (中国标准时间)
3
- */const tn=window,js=typeof window<"u";function Ws(){return typeof tn<"u"?tn.requestAnimationFrame||tn.webkitRequestAnimationFrame||function(e){tn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ka(e){js?cancelAnimationFrame(e):clearTimeout(e)}const Qe=Ws();/*!
1
+ (function(A,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):(A=typeof globalThis<"u"?globalThis:A||self,t(A.FoxUI={},A.Vue,A.FoxValidator,A.FoxIconsVue,A.FoxI18n))})(this,function(A,t,ot,le,ie){"use strict";/*!
2
+ * @fox-js/foxui-base v4.0.0 Thu Dec 12 2024 23:24:29 GMT+0800 (中国标准时间)
3
+ */const tn=window,Ws=typeof window<"u";function Ys(){return typeof tn<"u"?tn.requestAnimationFrame||tn.webkitRequestAnimationFrame||function(e){tn.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Ua(e){Ws?cancelAnimationFrame(e):clearTimeout(e)}const Qe=Ys();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Sat Aug 24 2024 07:04:11 GMT+0800 (中国标准时间)
5
- */function nn(e,n="0"){let a=0,o=-1;e[0]=="-"&&(a++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,o=2,n=n.substring(1),n.length),e=Ae(e),n=Ae(n),[e,n]=so(Ae(e),Ae(n)),a==1&&(o==1?e=ro(e):n=ro(n));let l=Ua(e,n);return a?a==2?"-"+Ae(l):e.length<l.length?Ae(l.substring(1)):"-"+Ae(ro(l)):Ae(l)}function ro(e){let n="",a=e.length,o=e.split(".")[1],l=o?o.length:0;for(let i=0;i<a;i++)e[i]>="0"&&e[i]<="9"?n+=9-parseInt(e[i]):n+=e[i];let r=l>0?"0."+new Array(l).join("0")+"1":"1";return Ua(n,r)}function Ae(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function so(e,n){let a=e.split("."),o=n.split("."),l=a[0].length,r=o[0].length;return l>r?o[0]=new Array(Math.abs(l-r)+1).join("0")+(o[0]?o[0]:""):a[0]=new Array(Math.abs(l-r)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,r=o[1]?o[1].length:0,(l||r)&&(l>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function Ua(e,n){[e,n]=so(e,n);let a="",o=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let r=parseInt(e[l])+parseInt(n[l])+o;a=r%10+a,o=Math.floor(r/10)}return o?o.toString()+a:a}var Ce=(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))(Ce||{});function It(e,n=0,a=Ce.HALF_EVEN){if(a===Ce.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 l=e.split("."),r=l[0],i=l[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)+i,c=It(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,Ha(l[1],r,o,a)?(o?"-":"")+io(r):(o?"-":"")+r;if(l[1]){if(l[1].length<n)return(o?"-":"")+r+"."+l[1]+new Array(n-l[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");i=l[1].substring(0,n);let s=l[1].substring(n);return s&&Ha(s,i,o,a)&&(i=io(i),i.length>n)?(o?"-":"")+io(r,parseInt(i[0]))+"."+i.substring(1):(o?"-":"")+r+"."+i}function Ha(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===Ce.DOWN||!a&&o===Ce.FLOOR||a&&o===Ce.CEILING)return!1;if(o===Ce.UP||a&&o===Ce.FLOOR||!a&&o===Ce.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(o){case Ce.HALF_DOWN:return!1;case Ce.HALF_UP:return!0;case Ce.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function io(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,o="";for(let l=a;l>=0;l--){let r=parseInt(e[l])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function co(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=xt(e),n=xt(n);let o=0,l=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(l=n.length-n.indexOf(".")-1);let r=o+l;if(e=xt(e.replace(".","")),n=xt(n.replace(".","")),e.length<n.length){let d=e;e=n,n=d}if(n=="0")return"0";let i=n.length,s=0,c=[],u=i-1,p="";for(let d=0;d<i;d++)c[d]=e.length-1;for(let d=0;d<2*e.length;d++){let g=0;for(let S=n.length-1;S>=u&&S>=0;S--)c[S]>-1&&c[S]<e.length&&(g+=parseInt(e[c[S]--])*parseInt(n[S]));g+=s,s=Math.floor(g/10),p=g%10+p,u--}return p=xt(Ys(p,r)),a==1&&(p="-"+p),p}function Ys(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function xt(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 uo(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var l=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ae(n.replace(".","")),l>=0){let u=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(u==-1)e=Ae(e+new Array(l+1).join("0"));else if(l>u)e=e.replace(".",""),e=Ae(e+new Array(l-u+1).join("0"));else if(l<u){e=e.replace(".","");let p=e.length-u+l;e=Ae(e.substring(0,p)+"."+e.substring(p))}else l==u&&(e=Ae(e.replace(".","")))}let r=0,i=n.length,s="",c=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(0,i+1):e.substring(0,i);if(e=e.indexOf(".")>-1&&e.indexOf(".")<i?e.substring(i+1):e.substring(i),c.indexOf(".")>-1){let u=c.length-c.indexOf(".")-1;c=c.replace(".",""),i>c.length&&(u+=i-c.length,c=c+new Array(i-c.length+1).join("0")),r=u,s="0."+new Array(u).join("0")}for(a=a+2;r<=a;){let u=0;for(;parseInt(c)>=parseInt(n);)c=nn(c,"-"+n),u++;s+=u,e?(e[0]=="."&&(s+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(s+="."),r++,c=c+"0")}return(o==1?"-":"")+Ae(It(s,a-2))}function fo(e,n){return e=e.toString(),n=n.toString(),n=mo(n),nn(e,n)}function mo(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function ja(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Wa(e),Wa(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=fo(e,co(n,It(uo(e,n),0,Ce.FLOOR)));return a+o}function Wa(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ya(e,n){let a=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),a=!0),[e,n]=so(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]?a?-1:1:a?1:-1;return 0}class ce{value;static RoundingModes=Ce;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,o]=n.split(/[eE]/);a=Ae(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(o=parseInt(o)+a.indexOf("."),a=a.replace(".","")):o=parseInt(o)+a.length,a.length<o?n=l+a+new Array(o-a.length+1).join("0"):a.length>=o&&o>0?n=l+Ae(a.substring(0,o))+(a.length>o?"."+a.substring(o):""):n=l+"0."+new Array(-o+1).join("0")+a}return n}constructor(n="0"){this.value=ce.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,o){if(!(a||o))a=3,o=",";else if(!(a&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ce.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var i="",s=r;s>0;)s<a?(a=s,s=0):s-=a,i=n.substring(s,s+a)+(s<r-a&&s>=0?o:"")+i;return(l?"-":"")+i+n.substring(r)}getPrettyValue(n,a){return ce.getPrettyValue(this.value,n,a)}static round(n,a=0,o=Ce.HALF_EVEN){if(n=ce.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return It(n,a,o)}round(n=0,a=Ce.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ce(It(this.value,n,a))}static floor(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,Ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,Ce.FLOOR)}static ceil(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,Ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,Ce.CEILING)}static add(n,a){return n=ce.validate(n),a=ce.validate(a),nn(n,a)}add(n){return new ce(nn(this.value,n.getValue()))}static subtract(n,a){return n=ce.validate(n),a=ce.validate(a),fo(n,a)}subtract(n){return new ce(fo(this.value,n.getValue()))}static multiply(n,a){return n=ce.validate(n),a=ce.validate(a),co(n,a)}multiply(n){return new ce(co(this.value,n.getValue()))}static divide(n,a,o){return n=ce.validate(n),a=ce.validate(a),uo(n,a,o)}divide(n,a){return new ce(uo(this.value,n.getValue(),a))}static modulus(n,a){return n=ce.validate(n),a=ce.validate(a),ja(n,a)}modulus(n){return new ce(ja(this.value,n.getValue()))}static compareTo(n,a){return n=ce.validate(n),a=ce.validate(a),Ya(n,a)}compareTo(n){return Ya(this.value,n.getValue())}static negate(n){return n=ce.validate(n),mo(n)}negate(){return new ce(mo(this.value))}}function Xa(e,n){return ce.multiply(`${e}`,`${n}`)}function po(e,n,a=8){return ce.divide(`${e}`,`${n}`,a)}function ho(e,n){return e=`${e}`,n=`${n}`,ce.compareTo(e,n)}function Qa(e){return ce.negate(e)}function on(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let i=r.charAt(0);i=="-"?r=r.substring(1):i="";let s=r,c="",u=r.indexOf(".");u!=-1&&(s=r.substring(0,u),c=r.substring(u+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let p;if(o>0){let d="",g=s.split("").reverse();for(let S=0;S<g.length;S++)d+=g[S]+((S+1)%o==0&&S+1!=g.length?l:"");c.length==0?p=`${i}${d.split("").reverse().join("")}`:p=`${i}${d.split("").reverse().join("")}.${c}`}else c.length==0?p=`${i}${s}`:p=`${i}${s}.${c}`;return p}function Ga(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const Ge=typeof window<"u",Ue=Qe;function Za(e){return e==null}const ln=Array.isArray,Xs=e=>rn(e)==="[object Map]",Qs=e=>rn(e)==="[object Set]",He=e=>e instanceof Date,an=e=>typeof e=="function",Ja=e=>typeof e=="string",Gs=e=>typeof e=="symbol",Ie=e=>e!==null&&typeof e=="object",mt=e=>Ie(e)&&an(e.then)&&an(e.catch),_a=Object.prototype.toString,rn=e=>_a.call(e),go=e=>rn(e)==="[object Object]",er=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Zs(e){return e.__esModule||er&&e[Symbol.toStringTag]==="Module"}const Js=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function lt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,o=e.length,l=!1;for(typeof n=="boolean"&&(l=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<o;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let i in r){let s=n[i],c=r[i];if(s!==c)if(l===!0&&c&&typeof c=="object"){let u;Array.isArray(c)?u=s&&Array.isArray(s)?s:[]:u=s&&typeof s=="object"?s:{},n[i]=lt(l,u,c)}else c!==void 0&&(n[i]=c)}}return n}function yo(e,n,a=!1){if(!a)lt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],i=n[l];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!go(i))continue;r=yo(r,i,a),e[l]=r}else{if(typeof i=="function")continue;e[l]=i}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],i=n[l];if(r!==i)if(typeof i=="object"){if(!Array.isArray(i)&&!go(i))continue;r=yo(r,i,a),e[l]=r}else{if(typeof i=="function")continue;e[l]=i}}}return e}const bo=Js?Promise.resolve():null;function _s(e,...n){bo!==null?n&&n.length>0?bo.then(()=>{e(n)}):bo.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function be(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 ei={"[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 at(e){let a=Object.prototype.toString.call(e);return e==null?String(e):ei[a]||"object"}function sn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function tr(e){return e&&typeof e=="object"&&"setInterval"in e}function nr(e){let n=!!e&&"length"in e&&e.length,a=at(e);return a==="function"||tr(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function or(e,n){let a=+n.length,o=0,l=e.length;for(;o<a;o++)e[l++]=n[o];return e.length=l,e}function ti(e,n=[]){let a=n;return e!=null&&(nr(Object(e))?or(a,typeof e=="string"?[e]:e):a.push(e)),a}function Me(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=at(e),o=at(n);if(a!==o)return!1;if(a==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let i=0;i<l.length;i++){let s=l[i],c=e[s],u=n[s];if(!Me(c,u))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],i=n[l];if(!Me(r,i))return!1}return!0}return!1}function lr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function ar(e){return ue(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ue(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function rr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function sr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function ir(e,n,a){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(a,"")}function ko(e,n=!0,a=!0){n?e=ir(e,".",/\./g):e=e.replace(/\./g,""),a?e=ir(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function ni(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Me(e,a))return!0}):n.indexOf(e)}function oi(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Me(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function ke(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Se(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function rt(e,...n){const a=[];n.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const o={};for(const l in e)a.includes(l)||(o[l]=e[l]);return o}const cr=(e,n,a)=>{const o=Object.assign({},e),l=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{l.hasOwnProperty(r)?typeof l[r]=="string"&&(o[r]=n[l[r]]):n[r]&&(o[r]=n[r])}),o):e};function So(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const st=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},je=(e,n,a)=>Math.min(Math.max(e,n),a),we=Symbol.for("BroadcastKey");class Co{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,a,o){this.parent=n,this.proxy=a,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const a=this.children.findIndex(o=>n===o);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,a,...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 l=!1;!n.name||n.name==="*"?l=!0:!n.name||n.name==="+"?(l=!1,n.name="*"):lr(n.name)&&this.name&&n.name.test(this.name)?l=!0:typeof n.name=="function"?l=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(l=!0);const r=[];if(l){const i=this.callbacks.get(a);if(typeof i=="function"){const c=Reflect.apply(i,this.proxy,[...o]);c!=null&&r.push(c)}const s=this.proxy??{};if(typeof s[a]=="function"){const c=Reflect.apply(s[a],s,[...o]);c!=null&&r.push(c)}}return this.children.forEach(i=>{const s=Reflect.apply(i.emit,i,[{...n},a,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,r,[...s])}),r}emitToChildren(n,a,...o){const l=[];return this.children.forEach(r=>{const i=Reflect.apply(r.emit,r,[{...n},a,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,l,[...i])}),l}on(n,a){this.callbacks.set(n,a)}}function cn(e,n,a,o){const l=new Co(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function li(e,n,a){const o=a;if(o[we])return o[we];const l=t.inject(we,null),r=new Co(l,a,e);if(n&&typeof n=="object")for(const i in n)r.on(i,n[i]);return o[we]=r,t.provide(we,r),t.onUnmounted(()=>{r.destroy(),o[we]=void 0}),r}function vt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[we]??t.inject(we,null):t.inject(we,null)}const it=e=>e.default??e;class ai{error(n,a){const o=a,l=a||t.hasInjectionContext()?vt(a):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=n||t.hasInjectionContext()?vt(n):null;o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=n||t.hasInjectionContext()?vt(n):null;o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,o){Array.isArray(n)||(n=[n]);const l=o,r=o||t.hasInjectionContext()?vt(o):null,i=a.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),s=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!i&&s?r?r.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):i&&!s&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let qt=new ai;function ri(e){qt=e}function si(e){qt?Object.assign(qt,e):qt=e}function ii(e,n){it(ot).setValidator(e,n)}function ci(e){it(ot).deleteValidator(e)}let dr=["blur","clear"];function di(e){dr=e}function ur(){return dr}let fr=["focus","change","setValue"];function ui(e){fr=e}function mr(){return fr}function fi(e){it(ot).messages(e)}function Pt(...e){const n=[];return e.forEach(a=>{a.forEach(o=>{const l=n.findIndex(r=>r.type===o.type);l!==-1&&n.splice(l,1),n.push(o)})}),n}function dn(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Le=Symbol("ValidateSchemaKey");class pr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,o){this.parent=n,this.descriptor=a,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(!0),this.scope.run(()=>{t.watchEffect(()=>{const a=dn(Pt(this.attrRules,this.rules)),o=[];for(let r in n){let i=n[r];if(this.hasValidator(r,!0)){if(i===!1)continue;let c={type:r};i!==null&&typeof i=="object"&&Object.assign(c,i),o.push(c);continue}let s=this.getValidator(r);if(s!==null){let c={type:r,validator:s};o.push(c)}}this.attrRules=dn(o);const l=Pt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=qt;return l&&typeof l[n]=="function"?Reflect.apply(l[n],l,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,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,a,o=!1){o?it(ot).setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?it(ot).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return it(ot).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const a=Pt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=dn(n):this.rules=dn([n]);const o=Pt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=Pt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${o}`]:a},r=this.getValue(),i={[`${o}`]:r},s=it(ot),c=new s(l),u=this.proxy??i;return c.validate(i,{context:u}).then(d=>{if(d.pass)this.success();else{let g="error";Array.isArray(d.errors)&&d.errors.length>0&&(g=d.errors[0].message??g,d.errors=[d.errors[0]],d.errors[0].ref=u),this.error(g)}return d}).catch(d=>{const g=d.message??`${d}`;return this.error(g),d})}}return Promise.resolve({pass:!0})}}function un(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(r){return r[l]}}}return new pr(n,a,e)}const fn=Symbol.for("EventEmitterKey");class hr{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,a){let o=this.register.get(n);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===a);l!==-1&&o.splice(l,1)}}on(n,a){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(a)}emit(n,...a){const o=this.register.get(n);o&&o.forEach(l=>{try{Reflect.apply(l,null,[n,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...a])}}function Ze(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function mn(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function mi(e,n){const a=Ze((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function pi(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function wo(e,n,a,o=0,l=!0){let r=n,i=0;if(l){const c=e();if(i++,c||i>a)return}const s=()=>{const c=e();i++,!(c||i>a)&&(r+=o,setTimeout(s,r))};setTimeout(s,r)}const xe=Symbol("DomainKey"),pt=Symbol("DataItemsKey");class pn{_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,a=[]){for(const o in n){const l=n[o];a.length>0&&a.indexOf(l)!==-1||(this._props[o]=l)}}has(n){if(Reflect.has(this._props,n)){const a=this._props[n];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,a){this._props[n]=a}get(n,a){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?a:this.parent.get(n,a)}getForParent(n,a){return this.parent==null?a:this.parent.get(n,a)}getForSelf(n){return this._props[n]}getAll(n){const a=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const l=o._props[n];a.push(l)}o=o._parent}return a}}const hi=new pn;function ht(){return hi}function We(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[xe]??t.inject(xe,null):t.inject(xe,null)}const No=Symbol("OriginalDateKey");function Bo(e,n,a=[],o){const l=t.getCurrentInstance();let r=l?.proxy,i=t.inject(xe,null);i===null&&(i=ht());const s=e||n.prop||n.name;let c=new pn(s);c.parent=i;const u=y=>{r[No]||g(y),c?.set("modelValue",y)},p=()=>c?.getForSelf("modelValue")??null,d=()=>r[No]??null,g=y=>{const k={};lt(!0,k,t.toRaw(y)),r[No]=k};t.isReactive(n)||typeof n=="function"?t.watch(n,y=>{c?.merge(y,a)},{immediate:!0}):c.merge(n,a),n.modelValue&&g(n.modelValue);const S=(y,k)=>{c?.set(y,k)},b=y=>c?.getForSelf(y)??null;if(r[xe]=c,t.provide(xe,c),l!==null){const y=t.inject(we,null),k=cn(r,y,s,o);c.broadcast=k,r[we]=k,t.provide(we,k),r.broadcast=(h,C,...A)=>Reflect.apply(k.emit,k,[h,C,...A]);const f=t.inject(Le,null),m=un(r,f,{componentName:""});c.validateSchema=m,r[Le]=m,t.provide(Le,m),r[pt]=new Map,r.validate=(h=!0)=>{const C=[];let A=null;const w={deep:!1};if(h===!0)A={name:"*"};else if(Array.isArray(h)&&h.length>0){const N=h;A={name:T=>T?N.indexOf(T)!==-1:!1}}else if(h!=null&&typeof h=="object"){const N=h;if(Object.assign(w,N),Array.isArray(N.include)&&N.include.length>0){const T=N.include;A={name:$=>$?T.indexOf($)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const T=N.exclude;A={name:$=>$?T.indexOf($)===-1:!1}}else A={name:"*"}}if(A){const N=k?.emitToChildren(A,"validate",w);N&&Reflect.apply([].push,C,N)}return C.length==1?C[0]:C.length>1?Promise.all(C).then(N=>{let T=[];return N.forEach($=>{$.pass===!1&&Array.isArray($.errors)&&(T=[...T,...$.errors])}),T.length>0?{pass:!1,errors:T}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(h,C=!0,A=!1)=>{if(A===!0){Reflect.ownKeys(h).forEach(N=>{let T=String(N);const $={componentName:"",fieldName:T,pureDataValidate:!0};if(c){const E=br(c,T,$,k,m);r[pt].set(T,E);const D=h[T];D&&E.validateSchema.setRule(D)}});return}if(C){const w=Reflect.ownKeys(h),N={name:T=>w.includes(T)};k?.emitToChildren(N,"setNameValidateRules",h,!1)}},r.clearValidate=(h=!0)=>{let C=null;if(h===!0)C={name:"*"};else if(Array.isArray(h)&&h.length>0){const A=h;C={name:w=>w?A.indexOf(w)!==-1:!1}}else if(h!=null&&typeof h=="object"){const A=h;if(Array.isArray(A.include)&&A.include.length>0){const w=A.include;C={name:N=>N?w.indexOf(N)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const w=A.exclude;C={name:N=>N?w.indexOf(N)===-1:!1}}else C={name:"*"}}C&&k?.emitToChildren(C,"clearValidate",!1)},r.resetFields=h=>{const C=p();if(!C)return;const A={};if(lt(!0,A,d()??{}),Array.isArray(h))h.forEach(w=>{C[w]=A[w]});else if(h&&Array.isArray(h.include))(h.include??[]).forEach(N=>{C[N]=A[N]});else if(h&&Array.isArray(h.exclude)){let w=h.exclude??[];Reflect.ownKeys(A).forEach(N=>{w.includes(N)||(C[N]=A[N])})}else Object.assign(C,A);r.clearValidate(h)},r.setModelValue=(h,C)=>{!C||C===s?u(h):k?.emitToChildren({name:C},"setModelValue",h)},r.getModelValue=()=>p(),r.setDomainProperty=(h,C)=>{S(h,C)},r.getDomainProperty=h=>b(h)}return t.onUnmounted(function(){c?.validateSchema&&(c.validateSchema.destroy(),r[Le]=void 0,t.provide(Le,null)),c?.broadcast&&(c?.broadcast?.destroy(),r[we]=void 0,t.provide(we,null)),c?.destroy(),r[xe]=void 0,t.provide(xe,null),r[pt]&&(r[pt].clear(),r[pt]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,c=null,r=null}),c}function gr(e,n,a=[]){let l=t.getCurrentInstance()?.proxy,r=t.inject(xe,null);r===null&&(r=ht());const i=e||n.prop||n.name;let s=new pn(i);return s.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{s?.merge(c,a)},{immediate:!0}):s.merge(n,a),l[xe]=s,t.provide(xe,s),t.onUnmounted(()=>{s?.destroy(),l[xe]=void 0,t.provide(xe,null),s=null,l=null}),s}function yr(e,n,a){const l=We(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Te(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",i=t.inject(we,null);let s=cn(l,i,r,a);l[we]=s,t.provide(we,s),l.broadcast=(b,y,...k)=>s?Reflect.apply(s.emit,s,[b,y,...k]):null;const c=t.inject(Le,null);e.fieldName=e.fieldName??r;let u=un(l,c,e);l[Le]=u,t.provide(Le,u),yr(l,u,r),l.validate=(b=null)=>{if(!u)return Promise.resolve({pass:!0});const y=[];let k=!1,f=!1;if(Array.isArray(b)&&b.indexOf(r)!==-1)f=!0,k=!0;else if(b&&typeof b=="object"){const m=b,h=m.ignoreDisabled??!0,C=m.ignoreReadonly??!0,A=m.ignoreHidden??!0;h===!0&&e.disabled===!0||C===!0&&e.readonly===!0||A===!0&&sn(l.$el)?f=!1:(Array.isArray(m.include)&&m.include.indexOf(r)!==-1||Array.isArray(m.exclude)&&m.exclude.indexOf(r),f=!0),k=m.deep??!1}else typeof b=="boolean"&&(k=b),f=!0;if(f){const m=u?.validate();y.push(m)}if(k){let m=null;const h={deep:!1};if(b===!0)m={name:"*"};else if(Array.isArray(b)&&b.length>0){const C=b;m={name:A=>A?C.indexOf(A)!==-1:!1}}else if(b!=null&&typeof b=="object"){const C=b;if(Object.assign(h,C),Array.isArray(C.include)&&C.include.length>0){const A=C.include;m={name:w=>w?A.indexOf(w)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const A=C.exclude;m={name:w=>w?A.indexOf(w)===-1:!1}}else m={name:"*"}}if(m&&s){const C=s.emitToChildren(m,"validate",h);Reflect.apply([].push,y,C)}}return y.length==1?y[0]:y.length>1?Promise.all(y).then(m=>{let h=[];return m.forEach(C=>{C.pass===!1&&Array.isArray(C.errors)&&(h=[...h,...C.errors])}),h.length>0?{pass:!1,errors:h}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=b=>u?.setRule(b),l.setNameValidateRules=(b,y=!1)=>{const k=b[r];if(k&&u?.setRule(k),y&&s){const f={name:m=>Reflect.ownKeys(b).includes(m)};s.emitToChildren(f,"setNameValidateRules",b,!1)}},l.clearValidate=(b=null)=>{(!Array.isArray(b)||b.indexOf(n??"")!==-1)&&u?.clear();let y=null;if(b===!0)y={name:"*"};else if(Array.isArray(b)&&b.length>0){const k=b;y={name:f=>f?k.indexOf(f)!==-1:!1}}else if(b!=null&&typeof b=="object"){const k=b;if(Array.isArray(k.include)&&k.include.length>0){const f=k.include;y={name:m=>m?f.indexOf(m)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;y={name:m=>m?f.indexOf(m)===-1:!1}}else y={name:"*"}}y&&s&&s.emitToChildren(y,"clearValidate",!1)};let p=new hr(l);l[fn]=p;const d=Ze((b="validate")=>{u&&(b==="reset"?u.clear():u.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ur()).forEach(b=>{p&&p.on(b,y=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:mr()).forEach(b=>{p&&p.on(b,y=>{d("reset")})}),t.onUnmounted(()=>{s?.destroy(),l[we]=void 0,t.provide(we,null),s=null,u?.destroy(),l[Le]=void 0,t.provide(Le,null),u=null,p?.destroy(),l[fn]=void 0,p=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:s,validateSchema:u,emitEvent:(b,...y)=>{p&&Reflect.apply(p.emit,p,[b,...y])},onEvent:(b,y)=>{p&&Reflect.apply(p.on,p,[y])},offEvent:(b,y)=>{p&&Reflect.apply(p.off,p,[y])}}}function br(e,n,a,o,l){const r={},i=n??"",s={getValue(){const p=e.getForSelf("modelValue");return p?p[i]:null},isExist(){const p=e.getForSelf("modelValue");return p?Reflect.has(p,i):!1}};a.fieldName=i,a.validateHandler={getValue(p){return s.getValue()}};let c=un({},l,a);r.validate=(p=null)=>{if(!s.isExist())return console.warn(`validate error: field [${i}] not exist`),Promise.resolve({pass:!0});const d=[];let g=!1,S=!1;if(Array.isArray(p)&&p.indexOf(i)!==-1)S=!0,g=!0;else if(p&&typeof p=="object"){const b=p;Array.isArray(b.include)&&b.include.indexOf(i)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(i),S=!0,g=b.deep??!1}else typeof p=="boolean"&&(g=p),S=!0;if(S&&c){const b=c.validate();d.push(b)}if(g){let b=null;const y={deep:!1};if(p===!0)b={name:"*"};else if(Array.isArray(p)&&p.length>0){const k=p;b={name:f=>f?k.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const k=p;if(Object.assign(y,k),Array.isArray(k.include)&&k.include.length>0){const f=k.include;b={name:m=>m?f.indexOf(m)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const f=k.exclude;b={name:m=>m?f.indexOf(m)===-1:!1}}else b={name:"*"}}if(b&&u){const k=u.emitToChildren(b,"validate",y);Reflect.apply([].push,d,k)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(b=>{let y=[];return b.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(y=[...y,...k.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>c?.setRule(p),r.setNameValidateRules=p=>{const d=p[i];d&&c?.setRule(d)};let u=cn(null,o,i,r);return t.onUnmounted(()=>{c=null,u=null}),{broadcast:u,validateSchema:c}}function gt(){let n=t.getCurrentInstance()?.proxy,a=new hr(n);return n[fn]=a,t.onUnmounted(()=>{a?.destroy(),n[fn]=void 0,a=null,n=null}),{emitEvent:(o,...l)=>{a&&Reflect.apply(a.emit,a,[o,...l])},onEvent:(o,l)=>{a&&Reflect.apply(a.on,a,[l])},offEvent:(o,l)=>{a&&Reflect.apply(a.off,a,[l])}}}const ge=e=>e?`${fe(e)}px`:"";function fe(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),r=1;if(Ge){const{fontSize:i}=window.getComputedStyle(document.documentElement,null),s=i.indexOf("px");s>0&&(r=Number(i.substring(0,s)))}return l*=r,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))*n;const o=Number(e);return isNaN(o)?0:o}const Je="PageStateKey";function Oe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=fe(e.top)),e.left!==null&&e.left!==void 0&&(n.left=fe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=fe(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=fe(e.right))),n}function Ao(e,n,a={},o=!0,l=-1,r=-1,i=0,s=0){if(e.headerHeight=fe(a.headerHeight??n.headerHeight??-1),e.headerPadding=Oe(a.headerPadding??n.headerPadding),e.footerHeight=fe(a.footerHeight??n.footerHeight??-1),e.footerPadding=Oe(a.footerPadding??n.footerPadding),e.contentPadding=Oe(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=fe(c,r):e.height=fe(r)-fe(i,r)-fe(s,r),e.width=fe(a.width??n.width??0,l)}}function kr(e,n={}){const a={top:null,left:null,bottom:null,right:null},o={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});l&&(o.safeAreaTop=fe(l.top),o.safeAreaBottom=fe(l.bottom),o.safeAreaLeft=fe(l.left),o.safeAreaRight=fe(l.right));const r=e.get("pageLayout");if(!r)return null;const i=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,u=e.get("footerBarHeight")??0;Ao(o,r,n,!0,i,s,c,u);const p=t.reactive(o),d=e.getForParent(Je);d&&(o.height=bn(e,d),o.width=kn(e,d),t.watch([()=>bn(e,d),()=>kn(e,d)],([S,b])=>{p.height=S,p.width=b}));const g=!d;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([S,b,y=-1,k=-1,f=0,m=0])=>{Ao(p,b,n,g,y,k,f,m)}),e.set(Je,p),p}function hn(e){return e.get(Je)}function gn(e,n){if(n=n??e.get(Je),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function yn(e,n){if(n=n??e.get(Je),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function bn(e,n){if(n=n??e.get(Je),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=gn(e,n),o=yn(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function kn(e,n){return n=n??e.get(Je),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function gi(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function yi(e){return!!e.getForParent(Je)}var Sn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Sn||{});function Cn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ve(e,n,a=1,o){const l=We();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let s=r.length-1;s>=0;s--){const c=r[s];if(Cn(c,o))return c}const i=e.value;return Cn(i,o)?i:null}):t.computed(()=>{const r=e.value;if(Cn(r,o))return r;const i=l.getAll(n);for(let s=0;s<i.length;s++){const c=i[s];if(Cn(c,o))return c}return null})}function Ee(e){return Ve(e,"readonly",1)}function De(e){return Ve(e,"disabled",1)}function Pe(e,n="modelValue",a=null,o){const l=t.toRef(e,n);let r=l.value;typeof a=="function"&&(r=a(l.value));const i=t.ref(r);return t.watch(l,s=>{if(typeof a=="function"){const c=a(s);c!==i.value&&(i.value=c,o&&o("setValue",c))}else s!==i.value&&(i.value=s,o&&o("setValue",s))}),i}const Sr=new Map,wn=new Map;let To=null;function bi(e){To=e}function Cr(e,n,a){if(a){let o=wn.get(a);o||(o=new Map,wn.set(a,o)),o.set(e,n)}else Sr.set(e,n)}function _e(e,n,a){!a&&To&&(a=To(e)??void 0);let o=null;if(a){let l=wn.get(a);l&&(o=l.get(n))}return o||(o=Sr.get(n)),o}function ki(e,n){for(let a in e){const o=e[a];Cr(a,o,n)}}function Si(e){wn.delete(e)}function Ci(){return{top:0,left:0,bottom:0,right:0}}function wi(){if(Ge){const e=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:n,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{headerHeight:-1,footerHeight:-1}}}function Ni(e,n){if(n.componentPrefix){const a=e.indexOf("-");return`${n.componentPrefix}${e.slice(a)}`}return e}class Bi{packages;_version;get version(){return this._version}constructor(n,a){this.packages=n,this._version=a}install(n,a){a?.install!==!1&&this.packages.forEach(r=>{if(r.install)n.use(r);else if(r.name){const i=Ni(r.name,a);n.component(i,r)}});const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=ht();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=mn(()=>{const s={...a},c=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight;s.width=c,s.height=u,this.initPageLayout(s,l)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)o.indexOf(r)===-1&&l.set(r,a[r])}initPageLayout(n,a){const o=n.headerBarHeight??0,l=n.footerBarHeight??0,r=lt({},Ci(),n.safeAreaInset),i=wi(),s=lt({},i.pageLayout,n.pageLayout);a=a??ht(),a.set("safeAreaInset",r),a.set("headerBarHeight",o),a.set("footerBarHeight",l),a.set("pageLayout",s),a.set("rootWidth",i.rootWidth),a.set("rootHeight",i.rootHeight)}setScopeGetter(n){bi(n)}setAPI(n,a,o){Cr(n,a,o)}getAPI(n,a,o){return _e(n,a,o)}batchSetAPI(n,a){ki(n,a)}clearScopeAPI(n){Si(n)}getRootDomain(){return ht()}}function _(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=o=>{o.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}const Ai=(e,n)=>{let a=document.body;const o=e.teleport||"body";o!="body"&&(Ja(o)?a=document.querySelector(o):a=e.teleport);const l=document.createElement("view"),r=n.name?n.name+"-":"",i=e.id||new Date().getTime();l.id=r+i;let s={};an(n.wrapper)?s=n.wrapper(a,l):s=n.wrapper;const c=t.createApp(s,e),u=n.components;return u&&u.forEach(p=>{c.use(p)}),a.appendChild(l),{instance:c.mount(l),unmount:()=>{c.unmount(),a.removeChild(l)}}},wr=(e,n)=>e?t.h(e,n):"";function ve(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const he={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},ye={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Nr={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}},Br={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!1},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},Ar=[];for(const e in Br)Ar.push(e);const Ti=Symbol.for("InnerPageScopeKey"),$i={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}},Vi=(e,n)=>({inheritAttrs:!0,props:{...he,...Nr,...$i},setup(a,{slots:o}){const l=Bo(a.name,a),r=t.inject(Ti,!1);if(l){const p=kr(l,a);ve({getPageContentHeight:()=>bn(l,p),getPageContentWidth:()=>kn(l,p),getPageHeaderHeight:()=>gn(l,p),getPageFooterHeight:()=>yn(l,p)}),p&&r&&(p.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),c=t.getCurrentInstance(),u=(p,d=!1)=>{const g=c?.proxy;g&&typeof g.setNameValidateRules=="function"&&g.setNameValidateRules(p,!0,d)};return t.watch([()=>a.rules,()=>a.pureDataRules],([p,d],[g,S])=>{if(p&&g){const b=t.toRaw(g),y=t.toRaw(p),k=y?Reflect.ownKeys(y):[];(b?Reflect.ownKeys(b):[]).forEach(m=>{k.includes(m)||(y[m]=[])}),u(y)}if(d&&S){const b=t.toRaw(S),y=t.toRaw(d),k=y?Reflect.ownKeys(y):[];(b?Reflect.ownKeys(b):[]).forEach(m=>{k.includes(m)||(y[m]=[])}),u(y,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const p=t.toRaw(a.rules);u(p)}if(a.pureDataRules){const p=t.toRaw(a.pureDataRules);u(p,!0)}}),()=>{const p={class:i.value,style:s.value};return t.h("div",p,[o?.default?.()])}}}),{componentName:Ei,create:Di,scope:m2}=_("page"),$o=Di(Vi(Ei));function Vo(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Nn(e){const n=t.unref(e),a=window.getComputedStyle(n,null),o=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),i=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-i}}const Ii=Symbol.for("InnerPageScopeKey"),Tr={headerbar:{},radio:{},checkbox:{}};function xi(e){Object.assign(Tr,e)}function Bn(){return Tr}const vi=(e,n,a,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},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(l,r){const i=We(),s=i?hn(i):null,c=t.inject(Ii,!1),u=Bn(),p=e,d=t.computed(()=>{const P={[p]:!0,[`${p}--border`]:l.border,[`${p}--fixed`]:l.fixed};return c||(P[`${p}--safe-area-inset-top`]=l.safeAreaInsetTop),P}),g=t.computed(()=>({[`${p}__inner`]:!0,[`${p}__inner--${l.align}`]:!0})),S=l.height!==null&&l.height!==void 0?fe(l.height):null,b=t.computed(()=>{const P={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(i&&s){const K=Oe(l.padding??s.headerPadding);return Object.assign(P,K),S&&(s.headerHeight=S),s.headerHeight>0&&(P.height=s.headerHeight),P.safeAreaTop=s.safeAreaTop===-1?0:s.safeAreaTop,P.safeAreaTop>0&&(P.top=P.safeAreaTop+(K.top??0),P.height&&P.height>0&&(P.height=P.height+P.safeAreaTop)),P}if(S&&(P.height=S),l.padding){const K=Oe(l.padding);Object.assign(P,K)}return P}),y=t.ref(null),k=()=>{if(s&&y.value&&!sn(y.value)){if(!o){const P=Vo(y.value);s.headerAllHeight=P.height}return s.headerMounted=!0,!0}return!1};let f=null;t.onMounted(()=>{s&&(wo(k,50,5,50,!0),window.ResizeObserver&&y.value&&(f=new window.ResizeObserver(()=>{k()}),f.observe(y.value)))}),t.onUnmounted(()=>{s&&(s.headerMounted=!1,f&&(f.disconnect(),f=null))});const m=t.computed(()=>{const P={};return b.value.height!==null&&b.value.height!==void 0&&(P.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(P.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(P.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(P.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(P.paddingBottom=`${b.value.bottom}px`),P}),h=t.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function C(){r.emit("back")}function A(){r.emit("click-title")}function w(){r.emit("click-right")}function N(){r.emit("click-right-text")}const T=()=>{if(!l.leftShow)return null;const P=[];if(r.slots.left)P.push(r.slots.left());else{if(r.slots.leftIcon){const K=t.h("view",{class:"left-icon",onClick:C},[r.slots.leftIcon()]);P.push(K)}else{const K=l.leftIcon??u.headerbar.Left??a,V=t.h("view",{class:"left-icon",onClick:C},[t.h(K)]);P.push(V)}if(l.leftText){const K=t.h("view",{class:"left-text",onClick:C},[l.leftText]);P.push(K)}}return P.length===0?null:t.h("view",{class:"fox-header-bar__left"},P)},$=()=>{if(!l.rightShow)return null;const P=[];if(r.slots.right)P.push(r.slots.right());else{if(l.rightText){const K=t.h("view",{class:"right-text",onClick:N},[l.rightText]);P.push(K)}if(r.slots.rightIcon){const K=t.h("view",{class:"right-icon",onClick:w},[r.slots.rightIcon()]);P.push(K)}else if(l.rightIcon){const K=t.h("view",{class:"right-icon",onClick:w},[t.h(l.rightIcon)]);P.push(K)}}return P.length===0?null:t.h("view",{class:"fox-header-bar__right"},P)},E=()=>{if(!l.titleShow)return null;const P=[],K=r.slots.default?r.slots.default():null;if(K)P.push(K);else{if(l.title){const V=t.h("view",{class:"title-text"},[l.title]);P.push(V)}if(r.slots.titleIcon){const V=t.h("view",{class:"title-icon",onClick:A},[r.slots.titleIcon()]);P.push(V)}else if(l.titleIcon){const V=t.h("view",{class:"title-icon",onClick:A},[t.h(l.titleIcon)]);P.push(V)}}return P.length===0?null:t.h("view",{class:"fox-header-bar__title"},P)},D=()=>{const P=[],K=r.slots.bottom?r.slots.bottom():null;return K&&P.push(K),P.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},P)};return()=>{if(!h.value)return null;const P=[];if(r.slots.all)P.push(r.slots.all());else{const V=[],I=T();I&&V.push(I);const L=E();L&&V.push(L);const x=$();if(x&&V.push(x),V.length>0){const j=t.h("view",{class:g.value},V);P.push(j)}const W=D();W&&P.push(W)}if(P.length===0)return null;const K={class:d.value,style:m.value,ref:y};return t.h("view",K,P)}}}),{componentName:qi,create:Pi,scope:Mi}=_("header-bar"),Eo=Pi(vi(qi,Mi,le.Left,!1)),Li=Symbol.for("InnerPageScopeKey");function zi(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,l){const r=We(),i=r?hn(r):null,s=t.inject(Li,!1),c=e,u=t.computed(()=>{const k={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return s||(k[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),k}),p=o.height!==null&&o.height!==void 0?fe(o.height):null,d=t.computed(()=>{const k={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const f=Oe(o.padding??i.footerPadding);return Object.assign(k,f),p&&(i.footerHeight=p),i.footerHeight>0&&(k.height=i.footerHeight),k.safeAreaBottom=i.safeAreaBottom===-1?0:i.safeAreaBottom,k.safeAreaBottom>0&&(k.bottom=k.safeAreaBottom+(f.bottom??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaBottom)),k}if(p&&(k.height=p),o.padding){const f=Oe(o.padding);Object.assign(k,f)}return k}),g=t.ref(null),S=()=>{if(i&&g.value&&!sn(g.value)){if(!a){const k=Vo(g.value);i.footerAllHeight=k.height}return i.footerMounted=!0,!0}return!1};let b=null;t.onMounted(()=>{i&&(wo(S,50,5,50,!0),window.ResizeObserver&&(b=new window.ResizeObserver(()=>{S()}),b.observe(g.value)))}),t.onUnmounted(()=>{i&&(i.footerMounted=!1,b&&(b.disconnect(),b=null))});const y=t.computed(()=>{const k={};return d.value.height!==null&&d.value.height!==void 0&&(k.height=ge(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(k.paddingTop=ge(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(k.paddingLeft=ge(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(k.paddingRight=ge(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(k.paddingBottom=ge(d.value.bottom)),k});return()=>{const k=l.slots.default?l.slots.default():[],f={ref:g,class:u.value,style:y.value};return t.h("view",f,k)}}}}const{componentName:Oi,create:Fi,scope:Ri}=_("footer-bar"),Do=Fi(zi(Oi,Ri,!1));function Ki(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=We(),l=t.computed(()=>({[e]:!0})),r=o?hn(o):null,i=t.computed(()=>{const u={};if(o&&r){if(a.padding){const f=Oe(a.padding);Object.assign(r.contentPadding,f)}const p=gn(o,r),d=yn(o,r);let g="";r.contentHeight?g=`${r.contentHeight}`:g=`${r.height}px`,console.debug("[content]page height:",g),console.debug("[content]header height:",p),console.debug("[content]footer height:",d),console.debug("[content]padding:",r.contentPadding),u.height=g;let S=(r&&r.contentPadding&&r.contentPadding.top)??-1;(S>=0||p>0)&&(S=S<0?0:S,u.paddingTop=`${p+S}px`);let b=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(b>=0||d>0)&&(b=b<0?0:b,u.paddingBottom=`${d+b}px`);const y=(r&&r.contentPadding&&r.contentPadding.left)??-1;y>=0&&(u.paddingLeft=`${y}px`);const k=(r&&r.contentPadding&&r.contentPadding.right)??-1;return k>=0&&(u.paddingRight=`${k}px`),u}if(a.padding){const p=Oe(a.padding);p.left&&(u.paddingLeft=`${p.left}px`),p.top&&(u.paddingTop=`${p.top}px`),p.right&&(u.paddingRight=`${p.right}px`),p.bottom&&(u.paddingBottom=`${p.bottom}px`)}return u}),s=t.ref(null),c=Ze(()=>{if(r&&s.value){const u=Nn(s.value);r.contentInnerHeight=u.height,r.contentInnerWidth=u.width}},0);return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>i.value,()=>l.value],([])=>{c()}),{contentRef:s,classes:l,styles:i}}}}const{componentName:Ui,create:Hi,scope:p2}=_("content"),ji=Hi(Ki(Ui));function Wi(e,n,a,o,l,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 oe=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},Io=oe(ji,[["render",Wi]]),yt="GroupStateKey",$r=Symbol.for("GroupScopeKey");function An(){return t.inject($r,!1)}function Tn(e=!0){t.provide($r,e)}function Yi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Za(l)||(e[o]=l)})}function Xi(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Yi(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(yt,r),r}function xo(e,n,a=-1,o=-1,l=!1,r,i,s){const c=e.get(yt);if(!c)return;const u=e.get("groupLayout")??{};a===-1&&(a=u.column??1),o===-1&&(o=u.gutter??0),r||(r=u.minItemWidth??-1),i||(i=u.maxItemWidth??-1);const p=fe(r),d=fe(i);s||(s=u.type??"grid");const g=()=>{const S=n===""||n===-1,b=fe(n);let y=pe(a);const k=fe(o);if(!S){let h=(b-(y-1)*k)/y;for(;d!==-1&&h>d;)y++,h=(b-(y-1)*k)/y;for(;p!==-1&&y>1&&h<p;)y--,h=(b-(y-1)*k)/y}let f=!1;const m=c.layout;m.value.width=n,m.value.column!==y&&(m.value.column=y,f=!0),m.value.gutter!==k&&(m.value.gutter=k,f=!0),m.value.type!==s&&(m.value.type=s,f=!0),f&&t.triggerRef(m)};if(l)g();else{const S=++c.passport;setTimeout(()=>{S===c.passport&&g()},50)}}function $n(e,n=!1){let a;return n?a=e.getForParent(yt):a=e.get(yt),a.layout}function Vn(e,n=!1){let a;return n?a=e.getForParent(yt):a=e.get(yt),a.order}function Vr(e,n=1){if(n==="stretch")return-1;const a=pe(n);return a===-1?100:100*a/e}function En(e,n,a=1,o=0,l){const r={};let i=0;l?i=fe(l):i=Vr(n.column,a),i>0&&(r.width=`${i}%`);const s=Vr(n.column,o);s>0&&(r["margin-left"]=`${s}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function Dn(e,n,a=1,o=0){if(a==="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 l=pe(a);if(l===-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(l>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 i=(e.index+r)%n.column,s=i+l;return s>n.column?(i=0,s=i+l,e.index=e.index+(n.column-i)+l):e.index=e.index+r+l,r>0?{"grid-column":`${i+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const Er=Symbol("RollingStateKey");function Qi(e){t.provide(Er,e)}function Gi(){return t.inject(Er,null)}function vo(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function Zi(e){let n=vo(e);if(n<=0){const a=e.cloneNode(!0),o=e.offsetWidth;a.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=vo(a),console.info("2.---------- get expand height",n),document.body.removeChild(a)}return n}function Ji(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const _i={...he,...Nr,...Br};function ec(e,n,a){return{props:_i,emits:["update:collapse","header-click"],setup(o,l){const r=Bo(o.prop??o.name,o,Ar),i=Xi(r,{type:o.type}),s=An();Tn(!0);const c=o.rollingDisplay?Gi():null,u=t.ref(null),p=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),d=t.computed(()=>s&&r?$n(r,!0).value:null),g=t.getCurrentInstance(),S=(R,X=!1)=>{const Q=g?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(R,!0,X)};t.watch([()=>o.rules,()=>o.pureDataRules],([R,X],[Q,U])=>{if(R&&Q){const J=t.toRaw(Q),te=t.toRaw(R),ae=te?Reflect.ownKeys(te):[];(J?Reflect.ownKeys(J):[]).forEach(de=>{ae.includes(de)||(te[de]=[])}),S(te)}if(X&&U){const J=t.toRaw(U),te=t.toRaw(X),ae=te?Reflect.ownKeys(te):[];(J?Reflect.ownKeys(J):[]).forEach(de=>{ae.includes(de)||(te[de]=[])}),S(te,!0)}},{deep:!0});const b=e,y=t.computed(()=>{const R={};if(R.height=I.value,o.width)o.width!=="auto"&&(R.width=ge(o.width));else{const X=s?Vn(r,!0):null;if(d.value&&X){if(d.value.type==="grid"){const Q=Dn(X,d.value,o.span,o.offset);Object.assign(R,Q)}else if(d.value.type==="flow"){const Q=En(X,d.value,o.span,o.offset,o.width);Object.assign(R,Q)}}}return R}),k=t.computed(()=>{const R=i.layout.value.type;return R==="grid"||R==="flow"?{[`${b}--${R}`]:!0,[`${b}--${R}-justify-${o.justify}`]:!0,[`${b}--${R}-align-${o.align}`]:!0,[`${b}--gutter`]:!0}:{[`${b}--${R}`]:!0,[`${b}--gutter`]:!0}}),f=t.computed(()=>{if(i.layout.value.type==="grid"){let X="";if(o.columnWidth)X=`repeat(auto-fill, ${o.columnWidth})`;else{const Q=Ji(T.value,i.layout.value.column,i.layout.value.gutter);X=`repeat(${i.layout.value.column}, ${Q})`}return{"column-gap":`${i.layout.value.gutter}px`,"grid-template-columns":X}}}),m=t.toRef(o,"gutter"),h=t.toRef(o,"column"),C=t.computed(()=>s||p.value?!0:be(o.isWrap)),A=[],w=R=>{A.push(R)},N=()=>{let R=A.length;A.splice(0,R)},T=t.ref(-1),$=R=>{const X=Nn(R).width;X>0&&X!==T.value&&(T.value=X)};xo(r,T.value,h.value,m.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([T,h,m],([R,X,Q])=>{i.order.index=0,xo(r,R,X,Q,!1,o.minItemWidth,o.maxItemWidth,o.type)});const E=t.computed(()=>L.value?o.expandText??"":o.collapseText??""),D=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),P=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),K=t.ref(),V=t.ref(),I=t.computed(()=>x.value||ge(o.height)||""),L=t.ref(!1),x=t.ref(""),W=t.ref(!1);let j=-1;const O=(R,X=!0)=>{const Q=K.value;if(Q&&L.value!==R){if(j=j<=0?Zi(Q):j,W.value=!0,X)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",R||(x.value="",W.value=!1)},R){let U=0;o.collapseHeight?U=o.collapseHeight:V.value&&V.value.classList.contains(`${e}__header`)&&(U=V.value.offsetHeight),x.value=`${j}px`,t.nextTick(()=>{x.value=`${U}px`})}else x.value=`${j}px`;else if(R){let U=0;o.collapseHeight?U=o.collapseHeight:V.value&&V.value.classList.contains(`${e}__header`)&&(U=V.value.offsetHeight),x.value=`${U}px`}else W.value=!1,x.value=`${j}px`;L.value=R,l.emit("update:collapse",R)}};t.watch(()=>o.collapse,R=>{O(R)});const ee=R=>{l.emit("header-click",R)},H=()=>{q()},q=R=>{R=R??!L.value,O(R)};ve({toggleCollapse:q,doLayout:()=>{A[0]&&($(A[0]),xo(r,T.value,h.value,m.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let v=null,Y=!0;const z=R=>{if(o.rules){const X=t.toRaw(o.rules);S(X)}if(o.pureDataRules){const X=t.toRaw(o.pureDataRules);S(X,!0)}if(Ge&&(R&&O(be(o.collapse),!1),o.autoLayout&&Array.isArray(A)&&A.length>0)){const X=A[0];$(X),window.ResizeObserver&&(v=new window.ResizeObserver(()=>{$(X)}),v.observe(X))}},F=()=>{v?.disconnect(),v=null},G=!p.value||c?.acquire();G&&(u.value=p.value?!0:null),t.onMounted(()=>{if(G&&(z(Y),Y=!1),p.value&&c){let R=null,X=c.initialHeight;c.observe(K.value,Q=>{if(Q!==u.value)if(Q)u.value=!0,L.value||(x.value=""),R=setTimeout(()=>{R=null,u.value!==!1&&(z(Y),Y=!1)},100);else{if(R!==null&&clearTimeout(R),u.value=!1,!L.value)if(Y)x.value=c.initialHeight;else{let U=vo(K.value);U<=0?x.value=X:(x.value=`${U}px`,X=x.value)}Y||F()}})}}),t.onUnmounted(()=>{v?.disconnect(),c&&c.unobserve(K.value)});const Z=(R="right")=>{const X=[];if(E.value){const te={class:D.value},ae=t.h("span",te,[E.value]);X.push(ae)}const Q={class:P.value},U=o.collapseIcon??a,J=t.h(U,Q);return X.push(J),X.length>0?t.h("div",{class:{[`${b}__header-collapse`]:!0,[`is-${R}`]:!0},onClick:H},X):null},ne=(R,X,Q,U)=>{const J={...k.value};return X===0&&(J[`${b}__first`]=!0),Q>=U-1&&(J[`${b}__last`]=!0),t.h("div",{ref:w,key:`${X}`,class:J,style:f.value},R)};return()=>{if(p.value&&u.value!==!0){const J=o.tag||"div";return t.h(J,{ref:K,prop:o.name,class:{[`${b}`]:!0,"is-collapse":W.value},style:y.value},[])}i.order.index=0;const R=[];let X=0;if(l.slots.header){const J={key:`${X++}`,ref:V,class:{[`${b}__header`]:!0,[`${b}__first`]:!0},onClick:ee},te=t.h("div",J,[l.slots.header()]);R.push(te)}else{const J=[],te=o.collapsePosition==="left";if(te&&o.showCollapse){const ae=Z("left");ae&&J.push(ae)}if(o.title||l.slots.title){if(o.showMark){const ae={class:{[`${b}__header-mark`]:!0}};o.markColor&&(ae.style={background:o.markColor});const se=t.h("div",ae);J.push(se)}if(l.slots.title){const ae=t.h("div",{class:{[`${b}__header-title`]:!0}},[l.slots.title()]);J.push(ae)}else if(o.title){const ae=t.h("div",{class:{[`${b}__header-title`]:!0}},[o.title]);J.push(ae)}}if(l.slots.toolbar&&J.push(l.slots.toolbar()),!te&&o.showCollapse){const ae=Z("right");ae&&J.push(ae)}if(J.length>0){const ae={key:`${X++}`,ref:V,class:{[`${b}__header`]:!0,[`${b}__first`]:!0},onClick:ee},se=t.h("div",ae,J);R.push(se)}}N();const Q=l.slots.default?l.slots.default():[],U=i.layout.value.type;if(U==="grid"){const J=ne(Q,X++,0,Q.length);R.push(J)}else if(U==="flow"){const J=ne(Q,X++,0,Q.length);R.push(J)}else for(let J=0;J<Q.length;J++){const te=Q[J],ae=ne([te],X++,J,Q.length);R.push(ae)}if(C.value){const J=o.tag||"div";return t.h(J,{ref:K,prop:o.name,class:{[`${b}`]:!0,"is-collapse":W.value},style:y.value},[R])}else return R}}}}const{componentName:tc,create:nc,scope:oc}=_("group"),qo=nc(ec(tc,oc,le.RectUp));function lc(e){return e===window}const ac=/matrix\((.+)\)/,Po=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(lc(n))return{x:0,y:0};let a=0,o=0,l=n;for(;l!==null;)a+=l.offsetLeft,o+=l.offsetTop,l=l.offsetParent;let r=0,i=0,s=0,c=0;for(l=n;l!==document;){i+=l.scrollTop,r+=l.scrollLeft;const{transform:u}=window.getComputedStyle(l);if(u){const p=ac.exec(u);if(p){let g=p[1].split(/\s*,\s*/);g.length==6&&(s+=Number(g[4]),c+=Number(g[5]))}}l=l.parentNode}return a-=r,o-=i,a+=s,o+=c,{x:a,y:o}};class rc{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const a=this.watchedListeners.indexOf(n);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class sc{monitorRegister=new WeakMap;watch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new rc,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(a),o=o.parentNode}}unwatch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}}const Mt=new sc,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:ic,create:cc}=_("price"),dc=cc({props:{...Dr},setup(e){const n=t.computed(()=>({[ic]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ke(e.price)==0?"":on(e.price,e.decimalLength,!0,pe(e.digits),e.separator)),l=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(0,s)}),r=t.computed(()=>{let i=o.value;if(i.length==0)return"";let s=i.indexOf(".");return i.substring(s+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),uc=["innerHTML"],fc=["innerHTML"];function mc(e,n,a,o,l,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,uc)):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,fc)):t.createCommentVNode("",!0)],2)}const et=oe(dc,[["render",mc]]),{componentName:Mo,create:pc}=_("hint-text"),hc=pc({components:{Price:et},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,n){const a=t.ref({top:null,right:null,bottom:null,left:null}),o=t.ref({x:0,y:0}),l=t.ref(0),r=t.ref(0),i=t.ref(e.placement),s=t.ref(!1),c=t.ref(null),u=(D,P,K,V,I,L)=>{const x=document.documentElement.clientWidth||document.body.clientWidth,W=document.documentElement.clientHeight||document.body.clientHeight,j=D.split("-");let O=[];j[0]==="top"?O=["top","bottom","right","left"]:j[0]==="bottom"?O=["bottom","top","right","left"]:j[0]==="left"?O=["left","top","bottom","right"]:j[0]==="right"&&(O=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},H=[];for(let q=0;q<O.length;q++){const M=O[q];if(H[0]=M,j[1]&&(H[1]=j[1]),M==="top"){const v=P.y-L-e.arrowSize-e.offset;if(v>=0){ee.top=v;let Y=0;j[1]==="start"?Y=P.x:j[1]==="end"?Y=P.x+K-I:Y=P.x+K/2-I/2;const z=x-Y-I;z<0?(Y+=z,d.value=-z):d.value=0,ee.left=Y<0?0:Y;break}}else if(M==="bottom"){const v=P.y+V+e.arrowSize+e.offset;if(v+L<=W){ee.top=v;let Y=0;j[1]==="start"?Y=P.x:j[1]==="end"?Y=P.x+K-I:Y=P.x+K/2-I/2;const z=x-Y-I;z<0?(Y+=z,d.value=-z):d.value=0,ee.left=Y<0?0:Y;break}}else if(M==="left"){const v=P.x-I-e.arrowSize-e.offset;if(v>=0){ee.left=v;let Y=0;j[1]==="start"?Y=P.y:j[1]==="end"?Y=P.y+V-L:Y=P.y+V/2-L/2,ee.top=Y<0?0:Y;break}}else if(M==="right"){const v=P.x+K+e.arrowSize+e.offset;if(v+I<=x){ee.left=v;let Y=0;j[1]==="start"?Y=P.y:j[1]==="end"?Y=P.y+V-L:Y=P.y+V/2-L/2,ee.top=Y<0?0:Y;break}}}return{bestPlacement:H.join("-"),bestInsetRect:ee}},p=(D,P,K=10)=>{if(!Ge||P===!1||!D)return;o.value=Po(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const V=c.value.offsetHeight,I=c.value.offsetWidth,{bestPlacement:L,bestInsetRect:x}=u(e.placement,o.value,l.value,r.value,I,V);i.value=L,a.value=x,s.value=!0},d=t.ref(0),g=Ze(()=>{p(e.message,e.visible)},10),S=t.ref(e.visible);t.watch(()=>e.visible,D=>{S.value=D});const b=t.computed(()=>S.value&&y.value),y=t.ref(!0),k=Ze(D=>{const P=D[0];P&&(y.value=P.isIntersecting)},10),f=new IntersectionObserver(k);t.watch([()=>e.message,()=>e.visible],([D,P])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Mt.watch(e.reference,g),f.observe(e.reference)}),t.onBeforeUnmount(()=>{Mt.unwatch(e.reference,g),f.unobserve(e.reference),f.disconnect()});const m=t.computed(()=>{const D={[Mo]:!0};return i.value.startsWith("top")?D["is-top"]=!0:i.value.startsWith("right")?D["is-right"]=!0:i.value.startsWith("bottom")?D["is-bottom"]=!0:i.value.startsWith("right")&&(D["is-right"]=!0),e.size==="small"?D["is-small"]=!0:e.size==="large"&&(D["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(D[`${e.customClass}`]=!0),D}),h=t.computed(()=>{const D={};a.value.top!==null&&(D.top=`${a.value.top}px`),a.value.right!==null&&(D.right=`${a.value.right}px`),a.value.bottom!==null&&(D.bottom=`${a.value.bottom}px`),a.value.left!==null&&(D.left=`${a.value.left}px`),e.autoFit&&(D["min-width"]=`${l.value}px`);const P=document.documentElement.clientWidth||document.body.clientWidth;return D["max-width"]=`${P}px`,s.value&&(D.opacity="1"),e.transition||(D.transition="none"),e.zIndex&&(D["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(D,e.customStyle),D}),C=t.computed(()=>{const D=[`${Mo}__content`];return e.customTextClass&&D.push(e.customTextClass),D}),A=t.computed(()=>{const D={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(D,e.customTextStyle),D}),w=t.computed(()=>({[`${Mo}__arrow`]:!0})),N=t.computed(()=>{const D={};return e.showArrow?(D.width=`${e.arrowSize}px`,D.height=`${e.arrowSize}px`,i.value==="top"?(D.left="50%",D.bottom=`-${e.arrowSize}px`,D.transform=" translate(-50%, 0%)"):i.value==="top-start"?(D.left=`${e.arrowOffset+d.value}px`,D.bottom=`-${e.arrowSize}px`):i.value==="top-end"?(D.right=`${e.arrowOffset-d.value}px`,D.bottom=`-${e.arrowSize}px`):i.value==="right"?(D.left=`-${e.arrowSize}px`,D.top="50%",D.transform=" translate(0%, -50%)"):i.value==="right-start"?(D.left=`-${e.arrowSize}px`,D.top=`${e.arrowOffset}px`):i.value==="right-end"?(D.left=`-${e.arrowSize}px`,D.bottom=`-${e.arrowOffset}px`):i.value==="bottom"?(D.left="50%",D.top=`-${e.arrowSize}px`,D.transform=" translate(-50%, 0%)"):i.value==="bottom-start"?(D.left=`${e.arrowOffset+d.value}px`,D.top=`-${e.arrowSize}px`):i.value==="bottom-end"?(D.right=`${e.arrowOffset-d.value}px`,D.top=`-${e.arrowSize}px`):i.value==="left"?(D.right=`-${e.arrowSize}px`,D.top="50%",D.transform=" translate(0%, -50%)"):i.value==="left-start"?(D.right=`-${e.arrowSize}px`,D.top=`${e.arrowOffset}px`):i.value==="left-end"&&(D.right=`-${e.arrowSize}px`,D.bottom=`-${e.arrowOffset}px`),D):{display:"none"}}),T=t.computed(()=>b.value&&e.closeOnClick),$=t.computed(()=>{const D={};return e.zIndex&&(D["z-index"]=`${e.zIndex}`),D});return{show:b,tipRef:c,classes:m,styles:h,textClasses:C,textStyles:A,arrowClasses:w,arrowStyles:N,overlayShow:T,overlayStyle:$,onClickOverlay:()=>{S.value=!1,n.emit("update:visible",!1)}}}}),gc=["innerHTML"];function yc(e,n,a,o,l,r){const i=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]=(...s)=>e.onClickOverlay&&e.onClickOverlay(...s))},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(i,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,gc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Ir=oe(hc,[["render",yc]]);class In{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 Lo={},bc=new In,bt=new Map,xn=e=>{if(e){const n=document.getElementById(e);bt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of bt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}bt.clear()}},kc=e=>{e.unmount=xn;const n=document.getElementById(e.id);if(n){const a=bt.get(e.id);a?e={...Lo,...a,...e}:e={...Lo,...e},e.transition=!1;const o=t.createVNode(Ir,e);return t.render(o,n),e.id}},Sc=e=>{e.unmount=xn;let n=e.id??`hinttext_${bc.get()}`;e={...Lo,...e},e.id=n,bt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Ir,e);return t.render(o,a),document.body.appendChild(a),n},Cc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},kt={show(e,n,a={},o=!0){Cc(n);const l=a.id;return l&&bt.has(l)?kc({...a,message:n,reference:e}):(o&&xn(),Sc({...a,message:n,reference:e}))},hide(e){xn(e)},install(e){e.config.globalProperties.$hintText=kt}};function wc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...he,...ye},emits:["appear","disappear"],setup(l,r){const i=l.prop??r.attrs.name;Te({componentName:e,validate:!1},i);const s=We(),c=An();Tn(!1);const u=t.computed(()=>c&&s?$n(s,!1).value:null),p=e,d=t.ref(null),g=t.computed(()=>{const U={[p]:!0,[`${p}__gutter`]:u.value&&u.value.type!=="flow",[`${p}__stretch`]:l.span==="stretch",[`${p}__input--border`]:be(l.hasBorder)};if(U[l.errorMarkClass]=!!L.value,U[l.warnMarkClass]=!!V.value,U[l.infoMarkClass]=!!P.value,typeof d.value=="function"){const J=d.value(i);U[J]=!0}else if(typeof d.value=="string"){const J=d.value;U[J]=!0}return U}),S=t.ref(null),b=t.computed(()=>{const U={};if(l.width)l.width!=="auto"&&(U.width=ge(l.width));else{const J=c&&s?Vn(s,!1):null;if(u.value&&J){if(u.value.type==="grid"){const te=Dn(J,u.value,l.span,l.offset);Object.assign(U,te)}else if(u.value.type==="flow"){const te=En(J,u.value,l.span,l.offset,l.width);Object.assign(U,te)}}}if(typeof S.value=="function"){const J=S.value(i);J&&Object.assign(U,J)}else if(S.value&&typeof S.value=="object"){const J=S.value;Object.assign(U,J)}return U}),y=t.ref(null),k=t.computed({get:()=>y.value??be(l.isRequired),set:U=>{y.value=U}}),f=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",m=Ve(t.toRef(l,"labelPosition"),"labelPosition",Sn.Near),h=t.computed(()=>m&&m.value==="top"?"top":m&&m.value==="right"?"right":"left"),C=t.computed(()=>({[`${p}__main`]:!0,[`${p}__main--${h.value}`]:!0})),A=t.computed(()=>({label:!0,[`label--${h.value}`]:!0})),w=Ve(t.toRef(l,"labelWidth"),"labelWidth",Sn.Near),N=t.computed(()=>w&&w.value?{width:ge(w.value)}:{}),T=t.computed(()=>({"label--string":!0,"label--required":k.value})),$=t.computed(()=>({content:!0,[l.contentClass]:!0})),E=t.computed(()=>({...l.contentStyle})),D=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});ve({setRequired(U){k.value=U},setErrorTip(U){D.errorTip=U},setErrorIcon(U){D.errorIcon=U},setWarnTip(U){D.warnTip=U},setWarnIcon(U){D.warnIcon=U},setInfoTip(U){D.infoTip=U},setInfoIcon(U){D.infoIcon=U},setCustomClassName(U){d.value=U},setCustomStyle(U){S.value=U}});const P=t.computed(()=>l.infoTip||D.infoTip),K=t.computed(()=>l.infoIcon||D.infoIcon),V=t.computed(()=>l.warnTip||D.warnTip),I=t.computed(()=>l.warnIcon||D.warnIcon),L=t.computed(()=>l.errorTip||D.errorTip),x=t.computed(()=>l.errorIcon||D.errorIcon),W=t.computed(()=>L.value?"error":V.value?"warn":P.value?"info":""),j=()=>W.value.length>0,O=t.computed(()=>W.value==="error"?L.value:W.value==="warn"?V.value:W.value==="info"?P.value:""),ee=t.computed(()=>W.value==="error"?x.value:W.value==="warn"?I.value:W.value==="info"?K.value:null),H=t.computed(()=>{const U={[`${p}__tip`]:!0,[`${p}__tip--${W.value}`]:!0,[`${p}--animate`]:!0};return W.value==="error"&&l.errorClass?U[`${l.errorClass}`]=!0:W.value==="warn"&&l.warnClass?U[`${l.warnClass}`]=!0:W.value==="info"&&l.infoClass&&(U[`${l.infoClass}`]=!0),U}),q=t.computed(()=>{const U={};return m&&m.value==="top"||!f()?U["padding-left"]="0px":w&&w.value&&(U["padding-left"]=ge(w.value)),U}),M=t.ref();let v="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([U,J,te,ae])=>{M.value&&(U&&!ue(J)?v?a.show(M.value,J,{...ae,id:v,type:te},!0):v=a.show(M.value,J,{...ae,type:te},!0):a.hide(v))});let Y=null;const z=()=>{Y||!M.value||(Y=new IntersectionObserver(U=>{let J=!1;for(let te of U)if(te.intersectionRatio>0){J=!0,J&&r.emit("appear",te);break}J||r.emit("disappear")}),Y.observe(M.value))},F=()=>{!Y||!M.value||(Y.unobserve(M.value),Y=null)};t.watch(()=>be(l.appearListen),U=>{U?z():F()}),t.onMounted(()=>{be(l.appearListen)&&z()}),t.onUnmounted(F);const G=()=>{if(!f())return null;const U=[],J=r.slots?.label?.()??l.label,te={class:T.value},ae=t.h("div",te,[J]);if(U.push(ae),r.slots.fixedPreTip){const de=r.slots.fixedPreTip();U.push(de)}const se={class:A.value,style:N.value};return t.h("div",se,U)},Z=()=>{const U=[];if(r.slots.prepend){const te=r.slots.prepend();U.push(te)}if(r.slots.default){const te=r.slots.default();U.push(te)}if(r.slots.append){const te=r.slots.append();U.push(te)}if(r.slots.fixedTip){const te={class:[`${p}__fixed-tip`]},ae=t.h("div",te,[r.slots.fixedTip()]);U.push(ae)}const J={ref:M,class:$.value,style:E.value};return t.h("div",J,U)},ne=()=>{const U=ee.value;return U?typeof U=="function"?t.h("div",{class:"fox-item__tip--icon"},[U()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(U)]):null},R=()=>{const U=O.value;return U?typeof U=="function"?t.h("div",{class:"fox-item__tip--text"},[U()]):t.h("div",{class:"fox-item__tip--text"},[U]):null},X=()=>{if(!j())return null;const U=[],J=ne();J&&U.push(J);const te=R();te&&U.push(te);const ae={class:H.value,style:q.value};return t.h("div",ae,U)},Q=()=>r.slots?.hide?.()??null;return()=>{const U=[],J=[],te=G();te&&J.push(te);const ae=Z();ae&&J.push(ae);const se={class:C.value},de=t.h("div",se,J);U.push(de);const $e=X();$e&&U.push($e);const Ne=Q();Ne&&U.push(Ne);const ao={class:g.value,style:b.value,prop:l.prop};return t.h("div",ao,U)}}}}const{componentName:Nc,create:Bc,scope:Ac}=_("item"),Be=Bc(wc(Nc,Ac,kt,!1));function Tc(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(a,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),i=We(),s=An();Tn(!1);const c=t.computed(()=>{const u={};if(a.width)a.width!=="auto"&&(u.width=ge(a.width));else if(s&&i){const p=$n(i,!1),d=Vn(i,!1);if(p.value&&d){if(p.value.type==="grid"){const g=Dn(d,p.value,a.span,a.offset);Object.assign(u,g)}else if(p.value.type==="flow"){const g=En(d,p.value,a.span,a.offset,a.width);Object.assign(u,g)}}}return u});return()=>{const u=[];if(o.slots.default){const d=o.slots.default();if(a.divide)for(let g=0;g<d.length;g++){if(g>0){const S=t.h("div",{class:{[`${l}__divide`]:!0}});u.push(S)}u.push(d[g])}else Reflect.apply([].push,u,d)}const p={class:r.value,style:c.value};return t.h("div",p,u)}}}}const{componentName:$c,create:Vc,scope:h2}=_("row-item"),zo=Vc(Tc($c));function Ec(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(a,o){const l=We(),r=An();Tn(!1);const i=t.computed(()=>r&&l?$n(l,!1).value:null),s=e,c=t.computed(()=>({[s]:!0,[`${s}__gutter`]:i.value&&i.value.type!=="flow",[`${s}__stretch`]:a.span==="stretch"})),u=t.computed(()=>{const p={};if(a.width)a.width!=="auto"&&(p.width=ge(a.width));else{const d=r&&l?Vn(l,!1):null;if(i.value&&d){if(i.value.type==="grid"){const g=Dn(d,i.value,a.span,a.offset);Object.assign(p,g)}else if(i.value.type==="flow"){const g=En(d,i.value,a.span,a.offset,a.width);Object.assign(p,g)}}}return p});return()=>{const p={class:c.value,style:u.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",p,o.slots.default()):t.h("div",p)}}}}const{componentName:Dc,create:Ic,scope:g2}=_("slot-item"),Oo=Ic(Ec(Dc)),xr={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 xc(e,n,a,o){return{props:{...he,...ye,...xr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const i=De(t.computed(()=>l.disabled)),s=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:u}=ie.useFoxI18n(n),p=u(l,["placeholder"]),d=t.ref(!1),g=Pe(l,"modelValue",null,c),S=e,b=t.computed(()=>({[S]:!0,"is-disabled":i.value,"is-readonly":s.value})),y=Ve(t.computed(()=>l.textAlign),"textAlign"),k=t.computed(()=>{const I={};return y.value&&(I["text-align"]=y.value),I}),f=I=>{let x=I.target.value;l.type==="digit"&&(x=ko(x,!0)),l.type==="number"&&(x=ko(x,!1)),l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),g.value=x,c("update:modelValue",x,I),c("change",x,I)};let m=Pe(l,"hintText"),h=t.ref(!1);const C=I=>{let x=I.target.value;d.value=!0,ue(m.value)||(h.value=!0),c("focus",x,I)},A=I=>{setTimeout(()=>{h.value&&(h.value=!1),d.value=!1},0);let x=I.target.value;l.maxLength&&x.length>Number(l.maxLength)&&(x=x.slice(0,Number(l.maxLength))),c("blur",x,I)},w=t.computed(()=>({[`${S}__append`]:!0,"is-disabled":i.value,"is-readonly":s.value})),N=t.computed(()=>{const I={};return r.slots.append&&!T.value&&!K.value&&(I.display="none"),I}),T=t.computed(()=>ke(l.unit)>0),$=t.computed(()=>!K.value),E=t.computed(()=>({[`${S}__unit`]:!0,hidden:!$.value})),D=I=>{g.value="",c("update:modelValue","",I),c("change","",I),c("clear","")},P=t.computed(()=>be(l.clearable)&&!i.value&&!s.value),K=t.computed(()=>{let I=ke(g.value)>0;return be(l.clearable)&&I&&d.value}),V=t.computed(()=>({action:!0,hidden:!K.value}));return()=>{const I={class:b.value,style:k.value,type:l.type,maxlength:l.maxLength,placeholder:p.placeholder.value,disabled:i.value,readonly:s.value,value:g.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:f,onFocus:C,onBlur:A},L=[],x=t.h("input",I);L.push(x);const W=[];if(P.value){const v={class:["action-icon"]},Y=t.h(o,v),z={class:V.value,onClick:D},F=t.h("view",z,{default:()=>[Y]});W.push(F)}if(T.value){const v=t.h("view",{class:E.value},[l.unit]);W.push(v)}const j={class:w.value,style:N.value},O=t.h("view",j,{default:()=>W});L.push(O);const ee={default:()=>L};ee.label=r.slots.default,ee.prepend=r.slots.prepend,ee.append=r.slots.append,ee.fixedPreTip=r.slots.fixedPreTip,ee.fixedTip=r.slots.fixedTip;const q={...rt(l,xr),hintText:m.value,hintVisible:h.value};return l.prop&&(q.prop=`${l.prop}_item`),t.h(a,q,ee)}}}}const{componentName:vc,create:qc,scope:Pc}=_("input-item"),Fo=qc(xc(vc,Pc,Be,le.CircleClose));function vr(e,n=0){let a=`${e}`,o=a.indexOf(".");if(o==-1)return a;let l=o;for(let r=a.length-1;r>=o;r--)if(a.charAt(r)!="0"){l=r;break}return l-o<n?l=o+n+1:l!=o&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function qr(e,n,a=20){if(typeof n=="string"&&(n=pe(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Xa(`${e}`,`${n}`);return vr(o)}else{let o=po(`${e}`,Qa(`${n}`),20);return vr(o)}}function Mc(e,n=-1,a=!1,o=3,l=","){return on(e,n,a,o,l)}function Pr(e,n,a,o,l=!0){if(e==="")return"";if(e=Ga(e),n=pe(n),n==1)return e;if(o)e=qr(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(pe(a)+2,"0"):e=po(e,1,pe(a)));else{let r=-1*n;e=qr(e,r)}return e}function Mr(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=be(n.minInclude),l=ho(e,n.min);if(o&&l==-1||!o&&(l==0||l==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let o=be(n.maxInclude),l=ho(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Lr={clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Lc(e,n,a,o){return{props:{...he,...ye,...Lr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const i=De(t.computed(()=>l.disabled)),s=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),u=t.ref(!1),p=Pe(l,"modelValue",null,c),d=t.ref("");t.watch([()=>p.value,()=>l.rates,()=>l.precision],([j,O,ee])=>{if(ue(j)){d.value="";return}const H=Pr(j,O,ee,!1);d.value!==H&&(d.value=H)},{immediate:!0});const g=t.computed(()=>{let j="";return u.value&&(j=d.value),j}),{t:S}=ie.useFoxI18n(n),b=t.computed(()=>{let j=l.placeholder??"";return!u.value&&!ue(d.value)?j=Mc(d.value,l.decimalLength,l.autoPadding,l.digits,l.separator):j=ue(j)?S(["placeholder"]):j,j}),y=e,k=t.computed(()=>({[y]:!0,[`${y}__placeholder`]:d.value.length>0,"is-disabled":i.value,"is-readonly":s.value})),f=Ve(t.computed(()=>l.textAlign),"textAlign"),m=t.computed(()=>{const j={};return f.value&&(j["text-align"]=f.value),j}),h=t.ref(""),C=t.computed(()=>{let j=h.value;return ue(j)&&(j=l.errorTip??""),j}),A=t.ref(""),w=t.ref(!1),N=j=>{let ee=j.target.value;if(ue(ee)){d.value="",p.value="",c("update:modelValue","",j),c("change","",j),be(l.showTip)&&w.value&&(w.value=!1);return}if(ee.length>=2){let H=ee;if(H.charAt(0)=="-"&&(H=H.substring(1)),H.length>=2&&H.charAt(0)=="0"&&H.charAt(1)!="."){t.triggerRef(d);return}}if(ee!="-"){if(!ar(ee)){t.triggerRef(d);return}if(l.integerLength!=-1&&rr(ee)>Number(l.integerLength)){t.triggerRef(d);return}if(l.decimalLength&&l.decimalLength!=-1&&sr(ee)>Number(l.decimalLength)){t.triggerRef(d);return}let H=Mr(ee,l);if(H.maxValid===!1){h.value=H.message,t.triggerRef(d);return}}else if(l.min!=null&&pe(l.min)>=0){t.triggerRef(d);return}A.value=ee,be(l.showTip)&&(w.value=ee.length>0),d.value=ee,p.value=Pr(ee,l.rates,l.precision,!0),c("update:modelValue",p.value,j),c("change",p.value,j)},T=j=>{if(u.value=!0,be(l.showTip)){let O=d.value;ue(O)&&(O=l.hintText),ue(O)||(A.value=O,w.value=!0)}h.value="",c("focus",p.value,j)},$=j=>{if(setTimeout(()=>{u.value=!1,be(l.showTip)&&w.value===!0&&(w.value=!1)},0),!ue(d.value)){let O=Mr(d.value,l);if(O.minValid===!1||O.maxValid===!1){h.value=O.message;return}}c("update:modelValue",p.value,j),c("blur",p.value,j)},E=t.computed(()=>({[`${y}__append`]:!0,"is-disabled":i.value,"is-readonly":s.value})),D=t.computed(()=>{const j={};return r.slots.append&&!P.value&&!x.value&&(j.display="none"),j}),P=t.computed(()=>ke(l.unit)>0),K=t.computed(()=>!x.value),V=t.computed(()=>({[`${y}__unit`]:!0,hidden:!K.value})),I=j=>{p.value="",c("update:modelValue","",j),c("change","",j),c("clear","")},L=t.computed(()=>be(l.clearable)&&!i.value&&!s.value),x=t.computed(()=>{let j=ke(p.value)>0;return be(l.clearable)&&j&&u.value}),W=t.computed(()=>({action:!0,hidden:!x.value}));return()=>{let j={class:k.value,style:m.value,type:"digit",maxlength:l.maxLength,placeholder:b.value,disabled:i.value,readonly:s.value,value:g.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:N,onFocus:T,onBlur:$},O=[],ee=t.h("input",j);O.push(ee);let H=[];if(L.value){const F={class:["action-icon"]},G=t.h(o,F),Z={class:W.value,onClick:I},ne=t.h("view",Z,{default:()=>[G]});H.push(ne)}if(P.value){const F=t.h("view",{class:V.value},[l.unit]);H.push(F)}const q={class:E.value,style:D.value},M=t.h("view",q,{default:()=>H});O.push(M);const v={default:()=>O};v.label=r.slots.default,v.prepend=r.slots.prepend,v.append=r.slots.append,v.fixedPreTip=r.slots.fixedPreTip,v.fixedTip=r.slots.fixedTip;const z={...rt(l,Lr),errorTip:C.value,hintText:A.value,hintVisible:w.value,hintType:"number"};return l.prop&&(z.prop=`${l.prop}_item`),t.h(a,z,v)}}}}const{componentName:zc,create:Oc,scope:Fc}=_("money-item"),Ro=Oc(Lc(zc,Fc,Be,le.CircleClose)),Ko={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:Rc,create:Kc,scope:Uc}=_("textarea"),Hc=Kc({props:{...Ko},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=ie.useFoxI18n(Uc);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const g=Rc;return{[g]:!0,[`${g}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(s)});const i=t.computed(()=>({textAlign:e.textAlign})),s=()=>{let g=l.value;g.style.height="auto";let S=g.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:b,minHeight:y}=e.autosize;b!==void 0&&(S=Math.min(S,b)),y!==void 0&&(S=Math.max(S,y))}S&&(console.info("----------- height",S),g.style.height=S+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(s)});const c=(g,S)=>{e.maxLength&&g.length>Number(e.maxLength)&&(g=g.substring(0,Number(e.maxLength))),n("update:modelValue",g,S),n("change",g,S)};return{...o,textareaRef:l,classes:r,styles:i,change:g=>{const S=g.target;c(S.value,g)},focus:g=>{e.disabled||e.readonly||n("focus",g)},blur:g=>{if(e.disabled||e.readonly)return;let b=g.target.value;c(b,g),n("blur",{value:b,event:g})}}}}),jc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Wc={key:0,class:"fox-textarea__limit"};function Yc(e,n,a,o,l,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]=(...i)=>e.change&&e.change(...i)),onBlur:n[1]||(n[1]=(...i)=>e.blur&&e.blur(...i)),onFocus:n[2]||(n[2]=(...i)=>e.focus&&e.focus(...i)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,jc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Wc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const vn=oe(Hc,[["render",Yc]]);function Xc(e,n,a,o){return{props:{...he,...ye,...Ko},emits:["update:modelValue","change","blur","focus","setValue"],setup(l,r){const i=De(t.computed(()=>l.disabled)),s=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),u=Pe(l,"modelValue",null,c),p=y=>{u.value=y,c("update:modelValue",y,{}),c("change",y,{})};let d=Pe(l,"hintText"),g=t.ref(!1);const S=y=>{ue(d.value)||(g.value=!0),c("focus",u.value,y)},b=y=>{setTimeout(()=>{g.value&&(g.value=!1)},0),c("blur",u.value,y)};return()=>{const k={...Se(l,Ko),disabled:i.value,readonly:s.value,value:u.value,"onUpdate:modelValue":p,onFocus:S,onBlur:b},f=[],m=t.h(o,k);f.push(m);const h={default:()=>f};h.label=r.slots.default,h.prepend=r.slots.prepend,h.append=r.slots.append,h.fixedPreTip=r.slots.fixedPreTip,h.fixedTip=r.slots.fixedTip;const A={...Se(l,ye,he)};return l.prop&&(A.prop=`${l.prop}_item`),t.h(a,A,h)}}}}const{componentName:Qc,create:Gc,scope:Zc}=_("textarea-item"),Uo=Gc(Xc(Qc,Zc,Be,vn));function Jc(e){return e===window}const qe=e=>{const n=t.unref(e);if(Jc(n)){const a=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},zr=10;function Or(e,n){return e>n&&e>zr?"horizontal":n>e&&n>zr?"vertical":""}function Ho(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function jo(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:i=>{if(i.touches){const u=i.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const c=i;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Or(e.offsetX,e.offsetY))},start:i=>{if(o(),i.touches){const u=i.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const c=i;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function tt(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),i=t.ref(0),s=t.ref(0),c=t.ref(0),u=t.ref(0),p=t.ref(""),d=()=>p.value==="vertical",g=()=>p.value==="horizontal",S=()=>{i.value=0,s.value=0,c.value=0,u.value=0,p.value="",a.value=0};return{move:k=>{if(k.touches){const h=k.touches[0];i.value=h.clientX-e.value,s.value=h.clientY-n.value,l.value=h.clientX,r.value=h.clientY}else{const m=k;i.value=m.clientX-e.value,s.value=m.clientY-n.value,l.value=m.clientX,r.value=m.clientY}c.value=Math.abs(i.value),u.value=Math.abs(s.value),o.value=Date.now()-a.value,p.value||(p.value=Or(c.value,u.value))},start:k=>{if(S(),k.touches){const h=k.touches[0];e.value=h.clientX,n.value=h.clientY}else{const m=k;e.value=m.clientX,n.value=m.clientY}a.value=Date.now()},reset:S,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:i,deltaY:s,offsetX:c,offsetY:u,direction:p,isVertical:d,isHorizontal:g}}let _c=2e3;const Fr=()=>_c++,Fe={visible:{type:Boolean,default:!1},zIndex:{type:[String,Number]},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:[String,Array],default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},ed=(e,n)=>({components:n,props:{...Fe},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:o}){const l=t.reactive({zIndex:0,showSlot:!0,closed:a.closeable});a.visible&&(l.zIndex=Fr());const r=t.computed(()=>{const y=e,k=[y,`${y}--${a.position}`];return a.round&&k.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&k.push(`${y}--${a.position}--safebottom`),typeof a.popClass=="string"?k.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(f=>{k.push(f)}),k}),i=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),s=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{o("update:visible",!0),a.zIndex?l.zIndex=a.zIndex:l.zIndex=Fr(),a.destroyOnClose&&(l.showSlot=!0),o("open")},u=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},p=y=>{o("click-pop",y)},d=y=>{y.stopPropagation(),o("click-close-icon",y),o("update:visible",!1)},g=y=>{o("click-overlay",y),a.closeOnClickOverlay&&o("update:visible",!1)},S=y=>{o("opend",y)},b=y=>{o("closed",y)};return t.watch(()=>a.visible,y=>{a.visible?c():u()}),t.watch(()=>a.closeable,y=>{l.closed=y}),{...t.toRefs(l),popStyle:i,transitionName:s,classes:r,onClick:p,onClickCloseIcon:d,onClickOverlay:g,onOpened:S,onClosed:b}}}),Rr={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},Wo={...Fe,...Rr,modelValue:{type:[String,Number,Boolean,Object,Array],default:()=>""},text:{type:[Array],default:()=>[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:()=>[]},params:{type:Object},valueType:{type:String,required:!1,default:()=>"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String},isAutoBackFill:{type:[Boolean],default:()=>!0},poppable:{type:[Boolean],default:()=>!0}};let Kr=36;function td(){return Kr}function nd(e){Kr=e}function Re(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Yo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function od(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function ct(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ur(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let ld=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=_e(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function ad(){const e=t.getCurrentInstance();return new ld(e.proxy)}function Hr(e,n,a){const o=Re(e,n),l=Re(e,a);if(o!==l)return!1;const r=ct(e,n),i=ct(e,a);return r===i}function rd(e,n,a,o){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const l=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const s=n[i];let u=a[i].findIndex(p=>{if(r==="text")return Re(e,p)===s;if(r==="value"){let d=ct(e,p);return d==null&&(d=Re(e,p)),d===s}else if(r==="item")return Hr(e,p,s)});if(u==-1)break;l.push(u)}else{let i=a[0];for(let s=0;s<n.length;s++){const c=n[s];let u=i.findIndex(d=>{if(r==="text")return Re(e,d)===c;if(r==="value"){let g=ct(e,d);return g==null&&(g=Re(e,d)),g===c}else if(r==="item")return Hr(e,d,c)});if(u==-1)break;l.push(u);const p=Yo(e,i[u]);if(!Array.isArray(p))break;i=p}}return l}function jr(e,n,a,o){if(a.length==0)return null;const l={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let i=0;i<n.length&&i<a.length;i++){const s=a[i];let c=n[i];c<0&&c>=s.length&&(c=0);const u=s[c],p=Re(e,u);if(l.texts.push(p),l.items.push(u),r==="text")l.values.push(p);else if(r==="value"){let d=ct(e,u);d==null&&(d=p),l.values.push(d)}else l.values.push(u)}else{let i=a[0];for(let s=0;s<n.length;s++){let c=n[s];c<0&&c>=i.length&&(c=0);const u=i[c],p=Object.assign({},u);p.children=null;const d=Re(e,u);if(l.texts.push(d),l.items.push(p),r==="text")l.values.push(d);else if(r==="value"){let g=ct(e,u);g==null&&(g=d),l.values.push(g)}else l.values.push(p);if(!Array.isArray(u.children))break;i=u.children}}return l}function Wr(e){return{text:e,value:e}}const sd=15,id=300,cd=200,{create:dd}=_("picker-column");function ud(e){e.stopPropagation()}function fd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),ud(e)}const md=dd({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},...Rr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${pe(e.visibleItemCount)*+e.itemHeight}px`})),l=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)),i=N=>N>=d.currIndex+8||N<=d.currIndex-8,s=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${r.value}px`})),c=N=>`transform: rotate3d(1, 0, 0, ${-d.rotation*N}deg) translate3d(0px, 0px, 104px)`,u=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+r.value}px, 0)`})),p=t.ref(null),d=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),g=N=>Re(e,N),S=N=>ct(e,N),b=tt(),y=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},k=(N,T=!1,$=!1)=>{if(d.currIndex=N,T){const E=()=>{d.moving=!1,n("update:modelValue",N),n("change",N)};$?d.transitionEndTrigger=E:E()}},f=(N,T,$)=>{let E=N+d.startDistance;if(T==="end"){const D=-(e.source.length-1)*e.itemHeight;E<D&&(E=D),E>0&&(E=0);let P=Math.abs(Math.round(-E/e.itemHeight));const K=-P*e.itemHeight,V=`${(P+1)*d.rotation}deg`,I=$?$>0:!1;k(P,!0,I),m(K,T,$,V)}else{let D=(-E/e.itemHeight+1)*d.rotation;const P=(e.source.length+1)*d.rotation,K=0;if(D=Math.min(Math.max(D,K),P),e.threeDimensional&&(D<K||D>P))return;m(E,null,void 0,`${D}deg`)}},m=(N=0,T,$=cd,E)=>{T==="end"?d.scrollTime=$:d.scrollTime=0,d.deg=E,d.scrollDistance=N},h=(N,T)=>(N=Math.abs(N/T)/.003*(N<0?-1:1),N),C=N=>{e.readonly||(d.startDistance=d.scrollDistance,b.start(N),d.transitionEndTrigger=null)},A=N=>{e.readonly||(d.moving=!0,b.move(N),b.isVertical()&&(d.moving=!0,fd(N)),f(b.deltaY.value,"",0))},w=()=>{if(e.readonly)return;const N=b.deltaY.value,T=b.duration.value;if(T<id&&Math.abs(N)>sd){const E=h(N,T);f(E,"end",e.swipeDuration)}else f(N,"end",0)};return t.watch(()=>e.modelValue,N=>{const T=d.currIndex-N;if(T!==0){d.currIndex=N,d.startDistance=d.scrollDistance;const $=T*e.itemHeight;f($,"",0)}}),t.watch(()=>e.source,N=>{if(d.currIndex>=N.length){const E=(N.length-1-d.currIndex)*e.itemHeight;d.startDistance=d.scrollDistance,f(E,"end",0)}}),t.watch(()=>e.visible,N=>{N===!1&&y()}),t.onMounted(()=>{const N=-e.modelValue*e.itemHeight;f(N)}),{classes:a,styles:o,contentClasses:l,itemText:g,itemValue:S,...t.toRefs(d),roller:p,getItemText:Re,onTouchStart:C,onTouchMove:A,onTouchEnd:w,isHidden:i,setRollerStyle:c,touchRollerStyle:s,touchTileStyle:u,stopMomentum:y}}}),pd={key:1,class:"fox-picker__item-tile"};function hd(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTransitionend:n[4]||(n[4]=(...i)=>e.stopMomentum&&e.stopMomentum(...i))},[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,(i,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${s}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(s+1)}]),style:t.normalizeStyle(e.setRollerStyle(s+1))},t.toDisplayString(e.itemText(i)),7)):(t.openBlock(),t.createElementBlock("view",pd,t.toDisplayString(e.itemText(i)),1))],64))),128))],6)],38)}const gd=oe(md,[["render",hd]]);let Lt=0;const Yr="fox-overflow-hidden",Xr=()=>Ge?document.body:{classList:[]},yd=e=>[()=>{if(e())try{!Lt&&Xr().classList.add(Yr),Lt++}catch{}},()=>{if(e()&&Lt)try{Lt--,!Lt&&Xr().classList.remove(Yr)}catch{}}],bd={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:kd,create:Sd}=_("overlay"),Cd=Sd({props:{...bd},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=yd(()=>e.lockScroll),l=t.computed(()=>({[kd]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,s=>{s?a():o()}),{classes:l,style:r,onClick:s=>{n("click",s),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function wd(e,n,a,o,l,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((...i)=>e.onClick&&e.onClick(...i),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const dt=oe(Cd,[["render",wd]]),{componentName:Nd,create:Bd}=_("popup"),Ad=Bd(ed(Nd,{FoxOverLay:dt,Close:le.Close}));function Td(e,n,a,o,l,r){const i=t.resolveComponent("FoxOverLay"),s=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(i,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(s)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const me=oe(Ad,[["render",Td]]),$d=t.defineComponent({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n}){return()=>{if(e.poppable){const a=rt({...e},{poppable:!1});return t.h(me,a,n)}else return n?.default?.()??null}}});function Vd(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",null,[t.renderSlot(e.$slots,"default")])}const Ed=oe($d,[["render",Vd]]),{create:Dd,componentName:Id,scope:xd}=_("picker"),vd=Dd({components:{Column:gd,Wrapper:Ed},props:{...Wo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=ie.useFoxI18n(xd),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),i=t.ref(td());t.watch(()=>e.visible,V=>{V&&i.value<=0&&setTimeout(()=>{if(r.value){const I=qe(r.value);i.value=I.height,nd(i.value)}},50)});const s=t.computed(()=>({[Id]:!0})),c=ad(),u=t.ref("singleColumn");let p=t.ref([]);t.watch([()=>e.source,()=>e.params],async([V,I])=>{if(V){let L=await c.load("picker",V,I);if(L.length>0){let x=L[0];if(Array.isArray(x)){if(typeof x[0]=="string"){let W=L,j=[];W.forEach(O=>{let ee=O.map(H=>Wr(H));j.push(ee)}),p.value=j}else p.value=L;u.value="multipleColumn"}else if(typeof x=="string"){let W=L,j=[],O=W.map(ee=>Wr(ee));j.push(O),p.value=j,u.value="singleColumn"}else{const W=Yo(e,x);Array.isArray(W)?(u.value="cascade",p.value=[L]):(u.value="singleColumn",p.value=[L])}}else p.value=[]}},{immediate:!0});const d=t.ref([]),g=t.ref(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),S=t.ref([]);let b=null;const y=t.ref([]);t.watch([()=>e.modelValue,()=>p.value],([V,I])=>{let L=rd(e,V,I,u.value);if(!Me(L,y.value)){y.value=L,b||(b=L?[...L]:[]);let x=jr(e,L,I,u.value);x&&(d.value=x.texts,n("update:text",d.value))}});let k="";const f=t.ref(e.visible);t.watch(()=>e.visible,V=>{f.value=V,V&&(k="active",y.value.length>0&&(b=[...y.value]))});const m=V=>{let I=Ur(e,V);return Ie(I)?I.defaultIndex??0:0},h=V=>{if(e.readonly===!0)return!0;let I=Ur(e,V);return Ie(I)?I.readonly??!1:!1},C=(V,I)=>{let L=y.value;L[V]=I;for(let W=0;W<V;W++)L[W]==null&&(L[W]=m(W));if(u.value==="cascade")for(let W=V+1;W<w.value.length;W++){let j=m(W);W<L.length?L[W]=j:L.push(j)}else for(let W=L.length;W<w.value.length;W++){let j=m(W);L.push(j)}y.value=L;let x=jr(e,L,p.value,u.value);x&&(d.value=x.texts,g.value=x.values,S.value=x.items)},A=V=>V<y.value.length?y.value[V]:m(V),w=t.computed(()=>{if(p.value.length==0)return[];if(u.value=="singleColumn"||u.value=="multipleColumn")return p.value;let V=[],I=0,L=p.value[0],x=0;for(;;){let W=L.map(ee=>{let H=Object.assign({},ee);return od(e,H,null),H});V.push(W),I>=y.value.length?x=0:x=y.value[I],(x<0||x>=L.length)&&(x=0);let j=L[x];const O=Yo(e,j);if(!Array.isArray(O))break;L=O,I++}return V}),N=t.computed(()=>pe(+e.visibleItemCount-1)/2*i.value),T=(V=!1)=>{if(e.readonly===!0){V&&n("update:visible",!1);return}let I=p.value.length-1;for(;I>=0&&!(y.value[I]===null||y.value[I]===void 0);I--);if(I>=0&&C(I,0),u.value==="singleColumn"){let L=g.value.length>0?g.value[0]:"",x=S.value.length>0?S.value[0]:null;n("update:modelValue",L),n("update:text",d.value),n("change",L,x),V&&(n("confirm",L),n("update:visible",!1))}else n("update:modelValue",g.value),n("update:text",d.value),n("change",g.value,S.value),V&&(n("confirm",g.value),n("update:visible",!1))},$=(V,I)=>{if(k!=="close"&&(C(V,I),e.isAutoBackFill)){const L=!f.value;T(L)}},E=()=>{k==="active"&&(k="confirm",b=Array.isArray(y.value)?[...y.value]:[],T(!0))},D=()=>{u.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),y.value=[],b=null};return{...l,pickerLineRef:r,classes:s,columns:w,dataType:u,show:f,itemHeight:i,top:N,isReadonly:h,getIndex:A,change:$,close:()=>{if(k==="active"){if(k="close",b===null||b.length===0)D();else{if(Array.isArray(b))for(let V=0;V<b.length;V++)C(V,b[V]);T(!1)}n("close"),n("update:visible",!1)}},confirm:E,clear:()=>{if(k==="active"){if(k="clear",e.readonly===!0){n("update:visible",!1);return}D(),b=null,n("clear",""),n("update:visible",!1)}}}}}),qd={key:0,class:"fox-picker__bar"},Pd={class:"fox-picker__title"},Md={class:"fox-picker__bar__action"},Ld={class:"fox-picker__column"};function zd(e,n,a,o,l,r){const i=t.resolveComponent("Column"),s=t.resolveComponent("Wrapper");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(s,{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,poppable:e.poppable},{default:t.withCtx(()=>[e.poppable?(t.openBlock(),t.createElementBlock("view",qd,[t.createElementVNode("view",Pd,t.toDisplayString(e.title),1),t.createElementVNode("view",Md,[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.createCommentVNode("",!0),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Ld,[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(i,{visible:e.show,source:c,readonly:e.isReadonly(u),"column-index":u,modelValue:e.getIndex(u),"onUpdate:modelValue":p=>e.change(u,p),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable","poppable"])],2)}const zt=oe(vd,[["render",zd]]);function Od(e,n,a,o,l,r,i=!0){return{props:{...he,...ye,...Wo,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,c){const u=De(t.computed(()=>s.disabled)),p=Ee(t.computed(()=>s.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},s.prop??c.attrs.name),{toLocaleRefs:g}=ie.useFoxI18n(n),S=g(s,["placeholder"]),b=t.ref(!1),y=Pe(s,"modelValue",null,d),k=t.ref([]),f=t.computed(()=>Array.isArray(k.value)?k.value.join(s.separator):k.value),m="fox-input-item",h=t.computed(()=>({[m]:!0,"is-disabled":u.value,"is-readonly":p.value})),C=Ve(t.computed(()=>s.textAlign),"textAlign"),A=t.computed(()=>{const M={};return C.value&&(M["text-align"]=C.value),M}),w=t.ref(!1),N=()=>{w.value=!0},T=M=>{w.value=M},$=M=>{y.value=M,d("update:modelValue",M)},E=(M,v)=>{d("change",M,v)},D=M=>{let Y=M.target.value;b.value=!0,d("focus",Y,M)},P=M=>{setTimeout(()=>{b.value=!1},0);let Y=M.target.value;s.maxLength&&Y.length>Number(s.maxLength)&&(Y=Y.slice(0,Number(s.maxLength))),d("blur",Y,M)},K=M=>{k.value=M,Array.isArray(M)&&M.length===0?d("update:text",M[0]):d("update:text",M)},V=t.computed(()=>({[`${m}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),I=t.computed(()=>ke(s.unit)>0),L=t.computed(()=>ke(s.unit)>0&&!b.value),x=t.computed(()=>({hidden:!L.value})),W=M=>{y.value="",d("update:modelValue","",M),d("change","",M),d("clear","")},j=t.computed(()=>s.clearable&&!u.value&&!p.value),O=t.computed(()=>ke(y.value)>0&&b.value),ee=M=>{O.value?W(M):N()},H=t.computed(()=>O.value&&j.value?o:l),q=t.computed(()=>({action:!0}));return()=>{const M={class:h.value,style:A.value,type:"text",maxlength:s.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:D,onBlur:P};i&&(M.disabled=!0);const v=[],Y=t.h("input",M);v.push(Y);const z=[],F={class:["action-icon"]},G=t.h(H.value,F),Z={class:q.value,onClick:ee},ne=t.h("view",Z,{default:()=>[G]});if(z.push(ne),I.value){const se=t.h("view",{class:x.value},[s.unit]);z.push(se)}const R={class:V.value},X=t.h("view",R,{default:()=>z});v.push(X);const Q={default:()=>v};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 U=Se(s,Wo);U.disabled=!1,U.readonly=u.value||p.value,U.visible=w.value,U["onUpdate:visible"]=T,U.modelValue=y.value,U["onUpdate:modelValue"]=$,U.text=k.value,U["onUpdate:text"]=K,U.onChange=E;const J=t.h(r,U);Q.hide=()=>[J];const te=Se(s,ye,he);return s.prop&&(te.prop=`${s.prop}_item`),t.h(a,te,Q)}}}}const{componentName:Fd,create:Rd,scope:Kd}=_("picker-item"),Xo=Rd(Od(Fd,Kd,Be,le.CircleClose,le.ArrowRight,zt,!1)),qn=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:i="children"}=a??{},{[l]:s,[r]:c,[i]:u,...p}=o,d={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:s,text:c,children:u,_parent:n};return d.children&&d.children.length&&(d.children=qn(d.children,d,a)),d}),Qr=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&Qr(o.children,n)},Ud={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Hd=(e,n)=>{const a={...Ud,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:i}=a;let s=[],c={};return e.forEach(u=>{u={...u};const{[l]:p,[r]:d}=u,g=c[d]=c[d]||[];!s.length&&d===o&&(s=g),g.push(u),u.children=c[p]||(c[p]=[])}),i&&Object.keys(c).forEach(u=>{c[u].length>1&&c[u].sort((p,d)=>p[i]-d[i])}),c=null,s},jd={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},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},beforeChange:{type:Function}},Gr=(e,n)=>n[e.textKey],Ot=(e,n)=>n[e.valueKey],Wd=(e,n)=>n[e.visibleKey],Zr=(e,n)=>n[e.disabledKey],Yd=(e,n)=>{const a=n[e.doitKey];return be(a)},Xd=(e,n)=>{const a=n[e.numKey];return a==null?null:pe(n[a])},Jr=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function Qd(e,n,a,o=!1){return{props:{...jd},emits:["update:modelValue","change","click"],setup(l,{slots:r,emit:i}){const s=t.computed(()=>{const H={};return H[`${e}`]=!0,H}),c=t.computed(()=>{const H={};return H[`${e}__titles`]=!0,H[`${l.direction}`]=!0,l.align==="left"&&(H.left=!0),l.scroll===!0&&(H.scrollable=!0),l.shape&&(H[`${l.shape}`]=!0),H}),u=t.computed(()=>({})),p=t.computed(()=>{if(!l.gutter)return 0;const H=fe(l.gutter);return H<=0?0:H}),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,H=>{d.value!==H&&(d.value=H,x(!1))});const g=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),S=t.computed(()=>{const H={};return y.value||(H.display="none"),H}),b=t.ref(),y=t.ref(!1),k=()=>{const H=!y.value;f(H)},f=H=>{const q=H;q?(y.value=q,setTimeout(()=>{g.value["fox-tabs-bar__popup--show"]=!0,g.value["fox-tabs-bar__popup--hide"]=!1},0)):(g.value["fox-tabs-bar__popup--show"]=!1,g.value["fox-tabs-bar__popup--hide"]=!0,b.value?b.value.addEventListener("transitionend",()=>{y.value=!1},{once:!0}):setTimeout(()=>{y.value=!1},0))},m=t.ref(),h=t.ref([]),C=(H,q)=>{h.value[q]=H},A=H=>q=>{C(q,H)},w=(H,q)=>{const M=m.value,v=h.value;if(!M||!v||!v[H])return;const Y=v[H];let z=0;l.direction==="vertical"?z=Y.offsetTop-(M.offsetHeight-Y.offsetHeight)/2:z=Y.offsetLeft-(M.offsetWidth-Y.offsetWidth)/2,N(M,z,q?0:.3,l.direction)},N=(H,q,M,v)=>{let Y=0;const z=v==="horizontal"?H.scrollLeft:H.scrollTop,F=M===0?1:Math.round(M*1e3/16);function G(){v==="horizontal"?H.scrollLeft+=(q-z)/F:H.scrollTop+=(q-z)/F,++Y<F&&Ue(G)}G()},T=(H,q)=>{const M=Ot(l,H),v={};return v[`${e}__titles-item`]=!0,v.disabled=Zr(l,H),v.active=M===d.value,l.shape&&(v[`${l.shape}`]=!0),l.ellipsis&&(v.ellipsis=!0),q&&(q.class&&(v[`${q.class}`]=!0),q.disabled===!0&&(v.disabled=q.disabled)),v},$=(H,q)=>{const M={};if(p.value>0){const v=Math.abs(p.value/2);l.direction==="vertical"?(M["margin-top"]=`${v}px`,M["margin-bottom"]=`${v}px`):(M["margin-left"]=`${v}px`,M["margin-right"]=`${v}px`)}return q&&q.style&&Object.assign(M,q.style),M},E=(H,q)=>`${Ot(l,H)??q}`,D=(H,q)=>{const M=Ot(l,H),v={};v[`${e}__popup-item`]=!0,v.disabled=Zr(l,H),v.active=M===d.value,l.shape&&(v[`${l.shape}`]=!0);const Y=Jr(l,H,q);return Y&&Y.disabled===!0&&(v.disabled=Y.disabled),v},P=t.computed(()=>(l.data??[]).filter(q=>Wd(l,q)!==!1)),K=(H,q)=>{const M=Ot(l,H);if(i("click",H,q),d.value==M)return;const v=()=>{d.value=M,l.scroll&&w(q,!1),i("update:modelValue",M),i("change",H,q)};if(typeof l.beforeChange=="function"){const Y=l.beforeChange(H,q);mt(Y)?Y.then(z=>{z!==!1&&v()}).catch(()=>{v()}):Y!==!1&&v()}else v()},V=(H,q)=>function(){K(H,q)},I=(H,q)=>{K(H,q),f(!1)},L=(H,q)=>function(){I(H,q)},x=H=>{if(!Array.isArray(l.data)||!l.scroll)return;const q=l.data.findIndex(M=>Ot(l,M)===d.value);q!==-1&&w(q,H)};t.watch(()=>l.data,()=>{setTimeout(x,0)}),t.onMounted(()=>{x(!0)});const W=(H,q)=>{if(r.item)return r.item({item:H,index:q});const M=Jr(l,H,q),v=[];if(r.text){const G=r.text({item:H,index:q});v.push(G)}else{const G=[];if(M?.doit===!0||Yd(l,H)){const X={class:[`${e}__titles-item-tip`,"doit"]},Q=t.h("view",X);G.push(Q)}const Z=M?.num??Xd(l,H);if(Z){let X="";const Q=pe(Z);Q>=100?X="99+":X=`${Q}`;const U={class:[`${e}__titles-item-tip`,"num"]},J=t.h("view",U,[X]);G.push(J)}const ne={class:`${e}__titles-item-text`};G.push(Gr(l,H));const R=t.h("view",ne,G);v.push(R)}const Y={class:`${e}__titles-item-line`},z=t.h("view",Y);v.push(z);const F={ref:A(q),class:T(H,M),style:$(H,M),key:E(H,q),onClick:V(H,q)};return t.h("view",F,v)},j=()=>{const H=r.default?r.default():[];if(H.length===0)for(let M=0;M<P.value.length;M++){const v=P.value[M],Y=W(v,M);H.push(Y)}const q={ref:m,class:c.value,style:u.value};return t.h("view",q,H)},O=()=>{let H=null;r.navigation?H=r.navigation():H=t.h(a);const q={class:`${e}__navigation`,onClick:k};return t.h("view",q,[H])},ee=()=>{const H=[];for(let M=0;M<P.value.length;M++){const v=P.value[M];let Y=null;r.popupItem?Y=r.popupItem({item:v,index:M}):Y=Gr(l,v);const z={class:D(v,M),key:E(v,M),onClick:L(v,M)},F=t.h("view",z,[Y]);H.push(F)}const q={class:g.value,style:S.value};return t.h("view",q,H)};return()=>{const H=[],q=j();if(H.push(q),l.showQuickNavigation){const v=O();H.push(v);const Y=ee();H.push(Y)}const M={class:s.value};return t.h("view",M,H)}}}}const{create:Gd,componentName:Zd,scope:Jd}=_("tabs-bar"),Pn=Gd(Qd(Zd,Jd,le.MoreH,!1)),_r=Symbol("TabsStatesKey"),_d={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function eu(e,n,a=!1){return{props:{..._d},emits:["update:modelValue","change"],setup(o,{emit:l,slots:r}){const i=t.shallowRef([]),s={current:t.ref(o.modelValue??""),direction:t.ref(o.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:y=>{const k={name:y};s.current.value===y&&(k.loaded=!0),i.value.push(k),t.triggerRef(i)},remove:y=>{const k=i.value.findIndex(f=>f.name===y);k!==-1&&i.value.splice(k,1)},isLoaded:y=>{if(!o.lazy)return!0;const k=i.value.findIndex(f=>f.name===y);return k!==-1?s.current.value?i.value[k].loaded??!1:k===0:!1}};t.provide(_r,s);const c=y=>{const k=i.value.findIndex(f=>f.name===y);k!==-1&&(i.value[k].loaded=!0,t.triggerRef(i))};t.watch([()=>o.modelValue,()=>o.direction],([y,k])=>{s.current.value!==y&&(s.current.value=y??"",c(y??"")),s.direction.value!==k&&(s.direction.value=k)});const u=t.ref(null),p=t.ref(null),d=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0}));let g=!0;const S=t.computed(()=>{const y={},k=i.value.length;if(k<=0)return y;const f=i.value.findIndex(m=>m.name===s.current.value);return s.direction.value==="vertical"?s.tabHeight.value>0&&(y.height=`${k*s.tabHeight.value}px`,f!==-1&&(y.transform=`translate(0, -${f*s.tabHeight.value}px)`)):s.tabWidth.value>0&&(y.width=`${k*s.tabWidth.value}px`,f!==-1&&(y.transform=`translate(-${f*s.tabWidth.value}px, 0)`)),g&&(g=!1,y.transition="transform 0s ease"),y});let b=null;return t.onMounted(()=>{if(!u.value)return;const y=()=>{const k=Nn(u.value);s.tabWidth.value=k.width,s.tabHeight.value=k.height};window.ResizeObserver&&(b=new window.ResizeObserver(y),b.observe(u.value)),y()}),t.onBeforeUnmount(()=>{b&&(b.disconnect(),b=null)}),()=>{const y={class:`${e}__panes`,style:S.value,ref:p},k=t.h("view",y,[r?.default?.()]),f={class:d.value,ref:u};return t.h("view",f,[k])}}}}const{create:tu,componentName:nu,scope:ou}=_("tabs-container"),Mn=tu(eu(nu,ou,!1)),lu={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function au(e,n,a){return{props:{...lu},setup(o,{emit:l,slots:r}){const i=t.inject(_r);t.onMounted(()=>{i.add(o.paneKey)}),t.onBeforeUnmount(()=>{i.remove(o.paneKey)});const s=t.computed(()=>{const u={};return i.direction.value==="vertical"&&i.tabHeight.value>0?u.height=`${i.tabHeight.value}px`:i.tabWidth.value>0&&(u.width=`${i.tabWidth.value}px`),u}),c=t.computed(()=>o.loaded!=null?be(o.loaded):i.isLoaded(o.paneKey));return()=>{let u=[];if(c.value)u=r?.default?.()??[];else if(r.empty)u=r.empty();else{const d={class:`${e}__empty-icon`},g=o.emptyIcon??a,S=t.h(g,d),b={class:`${e}__empty-text`},y=o.emptyText??"Loading",k=t.h("view",b,[y]),f={class:`${e}__empty`},m=t.h("view",f,[S,k]);u.push(m)}const p={class:`${e}`,style:s.value};return t.h("view",p,u)}}}}const{create:ru,componentName:su,scope:iu}=_("tabs-pane"),Ln=ru(au(su,iu,le.Loading));class es{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=qn(n,null,this.config)}updateChildren(n,a){a?a.children=qn(n,a,this.config):this.nodes=qn(n,null,this.config)}getNodeByValue(n){let a;return Qr(this.nodes,o=>{if(o.value===n)return a=o,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===n[r.level]);if(!l)break;a.push(l),o=l.children}return a}isLeaf(n,a){const{leaf:o,children:l}=n,r=Array.isArray(l)&&!!l.length;return o||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:l}=n;return Array.isArray(l)&&!!l.length}}const{create:cu,scope:du}=_("cascader-pane"),uu=cu({components:{Loading:le.Loading,Checklist:le.Checklist,TabsBar:Pn,TabsContainer:Mn,TabsPane:Ln},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(du),o=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),l=t.ref(0),r=t.ref(!1),i=t.ref(e.modelValue),s=t.ref(new es([],{})),c=t.ref([]),u=t.computed(()=>o.value.lazy&&!!o.value.lazyLoad),p=t.computed(()=>r.value==!0||c.value.length==0?[{text:"Loading",value:0}]:c.value.map((m,h)=>({text:m.selectedNode?m.selectedNode.text:a("select"),value:h}))),d=new Map;let g;const S=async()=>{d.clear(),c.value=[],l.value=0,r.value=!1,g=null;let{options:m}=e;o.value.convertConfig&&(m=Hd(m,o.value.convertConfig)),s.value=new es(m,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),u.value&&!s.value.nodes.length&&await y({root:!0,loading:!0,text:"",value:""}),c.value=[{nodes:s.value.nodes,selectedNode:null}],b(!u.value)},b=async(m=!0)=>{const h=i.value;if(h===void 0||!s.value.nodes.length)return;if(h.length===0){l.value=0,c.value=[{nodes:s.value.nodes,selectedNode:null}];return}let C=h;if(u.value&&Array.isArray(h)&&h.length){C=[];let A=s.value.nodes.find(w=>w.value===h[0]);if(A){C=[A.value],r.value=!0;const w=await h.slice(1).reduce(async(N,T)=>{const $=await N;await y($);const E=$?.children?.find(D=>D.value===T);return E&&C.push(T),Promise.resolve(E)},Promise.resolve(A));await y(w),r.value=!1}}C.length&&h===e.modelValue&&s.value.getPathNodesByValue(C).map((w,N)=>{l.value=N,f.handleNode(w,m)})},y=async m=>{if(!m)return;if(!o.value.lazyLoad){m.leaf=!0;return}if(s.value.isLeaf(m,u.value)||s.value.hasChildren(m,u.value))return;m.loading=!0;const h=m.root?null:m;let C=d.get(m);C||(C=new Promise(w=>{o.value.lazyLoad?.(m,w)}),d.set(m,C));const A=await C;Array.isArray(A)&&A.length>0?s.value.updateChildren(A,h):m.leaf=!0,m.loading=!1,d.delete(m)},k=m=>{const h=m.map(C=>C.value);i.value=h,n("change",h,m),n("pathChange",m),n("update:modelValue",h)},f={async handleNode(m,h){const{disabled:C,loading:A}=m;if(!(!h&&C||!c.value[l.value])){if(s.value.isLeaf(m,u.value)){if(m.leaf=!0,c.value[l.value].selectedNode=m,c.value=c.value.slice(0,m.level+1),!h){const w=c.value.map(N=>N.selectedNode);k(w),n("pathChange",w)}return}if(s.value.hasChildren(m,u.value)){const w=m.level+1;if(c.value[l.value].selectedNode=m,c.value=c.value.slice(0,w),c.value.push({nodes:m.children||[],selectedNode:null}),l.value=w,!h){const N=c.value.map(T=>T.selectedNode);n("pathChange",N)}return}g=m,!A&&(await y(m),g===m&&(c.value[l.value].selectedNode=m,f.handleNode(m,h)))}},handleTabChange(m,h){g=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:a("select")},isSelected(m,h){return m.selectedNode&&m.selectedNode.value===h.value}};return t.watch([o,()=>e.options],()=>{S()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,m=>{Me(m,i.value)||(i.value=m,b(!u.value))}),t.watch(()=>e.visible,m=>{m&&Array.isArray(i.value)&&i.value.length>0&&b()}),{panes:c,panesTitles:p,initLoading:r,tabsCursor:l,...f}}}),fu={class:"fox-cascader"},mu={role:"menu",class:"fox-cascader__pane"},pu=["aria-checked","aria-disabled","onClick"],hu={class:"fox-cascader__item__title"};function gu(e,n,a,o,l,r){const i=t.resolveComponent("TabsBar"),s=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),u=t.resolveComponent("TabsPane"),p=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",fu,[t.createVNode(i,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=d=>e.tabsCursor=d),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(p,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=d=>e.tabsCursor=d)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(d,g)=>(t.openBlock(),t.createBlock(u,{"pane-key":g,key:g},{default:t.withCtx(()=>[t.createElementVNode("view",mu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,S=>(t.openBlock(),t.createElementBlock("view",{key:S.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,S),disabled:S.disabled}]),"aria-checked":e.isSelected(d,S),"aria-disabled":S.disabled||void 0,role:"menuitemradio",onClick:b=>e.handleNode(S,!1)},[t.createElementVNode("view",hu,t.toDisplayString(S.text),1),S.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(c,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,pu))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(u,{key:1,"pane-key":0},{default:t.withCtx(()=>n[2]||(n[2]=[t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1)])),_:1}))]),_:1},8,["modelValue"])])}const yu=oe(uu,[["render",gu]]),{create:bu}=_("cascader"),ku=bu({components:{FoxCascaderPane:yu,FoxPopup:me},props:{...Fe,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=t.ref(e.modelValue),o=t.computed({get(){return e.visible},set(i){n("update:visible",i)}}),l=(i,s)=>{a.value=i,o.value=!1,n("change",i,s),n("update:modelValue",i)},r=i=>{n("pathChange",i)};return t.watch(()=>e.modelValue,i=>{i!==a.value&&(a.value=i)}),{onChange:l,onPathChange:r,innerValue:a,innerVisible:o}}}),Su=["innerHTML"];function Cu(e,n,a,o,l,r){const i=t.resolveComponent("FoxCascaderPane"),s=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(s,{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,Su)):t.createCommentVNode("",!0),t.createVNode(i,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(i,{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 zn=oe(ku,[["render",Cu]]);function St(e,n){const a=e.textKey??"text";return n[a]??""}function Ct(e,n){const a=e.valueKey??"value";return n[a]}function ts(e,n){const a=e.childrenKey??"children";return n[a]}function On(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=St(e,l),i=Ct(e,l);a.texts.push(r),a.values.push(i??"")}return a}function ns(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let i=0;i<n.length;i++)if(St(e,n[i])===r){const c=Ct(e,n[i])??"",u={[e.textKey]:r,[e.valueKey]:c};l.push(u);const p=ts(e,n[i]);Array.isArray(p)&&ns(e,p,a,o+1,l);return}}function os(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let i=0;i<n.length;i++)if(Ct(e,n[i])===r){const c=St(e,n[i])??"",u={[e.textKey]:c,[e.valueKey]:r};l.push(u);const p=ts(e,n[i]);Array.isArray(p)&&os(e,p,a,o+1,l);return}}function Qo(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++){const l=St(e,n[o]),r=St(e,a[o]);if(l!==r)return!1;const i=Ct(e,n[o]),s=Ct(e,a[o]);if(i!==s)return!1}return!0}let wu=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){const l="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a,o);const r=_e(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(Ie(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await r(n,a,o))}};function Nu(){const e=t.getCurrentInstance();return new wu(e.proxy)}const ls={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},showAllLevels:{type:[Boolean],default:!0},separator:{type:[String],default:"/"}};function Bu(e,n,a,o,l,r,i=!1){return{props:{...he,...ye,...ls},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(s,c){const u=De(t.computed(()=>s.disabled)),p=Ee(t.computed(()=>s.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},s.prop??c.attrs.name),{toLocaleRefs:g}=ie.useFoxI18n(n),S=g(s,["placeholder"]),b=t.ref(!1),y=Nu(),k=t.ref([]),f=t.ref([]),m=t.computed(()=>{if(Array.isArray(f.value)){if(s.showAllLevels===!1){const F=f.value.length-1;return f.value[F]}return f.value.join(s.separator)}else return f.value}),h=t.ref([]),C=t.ref([]);t.watch([()=>s.modelValue,()=>k.value],async([F,G])=>{if(d("setValue",F),s.lazy===!0){C.value.length==0&&(h.value=Array.isArray(F)?F:[]);return}if(s.valueType==="item"){let Z=F;if(!Qo(s,Z,C.value)){C.value=Z;let ne=On(s,Z);f.value=ne.texts,h.value=ne.values}}else if(s.valueType==="text"){let Z=F,ne=[];if(ns(s,G,Z,0,ne),!Qo(s,ne,C.value)){C.value=ne;let R=On(s,ne);Z.value=R.texts,h.value=R.values}}else{let Z=[];if(os(s,G,F,0,Z),!Qo(s,Z,C.value)){C.value=Z;let ne=On(s,Z);f.value=ne.texts,h.value=ne.values}}}),s.lazy===!0&&(h.value=Array.isArray(s.modelValue)?s.modelValue:[]),t.watch([()=>s.source,()=>s.params],async([F,G])=>{s.lazy||F&&(k.value=await y.load(F,G))},{immediate:!0});const A="fox-input-item",w=t.computed(()=>({[A]:!0,"is-disabled":u.value,"is-readonly":p.value})),N=Ve(t.computed(()=>s.textAlign),"textAlign"),T=t.computed(()=>{const F={};return N.value&&(F["text-align"]=N.value),F}),$=t.ref(!1),E=()=>{u.value===!0||p.value===!0||($.value=!0)},D=F=>{$.value=F},P=(F,G)=>{let Z=G.map(R=>{if(R==null)return R;let X={...R};return Reflect.deleteProperty(X,"text"),X[s.textKey]=R.text??"",Reflect.deleteProperty(X,"value"),X[s.valueKey]=R.value??"",X});C.value=Z;let ne=On(s,Z);f.value=ne.texts,h.value=ne.values,s.valueType==="text"?(d("change",f.value,Z),d("update:modelValue",f.value)):s.valueType==="item"?(d("change",Z,Z),d("update:modelValue",Z)):(d("change",h.value,Z),d("update:modelValue",h.value)),d("update:pathNodes",Z)},K=F=>{let G=F.map(Z=>{if(Z==null)return Z;let ne={...Z};return Reflect.deleteProperty(ne,"text"),ne[s.textKey]=Z.text??"",Reflect.deleteProperty(ne,"value"),ne[s.valueKey]=Z.value??"",ne});d("pathChange",G)},V=F=>{b.value=!0,d("focus",h.value,F)},I=F=>{setTimeout(()=>{b.value=!1},0),d("blur",h.value,F)},L=t.computed(()=>({[`${A}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),x=t.computed(()=>ke(s.unit)>0),W=t.computed(()=>ke(s.unit)>0&&!b.value),j=t.computed(()=>({hidden:!W.value})),O=F=>{C.value=[],f.value=[],h.value=[],d("update:modelValue",[]),d("change",[],F),d("clear",[]),d("update:pathNodes",[])},ee=t.computed(()=>s.clearable&&!u.value&&!p.value),H=t.computed(()=>{let F=h.value&&h.value.length>0;return s.clearable&&F&&b.value}),q=F=>{H.value?O(F):E()},M=t.computed(()=>H.value&&ee.value?o:l),v=t.computed(()=>({action:!0}));let Y=null;const z=()=>typeof Y=="function"?Y:typeof s.lazyLoad=="function"?s.lazyLoad:(Y=async(F,G)=>{const Z=[],ne=[];let R=0;if(!F.root){let Q=F;for(;Q;){const U=St(s,Q),J=Ct(s,Q);ne.splice(0,0,U),Z.splice(0,0,J),Q=Q._parent}R=Z.length}const X=await y.load(s.source,{...F,level:R,pathLabels:ne,pathValues:Z},!0);G(X)},Y);return()=>{const F={class:w.value,style:T.value,type:"text",maxlength:s.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:E,onFocus:V,onBlur:I};i&&(F.disabled=!0);const G=[],Z=t.h("input",F);G.push(Z);const ne=[],R={class:["action-icon"]},X=t.h(M.value,R),Q={class:v.value,onClick:q},U=t.h("view",Q,{default:()=>[X]});if(ne.push(U),x.value){const ft=t.h("view",{class:j.value},[s.unit]);ne.push(ft)}const J={class:L.value},te=t.h("view",J,{default:()=>ne});G.push(te);const ae={default:()=>G};ae.label=c.slots.default,ae.prepend=c.slots.prepend,ae.append=c.slots.append,ae.fixedPreTip=c.slots.fixedPreTip,ae.fixedTip=c.slots.fixedTip;let se={};se.visible=$.value,se["onUpdate:visible"]=D,se.modelValue=h.value,se.onChange=P,se.onPathChange=K,se.title=s.title,se.valueKey=s.valueKey,se.textKey=s.textKey,se.childrenKey=s.childrenKey,se.convertConfig=s.convertConfig,s.lazy?(se.lazy=!0,se.lazyLoad=z()):se.options=k.value;const de=t.h(r,se);ae.hide=()=>[de];const Ne={...rt(s,ls)};return s.prop&&(Ne.prop=`${s.prop}_item`),t.h(a,Ne,ae)}}}}const{componentName:Au,create:Tu,scope:$u}=_("cascader-item"),Go=Tu(Bu(Au,$u,Be,le.CircleClose,le.ArrowRight,zn,!1));var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var as={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",i="second",s="minute",c="hour",u="day",p="week",d="month",g="quarter",S="year",b="date",y="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,m={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},h=function(K,V,I){var L=String(K);return!L||L.length>=V?K:""+Array(V+1-L.length).join(I)+K},C={s:h,z:function(K){var V=-K.utcOffset(),I=Math.abs(V),L=Math.floor(I/60),x=I%60;return(V<=0?"+":"-")+h(L,2,"0")+":"+h(x,2,"0")},m:function K(V,I){if(V.date()<I.date())return-K(I,V);var L=12*(I.year()-V.year())+(I.month()-V.month()),x=V.clone().add(L,d),W=I-x<0,j=V.clone().add(L+(W?-1:1),d);return+(-(L+(I-x)/(W?x-j:j-x))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:d,y:S,w:p,d:u,D:b,h:c,m:s,s:i,ms:r,Q:g}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},A="en",w={};w[A]=m;var N=function(K){return K instanceof D},T=function K(V,I,L){var x;if(!V)return A;if(typeof V=="string"){var W=V.toLowerCase();w[W]&&(x=W),I&&(w[W]=I,x=W);var j=V.split("-");if(!x&&j.length>1)return K(j[0])}else{var O=V.name;w[O]=V,x=O}return!L&&x&&(A=x),x||!L&&A},$=function(K,V){if(N(K))return K.clone();var I=typeof V=="object"?V:{};return I.date=K,I.args=arguments,new D(I)},E=C;E.l=T,E.i=N,E.w=function(K,V){return $(K,{locale:V.$L,utc:V.$u,x:V.$x,$offset:V.$offset})};var D=function(){function K(I){this.$L=T(I.locale,null,!0),this.parse(I)}var V=K.prototype;return V.parse=function(I){this.$d=function(L){var x=L.date,W=L.utc;if(x===null)return new Date(NaN);if(E.u(x))return new Date;if(x instanceof Date)return new Date(x);if(typeof x=="string"&&!/Z$/i.test(x)){var j=x.match(k);if(j){var O=j[2]-1||0,ee=(j[7]||"0").substring(0,3);return W?new Date(Date.UTC(j[1],O,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ee)):new Date(j[1],O,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ee)}}return new Date(x)}(I),this.$x=I.x||{},this.init()},V.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},V.$utils=function(){return E},V.isValid=function(){return this.$d.toString()!==y},V.isSame=function(I,L){var x=$(I);return this.startOf(L)<=x&&x<=this.endOf(L)},V.isAfter=function(I,L){return $(I)<this.startOf(L)},V.isBefore=function(I,L){return this.endOf(L)<$(I)},V.$g=function(I,L,x){return E.u(I)?this[L]:this.set(x,I)},V.unix=function(){return Math.floor(this.valueOf()/1e3)},V.valueOf=function(){return this.$d.getTime()},V.startOf=function(I,L){var x=this,W=!!E.u(L)||L,j=E.p(I),O=function(F,G){var Z=E.w(x.$u?Date.UTC(x.$y,G,F):new Date(x.$y,G,F),x);return W?Z:Z.endOf(u)},ee=function(F,G){return E.w(x.toDate()[F].apply(x.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(G)),x)},H=this.$W,q=this.$M,M=this.$D,v="set"+(this.$u?"UTC":"");switch(j){case S:return W?O(1,0):O(31,11);case d:return W?O(1,q):O(0,q+1);case p:var Y=this.$locale().weekStart||0,z=(H<Y?H+7:H)-Y;return O(W?M-z:M+(6-z),q);case u:case b:return ee(v+"Hours",0);case c:return ee(v+"Minutes",1);case s:return ee(v+"Seconds",2);case i:return ee(v+"Milliseconds",3);default:return this.clone()}},V.endOf=function(I){return this.startOf(I,!1)},V.$set=function(I,L){var x,W=E.p(I),j="set"+(this.$u?"UTC":""),O=(x={},x[u]=j+"Date",x[b]=j+"Date",x[d]=j+"Month",x[S]=j+"FullYear",x[c]=j+"Hours",x[s]=j+"Minutes",x[i]=j+"Seconds",x[r]=j+"Milliseconds",x)[W],ee=W===u?this.$D+(L-this.$W):L;if(W===d||W===S){var H=this.clone().set(b,1);H.$d[O](ee),H.init(),this.$d=H.set(b,Math.min(this.$D,H.daysInMonth())).$d}else O&&this.$d[O](ee);return this.init(),this},V.set=function(I,L){return this.clone().$set(I,L)},V.get=function(I){return this[E.p(I)]()},V.add=function(I,L){var x,W=this;I=Number(I);var j=E.p(L),O=function(q){var M=$(W);return E.w(M.date(M.date()+Math.round(q*I)),W)};if(j===d)return this.set(d,this.$M+I);if(j===S)return this.set(S,this.$y+I);if(j===u)return O(1);if(j===p)return O(7);var ee=(x={},x[s]=o,x[c]=l,x[i]=a,x)[j]||1,H=this.$d.getTime()+I*ee;return E.w(H,this)},V.subtract=function(I,L){return this.add(-1*I,L)},V.format=function(I){var L=this,x=this.$locale();if(!this.isValid())return x.invalidDate||y;var W=I||"YYYY-MM-DDTHH:mm:ssZ",j=E.z(this),O=this.$H,ee=this.$m,H=this.$M,q=x.weekdays,M=x.months,v=function(G,Z,ne,R){return G&&(G[Z]||G(L,W))||ne[Z].slice(0,R)},Y=function(G){return E.s(O%12||12,G,"0")},z=x.meridiem||function(G,Z,ne){var R=G<12?"AM":"PM";return ne?R.toLowerCase():R},F={YY:String(this.$y).slice(-2),YYYY:this.$y,M:H+1,MM:E.s(H+1,2,"0"),MMM:v(x.monthsShort,H,M,3),MMMM:v(M,H),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:v(x.weekdaysMin,this.$W,q,2),ddd:v(x.weekdaysShort,this.$W,q,3),dddd:q[this.$W],H:String(O),HH:E.s(O,2,"0"),h:Y(1),hh:Y(2),a:z(O,ee,!0),A:z(O,ee,!1),m:String(ee),mm:E.s(ee,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:j};return W.replace(f,function(G,Z){return Z||F[G]||j.replace(":","")})},V.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},V.diff=function(I,L,x){var W,j=E.p(L),O=$(I),ee=(O.utcOffset()-this.utcOffset())*o,H=this-O,q=E.m(this,O);return q=(W={},W[S]=q/12,W[d]=q,W[g]=q/3,W[p]=(H-ee)/6048e5,W[u]=(H-ee)/864e5,W[c]=H/l,W[s]=H/o,W[i]=H/a,W)[j]||H,x?q:E.a(q)},V.daysInMonth=function(){return this.endOf(d).$D},V.$locale=function(){return w[this.$L]},V.locale=function(I,L){if(!I)return this.$L;var x=this.clone(),W=T(I,L,!0);return W&&(x.$L=W),x},V.clone=function(){return E.w(this.$d,this)},V.toDate=function(){return new Date(this.valueOf())},V.toJSON=function(){return this.isValid()?this.toISOString():null},V.toISOString=function(){return this.$d.toISOString()},V.toString=function(){return this.$d.toUTCString()},K}(),P=D.prototype;return $.prototype=P,[["$ms",r],["$s",i],["$m",s],["$H",c],["$W",u],["$M",d],["$y",S],["$D",b]].forEach(function(K){P[K[1]]=function(V){return this.$g(V,K[0],K[1])}}),$.extend=function(K,V){return K.$i||(K(V,D,$),K.$i=!0),$},$.locale=T,$.isDayjs=N,$.unix=function(K){return $(1e3*K)},$.en=w[A],$.Ls=w,$.p={},$})})(as);var Vu=as.exports;const Ke=Xe(Vu);var rs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,r=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,s={},c=function(y){return(y=+y)+(y>68?1900:2e3)},u=function(y){return function(k){this[y]=+k}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var f=k.match(/([+-]|\d\d)/g),m=60*f[1]+(+f[2]||0);return m===0?0:f[0]==="+"?-m:m}(y)}],d=function(y){var k=s[y];return k&&(k.indexOf?k:k.s.concat(k.f))},g=function(y,k){var f,m=s.meridiem;if(m){for(var h=1;h<=24;h+=1)if(y.indexOf(m(h,0,k))>-1){f=h>12;break}}else f=y===(k?"pm":"PM");return f},S={A:[i,function(y){this.afternoon=g(y,!1)}],a:[i,function(y){this.afternoon=g(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[l,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:[l,u("day")],Do:[i,function(y){var k=s.ordinal,f=y.match(/\d+/);if(this.day=f[0],k)for(var m=1;m<=31;m+=1)k(m).replace(/\[|\]/g,"")===y&&(this.day=m)}],M:[r,u("month")],MM:[l,u("month")],MMM:[i,function(y){var k=d("months"),f=(d("monthsShort")||k.map(function(m){return m.slice(0,3)})).indexOf(y)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[i,function(y){var k=d("months").indexOf(y)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,u("year")],YY:[l,function(y){this.year=c(y)}],YYYY:[/\d{4}/,u("year")],Z:p,ZZ:p};function b(y){var k,f;k=y,f=s&&s.formats;for(var m=(y=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,E,D){var P=D&&D.toUpperCase();return E||f[D]||a[D]||f[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,V,I){return V||I.slice(1)})})).match(o),h=m.length,C=0;C<h;C+=1){var A=m[C],w=S[A],N=w&&w[0],T=w&&w[1];m[C]=T?{regex:N,parser:T}:A.replace(/^\[|\]$/g,"")}return function($){for(var E={},D=0,P=0;D<h;D+=1){var K=m[D];if(typeof K=="string")P+=K.length;else{var V=K.regex,I=K.parser,L=$.slice(P),x=V.exec(L)[0];I.call(E,x),$=$.replace(x,"")}}return function(W){var j=W.afternoon;if(j!==void 0){var O=W.hours;j?O<12&&(W.hours+=12):O===12&&(W.hours=0),delete W.afternoon}}(E),E}}return function(y,k,f){f.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var m=k.prototype,h=m.parse;m.parse=function(C){var A=C.date,w=C.utc,N=C.args;this.$u=w;var T=N[1];if(typeof T=="string"){var $=N[2]===!0,E=N[3]===!0,D=$||E,P=N[2];E&&(P=N[2]),s=this.$locale(),!$&&P&&(s=f.Ls[P]),this.$d=function(L,x,W){try{if(["x","X"].indexOf(x)>-1)return new Date((x==="X"?1e3:1)*L);var j=b(x)(L),O=j.year,ee=j.month,H=j.day,q=j.hours,M=j.minutes,v=j.seconds,Y=j.milliseconds,z=j.zone,F=new Date,G=H||(O||ee?1:F.getDate()),Z=O||F.getFullYear(),ne=0;O&&!ee||(ne=ee>0?ee-1:F.getMonth());var R=q||0,X=M||0,Q=v||0,U=Y||0;return z?new Date(Date.UTC(Z,ne,G,R,X,Q,U+60*z.offset*1e3)):W?new Date(Date.UTC(Z,ne,G,R,X,Q,U)):new Date(Z,ne,G,R,X,Q,U)}catch{return new Date("")}}(A,T,w),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),D&&A!=this.format(T)&&(this.$d=new Date("")),s={}}else if(T instanceof Array)for(var K=T.length,V=1;V<=K;V+=1){N[1]=T[V-1];var I=f.apply(this,N);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}V===K&&(this.$d=new Date(""))}else h.call(this,C)}}})})(rs);var Eu=rs.exports;const Du=Xe(Eu);var ss={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o,l){var r=o.prototype,i=r.format;l.en.ordinal=function(s){var c=["th","st","nd","rd"],u=s%100;return"["+s+(c[(u-20)%10]||c[u]||c[0])+"]"},r.format=function(s){var c=this,u=this.$locale();if(!this.isValid())return i.bind(this)(s);var p=this.$utils(),d=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(g){switch(g){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 p.s(c.week(),g==="w"?1:2,"0");case"W":case"WW":return p.s(c.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return p.s(String(c.$H===0?24:c.$H),g==="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 g}});return i.bind(this)(d)}}})})(ss);var Iu=ss.exports;const xu=Xe(Iu);var is={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o,l){var r=o.prototype,i=function(d){return d&&(d.indexOf?d:d.s)},s=function(d,g,S,b,y){var k=d.name?d:d.$locale(),f=i(k[g]),m=i(k[S]),h=f||m.map(function(A){return A.slice(0,b)});if(!y)return h;var C=k.weekStart;return h.map(function(A,w){return h[(w+(C||0))%7]})},c=function(){return l.Ls[l.locale()]},u=function(d,g){return d.formats[g]||function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,y,k){return y||k.slice(1)})}(d.formats[g.toUpperCase()])},p=function(){var d=this;return{months:function(g){return g?g.format("MMMM"):s(d,"months")},monthsShort:function(g){return g?g.format("MMM"):s(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):s(d,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):s(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):s(d,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return u(d.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},l.localeData=function(){var d=c();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(g){return u(d,g)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return s(c(),"months")},l.monthsShort=function(){return s(c(),"monthsShort","months",3)},l.weekdays=function(d){return s(c(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return s(c(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return s(c(),"weekdaysMin","weekdays",2,d)}}})})(is);var vu=is.exports;const qu=Xe(vu);var cs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){var a="week",o="year";return function(l,r,i){var s=r.prototype;s.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 p=i(this).startOf(o).add(1,o).date(u),d=i(this).endOf(a);if(p.isBefore(d))return 1}var g=i(this).startOf(o).date(u).startOf(a).subtract(1,"millisecond"),S=this.diff(g,a,!0);return S<0?i(this).startOf("week").week():Math.ceil(S)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(cs);var Pu=cs.exports;const Mu=Xe(Pu);var ds={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),i=this.year();return r===1&&l===11?i+1:l===0&&r>=52?i-1:i}}})})(ds);var Lu=ds.exports;const zu=Xe(Lu);var us={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var i=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?i:this.add(r-i,"day")}}})})(us);var Ou=us.exports;const Fu=Xe(Ou);var fs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(fs);var Ru=fs.exports;const Ku=Xe(Ru);var ms={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(ms);var Uu=ms.exports;const Hu=Xe(Uu);Ke.extend(qu),Ke.extend(xu),Ke.extend(Du),Ke.extend(Mu),Ke.extend(zu),Ke.extend(Fu),Ke.extend(Ku),Ke.extend(Hu);const re={format(e,n){return Ke(e).format(n)},parser(e,n){return Ke(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const l=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},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 a=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,o,l].join(n)},getDay(e,n,a){e=e||0;let o=n??new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),a=a??"YYYY-MM-DD",this.format(o,a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(a>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,a==o},getMonthWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a));let r=l.getDay(),i=l.getDate(),s=6-r;return o!==0&&(r=r==0?7:r,s=7-r),Math.ceil((i+s)/7)},getYearWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),i=Math.round((l.valueOf()-r.valueOf())/864e5);let s=l.getDay(),c=6-s;return o!==0&&(s=s==0?7:s,c=7-s),Math.ceil((i+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let i=l.getDay();if(o===0){const c=r-i*864e5,u=r+(6-i)*864e5,p=this.date2Str(new Date(c)),d=this.date2Str(new Date(u));return[p,d]}else{i=i==0?7:i;const s=24*60*60*1e3,c=r-(i-1)*s,u=r+(7-i)*s,p=this.date2Str(new Date(c)),d=this.date2Str(new Date(u));return[p,d]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=re.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=re.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),i=n.getTime();return r>i?l>=i&&l<=r:l>=r&&l<=i},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),i=n.getTime();return r>i?l>=i&&l<=r:l>=r&&l<=i}},ps=new Date().getFullYear(),Zo={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"},Fn=(e,n,a)=>{let o;if(He(n)?o=n:typeof n=="string"&&ke(n)>0?o=re.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},Jo=(e,n,a)=>{He(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),re.format(new Date(o),a)};let _o={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(ps-10,0,1),validator:He},maxDate:{type:Date,default:()=>new Date(ps+10,11,31),validator:He},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:ju,scope:Wu}=_("date-picker"),Yu=ju({components:{Picker:zt},props:{..._o},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(Wu),o={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds"),today:a("today")},l=t.ref(!1);t.watch(()=>e.visible,m=>{l.value=m});function r(m,h){return new Date(m,h,0).getDate()}const i=(m,h)=>{const C=e[`${m}Date`],A=C.getFullYear();let w=1,N=1,T=0,$=0;m==="max"&&(w=12,N=r(h.getFullYear(),h.getMonth()+1),T=23,$=59);const E=$;return h.getFullYear()===A&&(w=C.getMonth()+1,h.getMonth()+1===w&&(N=C.getDate(),h.getDate()===N&&(T=C.getHours(),h.getHours()===T&&($=C.getMinutes())))),{[`${m}Year`]:A,[`${m}Month`]:w,[`${m}Date`]:N,[`${m}Hour`]:T,[`${m}Minute`]:$,[`${m}Seconds`]:E}},s=t.computed(()=>{if(!g.value)return[];const{maxYear:m,maxDate:h,maxMonth:C,maxHour:A,maxMinute:w,maxSeconds:N}=i("max",g.value),{minYear:T,minDate:$,minMonth:E,minHour:D,minMinute:P,minSeconds:K}=i("min",g.value);let V=[{type:"year",range:[T,m]},{type:"month",range:[E,C]},{type:"day",range:[$,h]},{type:"hour",range:[D,A]},{type:"minute",range:[P,w]},{type:"seconds",range:[K,N]}];switch(e.type){case"date":V=V.slice(0,3);break;case"datetime":V=V.slice(0,5);break;case"time":V=V.slice(3,6);break;case"year-month":V=V.slice(0,2);break;case"month-day":V=V.slice(1,3);break;case"datehour":V=V.slice(0,4);break;case"hour-minute":V=V.slice(3,5);break}return V}),c=(m,h,C,A,w)=>{if(!(h>m))return null;const N=[];for(;m<=h;)e.isShowChinese?C==="day"&&A&&m===w?N.push({text:o.today,value:m}):N.push({text:m+o[C],value:m}):N.push({text:`${m}`,value:m}),C==="minute"?m+=e.minuteStep:m++;return N},u=t.computed(()=>{let m=!1;const h=new Date;let C=h.getDate();g.value&&(m=h.getFullYear()===g.value.getFullYear()&&h.getMonth()===g.value.getMonth());let A=[];return s.value.forEach(w=>{let N=c(w.range[0],w.range[1],w.type,m,C);N&&A.push(N)}),A}),p=(m,h)=>m==="year"?h.getFullYear():m==="month"?h.getMonth()+1:m==="day"?h.getDate():m==="hour"?h.getHours():m==="minute"?h.getMinutes():m==="seconds"?h.getSeconds():0,d=t.ref(),g=t.ref(null);t.watch(()=>e.modelValue,m=>{let h;if(typeof m=="string"?m.length==0?h=new Date:e.valueFormat?h=Fn(e,e.modelValue,e.valueFormat):h=Fn(e,m,Zo[e.type]):He(m)?h=m:h=new Date,!!h&&(!g.value||h.getTime()!==g.value.getTime())){g.value=h;let C=[];s.value.forEach(A=>{let w=p(A.type,h);C.push(w)}),d.value=C}},{immediate:!0});const S=m=>{if(e.type==="date"){const h=m[0],C=m[1]-1,A=Math.min(m[2],r(h,C+1));A!==m[2]&&(m[2]=A),g.value=new Date(h,C,A)}else if(e.type==="datetime"){const h=m[0],C=m[1]-1,A=Math.min(m[2],r(h,C+1)),w=m[3],N=m[4];A!==m[2]&&(m[2]=A),g.value=new Date(h,C,A,w,N)}else if(e.type==="time"){const h=m[0],C=m[1],A=m[2],w=g.value??new Date,N=new Date(w.getFullYear(),w.getMonth(),w.getDate(),h,C,A);g.value=N}else if(e.type==="year-month"){const h=m[0],C=m[1]-1;g.value=new Date(h,C)}else if(e.type==="month-day"){const C=(g.value??new Date).getFullYear(),A=m[0]-1,w=Math.min(m[1],r(C,A+1));w!==m[1]&&(m[1]=w);const N=new Date(C,A,w);g.value=N}else if(e.type==="datehour"){const h=m[0],C=m[1]-1,A=Math.min(m[2],r(h,C+1)),w=m[3];A!==m[2]&&(m[2]=A),g.value=new Date(h,C,A,w)}else if(e.type==="hour-minute"){const h=m[0],C=m[1],A=g.value??new Date,w=new Date(A.getFullYear(),A.getMonth(),A.getDate(),h,C);g.value=w}d.value=m};return{columns:u,dateIndexs:d,show:l,onChange:m=>{S(m)},onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:m=>{S(m),l.value=!1;let h=g.value??new Date;if(e.valueFormat){let C=Jo(e,h,e.valueFormat);n("update:modelValue",C)}else n("update:modelValue",h);n("update:visible",!1),n("confirm",m)},onClear:()=>{n("clear")}}}});function Xu(e,n,a,o,l,r){const i=t.resolveComponent("Picker");return t.openBlock(),t.createBlock(i,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"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","onChange","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Rn=oe(Yu,[["render",Xu]]),Qu={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Gu(e){let n=e.format;if(!n){let a=e.type??"date";n=Zo[a]}return n}function Zu(e,n,a,o,l,r,i=!1){return{props:{...he,...ye,..._o,...Qu},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,c){const u=De(t.computed(()=>s.disabled)),p=Ee(t.computed(()=>s.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},s.prop??c.attrs.name),{toLocaleRefs:g}=ie.useFoxI18n(n),S=g(s,["placeholder"]),b=t.ref(!1),k=Pe(s,"modelValue",q=>q==null?null:typeof q=="string"?q.length==0?null:s.valueFormat?Fn(s,q,s.valueFormat)??q:Fn(s,q,Zo[s.type])??q:He(q)?q:null,d),f=t.computed(()=>{if(!k.value)return"";const q=Gu(s);return Jo(s,k.value,q)}),m="fox-input-item",h=t.computed(()=>({[m]:!0,"is-disabled":u.value,"is-readonly":p.value})),C=Ve(t.computed(()=>s.textAlign),"textAlign"),A=t.computed(()=>{const q={};return C.value&&(q["text-align"]=C.value),q}),w=t.ref(!1),N=()=>{w.value=!0},T=()=>{w.value=!1};c.expose({showPicker:N,hidePicker:T});const $=q=>{w.value=q},E=q=>{if(k.value=q,s.valueFormat){let M=Jo(s,q,s.valueFormat);d("update:modelValue",M,{}),d("change",M,{})}else d("update:modelValue",q,{}),d("change",q,{})},D=q=>{let v=q.target.value;b.value=!0,d("focus",v,q)},P=q=>{setTimeout(()=>{b.value=!1},0);let v=q.target.value;s.maxLength&&v.length>Number(s.maxLength)&&(v=v.slice(0,Number(s.maxLength))),d("blur",v,q)},K=t.computed(()=>({[`${m}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),V=t.computed(()=>ke(s.unit)>0),I=t.computed(()=>ke(s.unit)>0&&!b.value),L=t.computed(()=>({hidden:!I.value})),x=q=>{k.value="",d("update:modelValue","",q),d("change","",q),d("clear",""),T()},W=t.computed(()=>s.clearable&&!u.value&&!p.value),j=t.computed(()=>{let q=ke(k.value)>0;return s.clearable&&q&&b.value}),O=q=>{j.value?x(q):N()},ee=t.computed(()=>j.value&&W.value?o:l),H=t.computed(()=>({action:!0}));return()=>{const q={class:h.value,style:A.value,type:"text",maxlength:s.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:D,onBlur:P};i&&(q.disabled=!0);const M=[],v=t.h("input",q);M.push(v);const Y=[],z={class:["action-icon"]},F=t.h(ee.value,z),G={class:H.value,onClick:O},Z=t.h("view",G,{default:()=>[F]});if(Y.push(Z),V.value){const de=t.h("view",{class:L.value},[s.unit]);Y.push(de)}const ne={class:K.value},R=t.h("view",ne,{default:()=>Y});M.push(R);const X={default:()=>M};X.label=c.slots.default,X.prepend=c.slots.prepend,X.append=c.slots.append,X.fixedPreTip=c.slots.fixedPreTip,X.fixedTip=c.slots.fixedTip;const Q=Se(s,_o);Q.valueFormat=null,Q.disabled=!1,Q.readonly=u.value||p.value,Q.visible=w.value,Q["onUpdate:visible"]=$,Q.modelValue=k.value,Q["onUpdate:modelValue"]=E,Q.onClear=x;const U={};if(c.slots.top){const de=c.slots.top();U.top=()=>de}if(c.slots.bottom){const de=c.slots.bottom();U.default=()=>de}const J=t.h(r,Q,U);X.hide=()=>[J];const ae={...Se(s,ye,he)};return s.prop&&(ae.prop=`${s.prop}_item`),t.h(a,ae,X)}}}}const{create:Ju,componentName:_u,scope:ef}=_("date-item"),el=Ju(Zu(_u,ef,Be,le.CircleClose,le.Date,Rn,!1)),tf=39,nf=64,{create:of,scope:lf}=_("calendar-pane"),af=of({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:re.getDay(0)},endDate:{type:String,default:re.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=ie.useFoxI18n(lf),r=o(e,["title","confirmText","startText","endText","today"]),i=JSON.parse(l("weekdays")),s=t.ref([...i.slice(e.firstDayOfWeek,7),...i.slice(0,e.firstDayOfWeek)]),c=t.ref(null),u=t.ref(null),p=t.ref(null),d=t.ref(null),g=t.ref(0),S=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),b=t.computed(()=>a.btn),y=t.computed(()=>a["top-info"]),k=t.computed(()=>a["bottom-info"]),f=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),m=z=>z.split("-"),h=z=>re.isEqual(f.currDate[0],z),C=z=>re.isEqual(f.currDate[1],z),A=z=>f.currDate?.length>0?f.currDate?.some(F=>re.isEqual(F,z)):!1,w=(z,F)=>F.curData[0]+"-"+F.curData[1]+"-"+re.getNumTwoBit(+z.day),N=(z,F)=>{const G=w(z,F),{type:Z}=e;return z.type=="curr"?re.isEqual(f.currDate,G)||(Z=="range"||Z=="week")&&(h(G)||C(G))||Z=="multiple"&&A(G)?`${f.dayPrefix}--active`:f.propStartDate&&re.compareDate(G,f.propStartDate)||f.propEndDate&&re.compareDate(f.propEndDate,G)?`${f.dayPrefix}--disabled`:(Z=="range"||Z=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&re.compareDate(f.currDate[0],G)&&re.compareDate(G,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},T=()=>{const{type:z}=e;if(z=="range"&&f.chooseData.length==2||z!="range"){let F=f.chooseData.slice(0);z=="week"&&(F={weekDate:[E(f.chooseData[0]),E(f.chooseData[1])]}),n("choose",F),e.poppable&&n("update")}},$=(z,F,G=!1)=>{if(N(z,F)!=`${f.dayPrefix}--disabled`){const{type:Z}=e;let[ne,R]=F.curData,X=[...F.curData];if(X[2]=re.getNumTwoBit(Number(z.day)),X[3]=`${X[0]}-${X[1]}-${X[2]}`,X[4]=re.getWhatDay(+X[0],+X[1],+X[2]),Z=="multiple")if(f.currDate?.length>0){let Q;f.currDate?.forEach((U,J)=>{U==X[3]&&(Q=J)}),G?f.chooseData.push([...X]):Q!==void 0?(f.currDate.splice(Q,1),f.chooseData.splice(Q,1)):(f.currDate.push(X[3]),f.chooseData.push([...X]))}else f.currDate=[X[3]],f.chooseData=[[...X]];else if(Z=="range"){let Q=Object.values(f.currDate).length;Q==2||Q==0?f.currDate=[X[3]]:re.compareDate(f.currDate[0],X[3])?Array.isArray(f.currDate)&&f.currDate.push(X[3]):Array.isArray(f.currDate)&&f.currDate.unshift(X[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...X]]:re.compareDate(f.chooseData[0][3],X[3])?f.chooseData=[...f.chooseData,[...X]]:f.chooseData=[[...X],...f.chooseData]}else if(Z=="week"){let Q=re.getWeekDate(ne,R,z.day,e.firstDayOfWeek);f.propStartDate&&re.compareDate(Q[0],f.propStartDate)&&Q.splice(0,1,f.propStartDate),f.propEndDate&&re.compareDate(f.propEndDate,Q[1])&&Q.splice(1,1,f.propEndDate),f.currDate=Q,f.chooseData=[re.formatResultDate(Q[0]),re.formatResultDate(Q[1])]}else f.currDate=X[3],f.chooseData=[...X];if(!G){let Q=f.chooseData;Z=="week"&&(Q={weekDate:[E(f.chooseData[0]),E(f.chooseData[1])]}),n("select",Q),(e.isAutoBackFill||!e.poppable)&&T()}}},E=z=>{let[F,G,Z]=z;return{date:z,monthWeekNum:re.getMonthWeek(F,G,Z,e.firstDayOfWeek),yearWeekNum:re.getYearWeek(F,G,Z,e.firstDayOfWeek)}},D=z=>{const F=f.monthsData[f.monthsData.length-1];let G=parseInt(F.curData[0]),Z=parseInt(F.curData[1].toString().replace(/^0/,""));switch(z){case"prev":Z==1&&(G-=1),Z=Z==1?12:--Z;break;case"next":Z==12&&(G+=1),Z=Z==12?1:++Z;break}return[G+"",re.getNumTwoBit(Z),re.getMonthDays(String(G),String(Z))+""]},P=(z,F,G)=>{let{year:Z,month:ne}=G;return Array.from(Array(z),(R,X)=>({day:String(X+1),type:F,year:Z,month:ne}))},K=(z,F,G,Z)=>{z=z-e.firstDayOfWeek;let{year:ne,month:R}=G;return z>=7&&(z-=7),Array.from(Array(Z),(Q,U)=>({day:String(U+1),type:F,year:ne,month:R})).slice(Z-z)},V=(z,F)=>{const G=re.getMonthPreDay(+z[0],+z[1]);let Z=Number(z[1])-1,ne=Number(z[0]);Z<=0&&(Z=12,ne+=1);const R=re.getMonthDays(String(z[0]),String(z[1])),X=re.getMonthDays(ne+"",Z+""),Q={year:z[0],month:z[1]},U={curData:z,title:l("monthTitle",{year:Q.year,month:Q.month}),monthData:[...K(G,"prev",{month:String(Z),year:String(ne)},X),...P(R,"curr",Q)],cssHeight:0,cssScrollHeight:0},J=U.monthData.length>35?6:5;U.cssHeight=tf+nf*J;let te=0;f.monthsData.length>0&&(te=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),U.cssScrollHeight=te,(!f.endData||!re.compareDate(`${f.endData[0]}-${f.endData[1]}-${re.getMonthDays(f.endData[0],f.endData[1])}`,`${z[0]}-${z[1]}-${z[2]}`))&&f.monthsData.push(U)},I=()=>{let z=e.startDate?e.startDate:re.getDay(0),F=e.endDate?e.endDate:re.getDay(365);f.propStartDate=z,f.propEndDate=F,f.startData=m(z),f.endData=m(F),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const G={year:Number(f.startData[0]),month:Number(f.startData[1])},Z={year:Number(f.endData[0]),month:Number(f.endData[1])};let ne=Z.month-G.month;Z.year-G.year>0&&(ne=ne+12*(Z.year-G.year)),ne<=0&&(ne=1),V(f.startData);let R=1;do V(D("next"));while(R++<ne);if(f.monthsNum=ne,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(z&&re.compareDate(f.currDate[0],z)&&f.currDate.splice(0,1,z),F&&re.compareDate(F,f.currDate[1])&&f.currDate.splice(1,1,F),f.defaultData=[...m(f.currDate[0]),...m(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let X=[],Q={};f.currDate.forEach(U=>{z&&!re.compareDate(U,z)&&F&&!re.compareDate(F,U)&&(Object.hasOwnProperty.call(Q,U)||(X.push(U),Q[U]=U))}),f.currDate=[...X],f.defaultData=[...m(X[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[X,Q,U]=m(f.currDate[0]),J=re.getWeekDate(X,Q,U,e.firstDayOfWeek);f.currDate=J,z&&re.compareDate(f.currDate[0],z)&&f.currDate.splice(0,1,z),F&&re.compareDate(F,f.currDate[1])&&f.currDate.splice(1,1,F),f.defaultData=[...m(f.currDate[0]),...m(f.currDate[1])]}}else f.currDate&&(z&&re.compareDate(f.currDate,z)?f.currDate=z:F&&!re.compareDate(f.currDate,F)&&(f.currDate=F),f.defaultData=[...m(f.currDate)])};ve({scrollToDate:z=>{re.compareDate(z,f.propStartDate)?z=f.propStartDate:re.compareDate(z,f.propEndDate)||(z=f.propEndDate);let F=m(z);f.monthsData.forEach((G,Z)=>{if(G.title==l("monthTitle",{year:F[0],month:F[1]})&&c.value){let ne=f.monthsData[Z].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let R=0,X=setInterval(()=>{if(R++,c.value){let Q=ne/10;c.value.scrollTop=c.value.scrollTop+Q}R>=10&&(clearInterval(X),c.value&&(c.value.scrollTop=f.monthsData[Z].cssScrollHeight))},40)}else c.value.scrollTop=f.monthsData[Z].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let z=0,F=0;f.defaultData.length>0&&f.monthsData.forEach((ne,R)=>{ne.title==l("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(z=R),(e.type=="range"||e.type=="week")&&ne.title==l("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(F=R)}),j(f.monthsNum,z),f.currentIndex=z,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?($({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),$({day:f.defaultData[5],type:"curr"},f.monthsData[F],!0)):e.type=="week"?$({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(ne=>{let R=m(ne),X=f.currentIndex;f.monthsData.forEach((Q,U)=>{Q.title==l("monthTitle",{year:R[0],month:R[1]})&&(X=U)}),$({day:R[2],type:"curr"},f.monthsData[X],!0)}):$({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let G=f.monthsData[f.monthsData.length-1],Z=G.cssHeight+G.cssScrollHeight;Qe(()=>{c?.value&&u?.value&&d?.value&&(g.value=c.value.clientHeight,u.value.style.height=`${Z}px`,c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(Z/(f.monthsNum+1))}});const j=(z,F)=>{z>=3?F>0&&F<z?f.defaultRange=[F-1,F+3]:F==0?f.defaultRange=[F,F+4]:F==z&&(f.defaultRange=[F-2,F+2]):f.defaultRange=[0,z+2];let G=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=G},O=(z,F)=>(e.type=="range"||e.type=="week")&&z.type=="curr"&&N(z,F)=="fox-calendar__day--active",ee=(z,F)=>O(z,F)&&h(w(z,F)),H=(z,F)=>f.currDate.length>=2&&C(w(z,F))?O(z,F):!1,q=()=>{if(f.currDate.length>=2)return re.isEqual(f.currDate[0],f.currDate[1])},M=z=>{const F=`${z.year}-${z.month}-${Number(z.day)<10?"0"+z.day:z.day}`;return re.isEqual(F,re.date2Str(new Date))},v=z=>{if(f.monthsData.length<=1)return;const F=z.target.scrollTop;let G=Math.floor(F/f.avgHeight);if(G==0)F>=f.monthsData[G+1].cssScrollHeight&&(G+=1);else if(G>0&&G<f.monthsNum-1)F>=f.monthsData[G+1].cssScrollHeight&&(G+=1),F<f.monthsData[G].cssScrollHeight&&(G-=1);else{const Z=Math.round(F+g.value);Z<f.monthsData[G].cssScrollHeight+f.monthsData[G].cssHeight&&F>f.monthsData[G-1].cssScrollHeight&&(G-=1),G+1<=f.monthsNum&&Z>=f.monthsData[G+1].cssScrollHeight+f.monthsData[G+1].cssHeight&&(G+=1),G>=1&&F<f.monthsData[G-1].cssScrollHeight&&(G-=1)}f.currentIndex!==G&&(f.currentIndex=G,j(f.monthsNum,G)),f.yearMonthTitle=f.monthsData[G].title},Y=()=>{f.chooseData.splice(0),f.monthsData.splice(0),I()};return I(),t.watch(()=>e.defaultValue,z=>{z&&e.poppable&&Y()}),{weeks:s,compConthsData:S,showTopBtn:b,topInfo:y,bottomInfo:k,rangeTip:q,mothsViewScroll:v,getClass:N,isStartTip:ee,isEndTip:H,chooseDay:$,isCurrDay:M,confirm:T,months:c,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:u,weeksPanel:p,viewArea:d}}}),rf={class:"fox-calendar__header"},sf={key:0,class:"fox-calendar__header-title"},cf={key:1,class:"fox-calendar__header-slot"},df={key:2,class:"fox-calendar__header-subtitle"},uf={class:"fox-calendar__weekdays",ref:"weeksPanel"},ff={class:"fox-calendar__panel",ref:"monthsPanel"},mf={class:"fox-calendar__month-title"},pf={class:"fox-calendar__days"},hf=["onClick"],gf={class:"fox-calendar__day-value"},yf={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},bf={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},kf={key:2,class:"fox-calendar__day-tips--curr"},Sf={key:4,class:"fox-calendar__day-tip"},Cf={key:0,class:"fox-calendar__footer"};function wf(e,n,a,o,l,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",rf,[e.showTitle?(t.openBlock(),t.createElementBlock("view",sf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",cf,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",df,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",uf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:s},t.toDisplayString(i),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:n[0]||(n[0]=(...i)=>e.mothsViewScroll&&e.mothsViewScroll(...i))},[t.createElementVNode("view",ff,[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,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:s},[t.createElementVNode("view",mf,t.toDisplayString(i.title),1),t.createElementVNode("view",pf,[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(i.monthData,(c,u)=>(t.openBlock(),t.createElementBlock("view",{key:u,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,i)]),onClick:p=>e.chooseDay(c,i)},[t.createElementVNode("view",gf,[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",yf,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",bf,[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",kf,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,i)?(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,i)?(t.openBlock(),t.createElementBlock("view",Sf,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,hf))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Cf,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...i)=>e.confirm&&e.confirm(...i))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const hs=oe(af,[["render",wf]]),Nf=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:Bf}=_("calendar"),Af=Bf({components:{[hs.name]:hs,[me.name]:me},props:{...Kn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const o=t.computed(()=>a.btn),l=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),i=t.computed(()=>a["bottom-info"]),s=t.ref(null),c=y=>{s.value?.scrollToDate(y)},u=()=>{s.value?.initPosition()};t.watch(()=>e.visible,y=>{y&&t.nextTick(()=>{s.value?s.value.doLayout():setTimeout(()=>{s.value&&s.value.doLayout()},250)})}),ve({scrollToDate:c,initPosition:u});const p=()=>{n("update:visible",!1)},d=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{d()},update:p,close:d,select:y=>{n("select",y)},choose:y=>{d(),n("choose",y)},calendarRef:s,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:i}}});function Tf(e,n,a,o,l,r){const i=t.resolveComponent("fox-calendar-pane"),s=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(s,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(i,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},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(i,{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 Un=oe(Af,[["render",Tf]]),gs={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}},tl=(e,n)=>{let a;return He(e)?a=e:typeof e=="string"&&ke(e)>0?a=re.parser(e,n):a=new Date,a},wt=(e,n,a)=>(He(n)||(n=new Date),re.format(n,a)),Nt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=re.date2Str(e),r=re.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function $f(e,n,a,o,{CloseIcon:l,MarkIcon:r},i=!1){return{props:{...he,...ye,...Kn,...gs},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(s,c){const u=De(t.computed(()=>s.disabled)),p=Ee(t.computed(()=>s.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},s.prop??c.attrs.name),{toLocaleRefs:g}=ie.useFoxI18n(n),S=g(s,["placeholder"]),b=t.ref(!1),y=t.computed(()=>s.type==="range"),k=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),f=()=>{k.startDate!==null&&(k.startDate=null,k.endDate=null,k.startArray=[],k.endArray=[])},m=(v,Y="one",z="YYYY-MM-DD")=>{if(Nf(v)){f();return}if(y.value&&Array.isArray(v)&&v.length==2){let F,G;typeof v[0]=="string"?(F=tl(v[0],z),G=tl(v[1],z)):(F=v[0],G=v[1]);let Z=Nt(F),ne=Nt(G);(k.startDate===null||k.startDate.getTime()!==F.getTime()||k.endDate?.getTime()!==G.getTime())&&(k.startDate=F,k.startArray=Z,k.endDate=G,k.endArray=ne)}else{let F;typeof v=="string"?F=tl(v,z):F=v;let G=Nt(F);(k.startDate===null||k.startDate.getTime()!==F.getTime())&&(k.startDate=F,k.startArray=G)}};m(s.modelValue,s.type,s.valueFormat),t.watch(()=>s.modelValue,v=>{m(v,s.type,s.valueFormat),d("setValue",v)});const h=t.computed(()=>{if(k.startDate===null)return"";if(y.value){let v=wt(s,k.startDate,s.format),Y=wt(s,k.endDate,s.format);return`${v} ${s.rangeSeparator} ${Y}`}else{let v=wt(s,k.startDate,s.format);return s.showWeek&&(v=`${v} ${k.startArray[4]}`),v}}),C=t.computed(()=>{if(k.startDate===null)return null;if(y.value){let v=re.date2Str(k.startDate),Y=re.date2Str(k.endDate??new Date);return[v,Y]}else return re.date2Str(k.startDate)}),A="fox-input-item",w=t.computed(()=>({[A]:!0,"is-disabled":u.value,"is-readonly":p.value})),N=Ve(t.computed(()=>s.textAlign),"textAlign"),T=t.computed(()=>{const v={};return N.value&&(v["text-align"]=N.value),v}),$=t.ref(!1),E=()=>{p.value||u.value||($.value=!0)},D=v=>{$.value=v},P=v=>{if(v){if(y.value&&Array.isArray(v)){let Y=v[0],z=pe(Y[0]),F=pe(Y[1]),G=pe(Y[2]),Z=new Date(z,F-1,G),ne=v[1];z=pe(ne[0]),F=pe(ne[1]),G=pe(ne[2]);let R=new Date(z,F-1,G);if(k.startDate=Z,k.startArray=Nt(Z),k.endDate=R,k.endArray=Nt(R),s.valueFormat){let X=wt(s,Z,s.valueFormat),Q=wt(s,R,s.valueFormat);d("update:modelValue",[X,Q],{})}else d("update:modelValue",[Z,R],{})}else{let Y=v,z=pe(Y[0]),F=pe(Y[1]),G=pe(Y[2]),Z=new Date(z,F-1,G);if(k.startDate=Z,k.startArray=Nt(Z),s.valueFormat){let ne=wt(s,Z,s.valueFormat);d("update:modelValue",ne,{})}else d("update:modelValue",Z,{})}d("change",v,{})}},K=v=>{let z=v.target.value;b.value=!0,d("focus",z,v)},V=v=>{setTimeout(()=>{b.value=!1},0);let z=v.target.value;s.maxLength&&z.length>Number(s.maxLength)&&(z=z.slice(0,Number(s.maxLength))),d("blur",z,v)},I=t.computed(()=>({[`${A}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),L=t.computed(()=>ke(s.unit)>0),x=t.computed(()=>ke(s.unit)>0&&!b.value),W=t.computed(()=>({hidden:!x.value})),j=v=>{f(),d("update:modelValue",null,v),d("change","",v),d("clear","")},O=t.computed(()=>s.clearable&&!u.value&&!p.value),ee=t.computed(()=>{let v=ke(h.value)>0;return s.clearable&&v&&b.value}),H=v=>{ee.value?j(v):E()},q=t.computed(()=>ee.value&&O.value?l:r),M=t.computed(()=>({action:!0}));return()=>{const v={class:w.value,style:T.value,type:"text",maxlength:s.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:h.value,onClick:E,onFocus:K,onBlur:V};i&&(v.disabled=!0);const Y=[],z=t.h("input",v);Y.push(z);const F=[],G={class:["action-icon"]},Z=t.h(q.value,G),ne={class:M.value,onClick:H},R=t.h("view",ne,{default:()=>[Z]});if(F.push(R),L.value){const Ne=t.h("view",{class:W.value},[s.unit]);F.push(Ne)}const X={class:I.value},Q=t.h("view",X,{default:()=>F});Y.push(Q);const U={default:()=>Y};U.label=c.slots.default,U.prepend=c.slots.prepend,U.append=c.slots.append,U.fixedPreTip=c.slots.fixedPreTip,U.fixedTip=c.slots.fixedTip;const J=Se(s,Kn);J.visible=$.value,J["onUpdate:visible"]=D,J["default-value"]=C.value,J.onChoose=P;const te={};if(c.slots.btn){const Ne=c.slots.btn();te.btn=()=>Ne}c.slots.day&&(te.day=c.slots.day),c.slots.topInfo&&(te.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(te.bottomInfo=c.slots.bottomInfo);const ae=t.h(a,J,te);U.hide=()=>[ae];const de={...rt(s,Kn,gs)};return s.prop&&(de.prop=`${s.prop}_item`),t.h(o,de,U)}}}}const{componentName:Vf,create:Ef,scope:Df}=_("calendar-item"),nl=Ef($f(Vf,Df,Un,Be,{CloseIcon:le.CircleClose,MarkIcon:le.Date},!1)),If={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 xf(e,{CheckNormal:n,Checked:a}){return{props:{...If},setup(o,{emit:l,slots:r}){const i=t.inject("parent",null),s=Bn(),c=t.computed(()=>i.label.value===o.label),u=t.computed(()=>i.position),p=()=>{const y=[];if(c.value){if(r.checkedIcon)return r.checkedIcon();{const k=fe(o.iconSize),f=o.checkedIcon??s.radio.Checked??a;return y.push("fox-radio__icon"),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h(f,{width:k,height:k,class:y})}}else{if(r.icon)return r.icon();{const k=fe(o.iconSize),f=o.icon??s.radio.CheckNormal??n;return y.push("fox-radio__icon--unchecked"),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h(f,{width:k,height:k,class:y})}}},d=()=>{const y=[`${e}__label`];return o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h("view",{class:y},r.default?.())},g=()=>{const y=[`${e}__button`];return c.value&&y.push(`${e}__button--active`),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h("view",{class:y},r.default?.())},S=()=>{c.value||o.disabled||o.readonly||i.updateValue(o.label)},b=u.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${b?`${e}--reverse`:""}`,onClick:S},[o.shape=="button"?g():b?[d(),p()]:[p(),d()]])}}}const{componentName:vf,create:qf}=_("radio"),Hn=qf(xf(vf,{CheckNormal:le.CheckNormal,Checked:le.CheckChecked})),{componentName:ys,create:Pf}=_("radio-group"),jn=Pf({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:a}=gt(),o=l=>a("update:modelValue",l);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:o}),t.watch(()=>e.modelValue,l=>a("change",l)),()=>{const l={};return e.textAlign&&(l["text-align"]=e.textAlign),t.h("view",{class:`${ys} ${ys}--${e.direction}`,style:l},n.default?.())}}});function bs(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(Wn(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if(Ft(e,r)===a)return l}return-1}function Wn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ft(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Mf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Lf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let zf=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=_e(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Of(){const e=t.getCurrentInstance();return new zf(e.proxy)}function Ff(e){return{text:e,value:e}}const ks={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},Rf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},Kf={source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Object],default:""}};function Uf(e,n,a,o,l){return{props:{...he,...ye,...ks,...Rf,...Kf},emits:["change","update:modelValue","setValue"],setup(r,i){const s=Ee(t.computed(()=>r.readonly)),c=De(t.computed(()=>r.disabled)),u=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return c.value}},r.prop??i.attrs.name),d=Of(),g=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,m])=>{if(f){const h=await d.load("radio",f,m);if(h.length>0)if(typeof h[0]=="string"){const w=h.map(N=>Ff(N));g.value=w}else g.value=h;else g.value=[]}},{immediate:!0});let S=t.ref(-1);t.watch([()=>r.modelValue,()=>g.value],async([f,m])=>{S.value=bs(r,m,f,r.valueType),p("setValue",f)},{deep:!0});const b=t.computed(()=>{if(!r.source)return r.modelValue;if(S.value===-1)return null;const f=g.value[S.value];return Ft(r,f)}),y=f=>{let m=null,h=null;if(g.value.length>0){let C=bs(r,g.value,f,"value");S.value=C,C>=0&&(h=g.value[C],r.valueType==="text"?m=Wn(r,h):r.valueType==="item"?m=h:m=Ft(r,h))}else m=f;p("update:modelValue",m),p("change",m,h)},k=()=>{let f=null,m=null;if(g.value.length>0&&S.value!==-1){let h=g.value[S.value];r.valueType==="text"?f=Wn(r,h):r.valueType==="item"?f=h:f=Ft(r,h)}p("update:modelValue",f),p("change",f,m)};if(ve({clear(){S.value!==-1&&(S.value=-1,k())}}),r.source){const f=()=>{const m=[],h=Se(r,ks);return g.value.forEach((C,A)=>{const w=Ft(r,C),N=Mf(r,C);let T={...h,label:w,disabled:N};const $=Lf(r,C,A);T={...T,...$},c.value&&(T.disabled=!0),s.value&&(T.readonly=!0);const E={};if(i.slots.icon&&(E.icon=i.slots.icon),i.slots.checkedIcon&&(E.checkedIcon=i.slots.checkedIcon),typeof i.slots.text=="function"){const P=i.slots.text(C);E.default=()=>[P]}else{const P=Wn(r,C);E.default=()=>P}let D=t.h(l,T,E);m.push(D)}),m};return()=>{const m=f(),h={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:b,"onUpdate:modelValue":y},C=t.h(o,h,{default:()=>m}),A={default:()=>C};A.label=i.slots.default,A.prepend=i.slots.prepend,A.append=i.slots.append,A.fixedPreTip=i.slots.fixedPreTip,A.fixedTip=i.slots.fixedTip;const N={...Se(r,ye,he)};return r.prop&&(N.prop=`${r.prop}_item`),t.h(a,N,A)}}else return()=>{const f=i.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:b,"update:modelValue":y},{default:()=>f})}}}}const{componentName:Hf,create:jf,scope:Wf}=_("radio-item"),ol=jf(Uf(Hf,Wf,Be,jn,Hn)),Yf=(e,{CheckNormal:n,Checked:a,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(l,{slots:r}){const{emitEvent:i}=gt(),s=Bn(),c=t.inject("parent",null),u=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,h=>{u.partialSelect=h});const p=t.computed(()=>!!c),d=t.computed(()=>p.value?c.value.value.includes(l.label):!!l.modelValue),g=t.computed(()=>p.value?c.position:l.textPosition);let S="";const b=(h,C)=>{S="click",i("update:modelValue",h),i("change",h,C)};t.watch(()=>l.modelValue,h=>{S=="click"?S="":i("change",h)});const y=()=>{const h=[];if(u.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const C=fe(l.iconSize),A=l.indeterminateIcon??s.checkbox.Indeterminate??o;return h.push("fox-checkbox__icon--indeterminate"),l.disabled&&h.push("is-disabled"),l.readonly&&h.push("is-readonly"),t.h(A,{width:C,height:C,class:h})}}else if(d.value){if(r.checkedIcon)return r.checkedIcon();{const C=fe(l.iconSize),A=l.checkedIcon??s.checkbox.Checked??a;return h.push("fox-checkbox__icon"),l.disabled&&h.push("is-disabled"),l.readonly&&h.push("is-readonly"),t.h(A,{width:C,height:C,class:h})}}else{if(r.icon)return r.icon();{const C=fe(l.iconSize),A=l.icon??s.checkbox.CheckNormal??n;return h.push("fox-checkbox__icon--unchecked"),l.disabled&&h.push("is-disabled"),l.readonly&&h.push("is-readonly"),t.h(A,{width:C,height:C,class:h})}}},k=()=>{const h=[`${e}__label`];return l.disabled&&h.push("is-disabled"),l.readonly&&h.push("is-readonly"),t.h("view",{class:h},r.default?.())},f=()=>{const h=[`${e}__button`];return d.value&&h.push(`${e}__button--active`),l.disabled&&h.push("is-disabled"),l.readonly&&h.push("is-readonly"),t.h("view",{class:h},r.default?.())},m=h=>{if(!(l.disabled||l.readonly)){if(d.value&&u.partialSelect){u.partialSelect=!1,b(d.value,r.default?.()[0].children);return}if(b(!d.value,r.default?.()[0].children),p.value){const C=c.value.value,A=c.max.value,{label:w}=l,N=C.indexOf(w);N>-1?C.splice(N,1):N<=-1&&(C.length<A||!A)&&C.push(w),c.updateValue(C)}}};return t.onMounted(()=>{p.value&&c.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{p.value&&c.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${l.shape} ${g.value==="left"?`${e}--reverse`:""}`,onClick:m},[l.shape=="button"?f():[y(),k()]])}}),{componentName:Xf,create:Qf}=_("checkbox"),Yn=Qf(Yf(Xf,{CheckNormal:le.CheckNormal,Checked:le.Checked,Indeterminate:le.CheckDisabled})),{create:Gf,componentName:Ss}=_("checkbox-group"),Xn=Gf({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:a}=gt(),o=t.reactive({children:[]}),l=u=>{u.proxy&&o.children.push(u.proxy)},r=u=>{u.proxy&&(o.children=o.children.filter(p=>p!==u.proxy))},i=u=>{a("update:modelValue",u),a("change",u)},s=u=>{const p=[];u&&o.children.forEach(d=>{d?.disabled||p.push(d?.label)}),a("update:modelValue",p)},c=()=>{const u=o.children.filter(p=>p?.disabled?!1:!e.modelValue.includes(p.label)).map(p=>p.label);a("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:i,link:l,unlink:r}),t.watch(()=>e.modelValue,u=>{a("change",u)}),ve({toggleAll:s,toggleReverse:c}),()=>{const u={};return e.textAlign&&(u["text-align"]=e.textAlign),t.h("view",{class:`${Ss} ${Ss}--${e.direction}`,style:u},n.default?.())}}});function Cs(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(ll(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if(Qn(e,r)===a)return l}return-1}function ll(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Qn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Zf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Jf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let _f=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=_e(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function em(){const e=t.getCurrentInstance();return new _f(e.proxy)}function tm(e){return{text:e,value:e}}const nm={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},ws={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},om={source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]}};function lm(e,n,a,o,l){return{props:{...he,...ye,...nm,...ws,...om},emits:["change","update:modelValue","setValue"],setup(r,i){const s=De(t.computed(()=>r.disabled)),c=Ee(t.computed(()=>r.readonly)),u=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return s.value}},r.prop??i.attrs.name),d=em(),g=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,m])=>{if(f){const h=await d.load("checkbox",f,m);if(h.length>0)if(typeof h[0]=="string"){const w=h.map(N=>tm(N));g.value=w}else g.value=h;else g.value=[]}},{immediate:!0});const S=t.ref([]);t.watch([()=>r.modelValue,()=>g.value],async([f,m])=>{const h=[];Array.isArray(f)&&f.forEach(C=>{let A=Cs(r,m,C,r.valueType);A!==-1&&h.push(A)}),!Me(h,S.value)&&(S.value=h,p("setValue",h))},{deep:!0});const b=t.computed(()=>{if(!r.source)return r.modelValue;let f=[];return S.value.forEach(m=>{let h=g.value[m];f.push(Qn(r,h))}),f}),y=f=>{let m=[],h=[];if(g.value.length>0){const C=[];Array.isArray(f)&&f.forEach(A=>{let w=Cs(r,g.value,A,"value");w!==-1&&C.push(w);const N=g.value[w];h.push(N),r.valueType==="text"?m.push(ll(r,N)):r.valueType==="item"?m.push(N):m.push(Qn(r,N))}),S.value=C}else m=f;p("update:modelValue",m),p("change",m,h)},k=t.ref();if(ve({toggleAll:f=>{k.value.toggleAll(f)},toggleReverse:()=>{k.value.toggleReverse()}}),r.source){const f=()=>{const m=[],h=Se(r,ws);return g.value.forEach((C,A)=>{const w=Qn(r,C),N=Zf(r,C);let T={...h,label:w,disabled:N};const $=Jf(r,C,A);T={...T,...$},s.value&&(T.disabled=!0),c.value&&(T.readonly=!0);const E={};if(i.slots.icon&&(E.icon=i.slots.icon),i.slots.checkedIcon&&(E.checkedIcon=i.slots.checkedIcon),i.slots.indeterminateIcon&&(E.indeterminateIcon=i.slots.indeterminateIcon),typeof i.slots.text=="function"){const P=i.slots.text(C);E.default=()=>[P]}else{const P=ll(r,C);E.default=()=>P}let D=t.h(l,T,E);m.push(D)}),m};return()=>{const m=f(),h={class:`${e}`,ref:k,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:b.value,"onUpdate:modelValue":y},C=t.h(o,h,{default:()=>m}),A={default:()=>C};A.label=i.slots.default,A.prepend=i.slots.prepend,A.append=i.slots.append,A.fixedPreTip=i.slots.fixedPreTip,A.fixedTip=i.slots.fixedTip;const N={...Se(r,ye,he)};return r.prop&&(N.prop=`${r.prop}_item`),t.h(a,N,A)}}else return()=>{const f=i.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:k,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:u.value,modelValue:b,"onUpdate:modelValue":y},{default:()=>f})}}}}const{componentName:am,create:rm,scope:sm}=_("checkbox-item"),al=rm(lm(am,sm,Be,Xn,Yn)),rl={modelValue:{type:[String,Boolean,Number],default:!1},disabled:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:im,create:cm}=_("switch"),dm=cm({components:{Loading1:le.Loading1},props:{...rl},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const s=im;return{[s]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${s}-base`]:!0,"is-disabled":e.disabled}}),l=t.computed(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let r="";const i=s=>{if(e.disabled||e.loading)return;r="click";const c=a.value?e.inactiveValue:e.activeValue;n("update:modelValue",c),n("change",c,s)};return t.watch(()=>e.modelValue,s=>{r=="click"?r="":n("change",s)}),{classes:o,style:l,isActive:a,onClick:i}}}),um={class:"fox-switch-button"};function fm(e,n,a,o,l,r){const i=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",um,[e.loading?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(i,{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 Gn=oe(dm,[["render",fm]]);function mm(e,n,a,o){return{props:{...he,...ye,...rl},emits:["change","update:modelValue","setValue"],setup(l,r){const i=De(t.computed(()=>l.disabled)),s=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),u=e,p=Pe(l,"modelValue",null,c),d=g=>{p.value=g,c("update:modelValue",g,{}),c("change",g,{})};return()=>{const S={...Se(l,rl),disabled:i.value||s.value,value:p.value,"onUpdate:modelValue":d},b=[],y=t.h(o,S);b.push(y);const k={default:()=>b};k.label=r.slots.default,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const m={...Se(l,ye,he)};return l.prop&&(m.prop=`${l.prop}_item`),m["content-class"]=u,t.h(a,m,k)}}}}const{componentName:pm,create:hm,scope:gm}=_("switch-item"),sl=hm(mm(pm,gm,Be,Gn));function ym(e,n,a,o){return{props:{...he,...ye,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(l,r){const i=De(t.computed(()=>l.disabled)),s=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),{toLocaleRefs:u}=ie.useFoxI18n(n),p=u(l,["placeholder"]),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,P=>{d.value=P,c("change",P)});const g=t.computed(()=>({[`${e}`]:!0})),S=t.computed(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!i.value&&ue(d.value),"is-disabled":i.value,"is-readonly":s.value})),b=Ve(t.computed(()=>l.textAlign),"textAlign"),y=t.computed(()=>{const P={};return b.value&&(P["text-align"]=b.value),P}),k=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),f=t.computed(()=>ue(d.value)?p.placeholder.value:d.value),m=t.computed(()=>!ue(l.desc)||r.slots.sub),h=t.computed(()=>({[`${e}__sub`]:!0})),C=t.computed(()=>{const P={};return b.value&&(P["text-align"]=b.value),P}),A=()=>{c("focus",d.value)},w=()=>{c("blur",d.value)},N=t.computed(()=>({[`${e}__append`]:!0,"is-disabled":i.value,"is-readonly":s.value})),T=t.computed(()=>ke(l.unit)>0),$=P=>{i.value==!0||s.value==!0||c("click")},E=t.computed(()=>l.icon??a),D=t.computed(()=>({action:!0}));return()=>{const P=[];if(typeof r.slots.content=="function"){const M=r.slots.content();P.push(M)}else{const M=[];if(k.value){const z={tabIndex:0,class:S.value,style:y.value,onFocus:A,onBlur:w};let F=null;r.slots.main?F=t.h("view",z,[r.slots.main(f.value)]):F=t.h("view",z,[f.value]),M.push(F)}if(m.value){const z={tabIndex:0,class:h.value,style:C.value,onFocus:A,onBlur:w};let F=null;r.slots.sub?F=t.h("view",z,[r.slots.sub(l.desc)]):F=t.h("view",z,[l.desc]),M.push(F)}const v={class:g.value,onClick:$},Y=t.h("view",v,M);P.push(Y)}const K=[],V=fe(l.iconSize);let I=r.slots.icon;if(!I){const M={width:V,height:V,class:["action-icon"]};I=t.h(E.value,M)}const L={class:D.value,onClick:$},x=t.h("view",L,{default:()=>[I]});if(K.push(x),T.value){const M=t.h("view",{},[l.unit]);K.push(M)}const W={class:N.value},j=t.h("view",W,{default:()=>K});P.push(j);const O={default:()=>P};O.label=r.slots.default,O.prepend=r.slots.prepend,O.append=r.slots.append,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const H={...Se(l,ye,he)};return l.prop&&(H.prop=`${l.prop}_item`),t.h(o,H,O)}}}}const{componentName:bm,create:km,scope:Sm}=_("link-item"),il=km(ym(bm,Sm,le.ArrowRight,Be)),cl={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:Cm,componentName:wm}=_("rate"),Nm=Cm({props:{...cl},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[wm]:!0})),r=S=>{n("update:modelValue",S),n("change",S)},i=(S,b)=>{if(e.disabled||e.readonly)return;let y=0;b===1&&e.modelValue===b||(y=b,e.allowHalf&&S==2&&(y-=.5)),r(y)},s=(S,b,y)=>{let k=0;for(let f=b.value.length-1;f>=0;f--){const m=b.value[f];if(S>m.offsetLeft){y?k=f+(S>m.offsetLeft+m.clientWidth/2?1:.5):k=f+1;break}}return k},c=tt(),u={onTouchStart(S){!e.touchable||e.readonly||c.start(S)},onTouchMove(S){e.touchable&&(c.move(S),c.isHorizontal()&&o.value&&(S.preventDefault(),r(s(c.moveX.value,o,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),d=t.computed(()=>e.customIcon??le.StarFillN);return{classes:l,...u,onClick:i,toPxDesc:ge,renderIcon:(S,b)=>t.h(S,b),rateRefs:o,refRandomId:p,slots:a,customIcon:d}}}),Bm=["id"],Am={class:"fox-rate-item__icon--full"},Tm={key:0,class:"fox-rate-item__icon--half"},$m={key:1,class:"fox-rate-item__icon--half"};function Vm(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),i=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:i,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+i,style:t.normalizeStyle(i<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",Am,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=e.modelValue?e.activeColor:e.voidColor})),{class:t.normalizeClass(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||i>e.modelValue}]),onClick:s=>e.onClick(1,i)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>i?(t.openBlock(),t.createElementBlock("view",Tm,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:i<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:s=>e.onClick(2,i)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<i?(t.openBlock(),t.createElementBlock("view",$m,[(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:s=>e.onClick(2,i)},null,8,["onClick"]))])):t.createCommentVNode("",!0)],12,Bm))),128))],34)}const Bt=oe(Nm,[["render",Vm]]);function Em(e,n,a,o){return{props:{...he,...ye,...cl},emits:["change","update:modelValue","setValue"],setup(l,r){const i=De(t.computed(()=>l.disabled)),s=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return s.value},get disabled(){return i.value}},l.prop??r.attrs.name),u=e,p=Pe(l,"modelValue",null,c),d=g=>{p.value=g,c("update:modelValue",g,{}),c("change",g,{})};return()=>{const S={...Se(l,cl),disabled:i.value,readonly:s.value,value:p.value,"onUpdate:modelValue":d},b=[],y=t.h(o,S);b.push(y);const k={default:()=>b};if(r.slots.default){const h=r.slots.default();k.label=()=>h}const f=Se(l,ye,he);return l.prop&&(f.prop=`${l.prop}_item`),f["content-class"]=u,t.h(a,f,k)}}}}const{componentName:Dm,create:Im,scope:xm}=_("rate-item"),dl=Im(Em(Dm,xm,Be,Bt)),vm=/scroll|auto|overlay/i,Ns=window;function qm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function ul(e,n=Ns){let a=e;for(;a&&a!==n&&qm(a);){const{overflowY:o}=window.getComputedStyle(a);if(vm.test(o))return a;a=a.parentNode}return n}function Bs(e,n=Ns){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=ul(e.value,n))}),a}const As=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Pm={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},immediate:{type:[Boolean],default:!1}};function Mm(e,n,a){return{props:{...Pm},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:i}=ie.useFoxI18n(n),s=i(o,["pullText","loadText","loadMoreText"]),c=t.ref(),u=Bs(c),p=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=t.computed(()=>({[e]:!0})),g=m=>m?m.offsetTop+g(m.offsetParent):0,S=()=>{let m=0,h=0,C="down";if(u.value==window){const A=As();c.value&&(m=g(c.value)+c.value.offsetHeight-A-window.innerHeight),h=A}else{const{scrollHeight:A,clientHeight:w,scrollTop:N}=u.value;m=A-w-N,h=N}return p.beforeScrollTop>h?C="up":C="down",p.beforeScrollTop=h,l("scroll-change",h),m<=o.threshold&&C=="down"},b=()=>{Qe(()=>{if(!S()||!o.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,l("update:modelValue",!0),t.nextTick(()=>l("load-more"))})},y=()=>{u.value&&u.value.addEventListener("scroll",b,o.useCapture)},k=()=>{u.value&&u.value.removeEventListener("scroll",b,o.useCapture)};t.onMounted(()=>{y(),o.immediate&&b()}),t.onUnmounted(()=>{k()});const f=t.ref(!1);return t.onActivated(()=>{f.value&&(f.value=!1,y())}),t.onDeactivated(()=>{f.value=!0,k()}),t.watch(()=>o.modelValue,m=>{m||(p.isInfiniting=!1)}),()=>{const m={class:"fox-infinite__container"},h=t.h("view",m,[r?.default?.()]),C=[];if(p.isInfiniting){let T=r?.loading?.()??null;if(!T){let D=r?.loadingIcon?.()??null;if(!D){const V={class:["fox-infinite__bottom-box__img"]};D=t.h(a,V)}const P={class:"fox-infinite__bottom-box__text"},K=t.h("view",P,[s.loadText.value]);T=[D,K]}const $={class:"fox-infinite__bottom-box"},E=t.h("view",$,T);C.push(E)}else if(!o.hasMore){let T=r?.finished?.()??null;if(!T){const $={class:"fox-infinite__bottom-tips"};T=t.h("view",$,[s.loadMoreText.value]),C.push(T)}}const A={class:"fox-infinite__bottom"},w=t.h("view",A,C),N={class:d.value,ref:c};return t.h("view",N,[h,w])}}}}const{componentName:Lm,create:zm,scope:Om}=_("infinite-loading"),Zn=zm(Mm(Lm,Om,le.Loading)),{componentName:Fm,create:Rm}=_("button"),Km=Rm({components:{Loading:le.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:o,size:l,shape:r,disabled:i,loading:s,color:c,plain:u,block:p}=t.toRefs(e),d=b=>{!s.value&&!i.value&&n("click",b)},g=t.computed(()=>{const b=Fm;return{[b]:!0,[`${b}--${o.value}`]:o.value,[`${b}--${l.value}`]:l.value,[`${b}--${r.value}`]:r.value,[`${b}--plain`]:u.value,[`${b}--block`]:p.value,[`${b}--disabled`]:i.value,[`${b}--loading`]:s.value}}),S=t.computed(()=>{const b={};return c?.value&&(u.value?(b.color=c.value,b.background="#fff",c.value?.includes("gradient")||(b.borderColor=c.value)):(b.color="#fff",b.background=c.value)),b});return{handleClick:d,classes:g,getStyle:S}}}),Um={class:"fox-button__wrap"};function Hm(e,n,a,o,l,r){const i=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",Um,[e.loading?(t.openBlock(),t.createBlock(i,{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=oe(Km,[["render",Hm]]),jm={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Wm=(e,n,a)=>({props:{...jm},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(o,{slots:l}){const{emitEvent:r}=gt(),{toLocaleRefs:i}=ie.useFoxI18n(n),s=i(o,["placeholder"]),c=t.reactive({active:!1}),u=t.computed(()=>({background:o.background})),p=t.computed(()=>({background:o.inputBackground})),d=$=>{let D=$.target.value;o.maxLength&&D.length>Number(o.maxLength)&&(D=D.slice(0,Number(o.maxLength))),r("update:modelValue",D,$),r("change",D,$)},g=t.ref({}),S=$=>{let D=$.target.value;c.active=!0,g.value=o.focusStyle,r("focus",D,$)},b=$=>{setTimeout(()=>{c.active=!1},0);let D=$.target.value;o.maxLength&&D.length>Number(o.maxLength)&&(D=D.slice(0,Number(o.maxLength))),g.value={},r("blur",D,$)},y=$=>{r("update:modelValue","",$),r("change","",$),r("clear","")},k=t.computed(()=>String(o.modelValue).length>0),f=t.computed(()=>{const $={};return k.value||($.display="none"),$}),m=$=>{o.autoblur&&N.value?.blur(),(typeof $.cancelable!="boolean"||$.cancelable)&&$.preventDefault(),r("search",o.modelValue)},h=$=>{r("keyup-input",$)},C=$=>{r("click-input",$)},A=$=>{r("click-left-icon",o.modelValue,$)},w=t.computed(()=>({textAlign:o.inputAlign})),N=t.ref(null);t.onMounted(()=>{o.autofocus&&N.value.focus()});const T=()=>{const $=[];if(l.leftin){const L={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:A},x=t.h("view",L,[l.leftin()]);$.push(x)}const E={class:`${e}__input-inner-input`,ref:N,style:w.value,type:o.inputType,maxlengt:o.maxLength,placeholder:s.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:C,onInput:d,onFocus:S,onBlur:b,onkeyup:h},D=t.h("input",E),P={class:[`${e}__input-inner`],action:"#",onSubmit:m},K=t.h("form",P,[D]);$.push(K);const V=[];if(o.clearable){const L={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:y},x=l?.clear?.()??o.clearIcon??a,W=t.h("view",L,[t.h(x)]);V.push(W)}if(l.rightin){const L={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},x=t.h("view",L,[l.rightin()]);V.push(x)}if(V.length>0){const L={class:`${e}__input-inner-right`},x=t.h("view",L,V);$.push(x)}const I={class:[`${e}__search-input`,`${o.shape}`],style:{...p.value,...g.value}};return t.h("view",I,$)};return()=>{const $=[];if(o.label){const P={class:`${e}__search-label`},K=t.h("span",P,[o.label]);$.push(K)}if(l.leftout){const P={class:[`${e}__search-icon`,`${e}__left-search-icon`]},K=t.h("view",P,[l.leftout()]);$.push(K)}const E=T();if($.push(E),l.rightout){const P={class:[`${e}__search-icon`,`${e}__right-search-icon`]},K=t.h("view",P,[l.rightout()]);$.push(K)}const D={class:`${e}`,style:u.value};return t.h("view",D,$)}}}),{componentName:Ym,create:Xm,scope:Qm}=_("searchbar"),Jn=Xm(Wm(Ym,Qm,le.CircleClose)),_n={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,String,Object],default(){return[]}},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},textPosition:{type:[String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},searchDelayTriggerClear:{type:Number,default:250},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Gm(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(eo(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if($s(e,r)===a)return l}return-1}function eo(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ts(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function $s(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Zm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Jm(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let _m=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,i,s){if(Array.isArray(a)){let u=a;typeof s=="function"&&(u=u.filter(s));let p=(o-1)*l,d=p+l;d>u.length&&(d=u.length);const g=u.slice(p,d);return{totalSize:u.length,page:g}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,i]);const c=_e(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ie(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r]))}};function ep(){const e=t.getCurrentInstance();return new _m(e.proxy)}function tp(e,n,a,o,l,r,i,s,c,u,p){return{props:{..._n},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{slots:g}){const{emitEvent:S}=gt(),{toLocaleRefs:b}=ie.useFoxI18n(n),y=b(d,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),k=ep(),f=t.ref([]),m=t.ref(0),h=t.ref(""),C=t.shallowRef(null),A=t.computed(()=>{const R={};return d.params&&Object.assign(R,d.params),ue(h.value)||(R[`${d.searchKey}`]=h.value),C.value&&Object.assign(R,C.value),R});let w=!0;const N=async(R,X,Q)=>{try{if($.value===!1)return;let U=null;ue(h.value)||(U=te=>{const ae=eo(d,te);if(typeof ae=="string"&&ae.includes(h.value))return!0;const se=Ts(d,te);return!!(typeof se=="string"&&se.includes(h.value))});const J=await k.load("actionsheet",R,X,Q,A.value,w,U??void 0);w=!1,Array.isArray(J)?(f.value=J,m.value=1,$.value=!1):!Array.isArray(J.page)||J.page.length===0?(console.warn("[FoxUI] can not load more data"),$.value=!1):(Reflect.apply([].push,f.value,J.page),m.value=Math.ceil(f.value.length/d.pageSize),(J.totalSize&&f.value.length>=J.totalSize||Q<J.page.length)&&($.value=!1)),T.value=!1}catch(U){console.error("[FoxUI] ActionSheet load more data fail",U),$.value=!0,m.value=0,f.value=[]}setTimeout(()=>{S("loaded-data")},250)},T=t.ref(!1),$=t.ref(!0),E=async()=>{if(!d.source){T.value=!1;return}await N(d.source,m.value+1,d.pageSize)};let D=null;t.watch(h,(R,X)=>{D&&(clearTimeout(D),D=null),ue(R)&&!ue(X)&&(D=setTimeout(()=>{K()},d.searchDelayTriggerClear))});const P=()=>{$.value=!0,m.value=0,f.value=[],d.source&&E()},K=()=>{P()};t.watch([()=>d.source,()=>d.pageSize,()=>d.params],async([R,X,Q])=>{d.source&&P()},{immediate:!0});const V=t.computed(()=>!d.multiple&&d.isAutoBackFill),I=t.ref([]);let L=null;const x=t.ref(d.visible);t.watch(()=>d.visible,R=>{x.value!==R&&(x.value=R),R?L=[...I.value]:L=null});const W=(R,X)=>{const Q=[];return Array.isArray(R)||(R=[R]),R.forEach(U=>{let J=Gm(d,X,U,d.valueType);J!==-1&&Q.push(J)}),Me(Q,I.value)?!1:(I.value=Q,!0)};t.watch([()=>d.modelValue,()=>f.value],([R,X],[Q,U])=>{if(W(R,X)){const te=j();O(te)}},{deep:!0});const j=()=>{const R=[],X=[],Q=[];for(let ae of I.value){const se=f.value[ae];X.push(se);const de=eo(d,se);if(Q.push(de),d.valueType==="item")R.push(se);else if(d.valueType==="text")R.push(de);else{const $e=$s(d,se);R.push($e)}}let U=null,J=null,te=null;return d.multiple?(U=R,J=Q,te=X):(U=R[0]??null,J=Q[0]??null,te=X[0]??null),{value:U,text:J,item:te}},O=R=>{S("update:modelValue",R.value),S("update:text",R.text),S("change",R.value,R.item,R.text)},ee=()=>{L&&(I.value=L)},H=R=>{const X=I.value.indexOf(R);d.multiple?X===-1?I.value.push(R):I.value.splice(X,1):X===-1?I.value=[R]:I.value=[],(V.value||!d.poppable&&!d.showFooter)&&v()},q=R=>{x.value=R,S("update:visible",R)},M=()=>{const R=()=>{ee(),q(!1)},X=d.beforeMethod??d.beforeClose;if(typeof X=="function"){const Q=X("close");mt(Q)?Q.then(U=>{U!==!1&&R()}).catch(()=>{R()}):Q!==!1&&R()}else R()},v=()=>{const R=j(),X=()=>{O(R),q(!1)},Q=d.beforeMethod??d.beforeClose;if(typeof Q=="function"){const U=Q("confirm",R.value,R.item,R.text);mt(U)?U.then(J=>{J!==!1&&X()}).catch(()=>{X()}):U!==!1&&X()}else X()},Y=()=>{let R=y.title.value??"";g.title&&(R=g.title());const X=t.h("view",{class:["fox-actionsheet__header-title"]},[R]),Q=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:M});return t.h("view",{class:["fox-actionsheet__header"]},[X,Q])},z=()=>{let R=null;if(g.search)R=g.search();else{const X={onSearch:P,placeholder:y.seachPlaceholder.value,disabled:d.disabled,modelValue:h.value,"onUpdate:modelValue":Q=>{h.value=Q}};R=t.h(r,X,{leftin:()=>t.h(u)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[R])},F=(R,X,Q,U,J)=>{if(g.optionLabel)return g.optionLabel({text:R,checked:X,disabled:Q,subText:U,item:J});const te=[],ae=t.h("view",{class:"fox-actionsheet__list-item-text"},[R]);if(te.push(ae),U){const se=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[U]);te.push(se)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},te)},G=(R,X,Q,U)=>{if(g.optionIcon)return g.optionIcon({checked:R,disabled:X,iconSize:Q,item:U});if(R){if(g.checkedIcon)return g.checkedIcon({disabled:X,item:U});{const J=d.checkedIcon??s;return t.h(J,{width:Q,height:Q,class:["fox-actionsheet__list-item-icon"]})}}else{if(g.icon)return g.icon({disabled:X,item:U});{const J=d.icon??i;return t.h(J,{width:Q,height:Q,class:["fox-actionsheet__list-item-icon"]})}}},Z=()=>{const R=[];for(let X=0;X<f.value.length;X++){const Q=f.value[X],U=eo(d,Q),J=Ts(d,Q),te=["fox-actionsheet__list-item"],ae={};let se=Zm(d,Q),de=d.iconSize?fe(d.iconSize):null;const $e=Jm(d,Q,X);$e&&(se=se||$e.disabled,$e.class&&te.push($e.class),$e.style&&Object.assign(ae,$e.style)),se=!!(d.disabled||se);const Ne=I.value.includes(X);se&&te.push("is-disabled"),Ne&&te.push("is-checked");const ao={class:te,style:ae,key:`${X}`,onClick:()=>{se||H(X)}};let ft=[];if(g.option)ft.push(g.option({item:Q,checked:Ne,disabled:se}));else{const u2=F(U,Ne,se,J,Q);ft.push(u2);const f2=G(Ne,se,de,Q);ft.push(f2),d.textPosition==="right"&&ft.reverse()}const d2=t.h("view",ao,ft);R.push(d2)}return R},ne=()=>{let R=[];if(g.buttons)R=g.buttons();else{const Q=t.h(l,{type:"primary",block:"block",onClick:v,disabled:d.disabled},{default:()=>y.confirmText.value});R.push(Q)}return t.h("view",{class:"fox-actionsheet__footer"},[R])};return ve({search:async(R=null,X=!0)=>{C.value=R&&t.toRaw(R),t.triggerRef(C),X&&($.value=!0,m.value=0,f.value=[]),t.nextTick(()=>{E()})},clear:()=>{$.value=!0,m.value=0,f.value=[]},confirm:()=>{v()},cancel:()=>{M()}}),()=>{const R=[];if(d.showHeader){const de=Y();R.push(de)}if(d.showSearchbar){const de=z();R.push(de)}let X=null;if(g.content)X=g.content();else{const de=Z(),$e={hasMore:$.value,loadText:y.loadText.value,loadMoreText:y.loadMoreText.value,modelValue:T.value,"onUpdate:modelValue":Ne=>{T.value=Ne},onLoadMore:E};X=t.h(o,$e,{default:()=>de})}const Q={};d.optionsHeight&&(Q.height=d.optionsHeight);const U={"fox-actionsheet__list":!0};d.poppable||(U["fox-actionsheet__list--inner"]=!0);const J=t.h("view",{class:U,style:Q},[X]);if(R.push(J),d.showFooter&&!V.value){const de=ne();R.push(de)}const te=t.h("view",{class:"fox-actionsheet"},R);if(!d.poppable)return te;const ae=["fox-actionsheet__popup"];d.popClass&&ae.push(d.popClass);const se={popClass:ae.join(" "),visible:x.value,closeable:!1,"onUpdate:visible":q,position:d.position,round:"round",onClickOverlay:M,closeOnClickOverlay:d.closeOnClickOverlay};return t.h(a,se,{default:()=>te})}}}}const{componentName:np,create:op,scope:lp}=_("actionsheet-pane"),to=op(tp(np,lp,me,Zn,ze,Jn,le.CheckNormal,le.Checked,le.Close,le.Search2)),Vs={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 ap(e,n,a,o,l,r,i){return{props:{...he,...ye,...Vs,..._n},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(s,c){const u=De(t.computed(()=>s.disabled)),p=Ee(t.computed(()=>s.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return u.value}},s.prop??c.attrs.name),{toLocaleRefs:g}=ie.useFoxI18n(n),S=g(s,["placeholder"]),b=t.ref(!1),y=Pe(s,"modelValue",null,d),k=t.ref(""),f=t.computed(()=>Array.isArray(k.value)?k.value.join(s.separator):k.value),m="fox-input-item",h=t.computed(()=>({[m]:!0,"is-disabled":u.value,"is-readonly":p.value})),C=Ve(t.computed(()=>s.textAlign),"textAlign"),A=t.computed(()=>{const v={};return C.value&&(v["text-align"]=C.value),v}),w=t.ref(!1),N=()=>{w.value=!0},T=v=>{w.value=v},$=v=>{y.value=v,d("update:modelValue",v)},E=(v,Y)=>{d("change",v,Y)},D=v=>{let z=v.target.value;b.value=!0,d("focus",z,v)},P=v=>{setTimeout(()=>{b.value=!1},0);let z=v.target.value;s.maxLength&&z.length>Number(s.maxLength)&&(z=z.slice(0,Number(s.maxLength))),d("blur",z,v)},K=v=>{k.value=v,d("update:text",v)},V=t.computed(()=>({[`${m}__append`]:!0,"is-disabled":u.value,"is-readonly":p.value})),I=t.computed(()=>ke(s.unit)>0),L=t.computed(()=>ke(s.unit)>0&&!b.value),x=t.computed(()=>({hidden:!L.value})),W=v=>{y.value="",d("update:modelValue","",v),d("change","",v),d("clear","")},j=t.computed(()=>s.clearable&&!u.value&&!p.value),O=t.computed(()=>ke(y.value)>0&&b.value),ee=v=>{O.value?W(v):N()},H=t.computed(()=>O.value&&j.value?o:l),q=t.computed(()=>({action:!0})),M=t.ref(null);return ve({search:v=>{M.value&&M.value.search(v)},clear:()=>{M.value&&M.value.clear},confirm:v=>{M.value&&M.value.confirm()},cancel:()=>{M.value&&M.value.cancel()}}),()=>{const v={class:h.value,style:A.value,type:"text",maxlength:s.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:D,onBlur:P},Y=[],z=t.h("input",v);Y.push(z);const F=[],G={class:["action-icon"]},Z=t.h(H.value,G),ne={class:q.value,onClick:ee},R=t.h("view",ne,{default:()=>[Z]});if(F.push(R),I.value){const Ne=t.h("view",{class:x.value},[s.unit]);F.push(Ne)}const X={class:V.value},Q=t.h("view",X,{default:()=>F});Y.push(Q);const U={default:()=>Y};U.label=c.slots.default,U.prepend=c.slots.prepend,U.append=c.slots.append,U.fixedPreTip=c.slots.fixedPreTip,U.fixedTip=c.slots.fixedTip;const J=Se(s,_n);J.ref=M,J.class=s.actionsheetProps,J.disabled=u.value||p.value,J.visible=w.value,J["onUpdate:visible"]=T,J.modelValue=y.value,J["onUpdate:modelValue"]=$,J.text=k.value,J["onUpdate:text"]=K,J.onChange=E,J.poppable=!0,J["text-position"]=s.textPosition;const te={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},ae=t.h(r,J,te);U.hide=()=>[ae];const de={...rt(s,Vs,_n)};return s.prop&&(de.prop=`${s.prop}_item`),t.h(a,de,U)}}}}const{componentName:rp,create:sp,scope:ip}=_("actionsheet-item"),fl=sp(ap(rp,ip,Be,le.CircleClose,le.ArrowRight,to)),ml={modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{componentName:cp,create:dp}=_("input-number"),up=dp({components:{Minus:le.Minus,Plus:le.Plus},props:{...ml},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const S=cp;return{[S]:!0,[`${S}--disabled`]:e.disabled}}),o=S=>Number(S).toFixed(Number(e.decimalPlaces)),l=S=>{const b=S.target;n("update:modelValue",b.valueAsNumber,S)},r=(S,b)=>{let y=o(S);n("update:modelValue",y,b),n("change",y,b)},i=(S=Number(e.modelValue))=>S<Number(e.max)&&!e.disabled,s=(S=Number(e.modelValue))=>S>Number(e.min)&&!e.disabled,c=S=>{if(n("reduce",S),s()){let b=Number(e.modelValue)-Number(e.step);r(b,S)}else n("overlimit",S,"reduce")},u=S=>{if(n("add",S),i()){let b=Number(e.modelValue)+Number(e.step);r(b,S)}else n("overlimit",S,"add")},p=S=>{e.disabled||e.readonly||n("focus",S)},d=S=>{if(e.disabled||e.readonly)return;let y=S.target.valueAsNumber;y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),r(y,S),n("blur",S)},g=S=>{let b=Number(S);return b<Number(e.min)?b=Number(e.min):b>Number(e.max)&&(b=Number(e.max)),b};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const S=g(e.modelValue);S!==Number(e.modelValue)&&r(S,{})}),{classes:a,change:l,blur:d,focus:p,add:u,addAllow:i,reduce:c,reduceAllow:s,toPxDesc:ge}}}),fp=["min","max","disabled","readonly","value"];function mp(e,n,a,o,l,r){const i=t.resolveComponent("Minus"),s=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(i,{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,fp),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(s,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2)],2)}const nt=oe(up,[["render",mp]]);function pp(e,n,a,o){return{props:{...he,...ye,...ml},emits:["change","update:modelValue","setValue","add","reduce"],setup(l,r){const i=De(t.computed(()=>l.disabled)),s=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!i.value&&!s.value}},l.prop??r.attrs.name),u=e,p=Pe(l,"modelValue",null,c),d=b=>{p.value=b,c("update:modelValue",b,{}),c("change",b,{})},g=b=>{c("add",b)},S=b=>{c("reduce",b)};return()=>{const b={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},y=Se(l,ml),f={...r.attrs,...y,disabled:i.value,readonly:s.value,value:p.value,"onUpdate:modelValue":d,onAdd:g,onReduce:S},m=t.h(o,f,b),h=[];h.push(m);const C={default:()=>h};C.label=r.slots.default,C.fixedPreTip=r.slots.fixedPreTip,C.fixedTip=r.slots.fixedTip;const w={...Se(l,ye,he)};return l.prop&&(w.prop=`${l.prop}_item`),w["content-class"]=u,t.h(a,w,C)}}}}const{componentName:hp,create:gp,scope:yp}=_("inputnumber-item"),pl=gp(pp(hp,yp,Be,nt)),bp={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function kp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Es(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ds(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Sp(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function hl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Is(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function xs(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function gl(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Cp=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await Reflect.apply(a,null,[o]);const l=_e(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(l,null,[a,o]))}};function wp(){const e=t.getCurrentInstance();return new Cp(e.proxy)}function Np(e,n,a,o){return{props:{...bp},emits:["update:modelValue","change","loaded-data","click"],setup(l,{slots:r,emit:i}){const s=e,c=wp(),u=t.ref([]),p=t.computed(()=>u.value.filter(q=>Sp(l,q)!==!1)),d=t.ref(-1),g=()=>{const q=l.modelValue,M=p.value.findIndex(v=>Es(l,v)===q);d.value!==M&&(d.value=M,l.scroll&&ee(M))};t.watch([()=>l.modelValue,p],()=>{g()});const S=q=>d.value===q,b=q=>{if(q<0&&q>=p.value.length)return!1;const M=p.value[q],Y=(gl(l,M,q)??{}).status??hl(l,M);return S(q)||Y},y=t.computed(()=>{const q={[s]:!0};return l.mode?q[`is-${l.mode}`]=!0:l.direction&&(q[`is-${l.direction}`]=!0),l.scroll&&(q["is-scroll"]=!0),q}),k=t.computed(()=>({})),f=(q,M,v,Y,z)=>{const F={[`${s}__step`]:!0};return z&&(F[`${z}`]=!0),F[`${m.value}`]=!0,Y&&(F["is-doit"]=!0),q===d.value?F["is-active"]=!0:M==="done"?F["is-done"]=!0:M==="error"?F["is-error"]=!0:M==="half"?F["is-half"]=!0:v?F["is-disabled"]=!0:F["is-normal"]=!0,F},m=t.computed(()=>{if(l.mode==="simple")return"start";let q=l.align;return q||(l.direction==="vertical"?q="start":q="center"),q}),h=(q,M={})=>{const v={...M};return m.value==="start"&&q===p.value.length-1?v.flex="0 0 auto":l.step?l.direction==="vertical"?v.height=l.step:v.width=l.step:v.flex="1 1 100%",v},C=(q,M)=>{let v={};if(M<p.value.length-1){const Y=M+1;b(M)&&b(Y)?l.direction==="vertical"?v.height="100%":v.width="100%":v.opacity="0"}return v},A=q=>p.value.length-1===q,w=(q,M)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&M>d.value||d.value===M)return;const v=d.value,Y=M;d.value=M,l.scroll&&ee(M);const z=Es(l,q);i("update:modelValue",z);const F={fromIndex:v,currentIndex:Y,item:q,items:p.value,clickNavigatePolicy:l.clickNavigatePolicy};i("change",z,F)},N=t.ref(!0),T=async(q,M)=>{try{const v=await c.load("stesbar",q,M);Array.isArray(v)&&(u.value=v),N.value=!1}catch(v){console.error("[FoxUI] Load StepsBar Data Fail",v),u.value=[]}setTimeout(()=>{i("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([q,M])=>{q&&T(q,M)},{immediate:!0});const $=(q,M,v,Y,z)=>{let F=null;if(r.icon)F=r.icon({item:q,index:M,status:Y});else if(Y==="done"){const Z={};l.iconSize&&(Z.width=l.iconSize,Z.height=l.iconSize);const ne=l.icon??a;F=t.h(ne,Z)}else{const Z=v??`${M+1}`;F=t.h("span",{},[Z])}const G={class:"fox-steps-bar__icon",onClick:()=>{i("click",{item:q,index:M}),!z&&w(q,M)}};return t.h("view",G,[F])},E=(q,M,v)=>{const Y=t.h("i",{class:"fox-steps-bar__line-inner",style:C(q,M)});return t.h("view",{class:"fox-steps-bar__line"},[Y])},D=()=>{let q=null;if(r.markIcon)q=r.markIcon();else{const v={};l.iconSize&&(v.width=l.markIconSize,v.height=l.markIconSize);const Y=l.markIcon??o;q=t.h(Y,v)}return t.h("view",{class:"fox-steps-bar__mark"},[q])},P=(q,M,v,Y,z)=>{const F=[];if(!A(M)){const ne=E(q,M);F.push(ne)}const G=$(q,M,v,Y,z);F.push(G);const Z={class:"fox-steps-bar__head"};return t.h("view",Z,F)},K=(q,M,v,Y)=>{let z=null;r.main?z=r.main({item:q,index:M,status:v}):z=kp(l,q);const F={class:"fox-steps-bar__main",onClick:()=>{i("click",{item:q,index:M}),!Y&&w(q,M)}};return t.h("view",F,[z])},V=(q,M,v)=>{let Y=null;if(r.sub){Y=r.sub({item:q,index:M,status:v});const z={class:"fox-steps-bar__sub"};return t.h("view",z,[Y])}return null},I=(q,M)=>{const v=gl(l,q,M)??{},Y=v.status??hl(l,q);let z=Ds(l,q);v.disabled===!0&&(z=!0),l.disabled===!0&&(z=!0);const F=v.label??xs(l,q),G=[],Z=$(q,M,F,Y,z);Z&&G.push(Z);const ne=K(q,M,Y,z);if(ne&&G.push(ne),!A(M)){const te=E(q,M);te&&G.push(te)}const R=t.h("view",{class:"fox-steps-bar__head"},G),X=v.class,Q=v.style??{};let U=Is(l,q);v.doit===!0&&(U=!0);const J={ref:O(M),class:f(M,Y,z,U,X),style:h(M,Q)};return t.h("view",J,[R])},L=(q,M)=>{const v=gl(l,q,M)??{},Y=v.status??hl(l,q);let z=Ds(l,q);v.disabled===!0&&(z=!0),l.disabled===!0&&(z=!0);const F=v.label??xs(l,q),G=[],Z=l.layout;for(let U of Z)if(U==="head"){const J=P(q,M,F,Y,z);G.push(J)}else if(U==="main"){const J=K(q,M,Y,z);G.push(J)}else if(U==="sub"){const J=V(q,M,Y);G.push(J)}else if(U==="mark"){const J=D();G.push(J)}const ne=v.class,R=v.style??{};let X=Is(l,q);v.doit===!0&&(X=!0);const Q={ref:O(M),class:f(M,Y,z,X,ne),style:h(M,R)};return t.h("view",Q,G)},x=t.ref(),W=t.ref([]),j=(q,M)=>{W.value[M]=q},O=q=>M=>{j(M,q)},ee=(q,M)=>{const v=x.value,Y=W.value;if(!v||!Y||!Y[q])return;const z=Y[q];let F=0;l.direction==="vertical"?F=z.offsetTop-(v.offsetHeight-z.offsetHeight)/2:F=z.offsetLeft-(v.offsetWidth-z.offsetWidth)/2,H(v,F,.3,l.direction)},H=(q,M,v,Y)=>{let z=0;const F=Y==="horizontal"?q.scrollLeft:q.scrollTop,G=Math.round(v*1e3/16);function Z(){Y==="horizontal"?q.scrollLeft+=(M-F)/G:q.scrollTop+=(M-F)/G,++z<G&&Ue(Z)}Z()};return()=>{const q=[];if(l.mode==="simple")for(let v=0;v<p.value.length;v++){const Y=p.value[v],z=I(Y,v);q.push(z)}else for(let v=0;v<p.value.length;v++){const Y=p.value[v],z=L(Y,v);q.push(z)}const M={ref:x,class:y.value,style:k.value};return t.h("view",M,q)}}}}const{componentName:Bp,create:Ap,scope:Tp}=_("steps-bar"),yl=Ap(Np(Bp,Tp,le.Checklist,le.ArrowRight));function $p(e){e.stopPropagation()}class Vp{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,a){this.startMove=n,this.updateMove=a,this.isTouch=Ho()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=jo(),o=(l,r,i,s)=>{this.updateMove({x:l,y:r})};this.touchstart=l=>{this.moving||(a.start(l),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(a.move(l),$p(l),o(a.state.deltaX,a.state.deltaY))},this.touchend=()=>{o(a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),a.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Ep(e,n){return new Vp(e,n)}const Dp={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]}},Ip=(e,n,a,o=!1)=>({props:{...Dp},emits:["click"],setup(l,{slots:r,emit:i}){const s=t.reactive({top:l.top,right:l.right,bottom:l.bottom,left:l.left}),c=t.computed(()=>{const m=[`${e}`];return l.customClass&&m.push(l.customClass),m}),u=t.computed(()=>{const m={};return ue(s.top)||(m.top=s.top),ue(s.right)||(m.right=s.right),ue(s.bottom)||(m.bottom=s.bottom),ue(s.left)||(m.left=s.left),ue(l.width)||(m.width=l.width),ue(l.height)||(m.height=l.height),ue(l.color)||(m.color=l.color),ue(l.background)||(m.background=l.background),ue(l.borderRadius)||(m["border-radius"]=l.borderRadius),m}),p=t.computed(()=>({[`${e}__icon`]:!0})),d=()=>{i("click")},g=t.ref(null),S=()=>{s.top=null,s.right=null,s.bottom=null,s.left=null},b={x:0,y:0},f=Ep(m=>{if(!g.value)return;const h=g.value;S(),s.left=h.offsetLeft,s.top=h.offsetTop,h.style.left=`${s.left}px`,h.style.top=`${s.top}px`,h.style.right=null,h.style.bottom=null,b.x=s.left,b.y=s.top},m=>{if(!g.value)return;const h=g.value;S(),s.left=b.x+m.x,s.top=b.y+m.y,h.style.left=`${s.left}px`,h.style.top=`${s.top}px`});return t.onMounted(()=>{if(l.draggable&&g.value){const m=[g.value];f.open(m)}}),t.onBeforeUnmount(()=>{l.draggable&&g.value&&f.close()}),()=>{let m=[];const h=typeof r.default=="function"?r.default():[];if(h&&h.length>0)m=h;else{const A=t.h(a,{class:p.value});m.push(A)}const C={ref:A=>{g.value=A},class:c.value,style:u.value,onClick:d};return t.h("view",C,m)}}}),{componentName:xp,create:vp,scope:qp}=_("floating-button"),bl=vp(Ip(xp,qp,le.Uploader,!1)),Pp={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1}};function Mp(e,n,a){return{props:{...Pp},emits:["click","update:modelValue"],setup(o,{emit:l}){const r=t.computed(()=>{const d={[`${e}`]:!0};return o.disabled?d[`${e}--disabled`]=!0:d[`${e}--${o.type}`]=!0,d}),i=Pe(o,"modelValue"),s=t.computed(()=>i.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),u=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!i.value,"is-collapse":i.value})),p=()=>{l("update:modelValue",!i.value)};return()=>{const d=[];if(s.value){const k={class:c.value},f=t.h("span",k,[s.value]);d.push(f)}const g={class:u.value},S=o.icon??a,b=t.h(S,g);return d.push(b),o.textPosition==="right"&&d.reverse(),t.h("view",{class:r.value,onClick:p},d)}}}}const{componentName:Lp,create:zp,scope:Op}=_("more-button"),kl=zp(Mp(Lp,Op,le.RectUp)),Fp={width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},Rp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Kp(e,n,a){return{props:{...Fp},setup(o,{attrs:l,slots:r}){const{toLocaleRefs:i}=ie.useFoxI18n(n),s=i(o,["confirmText","cancelText"]),c=e,u=t.ref(!0),p=C=>{u.value=C},d=C=>{if(typeof o.unmount=="function")try{o.unmount()}catch(A){console.error(A)}if(typeof o.callback=="function")try{o.callback(C)}catch(A){console.error(A)}},g=()=>{d("confirm")},S=()=>{d("cancel")},b=()=>{o.closeOnClickOverlay!==!1&&d("close")},y=(C,A)=>Rp(C)?(A.src=C,t.h("img",A)):typeof C=="string"?(Array.isArray(A.class)?A.class.push(C):A.class&&typeof A.class=="object"?A[`${C}`]=!0:typeof A.class=="string"?A.class=`${A.class}, ${C}`:A.class=C,t.h(o.tag,A)):t.h(C,A),k=()=>{const C=[];if(o.icon){const w={class:[`${c}__header-icon`]},N=y(o.icon,w);C.push(N)}if(o.title){const w=t.h("view",{class:`${c}__header-title`},[o.title]);C.push(w)}if(o.showClose&&o.closeIcon){const w={class:[`${c}__header-close-icon`],onClick:b},N=y(o.closeIcon,w);C.push(N)}const A={class:[`${c}__header`]};return t.h("view",A,C)},f=(C,A)=>{const w=[];if(A){const T={class:`${c}__group-title`},$=t.h("view",T,[A]);w.push($)}if(C){const T=[];Array.isArray(C)||(C=[C]);for(let $ of C){const E={class:`${c}__group-row`,innerHTML:$},D=t.h("view",E);T.push(D)}if(T.length>0){const $={class:`${c}__group-rows`},E=t.h("view",$,T);w.push(E)}}if(w.length===0)return null;const N={class:`${c}__group`};return t.h("view",N,w)},m=()=>{const C=[];if(typeof o.message=="string")C.push(o.message);else if(Array.isArray(o.message))for(let w of o.message)if(typeof w=="string"){const N=f(w);C.push(N)}else{const N=f(w.content,w.title);C.push(N)}else if(typeof o.message=="function"){const w=o.message();C.push(w)}else{const w=o.message;C.push(w)}const A={class:`${c}__body`};return t.h("view",A,C)},h=()=>{const C=[];if(o.showCancelButton){const w={class:[`${c}__footer-button`],style:{},onClick:S};o.cancelButtonClass&&w.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(w.style,o.cancleButtonStyle);const N=t.h("button",w,[o.cancelButtonText??s.cancelText.value]);C.push(N)}if(o.showConfirmButton){const w={class:[`${c}__footer-button`],style:{},onClick:g};o.confirmButtonClass&&w.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(w.style,o.confirmButtonStyle);const N=t.h("button",w,[o.confirmButtonText??s.confirmText.value]);C.push(N)}if(C.length===0)return null;const A={class:`${c}__footer`};return t.h("view",A,C)};return()=>{const C=[],A=k();A&&C.push(A);const w=m();w&&C.push(w);const N=h();N&&C.push(N);const T={class:{[`${c}`]:!0,[`${c}--${o.type||"info"}`]:!0}},$=t.h("view",T,C),E=[`${c}__popup`];o.popClass&&E.push(o.popClass);const D={};o.width&&(D.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(D.height=typeof o.height=="number"?`${o.height}px`:o.height);const P={popClass:E.join(" "),style:D,visible:u.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":p,position:o.position,round:"round",onClickOverlay:b,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,P,{default:()=>$})}}}}const{componentName:Up,create:Hp,scope:jp}=_("messagebox"),Wp=Hp(Kp(Up,jp,me)),Yp="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",Xp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cpath%20d='M8%2087L8%2095C8%2095.5523%207.55228%2096%207%2096C6.44772%2096%206%2095.5523%206%2095L6%2087L2%2087C1.44772%2087%201%2086.5523%201%2086C1%2085.4477%201.44772%2085%202%2085L6%2085L6%2082C6%2081.4477%206.44772%2081%207%2081C7.55228%2081%208%2081.4477%208%2082L8%2085L12%2085C12.5523%2085%2013%2085.4477%2013%2086C13%2086.5523%2012.5523%2087%2012%2087L8%2087Z'%20fill-rule='evenodd'%20fill='%2396CEFF'%20%3e%3c/path%3e%3cpath%20d='M89%205L89%2010C89%2010.5523%2088.5523%2011%2088%2011C87.4477%2011%2087%2010.5523%2087%2010L87%205L85%205C84.4477%205%2084%204.55228%2084%204C84%203.44772%2084.4477%203%2085%203L87%203L87%201C87%200.447715%2087.4477%200%2088%200C88.5523%200%2089%200.447715%2089%201L89%203L91%203C91.5523%203%2092%203.44772%2092%204C92%204.55228%2091.5523%205%2091%205L89%205Z'%20fill-rule='evenodd'%20fill='%23BDE2FF'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23237FFA'%20%3e%3c/circle%3e%3crect%20x='47.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%2396CEFF'%20%3e%3c/rect%3e%3crect%20x='47.5'%20y='66'%20width='7'%20height='7'%20rx='4'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3c/svg%3e",Qp="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",Gp="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",Zp=new In,Jp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},_p=e=>{let n=document.body,a=e.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):a&&(n=e.teleport));const o=document.createElement("view"),l=`messagebox-${Zp.get()}`;o.id=l,o.classList.add("fox-messagebox__root"),e.zIndex&&(o.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const i=document.querySelector(`#${l}`);i&&i.parentNode?.removeChild(i)};const r=t.createVNode(Wp,e);n.appendChild(o),t.render(r,o)},ut={show:(e,n,a,o)=>{const l={...Jp};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(l,n):(n&&(l.message=n),a&&typeof a=="object"?Object.assign(l,a):(typeof a=="string"&&(l.title=a),o&&typeof o=="object"?Object.assign(l,o):typeof o=="string"&&(l.type=o)));const r=l.type??"info";return l.icon||(r==="success"?l.icon=Qp:r==="warning"?l.icon=Gp:r==="error"?l.icon=Yp:l.icon=Xp),e==="alert"?(l.showCancelButton=!1,l.showConfirmButton=!0):e==="confirm"&&(l.showCancelButton=!0,l.showConfirmButton=!0),l.showClose&&!l.closeIcon&&(l.closeIcon=le.Close),new Promise((i,s)=>{const c=l.callback;l.callback=u=>{if(typeof c=="function")try{c(u)}catch(p){console.error(p)}i({action:u})},_p(l)})},alert:(e,n,a)=>ut.show("alert",e,n,a),confirm:(e,n,a)=>ut.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=ut.alert,e.config.globalProperties.$confirm=ut.confirm}},eh=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let l=!0,r=!0;for(let s in n)s==="bubbles"?l=!!n[s]:s==="cancelable"?r=!!n[s]:o[s]=n[s];o.initEvent(e,l,r),(a??document).dispatchEvent(o)},th=new In,nh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),oh=e=>`${e}-${th.get()}`,lh=Symbol.for("InnerPageScopeKey"),ah=Symbol.for("PageWrapperKey"),rh="FoxLeave",sh="FoxLeaveEnd",ih={width:{type:[String,Number]},height:{type:[String,Number]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!0},showDelay:{type:Number,default:10},showClose:{type:Boolean,default:!0},closeIcon:{type:Object},showHeader:{type:Boolean,default:!1},popClass:{type:String},popStyle:{type:Object},position:{type:String,default:"center"},mode:{type:String}};function ch(e,n,a,o){return{props:{...Fe,...ih},emits:["update:visible"],setup(l,{attrs:r,slots:i,emit:s}){t.provide(lh,!0);const c={};t.provide(ah,c);const u=w=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),p=()=>{u()},d=e,g=w=>{S.value=w,s("update:visible",w)},S=t.ref(!1),b=(w,N)=>nh(w)?(N.src=w,t.h("img",N)):typeof w=="string"?(Array.isArray(N.class)?N.class.push(w):N.class&&typeof N.class=="object"?N[`${w}`]=!0:typeof N.class=="string"?N.class=`${N.class}, ${w}`:N.class=w,t.h(l.tag,N)):t.h(w,N),y=()=>{if(!l.showHeader)return null;const w=[];if(i.header){const T=i.header();w.push(T)}else if(l.title){const T=t.h("view",{class:`${d}__header-title`},[l.title]);w.push(T)}if(w.length===0)return null;const N={class:[`${d}__header`]};return t.h("view",N,w)},k=()=>{if(!l.showClose)return null;const w={class:[`${d}__close-icon`],onClick:p},N=l.closeIcon??o;return b(N,w)};let f=null;const m=w=>{eh(sh,{},f)},h=oh(e),C=()=>{g(!0)},A=()=>{if(!f)return;const w=f.querySelector(".fox-overlay");w&&(w.classList.add("overlay-fade-leave-active"),w.classList.add("overlay-fade-leave-to"));const N=f.querySelector(".fox-popup");N&&(N.classList.add(`fox-popup-slide-${l.position}-leave-active`),N.classList.add(`fox-popup-slide-${l.position}-leave-to`),N.addEventListener("animationend",m,{once:!0}),N.addEventListener("transitionend",m,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{f=document.querySelector(`.${h}`),f?.addEventListener(rh,A,{once:!0}),C()}),()=>{const w=[],N=y();N&&w.push(N);const T=k();T&&w.push(T);const $=i.default?i.default():[];Reflect.apply([].push,w,$);const E={[`${d}`]:!0};l.mode&&(E[`${d}--${l.mode}`]=!0);const D={class:E},P=t.h("view",D,w),K=[`${d}__popup`,h];l.popClass&&K.push(l.popClass),l.position&&K.push(`${d}__popup--${l.position}`);const V={};l.width&&(V.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(V.height=typeof l.height=="number"?`${l.height}px`:l.height);const L={...Se(l,Fe),popClass:K.join(" "),style:V,visible:S.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":g},x=t.h(a,L,{default:()=>P});return t.h("div",{class:[`${d}__root`,h]},[x])}}}}const{componentName:dh,create:uh,scope:fh}=_("popup-wrapper"),Sl=uh(ch(dh,fh,me,le.Close)),mh={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function ph(e,n,a,o){return{props:{...mh},emits:["update:visible"],setup(l,{emit:r,slots:i}){const s=c=>{r("update:visible",c)};return()=>{const c=[`${e}__popup`];l.popClass&&c.push(l.popClass);const u={popClass:c,style:l.popStyle??{},position:"top",zIndex:l.zIndex,closeOnClickOverlay:l.closeOnClickOverlay,teleportDisable:!0,visible:l.visible,"onUpdate:visible":s},p=t.h(a,u,i),d={class:`${e}`};return t.h("view",d,[p])}}}}const{componentName:hh,create:gh,scope:yh}=_("dropdown"),Cl=gh(ph(hh,yh,me)),bh={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Number,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]}};function kh(e,n,a=!1){return{props:{...bh},emits:["update:visible"],setup(o,{emit:l,slots:r,expose:i}){const s=t.ref({top:null,right:null,bottom:null,left:null}),c=t.ref(0),u=t.ref(0),p=t.ref(0),d=t.ref(0),g=t.ref(o.placement),S=t.ref(!1),b=t.ref(!1),y=t.ref(null),k=()=>typeof o.reference=="string"?document.querySelector(o.reference):o.reference,f=(O,ee,H,q,M,v,Y,z=!0)=>{const F=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,Z=O.split("-");let ne=[];z?Z[0]==="top"?ne=["top","bottom","right","left"]:Z[0]==="bottom"?ne=["bottom","top","right","left"]:Z[0]==="left"?ne=["left","top","bottom","right"]:Z[0]==="right"&&(ne=["right","top","bottom","left"]):ne=[O[0]];const R={top:null,right:null,bottom:null,left:null},X=[];for(let Q=0;Q<ne.length;Q++){const U=ne[Q];if(X[0]=U,Z[1]&&(X[1]=Z[1]),U==="top"){const J=H-Y-o.arrowSize/2-o.offset;if(J>=0){R.top=J;let te=0;Z[1]==="start"?te=ee:Z[1]==="end"?te=ee+q-v:te=ee+q/2-v/2;const ae=F-te-v;ae<0?(te+=ae,h.value=-ae):h.value=0,R.left=te<0?0:te;break}}else if(U==="bottom"){const J=H+M+o.arrowSize/2+o.offset;if(J+Y<=G){R.top=J;let te=0;Z[1]==="start"?te=ee:Z[1]==="end"?te=ee+q-v:te=ee+q/2-v/2;const ae=F-te-v;ae<0?(te+=ae,h.value=-ae):h.value=0,R.left=te<0?0:te;break}}else if(U==="left"){const J=ee-v-o.arrowSize/2-o.offset;if(J>=0){R.left=J;let te=0;Z[1]==="start"?te=H:Z[1]==="end"?te=H+M-Y:te=H+M/2-Y/2,R.top=te<0?0:te;break}}else if(U==="right"){const J=ee+q+o.arrowSize/2+o.offset;if(J+v<=F){R.left=J;let te=0;Z[1]==="start"?te=H:Z[1]==="end"?te=H+M-Y:te=H+M/2-Y/2,R.top=te<0?0:te;break}}}return{bestPlacement:X.join("-"),bestInsetRect:R}},m=()=>{const O=o.visible,ee=o.autoFit;if(!Ge||O===!1)return;if(o.reference){const Y=k(),z=Po(Y);c.value=z.x,u.value=z.y,p.value=Y.offsetWidth,d.value=Y.offsetHeight}else o.referenceInset&&(c.value=o.referenceInset.left,u.value=o.referenceInset.top,p.value=o.referenceInset.right-o.referenceInset.left,d.value=o.referenceInset.bottom-o.referenceInset.top);const H=y.value.offsetWidth,q=y.value.offsetHeight,{bestPlacement:M,bestInsetRect:v}=f(o.placement,c.value,u.value,p.value,d.value,H,q,ee);g.value=M,s.value=v},h=t.ref(0),C=Ze(()=>{m()},10),A=t.ref(o.visible);t.watch([()=>o.visible],([O])=>{A.value=O,O?(S.value=O,setTimeout(()=>{m(),b.value=!0},0)):b.value=!1});const w=t.computed(()=>A.value&&N.value),N=t.ref(!0),T=Ze(O=>{const ee=O[0];ee&&(N.value=ee.isIntersecting)},10),$=new IntersectionObserver(T);t.watch([()=>o.reference,()=>o.referenceInset],([O,ee],[H,q])=>{!O&&!ee||(setTimeout(()=>{m()},0),o.autoFit&&(H&&(Mt.unwatch(H,C),$.unobserve(H)),O&&(Mt.watch(O,C),$.observe(O))))},{immediate:!0}),t.onBeforeUnmount(()=>{o.reference&&(Mt.unwatch(o.reference,C),$.unobserve(o.reference),$.disconnect())});const E=t.computed(()=>{const O={[e]:!0};return g.value.startsWith("top")?O["is-top"]=!0:g.value.startsWith("right")?O["is-right"]=!0:g.value.startsWith("bottom")?O["is-bottom"]=!0:g.value.startsWith("left")&&(O["is-left"]=!0),O[`is-${o.effect}`]=!0,!b.value&&w.value&&(O["is-opacity"]=!0),b.value&&w.value&&(O["is-show"]=!0),w.value||(O["is-hide"]=!0),o.customClass&&typeof o.customClass=="string"&&(O[`${o.customClass}`]=!0),O}),D=t.computed(()=>{const O={};return s.value.top!==null&&(O.top=`${s.value.top}px`),s.value.right!==null&&(O.right=`${s.value.right}px`),s.value.bottom!==null&&(O.bottom=`${s.value.bottom}px`),s.value.left!==null&&(O.left=`${s.value.left}px`),o.width&&(O.width=o.width),o.zIndex&&(O["z-index"]=`${o.zIndex}`),o.customStyle&&typeof o.customStyle=="object"&&Object.assign(O,o.customStyle),O}),P=()=>{A.value=!1,l("update:visible",!1)},K=()=>{if(!o.showOverlay)return null;const O={class:`${e}__overlay`,onClick:P};return t.h("div",O)},V=()=>{let O=null;return r.title?O=t.h("div",{class:`${e}__title`},{default:r.title}):o.title&&(O=t.h("div",{class:`${e}__title`},[o.title])),O},I=t.computed(()=>({[`${e}__arrow`]:!0})),L=t.computed(()=>{const O={};return o.showArrow?(O.width=`${o.arrowSize}px`,O.height=`${o.arrowSize}px`,g.value==="top"?(O.left="50%",O.bottom="0",O.transform="translate(-50%, 50%)"):g.value==="top-start"?(O.left=`${o.arrowOffset+h.value}px`,O.bottom="0",O.transform="translate(-50%, 50%)"):g.value==="top-end"?(O.right=`${o.arrowOffset-h.value}px`,O.bottom="0",O.transform="translate(-50%, 50%)"):g.value==="right"?(O.left="0",O.top="50%",O.transform="translate(-50%, -50%)"):g.value==="right-start"?(O.left="0",O.top=`${o.arrowOffset}px`,O.transform="translate(-50%, 50%)"):g.value==="right-end"?(O.left="0",O.bottom=`-${o.arrowOffset}px`,O.transform="translate(-50%, 50%)"):g.value==="bottom"?(O.left="50%",O.top="0",O.transform="translate(-50%, -50%)"):g.value==="bottom-start"?(O.left=`${o.arrowOffset+h.value}px`,O.top="0",O.transform="translate(-50%, -50%)"):g.value==="bottom-end"?(O.right=`${o.arrowOffset-h.value}px`,O.top="0",O.transform="translate(-50%, -50%)"):g.value==="left"?(O.right="0",O.top="50%",O.transform="translate(50%, -50%)"):g.value==="left-start"?(O.right="0",O.top=`${o.arrowOffset}px`,O.transform="translate(50%, -50%)"):g.value==="left-end"&&(O.right="0",O.bottom=`-${o.arrowOffset}px`,O.transform="translate(50%, -50%)"),O):{display:"none"}}),x=()=>{const O={class:I.value,style:L.value};return t.h("div",O)},W=()=>{A.value===!1&&(S.value=!1)},j=O=>{if(!y.value||A.value===!1)return;const{relatedTarget:ee}=O;y.value.contains(ee)||(A.value=!1,l("update:visible",!1))};return i({doLayout:m}),()=>{if(!S.value)return null;const O=[],ee=K();ee&&O.push(ee);const H=[],q=V();if(q&&H.push(q),r.default){const z=r.default();H.push(z)}const M=x();M&&H.push(M);const v={ref:y,class:E.value,style:D.value,onAnimationend:W};o.leaveHide&&(v.onMouseleave=j);const Y=t.h("div",v,{default:()=>H});return O.push(Y),O}}}}const{componentName:Sh,create:Ch,scope:wh}=_("popover-dialog"),wl=Ch(kh(Sh,wh,!1));function Nh(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(l)},500)}const Bh={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function Ah(e,n,a,o=!1){return{props:{...Bh},emits:["click"],setup(l,r){const i=t.ref(null),s=t.computed(()=>{const h={[`${e}`]:!0,"is-truncated":l.truncated};return l.type&&(h[`${e}--${l.type??"default"}`]=!0),l.size&&(h[`${e}--${l.size}`]=!0),h}),c=t.computed(()=>{const h={},C=l.textColor??l.color;return C&&(h.color=C),h}),u=(h,C)=>{let A=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const w=l.highlightFilter;if(h.indexOf(w)!==-1){const T=h.replace(new RegExp(w,"g"),`<span>${w}</span>`);C.innerHTML=T,C.class["is-highlight"]=!0,A=t.h(l.tag,C)}}else if(typeof l.highlightFilter=="function"){const w=l.highlightFilter(h);w&&(C.innerHTML=w,C.class["is-highlight"]=!0,A=t.h(l.tag,C))}return A},p=h=>{r.emit("click",h)};let d="";const g=()=>{const h=i.value;if(!h)return;const C=h.clientWidth;Nh(h,A=>{const w=h.innerHTML??"";ue(w)||A<C||(d?a?.show(h,w,{type:"text",id:d,showArrow:l.showArrow},!0):d=a?.show(h,w,{type:"text",showArrow:l.showArrow},!0)??"")})},S=()=>{d&&a?.hide(d)};let b=null;const y=h=>{b||(b=setTimeout(()=>{g(),b=null},l.showAfter??0))},k=h=>{b&&(clearTimeout(b),b=null),setTimeout(()=>{S()},l.hideAfter??0)},f=()=>{const h=i.value;h&&(h.addEventListener("mouseover",y),h.addEventListener("mouseleave",k))},m=()=>{const h=i.value;h&&(h.removeEventListener("mouseover",y),h.removeEventListener("mouseleave",k))};return t.onMounted(()=>{!be(l.showOverflowTooltip)||!a||f()}),t.onBeforeUnmount(()=>{!be(l.showOverflowTooltip)||!a||m()}),()=>{const h={onClick:p,class:s.value,style:c.value,ref:i};let C=null;if(be(l.numberFormat)&&typeof r.slots.default=="function"){const T=r.slots.default();if(Array.isArray(T)&&T.length===1){const $=T[0].type.toString();if($==="Symbol(Text)"||$==="Symbol(v-txt)"){const E=pe(l.digits),D=pe(l.decimalLength),P=be(l.autoPadding);let K=`${T[0].children}`,V=K.split("").reverse().join("");V=on(V,D,P,E,l.separator),K=V.split("").reverse().join(""),l.highlightFilter!==void 0&&(C=u(K,h)),C||(h.innerHTML=K,C=t.h(l.tag,h))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const T=r.slots.default();if(Array.isArray(T)&&T.length===1){const $=T[0].type.toString();if($==="Symbol(Text)"||$==="Symbol(v-txt)"){const E=`${T[0].children}`;C=u(E,h),C||(h.innerHTML=E,C=t.h(l.tag,h))}}}C||(C=t.h(l.tag,h,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return C;let w=null;if(l.icon){const T={[`${e}__mark-wrap`]:!0};l.type&&(T[`${e}__mark-wrap--${l.type}`]=!0);const $={},E=l.color;E&&($.color=E);const D={class:T,style:$};w=t.h("view",D,t.h(l.icon))}else if(r.slots.mark){const T={[`${e}__mark-wrap`]:!0};l.type&&(T[`${e}__mark-wrap--${l.type}`]=!0);const $={},E=l.color;E&&($.color=E);const D={class:T,style:$};w=t.h("view",D,{default:r.slots.mark})}else{const T={[`${e}__mark`]:!0};l.type&&(T[`${e}__mark--${l.type??"default"}`]=!0);const $={},E=l.color;E&&($["background-color"]=E);const D={class:T,style:$};w=t.h("view",D)}const N={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",N,[w,C])}}}}const{componentName:Th,create:$h,scope:Vh}=_("text"),Nl=$h(Ah(Th,Vh,kt,!1));function Eh(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const i=[],s=n[0];if(Array.isArray(e)&&!Array.isArray(s)&&!s[l]){let c=n;for(let u=0;c&&u<r.length;u++){let p=r[u],d=c.find(g=>g[o]===p);if(!d)break;i.push(d[a])}return i}if(Array.isArray(s))for(let c=0;c<n.length&&c<r.length;c++){let u=n[c],p=r[c];const d=u.find(g=>g[o]===p);if(!d)break;i.push(d[a])}else{let c=n;for(let u=0;c&&u<r.length;u++){let p=r[u],d=c.find(g=>g[o]===p);if(!d)break;i.push(d[a]),c=d[l]}}return i}class Dh{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=_e(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ie(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function Ih(){const e=t.getCurrentInstance();return new Dh(e.proxy)}const xh={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 vh(e,n,a=!1){return{props:{...xh},setup(o,{attrs:l,slots:r}){const i=Ih(),s=t.ref([]);t.watch([()=>o.source,()=>o.params],async([p,d])=>{s.value=await i.load(o.sourceType,p,d)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(s.value)||s.value.length===0)return"";let p=Eh(o.modelValue,s.value,o.textKey,o.valueKey,o.childrenKey);return p.length==0?o.emptyText??"":p.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${p[0]}`:p[0]:p.join(o.separator)}),u=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const p={...l};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",{...l,class:o.emptyClass},c.value):t.h(u,p,{default:()=>c.value}):t.h(u,p,c.value)}}}}const{componentName:qh,create:Ph,scope:Mh}=_("mapping"),Bl=Ph(vh(qh,Mh,!1));function Lh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return gr(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:y2,create:zh,scope:b2}=_("domain-provider"),Al=zh(Lh()),Oh={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 Fh(e,n){return{inheritAttrs:!1,props:Oh,setup(a,{slots:o}){if(Ge&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const i=(g,S)=>{if(p===null){r.set(g,{visible:null,callback:S});return}l.has(g)&&p.unobserve(g),l.set(g,{visible:null,callback:S}),p.observe(g)},s=g=>{if(p===null){r.delete(g);return}l.has(g)&&(l.delete(g),p.unobserve(g))};let c=a.initialVisibleObserverSize;Qi({acquire:()=>{const g=c>0;return c--,g},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:i,unobserve:s});let p=null;const d=(g,S,b)=>{p=new IntersectionObserver(y=>{for(let k of y){let f=!1;k.intersectionRatio>0&&(f=!0);const m=l.get(k.target);if(m)try{if(a.loadPolicy==="lazy"&&!f&&m.visible!==null)return;m.visible=f,m.callback(f)}catch(h){console.error(h)}}},{root:g,rootMargin:S,threshold:b}),r.forEach((y,k)=>{l.set(k,y),p?.observe(k)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([g,S])=>{if(S||!g||p)return;let b=null;typeof g=="string"?b=document.querySelector(g):b=g,b&&d(b,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:k2,create:Rh,scope:S2}=_("rolling-provider"),Tl=Rh(Fh()),{componentName:Kh,create:Uh}=_("cell"),Hh=Uh({components:{Right:le.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.computed(()=>{const r=Kh;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:ge(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),jh={key:0,class:"fox-cell__icon"},Wh={key:1,class:"fox-cell__title"},Yh={class:"title"},Xh={class:"fox-cell__title-desc"};function Qh(e,n,a,o,l,r){const i=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",jh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Wh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Yh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Xh,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(i,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const $l=oe(Hh,[["render",Qh]]),{componentName:Gh,create:Zh}=_("cell-group"),Jh=Zh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Gh]:!0}))}}}),_h={key:1,class:"fox-cell-group__title"},eg={key:3,class:"fox-cell-group__desc"},tg={class:"fox-cell-group__wrap"};function ng(e,n,a,o,l,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",_h,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",eg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",tg,[t.renderSlot(e.$slots,"default")])],2)}const Vl=oe(Jh,[["render",ng]]),{componentName:og,create:lg}=_("image"),ag=lg({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:le.Image,ImageError:le.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),o=t.computed(()=>{const S=og;return{[S]:!0,[`${S}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),i=t.ref(null),s=()=>{const S={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(b=>{b.forEach(y=>{y.isIntersecting&&(r.value=!0,l.value.disconnect())})},S),i.value&&l.value.observe(i.value)};t.onMounted(()=>{e.lazyLoad&&s()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let S={};return e.width&&(S.width=ge(e.width)),e.height&&(S.height=ge(e.height)),e.radius!==void 0&&e.radius!==null&&(S.overflow="hidden",S.borderRadius=ge(e.radius)),S}),u=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,S=>{a.isError=!1,a.loading=!0});const p=()=>{a.loading=!1,n("load")},d=()=>{a.isError=!0,a.loading=!1,n("error")},g=S=>{n("click",S)};return{...t.toRefs(a),imageClick:g,classes:o,styles:u,stylebox:c,error:d,load:p,show:r,imgRef:i}}}),rg=["src","date-src","alt"],sg={key:0,class:"fox-img-loading"},ig={key:1,class:"fox-img-error"};function cg(e,n,a,o,l,r){const i=t.resolveComponent("Image"),s=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,rg),e.loading?(t.openBlock(),t.createElementBlock("div",sg,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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",ig,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,width:"16px",height:"20px",name:"imageError"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}const El=oe(ag,[["render",cg]]),{create:dg}=_("layout"),Dl=dg({}),{componentName:ug,create:fg}=_("col"),mg=fg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=ug,a=t.inject("gutter"),o=t.computed(()=>({[n]:!0,[`${n}-gutter`]:a,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),l=t.computed(()=>({paddingLeft:a/2+"px",paddingRight:a/2+"px"}));return{classes:o,style:l}}});function pg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const Il=oe(mg,[["render",pg]]),{componentName:hg,create:gg}=_("row"),yg=gg({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const n=hg;t.provide("gutter",e.gutter);const a=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
5
+ */function nn(e,n="0"){let a=0,o=-1;e[0]=="-"&&(a++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,o=2,n=n.substring(1),n.length),e=Ae(e),n=Ae(n),[e,n]=co(Ae(e),Ae(n)),a==1&&(o==1?e=io(e):n=io(n));let l=Ha(e,n);return a?a==2?"-"+Ae(l):e.length<l.length?Ae(l.substring(1)):"-"+Ae(io(l)):Ae(l)}function io(e){let n="",a=e.length,o=e.split(".")[1],l=o?o.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let r=l>0?"0."+new Array(l).join("0")+"1":"1";return Ha(n,r)}function Ae(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function co(e,n){let a=e.split("."),o=n.split("."),l=a[0].length,r=o[0].length;return l>r?o[0]=new Array(Math.abs(l-r)+1).join("0")+(o[0]?o[0]:""):a[0]=new Array(Math.abs(l-r)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,r=o[1]?o[1].length:0,(l||r)&&(l>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function Ha(e,n){[e,n]=co(e,n);let a="",o=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let r=parseInt(e[l])+parseInt(n[l])+o;a=r%10+a,o=Math.floor(r/10)}return o?o.toString()+a:a}var Ce=(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))(Ce||{});function It(e,n=0,a=Ce.HALF_EVEN){if(a===Ce.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 l=e.split("."),r=l[0],s=l[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=It(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,ja(l[1],r,o,a)?(o?"-":"")+uo(r):(o?"-":"")+r;if(l[1]){if(l[1].length<n)return(o?"-":"")+r+"."+l[1]+new Array(n-l[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");s=l[1].substring(0,n);let i=l[1].substring(n);return i&&ja(i,s,o,a)&&(s=uo(s),s.length>n)?(o?"-":"")+uo(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function ja(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===Ce.DOWN||!a&&o===Ce.FLOOR||a&&o===Ce.CEILING)return!1;if(o===Ce.UP||a&&o===Ce.FLOOR||!a&&o===Ce.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(o){case Ce.HALF_DOWN:return!1;case Ce.HALF_UP:return!0;case Ce.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function uo(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,o="";for(let l=a;l>=0;l--){let r=parseInt(e[l])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function fo(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=vt(e),n=vt(n);let o=0,l=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(l=n.length-n.indexOf(".")-1);let r=o+l;if(e=vt(e.replace(".","")),n=vt(n.replace(".","")),e.length<n.length){let d=e;e=n,n=d}if(n=="0")return"0";let s=n.length,i=0,c=[],u=s-1,f="";for(let d=0;d<s;d++)c[d]=e.length-1;for(let d=0;d<2*e.length;d++){let h=0;for(let S=n.length-1;S>=u&&S>=0;S--)c[S]>-1&&c[S]<e.length&&(h+=parseInt(e[c[S]--])*parseInt(n[S]));h+=i,i=Math.floor(h/10),f=h%10+f,u--}return f=vt(Xs(f,r)),a==1&&(f="-"+f),f}function Xs(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 mo(e,n,a=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var l=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ae(n.replace(".","")),l>=0){let u=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(u==-1)e=Ae(e+new Array(l+1).join("0"));else if(l>u)e=e.replace(".",""),e=Ae(e+new Array(l-u+1).join("0"));else if(l<u){e=e.replace(".","");let f=e.length-u+l;e=Ae(e.substring(0,f)+"."+e.substring(f))}else l==u&&(e=Ae(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(a=a+2;r<=a;){let u=0;for(;parseInt(c)>=parseInt(n);)c=nn(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?"-":"")+Ae(It(i,a-2))}function po(e,n){return e=e.toString(),n=n.toString(),n=ho(n),nn(e,n)}function ho(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Wa(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Ya(e),Ya(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=po(e,fo(n,It(mo(e,n),0,Ce.FLOOR)));return a+o}function Ya(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Xa(e,n){let a=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),a=!0),[e,n]=co(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]?a?-1:1:a?1:-1;return 0}class ce{value;static RoundingModes=Ce;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[a,o]=n.split(/[eE]/);a=Ae(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(o=parseInt(o)+a.indexOf("."),a=a.replace(".","")):o=parseInt(o)+a.length,a.length<o?n=l+a+new Array(o-a.length+1).join("0"):a.length>=o&&o>0?n=l+Ae(a.substring(0,o))+(a.length>o?"."+a.substring(o):""):n=l+"0."+new Array(-o+1).join("0")+a}return n}constructor(n="0"){this.value=ce.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,o){if(!(a||o))a=3,o=",";else if(!(a&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=ce.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var s="",i=r;i>0;)i<a?(a=i,i=0):i-=a,s=n.substring(i,i+a)+(i<r-a&&i>=0?o:"")+s;return(l?"-":"")+s+n.substring(r)}getPrettyValue(n,a){return ce.getPrettyValue(this.value,n,a)}static round(n,a=0,o=Ce.HALF_EVEN){if(n=ce.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return It(n,a,o)}round(n=0,a=Ce.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ce(It(this.value,n,a))}static floor(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,Ce.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,Ce.FLOOR)}static ceil(n){return n=ce.validate(n),n.indexOf(".")===-1?n:ce.round(n,0,Ce.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ce(this.value):new ce(this.value).round(0,Ce.CEILING)}static add(n,a){return n=ce.validate(n),a=ce.validate(a),nn(n,a)}add(n){return new ce(nn(this.value,n.getValue()))}static subtract(n,a){return n=ce.validate(n),a=ce.validate(a),po(n,a)}subtract(n){return new ce(po(this.value,n.getValue()))}static multiply(n,a){return n=ce.validate(n),a=ce.validate(a),fo(n,a)}multiply(n){return new ce(fo(this.value,n.getValue()))}static divide(n,a,o){return n=ce.validate(n),a=ce.validate(a),mo(n,a,o)}divide(n,a){return new ce(mo(this.value,n.getValue(),a))}static modulus(n,a){return n=ce.validate(n),a=ce.validate(a),Wa(n,a)}modulus(n){return new ce(Wa(this.value,n.getValue()))}static compareTo(n,a){return n=ce.validate(n),a=ce.validate(a),Xa(n,a)}compareTo(n){return Xa(this.value,n.getValue())}static negate(n){return n=ce.validate(n),ho(n)}negate(){return new ce(ho(this.value))}}function Qa(e,n){return ce.multiply(`${e}`,`${n}`)}function go(e,n,a=8){return ce.divide(`${e}`,`${n}`,a)}function yo(e,n){return e=`${e}`,n=`${n}`,ce.compareTo(e,n)}function Ga(e){return ce.negate(e)}function on(e,n=-1,a=!1,o=3,l=","){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):a&&n>c.length&&(c=c.padEnd(n,"0")));let f;if(o>0){let d="",h=i.split("").reverse();for(let S=0;S<h.length;S++)d+=h[S]+((S+1)%o==0&&S+1!=h.length?l:"");c.length==0?f=`${s}${d.split("").reverse().join("")}`:f=`${s}${d.split("").reverse().join("")}.${c}`}else c.length==0?f=`${s}${i}`:f=`${s}${i}.${c}`;return f}function Za(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const Ge=typeof window<"u",Ue=Qe;function Ja(e){return e==null}const ln=Array.isArray,Qs=e=>rn(e)==="[object Map]",Gs=e=>rn(e)==="[object Set]",He=e=>e instanceof Date,an=e=>typeof e=="function",_a=e=>typeof e=="string",Zs=e=>typeof e=="symbol",ve=e=>e!==null&&typeof e=="object",mt=e=>ve(e)&&an(e.then)&&an(e.catch),er=Object.prototype.toString,rn=e=>er.call(e),bo=e=>rn(e)==="[object Object]",tr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Js(e){return e.__esModule||tr&&e[Symbol.toStringTag]==="Module"}const _s=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function lt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,o=e.length,l=!1;for(typeof n=="boolean"&&(l=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<o;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let s in r){let i=n[s],c=r[s];if(i!==c)if(l===!0&&c&&typeof c=="object"){let u;Array.isArray(c)?u=i&&Array.isArray(i)?i:[]:u=i&&typeof i=="object"?i:{},n[s]=lt(l,u,c)}else c!==void 0&&(n[s]=c)}}return n}function ko(e,n,a=!1){if(!a)lt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!bo(s))continue;r=ko(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!bo(s))continue;r=ko(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const So=_s?Promise.resolve():null;function ei(e,...n){So!==null?n&&n.length>0?So.then(()=>{e(n)}):So.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function be(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 ti={"[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 at(e){let a=Object.prototype.toString.call(e);return e==null?String(e):ti[a]||"object"}function sn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function nr(e){return e&&typeof e=="object"&&"setInterval"in e}function or(e){let n=!!e&&"length"in e&&e.length,a=at(e);return a==="function"||nr(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function lr(e,n){let a=+n.length,o=0,l=e.length;for(;o<a;o++)e[l++]=n[o];return e.length=l,e}function ni(e,n=[]){let a=n;return e!=null&&(or(Object(e))?lr(a,typeof e=="string"?[e]:e):a.push(e)),a}function xe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=at(e),o=at(n);if(a!==o)return!1;if(a==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],c=e[i],u=n[i];if(!xe(c,u))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],s=n[l];if(!xe(r,s))return!1}return!0}return!1}function ar(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Co(e){return ue(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ue(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function rr(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const a=n.indexOf(".");return a==-1?n.length:a}function sr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function ir(e,n,a){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(a,"")}function wo(e,n=!0,a=!0){n?e=ir(e,".",/\./g):e=e.replace(/\./g,""),a?e=ir(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function oi(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(xe(e,a))return!0}):n.indexOf(e)}function li(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(xe(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function ke(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function Se(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function rt(e,...n){const a=[];n.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const o={};for(const l in e)a.includes(l)||(o[l]=e[l]);return o}const cr=(e,n,a)=>{const o=Object.assign({},e),l=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{l.hasOwnProperty(r)?typeof l[r]=="string"&&(o[r]=n[l[r]]):n[r]&&(o[r]=n[r])}),o):e};function No(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const st=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},je=(e,n,a)=>Math.min(Math.max(e,n),a),we=Symbol.for("BroadcastKey");class Bo{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,a,o){this.parent=n,this.proxy=a,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const a=this.children.findIndex(o=>n===o);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,a,...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 l=!1;!n.name||n.name==="*"?l=!0:!n.name||n.name==="+"?(l=!1,n.name="*"):ar(n.name)&&this.name&&n.name.test(this.name)?l=!0:typeof n.name=="function"?l=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(l=!0);const r=[];if(l){const s=this.callbacks.get(a);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...o]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[a]=="function"){const c=Reflect.apply(i[a],i,[...o]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...n},a,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(n,a,...o){const l=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...n},a,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(n,a){this.callbacks.set(n,a)}}function cn(e,n,a,o){const l=new Bo(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function ai(e,n,a){const o=a;if(o[we])return o[we];const l=t.inject(we,null),r=new Bo(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[we]=r,t.provide(we,r),t.onUnmounted(()=>{r.destroy(),o[we]=void 0}),r}function xt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[we]??t.inject(we,null):t.inject(we,null)}const it=e=>e.default??e;class ri{error(n,a){const o=a,l=a||t.hasInjectionContext()?xt(a):null;l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=n||t.hasInjectionContext()?xt(n):null;o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=n||t.hasInjectionContext()?xt(n):null;o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,o){Array.isArray(n)||(n=[n]);const l=o,r=o||t.hasInjectionContext()?xt(o):null,s=a.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 l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let qt=new ri;function si(e){qt=e}function ii(e){qt?Object.assign(qt,e):qt=e}function ci(e,n){it(ot).setValidator(e,n)}function di(e){it(ot).deleteValidator(e)}let dr=["blur","clear"];function ui(e){dr=e}function ur(){return dr}let fr=["focus","change","setValue"];function fi(e){fr=e}function mr(){return fr}function mi(e){it(ot).messages(e)}function Mt(...e){const n=[];return e.forEach(a=>{a.forEach(o=>{const l=n.findIndex(r=>r.type===o.type);l!==-1&&n.splice(l,1),n.push(o)})}),n}function dn(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Le=Symbol("ValidateSchemaKey");class pr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,o){this.parent=n,this.descriptor=a,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(!0),this.scope.run(()=>{t.watchEffect(()=>{const a=dn(Mt(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=dn(o);const l=Mt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null,this.proxy=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=qt;return l&&typeof l[n]=="function"?Reflect.apply(l[n],l,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,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,a,o=!1){o?it(ot).setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?it(ot).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return it(ot).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const a=Mt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=dn(n):this.rules=dn([n]);const o=Mt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=Mt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${o}`]:a},r=this.getValue(),s={[`${o}`]:r},i=it(ot),c=new i(l),u=this.proxy??s;return c.validate(s,{context:u}).then(d=>{if(d.pass)this.success();else{let h="error";Array.isArray(d.errors)&&d.errors.length>0&&(h=d.errors[0].message??h,d.errors=[d.errors[0]],d.errors[0].ref=u),this.error(h)}return d}).catch(d=>{const h=d.message??`${d}`;return this.error(h),d})}}return Promise.resolve({pass:!0})}}function un(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(r){return r[l]}}}return new pr(n,a,e)}const fn=Symbol.for("EventEmitterKey");class hr{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,a){let o=this.register.get(n);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===a);l!==-1&&o.splice(l,1)}}on(n,a){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(a)}emit(n,...a){const o=this.register.get(n);o&&o.forEach(l=>{try{Reflect.apply(l,null,[n,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...a])}}function Ze(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function mn(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function pi(e,n){const a=Ze((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function hi(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function Ao(e,n,a,o=0,l=!0){let r=n,s=0;if(l){const c=e();if(s++,c||s>a)return}const i=()=>{const c=e();s++,!(c||s>a)&&(r+=o,setTimeout(i,r))};setTimeout(i,r)}const qe=Symbol("DomainKey"),pt=Symbol("DataItemsKey");class pn{_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,a=[]){for(const o in n){const l=n[o];a.length>0&&a.indexOf(l)!==-1||(this._props[o]=l)}}has(n){if(Reflect.has(this._props,n)){const a=this._props[n];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,a){this._props[n]=a}get(n,a){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?a:this.parent.get(n,a)}getForParent(n,a){return this.parent==null?a:this.parent.get(n,a)}getForSelf(n){return this._props[n]}getAll(n){const a=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const l=o._props[n];a.push(l)}o=o._parent}return a}}const gi=new pn;function ht(){return gi}function We(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[qe]??t.inject(qe,null):t.inject(qe,null)}const To=Symbol("OriginalDateKey");function $o(e,n,a=[],o){const l=t.getCurrentInstance();let r=l?.proxy,s=t.inject(qe,null);s===null&&(s=ht());const i=e||n.prop||n.name;let c=new pn(i);c.parent=s;const u=y=>{r[To]||h(y),c?.set("modelValue",y)},f=()=>c?.getForSelf("modelValue")??null,d=()=>r[To]??null,h=y=>{const k={};lt(!0,k,t.toRaw(y)),r[To]=k};t.isReactive(n)||typeof n=="function"?t.watch(n,y=>{c?.merge(y,a)},{immediate:!0}):c.merge(n,a),n.modelValue&&h(n.modelValue);const S=(y,k)=>{c?.set(y,k)},g=y=>c?.getForSelf(y)??null;if(r[qe]=c,t.provide(qe,c),l!==null){const y=t.inject(we,null),k=cn(r,y,i,o);c.broadcast=k,r[we]=k,t.provide(we,k),r.broadcast=(m,N,...B)=>Reflect.apply(k.emit,k,[m,N,...B]);const p=t.inject(Le,null),b=un(r,p,{componentName:""});c.validateSchema=b,r[Le]=b,t.provide(Le,b),r[pt]=new Map,r.validate=(m=!0)=>{const N=[];let B=null;const C={deep:!1};if(m===!0)B={name:"*"};else if(Array.isArray(m)&&m.length>0){const w=m;B={name:T=>T?w.indexOf(T)!==-1:!1}}else if(m!=null&&typeof m=="object"){const w=m;if(Object.assign(C,w),Array.isArray(w.include)&&w.include.length>0){const T=w.include;B={name:$=>$?T.indexOf($)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const T=w.exclude;B={name:$=>$?T.indexOf($)===-1:!1}}else B={name:"*"}}if(B){const w=k?.emitToChildren(B,"validate",C);w&&Reflect.apply([].push,N,w)}return N.length==1?N[0]:N.length>1?Promise.all(N).then(w=>{let T=[];return w.forEach($=>{$.pass===!1&&Array.isArray($.errors)&&(T=[...T,...$.errors])}),T.length>0?{pass:!1,errors:T}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(m,N=!0,B=!1)=>{if(B===!0){Reflect.ownKeys(m).forEach(w=>{let T=String(w);const $={componentName:"",fieldName:T,pureDataValidate:!0};if(c){const V=br(c,T,$,k,b);r[pt].set(T,V);const D=m[T];D&&V.validateSchema.setRule(D)}});return}if(N){const C=Reflect.ownKeys(m),w={name:T=>C.includes(T)};k?.emitToChildren(w,"setNameValidateRules",m,!1)}},r.clearValidate=(m=!0)=>{let N=null;if(m===!0)N={name:"*"};else if(Array.isArray(m)&&m.length>0){const B=m;N={name:C=>C?B.indexOf(C)!==-1:!1}}else if(m!=null&&typeof m=="object"){const B=m;if(Array.isArray(B.include)&&B.include.length>0){const C=B.include;N={name:w=>w?C.indexOf(w)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const C=B.exclude;N={name:w=>w?C.indexOf(w)===-1:!1}}else N={name:"*"}}N&&k?.emitToChildren(N,"clearValidate",!1)},r.resetFields=m=>{const N=f();if(!N)return;const B={};if(lt(!0,B,d()??{}),Array.isArray(m))m.forEach(C=>{N[C]=B[C]});else if(m&&Array.isArray(m.include))(m.include??[]).forEach(w=>{N[w]=B[w]});else if(m&&Array.isArray(m.exclude)){let C=m.exclude??[];Reflect.ownKeys(B).forEach(w=>{C.includes(w)||(N[w]=B[w])})}else Object.assign(N,B);r.clearValidate(m)},r.setModelValue=(m,N)=>{!N||N===i?u(m):k?.emitToChildren({name:N},"setModelValue",m)},r.getModelValue=()=>f(),r.setDomainProperty=(m,N)=>{S(m,N)},r.getDomainProperty=m=>g(m)}return t.onUnmounted(function(){c?.validateSchema&&(c.validateSchema.destroy(),r[Le]=void 0,t.provide(Le,null)),c?.broadcast&&(c?.broadcast?.destroy(),r[we]=void 0,t.provide(we,null)),c?.destroy(),r[qe]=void 0,t.provide(qe,null),r[pt]&&(r[pt].clear(),r[pt]=void 0),r.broadcast=null,r.validate=null,r.setNameValidateRules=null,r.clearValidate=null,r.resetFields=null,r.setModelValue=null,r.getModelValue=null,r.setDomainProperty=null,r.getDomainProperty=null,c=null,r=null}),c}function gr(e,n,a=[]){let l=t.getCurrentInstance()?.proxy,r=t.inject(qe,null);r===null&&(r=ht());const s=e||n.prop||n.name;let i=new pn(s);return i.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{i?.merge(c,a)},{immediate:!0}):i.merge(n,a),l[qe]=i,t.provide(qe,i),t.onUnmounted(()=>{i?.destroy(),l[qe]=void 0,t.provide(qe,null),i=null,l=null}),i}function yr(e,n,a){const l=We(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Te(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(we,null);let i=cn(l,s,r,a);l[we]=i,t.provide(we,i),l.broadcast=(g,y,...k)=>i?Reflect.apply(i.emit,i,[g,y,...k]):null;const c=t.inject(Le,null);e.fieldName=e.fieldName??r;let u=un(l,c,e);l[Le]=u,t.provide(Le,u),yr(l,u,r),l.validate=(g=null)=>{if(!u)return Promise.resolve({pass:!0});const y=[];let k=!1,p=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)p=!0,k=!0;else if(g&&typeof g=="object"){const b=g,m=b.ignoreDisabled??!0,N=b.ignoreReadonly??!0,B=b.ignoreHidden??!0;m===!0&&e.disabled===!0||N===!0&&e.readonly===!0||B===!0&&sn(l.$el)?p=!1:(Array.isArray(b.include)&&b.include.indexOf(r)!==-1||Array.isArray(b.exclude)&&b.exclude.indexOf(r),p=!0),k=b.deep??!1}else typeof g=="boolean"&&(k=g),p=!0;if(p){const b=u?.validate();y.push(b)}if(k){let b=null;const m={deep:!1};if(g===!0)b={name:"*"};else if(Array.isArray(g)&&g.length>0){const N=g;b={name:B=>B?N.indexOf(B)!==-1:!1}}else if(g!=null&&typeof g=="object"){const N=g;if(Object.assign(m,N),Array.isArray(N.include)&&N.include.length>0){const B=N.include;b={name:C=>C?B.indexOf(C)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const B=N.exclude;b={name:C=>C?B.indexOf(C)===-1:!1}}else b={name:"*"}}if(b&&i){const N=i.emitToChildren(b,"validate",m);Reflect.apply([].push,y,N)}}return y.length==1?y[0]:y.length>1?Promise.all(y).then(b=>{let m=[];return b.forEach(N=>{N.pass===!1&&Array.isArray(N.errors)&&(m=[...m,...N.errors])}),m.length>0?{pass:!1,errors:m}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=g=>u?.setRule(g),l.setNameValidateRules=(g,y=!1)=>{const k=g[r];if(k&&u?.setRule(k),y&&i){const p={name:b=>Reflect.ownKeys(g).includes(b)};i.emitToChildren(p,"setNameValidateRules",g,!1)}},l.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(n??"")!==-1)&&u?.clear();let y=null;if(g===!0)y={name:"*"};else if(Array.isArray(g)&&g.length>0){const k=g;y={name:p=>p?k.indexOf(p)!==-1:!1}}else if(g!=null&&typeof g=="object"){const k=g;if(Array.isArray(k.include)&&k.include.length>0){const p=k.include;y={name:b=>b?p.indexOf(b)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const p=k.exclude;y={name:b=>b?p.indexOf(b)===-1:!1}}else y={name:"*"}}y&&i&&i.emitToChildren(y,"clearValidate",!1)};let f=new hr(l);l[fn]=f;const d=Ze((g="validate")=>{u&&(g==="reset"?u.clear():u.validate())},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:ur()).forEach(g=>{f&&f.on(g,y=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:mr()).forEach(g=>{f&&f.on(g,y=>{d("reset")})}),t.onUnmounted(()=>{i?.destroy(),l[we]=void 0,t.provide(we,null),i=null,u?.destroy(),l[Le]=void 0,t.provide(Le,null),u=null,f?.destroy(),l[fn]=void 0,f=null,l.broadcast=null,l.validate=null,l.setValidateRule=null,l.setNameValidateRules=null,l.clearValidate=null}),{broadcast:i,validateSchema:u,emitEvent:(g,...y)=>{f&&Reflect.apply(f.emit,f,[g,...y])},onEvent:(g,y)=>{f&&Reflect.apply(f.on,f,[y])},offEvent:(g,y)=>{f&&Reflect.apply(f.off,f,[y])}}}function br(e,n,a,o,l){const r={},s=n??"",i={getValue(){const f=e.getForSelf("modelValue");return f?f[s]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,s):!1}};a.fieldName=s,a.validateHandler={getValue(f){return i.getValue()}};let c=un({},l,a);r.validate=(f=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];let h=!1,S=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)S=!0,h=!0;else if(f&&typeof f=="object"){const g=f;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),S=!0,h=g.deep??!1}else typeof f=="boolean"&&(h=f),S=!0;if(S&&c){const g=c.validate();d.push(g)}if(h){let g=null;const y={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const k=f;g={name:p=>p?k.indexOf(p)!==-1:!1}}else if(f!=null&&typeof f=="object"){const k=f;if(Object.assign(y,k),Array.isArray(k.include)&&k.include.length>0){const p=k.include;g={name:b=>b?p.indexOf(b)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const p=k.exclude;g={name:b=>b?p.indexOf(b)===-1:!1}}else g={name:"*"}}if(g&&u){const k=u.emitToChildren(g,"validate",y);Reflect.apply([].push,d,k)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(g=>{let y=[];return g.forEach(k=>{k.pass===!1&&Array.isArray(k.errors)&&(y=[...y,...k.errors])}),y.length>0?{pass:!1,errors:y}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=f=>c?.setRule(f),r.setNameValidateRules=f=>{const d=f[s];d&&c?.setRule(d)};let u=cn(null,o,s,r);return t.onUnmounted(()=>{c=null,u=null}),{broadcast:u,validateSchema:c}}function gt(){let n=t.getCurrentInstance()?.proxy,a=new hr(n);return n[fn]=a,t.onUnmounted(()=>{a?.destroy(),n[fn]=void 0,a=null,n=null}),{emitEvent:(o,...l)=>{a&&Reflect.apply(a.emit,a,[o,...l])},onEvent:(o,l)=>{a&&Reflect.apply(a.on,a,[l])},offEvent:(o,l)=>{a&&Reflect.apply(a.off,a,[l])}}}const ge=e=>e?`${fe(e)}px`:"";function fe(e,n=-1){if(e==null)return 0;if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),r=1;if(Ge){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return l*=r,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))*n;const o=Number(e);return isNaN(o)?0:o}function yi(e){return e?(e.endsWith("px")&&(e=e.substring(0,e.length-2)),parseFloat(e)):0}const Je="PageStateKey";function Oe(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=fe(e.top)),e.left!==null&&e.left!==void 0&&(n.left=fe(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=fe(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=fe(e.right))),n}function Vo(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=fe(a.headerHeight??n.headerHeight??-1),e.headerPadding=Oe(a.headerPadding??n.headerPadding),e.footerHeight=fe(a.footerHeight??n.footerHeight??-1),e.footerPadding=Oe(a.footerPadding??n.footerPadding),e.contentPadding=Oe(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=fe(c,r):e.height=fe(r)-fe(s,r)-fe(i,r),e.width=fe(a.width??n.width??0,l)}}function kr(e,n={}){const a={top:null,left:null,bottom:null,right:null},o={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});l&&(o.safeAreaTop=fe(l.top),o.safeAreaBottom=fe(l.bottom),o.safeAreaLeft=fe(l.left),o.safeAreaRight=fe(l.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;Vo(o,r,n,!0,s,i,c,u);const f=t.reactive(o),d=e.getForParent(Je);d&&(o.height=bn(e,d),o.width=kn(e,d),t.watch([()=>bn(e,d),()=>kn(e,d)],([S,g])=>{f.height=S,f.width=g}));const h=!d;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([S,g,y=-1,k=-1,p=0,b=0])=>{Vo(f,g,n,h,y,k,p,b)}),e.set(Je,f),f}function hn(e){return e.get(Je)}function gn(e,n){if(n=n??e.get(Je),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function yn(e,n){if(n=n??e.get(Je),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function bn(e,n){if(n=n??e.get(Je),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=gn(e,n),o=yn(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function kn(e,n){return n=n??e.get(Je),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function bi(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function ki(e){return!!e.getForParent(Je)}var Sn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Sn||{});function Cn(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Ve(e,n,a=1,o){const l=We();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let i=r.length-1;i>=0;i--){const c=r[i];if(Cn(c,o))return c}const s=e.value;return Cn(s,o)?s:null}):t.computed(()=>{const r=e.value;if(Cn(r,o))return r;const s=l.getAll(n);for(let i=0;i<s.length;i++){const c=s[i];if(Cn(c,o))return c}return null})}function Ee(e){return Ve(e,"readonly",1)}function De(e){return Ve(e,"disabled",1)}function Pe(e,n="modelValue",a=null,o){const l=t.toRef(e,n);let r=l.value;typeof a=="function"&&(r=a(l.value));const s=t.ref(r);return t.watch(l,i=>{if(typeof a=="function"){const c=a(i);c!==s.value&&(s.value=c,o&&o("setValue",c))}else i!==s.value&&(s.value=i,o&&o("setValue",i))}),s}const Sr=new Map,wn=new Map;let Eo=null;function Si(e){Eo=e}function Cr(e,n,a){if(a){let o=wn.get(a);o||(o=new Map,wn.set(a,o)),o.set(e,n)}else Sr.set(e,n)}function _e(e,n,a){!a&&Eo&&(a=Eo(e)??void 0);let o=null;if(a){let l=wn.get(a);l&&(o=l.get(n))}return o||(o=Sr.get(n)),o}function Ci(e,n){for(let a in e){const o=e[a];Cr(a,o,n)}}function wi(e){wn.delete(e)}function Ni(){return{top:0,left:0,bottom:0,right:0}}function Bi(){if(Ge){const e=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight;return{rootWidth:e,rootHeight:n,pageLayout:{}}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{headerHeight:-1,footerHeight:-1}}}function Ai(e,n){if(n.componentPrefix){const a=e.indexOf("-");return`${n.componentPrefix}${e.slice(a)}`}return e}class Ti{packages;_version;get version(){return this._version}constructor(n,a){this.packages=n,this._version=a}install(n,a){a?.install!==!1&&this.packages.forEach(r=>{if(r.install)n.use(r);else if(r.name){const s=Ai(r.name,a);n.component(s,r)}});const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=ht();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=mn(()=>{const i={...a},c=document.documentElement.clientWidth||document.body.clientWidth,u=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=u,this.initPageLayout(i,l)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)o.indexOf(r)===-1&&l.set(r,a[r])}initPageLayout(n,a){const o=n.headerBarHeight??0,l=n.footerBarHeight??0,r=lt({},Ni(),n.safeAreaInset),s=Bi(),i=lt({},s.pageLayout,n.pageLayout);a=a??ht(),a.set("safeAreaInset",r),a.set("headerBarHeight",o),a.set("footerBarHeight",l),a.set("pageLayout",i),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight)}setScopeGetter(n){Si(n)}setAPI(n,a,o){Cr(n,a,o)}getAPI(n,a,o){return _e(n,a,o)}batchSetAPI(n,a){Ci(n,a)}clearScopeAPI(n){wi(n)}getRootDomain(){return ht()}}function _(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=o=>{o.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}const $i=(e,n)=>{let a=document.body;const o=e.teleport||"body";o!="body"&&(_a(o)?a=document.querySelector(o):a=e.teleport);const l=document.createElement("view"),r=n.name?n.name+"-":"",s=e.id||new Date().getTime();l.id=r+s;let i={};an(n.wrapper)?i=n.wrapper(a,l):i=n.wrapper;const c=t.createApp(i,e),u=n.components;return u&&u.forEach(f=>{c.use(f)}),a.appendChild(l),{instance:c.mount(l),unmount:()=>{c.unmount(),a.removeChild(l)}}},wr=(e,n)=>e?t.h(e,n):"";function Ie(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const he={disabled:{type:[Boolean,String],required:!1,default:()=>null},readonly:{type:[Boolean,String],required:!1,default:()=>null},labelPosition:{type:String,required:!1,default:()=>null},labelWidth:{type:[String,Number],required:!1,default:()=>null},textAlign:{type:[String],required:!1,default:()=>null},hasBorder:{type:Boolean,required:!1,default:()=>!0}},ye={prop:{type:String,required:!1},label:{type:String,required:!1},isRequired:{type:[String,Boolean],required:!1,default:()=>!1},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number,String],default:()=>0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:()=>"is-info"},warnMarkClass:{type:String,required:!1,default:()=>"is-warn"},errorMarkClass:{type:String,required:!1,default:()=>"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:()=>"content--default"},contentStyle:{type:Object,required:!1,default:()=>{}},hintType:{type:String,required:!1,default:()=>"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:()=>!0},hintProps:{type:Object,required:!1,default:()=>{}},appearListen:{type:[Boolean,String],required:!1,default:()=>!1}},Nr={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}},Br={name:{type:String,required:!1},prop:{type:String,required:!1},tag:{type:String,required:!1,default:()=>"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:()=>"stretch"},align:{type:[String],required:!1,default:()=>"start"},span:{type:[Number,String],required:!1,default:()=>1},offset:{type:[Number],default:()=>0},autoLayout:{type:[Boolean],required:!1,default:()=>!0},isWrap:{type:[Boolean,String],required:!1,default:()=>!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:()=>!1},markColor:{type:[String],required:!1},title:{type:String,default:()=>""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:()=>!1},collapsePosition:{type:[String],requried:!1,default:()=>"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:()=>!0}},Ar=[];for(const e in Br)Ar.push(e);const Vi=Symbol.for("InnerPageScopeKey"),Ei={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}},Di=(e,n)=>({inheritAttrs:!0,props:{...he,...Nr,...Ei},setup(a,{slots:o}){const l=$o(a.name,a),r=t.inject(Vi,!1);if(l){const f=kr(l,a);Ie({getPageContentHeight:()=>bn(l,f),getPageContentWidth:()=>kn(l,f),getPageHeaderHeight:()=>gn(l,f),getPageFooterHeight:()=>yn(l,f)}),f&&r&&(f.contentHeight="100%")}const s=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),c=t.getCurrentInstance(),u=(f,d=!1)=>{const h=c?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(f,!0,d)};return t.watch([()=>a.rules,()=>a.pureDataRules],([f,d],[h,S])=>{if(f&&h){const g=t.toRaw(h),y=t.toRaw(f),k=y?Reflect.ownKeys(y):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{k.includes(b)||(y[b]=[])}),u(y)}if(d&&S){const g=t.toRaw(S),y=t.toRaw(d),k=y?Reflect.ownKeys(y):[];(g?Reflect.ownKeys(g):[]).forEach(b=>{k.includes(b)||(y[b]=[])}),u(y,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const f=t.toRaw(a.rules);u(f)}if(a.pureDataRules){const f=t.toRaw(a.pureDataRules);u(f,!0)}}),()=>{const f={class:s.value,style:i.value};return t.h("div",f,[o?.default?.()])}}}),{componentName:Ii,create:vi,scope:S2}=_("page"),Do=vi(Di(Ii));function Io(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Nn(e){const n=t.unref(e),a=window.getComputedStyle(n,null),o=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-s}}const xi=Symbol.for("InnerPageScopeKey"),Tr={headerbar:{},radio:{},checkbox:{}};function qi(e){Object.assign(Tr,e)}function Bn(){return Tr}const Mi=(e,n,a,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},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(l,r){const s=We(),i=s?hn(s):null,c=t.inject(xi,!1),u=Bn(),f=e,d=t.computed(()=>{const M={[f]:!0,[`${f}--border`]:l.border,[`${f}--fixed`]:l.fixed};return c||(M[`${f}--safe-area-inset-top`]=l.safeAreaInsetTop),M}),h=t.computed(()=>({[`${f}__inner`]:!0,[`${f}__inner--${l.align}`]:!0})),S=l.height!==null&&l.height!==void 0?fe(l.height):null,g=t.computed(()=>{const M={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const K=Oe(l.padding??i.headerPadding);return Object.assign(M,K),S&&(i.headerHeight=S),i.headerHeight>0&&(M.height=i.headerHeight),M.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,M.safeAreaTop>0&&(M.top=M.safeAreaTop+(K.top??0),M.height&&M.height>0&&(M.height=M.height+M.safeAreaTop)),M}if(S&&(M.height=S),l.padding){const K=Oe(l.padding);Object.assign(M,K)}return M}),y=t.ref(null),k=()=>{if(i&&y.value&&!sn(y.value)){if(!o){const M=Io(y.value);i.headerAllHeight=M.height}return i.headerMounted=!0,!0}return!1};let p=null;t.onMounted(()=>{i&&(Ao(k,50,5,50,!0),window.ResizeObserver&&y.value&&(p=new window.ResizeObserver(()=>{k()}),p.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,p&&(p.disconnect(),p=null))});const b=t.computed(()=>{const M={};return g.value.height!==null&&g.value.height!==void 0&&(M.height=`${g.value.height}px`),g.value.top!==null&&g.value.top!==void 0&&(M.paddingTop=`${g.value.top}px`),g.value.left!==null&&g.value.left!==void 0&&(M.paddingLeft=`${g.value.left}px`),g.value.right!==null&&g.value.right!==void 0&&(M.paddingRight=`${g.value.right}px`),g.value.bottom!==null&&g.value.bottom!==void 0&&(M.paddingBottom=`${g.value.bottom}px`),M}),m=t.computed(()=>!(g.value.height!==null&&g.value.height!==void 0&&g.value.height<=0));function N(){r.emit("back")}function B(){r.emit("click-title")}function C(){r.emit("click-right")}function w(){r.emit("click-right-text")}const T=()=>{if(!l.leftShow)return null;const M=[];if(r.slots.left)M.push(r.slots.left());else{if(r.slots.leftIcon){const K=t.h("view",{class:"left-icon",onClick:N},[r.slots.leftIcon()]);M.push(K)}else{const K=l.leftIcon??u.headerbar.Left??a,v=t.h("view",{class:"left-icon",onClick:N},[t.h(K)]);M.push(v)}if(l.leftText){const K=t.h("view",{class:"left-text",onClick:N},[l.leftText]);M.push(K)}}return M.length===0?null:t.h("view",{class:"fox-header-bar__left"},M)},$=()=>{if(!l.rightShow)return null;const M=[];if(r.slots.right)M.push(r.slots.right());else{if(l.rightText){const K=t.h("view",{class:"right-text",onClick:w},[l.rightText]);M.push(K)}if(r.slots.rightIcon){const K=t.h("view",{class:"right-icon",onClick:C},[r.slots.rightIcon()]);M.push(K)}else if(l.rightIcon){const K=t.h("view",{class:"right-icon",onClick:C},[t.h(l.rightIcon)]);M.push(K)}}return M.length===0?null:t.h("view",{class:"fox-header-bar__right"},M)},V=()=>{if(!l.titleShow)return null;const M=[],K=r.slots.default?r.slots.default():null;if(K)M.push(K);else{if(l.title){const v=t.h("view",{class:"title-text"},[l.title]);M.push(v)}if(r.slots.titleIcon){const v=t.h("view",{class:"title-icon",onClick:B},[r.slots.titleIcon()]);M.push(v)}else if(l.titleIcon){const v=t.h("view",{class:"title-icon",onClick:B},[t.h(l.titleIcon)]);M.push(v)}}return M.length===0?null:t.h("view",{class:"fox-header-bar__title"},M)},D=()=>{const M=[],K=r.slots.bottom?r.slots.bottom():null;return K&&M.push(K),M.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},M)};return()=>{if(!m.value)return null;const M=[];if(r.slots.all)M.push(r.slots.all());else{const v=[],E=T();E&&v.push(E);const L=V();L&&v.push(L);const I=$();if(I&&v.push(I),v.length>0){const j=t.h("view",{class:h.value},v);M.push(j)}const W=D();W&&M.push(W)}if(M.length===0)return null;const K={class:d.value,style:b.value,ref:y};return t.h("view",K,M)}}}),{componentName:Pi,create:Li,scope:zi}=_("header-bar"),vo=Li(Mi(Pi,zi,le.Left,!1)),Oi=Symbol.for("InnerPageScopeKey");function Ri(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,l){const r=We(),s=r?hn(r):null,i=t.inject(Oi,!1),c=e,u=t.computed(()=>{const k={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return i||(k[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),k}),f=o.height!==null&&o.height!==void 0?fe(o.height):null,d=t.computed(()=>{const k={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const p=Oe(o.padding??s.footerPadding);return Object.assign(k,p),f&&(s.footerHeight=f),s.footerHeight>0&&(k.height=s.footerHeight),k.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,k.safeAreaBottom>0&&(k.bottom=k.safeAreaBottom+(p.bottom??0),k.height&&k.height>0&&(k.height=k.height+k.safeAreaBottom)),k}if(f&&(k.height=f),o.padding){const p=Oe(o.padding);Object.assign(k,p)}return k}),h=t.ref(null),S=()=>{if(s&&h.value&&!sn(h.value)){if(!a){const k=Io(h.value);s.footerAllHeight=k.height}return s.footerMounted=!0,!0}return!1};let g=null;t.onMounted(()=>{s&&(Ao(S,50,5,50,!0),window.ResizeObserver&&(g=new window.ResizeObserver(()=>{S()}),g.observe(h.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,g&&(g.disconnect(),g=null))});const y=t.computed(()=>{const k={};return d.value.height!==null&&d.value.height!==void 0&&(k.height=ge(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(k.paddingTop=ge(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(k.paddingLeft=ge(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(k.paddingRight=ge(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(k.paddingBottom=ge(d.value.bottom)),k});return()=>{const k=l.slots.default?l.slots.default():[],p={ref:h,class:u.value,style:y.value};return t.h("view",p,k)}}}}const{componentName:Fi,create:Ki,scope:Ui}=_("footer-bar"),xo=Ki(Ri(Fi,Ui,!1));function Hi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=We(),l=t.computed(()=>({[e]:!0})),r=o?hn(o):null,s=t.computed(()=>{const u={};if(o&&r){if(a.padding){const p=Oe(a.padding);Object.assign(r.contentPadding,p)}const f=gn(o,r),d=yn(o,r);let h="";r.contentHeight?h=`${r.contentHeight}`:h=`${r.height}px`,console.debug("[content]page height:",h),console.debug("[content]header height:",f),console.debug("[content]footer height:",d),console.debug("[content]padding:",r.contentPadding),u.height=h;let S=(r&&r.contentPadding&&r.contentPadding.top)??-1;(S>=0||f>0)&&(S=S<0?0:S,u.paddingTop=`${f+S}px`);let g=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(g>=0||d>0)&&(g=g<0?0:g,u.paddingBottom=`${d+g}px`);const y=(r&&r.contentPadding&&r.contentPadding.left)??-1;y>=0&&(u.paddingLeft=`${y}px`);const k=(r&&r.contentPadding&&r.contentPadding.right)??-1;return k>=0&&(u.paddingRight=`${k}px`),u}if(a.padding){const f=Oe(a.padding);f.left&&(u.paddingLeft=`${f.left}px`),f.top&&(u.paddingTop=`${f.top}px`),f.right&&(u.paddingRight=`${f.right}px`),f.bottom&&(u.paddingBottom=`${f.bottom}px`)}return u}),i=t.ref(null),c=Ze(()=>{if(r&&i.value){const u=Nn(i.value);r.contentInnerHeight=u.height,r.contentInnerWidth=u.width}},0);return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>s.value,()=>l.value],([])=>{c()}),{contentRef:i,classes:l,styles:s}}}}const{componentName:ji,create:Wi,scope:C2}=_("content"),Yi=Wi(Hi(ji));function Xi(e,n,a,o,l,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 oe=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},qo=oe(Yi,[["render",Xi]]),yt="GroupStateKey",$r=Symbol.for("GroupScopeKey");function An(){return t.inject($r,!1)}function Tn(e=!0){t.provide($r,e)}function Qi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Ja(l)||(e[o]=l)})}function Gi(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Qi(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(yt,r),r}function Mo(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(yt);if(!c)return;const u=e.get("groupLayout")??{};a===-1&&(a=u.column??1),o===-1&&(o=u.gutter??0),r||(r=u.minItemWidth??-1),s||(s=u.maxItemWidth??-1);const f=fe(r),d=fe(s);i||(i=u.type??"grid");const h=()=>{const S=n===""||n===-1,g=fe(n);let y=pe(a);const k=fe(o);if(!S){let m=(g-(y-1)*k)/y;for(;d!==-1&&m>d;)y++,m=(g-(y-1)*k)/y;for(;f!==-1&&y>1&&m<f;)y--,m=(g-(y-1)*k)/y}let p=!1;const b=c.layout;b.value.width=n,b.value.column!==y&&(b.value.column=y,p=!0),b.value.gutter!==k&&(b.value.gutter=k,p=!0),b.value.type!==i&&(b.value.type=i,p=!0),p&&t.triggerRef(b)};if(l)h();else{const S=++c.passport;setTimeout(()=>{S===c.passport&&h()},50)}}function $n(e,n=!1){let a;return n?a=e.getForParent(yt):a=e.get(yt),a.layout}function Vn(e,n=!1){let a;return n?a=e.getForParent(yt):a=e.get(yt),a.order}function Vr(e,n=1){if(n==="stretch")return-1;const a=pe(n);return a===-1?100:100*a/e}function En(e,n,a=1,o=0,l){const r={};let s=0;l?s=fe(l):s=Vr(n.column,a),s>0&&(r.width=`${s}%`);const i=Vr(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 Dn(e,n,a=1,o=0){if(a==="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 l=pe(a);if(l===-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(l>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+l;return i>n.column?(s=0,i=s+l,e.index=e.index+(n.column-s)+l):e.index=e.index+r+l,r>0?{"grid-column":`${s+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const Er=Symbol("RollingStateKey");function Zi(e){t.provide(Er,e)}function Ji(){return t.inject(Er,null)}function Po(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function _i(e){let n=Po(e);if(n<=0){const a=e.cloneNode(!0),o=e.offsetWidth;a.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=Po(a),console.info("2.---------- get expand height",n),document.body.removeChild(a)}return n}function ec(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const tc={...he,...Nr,...Br};function nc(e,n,a){return{props:tc,emits:["update:collapse","header-click"],setup(o,l){const r=$o(o.prop??o.name,o,Ar),s=Gi(r,{type:o.type}),i=An();Tn(!0);const c=o.rollingDisplay?Ji():null,u=t.ref(null),f=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),d=t.computed(()=>i&&r?$n(r,!0).value:null),h=t.getCurrentInstance(),S=(F,X=!1)=>{const Q=h?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(F,!0,X)};t.watch([()=>o.rules,()=>o.pureDataRules],([F,X],[Q,U])=>{if(F&&Q){const J=t.toRaw(Q),te=t.toRaw(F),ae=te?Reflect.ownKeys(te):[];(J?Reflect.ownKeys(J):[]).forEach(de=>{ae.includes(de)||(te[de]=[])}),S(te)}if(X&&U){const J=t.toRaw(U),te=t.toRaw(X),ae=te?Reflect.ownKeys(te):[];(J?Reflect.ownKeys(J):[]).forEach(de=>{ae.includes(de)||(te[de]=[])}),S(te,!0)}},{deep:!0});const g=e,y=t.computed(()=>{const F={};if(F.height=E.value,o.width)o.width!=="auto"&&(F.width=ge(o.width));else{const X=i?Vn(r,!0):null;if(d.value&&X){if(d.value.type==="grid"){const Q=Dn(X,d.value,o.span,o.offset);Object.assign(F,Q)}else if(d.value.type==="flow"){const Q=En(X,d.value,o.span,o.offset,o.width);Object.assign(F,Q)}}}return F}),k=t.computed(()=>{const F=s.layout.value.type;return F==="grid"||F==="flow"?{[`${g}--${F}`]:!0,[`${g}--${F}-justify-${o.justify}`]:!0,[`${g}--${F}-align-${o.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${F}`]:!0,[`${g}--gutter`]:!0}}),p=t.computed(()=>{if(s.layout.value.type==="grid"){let X="";if(o.columnWidth)X=`repeat(auto-fill, ${o.columnWidth})`;else{const Q=ec(T.value,s.layout.value.column,s.layout.value.gutter);X=`repeat(${s.layout.value.column}, ${Q})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":X}}}),b=t.toRef(o,"gutter"),m=t.toRef(o,"column"),N=t.computed(()=>i||f.value?!0:be(o.isWrap)),B=[],C=F=>{B.push(F)},w=()=>{let F=B.length;B.splice(0,F)},T=t.ref(-1),$=F=>{const X=Nn(F).width;X>0&&X!==T.value&&(T.value=X)};Mo(r,T.value,m.value,b.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([T,m,b],([F,X,Q])=>{s.order.index=0,Mo(r,F,X,Q,!1,o.minItemWidth,o.maxItemWidth,o.type)});const V=t.computed(()=>L.value?o.expandText??"":o.collapseText??""),D=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),M=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!L.value,"is-collapse":L.value})),K=t.ref(),v=t.ref(),E=t.computed(()=>I.value||ge(o.height)||""),L=t.ref(!1),I=t.ref(""),W=t.ref(!1);let j=-1;const O=(F,X=!0)=>{const Q=K.value;if(Q&&L.value!==F){if(j=j<=0?_i(Q):j,W.value=!0,X)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",F||(I.value="",W.value=!1)},F){let U=0;o.collapseHeight?U=o.collapseHeight:v.value&&v.value.classList.contains(`${e}__header`)&&(U=v.value.offsetHeight),I.value=`${j}px`,t.nextTick(()=>{I.value=`${U}px`})}else I.value=`${j}px`;else if(F){let U=0;o.collapseHeight?U=o.collapseHeight:v.value&&v.value.classList.contains(`${e}__header`)&&(U=v.value.offsetHeight),I.value=`${U}px`}else W.value=!1,I.value=`${j}px`;L.value=F,l.emit("update:collapse",F)}};t.watch(()=>o.collapse,F=>{O(F)});const ee=F=>{l.emit("header-click",F)},H=()=>{q()},q=F=>{F=F??!L.value,O(F)};Ie({toggleCollapse:q,doLayout:()=>{B[0]&&($(B[0]),Mo(r,T.value,m.value,b.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let x=null,Y=!0;const z=F=>{if(o.rules){const X=t.toRaw(o.rules);S(X)}if(o.pureDataRules){const X=t.toRaw(o.pureDataRules);S(X,!0)}if(Ge&&(F&&O(be(o.collapse),!1),o.autoLayout&&Array.isArray(B)&&B.length>0)){const X=B[0];$(X),window.ResizeObserver&&(x=new window.ResizeObserver(()=>{$(X)}),x.observe(X))}},R=()=>{x?.disconnect(),x=null},G=!f.value||c?.acquire();G&&(u.value=f.value?!0:null),t.onMounted(()=>{if(G&&(z(Y),Y=!1),f.value&&c){let F=null,X=c.initialHeight;c.observe(K.value,Q=>{if(Q!==u.value)if(Q)u.value=!0,L.value||(I.value=""),F=setTimeout(()=>{F=null,u.value!==!1&&(z(Y),Y=!1)},100);else{if(F!==null&&clearTimeout(F),u.value=!1,!L.value)if(Y)I.value=c.initialHeight;else{let U=Po(K.value);U<=0?I.value=X:(I.value=`${U}px`,X=I.value)}Y||R()}})}}),t.onUnmounted(()=>{x?.disconnect(),c&&c.unobserve(K.value)});const Z=(F="right")=>{const X=[];if(V.value){const te={class:D.value},ae=t.h("span",te,[V.value]);X.push(ae)}const Q={class:M.value},U=o.collapseIcon??a,J=t.h(U,Q);return X.push(J),X.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${F}`]:!0},onClick:H},X):null},ne=(F,X,Q,U)=>{const J={...k.value};return X===0&&(J[`${g}__first`]=!0),Q>=U-1&&(J[`${g}__last`]=!0),t.h("div",{ref:C,key:`${X}`,class:J,style:p.value},F)};return()=>{if(f.value&&u.value!==!0){const J=o.tag||"div";return t.h(J,{ref:K,prop:o.name,class:{[`${g}`]:!0,"is-collapse":W.value},style:y.value},[])}s.order.index=0;const F=[];let X=0;if(l.slots.header){const J={key:`${X++}`,ref:v,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:ee},te=t.h("div",J,[l.slots.header()]);F.push(te)}else{const J=[],te=o.collapsePosition==="left";if(te&&o.showCollapse){const ae=Z("left");ae&&J.push(ae)}if(o.title||l.slots.title){if(o.showMark){const ae={class:{[`${g}__header-mark`]:!0}};o.markColor&&(ae.style={background:o.markColor});const se=t.h("div",ae);J.push(se)}if(l.slots.title){const ae=t.h("div",{class:{[`${g}__header-title`]:!0}},[l.slots.title()]);J.push(ae)}else if(o.title){const ae=t.h("div",{class:{[`${g}__header-title`]:!0}},[o.title]);J.push(ae)}}if(l.slots.toolbar&&J.push(l.slots.toolbar()),!te&&o.showCollapse){const ae=Z("right");ae&&J.push(ae)}if(J.length>0){const ae={key:`${X++}`,ref:v,class:{[`${g}__header`]:!0,[`${g}__first`]:!0},onClick:ee},se=t.h("div",ae,J);F.push(se)}}w();const Q=l.slots.default?l.slots.default():[],U=s.layout.value.type;if(U==="grid"){const J=ne(Q,X++,0,Q.length);F.push(J)}else if(U==="flow"){const J=ne(Q,X++,0,Q.length);F.push(J)}else for(let J=0;J<Q.length;J++){const te=Q[J],ae=ne([te],X++,J,Q.length);F.push(ae)}if(N.value){const J=o.tag||"div";return t.h(J,{ref:K,prop:o.name,class:{[`${g}`]:!0,"is-collapse":W.value},style:y.value},[F])}else return F}}}}const{componentName:oc,create:lc,scope:ac}=_("group"),Lo=lc(nc(oc,ac,le.RectUp));function rc(e){return e===window}const sc=/matrix\((.+)\)/,zo=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(rc(n))return{x:0,y:0};let a=0,o=0,l=n;for(;l!==null;)a+=l.offsetLeft,o+=l.offsetTop,l=l.offsetParent;let r=0,s=0,i=0,c=0;for(l=n;l!==document;){s+=l.scrollTop,r+=l.scrollLeft;const{transform:u}=window.getComputedStyle(l);if(u){const f=sc.exec(u);if(f){let h=f[1].split(/\s*,\s*/);h.length==6&&(i+=Number(h[4]),c+=Number(h[5]))}}l=l.parentNode}return a-=r,o-=s,a+=i,o+=c,{x:a,y:o}};class ic{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const a=this.watchedListeners.indexOf(n);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class cc{monitorRegister=new WeakMap;watch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new ic,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(a),o=o.parentNode}}unwatch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}}const Pt=new cc,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:dc,create:uc}=_("price"),fc=uc({props:{...Dr},setup(e){const n=t.computed(()=>({[dc]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ke(e.price)==0?"":on(e.price,e.decimalLength,!0,pe(e.digits),e.separator)),l=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:a,intText:l,decimalText:r}}}),mc=["innerHTML"],pc=["innerHTML"];function hc(e,n,a,o,l,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,mc)):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,pc)):t.createCommentVNode("",!0)],2)}const et=oe(fc,[["render",hc]]),{componentName:Oo,create:gc}=_("hint-text"),yc=gc({components:{Price:et},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,n){const a=t.ref({top:null,right:null,bottom:null,left:null}),o=t.ref({x:0,y:0}),l=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),u=(D,M,K,v,E,L)=>{const I=document.documentElement.clientWidth||document.body.clientWidth,W=document.documentElement.clientHeight||document.body.clientHeight,j=D.split("-");let O=[];j[0]==="top"?O=["top","bottom","right","left"]:j[0]==="bottom"?O=["bottom","top","right","left"]:j[0]==="left"?O=["left","top","bottom","right"]:j[0]==="right"&&(O=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},H=[];for(let q=0;q<O.length;q++){const P=O[q];if(H[0]=P,j[1]&&(H[1]=j[1]),P==="top"){const x=M.y-L-e.arrowSize-e.offset;if(x>=0){ee.top=x;let Y=0;j[1]==="start"?Y=M.x:j[1]==="end"?Y=M.x+K-E:Y=M.x+K/2-E/2;const z=I-Y-E;z<0?(Y+=z,d.value=-z):d.value=0,ee.left=Y<0?0:Y;break}}else if(P==="bottom"){const x=M.y+v+e.arrowSize+e.offset;if(x+L<=W){ee.top=x;let Y=0;j[1]==="start"?Y=M.x:j[1]==="end"?Y=M.x+K-E:Y=M.x+K/2-E/2;const z=I-Y-E;z<0?(Y+=z,d.value=-z):d.value=0,ee.left=Y<0?0:Y;break}}else if(P==="left"){const x=M.x-E-e.arrowSize-e.offset;if(x>=0){ee.left=x;let Y=0;j[1]==="start"?Y=M.y:j[1]==="end"?Y=M.y+v-L:Y=M.y+v/2-L/2,ee.top=Y<0?0:Y;break}}else if(P==="right"){const x=M.x+K+e.arrowSize+e.offset;if(x+E<=I){ee.left=x;let Y=0;j[1]==="start"?Y=M.y:j[1]==="end"?Y=M.y+v-L:Y=M.y+v/2-L/2,ee.top=Y<0?0:Y;break}}}return{bestPlacement:H.join("-"),bestInsetRect:ee}},f=(D,M,K=10)=>{if(!Ge||M===!1||!D)return;o.value=zo(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const v=c.value.offsetHeight,E=c.value.offsetWidth,{bestPlacement:L,bestInsetRect:I}=u(e.placement,o.value,l.value,r.value,E,v);s.value=L,a.value=I,i.value=!0},d=t.ref(0),h=Ze(()=>{f(e.message,e.visible)},10),S=t.ref(e.visible);t.watch(()=>e.visible,D=>{S.value=D});const g=t.computed(()=>S.value&&y.value),y=t.ref(!0),k=Ze(D=>{const M=D[0];M&&(y.value=M.isIntersecting)},10),p=new IntersectionObserver(k);t.watch([()=>e.message,()=>e.visible],([D,M])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),Pt.watch(e.reference,h),p.observe(e.reference)}),t.onBeforeUnmount(()=>{Pt.unwatch(e.reference,h),p.unobserve(e.reference),p.disconnect()});const b=t.computed(()=>{const D={[Oo]:!0};return s.value.startsWith("top")?D["is-top"]=!0:s.value.startsWith("right")?D["is-right"]=!0:s.value.startsWith("bottom")?D["is-bottom"]=!0:s.value.startsWith("right")&&(D["is-right"]=!0),e.size==="small"?D["is-small"]=!0:e.size==="large"&&(D["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(D[`${e.customClass}`]=!0),D}),m=t.computed(()=>{const D={};a.value.top!==null&&(D.top=`${a.value.top}px`),a.value.right!==null&&(D.right=`${a.value.right}px`),a.value.bottom!==null&&(D.bottom=`${a.value.bottom}px`),a.value.left!==null&&(D.left=`${a.value.left}px`),e.autoFit&&(D["min-width"]=`${l.value}px`);const M=document.documentElement.clientWidth||document.body.clientWidth;return D["max-width"]=`${M}px`,i.value&&(D.opacity="1"),e.transition||(D.transition="none"),e.zIndex&&(D["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(D,e.customStyle),D}),N=t.computed(()=>{const D=[`${Oo}__content`];return e.customTextClass&&D.push(e.customTextClass),D}),B=t.computed(()=>{const D={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(D,e.customTextStyle),D}),C=t.computed(()=>({[`${Oo}__arrow`]:!0})),w=t.computed(()=>{const D={};return e.showArrow?(D.width=`${e.arrowSize}px`,D.height=`${e.arrowSize}px`,s.value==="top"?(D.left="50%",D.bottom=`-${e.arrowSize}px`,D.transform=" translate(-50%, 0%)"):s.value==="top-start"?(D.left=`${e.arrowOffset+d.value}px`,D.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(D.right=`${e.arrowOffset-d.value}px`,D.bottom=`-${e.arrowSize}px`):s.value==="right"?(D.left=`-${e.arrowSize}px`,D.top="50%",D.transform=" translate(0%, -50%)"):s.value==="right-start"?(D.left=`-${e.arrowSize}px`,D.top=`${e.arrowOffset}px`):s.value==="right-end"?(D.left=`-${e.arrowSize}px`,D.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(D.left="50%",D.top=`-${e.arrowSize}px`,D.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(D.left=`${e.arrowOffset+d.value}px`,D.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(D.right=`${e.arrowOffset-d.value}px`,D.top=`-${e.arrowSize}px`):s.value==="left"?(D.right=`-${e.arrowSize}px`,D.top="50%",D.transform=" translate(0%, -50%)"):s.value==="left-start"?(D.right=`-${e.arrowSize}px`,D.top=`${e.arrowOffset}px`):s.value==="left-end"&&(D.right=`-${e.arrowSize}px`,D.bottom=`-${e.arrowOffset}px`),D):{display:"none"}}),T=t.computed(()=>g.value&&e.closeOnClick),$=t.computed(()=>{const D={};return e.zIndex&&(D["z-index"]=`${e.zIndex}`),D});return{show:g,tipRef:c,classes:b,styles:m,textClasses:N,textStyles:B,arrowClasses:C,arrowStyles:w,overlayShow:T,overlayStyle:$,onClickOverlay:()=>{S.value=!1,n.emit("update:visible",!1)}}}}),bc=["innerHTML"];function kc(e,n,a,o,l,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("span",{key:1,innerHTML:e.message},null,8,bc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Ir=oe(yc,[["render",kc]]);class In{seed=0;constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}const Ro={},Sc=new In,bt=new Map,vn=e=>{if(e){const n=document.getElementById(e);bt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of bt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}bt.clear()}},Cc=e=>{e.unmount=vn;const n=document.getElementById(e.id);if(n){const a=bt.get(e.id);a?e={...Ro,...a,...e}:e={...Ro,...e},e.transition=!1;const o=t.createVNode(Ir,e);return t.render(o,n),e.id}},wc=e=>{e.unmount=vn;let n=e.id??`hinttext_${Sc.get()}`;e={...Ro,...e},e.id=n,bt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Ir,e);return t.render(o,a),document.body.appendChild(a),n},Nc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},kt={show(e,n,a={},o=!0){Nc(n);const l=a.id;return l&&bt.has(l)?Cc({...a,message:n,reference:e}):(o&&vn(),wc({...a,message:n,reference:e}))},hide(e){vn(e)},install(e){e.config.globalProperties.$hintText=kt}};function Bc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...he,...ye},emits:["appear","disappear"],setup(l,r){const s=l.prop??r.attrs.name;Te({componentName:e,validate:!1},s);const i=We(),c=An();Tn(!1);const u=t.computed(()=>c&&i?$n(i,!1).value:null),f=e,d=t.ref(null),h=t.computed(()=>{const U={[f]:!0,[`${f}__gutter`]:u.value&&u.value.type!=="flow",[`${f}__stretch`]:l.span==="stretch",[`${f}__input--border`]:be(l.hasBorder)};if(U[l.errorMarkClass]=!!L.value,U[l.warnMarkClass]=!!v.value,U[l.infoMarkClass]=!!M.value,typeof d.value=="function"){const J=d.value(s);U[J]=!0}else if(typeof d.value=="string"){const J=d.value;U[J]=!0}return U}),S=t.ref(null),g=t.computed(()=>{const U={};if(l.width)l.width!=="auto"&&(U.width=ge(l.width));else{const J=c&&i?Vn(i,!1):null;if(u.value&&J){if(u.value.type==="grid"){const te=Dn(J,u.value,l.span,l.offset);Object.assign(U,te)}else if(u.value.type==="flow"){const te=En(J,u.value,l.span,l.offset,l.width);Object.assign(U,te)}}}if(typeof S.value=="function"){const J=S.value(s);J&&Object.assign(U,J)}else if(S.value&&typeof S.value=="object"){const J=S.value;Object.assign(U,J)}return U}),y=t.ref(null),k=t.computed({get:()=>y.value??be(l.isRequired),set:U=>{y.value=U}}),p=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",b=Ve(t.toRef(l,"labelPosition"),"labelPosition",Sn.Near),m=t.computed(()=>b&&b.value==="top"?"top":b&&b.value==="right"?"right":"left"),N=t.computed(()=>({[`${f}__main`]:!0,[`${f}__main--${m.value}`]:!0})),B=t.computed(()=>({label:!0,[`label--${m.value}`]:!0})),C=Ve(t.toRef(l,"labelWidth"),"labelWidth",Sn.Near),w=t.computed(()=>C&&C.value?{width:ge(C.value)}:{}),T=t.computed(()=>({"label--string":!0,"label--required":k.value})),$=t.computed(()=>({content:!0,[l.contentClass]:!0})),V=t.computed(()=>({...l.contentStyle})),D=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ie({setRequired(U){k.value=U},setErrorTip(U){D.errorTip=U},setErrorIcon(U){D.errorIcon=U},setWarnTip(U){D.warnTip=U},setWarnIcon(U){D.warnIcon=U},setInfoTip(U){D.infoTip=U},setInfoIcon(U){D.infoIcon=U},setCustomClassName(U){d.value=U},setCustomStyle(U){S.value=U}});const M=t.computed(()=>l.infoTip||D.infoTip),K=t.computed(()=>l.infoIcon||D.infoIcon),v=t.computed(()=>l.warnTip||D.warnTip),E=t.computed(()=>l.warnIcon||D.warnIcon),L=t.computed(()=>l.errorTip||D.errorTip),I=t.computed(()=>l.errorIcon||D.errorIcon),W=t.computed(()=>L.value?"error":v.value?"warn":M.value?"info":""),j=()=>W.value.length>0,O=t.computed(()=>W.value==="error"?L.value:W.value==="warn"?v.value:W.value==="info"?M.value:""),ee=t.computed(()=>W.value==="error"?I.value:W.value==="warn"?E.value:W.value==="info"?K.value:null),H=t.computed(()=>{const U={[`${f}__tip`]:!0,[`${f}__tip--${W.value}`]:!0,[`${f}--animate`]:!0};return W.value==="error"&&l.errorClass?U[`${l.errorClass}`]=!0:W.value==="warn"&&l.warnClass?U[`${l.warnClass}`]=!0:W.value==="info"&&l.infoClass&&(U[`${l.infoClass}`]=!0),U}),q=t.computed(()=>{const U={};return b&&b.value==="top"||!p()?U["padding-left"]="0px":C&&C.value&&(U["padding-left"]=ge(C.value)),U}),P=t.ref();let x="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([U,J,te,ae])=>{P.value&&(U&&!ue(J)?x?a.show(P.value,J,{...ae,id:x,type:te},!0):x=a.show(P.value,J,{...ae,type:te},!0):a.hide(x))});let Y=null;const z=()=>{Y||!P.value||(Y=new IntersectionObserver(U=>{let J=!1;for(let te of U)if(te.intersectionRatio>0){J=!0,J&&r.emit("appear",te);break}J||r.emit("disappear")}),Y.observe(P.value))},R=()=>{!Y||!P.value||(Y.unobserve(P.value),Y=null)};t.watch(()=>be(l.appearListen),U=>{U?z():R()}),t.onMounted(()=>{be(l.appearListen)&&z()}),t.onUnmounted(R);const G=()=>{if(!p())return null;const U=[],J=r.slots?.label?.()??l.label,te={class:T.value},ae=t.h("div",te,[J]);if(U.push(ae),r.slots.fixedPreTip){const de=r.slots.fixedPreTip();U.push(de)}const se={class:B.value,style:w.value};return t.h("div",se,U)},Z=()=>{const U=[];if(r.slots.prepend){const te=r.slots.prepend();U.push(te)}if(r.slots.default){const te=r.slots.default();U.push(te)}if(r.slots.append){const te=r.slots.append();U.push(te)}if(r.slots.fixedTip){const te={class:[`${f}__fixed-tip`]},ae=t.h("div",te,[r.slots.fixedTip()]);U.push(ae)}const J={ref:P,class:$.value,style:V.value};return t.h("div",J,U)},ne=()=>{const U=ee.value;return U?typeof U=="function"?t.h("div",{class:"fox-item__tip--icon"},[U()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(U)]):null},F=()=>{const U=O.value;return U?typeof U=="function"?t.h("div",{class:"fox-item__tip--text"},[U()]):t.h("div",{class:"fox-item__tip--text"},[U]):null},X=()=>{if(!j())return null;const U=[],J=ne();J&&U.push(J);const te=F();te&&U.push(te);const ae={class:H.value,style:q.value};return t.h("div",ae,U)},Q=()=>r.slots?.hide?.()??null;return()=>{const U=[],J=[],te=G();te&&J.push(te);const ae=Z();ae&&J.push(ae);const se={class:N.value},de=t.h("div",se,J);U.push(de);const $e=X();$e&&U.push($e);const Ne=Q();Ne&&U.push(Ne);const so={class:h.value,style:g.value,prop:l.prop};return t.h("div",so,U)}}}}const{componentName:Ac,create:Tc,scope:$c}=_("item"),Be=Tc(Bc(Ac,$c,kt,!1));function Vc(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(a,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=We(),i=An();Tn(!1);const c=t.computed(()=>{const u={};if(a.width)a.width!=="auto"&&(u.width=ge(a.width));else if(i&&s){const f=$n(s,!1),d=Vn(s,!1);if(f.value&&d){if(f.value.type==="grid"){const h=Dn(d,f.value,a.span,a.offset);Object.assign(u,h)}else if(f.value.type==="flow"){const h=En(d,f.value,a.span,a.offset,a.width);Object.assign(u,h)}}}return u});return()=>{const u=[];if(o.slots.default){const d=o.slots.default();if(a.divide)for(let h=0;h<d.length;h++){if(h>0){const S=t.h("div",{class:{[`${l}__divide`]:!0}});u.push(S)}u.push(d[h])}else Reflect.apply([].push,u,d)}const f={class:r.value,style:c.value};return t.h("div",f,u)}}}}const{componentName:Ec,create:Dc,scope:w2}=_("row-item"),Fo=Dc(Vc(Ec));function Ic(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(a,o){const l=We(),r=An();Tn(!1);const s=t.computed(()=>r&&l?$n(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),u=t.computed(()=>{const f={};if(a.width)a.width!=="auto"&&(f.width=ge(a.width));else{const d=r&&l?Vn(l,!1):null;if(s.value&&d){if(s.value.type==="grid"){const h=Dn(d,s.value,a.span,a.offset);Object.assign(f,h)}else if(s.value.type==="flow"){const h=En(d,s.value,a.span,a.offset,a.width);Object.assign(f,h)}}}return f});return()=>{const f={class:c.value,style:u.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",f,o.slots.default()):t.h("div",f)}}}}const{componentName:vc,create:xc,scope:N2}=_("slot-item"),Ko=xc(Ic(vc)),vr={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 qc(e,n,a,o){return{props:{...he,...ye,...vr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:u}=ie.useFoxI18n(n),f=u(l,["placeholder"]),d=t.ref(!1),h=Pe(l,"modelValue",null,c),S=e,g=t.computed(()=>({[S]:!0,"is-disabled":s.value,"is-readonly":i.value})),y=Ve(t.computed(()=>l.textAlign),"textAlign"),k=t.computed(()=>{const E={};return y.value&&(E["text-align"]=y.value),E}),p=E=>{let I=E.target.value;l.type==="digit"&&(I=wo(I,!0)),l.type==="number"&&(I=wo(I,!1)),l.maxLength&&I.length>Number(l.maxLength)&&(I=I.slice(0,Number(l.maxLength))),h.value=I,c("update:modelValue",I,E),c("change",I,E)};let b=Pe(l,"hintText"),m=t.ref(!1);const N=E=>{let I=E.target.value;d.value=!0,ue(b.value)||(m.value=!0),c("focus",I,E)},B=E=>{setTimeout(()=>{m.value&&(m.value=!1),d.value=!1},0);let I=E.target.value;l.maxLength&&I.length>Number(l.maxLength)&&(I=I.slice(0,Number(l.maxLength))),c("blur",I,E)},C=t.computed(()=>({[`${S}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),w=t.computed(()=>{const E={};return r.slots.append&&!T.value&&!K.value&&(E.display="none"),E}),T=t.computed(()=>ke(l.unit)>0),$=t.computed(()=>!K.value),V=t.computed(()=>({[`${S}__unit`]:!0,hidden:!$.value})),D=E=>{h.value="",c("update:modelValue","",E),c("change","",E),c("clear","")},M=t.computed(()=>be(l.clearable)&&!s.value&&!i.value),K=t.computed(()=>{let E=ke(h.value)>0;return be(l.clearable)&&E&&d.value}),v=t.computed(()=>({action:!0,hidden:!K.value}));return()=>{const E={class:g.value,style:k.value,type:l.type,maxlength:l.maxLength,placeholder:f.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:p,onFocus:N,onBlur:B},L=[],I=t.h("input",E);L.push(I);const W=[];if(M.value){const x={class:["action-icon"]},Y=t.h(o,x),z={class:v.value,onClick:D},R=t.h("view",z,{default:()=>[Y]});W.push(R)}if(T.value){const x=t.h("view",{class:V.value},[l.unit]);W.push(x)}const j={class:C.value,style:w.value},O=t.h("view",j,{default:()=>W});L.push(O);const ee={default:()=>L};ee.label=r.slots.default,ee.prepend=r.slots.prepend,ee.append=r.slots.append,ee.fixedPreTip=r.slots.fixedPreTip,ee.fixedTip=r.slots.fixedTip;const q={...rt(l,vr),hintText:b.value,hintVisible:m.value};return l.prop&&(q.prop=`${l.prop}_item`),t.h(a,q,ee)}}}}const{componentName:Mc,create:Pc,scope:Lc}=_("input-item"),Uo=Pc(qc(Mc,Lc,Be,le.CircleClose));function xr(e,n=0){let a=`${e}`,o=a.indexOf(".");if(o==-1)return a;let l=o;for(let r=a.length-1;r>=o;r--)if(a.charAt(r)!="0"){l=r;break}return l-o<n?l=o+n+1:l!=o&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function qr(e,n,a=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 xr(o)}else{let o=go(`${e}`,Ga(`${n}`),20);return xr(o)}}function zc(e,n=-1,a=!1,o=3,l=","){return on(e,n,a,o,l)}function Mr(e,n,a,o,l=!0){if(e==="")return"";if(e=Za(e),n=pe(n),n==1)return e;if(o)e=qr(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(pe(a)+2,"0"):e=go(e,1,pe(a)));else{let r=-1*n;e=qr(e,r)}return e}function Pr(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=be(n.minInclude),l=yo(e,n.min);if(o&&l==-1||!o&&(l==0||l==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let o=be(n.maxInclude),l=yo(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Lr={clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Oc(e,n,a,o){return{props:{...he,...ye,...Lr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),u=t.ref(!1),f=Pe(l,"modelValue",null,c),d=t.ref("");t.watch([()=>f.value,()=>l.rates,()=>l.precision],([j,O,ee])=>{if(ue(j)){d.value="";return}const H=Mr(j,O,ee,!1);d.value!==H&&(d.value=H)},{immediate:!0});const h=t.computed(()=>{let j="";return u.value&&(j=d.value),j}),{t:S}=ie.useFoxI18n(n),g=t.computed(()=>{let j=l.placeholder??"";return!u.value&&!ue(d.value)?j=zc(d.value,l.decimalLength,l.autoPadding,l.digits,l.separator):j=ue(j)?S(["placeholder"]):j,j}),y=e,k=t.computed(()=>({[y]:!0,[`${y}__placeholder`]:d.value.length>0,"is-disabled":s.value,"is-readonly":i.value})),p=Ve(t.computed(()=>l.textAlign),"textAlign"),b=t.computed(()=>{const j={};return p.value&&(j["text-align"]=p.value),j}),m=t.ref(""),N=t.computed(()=>{let j=m.value;return ue(j)&&(j=l.errorTip??""),j}),B=t.ref(""),C=t.ref(!1),w=j=>{let ee=j.target.value;if(ue(ee)){d.value="",f.value="",c("update:modelValue","",j),c("change","",j),be(l.showTip)&&C.value&&(C.value=!1);return}if(ee.length>=2){let H=ee;if(H.charAt(0)=="-"&&(H=H.substring(1)),H.length>=2&&H.charAt(0)=="0"&&H.charAt(1)!="."){t.triggerRef(d);return}}if(ee!="-"){if(!Co(ee)){t.triggerRef(d);return}if(l.integerLength!=-1&&rr(ee)>Number(l.integerLength)){t.triggerRef(d);return}if(l.decimalLength&&l.decimalLength!=-1&&sr(ee)>Number(l.decimalLength)){t.triggerRef(d);return}let H=Pr(ee,l);if(H.maxValid===!1){m.value=H.message,t.triggerRef(d);return}}else if(l.min!=null&&pe(l.min)>=0){t.triggerRef(d);return}B.value=ee,be(l.showTip)&&(C.value=ee.length>0),d.value=ee,f.value=Mr(ee,l.rates,l.precision,!0),c("update:modelValue",f.value,j),c("change",f.value,j)},T=j=>{if(u.value=!0,be(l.showTip)){let O=d.value;ue(O)&&(O=l.hintText),ue(O)||(B.value=O,C.value=!0)}m.value="",c("focus",f.value,j)},$=j=>{if(setTimeout(()=>{u.value=!1,be(l.showTip)&&C.value===!0&&(C.value=!1)},0),!ue(d.value)){let O=Pr(d.value,l);if(O.minValid===!1||O.maxValid===!1){m.value=O.message;return}}c("update:modelValue",f.value,j),c("blur",f.value,j)},V=t.computed(()=>({[`${y}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),D=t.computed(()=>{const j={};return r.slots.append&&!M.value&&!I.value&&(j.display="none"),j}),M=t.computed(()=>ke(l.unit)>0),K=t.computed(()=>!I.value),v=t.computed(()=>({[`${y}__unit`]:!0,hidden:!K.value})),E=j=>{f.value="",c("update:modelValue","",j),c("change","",j),c("clear","")},L=t.computed(()=>be(l.clearable)&&!s.value&&!i.value),I=t.computed(()=>{let j=ke(f.value)>0;return be(l.clearable)&&j&&u.value}),W=t.computed(()=>({action:!0,hidden:!I.value}));return()=>{let j={class:k.value,style:b.value,type:"digit",maxlength:l.maxLength,placeholder:g.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:w,onFocus:T,onBlur:$},O=[],ee=t.h("input",j);O.push(ee);let H=[];if(L.value){const R={class:["action-icon"]},G=t.h(o,R),Z={class:W.value,onClick:E},ne=t.h("view",Z,{default:()=>[G]});H.push(ne)}if(M.value){const R=t.h("view",{class:v.value},[l.unit]);H.push(R)}const q={class:V.value,style:D.value},P=t.h("view",q,{default:()=>H});O.push(P);const x={default:()=>O};x.label=r.slots.default,x.prepend=r.slots.prepend,x.append=r.slots.append,x.fixedPreTip=r.slots.fixedPreTip,x.fixedTip=r.slots.fixedTip;const z={...rt(l,Lr),errorTip:N.value,hintText:B.value,hintVisible:C.value,hintType:"number"};return l.prop&&(z.prop=`${l.prop}_item`),t.h(a,z,x)}}}}const{componentName:Rc,create:Fc,scope:Kc}=_("money-item"),Ho=Fc(Oc(Rc,Kc,Be,le.CircleClose)),jo={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:Uc,create:Hc,scope:jc}=_("textarea"),Wc=Hc({props:{...jo},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=ie.useFoxI18n(jc);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const h=Uc;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=l.value;h.style.height="auto";let S=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:g,minHeight:y}=e.autosize;g!==void 0&&(S=Math.min(S,g)),y!==void 0&&(S=Math.max(S,y))}S&&(console.info("----------- height",S),h.style.height=S+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,S)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,S),n("change",h,S)};return{...o,textareaRef:l,classes:r,styles:s,change:h=>{const S=h.target;c(S.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})}}}}),Yc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Xc={key:0,class:"fox-textarea__limit"};function Qc(e,n,a,o,l,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,Yc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Xc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const xn=oe(Wc,[["render",Qc]]);function Gc(e,n,a,o){return{props:{...he,...ye,...jo},emits:["update:modelValue","change","blur","focus","setValue"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),u=Pe(l,"modelValue",null,c),f=y=>{u.value=y,c("update:modelValue",y,{}),c("change",y,{})};let d=Pe(l,"hintText"),h=t.ref(!1);const S=y=>{ue(d.value)||(h.value=!0),c("focus",u.value,y)},g=y=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",u.value,y)};return()=>{const k={...Se(l,jo),disabled:s.value,readonly:i.value,value:u.value,"onUpdate:modelValue":f,onFocus:S,onBlur:g},p=[],b=t.h(o,k);p.push(b);const m={default:()=>p};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 B={...Se(l,ye,he)};return l.prop&&(B.prop=`${l.prop}_item`),t.h(a,B,m)}}}}const{componentName:Zc,create:Jc,scope:_c}=_("textarea-item"),Wo=Jc(Gc(Zc,_c,Be,xn));function ed(e){return e===window}const Me=e=>{const n=t.unref(e);if(ed(n)){const a=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},zr=10;function Or(e,n){return e>n&&e>zr?"horizontal":n>e&&n>zr?"vertical":""}function qn(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Mn(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",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 u=s.touches[0];e.deltaX=u.clientX-e.startX,e.deltaY=u.clientY-e.startY,e.moveX=u.clientX,e.moveY=u.clientY}else{const c=s;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Or(e.offsetX,e.offsetY))},start:s=>{if(o(),s.touches){const u=s.touches[0];e.startX=u.clientX,e.startY=u.clientY}else{const c=s;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function tt(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),u=t.ref(0),f=t.ref(""),d=()=>f.value==="vertical",h=()=>f.value==="horizontal",S=()=>{s.value=0,i.value=0,c.value=0,u.value=0,f.value="",a.value=0};return{move:k=>{if(k.touches){const m=k.touches[0];s.value=m.clientX-e.value,i.value=m.clientY-n.value,l.value=m.clientX,r.value=m.clientY}else{const b=k;s.value=b.clientX-e.value,i.value=b.clientY-n.value,l.value=b.clientX,r.value=b.clientY}c.value=Math.abs(s.value),u.value=Math.abs(i.value),o.value=Date.now()-a.value,f.value||(f.value=Or(c.value,u.value))},start:k=>{if(S(),k.touches){const m=k.touches[0];e.value=m.clientX,n.value=m.clientY}else{const b=k;e.value=b.clientX,n.value=b.clientY}a.value=Date.now()},reset:S,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:u,direction:f,isVertical:d,isHorizontal:h}}let td=2e3;const Rr=()=>td++,Re={visible:{type:Boolean,default:!1},zIndex:{type:[String,Number]},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:[String,Array],default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},nd=(e,n)=>({components:n,props:{...Re},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:o}){const l=t.reactive({zIndex:0,showSlot:!0,closed:a.closeable});a.visible&&(l.zIndex=Rr());const r=t.computed(()=>{const y=e,k=[y,`${y}--${a.position}`];return a.round&&k.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&k.push(`${y}--${a.position}--safebottom`),typeof a.popClass=="string"?k.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(p=>{k.push(p)}),k}),s=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),i=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{o("update:visible",!0),a.zIndex?l.zIndex=a.zIndex:l.zIndex=Rr(),a.destroyOnClose&&(l.showSlot=!0),o("open")},u=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},f=y=>{o("click-pop",y)},d=y=>{y.stopPropagation(),o("click-close-icon",y),o("update:visible",!1)},h=y=>{o("click-overlay",y),a.closeOnClickOverlay&&o("update:visible",!1)},S=y=>{o("opend",y)},g=y=>{o("closed",y)};return t.watch(()=>a.visible,y=>{a.visible?c():u()}),t.watch(()=>a.closeable,y=>{l.closed=y}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:f,onClickCloseIcon:d,onClickOverlay:h,onOpened:S,onClosed:g}}}),Fr={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:360}},Yo={...Re,...Fr,modelValue:{type:[String,Number,Boolean,Object,Array],default:()=>""},text:{type:[Array],default:()=>[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:()=>[]},params:{type:Object},valueType:{type:String,required:!1,default:()=>"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String},isAutoBackFill:{type:[Boolean],default:()=>!0},poppable:{type:[Boolean],default:()=>!0}};let Kr=36;function od(){return Kr}function ld(e){Kr=e}function Fe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Xo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function ad(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function ct(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ur(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let rd=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=_e(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function sd(){const e=t.getCurrentInstance();return new rd(e.proxy)}function Hr(e,n,a){const o=Fe(e,n),l=Fe(e,a);if(o!==l)return!1;const r=ct(e,n),s=ct(e,a);return r===s}function id(e,n,a,o){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const l=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=n[s];let u=a[s].findIndex(f=>{if(r==="text")return Fe(e,f)===i;if(r==="value"){let d=ct(e,f);return d==null&&(d=Fe(e,f)),d===i}else if(r==="item")return Hr(e,f,i)});if(u==-1)break;l.push(u)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let u=s.findIndex(d=>{if(r==="text")return Fe(e,d)===c;if(r==="value"){let h=ct(e,d);return h==null&&(h=Fe(e,d)),h===c}else if(r==="item")return Hr(e,d,c)});if(u==-1)break;l.push(u);const f=Xo(e,s[u]);if(!Array.isArray(f))break;s=f}}return l}function jr(e,n,a,o){if(a.length==0)return null;const l={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=a[s];let c=n[s];c<0&&c>=i.length&&(c=0);const u=i[c],f=Fe(e,u);if(l.texts.push(f),l.items.push(u),r==="text")l.values.push(f);else if(r==="value"){let d=ct(e,u);d==null&&(d=f),l.values.push(d)}else l.values.push(u)}else{let s=a[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=s.length&&(c=0);const u=s[c],f=Object.assign({},u);f.children=null;const d=Fe(e,u);if(l.texts.push(d),l.items.push(f),r==="text")l.values.push(d);else if(r==="value"){let h=ct(e,u);h==null&&(h=d),l.values.push(h)}else l.values.push(f);if(!Array.isArray(u.children))break;s=u.children}}return l}function Wr(e){return{text:e,value:e}}const cd=15,dd=300,ud=200,{create:fd}=_("picker-column");function md(e){e.stopPropagation()}function pd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),md(e)}const hd=fd({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},visible:{type:Boolean,default:!1},...Fr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${pe(e.visibleItemCount)*+e.itemHeight}px`})),l=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=w=>w>=d.currIndex+8||w<=d.currIndex-8,i=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${r.value}px`})),c=w=>`transform: rotate3d(1, 0, 0, ${-d.rotation*w}deg) translate3d(0px, 0px, 104px)`,u=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+r.value}px, 0)`})),f=t.ref(null),d=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=w=>Fe(e,w),S=w=>ct(e,w),g=tt(),y=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},k=(w,T=!1,$=!1)=>{if(d.currIndex=w,T){const V=()=>{d.moving=!1,n("update:modelValue",w),n("change",w)};$?d.transitionEndTrigger=V:V()}},p=(w,T,$)=>{let V=w+d.startDistance;if(T==="end"){const D=-(e.source.length-1)*e.itemHeight;V<D&&(V=D),V>0&&(V=0);let M=Math.abs(Math.round(-V/e.itemHeight));const K=-M*e.itemHeight,v=`${(M+1)*d.rotation}deg`,E=$?$>0:!1;k(M,!0,E),b(K,T,$,v)}else{let D=(-V/e.itemHeight+1)*d.rotation;const M=(e.source.length+1)*d.rotation,K=0;if(D=Math.min(Math.max(D,K),M),e.threeDimensional&&(D<K||D>M))return;b(V,null,void 0,`${D}deg`)}},b=(w=0,T,$=ud,V)=>{T==="end"?d.scrollTime=$:d.scrollTime=0,d.deg=V,d.scrollDistance=w},m=(w,T)=>(w=Math.abs(w/T)/.003*(w<0?-1:1),w),N=w=>{e.readonly||(d.startDistance=d.scrollDistance,g.start(w),d.transitionEndTrigger=null)},B=w=>{e.readonly||(d.moving=!0,g.move(w),g.isVertical()&&(d.moving=!0,pd(w)),p(g.deltaY.value,"",0))},C=()=>{if(e.readonly)return;const w=g.deltaY.value,T=g.duration.value;if(T<dd&&Math.abs(w)>cd){const V=m(w,T);p(V,"end",e.swipeDuration)}else p(w,"end",0)};return t.watch(()=>e.modelValue,w=>{const T=d.currIndex-w;if(T!==0){d.currIndex=w,d.startDistance=d.scrollDistance;const $=T*e.itemHeight;p($,"",0)}}),t.watch(()=>e.source,w=>{if(d.currIndex>=w.length){const V=(w.length-1-d.currIndex)*e.itemHeight;d.startDistance=d.scrollDistance,p(V,"end",0)}}),t.watch(()=>e.visible,w=>{w===!1&&y()}),t.onMounted(()=>{const w=-e.modelValue*e.itemHeight;p(w)}),{classes:a,styles:o,contentClasses:l,itemText:h,itemValue:S,...t.toRefs(d),roller:f,getItemText:Fe,onTouchStart:N,onTouchMove:B,onTouchEnd:C,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:u,stopMomentum:y}}}),gd={key:1,class:"fox-picker__item-tile"};function yd(e,n,a,o,l,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",gd,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const bd=oe(hd,[["render",yd]]);let Lt=0;const Yr="fox-overflow-hidden",Xr=()=>Ge?document.body:{classList:[]},kd=e=>[()=>{if(e())try{!Lt&&Xr().classList.add(Yr),Lt++}catch{}},()=>{if(e()&&Lt)try{Lt--,!Lt&&Xr().classList.remove(Yr)}catch{}}],Sd={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:Cd,create:wd}=_("overlay"),Nd=wd({props:{...Sd},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=kd(()=>e.lockScroll),l=t.computed(()=>({[Cd]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,i=>{i?a():o()}),{classes:l,style:r,onClick:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Bd(e,n,a,o,l,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 dt=oe(Nd,[["render",Bd]]),{componentName:Ad,create:Td}=_("popup"),$d=Td(nd(Ad,{FoxOverLay:dt,Close:le.Close}));function Vd(e,n,a,o,l,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)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const me=oe($d,[["render",Vd]]),Ed=t.defineComponent({props:{position:{type:[String],default:()=>"bottom"},visible:{type:[Boolean]},teleport:{type:[String,Element],default:()=>"body"},lockScroll:{type:[Boolean],default:()=>!0},closeOnClickOverlay:{type:[Boolean],default:()=>!0},round:{type:[Boolean],default:()=>!1},teleportDisable:{type:[Boolean],default:()=>!1},poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n}){return()=>{if(e.poppable){const a=rt({...e},{poppable:!1});return t.h(me,a,n)}else return n?.default?.()??null}}}),{create:Dd,componentName:Id,scope:vd}=_("picker"),xd=Dd({components:{Column:bd,Wrapper:Ed},props:{...Yo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=ie.useFoxI18n(vd),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(od());t.watch(()=>e.visible,v=>{v&&s.value<=0&&setTimeout(()=>{if(r.value){const E=Me(r.value);s.value=E.height,ld(s.value)}},50)});const i=t.computed(()=>({[Id]:!0})),c=sd(),u=t.ref("singleColumn");let f=t.ref([]);t.watch([()=>e.source,()=>e.params],async([v,E])=>{if(v){let L=await c.load("picker",v,E);if(L.length>0){let I=L[0];if(Array.isArray(I)){if(typeof I[0]=="string"){let W=L,j=[];W.forEach(O=>{let ee=O.map(H=>Wr(H));j.push(ee)}),f.value=j}else f.value=L;u.value="multipleColumn"}else if(typeof I=="string"){let W=L,j=[],O=W.map(ee=>Wr(ee));j.push(O),f.value=j,u.value="singleColumn"}else{const W=Xo(e,I);Array.isArray(W)?(u.value="cascade",f.value=[L]):(u.value="singleColumn",f.value=[L])}}else f.value=[]}},{immediate:!0});const d=t.ref([]),h=t.ref(e.modelValue&&!Array.isArray(e.modelValue)?[e.modelValue]:e.modelValue),S=t.ref([]);let g=null;const y=t.ref([]);t.watch([()=>e.modelValue,()=>f.value],([v,E])=>{let L=id(e,v,E,u.value);if(!xe(L,y.value)){y.value=L,g||(g=L?[...L]:[]);let I=jr(e,L,E,u.value);I&&(d.value=I.texts,xe(h.value,I.values)||(h.value=I.values),xe(S.value,I.items)||(S.value=I.items),n("update:text",d.value))}});let k="";const p=t.ref(e.visible);t.watch(()=>e.visible,v=>{p.value=v,v&&(k="active",y.value.length>0&&(g=[...y.value]))});const b=v=>{let E=Ur(e,v);return ve(E)?E.defaultIndex??0:0},m=v=>{if(e.readonly===!0)return!0;let E=Ur(e,v);return ve(E)?E.readonly??!1:!1},N=(v,E)=>{let L=y.value;L[v]=E;for(let W=0;W<v;W++)L[W]==null&&(L[W]=b(W));if(u.value==="cascade")for(let W=v+1;W<C.value.length;W++){let j=b(W);W<L.length?L[W]=j:L.push(j)}else for(let W=L.length;W<C.value.length;W++){let j=b(W);L.push(j)}y.value=L;let I=jr(e,L,f.value,u.value);I&&(d.value=I.texts,h.value=I.values,S.value=I.items)},B=v=>v<y.value.length?y.value[v]:b(v),C=t.computed(()=>{if(f.value.length==0)return[];if(u.value=="singleColumn"||u.value=="multipleColumn")return f.value;let v=[],E=0,L=f.value[0],I=0;for(;;){let W=L.map(ee=>{let H=Object.assign({},ee);return ad(e,H,null),H});v.push(W),E>=y.value.length?I=0:I=y.value[E],(I<0||I>=L.length)&&(I=0);let j=L[I];const O=Xo(e,j);if(!Array.isArray(O))break;L=O,E++}return v}),w=t.computed(()=>pe(+e.visibleItemCount-1)/2*s.value),T=(v=!1)=>{if(e.readonly===!0){v&&n("update:visible",!1);return}let E=f.value.length-1;for(;E>=0&&!(y.value[E]===null||y.value[E]===void 0);E--);if(E>=0&&N(E,0),u.value==="singleColumn"){let L=h.value.length>0?h.value[0]:"",I=S.value.length>0?S.value[0]:null;n("update:modelValue",L),n("update:text",d.value),n("change",L,I),v&&(n("confirm",L),n("update:visible",!1))}else n("update:modelValue",h.value),n("update:text",d.value),n("change",h.value,S.value),v&&(n("confirm",h.value),n("update:visible",!1))},$=(v,E)=>{if(k!=="close"&&(N(v,E),e.isAutoBackFill)){const L=!p.value;T(L)}},V=()=>{k==="active"&&(k="confirm",g=Array.isArray(y.value)?[...y.value]:[],T(!0))},D=()=>{u.value==="singleColumn"?(n("update:modelValue",""),n("update:text",""),n("change","")):(n("update:modelValue",[]),n("update:text",""),n("change",[])),y.value=[],g=null};return{...l,pickerLineRef:r,classes:i,columns:C,dataType:u,show:p,itemHeight:s,top:w,isReadonly:m,getIndex:B,change:$,close:()=>{if(k==="active"){if(k="close",g===null||g.length===0)D();else{if(Array.isArray(g))for(let v=0;v<g.length;v++)N(v,g[v]);T(!1)}n("close"),n("update:visible",!1)}},confirm:V,clear:()=>{if(k==="active"){if(k="clear",e.readonly===!0){n("update:visible",!1);return}D(),g=null,n("clear",""),n("update:visible",!1)}}}}}),qd={key:0,class:"fox-picker__bar"},Md={class:"fox-picker__title"},Pd={class:"fox-picker__bar__action"},Ld={class:"fox-picker__column"};function zd(e,n,a,o,l,r){const s=t.resolveComponent("Column"),i=t.resolveComponent("Wrapper");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,poppable:e.poppable},{default:t.withCtx(()=>[e.poppable?(t.openBlock(),t.createElementBlock("view",qd,[t.createElementVNode("view",Md,t.toDisplayString(e.title),1),t.createElementVNode("view",Pd,[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.createCommentVNode("",!0),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Ld,[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,{visible:e.show,source:c,readonly:e.isReadonly(u),"column-index":u,modelValue:e.getIndex(u),"onUpdate:modelValue":f=>e.change(u,f),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["visible","source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable","poppable"])],2)}const zt=oe(xd,[["render",zd]]);function Od(e,n,a,o,l,r,s=!0){return{props:{...he,...ye,...Yo,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,c){const u=De(t.computed(()=>i.disabled)),f=Ee(t.computed(()=>i.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),S=h(i,["placeholder"]),g=t.ref(!1),y=Pe(i,"modelValue",null,d),k=t.ref([]),p=t.computed(()=>Array.isArray(k.value)?k.value.join(i.separator):k.value),b="fox-input-item",m=t.computed(()=>({[b]:!0,"is-disabled":u.value,"is-readonly":f.value})),N=Ve(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const P={};return N.value&&(P["text-align"]=N.value),P}),C=t.ref(!1),w=()=>{C.value=!0},T=P=>{C.value=P},$=P=>{y.value=P,d("update:modelValue",P)},V=(P,x)=>{d("change",P,x)},D=P=>{let Y=P.target.value;g.value=!0,d("focus",Y,P)},M=P=>{setTimeout(()=>{g.value=!1},0);let Y=P.target.value;i.maxLength&&Y.length>Number(i.maxLength)&&(Y=Y.slice(0,Number(i.maxLength))),d("blur",Y,P)},K=P=>{k.value=P,Array.isArray(P)&&P.length===0?d("update:text",P[0]):d("update:text",P)},v=t.computed(()=>({[`${b}__append`]:!0,"is-disabled":u.value,"is-readonly":f.value})),E=t.computed(()=>ke(i.unit)>0),L=t.computed(()=>ke(i.unit)>0&&!g.value),I=t.computed(()=>({hidden:!L.value})),W=P=>{y.value="",d("update:modelValue","",P),d("change","",P),d("clear","")},j=t.computed(()=>i.clearable&&!u.value&&!f.value),O=t.computed(()=>ke(y.value)>0&&g.value),ee=P=>{O.value?W(P):w()},H=t.computed(()=>O.value&&j.value?o:l),q=t.computed(()=>({action:!0}));return()=>{const P={class:m.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:w,onFocus:D,onBlur:M};s&&(P.disabled=!0);const x=[],Y=t.h("input",P);x.push(Y);const z=[],R={class:["action-icon"]},G=t.h(H.value,R),Z={class:q.value,onClick:ee},ne=t.h("view",Z,{default:()=>[G]});if(z.push(ne),E.value){const se=t.h("view",{class:I.value},[i.unit]);z.push(se)}const F={class:v.value},X=t.h("view",F,{default:()=>z});x.push(X);const Q={default:()=>x};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 U=Se(i,Yo);U.disabled=!1,U.readonly=u.value||f.value,U.visible=C.value,U["onUpdate:visible"]=T,U.modelValue=y.value,U["onUpdate:modelValue"]=$,U.text=k.value,U["onUpdate:text"]=K,U.onChange=V;const J=t.h(r,U);Q.hide=()=>[J];const te=Se(i,ye,he);return i.prop&&(te.prop=`${i.prop}_item`),t.h(a,te,Q)}}}}const{componentName:Rd,create:Fd,scope:Kd}=_("picker-item"),Qo=Fd(Od(Rd,Kd,Be,le.CircleClose,le.ArrowRight,zt,!1)),Ud=t.defineComponent({props:{poppable:{type:[Boolean],default:()=>!0}},setup(e,{slots:n,attrs:a}){return()=>{if(e.poppable){const o={...a};return t.h(me,o,n)}else return n?.default?.()??null}}}),Pn=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:u,...f}=o,d={loading:!1,...f,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:u,_parent:n};return d.children&&d.children.length&&(d.children=Pn(d.children,d,a)),d}),Qr=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&Qr(o.children,n)},Hd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},jd=(e,n)=>{const a={...Hd,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(u=>{u={...u};const{[l]:f,[r]:d}=u,h=c[d]=c[d]||[];!i.length&&d===o&&(i=h),h.push(u),u.children=c[f]||(c[f]=[])}),s&&Object.keys(c).forEach(u=>{c[u].length>1&&c[u].sort((f,d)=>f[s]-d[s])}),c=null,i},Wd={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:[Object,Function]},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},Gr=(e,n)=>n[e.textKey],Ot=(e,n)=>n[e.valueKey],Yd=(e,n)=>n[e.visibleKey],Zr=(e,n)=>n[e.disabledKey],Xd=(e,n)=>{const a=n[e.doitKey];return be(a)},Qd=(e,n)=>{const a=n[e.numKey];return a==null?null:pe(n[a])},Jr=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function Gd(e,n,a,o=!1){return{props:{...Wd},emits:["update:modelValue","change","click"],setup(l,{slots:r,emit:s}){const i=t.computed(()=>{const H={};return H[`${e}`]=!0,H}),c=t.computed(()=>{const H={};return H[`${e}__titles`]=!0,H[`${l.direction}`]=!0,l.align==="left"&&(H.left=!0),l.scroll===!0&&(H.scrollable=!0),l.shape&&(H[`${l.shape}`]=!0),l.showQuickNavigation&&(H["has-navigation"]=!0),H}),u=t.computed(()=>({})),f=t.computed(()=>{if(!l.gutter)return 0;const H=fe(l.gutter);return H<=0?0:H}),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,H=>{d.value!==H&&(d.value=H,I(!1))});const h=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),S=t.computed(()=>{const H={};return y.value||(H.display="none"),H}),g=t.ref(),y=t.ref(!1),k=()=>{const H=!y.value;p(H)},p=H=>{const q=H;q?(y.value=q,setTimeout(()=>{h.value["fox-tabs-bar__popup--show"]=!0,h.value["fox-tabs-bar__popup--hide"]=!1},0)):(h.value["fox-tabs-bar__popup--show"]=!1,h.value["fox-tabs-bar__popup--hide"]=!0,g.value?g.value.addEventListener("transitionend",()=>{y.value=!1},{once:!0}):setTimeout(()=>{y.value=!1},0))},b=t.ref(),m=t.ref([]),N=(H,q)=>{m.value[q]=H},B=H=>q=>{N(q,H)},C=(H,q)=>{const P=b.value,x=m.value;if(!P||!x||!x[H])return;const Y=x[H];let z=0;l.direction==="vertical"?z=Y.offsetTop-(P.offsetHeight-Y.offsetHeight)/2:z=Y.offsetLeft-(P.offsetWidth-Y.offsetWidth)/2,w(P,z,q?0:.3,l.direction)},w=(H,q,P,x)=>{let Y=0;const z=x==="horizontal"?H.scrollLeft:H.scrollTop,R=P===0?1:Math.round(P*1e3/16);function G(){x==="horizontal"?H.scrollLeft+=(q-z)/R:H.scrollTop+=(q-z)/R,++Y<R&&Ue(G)}G()},T=(H,q)=>{const P=Ot(l,H),x={};return x[`${e}__titles-item`]=!0,x.disabled=Zr(l,H),x.active=P===d.value,l.shape&&(x[`${l.shape}`]=!0),l.ellipsis&&(x.ellipsis=!0),q&&(q.class&&(x[`${q.class}`]=!0),q.disabled===!0&&(x.disabled=q.disabled)),x},$=(H,q)=>{const P={};if(f.value>0){const x=Math.abs(f.value/2);l.direction==="vertical"?(P["margin-top"]=`${x}px`,P["margin-bottom"]=`${x}px`):(P["margin-left"]=`${x}px`,P["margin-right"]=`${x}px`)}return q&&q.style&&Object.assign(P,q.style),P},V=(H,q)=>`${Ot(l,H)??q}`,D=(H,q)=>{const P=Ot(l,H),x={};x[`${e}__popup-item`]=!0,x.disabled=Zr(l,H),x.active=P===d.value,l.shape&&(x[`${l.shape}`]=!0);const Y=Jr(l,H,q);return Y&&Y.disabled===!0&&(x.disabled=Y.disabled),x},M=t.computed(()=>(l.data??[]).filter(q=>Yd(l,q)!==!1)),K=(H,q)=>{const P=Ot(l,H);if(s("click",H,q),d.value==P)return;const x=()=>{d.value=P,l.scroll&&C(q,!1),s("update:modelValue",P),s("change",H,q)};if(typeof l.beforeChange=="function"){const Y=l.beforeChange(H,q);mt(Y)?Y.then(z=>{z!==!1&&x()}).catch(()=>{x()}):Y!==!1&&x()}else x()},v=(H,q)=>function(){K(H,q)},E=(H,q)=>{K(H,q),p(!1)},L=(H,q)=>function(){E(H,q)},I=H=>{if(!Array.isArray(l.data)||!l.scroll)return;const q=l.data.findIndex(P=>Ot(l,P)===d.value);q!==-1&&C(q,H)};t.watch(()=>l.data,()=>{setTimeout(I,0)}),t.onMounted(()=>{I(!0)});const W=(H,q)=>{if(r.item)return r.item({item:H,index:q});const P=Jr(l,H,q),x=[];if(r.text){const G=r.text({item:H,index:q});x.push(G)}else{const G=[];if(P?.doit===!0||Xd(l,H)){const X={class:[`${e}__titles-item-tip`,"doit"]},Q=t.h("view",X);G.push(Q)}const Z=P?.num??Qd(l,H);if(Z){let X="";const Q=pe(Z);Q>=100?X="99+":X=`${Q}`;const U={class:[`${e}__titles-item-tip`,"num"]},J=t.h("view",U,[X]);G.push(J)}const ne={class:`${e}__titles-item-text`};G.push(Gr(l,H));const F=t.h("view",ne,G);x.push(F)}const Y={class:`${e}__titles-item-line`},z=t.h("view",Y);x.push(z);const R={ref:B(q),class:T(H,P),style:$(H,P),key:V(H,q),onClick:v(H,q)};return t.h("view",R,x)},j=()=>{const H=r.default?r.default():[];if(H.length===0)for(let P=0;P<M.value.length;P++){const x=M.value[P],Y=W(x,P);H.push(Y)}const q={ref:b,class:c.value,style:u.value};return t.h("view",q,H)},O=()=>{let H=null;r.navigation?H=r.navigation():H=t.h(a);const q={class:`${e}__navigation`,onClick:k};return t.h("view",q,[H])},ee=()=>{const H=[];for(let P=0;P<M.value.length;P++){const x=M.value[P];let Y=null;r.popupItem?Y=r.popupItem({item:x,index:P}):Y=Gr(l,x);const z={class:D(x,P),key:V(x,P),onClick:L(x,P)},R=t.h("view",z,[Y]);H.push(R)}const q={class:h.value,style:S.value};return t.h("view",q,H)};return()=>{const H=[],q=j();if(H.push(q),l.showQuickNavigation){const x=O();H.push(x);const Y=ee();H.push(Y)}const P={class:i.value};return t.h("view",P,H)}}}}const{create:Zd,componentName:Jd,scope:_d}=_("tabs-bar"),Ln=Zd(Gd(Jd,_d,le.MoreH,!1)),_r=Symbol("TabsStatesKey"),eu={modelValue:{type:[String,Number]},direction:{type:[String],default:()=>"horizontal"},lazy:{type:[Boolean],default:()=>!0},draggle:{type:[Boolean],default:()=>!1}},tu=15,nu=300,ou=200;function lu(e,n,a=1){return e=Math.abs(e/n)/.003*(e<0?-1:1),e*a}function es(e,n=0,a,o,l=ou){a==="end"?e.style.transition=`transform ${l}ms linear`:e.style.transition="transform 0ms linear",o==="horizontal"?e.style.transform=`translate3d(${n}px, 0, 0)`:e.style.transform=`translate3d(0, ${n}px, 0)`}let au=class{el=null;direction="horizontal";transitionEndTrigger=null;moving=!1;isTouch=!1;triggerAutoMoveRatio=.3;momentumReduceRatio=1;transitionend=null;touchstart=null;touchmove=null;touchend=null;touchcancel=null;onStart;onMove;onEnd;constructor(n,a,o,l=1,r){this.onStart=n,this.onMove=a,this.onEnd=o,this.momentumReduceRatio=l,this.isTouch=r??qn(),console.info("------- is touch --------",this.isTouch)}open(n){this.el=n;const a=Mn(),o=(l,r,s)=>{const i={delta:l,direction:r,type:s};this.onMove(i)};this.transitionend=()=>{this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},this.touchstart=l=>{if(this.moving)return;a.start(l),this.transitionEndTrigger=()=>{n.removeEventListener("transitionend",this.transitionend),this.moving=!1,this.onEnd()},this.moving=!0,n.addEventListener("transitionend",this.transitionend),n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.addEventListener("touchcancel",this.touchend);const r={delta:0,type:"start",direction:this.direction};this.onStart(r)},this.touchmove=l=>{if(!this.moving)return;a.move(l);let r=0;if(this.direction==="horizontal"){if(a.isVertical())return;r=a.state.deltaX}else{if(a.isHorizontal())return;r=a.state.deltaY}o(r,this.direction,"move")},this.touchend=()=>{if(!this.moving)return;n.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),n.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.isTouch&&n.removeEventListener("touchcancel",this.touchend);let l=0;if(this.direction==="horizontal"){if(a.isVertical()){this.moving=!1;return}l=a.state.deltaX}else{if(a.isHorizontal()){this.moving=!1;return}l=a.state.deltaY}const r=a.state.duration;r<nu&&Math.abs(l)>tu?(l=lu(l,r,this.momentumReduceRatio),o(l,this.direction,"end")):o(l,this.direction,"end")},n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}close(){const n=this.el;this.transitionend&&n.addEventListener("transitionend",this.transitionend),this.touchstart&&n.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart),this.touchmove&&n.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&n.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.touchcancel&&this.isTouch&&n.addEventListener("touchcancel",this.touchcancel),this.el=null}};function ru(e,n,a,o=1,l){return new au(e,n,a,o,l)}function su(e,n,a=!1){return{props:{...eu},emits:["update:modelValue","change"],setup(o,{emit:l,slots:r}){const s=t.shallowRef([]),i={current:t.ref(o.modelValue??""),direction:t.ref(o.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:B=>{const C={name:B};i.current.value===B&&(C.loaded=!0),s.value.push(C),t.triggerRef(s)},remove:B=>{const C=s.value.findIndex(w=>w.name===B);C!==-1&&s.value.splice(C,1)},isLoaded:B=>{if(!o.lazy)return!0;const C=s.value.findIndex(w=>w.name===B);return C!==-1?i.current.value?s.value[C].loaded??!1:C===0:!1}};t.provide(_r,i);const c=B=>{const C=s.value.findIndex(w=>w.name===B);C!==-1&&(s.value[C].loaded=!0,t.triggerRef(s))};t.watch([()=>o.modelValue,()=>o.direction],([B,C])=>{i.current.value!==B&&(i.current.value=B??"",c(B??"")),i.direction.value!==C&&(i.direction.value=C)});const u=t.ref(null),f=t.ref(null),d=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0}));let h=!0;const S=t.computed(()=>{const B={},C=s.value.length;if(C<=0)return B;const w=s.value.findIndex(T=>T.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(B.height=`${C*i.tabHeight.value}px`,w!==-1&&(B.transform=`translate(0, -${w*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(B.width=`${C*i.tabWidth.value}px`,w!==-1&&(B.transform=`translate(-${w*i.tabWidth.value}px, 0)`)),h&&(h=!1,B.transition="transform 0s ease"),B}),g={min:0,max:0,start:0,moved:0,itemDistance:0,triggerAutoMoveRatio:.3},y=B=>{const C=s.value.length,w=s.value.findIndex(T=>T.name===i.current.value);g.moved=0,B.direction==="vertical"?(g.min=-1*(i.tabHeight.value*(C-1)+i.tabHeight.value/4),g.max=i.tabHeight.value/4,g.start=-w*i.tabHeight.value,g.itemDistance=i.tabHeight.value):(g.min=-1*(i.tabWidth.value*(C-1)+i.tabWidth.value/4),g.max=i.tabWidth.value/4,g.start=-w*i.tabWidth.value,g.itemDistance=i.tabWidth.value)},k=B=>{const C=f.value;if(!C)return;let w=g.start+B.delta;if(w>g.max?w=g.max:w<g.min&&(w=g.min),B.type==="move")es(C,w,"move",B.direction,300);else if(B.type==="end"){let T=Math.floor(Math.abs(w)*1/g.itemDistance);const $=Math.abs(w)%g.itemDistance;g.start>w?$>=g.itemDistance*g.triggerAutoMoveRatio&&(T+=1):$>g.itemDistance-g.itemDistance*g.triggerAutoMoveRatio&&(T+=1),w=-1*T*g.itemDistance,es(C,w,"end",B.direction,300),g.moved=w;const V=s.value[T].name;i.current.value=V??"",c(V??""),l("update:modelValue",V)}},p=()=>{},b=()=>{const B=Nn(u.value);i.tabWidth.value=B.width,i.tabHeight.value=B.height};let m=null,N=null;return t.onMounted(()=>{u.value&&(window.ResizeObserver&&(N=new window.ResizeObserver(b),N.observe(u.value)),b(),o.draggle&&(m=ru(y,k,p),m.open(f.value)))}),t.onBeforeUnmount(()=>{N&&(N.disconnect(),N=null),m&&m.close()}),Ie({doLayout(){b()}}),()=>{const B={class:`${e}__panes`,style:S.value,ref:f},C=t.h("view",B,[r?.default?.()]),w={class:d.value,ref:u};return t.h("view",w,[C])}}}}const{create:iu,componentName:cu,scope:du}=_("tabs-container"),zn=iu(su(cu,du,!1)),uu={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function fu(e,n,a){return{props:{...uu},setup(o,{emit:l,slots:r}){const s=t.inject(_r);t.onMounted(()=>{s.add(o.paneKey)}),t.onBeforeUnmount(()=>{s.remove(o.paneKey)});const i=t.computed(()=>{const u={};return s.direction.value==="vertical"&&s.tabHeight.value>0?u.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(u.width=`${s.tabWidth.value}px`),u}),c=t.computed(()=>o.loaded!=null?be(o.loaded):s.isLoaded(o.paneKey));return()=>{let u=[];if(c.value)u=r?.default?.()??[];else if(r.empty)u=r.empty();else{const d={class:`${e}__empty-icon`},h=o.emptyIcon??a,S=t.h(h,d),g={class:`${e}__empty-text`},y=o.emptyText??"Loading",k=t.h("view",g,[y]),p={class:`${e}__empty`},b=t.h("view",p,[S,k]);u.push(b)}const f={class:`${e}`,style:i.value};return t.h("view",f,u)}}}}const{create:mu,componentName:pu,scope:hu}=_("tabs-pane"),On=mu(fu(pu,hu,le.Loading));class ts{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=Pn(n,null,this.config)}updateChildren(n,a){a?a.children=Pn(n,a,this.config):this.nodes=Pn(n,null,this.config)}getNodeByValue(n){let a;return Qr(this.nodes,o=>{if(o.value===n)return a=o,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===n[r.level]);if(!l)break;a.push(l),o=l.children}return a}isLeaf(n,a){const{leaf:o,children:l}=n,r=Array.isArray(l)&&!!l.length;return o||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:l}=n;return Array.isArray(l)&&!!l.length}}const{create:gu,scope:yu}=_("cascader-pane"),bu=gu({components:{Loading:le.Loading,Checklist:le.Checklist,TabsBar:Ln,TabsContainer:zn,TabsPane:On},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(yu),o=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),l=t.ref(0),r=t.ref(),s=t.ref(!1),i=t.ref(e.modelValue),c=t.ref(new ts([],{})),u=t.ref([]),f=t.computed(()=>o.value.lazy&&!!o.value.lazyLoad),d=t.computed(()=>s.value==!0||u.value.length==0?[{text:"Loading",value:0}]:u.value.map((m,N)=>({text:m.selectedNode?m.selectedNode.text:a("select"),value:N}))),h=new Map;let S;const g=async()=>{h.clear(),u.value=[],l.value=0,s.value=!1,S=null;let{options:m}=e;o.value.convertConfig&&(m=jd(m,o.value.convertConfig)),c.value=new ts(m,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),f.value&&!c.value.nodes.length&&await k({root:!0,loading:!0,text:"",value:""}),u.value=[{nodes:c.value.nodes,selectedNode:null}],y(!f.value)},y=async(m=!0)=>{const N=i.value;if(N===void 0||!c.value.nodes.length)return;if(N.length===0){l.value=0,u.value=[{nodes:c.value.nodes,selectedNode:null}];return}let B=N;if(f.value&&Array.isArray(N)&&N.length){B=[];let C=c.value.nodes.find(w=>w.value===N[0]);if(C){B=[C.value],s.value=!0;const w=await N.slice(1).reduce(async(T,$)=>{const V=await T;await k(V);const D=V?.children?.find(M=>M.value===$);return D&&B.push($),Promise.resolve(D)},Promise.resolve(C));await k(w),s.value=!1}}B.length&&N===e.modelValue&&c.value.getPathNodesByValue(B).map((w,T)=>{l.value=T,b.handleNode(w,m)})},k=async m=>{if(!m)return;if(!o.value.lazyLoad){m.leaf=!0;return}if(c.value.isLeaf(m,f.value)||c.value.hasChildren(m,f.value))return;m.loading=!0;const N=m.root?null:m;let B=h.get(m);B||(B=new Promise(w=>{o.value.lazyLoad?.(m,w)}),h.set(m,B));const C=await B;Array.isArray(C)&&C.length>0?c.value.updateChildren(C,N):m.leaf=!0,m.loading=!1,h.delete(m)},p=m=>{const N=m.map(B=>B.value);i.value=N,n("change",N,m),n("pathChange",m),n("update:modelValue",N)},b={async handleNode(m,N){const{disabled:B,loading:C}=m;if(!(!N&&B||!u.value[l.value])){if(c.value.isLeaf(m,f.value)){if(m.leaf=!0,u.value[l.value].selectedNode=m,u.value=u.value.slice(0,m.level+1),!N){const w=u.value.map(T=>T.selectedNode);p(w),n("pathChange",w)}return}if(c.value.hasChildren(m,f.value)){const w=m.level+1;if(u.value[l.value].selectedNode=m,u.value=u.value.slice(0,w),u.value.push({nodes:m.children||[],selectedNode:null}),l.value=w,!N){const T=u.value.map($=>$.selectedNode);n("pathChange",T)}return}S=m,!C&&(await k(m),S===m&&(u.value[l.value].selectedNode=m,b.handleNode(m,N)))}},handleTabChange(m,N){S=null},formatTabTitle(m){return m.selectedNode?m.selectedNode.text:a("select")},isSelected(m,N){return m.selectedNode&&m.selectedNode.value===N.value}};return t.watch([o,()=>e.options],()=>{g()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,m=>{xe(m,i.value)||(i.value=m,y(!f.value))}),t.watch(()=>e.visible,m=>{m&&Array.isArray(i.value)&&i.value.length>0&&y(),m&&r.value&&setTimeout(()=>{r.value.doLayout()},0)}),{panes:u,panesTitles:d,initLoading:s,tabsCursor:l,tabsContainerRef:r,...b}}}),ku={class:"fox-cascader"},Su={role:"menu",class:"fox-cascader__pane"},Cu=["aria-checked","aria-disabled","onClick"],wu={class:"fox-cascader__item__title"};function Nu(e,n,a,o,l,r){const s=t.resolveComponent("TabsBar"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),u=t.resolveComponent("TabsPane"),f=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",ku,[t.createVNode(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=d=>e.tabsCursor=d),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(f,{ref:"tabsContainerRef",modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=d=>e.tabsCursor=d)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(d,h)=>(t.openBlock(),t.createBlock(u,{"pane-key":h,key:h},{default:t.withCtx(()=>[t.createElementVNode("view",Su,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,S=>(t.openBlock(),t.createElementBlock("view",{key:S.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,S),disabled:S.disabled}]),"aria-checked":e.isSelected(d,S),"aria-disabled":S.disabled||void 0,role:"menuitemradio",onClick:g=>e.handleNode(S,!1)},[t.createElementVNode("view",wu,t.toDisplayString(S.text),1),S.loading?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(c,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Cu))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(u,{key:1,"pane-key":0},{default:t.withCtx(()=>n[2]||(n[2]=[t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1)])),_:1}))]),_:1},8,["modelValue"])])}const Bu=oe(bu,[["render",Nu]]),{create:Au}=_("cascader"),Tu=Au({components:{CascaderPane:Bu,Wrapper:Ud},props:{...Re,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:()=>"value"},textKey:{type:String,default:()=>"text"},childrenKey:{type:String,default:()=>"children"},poppable:{type:Boolean,default:()=>!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=t.ref(e.modelValue),o=t.computed({get(){return e.visible},set(s){n("update:visible",s)}}),l=(s,i)=>{a.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!==a.value&&(a.value=s)}),{onChange:l,onPathChange:r,innerValue:a,innerVisible:o}}}),$u=["innerHTML"];function Vu(e,n,a,o,l,r){const s=t.resolveComponent("CascaderPane"),i=t.resolveComponent("Wrapper");return t.openBlock(),t.createBlock(i,{poppable:e.poppable,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,$u)):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,["poppable","visible","closeable","close-icon-position"])}const Rn=oe(Tu,[["render",Vu]]);function St(e,n){const a=e.textKey??"text";return n[a]??""}function Ct(e,n){const a=e.valueKey??"value";return n[a]}function ns(e,n){const a=e.childrenKey??"children";return n[a]}function Fn(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=St(e,l),s=Ct(e,l);a.texts.push(r),a.values.push(s??"")}return a}function os(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(St(e,n[s])===r){const c=Ct(e,n[s])??"",u={[e.textKey]:r,[e.valueKey]:c};l.push(u);const f=ns(e,n[s]);Array.isArray(f)&&os(e,f,a,o+1,l);return}}function ls(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Ct(e,n[s])===r){const c=St(e,n[s])??"",u={[e.textKey]:c,[e.valueKey]:r};l.push(u);const f=ns(e,n[s]);Array.isArray(f)&&ls(e,f,a,o+1,l);return}}function Go(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++){const l=St(e,n[o]),r=St(e,a[o]);if(l!==r)return!1;const s=Ct(e,n[o]),i=Ct(e,a[o]);if(s!==i)return!1}return!0}let Eu=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){const l="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a,o);const r=_e(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(ve(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await r(n,a,o))}};function Du(){const e=t.getCurrentInstance();return new Eu(e.proxy)}const as={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},showAllLevels:{type:[Boolean],default:!0},separator:{type:[String],default:"/"}};function Iu(e,n,a,o,l,r,s=!1){return{props:{...he,...ye,...as},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(i,c){const u=De(t.computed(()=>i.disabled)),f=Ee(t.computed(()=>i.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),S=h(i,["placeholder"]),g=t.ref(!1),y=Du(),k=t.ref([]),p=t.ref([]),b=t.computed(()=>{if(Array.isArray(p.value)){if(i.showAllLevels===!1){const R=p.value.length-1;return p.value[R]}return p.value.join(i.separator)}else return p.value}),m=t.ref([]),N=t.ref([]);t.watch([()=>i.modelValue,()=>k.value],async([R,G])=>{if(d("setValue",R),i.lazy===!0){N.value.length==0&&(m.value=Array.isArray(R)?R:[]);return}if(i.valueType==="item"){let Z=R;if(!Go(i,Z,N.value)){N.value=Z;let ne=Fn(i,Z);p.value=ne.texts,m.value=ne.values}}else if(i.valueType==="text"){let Z=R,ne=[];if(os(i,G,Z,0,ne),!Go(i,ne,N.value)){N.value=ne;let F=Fn(i,ne);Z.value=F.texts,m.value=F.values}}else{let Z=[];if(ls(i,G,R,0,Z),!Go(i,Z,N.value)){N.value=Z;let ne=Fn(i,Z);p.value=ne.texts,m.value=ne.values}}}),i.lazy===!0&&(m.value=Array.isArray(i.modelValue)?i.modelValue:[]),t.watch([()=>i.source,()=>i.params],async([R,G])=>{i.lazy||R&&(k.value=await y.load(R,G))},{immediate:!0});const B="fox-input-item",C=t.computed(()=>({[B]:!0,"is-disabled":u.value,"is-readonly":f.value})),w=Ve(t.computed(()=>i.textAlign),"textAlign"),T=t.computed(()=>{const R={};return w.value&&(R["text-align"]=w.value),R}),$=t.ref(!1),V=()=>{u.value===!0||f.value===!0||($.value=!0)},D=R=>{$.value=R},M=(R,G)=>{let Z=G.map(F=>{if(F==null)return F;let X={...F};return Reflect.deleteProperty(X,"text"),X[i.textKey]=F.text??"",Reflect.deleteProperty(X,"value"),X[i.valueKey]=F.value??"",X});N.value=Z;let ne=Fn(i,Z);p.value=ne.texts,m.value=ne.values,i.valueType==="text"?(d("change",p.value,Z),d("update:modelValue",p.value)):i.valueType==="item"?(d("change",Z,Z),d("update:modelValue",Z)):(d("change",m.value,Z),d("update:modelValue",m.value)),d("update:pathNodes",Z)},K=R=>{let G=R.map(Z=>{if(Z==null)return Z;let ne={...Z};return Reflect.deleteProperty(ne,"text"),ne[i.textKey]=Z.text??"",Reflect.deleteProperty(ne,"value"),ne[i.valueKey]=Z.value??"",ne});d("pathChange",G)},v=R=>{g.value=!0,d("focus",m.value,R)},E=R=>{setTimeout(()=>{g.value=!1},0),d("blur",m.value,R)},L=t.computed(()=>({[`${B}__append`]:!0,"is-disabled":u.value,"is-readonly":f.value})),I=t.computed(()=>ke(i.unit)>0),W=t.computed(()=>ke(i.unit)>0&&!g.value),j=t.computed(()=>({hidden:!W.value})),O=R=>{N.value=[],p.value=[],m.value=[],d("update:modelValue",[]),d("change",[],R),d("clear",[]),d("update:pathNodes",[])},ee=t.computed(()=>i.clearable&&!u.value&&!f.value),H=t.computed(()=>{let R=m.value&&m.value.length>0;return i.clearable&&R&&g.value}),q=R=>{H.value?O(R):V()},P=t.computed(()=>H.value&&ee.value?o:l),x=t.computed(()=>({action:!0}));let Y=null;const z=()=>typeof Y=="function"?Y:typeof i.lazyLoad=="function"?i.lazyLoad:(Y=async(R,G)=>{const Z=[],ne=[];let F=0;if(!R.root){let Q=R;for(;Q;){const U=St(i,Q),J=Ct(i,Q);ne.splice(0,0,U),Z.splice(0,0,J),Q=Q._parent}F=Z.length}const X=await y.load(i.source,{...R,level:F,pathLabels:ne,pathValues:Z},!0);G(X)},Y);return()=>{const R={class:C.value,style:T.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:V,onFocus:v,onBlur:E};s&&(R.disabled=!0);const G=[],Z=t.h("input",R);G.push(Z);const ne=[],F={class:["action-icon"]},X=t.h(P.value,F),Q={class:x.value,onClick:q},U=t.h("view",Q,{default:()=>[X]});if(ne.push(U),I.value){const ft=t.h("view",{class:j.value},[i.unit]);ne.push(ft)}const J={class:L.value},te=t.h("view",J,{default:()=>ne});G.push(te);const ae={default:()=>G};ae.label=c.slots.default,ae.prepend=c.slots.prepend,ae.append=c.slots.append,ae.fixedPreTip=c.slots.fixedPreTip,ae.fixedTip=c.slots.fixedTip;let se={};se.visible=$.value,se["onUpdate:visible"]=D,se.modelValue=m.value,se.onChange=M,se.onPathChange=K,se.title=i.title,se.valueKey=i.valueKey,se.textKey=i.textKey,se.childrenKey=i.childrenKey,se.convertConfig=i.convertConfig,i.lazy?(se.lazy=!0,se.lazyLoad=z()):se.options=k.value;const de=t.h(r,se);ae.hide=()=>[de];const Ne={...rt(i,as)};return i.prop&&(Ne.prop=`${i.prop}_item`),t.h(a,Ne,ae)}}}}const{componentName:vu,create:xu,scope:qu}=_("cascader-item"),Zo=xu(Iu(vu,qu,Be,le.CircleClose,le.ArrowRight,Rn,!1));var Ye=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Xe(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var rs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",u="day",f="week",d="month",h="quarter",S="year",g="date",y="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,p=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,b={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},m=function(K,v,E){var L=String(K);return!L||L.length>=v?K:""+Array(v+1-L.length).join(E)+K},N={s:m,z:function(K){var v=-K.utcOffset(),E=Math.abs(v),L=Math.floor(E/60),I=E%60;return(v<=0?"+":"-")+m(L,2,"0")+":"+m(I,2,"0")},m:function K(v,E){if(v.date()<E.date())return-K(E,v);var L=12*(E.year()-v.year())+(E.month()-v.month()),I=v.clone().add(L,d),W=E-I<0,j=v.clone().add(L+(W?-1:1),d);return+(-(L+(E-I)/(W?I-j:j-I))||0)},a:function(K){return K<0?Math.ceil(K)||0:Math.floor(K)},p:function(K){return{M:d,y:S,w:f,d:u,D:g,h:c,m:i,s,ms:r,Q:h}[K]||String(K||"").toLowerCase().replace(/s$/,"")},u:function(K){return K===void 0}},B="en",C={};C[B]=b;var w=function(K){return K instanceof D},T=function K(v,E,L){var I;if(!v)return B;if(typeof v=="string"){var W=v.toLowerCase();C[W]&&(I=W),E&&(C[W]=E,I=W);var j=v.split("-");if(!I&&j.length>1)return K(j[0])}else{var O=v.name;C[O]=v,I=O}return!L&&I&&(B=I),I||!L&&B},$=function(K,v){if(w(K))return K.clone();var E=typeof v=="object"?v:{};return E.date=K,E.args=arguments,new D(E)},V=N;V.l=T,V.i=w,V.w=function(K,v){return $(K,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var D=function(){function K(E){this.$L=T(E.locale,null,!0),this.parse(E)}var v=K.prototype;return v.parse=function(E){this.$d=function(L){var I=L.date,W=L.utc;if(I===null)return new Date(NaN);if(V.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var j=I.match(k);if(j){var O=j[2]-1||0,ee=(j[7]||"0").substring(0,3);return W?new Date(Date.UTC(j[1],O,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ee)):new Date(j[1],O,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ee)}}return new Date(I)}(E),this.$x=E.x||{},this.init()},v.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},v.$utils=function(){return V},v.isValid=function(){return this.$d.toString()!==y},v.isSame=function(E,L){var I=$(E);return this.startOf(L)<=I&&I<=this.endOf(L)},v.isAfter=function(E,L){return $(E)<this.startOf(L)},v.isBefore=function(E,L){return this.endOf(L)<$(E)},v.$g=function(E,L,I){return V.u(E)?this[L]:this.set(I,E)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(E,L){var I=this,W=!!V.u(L)||L,j=V.p(E),O=function(R,G){var Z=V.w(I.$u?Date.UTC(I.$y,G,R):new Date(I.$y,G,R),I);return W?Z:Z.endOf(u)},ee=function(R,G){return V.w(I.toDate()[R].apply(I.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(G)),I)},H=this.$W,q=this.$M,P=this.$D,x="set"+(this.$u?"UTC":"");switch(j){case S:return W?O(1,0):O(31,11);case d:return W?O(1,q):O(0,q+1);case f:var Y=this.$locale().weekStart||0,z=(H<Y?H+7:H)-Y;return O(W?P-z:P+(6-z),q);case u:case g:return ee(x+"Hours",0);case c:return ee(x+"Minutes",1);case i:return ee(x+"Seconds",2);case s:return ee(x+"Milliseconds",3);default:return this.clone()}},v.endOf=function(E){return this.startOf(E,!1)},v.$set=function(E,L){var I,W=V.p(E),j="set"+(this.$u?"UTC":""),O=(I={},I[u]=j+"Date",I[g]=j+"Date",I[d]=j+"Month",I[S]=j+"FullYear",I[c]=j+"Hours",I[i]=j+"Minutes",I[s]=j+"Seconds",I[r]=j+"Milliseconds",I)[W],ee=W===u?this.$D+(L-this.$W):L;if(W===d||W===S){var H=this.clone().set(g,1);H.$d[O](ee),H.init(),this.$d=H.set(g,Math.min(this.$D,H.daysInMonth())).$d}else O&&this.$d[O](ee);return this.init(),this},v.set=function(E,L){return this.clone().$set(E,L)},v.get=function(E){return this[V.p(E)]()},v.add=function(E,L){var I,W=this;E=Number(E);var j=V.p(L),O=function(q){var P=$(W);return V.w(P.date(P.date()+Math.round(q*E)),W)};if(j===d)return this.set(d,this.$M+E);if(j===S)return this.set(S,this.$y+E);if(j===u)return O(1);if(j===f)return O(7);var ee=(I={},I[i]=o,I[c]=l,I[s]=a,I)[j]||1,H=this.$d.getTime()+E*ee;return V.w(H,this)},v.subtract=function(E,L){return this.add(-1*E,L)},v.format=function(E){var L=this,I=this.$locale();if(!this.isValid())return I.invalidDate||y;var W=E||"YYYY-MM-DDTHH:mm:ssZ",j=V.z(this),O=this.$H,ee=this.$m,H=this.$M,q=I.weekdays,P=I.months,x=function(G,Z,ne,F){return G&&(G[Z]||G(L,W))||ne[Z].slice(0,F)},Y=function(G){return V.s(O%12||12,G,"0")},z=I.meridiem||function(G,Z,ne){var F=G<12?"AM":"PM";return ne?F.toLowerCase():F},R={YY:String(this.$y).slice(-2),YYYY:this.$y,M:H+1,MM:V.s(H+1,2,"0"),MMM:x(I.monthsShort,H,P,3),MMMM:x(P,H),D:this.$D,DD:V.s(this.$D,2,"0"),d:String(this.$W),dd:x(I.weekdaysMin,this.$W,q,2),ddd:x(I.weekdaysShort,this.$W,q,3),dddd:q[this.$W],H:String(O),HH:V.s(O,2,"0"),h:Y(1),hh:Y(2),a:z(O,ee,!0),A:z(O,ee,!1),m:String(ee),mm:V.s(ee,2,"0"),s:String(this.$s),ss:V.s(this.$s,2,"0"),SSS:V.s(this.$ms,3,"0"),Z:j};return W.replace(p,function(G,Z){return Z||R[G]||j.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(E,L,I){var W,j=V.p(L),O=$(E),ee=(O.utcOffset()-this.utcOffset())*o,H=this-O,q=V.m(this,O);return q=(W={},W[S]=q/12,W[d]=q,W[h]=q/3,W[f]=(H-ee)/6048e5,W[u]=(H-ee)/864e5,W[c]=H/l,W[i]=H/o,W[s]=H/a,W)[j]||H,I?q:V.a(q)},v.daysInMonth=function(){return this.endOf(d).$D},v.$locale=function(){return C[this.$L]},v.locale=function(E,L){if(!E)return this.$L;var I=this.clone(),W=T(E,L,!0);return W&&(I.$L=W),I},v.clone=function(){return V.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},K}(),M=D.prototype;return $.prototype=M,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",u],["$M",d],["$y",S],["$D",g]].forEach(function(K){M[K[1]]=function(v){return this.$g(v,K[0],K[1])}}),$.extend=function(K,v){return K.$i||(K(v,D,$),K.$i=!0),$},$.locale=T,$.isDayjs=w,$.unix=function(K){return $(1e3*K)},$.en=C[B],$.Ls=C,$.p={},$})})(rs);var Mu=rs.exports;const Ke=Xe(Mu);var ss={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){var a={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\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(k){this[y]=+k}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var p=k.match(/([+-]|\d\d)/g),b=60*p[1]+(+p[2]||0);return b===0?0:p[0]==="+"?-b:b}(y)}],d=function(y){var k=i[y];return k&&(k.indexOf?k:k.s.concat(k.f))},h=function(y,k){var p,b=i.meridiem;if(b){for(var m=1;m<=24;m+=1)if(y.indexOf(b(m,0,k))>-1){p=m>12;break}}else p=y===(k?"pm":"PM");return p},S={A:[s,function(y){this.afternoon=h(y,!1)}],a:[s,function(y){this.afternoon=h(y,!0)}],S:[/\d/,function(y){this.milliseconds=100*+y}],SS:[l,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:[l,u("day")],Do:[s,function(y){var k=i.ordinal,p=y.match(/\d+/);if(this.day=p[0],k)for(var b=1;b<=31;b+=1)k(b).replace(/\[|\]/g,"")===y&&(this.day=b)}],M:[r,u("month")],MM:[l,u("month")],MMM:[s,function(y){var k=d("months"),p=(d("monthsShort")||k.map(function(b){return b.slice(0,3)})).indexOf(y)+1;if(p<1)throw new Error;this.month=p%12||p}],MMMM:[s,function(y){var k=d("months").indexOf(y)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,u("year")],YY:[l,function(y){this.year=c(y)}],YYYY:[/\d{4}/,u("year")],Z:f,ZZ:f};function g(y){var k,p;k=y,p=i&&i.formats;for(var b=(y=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,V,D){var M=D&&D.toUpperCase();return V||p[D]||a[D]||p[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,v,E){return v||E.slice(1)})})).match(o),m=b.length,N=0;N<m;N+=1){var B=b[N],C=S[B],w=C&&C[0],T=C&&C[1];b[N]=T?{regex:w,parser:T}:B.replace(/^\[|\]$/g,"")}return function($){for(var V={},D=0,M=0;D<m;D+=1){var K=b[D];if(typeof K=="string")M+=K.length;else{var v=K.regex,E=K.parser,L=$.slice(M),I=v.exec(L)[0];E.call(V,I),$=$.replace(I,"")}}return function(W){var j=W.afternoon;if(j!==void 0){var O=W.hours;j?O<12&&(W.hours+=12):O===12&&(W.hours=0),delete W.afternoon}}(V),V}}return function(y,k,p){p.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var b=k.prototype,m=b.parse;b.parse=function(N){var B=N.date,C=N.utc,w=N.args;this.$u=C;var T=w[1];if(typeof T=="string"){var $=w[2]===!0,V=w[3]===!0,D=$||V,M=w[2];V&&(M=w[2]),i=this.$locale(),!$&&M&&(i=p.Ls[M]),this.$d=function(L,I,W){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*L);var j=g(I)(L),O=j.year,ee=j.month,H=j.day,q=j.hours,P=j.minutes,x=j.seconds,Y=j.milliseconds,z=j.zone,R=new Date,G=H||(O||ee?1:R.getDate()),Z=O||R.getFullYear(),ne=0;O&&!ee||(ne=ee>0?ee-1:R.getMonth());var F=q||0,X=P||0,Q=x||0,U=Y||0;return z?new Date(Date.UTC(Z,ne,G,F,X,Q,U+60*z.offset*1e3)):W?new Date(Date.UTC(Z,ne,G,F,X,Q,U)):new Date(Z,ne,G,F,X,Q,U)}catch{return new Date("")}}(B,T,C),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),D&&B!=this.format(T)&&(this.$d=new Date("")),i={}}else if(T instanceof Array)for(var K=T.length,v=1;v<=K;v+=1){w[1]=T[v-1];var E=p.apply(this,w);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}v===K&&(this.$d=new Date(""))}else m.call(this,N)}}})})(ss);var Pu=ss.exports;const Lu=Xe(Pu);var is={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o,l){var r=o.prototype,s=r.format;l.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 f=this.$utils(),d=(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 f.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return f.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return f.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)(d)}}})})(is);var zu=is.exports;const Ou=Xe(zu);var cs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o,l){var r=o.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,h,S,g,y){var k=d.name?d:d.$locale(),p=s(k[h]),b=s(k[S]),m=p||b.map(function(B){return B.slice(0,g)});if(!y)return m;var N=k.weekStart;return m.map(function(B,C){return m[(C+(N||0))%7]})},c=function(){return l.Ls[l.locale()]},u=function(d,h){return d.formats[h]||function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,y,k){return y||k.slice(1)})}(d.formats[h.toUpperCase()])},f=function(){var d=this;return{months:function(h){return h?h.format("MMMM"):i(d,"months")},monthsShort:function(h){return h?h.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(d,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return u(d.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return f.bind(this)()},l.localeData=function(){var d=c();return{firstDayOfWeek:function(){return d.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(h){return u(d,h)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(d){return i(c(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return i(c(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return i(c(),"weekdaysMin","weekdays",2,d)}}})})(cs);var Ru=cs.exports;const Fu=Xe(Ru);var ds={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){var a="week",o="year";return function(l,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 f=s(this).startOf(o).add(1,o).date(u),d=s(this).endOf(a);if(f.isBefore(d))return 1}var h=s(this).startOf(o).date(u).startOf(a).subtract(1,"millisecond"),S=this.diff(h,a,!0);return S<0?s(this).startOf("week").week():Math.ceil(S)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(ds);var Ku=ds.exports;const Uu=Xe(Ku);var us={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),s=this.year();return r===1&&l===11?s+1:l===0&&r>=52?s-1:s}}})})(us);var Hu=us.exports;const ju=Xe(Hu);var fs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(fs);var Wu=fs.exports;const Yu=Xe(Wu);var ms={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(ms);var Xu=ms.exports;const Qu=Xe(Xu);var ps={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(Ye,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(ps);var Gu=ps.exports;const Zu=Xe(Gu);Ke.extend(Fu),Ke.extend(Ou),Ke.extend(Lu),Ke.extend(Uu),Ke.extend(ju),Ke.extend(Yu),Ke.extend(Qu),Ke.extend(Zu);const re={format(e,n){return Ke(e).format(n)},parser(e,n){return Ke(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const l=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},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 a=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,o,l].join(n)},getDay(e,n,a){e=e||0;let o=n??new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),a=a??"YYYY-MM-DD",this.format(o,a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(a>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,a==o},getMonthWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a));let r=l.getDay(),s=l.getDate(),i=6-r;return o!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),s=Math.round((l.valueOf()-r.valueOf())/864e5);let i=l.getDay(),c=6-i;return o!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let s=l.getDay();if(o===0){const c=r-s*864e5,u=r+(6-s)*864e5,f=this.date2Str(new Date(c)),d=this.date2Str(new Date(u));return[f,d]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,u=r+(7-s)*i,f=this.date2Str(new Date(c)),d=this.date2Str(new Date(u));return[f,d]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=re.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=re.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s}},hs=new Date().getFullYear(),Jo={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"},Kn=(e,n,a)=>{let o;if(He(n)?o=n:typeof n=="string"&&ke(n)>0?o=re.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},_o=(e,n,a)=>{He(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),re.format(new Date(o),a)},el={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:()=>"date"},valueFormat:{type:String},visible:{type:Boolean,default:()=>!1},title:{type:String,default:()=>""},isShowChinese:{type:Boolean,default:()=>!0},minuteStep:{type:Number,default:()=>1},minDate:{type:Date,default:()=>new Date(hs-10,0,1),validator:He},maxDate:{type:Date,default:()=>new Date(hs+10,11,31),validator:He},visibleItemCount:{type:[Number,String],default:()=>7},threeDimensional:{type:Boolean,default:()=>!0},swipeDuration:{type:[Number,String],default:()=>1e3},itemFormatter:{type:Function},itemFilter:{type:Function},teleportDisable:{type:Boolean}},{create:Ju,scope:_u}=_("date-picker"),ef=Ju({components:{Picker:zt},props:{...el},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(_u),o={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds"),today:a("today"),fullWeekdays:JSON.parse(a("fullWeekdays"))},l=t.ref(!1);t.watch(()=>e.visible,m=>{l.value=m});function r(m,N){return new Date(m,N,0).getDate()}const s=(m,N)=>{const B=e[`${m}Date`],C=B.getFullYear();let w=1,T=1,$=0,V=0;m==="max"&&(w=12,T=r(N.getFullYear(),N.getMonth()+1),$=23,V=59);const D=V;return N.getFullYear()===C&&(w=B.getMonth()+1,N.getMonth()+1===w&&(T=B.getDate(),N.getDate()===T&&($=B.getHours(),N.getHours()===$&&(V=B.getMinutes())))),{[`${m}Year`]:C,[`${m}Month`]:w,[`${m}Date`]:T,[`${m}Hour`]:$,[`${m}Minute`]:V,[`${m}Seconds`]:D}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:m,maxDate:N,maxMonth:B,maxHour:C,maxMinute:w,maxSeconds:T}=s("max",h.value),{minYear:$,minDate:V,minMonth:D,minHour:M,minMinute:K,minSeconds:v}=s("min",h.value);let E=[{type:"year",range:[$,m]},{type:"month",range:[D,B]},{type:"day",range:[V,N]},{type:"hour",range:[M,C]},{type:"minute",range:[K,w]},{type:"seconds",range:[v,T]}];switch(e.type){case"date":E=E.slice(0,3);break;case"datetime":E=E.slice(0,5);break;case"time":E=E.slice(3,6);break;case"year-month":E=E.slice(0,2);break;case"month-day":E=E.slice(1,3);break;case"datehour":E=E.slice(0,4);break;case"hour-minute":E=E.slice(3,5);break}return E}),c=(m,N,B,C,w)=>{if(!(N>m))return null;const T=[];for(;m<=N;){let $=!0;if(typeof e.itemFilter=="function"){const V={text:`${m}`,value:m,type:B,currentYearMonth:C};$=e.itemFilter(V)}if($)if(typeof e.itemFormatter=="function"){const V={text:`${m}`,value:m,type:B,currentYearMonth:C};e.itemFormatter(V),T.push({text:V.text,value:V.value})}else if(e.isShowChinese){let V=`${m}${o[B]}`;if(B==="day"){if(C[0]===w[0]&&C[1]===w[1]&&m===w[2])V=o.today;else{const M=new Date(C[0],C[1],m).getDay();V=`${V} ${o.fullWeekdays[M]}`}T.push({text:V,value:m})}else T.push({text:m+o[B],value:m})}else T.push({text:`${m}`,value:m});B==="minute"?m+=e.minuteStep:m++}return T},u=t.computed(()=>{const m=new Date,N=[m.getFullYear(),m.getMonth(),m.getDate()],B=[];h.value&&(B[0]=h.value.getFullYear(),B[1]=h.value.getMonth());let C=[];return i.value.forEach(w=>{let T=c(w.range[0],w.range[1],w.type,B,N);T&&C.push(T)}),C}),f=(m,N)=>m==="year"?N.getFullYear():m==="month"?N.getMonth()+1:m==="day"?N.getDate():m==="hour"?N.getHours():m==="minute"?N.getMinutes():m==="seconds"?N.getSeconds():0,d=t.ref(),h=t.ref(null);t.watch(()=>e.modelValue,m=>{let N;if(typeof m=="string"?m.length==0||m==="Invalid Date"?N=new Date:e.valueFormat?N=Kn(e,e.modelValue,e.valueFormat):N=Kn(e,m,Jo[e.type]):He(m)?N=m:N=new Date,!!N&&(!h.value||N.getTime()!==h.value.getTime())){h.value=N;let B=[];i.value.forEach(C=>{let w=f(C.type,N);B.push(w)}),d.value=B}},{immediate:!0});const S=m=>{if(!m||m.length===0){h.value=new Date;let N=[];i.value.forEach(B=>{let C=f(B.type,h.value);N.push(C)}),d.value=N;return}if(e.type==="date"){const N=m[0],B=m[1]-1,C=Math.min(m[2],r(N,B+1));C!==m[2]&&(m[2]=C),h.value=new Date(N,B,C)}else if(e.type==="datetime"){const N=m[0],B=m[1]-1,C=Math.min(m[2],r(N,B+1)),w=m[3],T=m[4];C!==m[2]&&(m[2]=C),h.value=new Date(N,B,C,w,T)}else if(e.type==="time"){const N=m[0],B=m[1],C=m[2],w=h.value??new Date,T=new Date(w.getFullYear(),w.getMonth(),w.getDate(),N,B,C);h.value=T}else if(e.type==="year-month"){const N=m[0],B=m[1]-1;h.value=new Date(N,B)}else if(e.type==="month-day"){const B=(h.value??new Date).getFullYear(),C=m[0]-1,w=Math.min(m[1],r(B,C+1));w!==m[1]&&(m[1]=w);const T=new Date(B,C,w);h.value=T}else if(e.type==="datehour"){const N=m[0],B=m[1]-1,C=Math.min(m[2],r(N,B+1)),w=m[3];C!==m[2]&&(m[2]=C),h.value=new Date(N,B,C,w)}else if(e.type==="hour-minute"){const N=m[0],B=m[1],C=h.value??new Date,w=new Date(C.getFullYear(),C.getMonth(),C.getDate(),N,B);h.value=w}d.value=m};return{columns:u,dateIndexs:d,show:l,onChange:m=>{S(m)},onClose:()=>{n("update:close",!1)},onConfirm:m=>{S(m);const N=h.value??new Date;if(e.valueFormat){let B=_o(e,N,e.valueFormat);n("update:modelValue",B)}else n("update:modelValue",N);n("confirm",m)},onClear:()=>{n("clear")},onUpdateVisible:m=>{l.value=m,n("update:visible",m)}}}});function tf(e,n,a,o,l,r){const s=t.resolveComponent("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,onChange:e.onChange,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"onUpdate:visible":e.onUpdateVisible,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top: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","onChange","onConfirm","onClose","onClear","onUpdate:visible","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Un=oe(ef,[["render",tf]]),nf={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function of(e){let n=e.format;if(!n){let a=e.type??"date";n=Jo[a]}return n}function lf(e,n,a,o,l,r,s=!1){return{props:{...he,...ye,...el,...nf},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const u=De(t.computed(()=>i.disabled)),f=Ee(t.computed(()=>i.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),S=h(i,["placeholder"]),g=t.ref(!1),k=Pe(i,"modelValue",q=>q==null?null:typeof q=="string"?q.length==0?null:i.valueFormat?Kn(i,q,i.valueFormat)??q:Kn(i,q,Jo[i.type])??q:He(q)?q:null,d),p=t.computed(()=>{if(!k.value)return"";const q=of(i);return _o(i,k.value,q)}),b="fox-input-item",m=t.computed(()=>({[b]:!0,"is-disabled":u.value,"is-readonly":f.value})),N=Ve(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const q={};return N.value&&(q["text-align"]=N.value),q}),C=t.ref(!1),w=()=>{C.value=!0},T=()=>{C.value=!1};c.expose({showPicker:w,hidePicker:T});const $=q=>{C.value=q},V=q=>{if(k.value=q,i.valueFormat){let P=_o(i,q,i.valueFormat);d("update:modelValue",P,{}),d("change",P,{})}else d("update:modelValue",q,{}),d("change",q,{})},D=q=>{let x=q.target.value;g.value=!0,d("focus",x,q)},M=q=>{setTimeout(()=>{g.value=!1},0);let x=q.target.value;i.maxLength&&x.length>Number(i.maxLength)&&(x=x.slice(0,Number(i.maxLength))),d("blur",x,q)},K=t.computed(()=>({[`${b}__append`]:!0,"is-disabled":u.value,"is-readonly":f.value})),v=t.computed(()=>ke(i.unit)>0),E=t.computed(()=>ke(i.unit)>0&&!g.value),L=t.computed(()=>({hidden:!E.value})),I=q=>{k.value="",d("update:modelValue","",q),d("change","",q),d("clear",""),T()},W=t.computed(()=>i.clearable&&!u.value&&!f.value),j=t.computed(()=>{let q=ke(k.value)>0;return i.clearable&&q&&g.value}),O=q=>{j.value?I(q):w()},ee=t.computed(()=>j.value&&W.value?o:l),H=t.computed(()=>({action:!0}));return()=>{const q={class:m.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:w,onFocus:D,onBlur:M};s&&(q.disabled=!0);const P=[],x=t.h("input",q);P.push(x);const Y=[],z={class:["action-icon"]},R=t.h(ee.value,z),G={class:H.value,onClick:O},Z=t.h("view",G,{default:()=>[R]});if(Y.push(Z),v.value){const de=t.h("view",{class:L.value},[i.unit]);Y.push(de)}const ne={class:K.value},F=t.h("view",ne,{default:()=>Y});P.push(F);const X={default:()=>P};X.label=c.slots.default,X.prepend=c.slots.prepend,X.append=c.slots.append,X.fixedPreTip=c.slots.fixedPreTip,X.fixedTip=c.slots.fixedTip;const Q=Se(i,el);Q.valueFormat=null,Q.disabled=!1,Q.readonly=u.value||f.value,Q.visible=C.value,Q["onUpdate:visible"]=$,Q.modelValue=k.value,Q["onUpdate:modelValue"]=V,Q.onClear=I;const U={};if(c.slots.top){const de=c.slots.top();U.top=()=>de}if(c.slots.bottom){const de=c.slots.bottom();U.default=()=>de}const J=t.h(r,Q,U);X.hide=()=>[J];const ae={...Se(i,ye,he)};return i.prop&&(ae.prop=`${i.prop}_item`),t.h(a,ae,X)}}}}const{create:af,componentName:rf,scope:sf}=_("date-item"),tl=af(lf(rf,sf,Be,le.CircleClose,le.Date,Un,!1)),cf=39,df=64,{create:uf,scope:ff}=_("calendar-pane"),mf=uf({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:re.getDay(0)},endDate:{type:String,default:re.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=ie.useFoxI18n(ff),r=o(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(l("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),u=t.ref(null),f=t.ref(null),d=t.ref(null),h=t.ref(0),S=t.computed(()=>p.monthsData.slice(p.defaultRange[0],p.defaultRange[1])),g=t.computed(()=>a.btn),y=t.computed(()=>a["top-info"]),k=t.computed(()=>a["bottom-info"]),p=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),b=z=>z.split("-"),m=z=>re.isEqual(p.currDate[0],z),N=z=>re.isEqual(p.currDate[1],z),B=z=>p.currDate?.length>0?p.currDate?.some(R=>re.isEqual(R,z)):!1,C=(z,R)=>R.curData[0]+"-"+R.curData[1]+"-"+re.getNumTwoBit(+z.day),w=(z,R)=>{const G=C(z,R),{type:Z}=e;return z.type=="curr"?re.isEqual(p.currDate,G)||(Z=="range"||Z=="week")&&(m(G)||N(G))||Z=="multiple"&&B(G)?`${p.dayPrefix}--active`:p.propStartDate&&re.compareDate(G,p.propStartDate)||p.propEndDate&&re.compareDate(p.propEndDate,G)?`${p.dayPrefix}--disabled`:(Z=="range"||Z=="week")&&Array.isArray(p.currDate)&&Object.values(p.currDate).length==2&&re.compareDate(p.currDate[0],G)&&re.compareDate(G,p.currDate[1])?`${p.dayPrefix}--choose`:null:`${p.dayPrefix}--disabled`},T=()=>{const{type:z}=e;if(z=="range"&&p.chooseData.length==2||z!="range"){let R=p.chooseData.slice(0);z=="week"&&(R={weekDate:[V(p.chooseData[0]),V(p.chooseData[1])]}),n("choose",R),e.poppable&&n("update")}},$=(z,R,G=!1)=>{if(w(z,R)!=`${p.dayPrefix}--disabled`){const{type:Z}=e;let[ne,F]=R.curData,X=[...R.curData];if(X[2]=re.getNumTwoBit(Number(z.day)),X[3]=`${X[0]}-${X[1]}-${X[2]}`,X[4]=re.getWhatDay(+X[0],+X[1],+X[2]),Z=="multiple")if(p.currDate?.length>0){let Q;p.currDate?.forEach((U,J)=>{U==X[3]&&(Q=J)}),G?p.chooseData.push([...X]):Q!==void 0?(p.currDate.splice(Q,1),p.chooseData.splice(Q,1)):(p.currDate.push(X[3]),p.chooseData.push([...X]))}else p.currDate=[X[3]],p.chooseData=[[...X]];else if(Z=="range"){let Q=Object.values(p.currDate).length;Q==2||Q==0?p.currDate=[X[3]]:re.compareDate(p.currDate[0],X[3])?Array.isArray(p.currDate)&&p.currDate.push(X[3]):Array.isArray(p.currDate)&&p.currDate.unshift(X[3]),p.chooseData.length==2||!p.chooseData.length?p.chooseData=[[...X]]:re.compareDate(p.chooseData[0][3],X[3])?p.chooseData=[...p.chooseData,[...X]]:p.chooseData=[[...X],...p.chooseData]}else if(Z=="week"){let Q=re.getWeekDate(ne,F,z.day,e.firstDayOfWeek);p.propStartDate&&re.compareDate(Q[0],p.propStartDate)&&Q.splice(0,1,p.propStartDate),p.propEndDate&&re.compareDate(p.propEndDate,Q[1])&&Q.splice(1,1,p.propEndDate),p.currDate=Q,p.chooseData=[re.formatResultDate(Q[0]),re.formatResultDate(Q[1])]}else p.currDate=X[3],p.chooseData=[...X];if(!G){let Q=p.chooseData;Z=="week"&&(Q={weekDate:[V(p.chooseData[0]),V(p.chooseData[1])]}),n("select",Q),(e.isAutoBackFill||!e.poppable)&&T()}}},V=z=>{let[R,G,Z]=z;return{date:z,monthWeekNum:re.getMonthWeek(R,G,Z,e.firstDayOfWeek),yearWeekNum:re.getYearWeek(R,G,Z,e.firstDayOfWeek)}},D=z=>{const R=p.monthsData[p.monthsData.length-1];let G=parseInt(R.curData[0]),Z=parseInt(R.curData[1].toString().replace(/^0/,""));switch(z){case"prev":Z==1&&(G-=1),Z=Z==1?12:--Z;break;case"next":Z==12&&(G+=1),Z=Z==12?1:++Z;break}return[G+"",re.getNumTwoBit(Z),re.getMonthDays(String(G),String(Z))+""]},M=(z,R,G)=>{let{year:Z,month:ne}=G;return Array.from(Array(z),(F,X)=>({day:String(X+1),type:R,year:Z,month:ne}))},K=(z,R,G,Z)=>{z=z-e.firstDayOfWeek;let{year:ne,month:F}=G;return z>=7&&(z-=7),Array.from(Array(Z),(Q,U)=>({day:String(U+1),type:R,year:ne,month:F})).slice(Z-z)},v=(z,R)=>{const G=re.getMonthPreDay(+z[0],+z[1]);let Z=Number(z[1])-1,ne=Number(z[0]);Z<=0&&(Z=12,ne+=1);const F=re.getMonthDays(String(z[0]),String(z[1])),X=re.getMonthDays(ne+"",Z+""),Q={year:z[0],month:z[1]},U={curData:z,title:l("monthTitle",{year:Q.year,month:Q.month}),monthData:[...K(G,"prev",{month:String(Z),year:String(ne)},X),...M(F,"curr",Q)],cssHeight:0,cssScrollHeight:0},J=U.monthData.length>35?6:5;U.cssHeight=cf+df*J;let te=0;p.monthsData.length>0&&(te=p.monthsData[p.monthsData.length-1].cssScrollHeight+p.monthsData[p.monthsData.length-1].cssHeight),U.cssScrollHeight=te,(!p.endData||!re.compareDate(`${p.endData[0]}-${p.endData[1]}-${re.getMonthDays(p.endData[0],p.endData[1])}`,`${z[0]}-${z[1]}-${z[2]}`))&&p.monthsData.push(U)},E=()=>{let z=e.startDate?e.startDate:re.getDay(0),R=e.endDate?e.endDate:re.getDay(365);p.propStartDate=z,p.propEndDate=R,p.startData=b(z),p.endData=b(R),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(p.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const G={year:Number(p.startData[0]),month:Number(p.startData[1])},Z={year:Number(p.endData[0]),month:Number(p.endData[1])};let ne=Z.month-G.month;Z.year-G.year>0&&(ne=ne+12*(Z.year-G.year)),ne<=0&&(ne=1),v(p.startData);let F=1;do v(D("next"));while(F++<ne);if(p.monthsNum=ne,e.type=="range"&&Array.isArray(p.currDate))p.currDate.length>0&&(z&&re.compareDate(p.currDate[0],z)&&p.currDate.splice(0,1,z),R&&re.compareDate(R,p.currDate[1])&&p.currDate.splice(1,1,R),p.defaultData=[...b(p.currDate[0]),...b(p.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(p.currDate)){if(p.currDate.length>0){let X=[],Q={};p.currDate.forEach(U=>{z&&!re.compareDate(U,z)&&R&&!re.compareDate(R,U)&&(Object.hasOwnProperty.call(Q,U)||(X.push(U),Q[U]=U))}),p.currDate=[...X],p.defaultData=[...b(X[0])]}}else if(e.type=="week"&&Array.isArray(p.currDate)){if(p.currDate.length>0){let[X,Q,U]=b(p.currDate[0]),J=re.getWeekDate(X,Q,U,e.firstDayOfWeek);p.currDate=J,z&&re.compareDate(p.currDate[0],z)&&p.currDate.splice(0,1,z),R&&re.compareDate(R,p.currDate[1])&&p.currDate.splice(1,1,R),p.defaultData=[...b(p.currDate[0]),...b(p.currDate[1])]}}else p.currDate&&(z&&re.compareDate(p.currDate,z)?p.currDate=z:R&&!re.compareDate(p.currDate,R)&&(p.currDate=R),p.defaultData=[...b(p.currDate)])};Ie({scrollToDate:z=>{re.compareDate(z,p.propStartDate)?z=p.propStartDate:re.compareDate(z,p.propEndDate)||(z=p.propEndDate);let R=b(z);p.monthsData.forEach((G,Z)=>{if(G.title==l("monthTitle",{year:R[0],month:R[1]})&&c.value){let ne=p.monthsData[Z].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let F=0,X=setInterval(()=>{if(F++,c.value){let Q=ne/10;c.value.scrollTop=c.value.scrollTop+Q}F>=10&&(clearInterval(X),c.value&&(c.value.scrollTop=p.monthsData[Z].cssScrollHeight))},40)}else c.value.scrollTop=p.monthsData[Z].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=p.monthsData[p.currentIndex].cssScrollHeight)},doLayout:()=>{let z=0,R=0;p.defaultData.length>0&&p.monthsData.forEach((ne,F)=>{ne.title==l("monthTitle",{year:p.defaultData[0],month:p.defaultData[1]})&&(z=F),(e.type=="range"||e.type=="week")&&ne.title==l("monthTitle",{year:p.defaultData[3],month:p.defaultData[4]})&&(R=F)}),j(p.monthsNum,z),p.currentIndex=z,p.yearMonthTitle=p.monthsData[p.currentIndex].title,p.defaultData.length>0&&(p.isRange?($({day:p.defaultData[2],type:"curr"},p.monthsData[p.currentIndex],!0),$({day:p.defaultData[5],type:"curr"},p.monthsData[R],!0)):e.type=="week"?$({day:p.defaultData[2],type:"curr"},p.monthsData[p.currentIndex],!0):e.type=="multiple"?[...p.currDate].forEach(ne=>{let F=b(ne),X=p.currentIndex;p.monthsData.forEach((Q,U)=>{Q.title==l("monthTitle",{year:F[0],month:F[1]})&&(X=U)}),$({day:F[2],type:"curr"},p.monthsData[X],!0)}):$({day:p.defaultData[2],type:"curr"},p.monthsData[p.currentIndex],!0));let G=p.monthsData[p.monthsData.length-1],Z=G.cssHeight+G.cssScrollHeight;Qe(()=>{c?.value&&u?.value&&d?.value&&(h.value=c.value.clientHeight,u.value.style.height=`${Z}px`,c.value.scrollTop=p.monthsData[p.currentIndex].cssScrollHeight)}),p.avgHeight=Math.floor(Z/(p.monthsNum+1))}});const j=(z,R)=>{z>=3?R>0&&R<z?p.defaultRange=[R-1,R+3]:R==0?p.defaultRange=[R,R+4]:R==z&&(p.defaultRange=[R-2,R+2]):p.defaultRange=[0,z+2];let G=p.monthsData[p.defaultRange[0]].cssScrollHeight;p.translateY=G},O=(z,R)=>(e.type=="range"||e.type=="week")&&z.type=="curr"&&w(z,R)=="fox-calendar__day--active",ee=(z,R)=>O(z,R)&&m(C(z,R)),H=(z,R)=>p.currDate.length>=2&&N(C(z,R))?O(z,R):!1,q=()=>{if(p.currDate.length>=2)return re.isEqual(p.currDate[0],p.currDate[1])},P=z=>{const R=`${z.year}-${z.month}-${Number(z.day)<10?"0"+z.day:z.day}`;return re.isEqual(R,re.date2Str(new Date))},x=z=>{if(p.monthsData.length<=1)return;const R=z.target.scrollTop;let G=Math.floor(R/p.avgHeight);if(G==0)R>=p.monthsData[G+1].cssScrollHeight&&(G+=1);else if(G>0&&G<p.monthsNum-1)R>=p.monthsData[G+1].cssScrollHeight&&(G+=1),R<p.monthsData[G].cssScrollHeight&&(G-=1);else{const Z=Math.round(R+h.value);Z<p.monthsData[G].cssScrollHeight+p.monthsData[G].cssHeight&&R>p.monthsData[G-1].cssScrollHeight&&(G-=1),G+1<=p.monthsNum&&Z>=p.monthsData[G+1].cssScrollHeight+p.monthsData[G+1].cssHeight&&(G+=1),G>=1&&R<p.monthsData[G-1].cssScrollHeight&&(G-=1)}p.currentIndex!==G&&(p.currentIndex=G,j(p.monthsNum,G)),p.yearMonthTitle=p.monthsData[G].title},Y=()=>{p.chooseData.splice(0),p.monthsData.splice(0),E()};return E(),t.watch(()=>e.defaultValue,z=>{z&&e.poppable&&Y()}),{weeks:i,compConthsData:S,showTopBtn:g,topInfo:y,bottomInfo:k,rangeTip:q,mothsViewScroll:x,getClass:w,isStartTip:ee,isEndTip:H,chooseDay:$,isCurrDay:P,confirm:T,months:c,...t.toRefs(p),...t.toRefs(e),...r,monthsPanel:u,weeksPanel:f,viewArea:d}}}),pf={class:"fox-calendar__header"},hf={key:0,class:"fox-calendar__header-title"},gf={key:1,class:"fox-calendar__header-slot"},yf={key:2,class:"fox-calendar__header-subtitle"},bf={class:"fox-calendar__weekdays",ref:"weeksPanel"},kf={class:"fox-calendar__panel",ref:"monthsPanel"},Sf={class:"fox-calendar__month-title"},Cf={class:"fox-calendar__days"},wf=["onClick"],Nf={class:"fox-calendar__day-value"},Bf={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Af={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Tf={key:2,class:"fox-calendar__day-tips--curr"},$f={key:4,class:"fox-calendar__day-tip"},Vf={key:0,class:"fox-calendar__footer"};function Ef(e,n,a,o,l,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",pf,[e.showTitle?(t.openBlock(),t.createElementBlock("view",hf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",gf,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",yf,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",bf,[(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",kf,[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",Sf,t.toDisplayString(s.title),1),t.createElementVNode("view",Cf,[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:f=>e.chooseDay(c,s)},[t.createElementVNode("view",Nf,[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",Bf,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Af,[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",Tf,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",$f,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,wf))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Vf,[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 gs=oe(mf,[["render",Ef]]),Df=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Hn={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:If}=_("calendar"),vf=If({components:{[gs.name]:gs,[me.name]:me},props:{...Hn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const o=t.computed(()=>a.btn),l=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),s=t.computed(()=>a["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)})}),Ie({scrollToDate:c,initPosition:u});const f=()=>{n("update:visible",!1)},d=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{d()},update:f,close:d,select:y=>{n("select",y)},choose:y=>{d(),n("choose",y)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function xf(e,n,a,o,l,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 jn=oe(vf,[["render",xf]]),ys={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}},nl=(e,n)=>{let a;return He(e)?a=e:typeof e=="string"&&ke(e)>0?a=re.parser(e,n):a=new Date,a},wt=(e,n,a)=>(He(n)||(n=new Date),re.format(n,a)),Nt=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=re.date2Str(e),r=re.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function qf(e,n,a,o,{CloseIcon:l,MarkIcon:r},s=!1){return{props:{...he,...ye,...Hn,...ys},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const u=De(t.computed(()=>i.disabled)),f=Ee(t.computed(()=>i.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),S=h(i,["placeholder"]),g=t.ref(!1),y=t.computed(()=>i.type==="range"),k=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),p=()=>{k.startDate!==null&&(k.startDate=null,k.endDate=null,k.startArray=[],k.endArray=[])},b=(x,Y="one",z="YYYY-MM-DD")=>{if(Df(x)){p();return}if(y.value&&Array.isArray(x)&&x.length==2){let R,G;typeof x[0]=="string"?(R=nl(x[0],z),G=nl(x[1],z)):(R=x[0],G=x[1]);let Z=Nt(R),ne=Nt(G);(k.startDate===null||k.startDate.getTime()!==R.getTime()||k.endDate?.getTime()!==G.getTime())&&(k.startDate=R,k.startArray=Z,k.endDate=G,k.endArray=ne)}else{let R;typeof x=="string"?R=nl(x,z):R=x;let G=Nt(R);(k.startDate===null||k.startDate.getTime()!==R.getTime())&&(k.startDate=R,k.startArray=G)}};b(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,x=>{b(x,i.type,i.valueFormat),d("setValue",x)});const m=t.computed(()=>{if(k.startDate===null)return"";if(y.value){let x=wt(i,k.startDate,i.format),Y=wt(i,k.endDate,i.format);return`${x} ${i.rangeSeparator} ${Y}`}else{let x=wt(i,k.startDate,i.format);return i.showWeek&&(x=`${x} ${k.startArray[4]}`),x}}),N=t.computed(()=>{if(k.startDate===null)return null;if(y.value){let x=re.date2Str(k.startDate),Y=re.date2Str(k.endDate??new Date);return[x,Y]}else return re.date2Str(k.startDate)}),B="fox-input-item",C=t.computed(()=>({[B]:!0,"is-disabled":u.value,"is-readonly":f.value})),w=Ve(t.computed(()=>i.textAlign),"textAlign"),T=t.computed(()=>{const x={};return w.value&&(x["text-align"]=w.value),x}),$=t.ref(!1),V=()=>{f.value||u.value||($.value=!0)},D=x=>{$.value=x},M=x=>{if(x){if(y.value&&Array.isArray(x)){let Y=x[0],z=pe(Y[0]),R=pe(Y[1]),G=pe(Y[2]),Z=new Date(z,R-1,G),ne=x[1];z=pe(ne[0]),R=pe(ne[1]),G=pe(ne[2]);let F=new Date(z,R-1,G);if(k.startDate=Z,k.startArray=Nt(Z),k.endDate=F,k.endArray=Nt(F),i.valueFormat){let X=wt(i,Z,i.valueFormat),Q=wt(i,F,i.valueFormat);d("update:modelValue",[X,Q],{})}else d("update:modelValue",[Z,F],{})}else{let Y=x,z=pe(Y[0]),R=pe(Y[1]),G=pe(Y[2]),Z=new Date(z,R-1,G);if(k.startDate=Z,k.startArray=Nt(Z),i.valueFormat){let ne=wt(i,Z,i.valueFormat);d("update:modelValue",ne,{})}else d("update:modelValue",Z,{})}d("change",x,{})}},K=x=>{let z=x.target.value;g.value=!0,d("focus",z,x)},v=x=>{setTimeout(()=>{g.value=!1},0);let z=x.target.value;i.maxLength&&z.length>Number(i.maxLength)&&(z=z.slice(0,Number(i.maxLength))),d("blur",z,x)},E=t.computed(()=>({[`${B}__append`]:!0,"is-disabled":u.value,"is-readonly":f.value})),L=t.computed(()=>ke(i.unit)>0),I=t.computed(()=>ke(i.unit)>0&&!g.value),W=t.computed(()=>({hidden:!I.value})),j=x=>{p(),d("update:modelValue",null,x),d("change","",x),d("clear","")},O=t.computed(()=>i.clearable&&!u.value&&!f.value),ee=t.computed(()=>{let x=ke(m.value)>0;return i.clearable&&x&&g.value}),H=x=>{ee.value?j(x):V()},q=t.computed(()=>ee.value&&O.value?l:r),P=t.computed(()=>({action:!0}));return()=>{const x={class:C.value,style:T.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:m.value,onClick:V,onFocus:K,onBlur:v};s&&(x.disabled=!0);const Y=[],z=t.h("input",x);Y.push(z);const R=[],G={class:["action-icon"]},Z=t.h(q.value,G),ne={class:P.value,onClick:H},F=t.h("view",ne,{default:()=>[Z]});if(R.push(F),L.value){const Ne=t.h("view",{class:W.value},[i.unit]);R.push(Ne)}const X={class:E.value},Q=t.h("view",X,{default:()=>R});Y.push(Q);const U={default:()=>Y};U.label=c.slots.default,U.prepend=c.slots.prepend,U.append=c.slots.append,U.fixedPreTip=c.slots.fixedPreTip,U.fixedTip=c.slots.fixedTip;const J=Se(i,Hn);J.visible=$.value,J["onUpdate:visible"]=D,J["default-value"]=N.value,J.onChoose=M;const te={};if(c.slots.btn){const Ne=c.slots.btn();te.btn=()=>Ne}c.slots.day&&(te.day=c.slots.day),c.slots.topInfo&&(te.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(te.bottomInfo=c.slots.bottomInfo);const ae=t.h(a,J,te);U.hide=()=>[ae];const de={...rt(i,Hn,ys)};return i.prop&&(de.prop=`${i.prop}_item`),t.h(o,de,U)}}}}const{componentName:Mf,create:Pf,scope:Lf}=_("calendar-item"),ol=Pf(qf(Mf,Lf,jn,Be,{CloseIcon:le.CircleClose,MarkIcon:le.Date},!1)),zf={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 Of(e,{CheckNormal:n,Checked:a}){return{props:{...zf},setup(o,{emit:l,slots:r}){const s=t.inject("parent",null),i=Bn(),c=t.computed(()=>s.label.value===o.label),u=t.computed(()=>s.position),f=()=>{const y=[];if(c.value){if(r.checkedIcon)return r.checkedIcon();{const k=fe(o.iconSize),p=o.checkedIcon??i.radio.Checked??a;return y.push("fox-radio__icon"),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h(p,{width:k,height:k,class:y})}}else{if(r.icon)return r.icon();{const k=fe(o.iconSize),p=o.icon??i.radio.CheckNormal??n;return y.push("fox-radio__icon--unchecked"),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h(p,{width:k,height:k,class:y})}}},d=()=>{const y=[`${e}__label`];return o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h("view",{class:y},r.default?.())},h=()=>{const y=[`${e}__button`];return c.value&&y.push(`${e}__button--active`),o.disabled&&y.push("is-disabled"),o.readonly&&y.push("is-readonly"),t.h("view",{class:y},r.default?.())},S=()=>{c.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:S},[o.shape=="button"?h():g?[d(),f()]:[f(),d()]])}}}const{componentName:Rf,create:Ff}=_("radio"),Wn=Ff(Of(Rf,{CheckNormal:le.CheckNormal,Checked:le.CheckChecked})),{componentName:bs,create:Kf}=_("radio-group"),Yn=Kf({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:a}=gt(),o=l=>a("update:modelValue",l);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:o}),t.watch(()=>e.modelValue,l=>a("change",l)),()=>{const l={};return e.textAlign&&(l["text-align"]=e.textAlign),t.h("view",{class:`${bs} ${bs}--${e.direction}`,style:l},n.default?.())}}});function ks(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(Xn(e,r)===a)return l}else if(o==="item"){if(xe(a,r))return l}else if(Rt(e,r)===a)return l}return-1}function Xn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Rt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Uf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Hf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let jf=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=_e(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Wf(){const e=t.getCurrentInstance();return new jf(e.proxy)}function Yf(e){return{text:e,value:e}}const Ss={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},Xf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},Qf={source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Object],default:""}};function Gf(e,n,a,o,l){return{props:{...he,...ye,...Ss,...Xf,...Qf},emits:["change","update:modelValue","setValue"],setup(r,s){const i=Ee(t.computed(()=>r.readonly)),c=De(t.computed(()=>r.disabled)),u=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:f}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return c.value}},r.prop??s.attrs.name),d=Wf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([p,b])=>{if(p){const m=await d.load("radio",p,b);if(m.length>0)if(typeof m[0]=="string"){const C=m.map(w=>Yf(w));h.value=C}else h.value=m;else h.value=[]}},{immediate:!0});let S=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([p,b])=>{S.value=ks(r,b,p,r.valueType),f("setValue",p)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;if(S.value===-1)return null;const p=h.value[S.value];return Rt(r,p)}),y=p=>{let b=null,m=null;if(h.value.length>0){let N=ks(r,h.value,p,"value");S.value=N,N>=0&&(m=h.value[N],r.valueType==="text"?b=Xn(r,m):r.valueType==="item"?b=m:b=Rt(r,m))}else b=p;f("update:modelValue",b),f("change",b,m)},k=()=>{let p=null,b=null;if(h.value.length>0&&S.value!==-1){let m=h.value[S.value];r.valueType==="text"?p=Xn(r,m):r.valueType==="item"?p=m:p=Rt(r,m)}f("update:modelValue",p),f("change",p,b)};if(Ie({clear(){S.value!==-1&&(S.value=-1,k())}}),r.source){const p=()=>{const b=[],m=Se(r,Ss);return h.value.forEach((N,B)=>{const C=Rt(r,N),w=Uf(r,N);let T={...m,label:C,disabled:w};const $=Hf(r,N,B);T={...T,...$},c.value&&(T.disabled=!0),i.value&&(T.readonly=!0);const V={};if(s.slots.icon&&(V.icon=s.slots.icon),s.slots.checkedIcon&&(V.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const M=s.slots.text(N);V.default=()=>[M]}else{const M=Xn(r,N);V.default=()=>M}let D=t.h(l,T,V);b.push(D)}),b};return()=>{const b=p(),m={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:g,"onUpdate:modelValue":y},N=t.h(o,m,{default:()=>b}),B={default:()=>N};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 w={...Se(r,ye,he)};return r.prop&&(w.prop=`${r.prop}_item`),t.h(a,w,B)}}else return()=>{const p=s.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:u.value,modelValue:g,"update:modelValue":y},{default:()=>p})}}}}const{componentName:Zf,create:Jf,scope:_f}=_("radio-item"),ll=Jf(Gf(Zf,_f,Be,Yn,Wn)),em=(e,{CheckNormal:n,Checked:a,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(l,{slots:r}){const{emitEvent:s}=gt(),i=Bn(),c=t.inject("parent",null),u=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,m=>{u.partialSelect=m});const f=t.computed(()=>!!c),d=t.computed(()=>f.value?c.value.value.includes(l.label):!!l.modelValue),h=t.computed(()=>f.value?c.position:l.textPosition);let S="";const g=(m,N)=>{S="click",s("update:modelValue",m),s("change",m,N)};t.watch(()=>l.modelValue,m=>{S=="click"?S="":s("change",m)});const y=()=>{const m=[];if(u.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const N=fe(l.iconSize),B=l.indeterminateIcon??i.checkbox.Indeterminate??o;return m.push("fox-checkbox__icon--indeterminate"),l.disabled&&m.push("is-disabled"),l.readonly&&m.push("is-readonly"),t.h(B,{width:N,height:N,class:m})}}else if(d.value){if(r.checkedIcon)return r.checkedIcon();{const N=fe(l.iconSize),B=l.checkedIcon??i.checkbox.Checked??a;return m.push("fox-checkbox__icon"),l.disabled&&m.push("is-disabled"),l.readonly&&m.push("is-readonly"),t.h(B,{width:N,height:N,class:m})}}else{if(r.icon)return r.icon();{const N=fe(l.iconSize),B=l.icon??i.checkbox.CheckNormal??n;return m.push("fox-checkbox__icon--unchecked"),l.disabled&&m.push("is-disabled"),l.readonly&&m.push("is-readonly"),t.h(B,{width:N,height:N,class:m})}}},k=()=>{const m=[`${e}__label`];return l.disabled&&m.push("is-disabled"),l.readonly&&m.push("is-readonly"),t.h("view",{class:m},r.default?.())},p=()=>{const m=[`${e}__button`];return d.value&&m.push(`${e}__button--active`),l.disabled&&m.push("is-disabled"),l.readonly&&m.push("is-readonly"),t.h("view",{class:m},r.default?.())},b=m=>{if(!(l.disabled||l.readonly)){if(d.value&&u.partialSelect){u.partialSelect=!1,g(d.value,r.default?.()[0].children);return}if(g(!d.value,r.default?.()[0].children),f.value){const N=c.value.value,B=c.max.value,{label:C}=l,w=N.indexOf(C);w>-1?N.splice(w,1):w<=-1&&(N.length<B||!B)&&N.push(C),c.updateValue(N)}}};return t.onMounted(()=>{f.value&&c.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{f.value&&c.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${l.shape} ${h.value==="left"?`${e}--reverse`:""}`,onClick:b},[l.shape=="button"?p():[y(),k()]])}}),{componentName:tm,create:nm}=_("checkbox"),Qn=nm(em(tm,{CheckNormal:le.CheckNormal,Checked:le.Checked,Indeterminate:le.CheckDisabled})),{create:om,componentName:Cs}=_("checkbox-group"),Gn=om({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:a}=gt(),o=t.reactive({children:[]}),l=u=>{u.proxy&&o.children.push(u.proxy)},r=u=>{u.proxy&&(o.children=o.children.filter(f=>f!==u.proxy))},s=u=>{a("update:modelValue",u),a("change",u)},i=u=>{const f=[];u&&o.children.forEach(d=>{d?.disabled||f.push(d?.label)}),a("update:modelValue",f)},c=()=>{const u=o.children.filter(f=>f?.disabled?!1:!e.modelValue.includes(f.label)).map(f=>f.label);a("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:l,unlink:r}),t.watch(()=>e.modelValue,u=>{a("change",u)}),Ie({toggleAll:i,toggleReverse:c}),()=>{const u={};return e.textAlign&&(u["text-align"]=e.textAlign),t.h("view",{class:`${Cs} ${Cs}--${e.direction}`,style:u},n.default?.())}}});function ws(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(al(e,r)===a)return l}else if(o==="item"){if(xe(a,r))return l}else if(Zn(e,r)===a)return l}return-1}function al(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Zn(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function lm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function am(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let rm=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=_e(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function sm(){const e=t.getCurrentInstance();return new rm(e.proxy)}function im(e){return{text:e,value:e}}const cm={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},Ns={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},dm={source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]}};function um(e,n,a,o,l){return{props:{...he,...ye,...cm,...Ns,...dm},emits:["change","update:modelValue","setValue"],setup(r,s){const i=De(t.computed(()=>r.disabled)),c=Ee(t.computed(()=>r.readonly)),u=Ve(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:f}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return i.value}},r.prop??s.attrs.name),d=sm(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([p,b])=>{if(p){const m=await d.load("checkbox",p,b);if(m.length>0)if(typeof m[0]=="string"){const C=m.map(w=>im(w));h.value=C}else h.value=m;else h.value=[]}},{immediate:!0});const S=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([p,b])=>{const m=[];Array.isArray(p)&&p.forEach(N=>{let B=ws(r,b,N,r.valueType);B!==-1&&m.push(B)}),!xe(m,S.value)&&(S.value=m,f("setValue",m))},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;let p=[];return S.value.forEach(b=>{let m=h.value[b];p.push(Zn(r,m))}),p}),y=p=>{let b=[],m=[];if(h.value.length>0){const N=[];Array.isArray(p)&&p.forEach(B=>{let C=ws(r,h.value,B,"value");C!==-1&&N.push(C);const w=h.value[C];m.push(w),r.valueType==="text"?b.push(al(r,w)):r.valueType==="item"?b.push(w):b.push(Zn(r,w))}),S.value=N}else b=p;f("update:modelValue",b),f("change",b,m)},k=t.ref();if(Ie({toggleAll:p=>{k.value.toggleAll(p)},toggleReverse:()=>{k.value.toggleReverse()}}),r.source){const p=()=>{const b=[],m=Se(r,Ns);return h.value.forEach((N,B)=>{const C=Zn(r,N),w=lm(r,N);let T={...m,label:C,disabled:w};const $=am(r,N,B);T={...T,...$},i.value&&(T.disabled=!0),c.value&&(T.readonly=!0);const V={};if(s.slots.icon&&(V.icon=s.slots.icon),s.slots.checkedIcon&&(V.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(V.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const M=s.slots.text(N);V.default=()=>[M]}else{const M=al(r,N);V.default=()=>M}let D=t.h(l,T,V);b.push(D)}),b};return()=>{const b=p(),m={class:`${e}`,ref:k,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:g.value,"onUpdate:modelValue":y},N=t.h(o,m,{default:()=>b}),B={default:()=>N};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 w={...Se(r,ye,he)};return r.prop&&(w.prop=`${r.prop}_item`),t.h(a,w,B)}}else return()=>{const p=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:k,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:u.value,modelValue:g,"onUpdate:modelValue":y},{default:()=>p})}}}}const{componentName:fm,create:mm,scope:pm}=_("checkbox-item"),rl=mm(um(fm,pm,Be,Gn,Qn)),sl={modelValue:{type:[String,Boolean,Number],default:!1},disabled:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:hm,create:gm}=_("switch"),ym=gm({components:{Loading1:le.Loading1},props:{...sl},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const i=hm;return{[i]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-base`]:!0,"is-disabled":e.disabled}}),l=t.computed(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disabled||e.loading)return;r="click";const c=a.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:l,isActive:a,onClick:s}}}),bm={class:"fox-switch-button"};function km(e,n,a,o,l,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",bm,[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 Jn=oe(ym,[["render",km]]);function Sm(e,n,a,o){return{props:{...he,...ye,...sl},emits:["change","update:modelValue","setValue"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),u=e,f=Pe(l,"modelValue",null,c),d=h=>{f.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const S={...Se(l,sl),disabled:s.value||i.value,value:f.value,"onUpdate:modelValue":d},g=[],y=t.h(o,S);g.push(y);const k={default:()=>g};k.label=r.slots.default,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const b={...Se(l,ye,he)};return l.prop&&(b.prop=`${l.prop}_item`),b["content-class"]=u,t.h(a,b,k)}}}}const{componentName:Cm,create:wm,scope:Nm}=_("switch-item"),il=wm(Sm(Cm,Nm,Be,Jn));function Bm(e,n,a,o){return{props:{...he,...ye,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:u}=ie.useFoxI18n(n),f=u(l,["placeholder"]),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,M=>{d.value=M,c("change",M)});const h=t.computed(()=>({[`${e}`]:!0})),S=t.computed(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&ue(d.value),"is-disabled":s.value,"is-readonly":i.value})),g=Ve(t.computed(()=>l.textAlign),"textAlign"),y=t.computed(()=>{const M={};return g.value&&(M["text-align"]=g.value),M}),k=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),p=t.computed(()=>ue(d.value)?f.placeholder.value:d.value),b=t.computed(()=>!ue(l.desc)||r.slots.sub),m=t.computed(()=>({[`${e}__sub`]:!0})),N=t.computed(()=>{const M={};return g.value&&(M["text-align"]=g.value),M}),B=()=>{c("focus",d.value)},C=()=>{c("blur",d.value)},w=t.computed(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),T=t.computed(()=>ke(l.unit)>0),$=M=>{s.value==!0||i.value==!0||c("click")},V=t.computed(()=>l.icon??a),D=t.computed(()=>({action:!0}));return()=>{const M=[];if(typeof r.slots.content=="function"){const P=r.slots.content();M.push(P)}else{const P=[];if(k.value){const z={tabIndex:0,class:S.value,style:y.value,onFocus:B,onBlur:C};let R=null;r.slots.main?R=t.h("view",z,[r.slots.main(p.value)]):R=t.h("view",z,[p.value]),P.push(R)}if(b.value){const z={tabIndex:0,class:m.value,style:N.value,onFocus:B,onBlur:C};let R=null;r.slots.sub?R=t.h("view",z,[r.slots.sub(l.desc)]):R=t.h("view",z,[l.desc]),P.push(R)}const x={class:h.value,onClick:$},Y=t.h("view",x,P);M.push(Y)}const K=[],v=fe(l.iconSize);let E=r.slots.icon;if(!E){const P={width:v,height:v,class:["action-icon"]};E=t.h(V.value,P)}const L={class:D.value,onClick:$},I=t.h("view",L,{default:()=>[E]});if(K.push(I),T.value){const P=t.h("view",{},[l.unit]);K.push(P)}const W={class:w.value},j=t.h("view",W,{default:()=>K});M.push(j);const O={default:()=>M};O.label=r.slots.default,O.prepend=r.slots.prepend,O.append=r.slots.append,O.fixedPreTip=r.slots.fixedPreTip,O.fixedTip=r.slots.fixedTip;const H={...Se(l,ye,he)};return l.prop&&(H.prop=`${l.prop}_item`),t.h(o,H,O)}}}}const{componentName:Am,create:Tm,scope:$m}=_("link-item"),cl=Tm(Bm(Am,$m,le.ArrowRight,Be)),dl={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:Vm,componentName:Em}=_("rate"),Dm=Vm({props:{...dl},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[Em]:!0})),r=S=>{n("update:modelValue",S),n("change",S)},s=(S,g)=>{if(e.disabled||e.readonly)return;let y=0;g===1&&e.modelValue===g||(y=g,e.allowHalf&&S==2&&(y-=.5)),r(y)},i=(S,g,y)=>{let k=0;for(let p=g.value.length-1;p>=0;p--){const b=g.value[p];if(S>b.offsetLeft){y?k=p+(S>b.offsetLeft+b.clientWidth/2?1:.5):k=p+1;break}}return k},c=tt(),u={onTouchStart(S){!e.touchable||e.readonly||c.start(S)},onTouchMove(S){e.touchable&&(c.move(S),c.isHorizontal()&&o.value&&(S.preventDefault(),r(i(c.moveX.value,o,e.allowHalf))))}},f=Math.random().toString(36).slice(-8),d=t.computed(()=>e.customIcon??le.StarFillN);return{classes:l,...u,onClick:s,toPxDesc:ge,renderIcon:(S,g)=>t.h(S,g),rateRefs:o,refRandomId:f,slots:a,customIcon:d}}}),Im=["id"],vm={class:"fox-rate-item__icon--full"},xm={key:0,class:"fox-rate-item__icon--half"},qm={key:1,class:"fox-rate-item__icon--half"};function Mm(e,n,a,o,l,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",vm,[(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",xm,[(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",qm,[(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,Im))),128))],34)}const Bt=oe(Dm,[["render",Mm]]);function Pm(e,n,a,o){return{props:{...he,...ye,...dl},emits:["change","update:modelValue","setValue"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),u=e,f=Pe(l,"modelValue",null,c),d=h=>{f.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const S={...Se(l,dl),disabled:s.value,readonly:i.value,value:f.value,"onUpdate:modelValue":d},g=[],y=t.h(o,S);g.push(y);const k={default:()=>g};if(r.slots.default){const m=r.slots.default();k.label=()=>m}const p=Se(l,ye,he);return l.prop&&(p.prop=`${l.prop}_item`),p["content-class"]=u,t.h(a,p,k)}}}}const{componentName:Lm,create:zm,scope:Om}=_("rate-item"),ul=zm(Pm(Lm,Om,Be,Bt)),Rm=/scroll|auto|overlay/i,Bs=window;function Fm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function fl(e,n=Bs){let a=e;for(;a&&a!==n&&Fm(a);){const{overflowY:o}=window.getComputedStyle(a);if(Rm.test(o))return a;a=a.parentNode}return n}function As(e,n=Bs){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=fl(e.value,n))}),a}const Ts=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Km={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},immediate:{type:[Boolean],default:!1}};function Um(e,n,a){return{props:{...Km},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["pullText","loadText","loadMoreText"]),c=t.ref(),u=As(c),f=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=t.computed(()=>({[e]:!0})),h=b=>b?b.offsetTop+h(b.offsetParent):0,S=()=>{let b=0,m=0,N="down";if(u.value==window){const B=Ts();c.value&&(b=h(c.value)+c.value.offsetHeight-B-window.innerHeight),m=B}else{const{scrollHeight:B,clientHeight:C,scrollTop:w}=u.value;b=B-C-w,m=w}return f.beforeScrollTop>m?N="up":N="down",f.beforeScrollTop=m,l("scroll-change",m),b<=o.threshold&&N=="down"},g=()=>{Qe(()=>{if(!S()||!o.hasMore||f.isInfiniting)return!1;f.isInfiniting=!0,l("update:modelValue",!0),t.nextTick(()=>l("load-more"))})},y=()=>{u.value&&u.value.addEventListener("scroll",g,o.useCapture)},k=()=>{u.value&&u.value.removeEventListener("scroll",g,o.useCapture)};t.onMounted(()=>{y(),o.immediate&&g()}),t.onUnmounted(()=>{k()});const p=t.ref(!1);return t.onActivated(()=>{p.value&&(p.value=!1,y())}),t.onDeactivated(()=>{p.value=!0,k()}),t.watch(()=>o.modelValue,b=>{b||(f.isInfiniting=!1)}),()=>{const b={class:"fox-infinite__container"},m=t.h("view",b,[r?.default?.()]),N=[];if(f.isInfiniting){let T=r?.loading?.()??null;if(!T){let D=r?.loadingIcon?.()??null;if(!D){const v={class:["fox-infinite__bottom-box__img"]};D=t.h(a,v)}const M={class:"fox-infinite__bottom-box__text"},K=t.h("view",M,[i.loadText.value]);T=[D,K]}const $={class:"fox-infinite__bottom-box"},V=t.h("view",$,T);N.push(V)}else if(!o.hasMore){let T=r?.finished?.()??null;if(!T){const $={class:"fox-infinite__bottom-tips"};T=t.h("view",$,[i.loadMoreText.value]),N.push(T)}}const B={class:"fox-infinite__bottom"},C=t.h("view",B,N),w={class:d.value,ref:c};return t.h("view",w,[m,C])}}}}const{componentName:Hm,create:jm,scope:Wm}=_("infinite-loading"),_n=jm(Um(Hm,Wm,le.Loading)),{componentName:Ym,create:Xm}=_("button"),Qm=Xm({components:{Loading:le.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n,slots:a}){const{type:o,size:l,shape:r,disabled:s,loading:i,color:c,plain:u,block:f}=t.toRefs(e),d=g=>{!i.value&&!s.value&&n("click",g)},h=t.computed(()=>{const g=Ym;return{[g]:!0,[`${g}--${o.value}`]:o.value,[`${g}--${l.value}`]:l.value,[`${g}--${r.value}`]:r.value,[`${g}--plain`]:u.value,[`${g}--block`]:f.value,[`${g}--disabled`]:s.value,[`${g}--loading`]:i.value}}),S=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:d,classes:h,getStyle:S}}}),Gm={class:"fox-button__wrap"};function Zm(e,n,a,o,l,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",Gm,[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=oe(Qm,[["render",Zm]]),Jm={modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},_m=(e,n,a)=>({props:{...Jm},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(o,{slots:l}){const{emitEvent:r}=gt(),{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["placeholder"]),c=t.reactive({active:!1}),u=t.computed(()=>({background:o.background})),f=t.computed(()=>({background:o.inputBackground})),d=$=>{let D=$.target.value;o.maxLength&&D.length>Number(o.maxLength)&&(D=D.slice(0,Number(o.maxLength))),r("update:modelValue",D,$),r("change",D,$)},h=t.ref({}),S=$=>{let D=$.target.value;c.active=!0,h.value=o.focusStyle,r("focus",D,$)},g=$=>{setTimeout(()=>{c.active=!1},0);let D=$.target.value;o.maxLength&&D.length>Number(o.maxLength)&&(D=D.slice(0,Number(o.maxLength))),h.value={},r("blur",D,$)},y=$=>{r("update:modelValue","",$),r("change","",$),r("clear","")},k=t.computed(()=>String(o.modelValue).length>0),p=t.computed(()=>{const $={};return k.value||($.display="none"),$}),b=$=>{o.autoblur&&w.value?.blur(),(typeof $.cancelable!="boolean"||$.cancelable)&&$.preventDefault(),r("search",o.modelValue)},m=$=>{r("keyup-input",$)},N=$=>{r("click-input",$)},B=$=>{r("click-left-icon",o.modelValue,$)},C=t.computed(()=>({textAlign:o.inputAlign})),w=t.ref(null);t.onMounted(()=>{o.autofocus&&w.value.focus()});const T=()=>{const $=[];if(l.leftin){const L={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},I=t.h("view",L,[l.leftin()]);$.push(I)}const V={class:`${e}__input-inner-input`,ref:w,style:C.value,type:o.inputType,maxlengt:o.maxLength,placeholder:i.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:N,onInput:d,onFocus:S,onBlur:g,onkeyup:m},D=t.h("input",V),M={class:[`${e}__input-inner`],action:"#",onSubmit:b},K=t.h("form",M,[D]);$.push(K);const v=[];if(o.clearable){const L={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:p.value,onClick:y},I=l?.clear?.()??o.clearIcon??a,W=t.h("view",L,[t.h(I)]);v.push(W)}if(l.rightin){const L={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},I=t.h("view",L,[l.rightin()]);v.push(I)}if(v.length>0){const L={class:`${e}__input-inner-right`},I=t.h("view",L,v);$.push(I)}const E={class:[`${e}__search-input`,`${o.shape}`],style:{...f.value,...h.value}};return t.h("view",E,$)};return()=>{const $=[];if(o.label){const M={class:`${e}__search-label`},K=t.h("span",M,[o.label]);$.push(K)}if(l.leftout){const M={class:[`${e}__search-icon`,`${e}__left-search-icon`]},K=t.h("view",M,[l.leftout()]);$.push(K)}const V=T();if($.push(V),l.rightout){const M={class:[`${e}__search-icon`,`${e}__right-search-icon`]},K=t.h("view",M,[l.rightout()]);$.push(K)}const D={class:`${e}`,style:u.value};return t.h("view",D,$)}}}),{componentName:ep,create:tp,scope:np}=_("searchbar"),eo=tp(_m(ep,np,le.CircleClose)),to={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,String,Object],default(){return[]}},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},textPosition:{type:[String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},searchDelayTriggerClear:{type:Number,default:250},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function op(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(no(e,r)===a)return l}else if(o==="item"){if(xe(a,r))return l}else if(Vs(e,r)===a)return l}return-1}function no(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function $s(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Vs(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function lp(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function ap(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let rp=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let u=a;typeof i=="function"&&(u=u.filter(i));let f=(o-1)*l,d=f+l;d>u.length&&(d=u.length);const h=u.slice(f,d);return{totalSize:u.length,page:h}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s]);const c=_e(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(ve(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r]))}};function sp(){const e=t.getCurrentInstance();return new rp(e.proxy)}function ip(e,n,a,o,l,r,s,i,c,u,f){return{props:{...to},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{slots:h}){const{emitEvent:S}=gt(),{toLocaleRefs:g}=ie.useFoxI18n(n),y=g(d,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),k=sp(),p=t.ref([]),b=t.ref(0),m=t.ref(""),N=t.shallowRef(null),B=t.computed(()=>{const F={};return d.params&&Object.assign(F,d.params),ue(m.value)||(F[`${d.searchKey}`]=m.value),N.value&&Object.assign(F,N.value),F});let C=!0;const w=async(F,X,Q)=>{try{if($.value===!1)return;let U=null;ue(m.value)||(U=te=>{const ae=no(d,te);if(typeof ae=="string"&&ae.includes(m.value))return!0;const se=$s(d,te);return!!(typeof se=="string"&&se.includes(m.value))});const J=await k.load("actionsheet",F,X,Q,B.value,C,U??void 0);C=!1,Array.isArray(J)?(p.value=J,b.value=1,$.value=!1):!Array.isArray(J.page)||J.page.length===0?(console.warn("[FoxUI] can not load more data"),$.value=!1):(Reflect.apply([].push,p.value,J.page),b.value=Math.ceil(p.value.length/d.pageSize),(J.totalSize&&p.value.length>=J.totalSize||Q<J.page.length)&&($.value=!1)),T.value=!1}catch(U){console.error("[FoxUI] ActionSheet load more data fail",U),$.value=!0,b.value=0,p.value=[]}setTimeout(()=>{S("loaded-data")},250)},T=t.ref(!1),$=t.ref(!0),V=async()=>{if(!d.source){T.value=!1;return}await w(d.source,b.value+1,d.pageSize)};let D=null;t.watch(m,(F,X)=>{D&&(clearTimeout(D),D=null),ue(F)&&!ue(X)&&(D=setTimeout(()=>{K()},d.searchDelayTriggerClear))});const M=()=>{$.value=!0,b.value=0,p.value=[],d.source&&V()},K=()=>{M()};t.watch([()=>d.source,()=>d.pageSize,()=>d.params],async([F,X,Q])=>{d.source&&M()},{immediate:!0});const v=t.computed(()=>!d.multiple&&d.isAutoBackFill),E=t.ref([]);let L=null;const I=t.ref(d.visible);t.watch(()=>d.visible,F=>{I.value!==F&&(I.value=F),F?L=[...E.value]:L=null});const W=(F,X)=>{const Q=[];return Array.isArray(F)||(F=[F]),F.forEach(U=>{let J=op(d,X,U,d.valueType);J!==-1&&Q.push(J)}),xe(Q,E.value)?!1:(E.value=Q,!0)};t.watch([()=>d.modelValue,()=>p.value],([F,X],[Q,U])=>{if(W(F,X)){const te=j();O(te)}},{deep:!0});const j=()=>{const F=[],X=[],Q=[];for(let ae of E.value){const se=p.value[ae];X.push(se);const de=no(d,se);if(Q.push(de),d.valueType==="item")F.push(se);else if(d.valueType==="text")F.push(de);else{const $e=Vs(d,se);F.push($e)}}let U=null,J=null,te=null;return d.multiple?(U=F,J=Q,te=X):(U=F[0]??null,J=Q[0]??null,te=X[0]??null),{value:U,text:J,item:te}},O=F=>{S("update:modelValue",F.value),S("update:text",F.text),S("change",F.value,F.item,F.text)},ee=()=>{L&&(E.value=L)},H=F=>{const X=E.value.indexOf(F);d.multiple?X===-1?E.value.push(F):E.value.splice(X,1):X===-1?E.value=[F]:E.value=[],(v.value||!d.poppable&&!d.showFooter)&&x()},q=F=>{I.value=F,S("update:visible",F)},P=()=>{const F=()=>{ee(),q(!1)},X=d.beforeMethod??d.beforeClose;if(typeof X=="function"){const Q=X("close");mt(Q)?Q.then(U=>{U!==!1&&F()}).catch(()=>{F()}):Q!==!1&&F()}else F()},x=()=>{const F=j(),X=()=>{O(F),q(!1)},Q=d.beforeMethod??d.beforeClose;if(typeof Q=="function"){const U=Q("confirm",F.value,F.item,F.text);mt(U)?U.then(J=>{J!==!1&&X()}).catch(()=>{X()}):U!==!1&&X()}else X()},Y=()=>{let F=y.title.value??"";h.title&&(F=h.title());const X=t.h("view",{class:["fox-actionsheet__header-title"]},[F]),Q=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:P});return t.h("view",{class:["fox-actionsheet__header"]},[X,Q])},z=()=>{let F=null;if(h.search)F=h.search();else{const X={onSearch:M,placeholder:y.seachPlaceholder.value,disabled:d.disabled,modelValue:m.value,"onUpdate:modelValue":Q=>{m.value=Q}};F=t.h(r,X,{leftin:()=>t.h(u)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[F])},R=(F,X,Q,U,J)=>{if(h.optionLabel)return h.optionLabel({text:F,checked:X,disabled:Q,subText:U,item:J});const te=[],ae=t.h("view",{class:"fox-actionsheet__list-item-text"},[F]);if(te.push(ae),U){const se=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[U]);te.push(se)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},te)},G=(F,X,Q,U)=>{if(h.optionIcon)return h.optionIcon({checked:F,disabled:X,iconSize:Q,item:U});if(F){if(h.checkedIcon)return h.checkedIcon({disabled:X,item:U});{const J=d.checkedIcon??i;return t.h(J,{width:Q,height:Q,class:["fox-actionsheet__list-item-icon"]})}}else{if(h.icon)return h.icon({disabled:X,item:U});{const J=d.icon??s;return t.h(J,{width:Q,height:Q,class:["fox-actionsheet__list-item-icon"]})}}},Z=()=>{const F=[];for(let X=0;X<p.value.length;X++){const Q=p.value[X],U=no(d,Q),J=$s(d,Q),te=["fox-actionsheet__list-item"],ae={};let se=lp(d,Q),de=d.iconSize?fe(d.iconSize):null;const $e=ap(d,Q,X);$e&&(se=se||$e.disabled,$e.class&&te.push($e.class),$e.style&&Object.assign(ae,$e.style)),se=!!(d.disabled||se);const Ne=E.value.includes(X);se&&te.push("is-disabled"),Ne&&te.push("is-checked");const so={class:te,style:ae,key:`${X}`,onClick:()=>{se||H(X)}};let ft=[];if(h.option)ft.push(h.option({item:Q,checked:Ne,disabled:se}));else{const b2=R(U,Ne,se,J,Q);ft.push(b2);const k2=G(Ne,se,de,Q);ft.push(k2),d.textPosition==="right"&&ft.reverse()}const y2=t.h("view",so,ft);F.push(y2)}return F},ne=()=>{let F=[];if(h.buttons)F=h.buttons();else{const Q=t.h(l,{type:"primary",block:"block",onClick:x,disabled:d.disabled},{default:()=>y.confirmText.value});F.push(Q)}return t.h("view",{class:"fox-actionsheet__footer"},[F])};return Ie({search:async(F=null,X=!0)=>{N.value=F&&t.toRaw(F),t.triggerRef(N),X&&($.value=!0,b.value=0,p.value=[]),t.nextTick(()=>{V()})},clear:()=>{$.value=!0,b.value=0,p.value=[]},confirm:()=>{x()},cancel:()=>{P()}}),()=>{const F=[];if(d.showHeader){const de=Y();F.push(de)}if(d.showSearchbar){const de=z();F.push(de)}let X=null;if(h.content)X=h.content();else{const de=Z(),$e={hasMore:$.value,loadText:y.loadText.value,loadMoreText:y.loadMoreText.value,modelValue:T.value,"onUpdate:modelValue":Ne=>{T.value=Ne},onLoadMore:V};X=t.h(o,$e,{default:()=>de})}const Q={};d.optionsHeight&&(Q.height=d.optionsHeight);const U={"fox-actionsheet__list":!0};d.poppable||(U["fox-actionsheet__list--inner"]=!0);const J=t.h("view",{class:U,style:Q},[X]);if(F.push(J),d.showFooter&&!v.value){const de=ne();F.push(de)}const te=t.h("view",{class:"fox-actionsheet"},F);if(!d.poppable)return te;const ae=["fox-actionsheet__popup"];d.popClass&&ae.push(d.popClass);const se={popClass:ae.join(" "),visible:I.value,closeable:!1,"onUpdate:visible":q,position:d.position,round:"round",onClickOverlay:P,closeOnClickOverlay:d.closeOnClickOverlay};return t.h(a,se,{default:()=>te})}}}}const{componentName:cp,create:dp,scope:up}=_("actionsheet-pane"),oo=dp(ip(cp,up,me,_n,ze,eo,le.CheckNormal,le.Checked,le.Close,le.Search2)),Es={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 fp(e,n,a,o,l,r,s){return{props:{...he,...ye,...Es,...to},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,c){const u=De(t.computed(()=>i.disabled)),f=Ee(t.computed(()=>i.readonly)),{emitEvent:d}=Te({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return f.value},get disabled(){return u.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(n),S=h(i,["placeholder"]),g=t.ref(!1),y=Pe(i,"modelValue",null,d),k=t.ref(""),p=t.computed(()=>Array.isArray(k.value)?k.value.join(i.separator):k.value),b="fox-input-item",m=t.computed(()=>({[b]:!0,"is-disabled":u.value,"is-readonly":f.value})),N=Ve(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const x={};return N.value&&(x["text-align"]=N.value),x}),C=t.ref(!1),w=()=>{C.value=!0},T=x=>{C.value=x},$=x=>{y.value=x,d("update:modelValue",x)},V=(x,Y)=>{d("change",x,Y)},D=x=>{let z=x.target.value;g.value=!0,d("focus",z,x)},M=x=>{setTimeout(()=>{g.value=!1},0);let z=x.target.value;i.maxLength&&z.length>Number(i.maxLength)&&(z=z.slice(0,Number(i.maxLength))),d("blur",z,x)},K=x=>{k.value=x,d("update:text",x)},v=t.computed(()=>({[`${b}__append`]:!0,"is-disabled":u.value,"is-readonly":f.value})),E=t.computed(()=>ke(i.unit)>0),L=t.computed(()=>ke(i.unit)>0&&!g.value),I=t.computed(()=>({hidden:!L.value})),W=x=>{y.value="",d("update:modelValue","",x),d("change","",x),d("clear","")},j=t.computed(()=>i.clearable&&!u.value&&!f.value),O=t.computed(()=>ke(y.value)>0&&g.value),ee=x=>{O.value?W(x):w()},H=t.computed(()=>O.value&&j.value?o:l),q=t.computed(()=>({action:!0})),P=t.ref(null);return Ie({search:x=>{P.value&&P.value.search(x)},clear:()=>{P.value&&P.value.clear},confirm:x=>{P.value&&P.value.confirm()},cancel:()=>{P.value&&P.value.cancel()}}),()=>{const x={class:m.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:w,onFocus:D,onBlur:M},Y=[],z=t.h("input",x);Y.push(z);const R=[],G={class:["action-icon"]},Z=t.h(H.value,G),ne={class:q.value,onClick:ee},F=t.h("view",ne,{default:()=>[Z]});if(R.push(F),E.value){const Ne=t.h("view",{class:I.value},[i.unit]);R.push(Ne)}const X={class:v.value},Q=t.h("view",X,{default:()=>R});Y.push(Q);const U={default:()=>Y};U.label=c.slots.default,U.prepend=c.slots.prepend,U.append=c.slots.append,U.fixedPreTip=c.slots.fixedPreTip,U.fixedTip=c.slots.fixedTip;const J=Se(i,to);J.ref=P,J.class=i.actionsheetProps,J.disabled=u.value||f.value,J.visible=C.value,J["onUpdate:visible"]=T,J.modelValue=y.value,J["onUpdate:modelValue"]=$,J.text=k.value,J["onUpdate:text"]=K,J.onChange=V,J.poppable=!0,J["text-position"]=i.textPosition;const te={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},ae=t.h(r,J,te);U.hide=()=>[ae];const de={...rt(i,Es,to)};return i.prop&&(de.prop=`${i.prop}_item`),t.h(a,de,U)}}}}const{componentName:mp,create:pp,scope:hp}=_("actionsheet-item"),ml=pp(fp(mp,hp,Be,le.CircleClose,le.ArrowRight,oo)),pl={modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{componentName:gp,create:yp}=_("input-number"),bp=yp({components:{Minus:le.Minus,Plus:le.Plus},props:{...pl},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const S=gp;return{[S]:!0,[`${S}--disabled`]:e.disabled}}),o=S=>Number(S).toFixed(Number(e.decimalPlaces)),l=S=>{const g=S.target;n("update:modelValue",g.valueAsNumber,S)},r=(S,g)=>{let y=o(S);n("update:modelValue",y,g),n("change",y,g)},s=(S=Number(e.modelValue))=>S<Number(e.max)&&!e.disabled,i=(S=Number(e.modelValue))=>S>Number(e.min)&&!e.disabled,c=S=>{if(n("reduce",S),i()){let g=Number(e.modelValue)-Number(e.step);r(g,S)}else n("overlimit",S,"reduce")},u=S=>{if(n("add",S),s()){let g=Number(e.modelValue)+Number(e.step);r(g,S)}else n("overlimit",S,"add")},f=S=>{e.disabled||e.readonly||n("focus",S)},d=S=>{if(e.disabled||e.readonly)return;let y=S.target.valueAsNumber;y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),r(y,S),n("blur",S)},h=S=>{let g=Number(S);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 S=h(e.modelValue);S!==Number(e.modelValue)&&r(S,{})}),{classes:a,change:l,blur:d,focus:f,add:u,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:ge}}}),kp=["min","max","disabled","readonly","value"];function Sp(e,n,a,o,l,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,kp),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 nt=oe(bp,[["render",Sp]]);function Cp(e,n,a,o){return{props:{...he,...ye,...pl},emits:["change","update:modelValue","setValue","add","reduce"],setup(l,r){const s=De(t.computed(()=>l.disabled)),i=Ee(t.computed(()=>l.readonly)),{emitEvent:c}=Te({componentName:e,validateCheckEvents:["blur","update:modelValue","add","reduce"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),u=e,f=Pe(l,"modelValue",null,c),d=g=>{f.value=g,c("update:modelValue",g,{}),c("change",g,{})},h=g=>{c("add",g)},S=g=>{c("reduce",g)};return()=>{const g={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},y=Se(l,pl),p={...r.attrs,...y,disabled:s.value,readonly:i.value,value:f.value,"onUpdate:modelValue":d,onAdd:h,onReduce:S},b=t.h(o,p,g),m=[];m.push(b);const N={default:()=>m};N.label=r.slots.default,N.fixedPreTip=r.slots.fixedPreTip,N.fixedTip=r.slots.fixedTip;const C={...Se(l,ye,he)};return l.prop&&(C.prop=`${l.prop}_item`),C["content-class"]=u,t.h(a,C,N)}}}}const{componentName:wp,create:Np,scope:Bp}=_("inputnumber-item"),hl=Np(Cp(wp,Bp,Be,nt)),Ap={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[Object]},iconSize:{type:[String,Number]},markIcon:{type:[Object]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function Tp(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 Is(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function $p(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function gl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function vs(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function xs(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function yl(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Vp=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await Reflect.apply(a,null,[o]);const l=_e(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(l,null,[a,o]))}};function Ep(){const e=t.getCurrentInstance();return new Vp(e.proxy)}function Dp(e,n,a,o){return{props:{...Ap},emits:["update:modelValue","change","loaded-data","click"],setup(l,{slots:r,emit:s}){const i=e,c=Ep(),u=t.ref([]),f=t.computed(()=>u.value.filter(q=>$p(l,q)!==!1)),d=t.ref(-1),h=()=>{const q=l.modelValue,P=f.value.findIndex(x=>Ds(l,x)===q);d.value!==P&&(d.value=P,l.scroll&&ee(P))};t.watch([()=>l.modelValue,f],()=>{h()});const S=q=>d.value===q,g=q=>{if(q<0&&q>=f.value.length)return!1;const P=f.value[q],Y=(yl(l,P,q)??{}).status??gl(l,P);return S(q)||Y},y=t.computed(()=>{const q={[i]:!0};return l.mode?q[`is-${l.mode}`]=!0:l.direction&&(q[`is-${l.direction}`]=!0),l.scroll&&(q["is-scroll"]=!0),q}),k=t.computed(()=>({})),p=(q,P,x,Y,z)=>{const R={[`${i}__step`]:!0};return z&&(R[`${z}`]=!0),R[`${b.value}`]=!0,Y&&(R["is-doit"]=!0),q===d.value?R["is-active"]=!0:P==="done"?R["is-done"]=!0:P==="error"?R["is-error"]=!0:P==="half"?R["is-half"]=!0:x?R["is-disabled"]=!0:R["is-normal"]=!0,R},b=t.computed(()=>{if(l.mode==="simple")return"start";let q=l.align;return q||(l.direction==="vertical"?q="start":q="center"),q}),m=(q,P={})=>{const x={...P};return b.value==="start"&&q===f.value.length-1?x.flex="0 0 auto":l.step?l.direction==="vertical"?x.height=l.step:x.width=l.step:x.flex="1 1 100%",x},N=(q,P)=>{let x={};if(P<f.value.length-1){const Y=P+1;g(P)&&g(Y)?l.direction==="vertical"?x.height="100%":x.width="100%":x.opacity="0"}return x},B=q=>f.value.length-1===q,C=(q,P)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&P>d.value||d.value===P)return;const x=d.value,Y=P;d.value=P,l.scroll&&ee(P);const z=Ds(l,q);s("update:modelValue",z);const R={fromIndex:x,currentIndex:Y,item:q,items:f.value,clickNavigatePolicy:l.clickNavigatePolicy};s("change",z,R)},w=t.ref(!0),T=async(q,P)=>{try{const x=await c.load("stesbar",q,P);Array.isArray(x)&&(u.value=x),w.value=!1}catch(x){console.error("[FoxUI] Load StepsBar Data Fail",x),u.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([q,P])=>{q&&T(q,P)},{immediate:!0});const $=(q,P,x,Y,z)=>{let R=null;if(r.icon)R=r.icon({item:q,index:P,status:Y});else if(Y==="done"){const Z={};l.iconSize&&(Z.width=l.iconSize,Z.height=l.iconSize);const ne=l.icon??a;R=t.h(ne,Z)}else{const Z=x??`${P+1}`;R=t.h("span",{},[Z])}const G={class:"fox-steps-bar__icon",onClick:()=>{s("click",{item:q,index:P}),!z&&C(q,P)}};return t.h("view",G,[R])},V=(q,P,x)=>{const Y=t.h("i",{class:"fox-steps-bar__line-inner",style:N(q,P)});return t.h("view",{class:"fox-steps-bar__line"},[Y])},D=()=>{let q=null;if(r.markIcon)q=r.markIcon();else{const x={};l.iconSize&&(x.width=l.markIconSize,x.height=l.markIconSize);const Y=l.markIcon??o;q=t.h(Y,x)}return t.h("view",{class:"fox-steps-bar__mark"},[q])},M=(q,P,x,Y,z)=>{const R=[];if(!B(P)){const ne=V(q,P);R.push(ne)}const G=$(q,P,x,Y,z);R.push(G);const Z={class:"fox-steps-bar__head"};return t.h("view",Z,R)},K=(q,P,x,Y)=>{let z=null;r.main?z=r.main({item:q,index:P,status:x}):z=Tp(l,q);const R={class:"fox-steps-bar__main",onClick:()=>{s("click",{item:q,index:P}),!Y&&C(q,P)}};return t.h("view",R,[z])},v=(q,P,x)=>{let Y=null;if(r.sub){Y=r.sub({item:q,index:P,status:x});const z={class:"fox-steps-bar__sub"};return t.h("view",z,[Y])}return null},E=(q,P)=>{const x=yl(l,q,P)??{},Y=x.status??gl(l,q);let z=Is(l,q);x.disabled===!0&&(z=!0),l.disabled===!0&&(z=!0);const R=x.label??xs(l,q),G=[],Z=$(q,P,R,Y,z);Z&&G.push(Z);const ne=K(q,P,Y,z);if(ne&&G.push(ne),!B(P)){const te=V(q,P);te&&G.push(te)}const F=t.h("view",{class:"fox-steps-bar__head"},G),X=x.class,Q=x.style??{};let U=vs(l,q);x.doit===!0&&(U=!0);const J={ref:O(P),class:p(P,Y,z,U,X),style:m(P,Q)};return t.h("view",J,[F])},L=(q,P)=>{const x=yl(l,q,P)??{},Y=x.status??gl(l,q);let z=Is(l,q);x.disabled===!0&&(z=!0),l.disabled===!0&&(z=!0);const R=x.label??xs(l,q),G=[],Z=l.layout;for(let U of Z)if(U==="head"){const J=M(q,P,R,Y,z);G.push(J)}else if(U==="main"){const J=K(q,P,Y,z);G.push(J)}else if(U==="sub"){const J=v(q,P,Y);G.push(J)}else if(U==="mark"){const J=D();G.push(J)}const ne=x.class,F=x.style??{};let X=vs(l,q);x.doit===!0&&(X=!0);const Q={ref:O(P),class:p(P,Y,z,X,ne),style:m(P,F)};return t.h("view",Q,G)},I=t.ref(),W=t.ref([]),j=(q,P)=>{W.value[P]=q},O=q=>P=>{j(P,q)},ee=(q,P)=>{const x=I.value,Y=W.value;if(!x||!Y||!Y[q])return;const z=Y[q];let R=0;l.direction==="vertical"?R=z.offsetTop-(x.offsetHeight-z.offsetHeight)/2:R=z.offsetLeft-(x.offsetWidth-z.offsetWidth)/2,H(x,R,.3,l.direction)},H=(q,P,x,Y)=>{let z=0;const R=Y==="horizontal"?q.scrollLeft:q.scrollTop,G=Math.round(x*1e3/16);function Z(){Y==="horizontal"?q.scrollLeft+=(P-R)/G:q.scrollTop+=(P-R)/G,++z<G&&Ue(Z)}Z()};return()=>{const q=[];if(l.mode==="simple")for(let x=0;x<f.value.length;x++){const Y=f.value[x],z=E(Y,x);q.push(z)}else for(let x=0;x<f.value.length;x++){const Y=f.value[x],z=L(Y,x);q.push(z)}const P={ref:I,class:y.value,style:k.value};return t.h("view",P,q)}}}}const{componentName:Ip,create:vp,scope:xp}=_("steps-bar"),bl=vp(Dp(Ip,xp,le.Checklist,le.ArrowRight));function qp(e){e.stopPropagation()}class Mp{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,a){this.startMove=n,this.updateMove=a,this.isTouch=qn()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=Mn(),o=(l,r,s,i)=>{this.updateMove({x:l,y:r})};this.touchstart=l=>{this.moving||(a.start(l),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(a.move(l),qp(l),o(a.state.deltaX,a.state.deltaY))},this.touchend=()=>{o(a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),a.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Pp(e,n){return new Mp(e,n)}const Lp={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]}},zp=(e,n,a,o=!1)=>({props:{...Lp},emits:["click"],setup(l,{slots:r,emit:s}){let i=-1,c=-1;const u=t.reactive({top:l.top,right:l.right,bottom:l.bottom,left:l.left,width:0,height:0}),f=t.computed(()=>{const B=[`${e}`];return l.customClass&&B.push(l.customClass),B}),d=B=>typeof B=="string"&&!Co(B)?B:`${B}px`,h=t.computed(()=>{const B={};return ue(u.top)||(B.top=d(u.top)),ue(u.right)||(B.right=d(u.right)),ue(u.bottom)||(B.bottom=d(u.bottom)),ue(u.left)||(B.left=d(u.left)),ue(l.width)||(B.width=d(l.width)),ue(l.height)||(B.height=d(l.height)),ue(l.color)||(B.color=l.color),ue(l.background)||(B.background=l.background),ue(l.borderRadius)||(B["border-radius"]=l.borderRadius),B}),S=t.computed(()=>({[`${e}__icon`]:!0})),g=()=>{s("click")},y=t.ref(null),k=()=>{u.top=null,u.right=null,u.bottom=null,u.left=null},p={x:0,y:0},N=Pp(B=>{if(!y.value)return;const C=y.value;k(),u.left=C.offsetLeft,u.top=C.offsetTop,C.style.left=`${u.left}px`,C.style.top=`${u.top}px`,C.style.right=null,C.style.bottom=null,p.x=u.left,p.y=u.top,u.width=C.offsetWidth,u.height=C.offsetHeight,i=document.documentElement.clientWidth||document.body.clientWidth,c=document.documentElement.clientHeight||document.body.clientHeight},B=>{if(!y.value)return;const C=y.value;k();let w=p.x+B.x;w<0&&(w=0),w>i-u.width&&(w=i-u.width);let T=p.y+B.y;T<0&&(T=0),T>c-u.height&&(T=c-u.height),u.left=w,u.top=T,C.style.left=`${w}px`,C.style.top=`${T}px`});return t.onMounted(()=>{if(l.draggable&&y.value){const B=[y.value];N.open(B)}}),t.onBeforeUnmount(()=>{l.draggable&&y.value&&N.close()}),()=>{let B=[];const C=typeof r.default=="function"?r.default():[];if(C&&C.length>0)B=C;else{const T=t.h(a,{class:S.value});B.push(T)}const w={ref:T=>{y.value=T},class:f.value,style:h.value,onClick:g};return t.h("view",w,B)}}}),{componentName:Op,create:Rp,scope:Fp}=_("floating-button"),kl=Rp(zp(Op,Fp,le.Uploader,!1)),Kp={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1}};function Up(e,n,a){return{props:{...Kp},emits:["click","update:modelValue"],setup(o,{emit:l}){const r=t.computed(()=>{const d={[`${e}`]:!0};return o.disabled?d[`${e}--disabled`]=!0:d[`${e}--${o.type}`]=!0,d}),s=Pe(o,"modelValue"),i=t.computed(()=>s.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),u=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),f=()=>{l("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const k={class:c.value},p=t.h("span",k,[i.value]);d.push(p)}const h={class:u.value},S=o.icon??a,g=t.h(S,h);return d.push(g),o.textPosition==="right"&&d.reverse(),t.h("view",{class:r.value,onClick:f},d)}}}}const{componentName:Hp,create:jp,scope:Wp}=_("more-button"),Sl=jp(Up(Hp,Wp,le.RectUp)),Yp={width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},Xp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Qp(e,n,a){return{props:{...Yp},setup(o,{attrs:l,slots:r}){const{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["confirmText","cancelText"]),c=e,u=t.ref(!0),f=N=>{u.value=N},d=N=>{if(typeof o.unmount=="function")try{o.unmount()}catch(B){console.error(B)}if(typeof o.callback=="function")try{o.callback(N)}catch(B){console.error(B)}},h=()=>{d("confirm")},S=()=>{d("cancel")},g=()=>{o.closeOnClickOverlay!==!1&&d("close")},y=(N,B)=>Xp(N)?(B.src=N,t.h("img",B)):typeof N=="string"?(Array.isArray(B.class)?B.class.push(N):B.class&&typeof B.class=="object"?B[`${N}`]=!0:typeof B.class=="string"?B.class=`${B.class}, ${N}`:B.class=N,t.h(o.tag,B)):t.h(N,B),k=()=>{const N=[];if(o.icon){const C={class:[`${c}__header-icon`]},w=y(o.icon,C);N.push(w)}if(o.title){const C=t.h("view",{class:`${c}__header-title`},[o.title]);N.push(C)}if(o.showClose&&o.closeIcon){const C={class:[`${c}__header-close-icon`],onClick:g},w=y(o.closeIcon,C);N.push(w)}const B={class:[`${c}__header`]};return t.h("view",B,N)},p=(N,B)=>{const C=[];if(B){const T={class:`${c}__group-title`},$=t.h("view",T,[B]);C.push($)}if(N){const T=[];Array.isArray(N)||(N=[N]);for(let $ of N){const V={class:`${c}__group-row`,innerHTML:$},D=t.h("view",V);T.push(D)}if(T.length>0){const $={class:`${c}__group-rows`},V=t.h("view",$,T);C.push(V)}}if(C.length===0)return null;const w={class:`${c}__group`};return t.h("view",w,C)},b=()=>{const N=[];if(typeof o.message=="string")N.push(o.message);else if(Array.isArray(o.message))for(let C of o.message)if(typeof C=="string"){const w=p(C);N.push(w)}else{const w=p(C.content,C.title);N.push(w)}else if(typeof o.message=="function"){const C=o.message();N.push(C)}else{const C=o.message;N.push(C)}const B={class:`${c}__body`};return t.h("view",B,N)},m=()=>{const N=[];if(o.showCancelButton){const C={class:[`${c}__footer-button`],style:{},onClick:S};o.cancelButtonClass&&C.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(C.style,o.cancleButtonStyle);const w=t.h("button",C,[o.cancelButtonText??i.cancelText.value]);N.push(w)}if(o.showConfirmButton){const C={class:[`${c}__footer-button`],style:{},onClick:h};o.confirmButtonClass&&C.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(C.style,o.confirmButtonStyle);const w=t.h("button",C,[o.confirmButtonText??i.confirmText.value]);N.push(w)}if(N.length===0)return null;const B={class:`${c}__footer`};return t.h("view",B,N)};return()=>{const N=[],B=k();B&&N.push(B);const C=b();C&&N.push(C);const w=m();w&&N.push(w);const T={class:{[`${c}`]:!0,[`${c}--${o.type||"info"}`]:!0}},$=t.h("view",T,N),V=[`${c}__popup`];o.popClass&&V.push(o.popClass);const D={};o.width&&(D.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(D.height=typeof o.height=="number"?`${o.height}px`:o.height);const M={popClass:V.join(" "),style:D,visible:u.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":f,position:o.position,round:"round",onClickOverlay:g,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,M,{default:()=>$})}}}}const{componentName:Gp,create:Zp,scope:Jp}=_("messagebox"),_p=Zp(Qp(Gp,Jp,me)),eh="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",th="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cpath%20d='M8%2087L8%2095C8%2095.5523%207.55228%2096%207%2096C6.44772%2096%206%2095.5523%206%2095L6%2087L2%2087C1.44772%2087%201%2086.5523%201%2086C1%2085.4477%201.44772%2085%202%2085L6%2085L6%2082C6%2081.4477%206.44772%2081%207%2081C7.55228%2081%208%2081.4477%208%2082L8%2085L12%2085C12.5523%2085%2013%2085.4477%2013%2086C13%2086.5523%2012.5523%2087%2012%2087L8%2087Z'%20fill-rule='evenodd'%20fill='%2396CEFF'%20%3e%3c/path%3e%3cpath%20d='M89%205L89%2010C89%2010.5523%2088.5523%2011%2088%2011C87.4477%2011%2087%2010.5523%2087%2010L87%205L85%205C84.4477%205%2084%204.55228%2084%204C84%203.44772%2084.4477%203%2085%203L87%203L87%201C87%200.447715%2087.4477%200%2088%200C88.5523%200%2089%200.447715%2089%201L89%203L91%203C91.5523%203%2092%203.44772%2092%204C92%204.55228%2091.5523%205%2091%205L89%205Z'%20fill-rule='evenodd'%20fill='%23BDE2FF'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23237FFA'%20%3e%3c/circle%3e%3crect%20x='47.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%2396CEFF'%20%3e%3c/rect%3e%3crect%20x='47.5'%20y='66'%20width='7'%20height='7'%20rx='4'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3c/svg%3e",nh="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",oh="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",lh=new In,ah={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},rh=e=>{let n=document.body,a=e.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):a&&(n=e.teleport));const o=document.createElement("view"),l=`messagebox-${lh.get()}`;o.id=l,o.classList.add("fox-messagebox__root"),e.zIndex&&(o.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const s=document.querySelector(`#${l}`);s&&s.parentNode?.removeChild(s)};const r=t.createVNode(_p,e);n.appendChild(o),t.render(r,o)},ut={show:(e,n,a,o)=>{const l={...ah};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(l,n):(n&&(l.message=n),a&&typeof a=="object"?Object.assign(l,a):(typeof a=="string"&&(l.title=a),o&&typeof o=="object"?Object.assign(l,o):typeof o=="string"&&(l.type=o)));const r=l.type??"info";return l.icon||(r==="success"?l.icon=nh:r==="warning"?l.icon=oh:r==="error"?l.icon=eh:l.icon=th),e==="alert"?(l.showCancelButton=!1,l.showConfirmButton=!0):e==="confirm"&&(l.showCancelButton=!0,l.showConfirmButton=!0),l.showClose&&!l.closeIcon&&(l.closeIcon=le.Close),new Promise((s,i)=>{const c=l.callback;l.callback=u=>{if(typeof c=="function")try{c(u)}catch(f){console.error(f)}s({action:u})},rh(l)})},alert:(e,n,a)=>ut.show("alert",e,n,a),confirm:(e,n,a)=>ut.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=ut.alert,e.config.globalProperties.$confirm=ut.confirm}},sh=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let l=!0,r=!0;for(let i in n)i==="bubbles"?l=!!n[i]:i==="cancelable"?r=!!n[i]:o[i]=n[i];o.initEvent(e,l,r),(a??document).dispatchEvent(o)},ih=new In,ch=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),dh=e=>`${e}-${ih.get()}`,uh=Symbol.for("InnerPageScopeKey"),fh=Symbol.for("PageWrapperKey"),mh="FoxLeave",ph="FoxLeaveEnd",hh={width:{type:[String,Number]},height:{type:[String,Number]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!0},showDelay:{type:Number,default:10},showClose:{type:Boolean,default:!0},closeIcon:{type:Object},showHeader:{type:Boolean,default:!1},popClass:{type:String},popStyle:{type:Object},position:{type:String,default:"center"},mode:{type:String}};function gh(e,n,a,o){return{props:{...Re,...hh},emits:["update:visible"],setup(l,{attrs:r,slots:s,emit:i}){t.provide(uh,!0);const c={};t.provide(fh,c);const u=C=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),f=()=>{u()},d=e,h=C=>{S.value=C,i("update:visible",C)},S=t.ref(!1),g=(C,w)=>ch(C)?(w.src=C,t.h("img",w)):typeof C=="string"?(Array.isArray(w.class)?w.class.push(C):w.class&&typeof w.class=="object"?w[`${C}`]=!0:typeof w.class=="string"?w.class=`${w.class}, ${C}`:w.class=C,t.h(l.tag,w)):t.h(C,w),y=()=>{if(!l.showHeader)return null;const C=[];if(s.header){const T=s.header();C.push(T)}else if(l.title){const T=t.h("view",{class:`${d}__header-title`},[l.title]);C.push(T)}if(C.length===0)return null;const w={class:[`${d}__header`]};return t.h("view",w,C)},k=()=>{if(!l.showClose)return null;const C={class:[`${d}__close-icon`],onClick:f},w=l.closeIcon??o;return g(w,C)};let p=null;const b=C=>{sh(ph,{},p)},m=dh(e),N=()=>{h(!0)},B=()=>{if(!p)return;const C=p.querySelector(".fox-overlay");C&&(C.classList.add("overlay-fade-leave-active"),C.classList.add("overlay-fade-leave-to"));const w=p.querySelector(".fox-popup");w&&(w.classList.add(`fox-popup-slide-${l.position}-leave-active`),w.classList.add(`fox-popup-slide-${l.position}-leave-to`),w.addEventListener("animationend",b,{once:!0}),w.addEventListener("transitionend",b,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{p=document.querySelector(`.${m}`),p?.addEventListener(mh,B,{once:!0}),N()}),()=>{const C=[],w=y();w&&C.push(w);const T=k();T&&C.push(T);const $=s.default?s.default():[];Reflect.apply([].push,C,$);const V={[`${d}`]:!0};l.mode&&(V[`${d}--${l.mode}`]=!0);const D={class:V},M=t.h("view",D,C),K=[`${d}__popup`,m];l.popClass&&K.push(l.popClass),l.position&&K.push(`${d}__popup--${l.position}`);const v={};l.width&&(v.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(v.height=typeof l.height=="number"?`${l.height}px`:l.height);const L={...Se(l,Re),popClass:K.join(" "),style:v,visible:S.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:f,"onUpdate:visible":h},I=t.h(a,L,{default:()=>M});return t.h("div",{class:[`${d}__root`,m]},[I])}}}}const{componentName:yh,create:bh,scope:kh}=_("popup-wrapper"),Cl=bh(gh(yh,kh,me,le.Close)),Sh={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function Ch(e,n,a,o){return{props:{...Sh},emits:["update:visible"],setup(l,{emit:r,slots:s}){const i=c=>{r("update:visible",c)};return()=>{const c=[`${e}__popup`];l.popClass&&c.push(l.popClass);const u={popClass:c,style:l.popStyle??{},position:"top",zIndex:l.zIndex,closeOnClickOverlay:l.closeOnClickOverlay,teleportDisable:!0,visible:l.visible,"onUpdate:visible":i},f=t.h(a,u,s),d={class:`${e}`};return t.h("view",d,[f])}}}}const{componentName:wh,create:Nh,scope:Bh}=_("dropdown"),wl=Nh(Ch(wh,Bh,me)),Ah={visible:{type:Boolean},reference:{type:Object},referenceInset:{type:Object},width:{type:String},offset:{type:Number,default:()=>6},placement:{type:String,default:()=>"top-start"},autoFit:{type:Boolean,default:()=>!0},title:{type:String},effect:{type:String},showArrow:{type:Boolean,default:()=>!0},arrowSize:{type:Number,default:()=>14},arrowOffset:{type:Number,default:()=>20},showOverlay:{type:Number,default:()=>!0},closeOnClick:{type:Boolean,default:()=>!0},zIndex:{type:[String,Number]},customClass:{type:[String]},customStyle:{type:[Object]},leaveHide:{type:[Boolean]}};function Th(e,n,a=!1){return{props:{...Ah},emits:["update:visible"],setup(o,{emit:l,slots:r,expose:s}){const i=t.ref({top:null,right:null,bottom:null,left:null}),c=t.ref(0),u=t.ref(0),f=t.ref(0),d=t.ref(0),h=t.ref(o.placement),S=t.ref(!1),g=t.ref(!1),y=t.ref(null),k=()=>typeof o.reference=="string"?document.querySelector(o.reference):o.reference,p=(O,ee,H,q,P,x,Y,z=!0)=>{const R=document.documentElement.clientWidth||document.body.clientWidth,G=document.documentElement.clientHeight||document.body.clientHeight,Z=O.split("-");let ne=[];z?Z[0]==="top"?ne=["top","bottom","right","left"]:Z[0]==="bottom"?ne=["bottom","top","right","left"]:Z[0]==="left"?ne=["left","top","bottom","right"]:Z[0]==="right"&&(ne=["right","top","bottom","left"]):ne=[O[0]];const F={top:null,right:null,bottom:null,left:null},X=[];for(let Q=0;Q<ne.length;Q++){const U=ne[Q];if(X[0]=U,Z[1]&&(X[1]=Z[1]),U==="top"){const J=H-Y-o.arrowSize/2-o.offset;if(J>=0){F.top=J;let te=0;Z[1]==="start"?te=ee:Z[1]==="end"?te=ee+q-x:te=ee+q/2-x/2;const ae=R-te-x;ae<0?(te+=ae,m.value=-ae):m.value=0,F.left=te<0?0:te;break}}else if(U==="bottom"){const J=H+P+o.arrowSize/2+o.offset;if(J+Y<=G){F.top=J;let te=0;Z[1]==="start"?te=ee:Z[1]==="end"?te=ee+q-x:te=ee+q/2-x/2;const ae=R-te-x;ae<0?(te+=ae,m.value=-ae):m.value=0,F.left=te<0?0:te;break}}else if(U==="left"){const J=ee-x-o.arrowSize/2-o.offset;if(J>=0){F.left=J;let te=0;Z[1]==="start"?te=H:Z[1]==="end"?te=H+P-Y:te=H+P/2-Y/2,F.top=te<0?0:te;break}}else if(U==="right"){const J=ee+q+o.arrowSize/2+o.offset;if(J+x<=R){F.left=J;let te=0;Z[1]==="start"?te=H:Z[1]==="end"?te=H+P-Y:te=H+P/2-Y/2,F.top=te<0?0:te;break}}}return{bestPlacement:X.join("-"),bestInsetRect:F}},b=()=>{const O=o.visible,ee=o.autoFit;if(!Ge||O===!1)return;if(o.reference){const Y=k(),z=zo(Y);c.value=z.x,u.value=z.y,f.value=Y.offsetWidth,d.value=Y.offsetHeight}else o.referenceInset&&(c.value=o.referenceInset.left,u.value=o.referenceInset.top,f.value=o.referenceInset.right-o.referenceInset.left,d.value=o.referenceInset.bottom-o.referenceInset.top);const H=y.value.offsetWidth,q=y.value.offsetHeight,{bestPlacement:P,bestInsetRect:x}=p(o.placement,c.value,u.value,f.value,d.value,H,q,ee);h.value=P,i.value=x},m=t.ref(0),N=Ze(()=>{b()},10),B=t.ref(o.visible);t.watch([()=>o.visible],([O])=>{B.value=O,O?(S.value=O,setTimeout(()=>{b(),g.value=!0},0)):g.value=!1});const C=t.computed(()=>B.value&&w.value),w=t.ref(!0),T=Ze(O=>{const ee=O[0];ee&&(w.value=ee.isIntersecting)},10),$=new IntersectionObserver(T);t.watch([()=>o.reference,()=>o.referenceInset],([O,ee],[H,q])=>{!O&&!ee||(setTimeout(()=>{b()},0),o.autoFit&&(H&&(Pt.unwatch(H,N),$.unobserve(H)),O&&(Pt.watch(O,N),$.observe(O))))},{immediate:!0}),t.onBeforeUnmount(()=>{o.reference&&(Pt.unwatch(o.reference,N),$.unobserve(o.reference),$.disconnect())});const V=t.computed(()=>{const O={[e]:!0};return h.value.startsWith("top")?O["is-top"]=!0:h.value.startsWith("right")?O["is-right"]=!0:h.value.startsWith("bottom")?O["is-bottom"]=!0:h.value.startsWith("left")&&(O["is-left"]=!0),O[`is-${o.effect}`]=!0,!g.value&&C.value&&(O["is-opacity"]=!0),g.value&&C.value&&(O["is-show"]=!0),C.value||(O["is-hide"]=!0),o.customClass&&typeof o.customClass=="string"&&(O[`${o.customClass}`]=!0),O}),D=t.computed(()=>{const O={};return i.value.top!==null&&(O.top=`${i.value.top}px`),i.value.right!==null&&(O.right=`${i.value.right}px`),i.value.bottom!==null&&(O.bottom=`${i.value.bottom}px`),i.value.left!==null&&(O.left=`${i.value.left}px`),o.width&&(O.width=o.width),o.zIndex&&(O["z-index"]=`${o.zIndex}`),o.customStyle&&typeof o.customStyle=="object"&&Object.assign(O,o.customStyle),O}),M=()=>{B.value=!1,l("update:visible",!1)},K=()=>{if(!o.showOverlay)return null;const O={class:`${e}__overlay`,onClick:M};return t.h("div",O)},v=()=>{let O=null;return r.title?O=t.h("div",{class:`${e}__title`},{default:r.title}):o.title&&(O=t.h("div",{class:`${e}__title`},[o.title])),O},E=t.computed(()=>({[`${e}__arrow`]:!0})),L=t.computed(()=>{const O={};return o.showArrow?(O.width=`${o.arrowSize}px`,O.height=`${o.arrowSize}px`,h.value==="top"?(O.left="50%",O.bottom="0",O.transform="translate(-50%, 50%)"):h.value==="top-start"?(O.left=`${o.arrowOffset+m.value}px`,O.bottom="0",O.transform="translate(-50%, 50%)"):h.value==="top-end"?(O.right=`${o.arrowOffset-m.value}px`,O.bottom="0",O.transform="translate(-50%, 50%)"):h.value==="right"?(O.left="0",O.top="50%",O.transform="translate(-50%, -50%)"):h.value==="right-start"?(O.left="0",O.top=`${o.arrowOffset}px`,O.transform="translate(-50%, 50%)"):h.value==="right-end"?(O.left="0",O.bottom=`-${o.arrowOffset}px`,O.transform="translate(-50%, 50%)"):h.value==="bottom"?(O.left="50%",O.top="0",O.transform="translate(-50%, -50%)"):h.value==="bottom-start"?(O.left=`${o.arrowOffset+m.value}px`,O.top="0",O.transform="translate(-50%, -50%)"):h.value==="bottom-end"?(O.right=`${o.arrowOffset-m.value}px`,O.top="0",O.transform="translate(-50%, -50%)"):h.value==="left"?(O.right="0",O.top="50%",O.transform="translate(50%, -50%)"):h.value==="left-start"?(O.right="0",O.top=`${o.arrowOffset}px`,O.transform="translate(50%, -50%)"):h.value==="left-end"&&(O.right="0",O.bottom=`-${o.arrowOffset}px`,O.transform="translate(50%, -50%)"),O):{display:"none"}}),I=()=>{const O={class:E.value,style:L.value};return t.h("div",O)},W=()=>{B.value===!1&&(S.value=!1)},j=O=>{if(!y.value||B.value===!1)return;const{relatedTarget:ee}=O;y.value.contains(ee)||(B.value=!1,l("update:visible",!1))};return s({doLayout:b}),()=>{if(!S.value)return null;const O=[],ee=K();ee&&O.push(ee);const H=[],q=v();if(q&&H.push(q),r.default){const z=r.default();H.push(z)}const P=I();P&&H.push(P);const x={ref:y,class:V.value,style:D.value,onAnimationend:W};o.leaveHide&&(x.onMouseleave=j);const Y=t.h("div",x,{default:()=>H});return O.push(Y),O}}}}const{componentName:$h,create:Vh,scope:Eh}=_("popover-dialog"),Nl=Vh(Th($h,Eh,!1));function Dh(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(l)},500)}const Ih={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function vh(e,n,a,o=!1){return{props:{...Ih},emits:["click"],setup(l,r){const s=t.ref(null),i=t.computed(()=>{const m={[`${e}`]:!0,"is-truncated":l.truncated};return l.type&&(m[`${e}--${l.type??"default"}`]=!0),l.size&&(m[`${e}--${l.size}`]=!0),m}),c=t.computed(()=>{const m={},N=l.textColor??l.color;return N&&(m.color=N),m}),u=(m,N)=>{let B=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const C=l.highlightFilter;if(m.indexOf(C)!==-1){const T=m.replace(new RegExp(C,"g"),`<span>${C}</span>`);N.innerHTML=T,N.class["is-highlight"]=!0,B=t.h(l.tag,N)}}else if(typeof l.highlightFilter=="function"){const C=l.highlightFilter(m);C&&(N.innerHTML=C,N.class["is-highlight"]=!0,B=t.h(l.tag,N))}return B},f=m=>{r.emit("click",m)};let d="";const h=()=>{const m=s.value;if(!m)return;const N=m.clientWidth;Dh(m,B=>{const C=m.innerHTML??"";ue(C)||B<N||(d?a?.show(m,C,{type:"text",id:d,showArrow:l.showArrow},!0):d=a?.show(m,C,{type:"text",showArrow:l.showArrow},!0)??"")})},S=()=>{d&&a?.hide(d)};let g=null;const y=m=>{g||(g=setTimeout(()=>{h(),g=null},l.showAfter??0))},k=m=>{g&&(clearTimeout(g),g=null),setTimeout(()=>{S()},l.hideAfter??0)},p=()=>{const m=s.value;m&&(m.addEventListener("mouseover",y),m.addEventListener("mouseleave",k))},b=()=>{const m=s.value;m&&(m.removeEventListener("mouseover",y),m.removeEventListener("mouseleave",k))};return t.onMounted(()=>{!be(l.showOverflowTooltip)||!a||p()}),t.onBeforeUnmount(()=>{!be(l.showOverflowTooltip)||!a||b()}),()=>{const m={onClick:f,class:i.value,style:c.value,ref:s};let N=null;if(be(l.numberFormat)&&typeof r.slots.default=="function"){const T=r.slots.default();if(Array.isArray(T)&&T.length===1){const $=T[0].type.toString();if($==="Symbol(Text)"||$==="Symbol(v-txt)"){const V=pe(l.digits),D=pe(l.decimalLength),M=be(l.autoPadding);let K=`${T[0].children}`,v=K.split("").reverse().join("");v=on(v,D,M,V,l.separator),K=v.split("").reverse().join(""),l.highlightFilter!==void 0&&(N=u(K,m)),N||(m.innerHTML=K,N=t.h(l.tag,m))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const T=r.slots.default();if(Array.isArray(T)&&T.length===1){const $=T[0].type.toString();if($==="Symbol(Text)"||$==="Symbol(v-txt)"){const V=`${T[0].children}`;N=u(V,m),N||(m.innerHTML=V,N=t.h(l.tag,m))}}}N||(N=t.h(l.tag,m,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return N;let C=null;if(l.icon){const T={[`${e}__mark-wrap`]:!0};l.type&&(T[`${e}__mark-wrap--${l.type}`]=!0);const $={},V=l.color;V&&($.color=V);const D={class:T,style:$};C=t.h("view",D,t.h(l.icon))}else if(r.slots.mark){const T={[`${e}__mark-wrap`]:!0};l.type&&(T[`${e}__mark-wrap--${l.type}`]=!0);const $={},V=l.color;V&&($.color=V);const D={class:T,style:$};C=t.h("view",D,{default:r.slots.mark})}else{const T={[`${e}__mark`]:!0};l.type&&(T[`${e}__mark--${l.type??"default"}`]=!0);const $={},V=l.color;V&&($["background-color"]=V);const D={class:T,style:$};C=t.h("view",D)}const w={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",w,[C,N])}}}}const{componentName:xh,create:qh,scope:Mh}=_("text"),Bl=qh(vh(xh,Mh,kt,!1));function Ph(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[l]){let c=n;for(let u=0;c&&u<r.length;u++){let f=r[u],d=c.find(h=>h[o]===f);if(!d)break;s.push(d[a])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let u=n[c],f=r[c];const d=u.find(h=>h[o]===f);if(!d)break;s.push(d[a])}else{let c=n;for(let u=0;c&&u<r.length;u++){let f=r[u],d=c.find(h=>h[o]===f);if(!d)break;s.push(d[a]),c=d[l]}}return s}class Lh{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=_e(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function zh(){const e=t.getCurrentInstance();return new Lh(e.proxy)}const Oh={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 Rh(e,n,a=!1){return{props:{...Oh},setup(o,{attrs:l,slots:r}){const s=zh(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([f,d])=>{i.value=await s.load(o.sourceType,f,d)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=Ph(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return f.length==0?o.emptyText??"":f.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${f[0]}`:f[0]:f.join(o.separator)}),u=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const f={...l};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",{...l,class:o.emptyClass},c.value):t.h(u,f,{default:()=>c.value}):t.h(u,f,c.value)}}}}const{componentName:Fh,create:Kh,scope:Uh}=_("mapping"),Al=Kh(Rh(Fh,Uh,!1));function Hh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return gr(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:B2,create:jh,scope:A2}=_("domain-provider"),Tl=jh(Hh()),Wh={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 Yh(e,n){return{inheritAttrs:!1,props:Wh,setup(a,{slots:o}){if(Ge&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const s=(h,S)=>{if(f===null){r.set(h,{visible:null,callback:S});return}l.has(h)&&f.unobserve(h),l.set(h,{visible:null,callback:S}),f.observe(h)},i=h=>{if(f===null){r.delete(h);return}l.has(h)&&(l.delete(h),f.unobserve(h))};let c=a.initialVisibleObserverSize;Zi({acquire:()=>{const h=c>0;return c--,h},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:s,unobserve:i});let f=null;const d=(h,S,g)=>{f=new IntersectionObserver(y=>{for(let k of y){let p=!1;k.intersectionRatio>0&&(p=!0);const b=l.get(k.target);if(b)try{if(a.loadPolicy==="lazy"&&!p&&b.visible!==null)return;b.visible=p,b.callback(p)}catch(m){console.error(m)}}},{root:h,rootMargin:S,threshold:g}),r.forEach((y,k)=>{l.set(k,y),f?.observe(k)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([h,S])=>{if(S||!h||f)return;let g=null;typeof h=="string"?g=document.querySelector(h):g=h,g&&d(g,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:T2,create:Xh,scope:$2}=_("rolling-provider"),$l=Xh(Yh()),{componentName:Qh,create:Gh}=_("cell"),Zh=Gh({components:{Right:le.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.computed(()=>{const r=Qh;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:ge(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),Jh={key:0,class:"fox-cell__icon"},_h={key:1,class:"fox-cell__title"},eg={class:"title"},tg={class:"fox-cell__title-desc"};function ng(e,n,a,o,l,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",Jh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",_h,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",eg,t.toDisplayString(e.title),1)]),t.createElementVNode("view",tg,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 Vl=oe(Zh,[["render",ng]]),{componentName:og,create:lg}=_("cell-group"),ag=lg({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[og]:!0}))}}}),rg={key:1,class:"fox-cell-group__title"},sg={key:3,class:"fox-cell-group__desc"},ig={class:"fox-cell-group__wrap"};function cg(e,n,a,o,l,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",rg,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",sg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",ig,[t.renderSlot(e.$slots,"default")])],2)}const El=oe(ag,[["render",cg]]),{componentName:dg,create:ug}=_("image"),fg=ug({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:le.Image,ImageError:le.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),o=t.computed(()=>{const S=dg;return{[S]:!0,[`${S}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const S={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(g=>{g.forEach(y=>{y.isIntersecting&&(r.value=!0,l.value.disconnect())})},S),s.value&&l.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let S={};return e.width&&(S.width=ge(e.width)),e.height&&(S.height=ge(e.height)),e.radius!==void 0&&e.radius!==null&&(S.overflow="hidden",S.borderRadius=ge(e.radius)),S}),u=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,S=>{a.isError=!1,a.loading=!0});const f=()=>{a.loading=!1,n("load")},d=()=>{a.isError=!0,a.loading=!1,n("error")},h=S=>{n("click",S)};return{...t.toRefs(a),imageClick:h,classes:o,styles:u,stylebox:c,error:d,load:f,show:r,imgRef:s}}}),mg=["src","date-src","alt"],pg={key:0,class:"fox-img-loading"},hg={key:1,class:"fox-img-error"};function gg(e,n,a,o,l,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,mg),e.loading?(t.openBlock(),t.createElementBlock("div",pg,[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",hg,[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 Dl=oe(fg,[["render",gg]]),{create:yg}=_("layout"),Il=yg({}),{componentName:bg,create:kg}=_("col"),Sg=kg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=bg,a=t.inject("gutter"),o=t.computed(()=>({[n]:!0,[`${n}-gutter`]:a,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),l=t.computed(()=>({paddingLeft:a/2+"px",paddingRight:a/2+"px"}));return{classes:o,style:l}}});function Cg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const vl=oe(Sg,[["render",Cg]]),{componentName:wg,create:Ng}=_("row"),Bg=Ng({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=wg;t.provide("gutter",e.gutter);const a=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
6
6
  ${a("",e.type)}
7
7
  ${a("justify",e.justify)}
8
8
  ${a("align",e.align)}
@@ -10,4 +10,4 @@
10
10
  ${n}
11
11
  `:`
12
12
  ${n}
13
- `)}}});function bg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const xl=oe(yg,[["render",bg]]),{create:kg}=_("sticky"),Sg=kg({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),i=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),s=t.computed(()=>l.fixed?{[e.position]:`${r.value}px`,transform:l.transform?`translate3d(0, ${l.transform}px, 0)`:void 0,position:l.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const u=e.container;if(!a.value&&!u)return;const p=qe(a),d=o.value,g=qe(d),S=qe(u);l.height=p.height;const b=()=>{let k=!1;if(e.position==="top")k=u?r.value>p.top&&S.bottom>0:r.value>p.top;else{const f=document.documentElement.clientHeight;k=u?S.bottom>0&&f-r.value-g.height>S.top:f-r.value<p.bottom}return k},y=()=>{if(u)if(e.position==="top"){const k=S.bottom-r.value-g.height;return k<0?k:0}else{const k=document.documentElement.clientHeight,f=S.bottom-(k-r.value);return f<0?f:0}return 0};l.transform=y(),l.fixed=b()};return t.watch(()=>l.fixed,u=>{n("change",u)}),t.onMounted(()=>{c(),ul(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{ul(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:i,stickyRef:o,stickyStyle:s}}});function Cg(e,n,a,o,l,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 Rt=oe(Sg,[["render",Cg]]),{componentName:wg,create:Ng}=_("divider"),Bg=Ng({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=wg;let l={[o]:!0},r={};return e.direction==="horizontal"?r={...l,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:r={...l,[`${o}-vertical`]:e.direction==="vertical"},r})}}});function Ag(e,n,a,o,l,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 vl=oe(Bg,[["render",Ag]]);function Tg(e,n){const a=[],o=l=>{Array.isArray(l)&&l.forEach(r=>{if(t.isVNode(r)){if(n){if(r.type&&r.type.name===n){a.push(r);return}}else a.push(r);r.component?.subTree&&o(r.component.subTree.children),r.children&&o(r.children)}})};return o(e),a}function $g(e,n,a){const o=Tg(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function Vg(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=s=>{s.proxy&&(a.push(t.markRaw(s)),$g(o,a,n))},r=s=>{a.splice(a.indexOf(t.markRaw(s)),1)},i=Object.assign;return s=>(t.provide(e,i({add:l,remove:r,internalChildren:a},s)),{internalChildren:a})}const{componentName:vs}=_("grid"),qs=Symbol("grid"),Eg={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}){Vg(qs,`${vs}-item`)({props:e});const a=t.computed(()=>{const l=vs;return{[l]:!0,[`${l}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const l={};return e.gutter&&(l.paddingLeft=ge(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:Dg}=_("grid"),ql=Dg(Eg);function Ig(e){const n=t.inject(e,null);if(n){const a=t.getCurrentInstance(),{add:o,remove:l,internalChildren:r}=n;o(a),t.onUnmounted(()=>l(a));const i=t.computed(()=>r.indexOf(a));return{parent:n,index:i}}return{parent:null,index:t.ref(-1)}}const{create:xg,componentName:Ps}=_("grid-item"),vg=xg({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=Ig(qs);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[Ps]:!0})),i=t.computed(()=>{const u={flexBasis:`${100/+l.columnNum}%`};return l.square?u.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(u.paddingRight=ge(l.gutter),o.value>=l.columnNum&&(u.marginTop=ge(l.gutter))),u}),s=t.computed(()=>{const u=`${Ps}__content`;return{[`${u}`]:!0,[`${u}--border`]:l.border,[`${u}--surround`]:l.border&&l.gutter,[`${u}--center`]:l.center,[`${u}--square`]:l.square,[`${u}--reverse`]:l.reverse,[`${u}--${l.direction}`]:!!l.direction,[`${u}--clickable`]:l.clickable}});return{rootClass:r,rootStyle:i,contentClass:s,handleClick:u=>{n("click",u)}}}}),qg={class:"fox-grid-item__text"};function Pg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",qg,[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 Pl=oe(vg,[["render",Pg]]),{componentName:Mg,create:Lg}=_("navbar"),zg=Lg({components:{Left:le.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:o,safeAreaInsetTop:l,placeholder:r,zIndex:i}=t.toRefs(e),s=t.ref(null),c=t.ref(null);let u=t.ref();const p=t.computed(()=>{const k=Mg;return{[k]:!0,[`${k}--border`]:a.value,[`${k}--fixed`]:o.value,[`${k}--safe-area-inset-top`]:l.value}}),d=t.computed(()=>({zIndex:i.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{u.value=c?.value?.getBoundingClientRect().height,s.value.style.height=u.value+"px"})});function g(){n("on-click-back")}function S(){n("on-click-title")}function b(){n("on-click-icon")}function y(){n("on-click-right")}return{navBarWrap:s,navBarHtml:c,classes:p,styles:d,handleLeft:g,handleCenter:S,handleCenterIcon:b,handleRight:y}}}),Og={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Fg={key:1,class:"fox-navbar__text"},Rg={class:"fox-navbar__title"},Kg={key:0,class:"fox-navbar__text"},Ug={key:1,class:"fox-navbar__text"},Hg={class:"fox-navbar__title"},jg={key:0,class:"fox-navbar__text"};function Wg(e,n,a,o,l,r){const i=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Og,[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]=(...s)=>e.handleLeft&&e.handleLeft(...s))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(i,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Fg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Rg,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...s)=>e.handleCenter&&e.handleCenter(...s))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:n[3]||(n[3]=(...s)=>e.handleCenterIcon&&e.handleCenterIcon(...s))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...s)=>e.handleCenterIcon&&e.handleCenterIcon(...s))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...s)=>e.handleRight&&e.handleRight(...s))},[e.desc?(t.openBlock(),t.createElementBlock("view",Kg,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]=(...s)=>e.handleLeft&&e.handleLeft(...s))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(i,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Ug,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Hg,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[6]||(n[6]=(...s)=>e.handleCenter&&e.handleCenter(...s))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:n[8]||(n[8]=(...s)=>e.handleCenterIcon&&e.handleCenterIcon(...s))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...s)=>e.handleCenterIcon&&e.handleCenterIcon(...s))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...s)=>e.handleRight&&e.handleRight(...s))},[e.desc?(t.openBlock(),t.createElementBlock("view",jg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Ml=oe(zg,[["render",Wg]]),Yg=(e,n,a)=>({components:a,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:l}){const{toLocaleRefs:r}=ie.useFoxI18n(n),i=r(o,["activeText","unActiveText"]),s=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...i,classes:s,updateValue:(d=!o.visible)=>{l("update:visible",d)},selected:(d,g)=>{l("selected",{item:d,event:g}),c.value=d.id},current:c}}}),{componentName:Xg,create:Qg,scope:Gg}=_("fixednav"),Zg=Qg(Yg(Xg,Gg,{[dt.name]:dt,Left:le.Left})),Jg={class:"fox-fixednav__list"},_g=["onClick"],ey=["src"],ty={class:"span"},ny={key:0,class:"b"},oy={class:"text"};function ly(e,n,a,o,l,r){const i=t.resolveComponent("fox-overlay"),s=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(i,{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",Jg,[(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:p=>e.selected(c,p),key:c.id||u},[t.createElementVNode("img",{src:c.icon},null,8,ey),t.createElementVNode("view",ty,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",ny,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,_g))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(s,{color:"#fff"}),t.createElementVNode("view",oy,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Ll=oe(Zg,[["render",ly]]),{componentName:ay,create:ry}=_("menu"),sy=ry({components:{ArrowUp2:le.ArrowUp2,ArrowDown2:le.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.ref(0),r=t.ref(!1),i=()=>{const k=t.reactive([]),f=t.reactive([]);return{children:k,linkChildren:h=>{const C=w=>{w.proxy&&(f.push(w),k.push(w.proxy))},A=w=>{if(w.proxy){let N=f.indexOf(w);N>-1&&f.splice(N,1);let T=k.indexOf(w.proxy);N>-1&&k.splice(T,1)}};t.provide("menuParent",Object.assign({removeLink:A,link:C,children:k,internalChildren:f},h))}}},{children:s,linkChildren:c}=i(),u=t.computed(()=>s.some(k=>k.state.showWrapper)),p=t.computed(()=>({[ay]:!0,"scroll-fixed":r.value})),d=()=>{if(o.value){const k=qe(o);e.direction==="down"?l.value=k.bottom:l.value=window.innerHeight-k.top}};c({props:e,offset:l});const g=k=>{s.forEach((f,m)=>{m===k?(d(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},S=k=>Math.max(0,"scrollTop"in k?k.scrollTop:k.pageYOffset),b=()=>{const{scrollFixed:k}=e,f=S(window);r.value=f>(typeof k=="boolean"?30:Number(k))},y=k=>{let f="";const{titleClass:m}=e;return k&&(f+="active"),m&&(f+=` ${m}`),f};return t.onMounted(()=>{const{scrollFixed:k}=e;k&&window.addEventListener("scroll",b)}),t.onUnmounted(()=>{const{scrollFixed:k}=e;k&&window.removeEventListener("scroll",b)}),{toggleItem:g,children:s,opened:u,classes:p,barRef:o,getClasses:y}}}),iy=["onClick"],cy={class:"fox-menu__title-text"},dy={class:"fox-menu__title-icon"};function uy(e,n,a,o,l,r){const i=t.resolveComponent("ArrowUp2"),s=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:p=>!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",cy,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",dy,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(i,{key:0})):(t.openBlock(),t.createBlock(s,{key:1}))])])],2)],14,iy))),128))],2),t.renderSlot(e.$slots,"default")],2)}const zl=oe(sy,[["render",uy]]),{componentName:fy,create:my}=_("menu-item"),py=my({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:{[me.name]:me,Check:le.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:a}){const o=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),l=()=>{const S=t.inject("menuParent",null);if(S){const b=t.getCurrentInstance(),{link:y,removeLink:k}=S;return y(b),t.onUnmounted(()=>{k(b)}),{parent:S}}},{parent:r}=l(),i=t.computed(()=>({[fy]:!0})),s=t.computed(()=>{const S={height:r.offset.value+"px"};return r.props.direction==="down"?S:{...S,top:"auto"}});return{classes:i,placeholderElementStyle:s,renderTitle:()=>{if(e.title)return e.title;const S=e.options?.find(b=>b.value===e.modelValue);return S?S.text:""},state:o,parent:r,toggle:(S=!o.showPopup,b={})=>{S!==o.showPopup&&(o.showPopup=S,o.isShowPlaceholderElement=S,S&&(o.showWrapper=!0,n("open")))},onClick:S=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,S.value!==e.modelValue&&(n("update:modelValue",S.value),n("change",S.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),hy={class:"fox-menu-item__content fox-menu-item__overflow"},gy=["onClick"];function yy(e,n,a,o,l,r){const i=t.resolveComponent("Check"),s=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(s,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",hy,[(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:p=>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(i,t.mergeProps({ref_for:!0},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,gy))),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 Ol=oe(py,[["render",yy]]),{create:by}=_("tabbar"),ky=by({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,n){function a(l){o.value!==l&&(o.value=l,n.emit("update:modelValue",l),n.emit("change",l,o.children[l]))}const o=t.reactive({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:a});return t.provide("parent",o),t.watch(()=>e.modelValue,l=>{o.value=l}),{changeIndex:a}}});function Sy(e,n,a,o,l,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 Fl=oe(ky,[["render",Sy]]),{create:Cy}=_("tabbar-item"),wy=Cy({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 a=t.inject("parent"),o=t.reactive({size:a.size,inactiveColor:a.inactiveColor,activeColor:a.activeColor,value:a.value,index:0}),l=t.getCurrentInstance();l!==null&&(u=>{if(u.proxy){let p=a.children.length;o.index=p;let d=Object.assign(u.proxy,{index:p});a.children.push(d)}})(l);const r=t.computed(()=>o.index===o.value);function i(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}const s=t.computed(()=>a?a.value:null);return t.watch(s,c=>{o.value=c}),{state:o,active:r,change:i}}}),Ny={class:"fox-tabbar-item_icon-box"},By={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Ay={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Ty={key:1,class:"fox-tabbar-item_icon-box_dot"},$y={key:2},Vy={key:0};function Ey(e,n,a,o,l,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]=i=>e.change(e.state.index))},[t.createElementVNode("view",Ny,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",By,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",Ay,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",Ty)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",$y,[(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",Vy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Rl=oe(wy,[["render",Ey]]),{componentName:Dy,create:Iy}=_("elevator"),xy=Iy({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const a=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}),l=t.computed(()=>({[Dy]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),i=t.computed(()=>a.value.clientHeight),s=(f,m)=>f.getAttribute("data-"+m),c=f=>{t.nextTick(()=>{!o.listGroup.includes(f)&&f!=null&&o.listGroup.push(f)})},u=()=>{let f=0;o.listHeight.push(f);for(let m=0;m<o.listGroup.length;m++){let h=o.listGroup[m];f+=Math.floor(h.clientHeight),o.listHeight.push(f)}},p=f=>{!f&&f!==0||(f<0&&(f=0),f>o.listHeight.length-2&&(f=o.listHeight.length-2),o.codeIndex=f,a.value.scrollTo(0,o.listHeight[f]))},d=f=>{o.scrollStart=!0;let m=s(f.target,"index"),h=f.touches[0];o.touchState.y1=h.pageY,o.anchorIndex=+m,o.codeIndex=+m,p(+m)},g=f=>{let m=f.touches[0];o.touchState.y2=m.pageY;let h=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+h,p(o.codeIndex)},S=()=>{o.scrollStart=!1},b=(f,m)=>{n.emit("click-item",f,m),o.currentData=m,o.currentKey=f},y=f=>{n.emit("click-index",f)},k=f=>{let h=f.target.scrollTop;const C=o.listHeight;o.scrollY=h;for(let A=0;A<C.length-1;A++){let w=C[A],N=C[A+1];if(o.scrollY>=w&&o.scrollY<N){o.currentIndex=A,o.diff=N-o.scrollY;return}}o.currentIndex=C.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",k)}),ve({scrollTo:p}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(u)}),t.watch(()=>o.diff,f=>{const m=o.listHeight;let h=f>0&&f<e.titleHeight?f-e.titleHeight:0;o.scrollY+i.value===m[m.length-1]&&h!==0&&(h=0),o.fixedTop!==h&&(o.fixedTop=h)}),t.watch(()=>o.currentIndex,f=>{n.emit("change",f)}),{classes:l,...t.toRefs(o),fixedStyle:r,clientHeight:i,setListGroup:c,listview:a,touchStart:d,touchMove:g,touchEnd:S,handleClickItem:b,handleClickIndex:y}}}),vy={class:"fox-elevator__list__item__code"},qy=["onClick"],Py=["innerHTML"],My={class:"fox-elevator__fixed-title"},Ly={class:"fox-elevator__bars__inner"},zy=["data-index","onClick"];function Oy(e,n,a,o,l,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,i=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:i[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",vy,t.toDisplayString(i[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.list,s=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===s.id&&e.currentKey===i[e.acceptKey]}]),key:s.id,onClick:c=>e.handleClickItem(i[e.acceptKey],s)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:1,item:s}):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:s.name},null,8,Py))],10,qy))),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",My,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]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:n[1]||(n[1]=t.withModifiers((...i)=>e.touchMove&&e.touchMove(...i),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[t.createElementVNode("view",Ly,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:i[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":s,key:i[e.acceptKey],onClick:c=>e.handleClickIndex(i[e.acceptKey])},t.toDisplayString(i[e.acceptKey]),11,zy))),128))])],32)],2)}const Kt=oe(xy,[["render",Oy]]),{componentName:w2,create:Fy,scope:Ry}=_("pagination"),Ky=Fy({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:a}=ie.useFoxI18n(Ry),o=a(e,["prevText","nextText"]),{modelValue:l,mode:r,showPageSize:i,forceEllipses:s}=t.toRefs(e),c=t.computed(()=>{const{pageCount:g,totalItems:S,itemsPerPage:b}=t.toRefs(e),y=+g.value||Math.ceil(+S.value/+b.value);return Math.max(1,y)}),u=(g,S)=>{g>c.value||g<1||(g!=l.value&&n("update:modelValue",g),S&&n("change",g))},p=(g,S,b=!1)=>({number:g,text:S,active:b}),d=t.computed(()=>{if(r.value=="simple")return;let g=[];const S=c.value,b=+i.value;let y=1,k=S;const f=S>b;f&&(y=Math.max(l.value-Math.floor(b/2),1),k=y+b-1,k>S&&(k=S,y=k-b+1));for(var m=y;m<=k;m++){const h=p(m,m,l.value==m);g.push(h)}if(f&&b>0&&s.value){if(y>1){const h=p(y-1,"...");g.unshift(h)}if(k<S){const h=p(k+1,"...");g.push(h)}}return g});return t.watchEffect(()=>{u(l.value,!1)}),{...o,modelValue:l,select:u,countRef:c,mode:r,pages:d,forceEllipses:s}}}),Uy={class:"fox-pagination"},Hy={key:0,class:"fox-pagination-contain"},jy=["onClick"],Wy={key:1,class:"fox-pagination-contain"},Yy={class:"fox-pagination-simple"};function Xy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Uy,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=i=>e.select(e.modelValue-1,!0))},[t.renderSlot(e.$slots,"prev-text",{},()=>[t.createTextVNode(t.toDisplayString(e.prevText),1)])],2),e.mode=="multi"?(t.openBlock(),t.createElementBlock("view",Hy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(i,s)=>(t.openBlock(),t.createElementBlock("view",{key:s+"pagination",class:t.normalizeClass(["fox-pagination-item",i.active?"active":""]),onClick:c=>e.select(i.number,!0)},[t.renderSlot(e.$slots,"page",{item:i},()=>[t.createTextVNode(t.toDisplayString(i.text),1)])],10,jy))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Wy,[t.createElementVNode("view",Yy,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]=i=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const Kl=oe(Ky,[["render",Xy]]),Qy=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),i=async()=>{r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{i()},100)});const s=t.reactive({offset:0,moving:!1}),c=tt();let u="";const p=(g,S)=>{let b=g;switch(e.direction=="horizontal"?(u=g>0?"right":"left",b=Math.abs(b)/r.value.width*100):(u=S>0?"bottom":"top",b=S,b=Math.abs(b)/r.value?.height*100),b>85&&(b=85),u){case"left":case"top":n.isEnd()&&(b=0,s.moving=!1);break;case"right":case"bottom":b=-b,n.isBegin()&&(b=0,s.moving=!1);break}s.offset=b};return{touchMethods:{onTouchStart(g){e.swipeable&&c.start(g)},onTouchMove(g){e.swipeable&&(c.move(g),s.moving=!0,p(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(g.preventDefault(),g.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(g.preventDefault(),g.stopPropagation()))},onTouchEnd(){if(s.moving)switch(s.moving=!1,u){case"left":case"top":s.offset>35&&n.next();break;case"right":case"bottom":s.offset<-35&&n.prev();break}}},touchState:s,tabsContentRef:l}};class Gy{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Zy}=_("tabs"),Jy=Zy({components:{[Rt.name]:Rt,JoySmile:le.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),i=E=>{E.forEach((D,P)=>{let K=D.type;if(K=K.name||K,K=="fox-tab-pane"){let V=new Gy;if(D.props?.title||D.props?.["pane-key"]||D.props?.paneKey){let I=at(D.props?.["pane-key"]),L=I=="number"||I=="string"?String(D.props?.["pane-key"]):null,x=at(D.props?.paneKey),W=x=="number"||x=="string"?String(D.props?.paneKey):null;V.title=D.props?.title,V.paneKey=L||W||String(P),V.disabled=D.props?.disabled}r.value.push(V)}else{if(D.children==" ")return;Array.isArray(D.children)&&i(D.children)}})},s=t.ref(e.modelValue||0),c=E=>{let D=r.value.findIndex(P=>P.paneKey==E);r.value.length==0||D==-1||(s.value=D)},u=t.computed(()=>e.titleScroll&&e.direction==="vertical"),p=t.ref(),d=t.ref([]),g=E=>{const D=p.value,P=d.value;if(!D||!P||!P[s.value])return;const K=P[s.value];let V=0;e.direction==="vertical"?V=K.offsetTop-D.offsetTop+10-(D.offsetHeight-K.offsetHeight)/2:V=K.offsetLeft-(D.offsetWidth-K.offsetWidth)/2,S(D,V,.3,e.direction)},S=(E,D,P,K)=>{let V=0;const I=K==="horizontal"?E.scrollLeft:E.scrollTop,L=Math.round(P*1e3/16);function x(){K==="horizontal"?E.scrollLeft+=(D-I)/L:E.scrollTop+=(D-I)/L,++V<L&&Ue(x)}x()},b=(E=a.default?.())=>{r.value=[],E=E?.filter(D=>typeof D.children!="string"),E&&E.length&&i(E),c(e.modelValue),t.nextTick(()=>{g()})},y=E=>{l=E.fixed};t.watch(()=>a.default?.(),E=>{b(E)});const k=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,E=>{if(c(E),g(),l){let D=qe(o.value).top+k(),P=Math.ceil(D-e.top);window.scrollTo({top:P,behavior:"smooth"})}}),t.onMounted(b),t.onActivated(b);const f={isBegin:()=>s.value==0,isEnd:()=>s.value==r.value.length-1,next:()=>{s.value+=1,f.updateValue(r.value[s.value])},prev:()=>{s.value-=1,f.updateValue(r.value[s.value])},updateValue:E=>{n("update:modelValue",E.paneKey),n("change",E)},tabChange:(E,D)=>{n("click",E),!(E.disabled||s.value==D)&&(s.value=D,f.updateValue(E))},setTabItemRef:(E,D)=>{d.value[D]=E}},{tabsContentRef:m,touchState:h,touchMethods:C}=Qy(e,f),A=t.computed(()=>{let E=s.value*100;h.moving&&(E+=h.offset);let D={transform:e.direction=="horizontal"?`translate3d(-${E}%, 0, 0)`:`translate3d( 0,-${E}%, 0)`,transitionDuration:h.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(D={}),D}),w=t.computed(()=>({background:e.background})),N=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),T=t.computed(()=>{if(!e.titleGutter)return{};const E=ge(e.titleGutter);return e.direction==="vertical"?{marginTop:E,marginBottom:E}:{marginLeft:E,marginRight:E}}),$=t.computed(()=>a.fixedTitle);return{navRef:p,tabsContentRef:m,titles:r,contentStyle:A,tabsNavStyle:w,titleStyle:T,tabsActiveStyle:N,container:o,getScrollY:u,onStickyScroll:y,...f,...C,hasFixedTitle:$}}}),_y=["onClick"],e0={key:0,class:"fox-tabs__titles-fixed-item"},t0=["onClick"],n0={key:0,class:"fox-tabs__titles-fixed-item"};function o0(e,n,a,o,l,r){const i=t.resolveComponent("JoySmile"),s=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(s,{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:p=>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(i,{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,_y))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",e0,[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:p=>e.tabChange(c,u),key:c.paneKey,ref_for:!0,ref:p=>e.setTabItemRef(p,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(i,{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,t0))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",n0,[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 Ul=oe(Jy,[["render",o0]]),{create:l0}=_("tab-pane"),a0=l0({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=t.inject("tabsOpiton"),o=t.computed(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:o}}});function r0(e,n,a,o,l,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 Hl=oe(a0,[["render",r0]]),{componentName:Ms,create:s0}=_("indicator"),i0=s0({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:a}=t.toRefs(e);return{classes:t.computed(()=>{const l=Ms;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Ms,padZero:st}}});function c0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,i=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i},[i===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(i)||i),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const jl=oe(i0,[["render",c0]]),{componentName:d0,create:u0}=_("side-navbar"),f0=u0({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=t.ref(null),a=t.reactive({count:1,observer:null}),o=t.computed(()=>({[d0]:!0})),l=(i,s=1)=>{for(let c=0;c<i.length;c++){let u=i[c];u?.children?.[0]&&(u.children[0].style.paddingLeft=+e.offset*s+"px",u.className.includes("fox-side-navbar-item")||l(Array.from(u.children[1].children),++a.count))}a.count--},r=()=>{let i=n.value.childNodes;i.length&&(i=Array.from(i).filter(s=>s.nodeType!==3).map(s=>s),l(i))};return t.onMounted(()=>{r(),a.observer=new MutationObserver(function(){a.count=1,r()}),a.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(a),list:n,classes:o}}}),m0={class:"fox-side-navbar__content"},p0={class:"fox-side-navbar__content__list",ref:"list"};function h0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",m0,[t.createElementVNode("view",p0,[t.renderSlot(e.$slots,"default")],512)])],2)}const Wl=oe(f0,[["render",h0]]),{componentName:g0,create:y0}=_("side-navbar-item"),b0=y0({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[g0]:!0})),handleClick:()=>{n.emit("click")}})}),k0=["ikey"],S0={class:"fox-side-navbar-item__title"};function C0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...i)=>e.handleClick&&e.handleClick(...i),["stop"])),ikey:e.ikey},[t.createElementVNode("span",S0,t.toDisplayString(e.title),1)],10,k0)}const Yl=oe(b0,[["render",C0]]),{componentName:w0,create:N0}=_("sub-side-navbar"),B0=N0({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:le.ArrowDown2,ArrowUp2:le.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=t.reactive({direction:""}),o=t.computed(()=>({[w0]:!0})),l=t.computed(()=>({height:a.direction?"0px":"auto"})),r=()=>{n.emit("title-click"),a.direction=a.direction?"":"up"};return t.onMounted(()=>{a.direction=e.open?"":"up"}),{...t.toRefs(a),classes:o,style:l,handleClick:r}}}),A0=["ikey"],T0={class:"fox-sub-side-navbar__title__text"},$0={class:"fox-sub-side-navbar__title__icon"};function V0(e,n,a,o,l,r){const i=t.resolveComponent("ArrowDown2"),s=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",T0,t.toDisplayString(e.title),1),t.createElementVNode("span",$0,[e.direction?(t.openBlock(),t.createBlock(s,{key:1})):(t.openBlock(),t.createBlock(i,{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,A0)}const Xl=oe(B0,[["render",V0]]),{componentName:E0,create:D0}=_("range"),I0=D0({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const a=t.ref(0);let o,l;const r=t.ref(),i=t.ref(),s=tt(),c=t.computed(()=>{const{marks:V,max:I,min:L}=e;return Object.keys(V).map(parseFloat).sort((j,O)=>j-O).filter(j=>j>=L&&j<=I)}),u=t.computed(()=>Number(e.max)-Number(e.min)),p=t.computed(()=>{const V=E0;return{[V]:!0,[`${V}-disabled`]:e.disabled,[`${V}-vertical`]:e.vertical,[`${V}-show-number`]:!e.hiddenRange}}),d=t.computed(()=>{const V="fox-range-container";return{[V]:!0,[`${V}-vertical`]:e.vertical}}),g=t.computed(()=>({background:e.inactiveColor})),S=t.computed(()=>({borderColor:e.buttonColor})),b=V=>!!e.range&&Array.isArray(V),y=()=>{const{modelValue:V,min:I}=e;return b(V)?`${(V[1]-V[0])*100/u.value}%`:`${(V-Number(I))*100/u.value}%`},k=()=>{const{modelValue:V,min:I}=e;return b(V)?`${(V[0]-Number(I))*100/u.value}%`:"0%"},f=t.computed(()=>e.vertical?{height:y(),top:k(),background:e.activeColor,transition:i.value?"none":void 0}:{width:y(),left:k(),background:e.activeColor,transition:i.value?"none":void 0}),m=V=>{const I="fox-range-mark",{modelValue:L,max:x,min:W}=e;let j=Number(W),O=Number(x);if(e.range){const[H,q]=L;j=H,O=q}else O=L;let ee=V<=O&&V>=j;return{[`${I}-text`]:!0,[`${I}-text-active`]:ee}},h=V=>{const{min:I,vertical:L}=e;let x={left:`${(V-Number(I))/u.value*100}%`};return L&&(x={top:`${(V-Number(I))/u.value*100}%`}),x},C=V=>{const{modelValue:I,max:L,min:x}=e;let W=Number(x),j=Number(L);if(e.range){const[H,q]=I;W=H,j=q}return{background:V<=j&&V>=W?e.activeColor:e.inactiveColor}},A=V=>{const{min:I,max:L,step:x}=e;return V=Math.max(+I,Math.min(V,+L)),Math.round(V/+x)*+x},w=(V,I)=>JSON.stringify(V)===JSON.stringify(I),N=V=>V[0]>V[1]?V.slice(0).reverse():V,T=(V,I)=>{b(V)?V=N(V).map(A):V=A(V),w(V,e.modelValue)||n("update:modelValue",V),I&&!w(V,o)&&n("change",V)},$=V=>{if(e.disabled)return;const{min:I,modelValue:L}=e,x=qe(r);let W=V.clientX-x.left,j=x.width;e.vertical&&(W=V.clientY-x.top,j=x.height);const O=Number(I)+W/j*u.value;if(b(L)){const[ee,H]=L,q=(ee+H)/2;O<=q?T([O,H],!0):T([ee,O],!0)}else T(O,!0)},E=V=>{e.disabled||(s.start(V),l=e.modelValue,b(l)?o=l.map(A):o=A(l),i.value="start")},D=V=>{if(e.disabled)return;i.value==="start"&&n("drag-start"),s.move(V),i.value="draging";const I=qe(r);let L=s.deltaX.value,x=I.width,W=L/x*u.value;e.vertical&&(L=s.deltaY.value,x=I.height,W=L/x*u.value),b(o)?l[a.value]=o[a.value]+W:l=o+W,T(l),V.stopPropagation(),V.preventDefault()},P=()=>{e.disabled||(i.value==="draging"&&(T(l,!0),n("drag-end")),i.value="")},K=V=>ln(e.modelValue)&&typeof V=="number"?e.modelValue[V]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:g,buttonStyle:S,onClick:$,onTouchStart:E,onTouchMove:D,onTouchEnd:P,...t.toRefs(e),barStyle:f,curValue:K,buttonIndex:a,containerClasses:d,markClassName:m,marksStyle:h,marksList:c,tickStyle:C}}}),x0={key:0,class:"fox-range-min"},v0={key:0,class:"fox-range-mark"},q0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],P0={key:0,class:"number"},M0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],L0={key:0,class:"number"},z0={key:1,class:"fox-range-max"};function O0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",x0,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((...i)=>e.onClick&&e.onClick(...i),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",v0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,i=>(t.openBlock(),t.createElementBlock("span",{key:i,class:t.normalizeClass(e.markClassName(i)),style:t.normalizeStyle(e.marksStyle(i))},[t.createTextVNode(t.toDisplayString(i)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(i))},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],i=>t.createElementVNode("view",{key:i,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":i==0,"fox-range-button-wrapper-right":i==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(i),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(s=>{typeof i=="number"&&(e.buttonIndex=i),e.onTouchStart(s)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:n[1]||(n[1]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:n[3]||(n[3]=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",P0,t.toDisplayString(e.curValue(i)),1))],4))],42,q0)),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(i=>{e.onTouchStart(i)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:n[6]||(n[6]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:n[8]||(n[8]=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",L0,t.toDisplayString(e.curValue()),1))],4))],40,M0))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",z0,t.toDisplayString(+e.max),1))],2)}const Ut=oe(I0,[["render",O0]]),{create:F0,scope:R0}=_("short-password"),K0=F0({components:{[me.name]:me,Tips:le.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:a}=ie.useFoxI18n(R0),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>u(Number(e.length))),i=t.ref(e.visible),s=d=>{d.stopPropagation(),n("focus")};t.watch(()=>e.visible,d=>{i.value=d}),t.watch(()=>e.modelValue,d=>{l.value=d,String(d).length===r.value&&n("complete",d)});const c=()=>{n("update:visible",!1),n("close")},u=d=>Math.min(Math.max(4,d),6);return{comLen:r,realInput:l,onTouchStart:s,range:u,close:c,onTips:()=>{n("tips")},show:i,...o}}}),U0={class:"fox-short-password-title"},H0={class:"fox-short-password-subtitle"},j0={class:"fox-short-password-wrapper"},W0={key:0,class:"fox-short-password__item-icon"},Y0={class:"fox-short-password__message"},X0={class:"fox-short-password--error"},Q0={key:0,class:"fox-short-password--forget"};function G0(e,n,a,o,l,r){const i=t.resolveComponent("Tips"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(s,{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",U0,t.toDisplayString(e.title),1),t.createElementVNode("view",H0,t.toDisplayString(e.desc),1),t.createElementVNode("div",j0,[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",W0)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",Y0,[t.createElementVNode("view",X0,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",Q0,[t.createVNode(i,{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 Ql=oe(K0,[["render",G0]]);class Z0{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let J0=class{options;constructor(n){this.options=n}upload(){const n=this.options,a=new XMLHttpRequest;if(a.timeout=n.timeout,a.upload){a.upload.addEventListener("progress",o=>{n.onProgress?.(o,n)},!1),a.onreadystatechange=()=>{a.readyState===4&&(a.status==n.xhrState?n.onSuccess?.(a.responseText,n):n.onFailure?.(a.responseText,n))},a.withCredentials=n.withCredentials,a.open(n.method,n.url,!0);for(const[o,l]of Object.entries(n.headers))a.setRequestHeader(o,l);n.onStart?.(n),n.beforeXhrUpload?n.beforeXhrUpload(a,n):a.send(n.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}};class _0{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const Ls=(e,{args:n=[],done:a,canceled:o})=>{if(e){const l=e.apply(null,n);mt(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:eb}=_("progress"),tb=eb({components:{Checked:le.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,a=t.ref(e.strokeWidth+"px"),o=t.ref(),l=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),i=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),s=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:a,percentage:r,bgStyle:i,textStyle:s,progressOuter:o,insideText:l,slotDefault:n}}}),nb={class:"fox-progress"},ob={key:0,class:"fox-progress-text"};function lb(e,n,a,o,l,r){const i=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",nb,[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",ob,[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(i,{width:"15px",height:"15px",color:"#439422"})]):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const Ht=oe(tb,[["render",lb]]),{componentName:ab,create:rb,scope:sb}=_("uploader"),ib=rb({components:{[Ht.name]:Ht,Photograph:le.Photograph,Failure:le.Failure,Loading:le.Loading,Del:le.Del,Link:le.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(sb),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[ab]:!0})),i=()=>{let m={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(m.capture="camera"),t.h("input",m)},s=m=>{m.value=""},c=m=>{n("file-item-click",{fileItem:m})},u=(m,h)=>{const C=new Z0;C.url=e.url,C.formData=m.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=m.formData.get(e.name)}catch{}C.onStart=w=>{m.status="ready",m.message=a("readyUpload"),p(h),n("start",w)},C.onProgress=(w,N)=>{m.status="uploading",m.message=a("uploading"),m.percentage=(w.loaded/w.total*100).toFixed(0),n("progress",{event:w,option:N,percentage:m.percentage})},C.onSuccess=(w,N)=>{m.status="success",m.message=a("success"),n("success",{responseText:w,option:N,fileItem:m}),n("update:fileList",o)},C.onFailure=(w,N)=>{m.status="error",m.message=a("error"),n("failure",{responseText:w,option:N,fileItem:m})};let A=new J0(C);e.autoUpload?A.upload():l.push(new Promise((w,N)=>{w(A)}))},p=(m=-1)=>{m>-1?l.splice(m,1):(l=[],o.splice(0,o.length))},d=()=>{Promise.all(l).then(m=>{m.forEach(h=>h.upload())})},g=m=>{m.forEach((h,C)=>{const A=new FormData;for(const[N,T]of Object.entries(e.data))A.append(N,T);A.append(e.name,h);const w=t.reactive(new _0);if(w.name=h.name,w.status="ready",w.type=h.type,w.formData=A,w.message=a("waitingUpload"),u(w,C),e.isPreview&&h.type.includes("image")){const N=new FileReader;N.onload=T=>{w.url=T.target.result,o.push(w)},N.readAsDataURL(h)}else o.push(w)})},S=m=>{const h=e.maximum*1,C=e.maximize*1,A=new Array;m=m.filter(N=>N.size>C?(A.push(N),!1):!0),A.length&&n("oversize",A);let w=m.length+o.length;return w>h&&m.splice(m.length-(w-h)),m},b=(m,h)=>{o.splice(h,1),n("delete",{file:m,fileList:o,index:h})},y=(m,h)=>{p(h),Ls(e.beforeDelete,{args:[m,o],done:()=>b(m,h)})},k=m=>{if(e.disabled)return;const h=m.target;let{files:C}=h;e.beforeUpload?e.beforeUpload(C).then(A=>f(A)):f(C),n("change",{fileList:o,event:m}),e.clearInput&&s(h)},f=m=>{const h=S(new Array().slice.call(m));g(h)};return{onChange:k,onDelete:y,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:p,submit:d,renderInput:i}}}),cb={key:0,class:"fox-uploader__slot"},db={key:0,class:"fox-uploader__preview-img"},ub={key:0,class:"fox-uploader__preview__progress"},fb={class:"fox-uploader__preview__progress__msg"},mb=["onClick"],pb=["onClick","src"],hb={key:3,class:"fox-uploader__preview-img__file"},gb=["onClick"],yb={class:"file__name_tips"},bb={class:"tips"},kb={key:1,class:"fox-uploader__preview-list"},Sb=["onClick"],Cb={class:"file__name_tips"};function wb(e,n,a,o,l,r){const i=t.resolveComponent("Failure"),s=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),u=t.resolveComponent("Del"),p=t.resolveComponent("fox-progress"),d=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",cb,[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,(g,S)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:g.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",db,[g.status!="success"?(t.openBlock(),t.createElementBlock("view",ub,[g.status!="ready"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[g.status=="error"?(t.openBlock(),t.createBlock(i,{key:0,color:"#fff"})):(t.openBlock(),t.createBlock(s,{key:1,name:"loading",color:"#fff"}))],64)):t.createCommentVNode("",!0),t.createElementVNode("view",fb,t.toDisplayString(g.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:b=>e.onDelete(g,S)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(i)])],8,mb)):t.createCommentVNode("",!0),g?.type?.includes("image")&&g.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:b=>e.fileItemClick(g),src:g.url},null,8,pb)):(t.openBlock(),t.createElementBlock("view",hb,[t.createElementVNode("view",{onClick:b=>e.fileItemClick(g),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",yb,t.toDisplayString(g.name),1)],8,gb)])),t.createElementVNode("view",bb,t.toDisplayString(g.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",kb,[t.createElementVNode("view",{onClick:b=>e.fileItemClick(g),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[g.status]])},[t.createVNode(c,{class:"fox-uploader__preview-img__file__link"}),t.createElementVNode("view",Cb,t.toDisplayString(g.name),1),e.isDeletable?(t.openBlock(),t.createBlock(u,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:b=>e.onDelete(g,S)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,Sb),g.status=="uploading"?(t.openBlock(),t.createBlock(p,{key:0,size:"small",percentage:g.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(d,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const Gl=oe(ib,[["render",wb]]),Nb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDozOUNBQTQ0M0Y3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCI+IDx4bXBNTTpEZXJpdmVkRnJvbSBzdFJlZjppbnN0YW5jZUlEPSJ4b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4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:Ab,scope:Tb}=_("number-keyboard"),$b=Ab({components:{[me.name]:me},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:a}=ie.useFoxI18n(Tb),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),i=t.ref();function s(){const{customKey:f}=e;let m={id:"lock",type:"lock"},h=Array.isArray(f)?f:[f];return h.length===1&&(m={id:h[0],type:"custom"}),[...c(),m,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const f=[];for(let m=1;m<=9;m++)f.push({id:m,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function u(){const f=c(),{customKey:m}=e;let h=Array.isArray(m)?m:[m];return h.length>2&&(h=[h[0],h[1]]),h.length==2&&e.title&&e.type!="rightColumn"&&(h=[h[0]]),h.length===1?e.title&&e.type!="rightColumn"?f.push({id:h[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:h[0],type:"custom"}):h.length===2&&f.push({id:h[0],type:"custom"},{id:0,type:"number"},{id:h[1],type:"custom"}),f}const p=t.computed(()=>e.type=="rightColumn"||e.title!=""?u():s()),d=()=>{e.visible&&n("blur")},g=f=>{const m=i.value;m&&!m.contains(f.target)&&d()};t.watch(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",g,!1):window.removeEventListener("touchstart",g,!1)});function S(f,m){m.stopPropagation(),l.value=f.id,(f.type=="number"||f.type=="custom")&&(n("input",f.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+f.id)),f.type=="lock"&&k(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function b(f){f.stopPropagation()}function y(f){f.preventDefault(),l.value=void 0}function k(){n("update:visible",!1),n("close")}return{...o,delImg:Nb,lockImg:Bb,clickKeyIndex:l,defaultKey:s,closeBoard:k,onTouchEnd:y,onTouchMove:b,onTouchstart:S,keysList:p,genCustomKeys:u,getBasicKeys:c,root:i,show:r}}}),Vb={ref:"root"},Eb={class:"fox-number-keyboard"},Db={key:0,class:"fox-number-keyboard__header"},Ib={class:"fox-number-keyboard__title"},xb={class:"fox-number-keyboard__body"},vb={class:"fox-number-keyboard__keys"},qb=["onTouchstart"],Pb=["src"],Mb=["src"],Lb={key:0,class:"fox-number-keyboard__sidebar"},zb={class:"fox-key__wrapper"},Ob=["src"];function Fb(e,n,a,o,l,r){const i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",Vb,[t.createVNode(i,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=s=>e.show=s),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",Eb,[e.title?(t.openBlock(),t.createElementBlock("div",Db,[t.createElementVNode("h3",Ib,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]=s=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",xb,[t.createElementVNode("div",vb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,s=>(t.openBlock(),t.createElementBlock("div",{key:"key"+s.id,class:t.normalizeClass(["fox-key__wrapper",{"fox-key__wrapper--wider":s.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{"fox-key--active":s.id==e.clickKeyIndex},{"fox-key--lock":s.type=="lock"},{"fox-key--delete":s.type=="delete"}]),onTouchstart:c=>e.onTouchstart(s,c),onTouchmove:n[1]||(n[1]=c=>e.onTouchMove(c)),onTouchend:n[2]||(n[2]=c=>e.onTouchEnd(c))},[s.type=="number"||s.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(s.id),1)],64)):t.createCommentVNode("",!0),s.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,Pb)):t.createCommentVNode("",!0),s.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,Mb)):t.createCommentVNode("",!0)],42,qb)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",Lb,[t.createElementVNode("div",zb,[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=s=>e.onTouchstart({id:"delete",type:"delete"},s)),onTouchmove:n[4]||(n[4]=s=>e.onTouchMove(s)),onTouchend:n[5]||(n[5]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("img",{src:e.delImg},null,8,Ob)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[6]=s=>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 Zl=oe($b,[["render",Fb]]),{componentName:Rb,create:Kb}=_("swipe"),Ub=Kb({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 a=t.computed(()=>({[Rb]:!0})),o=m=>m.value?.clientWidth||0,l=t.ref(),r=t.computed(()=>o(l)),i=t.ref(),s=t.computed(()=>o(i));let c=!1,u="",p="";const d=t.reactive({offset:0,moving:!1}),g=(m="")=>{c=!0,m&&(d.offset=m==="left"?-s.value:r.value),n("open",{name:e.name,position:u||m})},S=()=>{d.offset=0,c=!1,n("close",{name:e.name,position:u})},b=t.computed(()=>({transform:`translate3d(${d.offset}px, 0, 0)`})),y=m=>{u=m>0?"right":"left";let h=m;switch(u){case"left":c&&p===u?h=-s.value:h=Math.abs(m)>s.value?-s.value:m;break;case"right":c&&p===u?h=r.value:h=Math.abs(m)>r.value?r.value:m;break}d.offset=h},k=tt();return{classes:a,touchStyle:b,...{onTouchStart(m){e.disabled||k.start(m)},onTouchMove(m){e.disabled||(k.move(m),k.isHorizontal()&&(d.moving=!0,y(k.deltaX.value),e.touchMovePreventDefault&&m.preventDefault(),e.touchMoveStopPropagation&&m.stopPropagation()))},onTouchEnd(){if(d.moving)switch(d.moving=!1,p=u,u){case"left":Math.abs(d.offset)<=s.value/2?S():(d.offset=-s.value,g());break;case"right":Math.abs(d.offset)<=r.value/2?S():(d.offset=r.value,g());break}}},leftRef:l,rightRef:i,open:g,close:S}}}),Hb={class:"fox-swipe__left",ref:"leftRef"},jb={class:"fox-swipe__content"},Wb={class:"fox-swipe__right",ref:"rightRef"};function Yb(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("view",Hb,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",jb,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Wb,[t.renderSlot(e.$slots,"right")],512)],38)}const jt=oe(Ub,[["render",Yb]]),{componentName:Xb,create:Qb}=_("action-sheet"),Gb=Qb({components:{[me.name]:me,Loading:le.Loading},props:{...Fe,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 a=!!t.useSlots().default,o=t.computed(()=>({[Xb]:!0}));return{slotDefault:a,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}}}),Zb={key:0,class:"fox-action-sheet__title"},Jb={key:1},_b={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},ek={key:1,class:"fox-action-sheet__menu"},tk=["onClick"],nk={key:1},ok={class:"fox-action-sheet__subdesc"};function lk(e,n,a,o,l,r){const i=t.resolveComponent("Loading"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{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",Zb,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Jb,[e.description?(t.openBlock(),t.createElementBlock("view",_b,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",ek,[(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:p=>e.chooseItem(c,u)},[c.loading?(t.openBlock(),t.createBlock(i,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",nk,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",ok,t.toDisplayString(c[e.optionSubTag]),1)],14,tk))),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 Jl=oe(Gb,[["render",lk]]),{componentName:ak,create:rk}=_("backtop"),_l=rk({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:a}){const o=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),l=t.computed(()=>({[ak]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function i(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function s(b=0){o.scrollEl instanceof Window?window.scrollTo(0,b):o.scrollEl.scrollTop=b}function c(){let b=Qe(function y(){var k=e.duration-Math.max(0,o.startTime-+new Date+e.duration),f=k*-o.scrollTop/e.duration+o.scrollTop;s(f),b=Qe(y),(k==e.duration||f==0)&&Ka(b)})}function u(){o.scrollEl.addEventListener("scroll",i,!1),o.scrollEl.addEventListener("resize",i,!1)}function p(){o.scrollEl.removeEventListener("scroll",i,!1),o.scrollEl.removeEventListener("resize",i,!1)}function d(b){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():s(),n("click",b)}function g(){S.value?o.scrollEl=S.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),u()}t.onMounted(()=>{e.distance==0&&(o.backTop=!0),g()}),t.onUnmounted(()=>{p()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,g())}),t.onDeactivated(()=>{o.keepAlive=!0,p()});const S=t.computed(()=>{if(typeof a.content=="function"){const b=a.content();return Array.isArray(b)?b[0]:b}return null});return()=>{const b=[];S.value&&b.push(S.value);const y=[];if(typeof a.default=="function")y.push(a.default());else{const f=t.h(le.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});y.push(f)}const k=t.h("div",{class:l.value,style:r.value,onClick:d},y);return b.push(k),b}}}),{componentName:sk,create:ik}=_("drag"),ck=ik({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const a=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}}),l=t.computed(()=>({[sk]:!0}));function r(){const d=document.documentElement;o.elWidth=a.value.offsetWidth,o.elHeight=a.value.offsetHeight,o.screenWidth=d.clientWidth,o.screenHeight=d.clientHeight}function i(d){o.boundary.left?+d.style.left.split("px")[0]>o.boundary.left?(d.style.left=+d.style.left.split("px")[0]-10+"px",Ue(()=>{i(d)})):d.style.left=`${o.boundary.left}px`:+d.style.left.split("px")[0]>10?(d.style.left=+d.style.left.split("px")[0]-10+"px",Ue(()=>{i(d)})):d.style.left="0px"}function s(d,g){g-parseInt(d.style.left.split("px")[0])>10?(d.style.left=parseInt(d.style.left.split("px")[0])+10+"px",Ue(()=>{s(d,g)})):d.style.left=g+"px"}function c(d){d.preventDefault();const g=d.currentTarget;if(d.targetTouches.length===1){const S=d.targetTouches[0];o.nx=S.clientX-o.position.x,o.ny=S.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const b=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>b?o.xPum=b: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"&&(g.style.left=o.xPum+"px"),e.direction!="x"&&(g.style.top=o.yPum+"px")}}function u(d){const g=d.currentTarget;let b=d.changedTouches[0].clientX;const y=o.screenWidth-o.elWidth-o.boundary.right;b>y?b=y:b<o.boundary.left?b=o.boundary.left:b=b<o.screenWidth/2?o.boundary.left:y,e.direction!="y"&&e.attract&&(b<o.screenWidth/2?Ue(()=>{i(g)}):Ue(()=>{s(g,y)})),e.direction!="x"&&(g.style.top=o.yPum+"px")}function p(d){const g=d.currentTarget,S=d.touches[0],b=d.targetTouches[0];o.startTop=g.offsetTop,o.startLeft=g.offsetLeft,o.position.x=S.clientX,o.position.y=S.clientY,o.nx=b.clientX-o.position.x,o.ny=b.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 d=a;d.value.removeEventListener("touchstart",p),d.value.removeEventListener("touchmove",c),d.value.removeEventListener("touchend",u)}),{classes:l,myDrag:a,touchStart:p,touchMove:c,touchEnd:u}}});function dk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=i=>e.touchStart(i)),onTouchmove:n[1]||(n[1]=i=>e.touchMove(i)),onTouchend:n[2]||(n[2]=i=>e.touchEnd(i))},[t.renderSlot(e.$slots,"default")],34)}const ea=oe(ck,[["render",dk]]),uk={width:{type:[String,Number]},height:{type:[String,Number]},plain:{type:[Boolean]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},showClose:{type:Boolean,default:!1},closeIcon:{type:Object},content:{type:[String,Object]},showFooter:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},cancelButtonText:{type:String},cancelText:{type:String},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},confirmButtonText:{type:String},confirmText:{type:String},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},footerDirection:{type:String,default:"horizontal"},popClass:{type:String},popStyle:{type:Object},beforeClose:{type:Function}},fk=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function mk(e,n,a,o,l){return{props:{...Fe,...uk},setup(r,{attrs:i,slots:s,emit:c}){const{toLocaleRefs:u}=ie.useFoxI18n(n),p=u(r,["confirmText","cancelText"]),d=e,g=t.ref(r.visible);t.watch(()=>r.visible,w=>{g.value!==w&&(g.value=w,w&&c("opened"))});const S=w=>{g.value=w,c("update:visible",w),c("update",w)},b=w=>{if(c(w),!(w==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const N=r.beforeClose(w);mt(N)?N.then(T=>{T&&(S(!1),c("closed",w))}):N===!0&&(S(!1),c("closed",w))}else S(!1),c("closed",w)},y=()=>{b("confirm")},k=()=>{b("cancel")},f=()=>{b("close")},m=(w,N)=>fk(w)?(N.src=w,t.h("img",N)):typeof w=="string"?(Array.isArray(N.class)?N.class.push(w):N.class&&typeof N.class=="object"?N[`${w}`]=!0:typeof N.class=="string"?N.class=`${N.class}, ${w}`:N.class=w,t.h(r.tag,N)):t.h(w,N),h=()=>{const w=[];if(s.header){const T=s.header();w.push(T)}else{if(r.title){const T=t.h("view",{class:`${d}__header-title`},[r.title]);w.push(T)}if(r.showClose){const T={class:[`${d}__header-close-icon`],onClick:f},$=r.closeIcon??l,E=m($,T);w.push(E)}}if(w.length===0)return null;const N={class:[`${d}__header`]};return t.h("view",N,w)},C=()=>{const w=[];if(s.default)w.push(s.default());else{const T={class:[`${d}__content`]};if(r.textAlign&&T.class.push(r.textAlign),typeof r.content=="string"){T.innerHTML=r.content;const $=t.h("view",T);w.push($)}else if(typeof r.content=="function"){const $=t.h("view",T,[r.content()]);w.push($)}else{const $=t.h("view",T,[r.content]);w.push($)}}if(w.length===0)return null;const N={class:[`${d}__body`]};return t.h("view",N,w)},A=()=>{if(!r.showFooter)return null;const w=[];if(s.footer)w.push(s.footer());else if(r.plain){if(r.showCancelButton){const T={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},onClick:k};r.cancelButtonClass&&T.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(T.style,r.cancleButtonStyle);const $=t.h("view",T,[r.cancelButtonText??p.cancelText.value]);w.push($)}if(r.showConfirmButton){const T={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},onClick:y};r.confirmButtonClass&&T.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(T.style,r.confirmButtonStyle);const $=t.h("view",T,[r.confirmButtonText??p.confirmText.value]);w.push($)}}else{if(r.showCancelButton){const T={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:k};r.cancelButtonClass&&T.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(T.style,r.cancleButtonStyle);const $=t.h(o,T,{default:()=>[r.cancelButtonText??p.cancelText.value]});w.push($)}if(r.showConfirmButton){const T={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:y};r.confirmButtonClass&&T.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(T.style,r.confirmButtonStyle);const $=t.h(o,T,{default:()=>[r.confirmButtonText??p.confirmText.value]});w.push($)}}if(w.length===0)return null;const N={class:[`${d}__footer`,`${d}__footer--${r.footerDirection}`]};return t.h("view",N,w)};return()=>{const w=[],N=h();N&&w.push(N);const T=C();T&&w.push(T);const $=A();$&&w.push($);const E={class:{[`${d}`]:!0,[`${d}--plain`]:r.plain}},D=t.h("view",E,w),P=[`${d}__popup`];r.popClass&&P.push(r.popClass);const K={};r.width&&(K.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(K.height=typeof r.height=="number"?`${r.height}px`:r.height);const I={...Se(r,Fe),popClass:P.join(" "),style:K,visible:g.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":S,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,I,{default:()=>D})}}}}const{componentName:pk,create:hk,scope:gk}=_("dialog"),zs=hk(mk(pk,gk,me,ze,le.Close));class yk{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 bk{options=new yk;constructor(n){let a=Object.assign(this.options,n),o=document.body,l=a.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=a.teleport);const r=document.createElement("view"),i=`dialog-${a.id}`;r.id=i;const s={setup(){return a.onUpdate=u=>{if(u===!1){const p=document.querySelector(`#${i}`);p&&p.parentNode?.removeChild(p)}},a?.onOpened&&a?.onOpened(),()=>t.h(zs,a)}},c=t.createVNode(s);o.appendChild(r),t.render(c,r)}}const Wt=function(e){return new bk(e)};Wt.install=e=>{e.use(zs),e.config.globalProperties.$dialog=Wt};const kk={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}},Sk=(e,n,a)=>({props:{...kk},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:i}=ie.useFoxI18n(n),s=i(o,["pullingText","loosingText","loadingText"]),c=jo(),u=t.ref(),p=Bs(u),d=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),g=t.computed(()=>({[e]:!0})),S=t.computed(()=>{switch(d.status){case"pulling":return r.pulling?"":s.pullingText.value;case"loosing":return r.loosing?"":s.loosingText.value;case"loading":return r.loading?"":s.loadingText.value;default:return""}}),b=t.computed(()=>({transitionDuration:`${o.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),y=t.computed(()=>{const N={};return o.headHeight!=50&&(N.height=ge(o.headHeight)),N}),k=N=>{const T=+(o.pullDistance||o.headHeight);let $=N;return N>T&&(N<T*2?$=(N+T)/2:$=T+N/4),Math.round($)},f=(N,T)=>{const $=+(o.pullDistance||o.headHeight);d.distance=N,T?d.status="loading":N===0?d.status="normal":N<$?d.status="pulling":d.status="loosing",l("change",{status:d.status,distance:N})},m=()=>d.status!=="loading"&&d.status!=="complete",h=()=>p.value==window?As()==0:p.value&&p.value.scrollTop==0,C=N=>{m()&&(h()?(c.start(N),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},A=N=>{m()&&d.moving&&(c.move(N),c.isVertical()&&c.state.deltaY>0&&d.isPullRefresh&&(N.cancelable&&N.preventDefault(),f(k(c.state.deltaY))))},w=()=>{d.moving=!1,d.isPullRefresh&&m()&&c.state.deltaY&&(d.status==="loosing"?(f(+o.headHeight,!0),l("update:modelValue",!0),t.nextTick(()=>l("refresh"))):f(0)),setTimeout(()=>{c.reset()},0)};return t.watch(()=>o.modelValue,N=>{N?f(+o.headHeight,!0):f(0)}),()=>{const N=[];let T=null;if(d.status==="loading"){if(T=r?.loading?.()??null,!T){const L={class:["fox-pull-refresh-container-topbox-icon"]};T=t.h(a,L)}}else d.status==="pulling"?T=r?.pulling?.()??null:d.status==="loosing"&&(T=r?.loosing?.()??null);T&&N.push(T);const $={class:["fox-pull-refresh-container-topbox-text"]},E=t.h("dive",$,[S.value]);N.push(E);const D={class:["fox-pull-refresh-container-topbox"],style:y.value},P=t.h("div",D,N),K={class:"fox-pull-refresh-container",style:b.value},V=t.h("div",K,[P,r?.default?.()]),I={ref:u,class:g.value};return Ho()?Object.assign(I,{onTouchstart:C,onTouchmove:A,onTouchend:w}):Object.assign(I,{onMousedown:C,onMousemove:A,onMouseup:w}),t.h("div",I,[V])}}}),{componentName:Ck,create:wk,scope:Nk}=_("pull-refresh"),ta=wk(Sk(Ck,Nk,le.Loading)),{create:Bk}=_("notify"),Ak=Bk({components:{[me.name]:me},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const a=()=>{e.onClick&&e.onClick()};let o=null;const l=()=>{o&&clearTimeout(o),o=null},r=()=>{n("update:visible",!1)},i=t.ref(!1),s=t.watch(()=>e.visible,u=>{i.value=e.visible;const p=e.duration;u&&p&&(o=setTimeout(()=>{r()},p))},{immediate:!0});return{onAfterLeave:()=>{l(),s&&s(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:i}}});function Tk(e,n,a,o,l,r){const i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.isShowPopup=s),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]=(...s)=>e.clickCover&&e.clickCover(...s))},[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 na=oe(Ak,[["render",Tk]]),oa={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let At=[],Yt=[];const Os=e=>{if(e){const n=document.getElementById(e);Yt=Yt.filter(a=>a.id!==e),At=At.filter(a=>a!==e),n&&document.body.removeChild(n)}else At.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Yt=[],At=[]},$k=e=>{const n=document.getElementById(e.id);if(n){const a=Yt.find(l=>l.id===e.id);a?e={...oa,...a,...e}:e={...oa,...e};const o=t.createVNode(na,e);return t.render(o,n),o.component.data}},Xt=e=>{e.unmount=Os;let n;if(e.id){if(n=e.id,At.find(r=>r===e.id))return $k(e)}else n=new Date().getTime()+"";e={...oa,...e},e.id=n,At.push(e.id),Yt.push(e);const a=document.createElement("view");a.id="notify-"+e.id;const o={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(a)},e.duration)}),()=>t.h(na,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},Qt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},la={text(e,n={}){return Qt(e),Xt({...n,msg:e})},primary(e,n={}){return Qt(e),Xt({...n,msg:e,type:"primary"})},success(e,n={}){return Qt(e),Xt({...n,msg:e,type:"success"})},danger(e,n={}){return Qt(e),Xt({...n,msg:e,type:"danger"})},warn(e,n={}){return Qt(e),Xt({...n,msg:e,type:"warning"})},hide(){Os()},install(e){e.use(na)}},{create:Vk}=_("toast"),Ek=Vk({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const l=()=>{a&&(clearTimeout(a),a=null)},r=()=>{o.mounted=!1},i=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},s=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&i(),t.watch(()=>e.duration,S=>{S&&i()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),u=()=>{const S=fe(e.iconSize);return t.h(e.icon,{width:S,height:S,color:e.iconColor})},p=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]),d=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:s,renderIcon:u,hasIcon:c,toastBodyClass:p,toastIconWrapperClass:d,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Dk={key:1,class:"fox-toast-title"},Ik=["innerHTML"];function xk(e,n,a,o,l,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]=(...i)=>e.clickCover&&e.clickCover(...i))},[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",Dk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Ik)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const aa=oe(Ek,[["render",xk]]),ra={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 Tt=[],Gt=[];const Fs=e=>{if(e){const n=document.getElementById(e);Gt=Gt.filter(a=>a.id!==e),Tt=Tt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Tt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Gt=[],Tt=[]},vk=e=>{const n=document.getElementById(e.id);if(n){const a=Gt.find(l=>l.id===e.id);a?e={...ra,...a,...e}:e={...ra,...e};const o=t.createVNode(aa,e);return t.render(o,n),$t}},Zt=e=>{e.unmount=Fs;let n;if(e.id){if(n=e.id,Tt.find(l=>l===e.id))return vk(e)}else n=new Date().getTime()+"";e={...ra,...e},e.id=n,Tt.push(e.id),Gt.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(aa,e);return t.render(o,a),document.body.appendChild(a),$t},no=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},$t={text(e,n={}){return no(e),Zt({...n,type:"text",msg:e})},success(e,n={}){return no(e),Zt({icon:le.Success,...n,msg:e,type:"success"})},fail(e,n={}){return no(e),Zt({icon:le.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return no(e),Zt({icon:le.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Zt({icon:le.Loading,...n,msg:e,type:"loading"})},hide(e){Fs(e)},install(e){e.use(aa),e.config.globalProperties.$toast=$t}},{componentName:N2,create:qk}=_("audio"),Pk=qk({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:le.Service,[Ut.name]:Ut},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=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 k=0;k<y.length;k++)document.addEventListener(y[k],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(k){k.message}});const r=y=>{const k=o.value;e.autoplay&&k&&k.paused&&k.play(),l.second=k.duration,l.duration=b(k.duration),n("can-play",y)},i=y=>{l.currentTime=parseInt(y.target.currentTime)},s=()=>{l.currentTime>0&&l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},c=()=>{const y=o.value;l.playing?(y.pause(),l.handPlaying=!1):(y.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},u=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},p=y=>{l.currentDuration=b(y),l.percent=y/l.second*100},d=()=>{l.playing=!1,n("ended")},g=y=>{const k=o.value;k.currentTime=l.second*y/100,n("changeProgress",k.currentTime)},S=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},b=y=>{if(!y)return"00:00:00";let k=parseInt(y),f=Math.floor(k/3600),m=Math.floor((k-f*3600)/60),h=k-f*3600-m*60,C="";return C+=("0"+f.toString()).slice(-2)+":",C+=("0"+m.toString()).slice(-2)+":",C+=("0"+h.toString()).slice(-2),C};return t.watch(()=>l.currentTime,y=>{p(y)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:S,forward:u,fastBack:s,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:s,forward:u,changeStatus:c,progressChange:g,audioEnd:d,onTimeupdate:i,handleMute:S,onCanplay:r,slots:a}}}),Mk={class:"fox-audio"},Lk={key:0,class:"fox-audio__progress"},zk={class:"fox-audio__time"},Ok={class:"fox-audio__bar"},Fk={class:"fox-audio__time"},Rk={key:1,class:"fox-audio__icon"},Kk=["controls","src","preload","autoplay","loop","muted"];function Uk(e,n,a,o,l,r){const i=t.resolveComponent("fox-range"),s=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",Mk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",Lk,[t.createElementVNode("div",zk,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Ok,[t.createVNode(i,{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(()=>n[6]||(n[6]=[t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1)])),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Fk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Rk,[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(s,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):(t.openBlock(),t.createBlock(s,{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,Kk)])}const sa=oe(Pk,[["render",Uk]]),{componentName:B2,create:Hk,scope:jk}=_("audio-operate"),Wk=Hk({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(jk),o=t.inject("audioParent"),l=t.reactive(o),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(l),customSlot:r,t:a}}}),Yk={class:"fox-audio-operate"};function Xk(e,n,a,o,l,r){const i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Yk,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...s)=>e.fastBack&&e.fastBack(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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]=(...s)=>e.forward&&e.forward(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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]=(...s)=>e.handleMute&&e.handleMute(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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 ia=oe(Wk,[["render",Xk]]),{componentName:Qk,create:Gk}=_("avatar"),Zk=Gk({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:a,bgColor:o,color:l}=t.toRefs(e),r=["large","normal","small"],i=t.inject("avatarGroup",null),s=t.ref(null),c=t.reactive({lightTheme:!1}),u=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const b=i?.avatarGroupRef?.value?.children;b&&S(b)});const p=t.computed(()=>({[Qk]:!0,[`fox-avatar-${n.value||i?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||i?.props?.shape||"normal"}`]:!0})),d=t.computed(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${o.value}`,color:`${l.value}`,marginLeft:u.index!=1&&(i?.props?.span?`${i?.props?.span}px`:""),zIndex:i?.props?.zIndex=="right"?`${Math.abs(u.maxIndex-u.index)}`:""})),g=t.computed(()=>({backgroundColor:`${i?.props?.maxBgColor}`,color:`${i?.props?.maxColor}`})),S=b=>{u.maxIndex=b.length;for(let y=0;y<b.length;y++)b[y]&&b[y].classList&&b[y].classList[0]=="fox-avatar"&&b[y].setAttribute("data-index",y+1);u.index=s?.value?.dataset?.index,u.index==u.maxIndex&&u.index!=i?.props?.maxCount&&(u.showMax=!0)};return{classes:p,styles:d,maxStyles:g,avatarGroup:i,visible:c,avatarRef:s,...t.toRefs(u)}}});function Jk(e,n,a,o,l,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=oe(Zk,[["render",Jk]]),{componentName:_k,create:eS}=_("avatar-group"),tS=eS({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:a}){t.toRefs(e);const o=t.ref(null),l=t.ref(0),r=t.computed(()=>({[_k]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:l}),{classes:r,avatarGroupRef:o}}});function nS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const ca=oe(tS,[["render",nS]]);var oo=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(oo||{});function oS(e,n,a){let o=0,l=e.length-1,r=null;for(;o<=l;){r=Math.floor((o+l)/2);const i=e[r],s=a(i,n);if(s===1)return r;s===2?o=r+1:s===3&&(l=r-1)}return r}const{componentName:lS,create:aS}=_("list"),Rs=document.documentElement.clientHeight||document.body.clientHeight||667,rS=aS({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Rs},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref(null),l=t.ref(null),r=t.reactive({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),i=t.computed(()=>Math.min(e.containerHeight,Rs)),s=t.computed(()=>Math.ceil(i.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+s.value+e.bufferSize,r.list.length)),u=t.computed(()=>({[lS]:!0})),p=t.computed(()=>r.list.slice(r.start,c.value)),d=()=>{if(l.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},g=()=>{r.cachePositions=[];for(let f=0;f<r.list.length;++f)r.cachePositions[f]={index:f,height:e.height,top:f*e.height,bottom:(f+1)*(e.height+e.margin),dValue:0}},S=()=>{let f=l.value.childNodes;f=Array.from(f).filter(N=>N.nodeType===1);const m=f[0];f.forEach((N,T)=>{if(!N)return;const $=qe(N),{height:E}=$,P=r.cachePositions[T+r.start].height-E;P&&(r.cachePositions[T+r.start].bottom-=P,r.cachePositions[T+r.start].height=E,r.cachePositions[T+r.start].dValue=P)});let h=0;m&&(h=r.start);const C=r.cachePositions.length;let A=r.cachePositions[h].dValue;r.cachePositions[h].dValue=0;for(let N=h+1;N<C;++N){const T=r.cachePositions[N];r.cachePositions[N].top=r.cachePositions[N-1].bottom,r.cachePositions[N].bottom=r.cachePositions[N].bottom-A,T.dValue!==0&&(A+=T.dValue,T.dValue=0)}const w=r.cachePositions[C-1].bottom;r.phantomHeight=w},b=(f=0)=>{let m=oS(r.cachePositions,f,(C,A)=>{const w=C.bottom;return w===A?oo.eq:w<A?oo.lt:oo.gt});return r.cachePositions[m].bottom<f&&(m+=1),m},y=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,a.value.scrollTop=0,g(),r.phantomHeight=e.height*r.list.length},k=()=>{const f=a.value?.scrollTop,{originStartIndex:m}=r,h=b(f);h!==m&&(r.originStartIndex=h,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&n("scroll-bottom")),n(f>r.scrollTop?"scroll-up":"scroll-down",f),r.scrollTop=f};return t.watch(()=>e.listData,f=>{if(r.list=f.slice(),r.list.length===f.length)g(),S();else{y();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&S()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:d,visibleData:p,classes:u,getContainerHeight:i,handleScrollEvent:k}}});function sS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[0]=(...i)=>e.handleScrollEvent&&e.handleScrollEvent(...i)),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,(i,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:i},[t.renderSlot(e.$slots,"default",{item:i,index:s+e.start})]))),128))],4)],38)}const da=oe(rS,[["render",sS]]),{componentName:iS,create:cS}=_("circleprogress"),dS=cS({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const a=!!t.useSlots().default,o=Math.random().toString(36).slice(-8),l=t.computed(()=>({[iS]:!0})),r=t.computed(()=>{const p=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${p} 0 90 a 45 45 0 1, ${p} 0 -90`}),i=t.computed(()=>Ie(e.color)?`url(#${o})`:e.color),s=t.computed(()=>{let p=283,d=p*Number(e.progress)/100;return{stroke:Ie(e.color)?`url(#${o})`:e.color,strokeDasharray:`${d}px ${p}px`}}),c=t.computed(()=>({stroke:e.pathColor})),u=t.computed(()=>{if(!Ie(e.color))return;let p=e.color;const d=Object.keys(p).sort((S,b)=>parseFloat(S)-parseFloat(b));let g=[];return d.map((S,b)=>{let y={key:"",value:""};y.key=S,y.value=p[S],g.push(y)}),g});return{classes:l,hoverStyle:s,pathStyle:c,path:r,hoverColor:i,stop:u,slotDefault:a,refRandomId:o}}}),uS={viewBox:"0 0 100 100"},fS=["id"],mS=["offset","stop-color"],pS=["d","stroke-width"],hS=["d","stroke","stroke-linecap","stroke-width"],gS={class:"fox-circleprogress-text"},yS={key:0};function bS(e,n,a,o,l,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",uS,[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,(i,s)=>(t.openBlock(),t.createElementBlock("stop",{key:s,offset:i.key,"stop-color":i.value},null,8,mS))),128))],8,fS)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,pS),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,hS)])),t.createElementVNode("div",gS,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",yS,t.toDisplayString(e.progress)+"%",1))])],6)}const ua=oe(dS,[["render",bS]]),{componentName:kS,create:SS}=_("noticebar"),CS=SS({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:le.Notice,CircleClose:le.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=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}),i=t.computed(()=>({[kS]:!0})),s=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":s.value,[r.animationClass]:!0})),u=t.computed(()=>{let N={};return e.color&&(N.color=e.color),e.background&&(N.background=e.background),e.direction=="vertical"&&(N.height=`${e.height}px`),N}),p=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),d=t.computed(()=>{let N={};if(e.complexAm)N={transform:`translateY(${r.distance}px)`};else if(r.animate){let T=~~(e.height/e.speed/4);N={transition:`all ${T==0?~~(e.height/e.speed):T}s`,"margin-top":`-${e.height}px`}}return N});t.watch(()=>e.text,N=>{g()}),t.watch(()=>e.list,N=>{r.scrollList=[...N]});const g=N=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const T=o.value.getBoundingClientRect().width,$=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?$>T:e.scrollable,r.isCanScroll?(r.wrapWidth=T,r.offsetWidth=$,r.duration=$/e.speed,r.animationClass="play"):r.animationClass=""},0)},S=N=>{n("click",N)},b=N=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",N)},y=N=>{r.firstRound=!1,n("across-end",N),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},k=()=>{f(),r.timer=setInterval(f,~~(e.height/e.speed/4*1e3)+e.standTime)},f=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},m=()=>{r.timer=setInterval(()=>{let N=100;for(let T=0;T<N;T++)h(T,!(T<N-1))},e.standTime+100*e.speed)},h=(N,T)=>{setTimeout(()=>{r.distance-=e.height/100,T&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},N*e.speed)},C=N=>{n("click",N)},A=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(a.default?w(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?m():k()},e.standTime)):g(e.text)}),t.watch(()=>a.default?a.default():[],N=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),w(N))});const w=N=>{N&&N.length>0&&(r.scrollList=N[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:s,classes:i,barStyle:u,contentStyle:p,horseLampStyle:d,wrap:o,content:l,handleClick:S,onClickIcon:b,onAnimationEnd:y,go:C,handleClickIcon:A,slots:a,toPxDesc:ge,wrapContentClass:c}}}),wS={key:0,class:"fox-noticebar__page-lefticon"},NS={ref:"wrap",class:"fox-noticebar__page-wrap"},BS={class:"showNotica"},AS=["onClick"];function TS(e,n,a,o,l,r){const i=t.resolveComponent("Notice"),s=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))},[e.showLeftIcon?(t.openBlock(),t.createElementBlock("view",wS,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(i,{key:0,size:"16px"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("view",NS,[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:1,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(s,{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",BS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(u,p)=>(t.openBlock(),t.createBlock(c,{key:p,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,p)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:p,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:d=>e.go(u)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(u),1)])],12,AS))),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(s,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const fa=oe(CS,[["render",TS]]),$S="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzM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m8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:A2,create:DS,scope:IS}=_("empty"),xS={empty:$S,error:VS,network:ES},vS=DS({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=ie.useFoxI18n(IS),a=n(e,["description"]),{image:o,imageSize:l}=t.toRefs(e),r=t.computed(()=>l.value?typeof l.value=="number"?`width:${l.value}px;height:${l.value}px`:`width:${l.value};height:${l.value}`:""),s=o.value.startsWith("https://")||o.value.startsWith("http://")||o.value.startsWith("//")?o.value:xS[o.value];return{...a,imageUrl:s,imgStyle:r}}}),qS={class:"fox-empty"},PS=["src"],MS={key:1,class:"fox-empty-description"};function LS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",qS,[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,PS)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",MS,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const ma=oe(vS,[["render",LS]]),{create:zS,scope:OS}=_("video"),FS=zS({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(OS),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}),l=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,w=>{w.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,w=>{o.state.isMuted=w?w.muted:!1},{immediate:!0});const i=()=>{o.videoElm=l.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)),b(),o.showToolbox?s():(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",g),o.videoElm.addEventListener("timeupdate",mn(d,1e3)))},s=()=>{const w=l.value,N=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=w,o.progressBar.progressElm=N,o.progressBar.pos=N.getBoundingClientRect(),o.videoSet.progress.width=Math.round(N.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",()=>{p()}),o.videoElm.addEventListener("timeupdate",mn(d,1e3)),o.videoElm.addEventListener("ended",g),n("play",o.videoElm)}catch{S()}else o.videoElm.pause(),n("pause",o.videoElm)},u=w=>{var N=Math.floor(w/3600);N<10&&(N="0"+N);var T=Math.floor(w%3600/60);T<10&&(T="0"+T);var $=Math.round(w%3600%60);$<10&&($="0"+$);var E="";return N!=0?E=N+":"+T+":"+$:E=T+":"+$,E},p=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},d=()=>{const w=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*w),o.videoSet.totalTime=u(o.videoElm.duration),o.videoSet.displayTime=u(o.videoElm.currentTime),n("time",o.videoSet.displayTime,o.videoSet.totalTime)},g=()=>{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)},S=()=>{o.state.isError=!0},b=()=>{o.state.vol=e.options.volume},y=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},k=()=>{},f=w=>{let T=w.targetTouches[0].pageX-o.progressBar.pos.left;T<=0&&(T=0),T>=o.videoSet.progress.width&&(T=o.videoSet.progress.width),o.videoSet.progress.current=T;let $=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&h($,o.videoElm.duration)},m=w=>{let T=w.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=T;let $=T/o.videoSet.progress.width;o.videoElm.duration&&h($,o.videoElm.duration)},h=(w,N)=>{o.videoElm.currentTime=Math.floor(w*N)},C=()=>{o.state.isError=!1,i()},A=()=>{o.state.fullScreen?(o.state.fullScreen=!1,document.webkitCancelFullScreen()):(o.state.fullScreen=!0,o.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{i()}),{root:l,...t.toRefs(e),...t.toRefs(o),handleError:S,isDisabled:r,play:c,handleMuted:y,touchSlidSrart:k,touchSlidMove:f,touchSlidEnd:m,retry:C,fullScreen:A,t:a}}}),RS={class:"fox-video",ref:"videocon"},KS=["muted","autoplay","loop","poster","controls","preload"],US=["src","type"],HS={class:"fox-video-controller__now"},jS={class:"fox-video-controller__progress"},WS={class:"fox-video-controller__progress-value",ref:"progressBar"},YS={class:"fox-video-controller__played",ref:"playedBar"},XS={class:"fox-video-controller__total"},QS={class:"fox-video-error"},GS={class:"fox-video-error-tip"};function ZS(e,n,a,o,l,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:n[0]||(n[0]=(...i)=>e.handleError&&e.handleError(...i))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,US)],40,KS),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...i)=>e.play&&e.play(...i))},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]=(...i)=>e.play&&e.play(...i))},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]=(...i)=>e.play&&e.play(...i))}),t.createElementVNode("div",HS,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",jS,[t.createElementVNode("div",WS,[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(i=>e.touchSlidMove(i),["stop","prevent"])),onTouchstart:n[5]||(n[5]=t.withModifiers(i=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=t.withModifiers(i=>e.touchSlidEnd(i),["stop"]))},n[10]||(n[10]=[t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1)]),36),t.createElementVNode("div",YS,null,512)],512)]),t.createElementVNode("div",XS,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]=(...i)=>e.handleMuted&&e.handleMuted(...i))},null,2),t.createElementVNode("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...i)=>e.fullScreen&&e.fullScreen(...i))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",QS,[t.createElementVNode("p",GS,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...i)=>e.retry&&e.retry(...i))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const Vt=oe(FS,[["render",ZS]]),{create:JS,componentName:_S}=_("steps"),pa=JS({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:a}){const o=t.reactive({children:[]}),l=t.computed(()=>{const s=_S;return{[s]:!0,[`${s}-${e.direction}`]:!0,[`${s}-dot`]:!!e.progressDot}}),r=s=>{s&&o.children.push(s)},i=s=>{n("click-step",s)};return t.provide("parent",{relation:r,state:o,props:e,onEmit:i}),()=>t.h("view",{class:l.value},a.default?.())}}),{create:e1,componentName:t1}=_("step"),n1=e1({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 a=t.reactive({dot:n.props.progressDot}),o=t.computed(()=>n.state.children.indexOf(e)+1),l=()=>{const c=o.value;return c<+n.props.current?"finish":c===+n.props.current?"process":"wait"},r=t.computed(()=>l()),i=t.computed(()=>{const c=t1;return{[c]:!0,[`${c}-${r.value}`]:!0}}),s=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:i,handleClickStep:s}}}),o1={class:"fox-step-head"},l1={class:"fox-step-icon-inner"},a1={key:1,class:"fox-step-inner"},r1={class:"fox-step-main"},s1={class:"fox-step-title"},i1={key:0},c1={key:0,class:"fox-step-content"},d1=["innerHTML"];function u1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.handleClickStep&&e.handleClickStep(...i))},[t.createElementVNode("view",o1,[n[1]||(n[1]=t.createElementVNode("view",{class:"fox-step-line"},null,-1)),t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",l1,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",a1,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",r1,[t.createElementVNode("view",s1,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",i1,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",c1,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,d1)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ha=oe(n1,[["render",u1]]),{create:f1,componentName:ga}=_("swiper"),m1=f1({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=tt(),i=t.computed(()=>({[ga]:!0})),s=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const x=ga;return{[`${x}-inner`]:!0,[`${x}-vertical`]:s.value}}),u=t.computed(()=>{const x=ga;return{[`${x}-pagination`]:!0,[`${x}-pagination-vertical`]:s.value}}),p=t.computed(()=>s.value?r.deltaY.value:r.deltaX.value),d=t.computed(()=>r.direction.value===e.direction),g=t.computed(()=>l.children.length),S=t.computed(()=>l[s.value?"height":"width"]),b=t.computed(()=>g.value*S.value),y=t.computed(()=>l.rect?(s.value?l.rect.height:l.rect.width)-S.value*g.value:0),k=t.computed(()=>(l.active+g.value)%g.value),f=()=>{let x=0;x=l.offset,l.style={transitionDuration:`${l.moving?0:e.duration}ms`,transform:`translate${s.value?"Y":"X"}(${x}px)`,[s.value?"height":"width"]:`${S.value*g.value}px`,[s.value?"width":"height"]:`${s.value?l.width:l.height}px`}},m=x=>{let W=[];const j=l.childrenVNode.length;let O=a?.default?.();if(O=O.filter(ee=>ee.children&&Array.isArray(ee.children)),O.forEach(ee=>{W=W.concat(ee.children)}),!j)l.childrenVNode=W.slice(),x.proxy&&l.children.push(x.proxy);else if(j>W.length)l.children=l.children.filter(ee=>x.proxy!==ee);else if(j<W.length){for(let ee=0;ee<j;ee++)if(W[ee].key!==l.childrenVNode[ee].key){x.proxy&&l.children.splice(ee,0,x.proxy),x.vnode&&l.childrenVNode.splice(ee,0,x.vnode);break}j!==W.length&&(x.proxy&&l.children.push(x.proxy),x.vnode&&l.childrenVNode.push(x.vnode))}else l.childrenVNode=W.slice(),x.proxy&&l.children.push(x.proxy)},h=(x,W=0)=>{let j=x*S.value;e.loop||(j=Math.min(j,-y.value));let O=W-j;return e.loop||(O=je(O,y.value,0)),O},C=x=>{const{active:W}=l;return x?e.loop?je(W+x,-1,g.value):je(W+x,0,g.value-1):W},A=({pace:x=0,offset:W=0,isEmit:j=!1})=>{if(g.value<=1)return;const{active:O}=l,ee=C(x),H=h(ee,W);if(e.loop){if(l.children[0]&&H!==y.value){const q=H<y.value;l.children[0].setOffset(q?b.value:0)}if(l.children[g.value-1]&&H!==0){const q=H>0;l.children[g.value-1].setOffset(q?-b.value:0)}}l.active=ee,l.offset=H,j&&O!==l.active&&n("change",k.value),f()},w=()=>{l.moving=!0,l.active<=-1&&A({pace:g.value}),l.active>=g.value&&A({pace:-g.value})},N=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},T=x=>{w(),r.reset(),Qe(()=>{Qe(()=>{l.moving=!1,A({pace:x,isEmit:!0})})})},$=()=>{T(-1)},E=()=>{T(1)},D=x=>{w(),r.reset(),Qe(()=>{l.moving=!1;let W;e.loop&&g.value===x?W=l.active===0?0:x:W=x%g.value,A({pace:W-l.active,isEmit:!0})})},P=()=>{e.autoPlay<=0||g.value<=1||(N(),l.autoplayTimer=setTimeout(()=>{E(),P()},Number(e.autoPlay)))},K=(x=+e.initPage)=>{N(),l.rect=o.value.getBoundingClientRect(),x=Math.min(g.value-1,x),l.width=e.width?+e.width:l.rect.width,l.height=e.height?+e.height:l.rect.height,l.active=x,l.offset=h(l.active),l.moving=!0,f(),P()},V=x=>{e.isPreventDefault&&x.preventDefault(),e.isStopPropagation&&x.stopPropagation(),e.touchable&&(r.start(x),l.touchTime=Date.now(),N(),w())},I=x=>{e.touchable&&l.moving&&(r.move(x),d.value&&A({offset:p.value}))},L=x=>{if(!e.touchable||!l.moving)return;const W=p.value/(Date.now()-l.touchTime);if((Math.abs(W)>.3||Math.abs(p.value)>+(S.value/2).toFixed(2))&&d.value){let O=0;const ee=s.value?r.offsetY.value:r.offsetX.value;e.loop?O=ee>0?p.value>0?-1:1:0:O=-Math[p.value>0?"ceil":"floor"](p.value/S.value),A({pace:O,isEmit:!0})}else p.value&&A({pace:0});l.moving=!1,f(),P()};return t.provide("parent",{props:e,size:S,relation:m}),ve({prev:$,next:E,to:D}),t.onDeactivated(()=>{N()}),t.onBeforeUnmount(()=>{N()}),t.watch(()=>e.initPage,x=>{t.nextTick(()=>{K(Number(x))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{K()})}),t.watch(()=>e.autoPlay,x=>{x>0?P():N()}),{state:l,classes:i,classesInner:c,classesPagination:u,container:o,activePagination:k,onTouchStart:V,onTouchMove:I,onTouchEnd:L}}});function p1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...i)=>e.onTouchStart&&e.onTouchStart(...i)),onTouchmove:n[1]||(n[1]=(...i)=>e.onTouchMove&&e.onTouchMove(...i)),onTouchend:n[2]||(n[2]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i)),onTouchcancel:n[3]||(n[3]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[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,(i,s)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===s?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===s}),key:s},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const Et=oe(m1,[["render",p1]]),{create:h1,componentName:g1}=_("swiper-item"),y1=h1({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[g1]:!0})),r=t.computed(()=>{const s={},c=a?.props.direction;return a?.size.value&&(s[c==="horizontal"?"width":"height"]=`${a?.size.value}px`),o.offset&&(s.transform=`translate${c==="horizontal"?"X":"Y"}(${o.offset}px)`),s}),i=s=>{o.offset=s};return t.onUnmounted(()=>{a.relation(t.getCurrentInstance(),"unmount")}),ve({setOffset:i}),{style:r,classes:l}}});function b1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const Dt=oe(y1,[["render",b1]]),Ks={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:k1}=_("image-preview-item"),S1=k1({props:{...Ks,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:{[Vt.name]:Vt,[Dt.name]:Dt},setup(e,{emit:n}){const a=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),o=tt(),l=t.computed(()=>{const{rootWidth:$,rootHeight:E}=e,D=E/$;return a.imageRatio>D}),r=t.computed(()=>{const $=e.image;if($&&$.src){const{scale:E,moveX:D,moveY:P,moving:K,zooming:V}=a,I={transitionDuration:V||K?"0s":".3s"};if(E!==1){const L=D/E,x=P/E;I.transform=`scale(${E}, ${E}) translate(${L}px, ${x}px)`}return I}return{}}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:$,rootHeight:E}=e,D=l.value?E/a.imageRatio:$;return Math.max(0,(a.scale*D-$)/2)}return 0}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:$,rootHeight:E}=e,D=l.value?E:$*a.imageRatio;return Math.max(0,(a.scale*D-E)/2)}return 0}),c=$=>{const{naturalWidth:E,naturalHeight:D}=$.target;a.imageRatio=D/E},u=()=>{p(1),a.moveX=0,a.moveY=0},p=$=>{$=je($,+e.minZoom,+e.maxZoom+1),$!==a.scale&&(a.scale=$,n("scale",{scale:$,index:e.initNo}))},d=()=>{const $=a.scale>1?1:2;p($),a.moveX=0,a.moveY=0},g=$=>Math.sqrt(($[0].clientX-$[1].clientX)**2+($[0].clientY-$[1].clientY)**2);let S,b,y,k,f,m,h;const C=$=>{const{touches:E}=$,{offsetX:D}=o;o.start($),h=E.length,S=a.moveX,b=a.moveY,m=Date.now(),a.moving=h===1&&a.scale!==1,a.zooming=h===2&&!D.value,a.zooming&&(y=a.scale,k=g($.touches))},A=$=>{const{touches:E}=$;if(o.move($),(a.moving||a.zooming)&&So($,!0),a.moving){const{deltaX:D,deltaY:P}=o,K=D.value+S,V=P.value+b;a.moveX=je(K,-i.value,i.value),a.moveY=je(V,-s.value,s.value)}if(a.zooming&&E.length===2){const D=g(E),P=y*D/k;p(P)}},w=()=>{if(h==1&&e.video&&e.video.source||h>1)return;const{offsetX:$,offsetY:E}=o,D=Date.now()-m,P=250,K=5;$.value<K&&E.value<K&&D<P&&(f?(clearTimeout(f),f=null,d()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},P))},N=$=>{let E=!1;(a.moving||a.zooming)&&(E=!0,a.moving&&S===a.moveX&&b===a.moveY&&(E=!1),$.touches.length||(a.zooming&&(a.moveX=je(a.moveX,-i.value,i.value),a.moveY=je(a.moveY,-s.value,s.value),a.zooming=!1),a.moving=!1,S=0,b=0,y=1,a.scale<1&&u(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),So($,E),w(),o.reset()},T=()=>{n("close")};return t.watch(()=>e.initNo,u),t.watch(()=>e.show,$=>{$||u()}),{...t.toRefs(a),onTouchStart:C,onTouchMove:A,onTouchEnd:N,getDistance:g,imageStyle:r,imageLoad:c,closeSwiper:T}}}),C1=["src"];function w1(e,n,a,o,l,r){const i=t.resolveComponent("fox-video"),s=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(s,{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,C1)):t.createCommentVNode("",!0),e.video&&e.video.source?(t.openBlock(),t.createBlock(i,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):t.createCommentVNode("",!0)],36)]),_:1},8,["onClick"])}const N1=oe(S1,[["render",w1]]),{create:B1}=_("image-preview"),A1=B1({props:{...Ks,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:N1,CircleClose:le.CircleClose,[me.name]:me,[Et.name]:Et},setup(e,{emit:n}){const a=t.ref(),o=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),l=t.computed(()=>{const p="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${p}-right`:`${p}-left`}`}),r=t.computed(()=>ln(e.videos)?[].concat(e.videos).concat(e.images):e.images),i=p=>{p!==o.active&&(o.active=p,n("change",o.active))},s=()=>{Ls(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},u=()=>{if(a.value){const p=qe(a.value);o.rootHeight=p.height,o.rootWidth=p.width}};return t.watch(()=>e.show,p=>{o.showPop=p,p&&(i(e.initNo),u())}),t.watch(()=>e.initNo,p=>{p!=o.active&&i(p)}),t.onMounted(()=>{i(e.initNo)}),{swipeRef:a,...t.toRefs(o),onClose:s,mergeImages:r,setActive:i,iconClasses:l}}}),T1={class:"fox-image-preview",ref:"swipeRef"},$1={key:0,class:"fox-image-preview-index"};function V1(e,n,a,o,l,r){const i=t.resolveComponent("image-preview-item"),s=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]=p=>e.showPop=p),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",T1,[e.showPop?(t.openBlock(),t.createBlock(s,{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,(p,d)=>(t.openBlock(),t.createBlock(i,{key:d,video:d<e.videos.length?p:{},image:d>=e.videos.length?p:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",$1,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]=(...p)=>e.onClose&&e.onClose(...p))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Us=oe(A1,[["render",V1]]);class E1{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 D1{options=new E1;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=Ai(a,{name:"image-preview",components:[me,Vt,Et,Dt,dt],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(Us,a))}})})}}const lo=e=>new D1(e);lo.install=e=>{e.use(Us)};function I1(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{componentName:T2,create:x1}=_("countup"),v1=x1({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 a=t.ref(null),o=t.ref([]),l=T=>{T&&o.value.push(T)},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:i,scrolling:s,customBgImg:c,type:u}=t.reactive(e);t.watch(()=>e.customChangeNum,(T,$)=>{d(),k(0)}),t.watch(()=>e.machinePrizeLevel,(T,$)=>{r.prizeLevelTrun=T}),t.watch(()=>e.initNum,(T,$)=>{r.current=T,r.valFlag=!1,p()}),t.watch(()=>e.endNum,(T,$)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;i&&(s||c?u!="machine"&&k():(y(),setTimeout(()=>{r.valFlag=!0},300)))},d=()=>{clearInterval(Number(r.timer)),r.timer=null},g=(T,$,E)=>{const D=(T.toString().split(".")[1]||"").length,P=($.toString().split(".")[1]||"").length,K=Math.pow(10,Math.max(D,P));return Number((T*K-$*K).toFixed(0))/K},S=T=>{let{num_total_len:$,pointNum:E,initDigit1:D,initDigit2:P,sortFlag:K}=r,V=K=="add"||K=="equal"?String(P)[T-($-E)]:10-Number(String(P)[T-($-E)]),I=K=="add"||K=="equal"?String(D)[T]:10-Number(String(D)[T]),L=T>$-E-1?-V*100+"%":T<=String(D).length-1?-I*100+"%":0;return L=="-1000%"&&(L=0),L},b=T=>{let{num_total_len:$,pointNum:E,initDigit1:D,initDigit2:P,sortFlag:K}=r,V=String(P)[T-($-E)];return T>$-E-1?V||0:T<=String(D).length-1?String(D)[T]:0},y=()=>{let{endNum:T,initNum:$,speed:E,toFixed:D}=e,P=setInterval(()=>{if($>T)if(r.current<=T||r.current<=E)r.current=T.toFixed(D),clearInterval(P),n("scroll-end"),r.valFlag=!1;else{let K=parseFloat(String(r.current))-parseFloat(String(E));r.current=K.toFixed(D)}else if(r.current>=T)r.current=T.toFixed(D),clearInterval(P),n("scroll-end"),r.valFlag=!1;else{let K=parseFloat(String(r.current))+parseFloat(String(E));r.current=K.toFixed(D)}},e.during)},k=T=>{let{initNum:$,endNum:E,toFixed:D,customBgImg:P}=e;P&&($=e.customChangeNum);let K,V,I,L;$!=0?(D!=0&&($=Number($.toFixed(D))),String($).indexOf(".")>-1?(K=String($).split(".")[0].length,V=String($).split(".")[1].length):(K=String($).length,V=0)):(K=1,V=0),E!=0?(D!=0&&(E=Number(E.toFixed(D))),String(E).indexOf(".")>-1?(I=String(E).split(".")[0].length,L=String(E).split(".")[1].length):(I=String(E).length,L=0)):(I=1,L=0);let x=K>=I?K:I,W=V>=L?V:L;r.num_total_len=x+W,r.pointNum=W,$>E?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=g($,E),r.numberVal=Number(String($))):$<E?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=g(E,$),r.numberVal=Number(String(E))):r.sortFlag="equal";var j=1;for(let ee=0;ee<r.pointNum;ee++)j*=10;var O=r.numberVal*j;if(r.relNum=O,D!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(O).length),String($).indexOf(".")>-1){let ee=String($).split(".");r.initDigit1=Number(ee[0]),r.initDigit2=Number(ee[1])}else r.initDigit1=$,r.initDigit2=0;s&&!P?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let ee=o.value[r.num_total_len-1];f(ee)}):T!==0&&C()},f=T=>{d();var $=1;r.pointNum!=0&&($=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{m(T),r.totalCount=g(r.totalCount,$),r.totalCount<=0&&(d(),n("scroll-end"),r.valFlag=!1)},e.during)},m=T=>{let $=T.getAttribute("turn-number"),E;if(r.sortFlag=="add"?E=parseInt(String($))+1:E=parseInt(String($))-1>=0?parseInt(String($))-1:9,T.setAttribute("turn-number",String(E)),(T.style.transition=="none 0s ease 0s"||E==1||!T.style.transition)&&(T.style.transition=`all linear ${e.during}ms`),E==10||r.sortFlag=="reduce"&&E==0){var D=null;T.style.top=`-${r.sortFlag=="add"?E*100:(10-E)*100}%`,T.setAttribute("turn-number","0"),D=setTimeout(()=>{D&&clearTimeout(D),T.style.transition="none",T.style.top="0",h(T,E)},.975*e.during)}else T.style.top=`-${r.sortFlag=="add"?E*100:(10-E)*100}%`;T.style.top=="-100%"&&r.sortFlag=="reduce"&&m(T.previousSibling)},h=(T,$)=>{setTimeout(()=>{$==10&&T.previousSibling&&m(T.previousSibling)},200)},C=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{a.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},A=()=>{for(r.notPrize=[];r.notPrize.length<3;){var T=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(T)==-1&&r.notPrize.push(T)}};I1({machineLuck:()=>{const T=e.machineTurnMore<0?0:e.machineTurnMore;let $=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&A();for(let E=0;E<e.machineNum;E++)setTimeout(()=>{let D=$*(E+1+parseFloat(String(T)));r.prizeYPrev.length!=0&&(r.prizeY[E]=r.prizeYPrev[E]);let P=r.prizeYPrev[E]?r.prizeYPrev[E]:0,K=D+P+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+($-P);r.prizeLevelTrun<0&&(K+=e.numHeight*r.notPrize[E]),N(E,K,P)},500*E)}});const N=(T,$,E)=>{let D=setInterval(()=>{if(E<=$)E+=10,r.prizeY[T]=parseFloat(String(E));else if(clearInterval(D),D=null,r.finshMachine+=1,r.prizeY[T]=$,r.finshMachine==e.machineNum){let P=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(V=>{let I=V;for(;I>P;)I-=P;r.prizeYPrev.push(I)}),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(()=>{p()})}),t.onUnmounted(()=>{d(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:S,turnNumber:b}}}),q1={class:"fox-countup"},P1=["turn-number"];function M1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",q1,[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,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+s,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[s]+"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,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+s,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(s>e.num_total_len-e.pointNum-1?s==e.num_total_len-e.pointNum?s*1.5:s*1.3:s)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[s]*e.numHeight+e.customSpacNum*+String(e.relNum)[s])+"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,(i,s)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:i,style:t.normalizeStyle({top:e.topNumber(s),left:e.numWidth*(s>e.num_total_len-e.pointNum-1?s*1.1:s)+"px"}),"turn-number":e.turnNumber(s)},[(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,P1))),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 ya=oe(v1,[["render",M1]]),L1=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:z1,create:O1}=_("countdown"),F1=O1({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:a}){const o=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),l=t.computed(()=>({[z1]:!0})),r=t.computed(()=>c(o.restTime)),i=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-L1(e.startTime),o.counting||(o.counting=!0),s()},s=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const S=Date.now()-o.diffTime,b=Math.max(o.handleEndTime-S,0);o.restTime=b,b||(o.counting=!1,d(),n("on-end")),b>0&&s()}}))},c=(S,b)=>{const y=S;let k={d:0,h:0,m:0,s:0,ms:0};const f=1e3,m=60*f,h=60*m,C=24*h;return y>0&&(k.d=y>=f?Math.floor(y/C):0,k.h=Math.floor(y%C/h),k.m=Math.floor(y%h/m),k.s=Math.floor(y%m/f),k.ms=Math.floor(y%f)),b=="custom"?k:u({...k})},u=S=>{let{d:b,h:y,m:k,s:f,ms:m}=S,h=e.format;if(h.includes("DD")?h=h.replace("DD",st(b)):y+=Number(b)*24,h.includes("HH")?h=h.replace("HH",st(y)):k+=Number(y)*60,h.includes("mm")?h=h.replace("mm",st(k)):f+=Number(k)*60,h.includes("ss")?h=h.replace("ss",st(f)):m+=Number(f)*1e3,h.includes("S")){const C=st(m,3).toString();h.includes("SSS")?h=h.replace("SSS",C):h.includes("SS")?h=h.replace("SS",C.slice(0,2)):h.includes("S")&&(h=h.replace("SS",C.slice(0,1)))}return h},p=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),s(),n("on-restart",o.restTime))},d=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},g=()=>{e.autoStart||(d(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?i():o.restTime=e.time}),t.watch(()=>o.restTime,S=>{let b=c(S,"custom");n("update:modelValue",b),n("input",b)}),t.watch(()=>e.paused,(S,b)=>{b?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),s()),n("on-restart",o.restTime)):o.counting&&d()}),t.watch(()=>e.endTime,S=>{i()}),t.watch(()=>e.startTime,S=>{i()}),{...t.toRefs(e),slots:a,classes:l,start:p,pause:d,renderTime:r,reset:g}}}),R1=["innerHTML"];function K1(e,n,a,o,l,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,R1))],2)}const ba=oe(F1,[["render",K1]]),{create:U1}=_("badge"),H1=U1({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({}),a=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),o=t.computed(()=>{if(e.dot)return;const l=e.value,r=e.max;return typeof l=="number"&&typeof r=="number"&&r<l?`${r}+`:l});return{state:n,stl:a,content:o}}}),j1={class:"fox-badge"},W1=["textContent"];function Y1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",j1,[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,W1),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const ka=oe(H1,[["render",Y1]]),{componentName:X1,create:Q1}=_("tag"),G1=Q1({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:le.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const i=X1;return{[i]:!0,[`${i}--${e.type}`]:!0,[`${i}--plain`]:e.plain,[`${i}--round`]:e.round,[`${i}--mark`]:e.mark,[`${i}--symbol`]:e.symbol,[`${i}--text`]:e.text,[`${i}--light`]:e.light}}),getStyle:()=>{const i={};return e.textColor?i.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(i.color=e.color),e.plain?(i.background="#fff",i["border-color"]=e.color):!e.text&&e.color&&(i.background=e.color),i},onClose:i=>{i.stopPropagation(),n("close",i)},onClick:i=>{n("click",i)}}}});function Z1(e,n,a,o,l,r){const i=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const _t=oe(G1,[["render",Z1]]),{create:J1}=_("popover"),_1=J1({components:{FoxPopup:me},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.ref(e.visible);let r=t.ref(),i=t.ref();const s=t.computed(()=>{const m="fox-popover-arrow",h=e.location,C=h.split("-")[0];return`${m} ${m}-${C} ${m}--${h}`}),c=t.computed(()=>{const m={},{bgColor:h,arrowOffset:C,location:A}=e,w=A.split("-")[0],N=A.split("-")[1],T=16;return h&&(m[`border${u(w)}Color`]=h),e.arrowOffset!=0&&(["bottom","top"].includes(w)&&(N||(m.left=`calc(50% + ${C}px)`),N=="start"&&(m.left=`${T+C}px`),N=="end"&&(m.right=`${T-C}px`)),["left","right"].includes(w)&&(N||(m.top=`calc(50% - ${C}px)`),N=="start"&&(m.top=`${T-C}px`),N=="end"&&(m.bottom=`${T+C}px`))),m}),u=m=>(m=m.toLowerCase(),m=m.replace(/\b\w+\b/g,h=>h.substring(0,1).toUpperCase()+h.substring(1)),m),p=t.computed(()=>{let m={};if(!r.value||!i.value)return{};const h=i.value.width,C=i.value.height,{width:A,height:w,left:N,top:T}=r.value,{location:$,offset:E}=e,D=$.split("-")[0],P=$.split("-")[1];let K=0,V=0;if(ln(E)&&E.length==2&&(K+=Number(E[1]),V+=Number(E[0])),A){if(["bottom","top"].includes(D)){const I=D=="bottom"?w+K:-(C+K);m.top=`${T+I}px`,P||(m.left=`${-(h-A)/2+N+V}px`),P=="start"&&(m.left=`${N+V}px`),P=="end"&&(m.left=`${r.value.right+V}px`)}if(["left","right"].includes(D)){const I=D=="left"?-(h+K):A+K;m.left=`${N+I}px`,P||(m.top=`${T-C/2+w/2-4+V}px`),P=="start"&&(m.top=`${T+V}px`),P=="end"&&(m.top=`${T+w+V}px`)}}return m}),d=t.computed(()=>{const m={};return e.bgColor&&(m.background=e.bgColor),m}),g=()=>{let m=qe(a.value);e.targetId&&(m=qe(document.querySelector(`#${e.targetId}`))),r.value=m,setTimeout(()=>{i.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{g()},200)}),t.watch(()=>e.visible,m=>{l.value=m,m?(window.addEventListener("touchstart",f,!0),g()):window.removeEventListener("touchstart",f,!0)});const S=m=>{n("update",m),n("update:visible",m)},b=()=>{S(!e.visible),n("open")},y=()=>{n("update:visible",!1),n("close")},k=(m,h)=>{!m.disabled&&n("choose",m,h),e.closeOnClickAction&&y()},f=m=>{const h=a.value,C=o.value;let A=h&&!h.contains(m.target);if(e.targetId){const w=document.querySelector(`#${e.targetId}`);A=w&&!w.contains(m.target)}A&&C&&!C.contains(m.target)&&e.closeOnClickOutside&&y()};return{showPopup:l,openPopover:b,popoverArrow:s,closePopover:y,chooseItem:k,popoverRef:a,popoverContentRef:o,getRootPosition:p,customStyle:d,popoverArrowStyle:c,renderIcon:wr}}}),eC={ref:"popoverContentRef",class:"fox-popover-content-group"},tC=["onClick"],nC={class:"fox-popover-menu-item-name"};function oC(e,n,a,o,l,r){const i=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]=(...s)=>e.openPopover&&e.openPopover(...s))},[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(i,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.showPopup=s),"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",eC,[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,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([s.className,s.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(u=>e.chooseItem(s,c),["stop"])},[s.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(s.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",nC,t.toDisplayString(s.name),1)],10,tC))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const en=oe(_1,[["render",oC]]),lC=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:a,round:o,avatarSize:l}=t.toRefs(n),r=t.computed(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${a.value}`]:a.value}});return{avatarShape:a,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:o.value}),getStyle:()=>l.value?{width:l.value,height:l.value}:{width:"50px",height:"50px"}}}}),{create:aC}=_("skeleton"),rC=aC(lC({[Jt.name]:Jt})),sC={key:0},iC={key:1,class:"fox-skeleton"},cC={key:0,class:"fox-skeleton-animation"},dC={class:"fox-skeleton-content"};function uC(e,n,a,o,l,r){const i=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",iC,[e.animated?(t.openBlock(),t.createElementBlock("view",cC)):t.createCommentVNode("",!0),t.createElementVNode("view",dC,[e.avatar?(t.openBlock(),t.createBlock(i,{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),s=>(t.openBlock(),t.createElementBlock("view",{key:s,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockLine")),style:t.normalizeStyle({height:e.height})},null,6))),128))],4)])])):(t.openBlock(),t.createElementBlock("view",sC,[t.renderSlot(e.$slots,"default")]))}const Sa=oe(rC,[["render",uC]]),{create:fC,componentName:mC}=_("collapse"),pC=fC({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref(e.modelValue||(e.accordion?"":[])),l=t.computed(()=>({[mC]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,u,p=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,u,p)},i=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(p=>p!==c);r(u,c,!1)}else{const u=o.value.concat([c]);r(u,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},s=c=>e.accordion?o.value===c:Array.isArray(o.value)?o.value.includes(c):!1;return t.provide("collapseParent",{updateVal:i,isExpanded:s}),{collapseDom:a,classes:l}}});function hC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const Ca=oe(pC,[["render",hC]]),{create:gC,componentName:yC}=_("collapse-item"),bC=gC({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:le.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=t.ref(null),a=t.ref(null),o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const g=yC;return{[g]:!0,[g+"__border"]:e.border}}),i=t.computed(()=>l?l.isExpanded(e.name):!1),s=t.ref(i.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},u=()=>{i.value&&(s.value="auto")},p=()=>{s.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const g=a.value?.offsetHeight;s.value=g?`${g}px`:"auto"})})},d=()=>{const g=a.value?.offsetHeight;s.value=g?`${g}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{s.value="0px"})})};return t.watch(i,g=>{g?p():d()}),{classes:r,renderIcon:wr,wrapperRef:n,contentRef:a,open:p,toggle:c,wrapperHeight:s,expanded:i,onTransitionEnd:u}}}),kC={class:"fox-collapse-item__title-main"},SC={class:"fox-collapse-item__title-main-value"},CC=["innerHTML"],wC={key:2,class:"fox-collapse-item__title-label"},NC={key:0,class:"fox-collapse-item__title-sub"},BC=["innerHTML"],AC={key:0,class:"fox-collapse__item-extraWrapper"},TC={class:"fox-collapse__item-extraWrapper__extraRender"},$C={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function VC(e,n,a,o,l,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]=(...i)=>e.toggle&&e.toggle(...i))},[t.createElementVNode("view",kC,[t.createElementVNode("view",SC,[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,CC)),e.label?(t.openBlock(),t.createElementBlock("view",wC,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",NC,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,BC)),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",AC,[t.createElementVNode("div",TC,[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]=(...i)=>e.onTransitionEnd&&e.onTransitionEnd(...i))},[t.createElementVNode("view",$C,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const wa=oe(bC,[["render",VC]]),EC=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:DC,create:IC,scope:xC}=_("table"),vC=IC({components:{RenderColumn:EC,DownArrow:le.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:o}=ie.useFoxI18n(xC),l=t.reactive({curData:e.data}),r=t.computed(()=>({[DC]:!0})),i=S=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${S.align?S.align:""}`]:!0}),s=S=>S.stylehead?S.stylehead:"",c=S=>S.stylecolumn?S.stylecolumn:"",u=S=>e.columns.filter(b=>b.key===S)[0],p=S=>{const b=e.columns.filter(y=>y.key===S);return b[0].stylecolumn?b[0].stylecolumn:""},d=S=>{S.sorter&&(n("sorter",S),l.curData=typeof S.sorter=="function"?l.curData.sort(S.sorter):S.sorter==="default"?l.curData.sort():l.curData)},g=()=>e.columns.map(S=>[S.key,S.render]);return t.watch(()=>e.data,S=>{l.curData=S.slice()}),{...t.toRefs(l),classes:r,cellClasses:i,getColumnItem:u,getColumnItemStyle:p,handleSorterClick:d,sortDataItem:g,t:o,stylehead:s,stylecolumn:c}}}),qC={class:"fox-table__main__head"},PC={class:"fox-table__main__head__tr"},MC=["onClick"],LC={class:"fox-table__main__body"},zC={key:1},OC={key:0,class:"fox-table__nodata"},FC={key:0,class:"fox-table__nodata__text"},RC={key:1,class:"fox-table__summary"},KC=["innerHTML"];function UC(e,n,a,o,l,r){const i=t.resolveComponent("DownArrow"),s=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",qC,[t.createElementVNode("view",PC,[(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(i,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,MC))),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,p])=>(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 p=="function"?(t.openBlock(),t.createBlock(s,{key:0,slots:[p,c[u]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",zC,t.toDisplayString(c[u]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",OC,[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",FC,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",RC,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,KC)])):t.createCommentVNode("",!0)],2)}const Na=oe(vC,[["render",UC]]),{componentName:HC,create:jC}=_("ellipsis"),WC=jC({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const a=t.ref(null);let o=null,l=0;const r=t.ref(),i=t.reactive({exceeded:!1,expanded:!1}),s=t.computed(()=>({[HC]:!0}));t.watch(()=>e.content,(y,k)=>{y!=k&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!a.value)return;const y=window.getComputedStyle(a.value);o=document.createElement("div"),Array.prototype.slice.apply(y).forEach(m=>{o.style.setProperty(m,y.getPropertyValue(m))}),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 f=g(y.lineHeight==="normal"?e.lineHeight:y.lineHeight);l=Math.floor(f*(Number(e.rows)+.5)+g(y.paddingTop)+g(y.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),u()},u=()=>{if(o.offsetHeight<=l)i.exceeded=!1,document.body.removeChild(o);else{i.exceeded=!0;const y=e.content.length,k=Math.floor((0+y)/2),f=e.direction==="middle"?d([0,k],[k,y]):p(0,y);r.value=f,document.body.removeChild(o)}},p=(y,k)=>{const f=i.expanded?e.collapseText:e.expandText,m=e.content.length;if(k-y<=1)return e.direction==="end"?{leading:e.content.slice(0,y)+e.symbol}:{tailing:e.symbol+e.content.slice(k,m)};const h=Math.round((y+k)/2);return e.direction==="end"?o.innerText=e.content.slice(0,h)+e.symbol+f:o.innerText=f+e.symbol+e.content.slice(h,m),o.offsetHeight<=l?e.direction==="end"?p(h,k):p(y,h):e.direction==="end"?p(y,h):p(h,k)},d=(y,k)=>{const f=i.expanded?e.collapseText:e.expandText,m=e.content.length;if(y[1]-y[0]<=1&&k[1]-k[0]<=1)return{leading:e.content.slice(0,y[0])+e.symbol,tailing:e.symbol+e.content.slice(k[1],m)};const h=Math.floor((y[0]+y[1])/2),C=Math.ceil((k[0]+k[1])/2);return o.innerText=e.content.slice(0,h)+e.symbol+f+e.symbol+e.content.slice(C,m),o.offsetHeight<=l?d([h,y[1]],[k[0],C]):d([y[0],h],[C,k[1]])},g=y=>{if(!y)return 0;const k=y.match(/^\d*(\.\d*)?/);return k?Number(k[0]):0},S=y=>{y==1?(i.expanded=!0,n("change","expand")):(i.expanded=!1,n("change","collapse"))},b=()=>{n("click")};return{...t.toRefs(i),root:a,ellipsis:r,classes:s,clickHandle:S,handleClick:b}}}),YC={key:0},XC={key:1},QC={key:2};function GC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[2]||(n[2]=(...i)=>e.handleClick&&e.handleClick(...i)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",YC,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",XC,[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(i=>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",QC,[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(i=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const Ba=oe(WC,[["render",GC]]),{componentName:ZC,create:JC}=_("animate"),_C=JC({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:a,loop:o,action:l}=t.toRefs(e),r=t.reactive({clicked:!1});let i=t.computed(()=>({"fox-animate__container":!0,[`${ZC}-${a.value}`]:l.value==="initial"||r.clicked?a.value:!1,loop:o.value}));const s=c=>{r.clicked=!0,o.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",c)};return{...t.toRefs(r),classes:i,handleClick:s}}}),ew={class:"fox-animate"};function tw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",ew,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const Aa=oe(_C,[["render",tw]]),{componentName:nw,create:ow}=_("watermark"),lw=ow({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.reactive({base64Url:""}),{zIndex:o,gapX:l,gapY:r,width:i,height:s,rotate:c,image:u,imageWidth:p,imageHeight:d,content:g,fontStyle:S,fontWeight:b,fontColor:y,fontSize:k,fontFamily:f}=e,m=()=>{const C=document.createElement("canvas"),A=window.devicePixelRatio,w=C.getContext("2d"),N=`${(l+i)*A}px`,T=`${(r+s)*A}px`,$=i*A,E=s*A;if(C.setAttribute("width",N),C.setAttribute("height",T),w){if(u){w.translate($/2,E/2),w.rotate(Math.PI/180*Number(c));const D=new Image;D.crossOrigin="anonymous",D.referrerPolicy="no-referrer",D.src=u,D.onload=()=>{w.drawImage(D,-p*A/2,-d*A/2,p*A,d*A),w.restore(),a.base64Url=C.toDataURL()}}else if(g){w.textBaseline="middle",w.textAlign="center",w.translate($/2,E/2),w.rotate(Math.PI/180*Number(c));const D=Number(k)*A;w.font=`${S} normal ${b} ${D}px/${E}px ${f}`,w.fillStyle=y,w.fillText(g,0,0),w.restore(),a.base64Url=C.toDataURL()}}else throw new Error("当前环境不支持Canvas")};m(),t.watch(()=>[o,l,r,i,s,c,u,p,d,g,S,b,y,k,f],()=>{m()});const h=t.computed(()=>{const C=nw;return{[C]:!0,[`${C}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:h}}});function aw(e,n,a,o,l,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 Ta=oe(lw,[["render",aw]]);function rw(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:sw,create:iw}=_("trend-arrow"),cw=iw({components:{TriangleUp:le.TriangleUp,TriangleDown:le.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=t.reactive({rateTrend:e.rate>0}),a=t.computed(()=>({[sw]:!0})),o=t.computed(()=>{const{rate:r,digits:i,showSign:s,showZero:c}=e;n.rateTrend=r>0;const u=Math.abs(r);return!c&&r===0?"--":`${s&&r!==0?n.rateTrend?"+":"-":""}${rw(Number(u),i)}%`}),l=t.computed(()=>{const{dropColor:r,riseColor:i,syncTextColor:s,textColor:c,rate:u}=e;return{color:u===0?c:s?n.rateTrend?i:r:c}});return{...t.toRefs(n),classes:a,calcRate:o,calcStyle:l}}});function dw(e,n,a,o,l,r){const i=t.resolveComponent("TriangleUp"),s=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(i,{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(s,{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 $a=oe(cw,[["render",dw]]),{create:uw}=_("tour"),fw=uw({components:{[en.name]:en,Close:le.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),l=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:p,maskWidth:d,maskHeight:g}=e,{width:S,height:b,left:y,top:k}=o.value,f=[y+S/2,k+b/2],m=Number(d||S),h=Number(g||b);return{width:`${m+ +p[1]*2}px`,height:`${h+ +p[0]*2}px`,top:`${f[1]-h/2-+p[0]}px`,left:`${f[0]-m/2-+p[1]}px`}}),i=p=>{p=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,t.nextTick(()=>{a.showPopup=!0,s()}),n("change",a.active)},s=()=>{const p=document.querySelector(`#${e.steps[a.active].target}`),d=qe(p);o.value=d},c=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},u=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{a.active=0,s()}),t.watch(()=>e.modelValue,p=>{p&&s(),a.active=0,a.showTour=p,a.showPopup=p}),{...t.toRefs(a),classes:l,maskStyle:r,changeStep:i,close:c,handleClickMask:u}}}),mw={key:0,class:"fox-tour-content"},pw={key:0,class:"fox-tour-content-top"},hw={class:"fox-tour-content-inner"},gw={class:"fox-tour-content-bottom"},yw={class:"fox-tour-content-bottom-init"},bw={class:"fox-tour-content-bottom-operate"},kw={key:1,class:"fox-tour-content fox-tour-content-tile"},Sw={class:"fox-tour-content-inner"};function Cw(e,n,a,o,l,r){const i=t.resolveComponent("Close"),s=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(s,{visible:e.showPopup,"onUpdate:visible":n[5]||(n[5]=p=>e.showPopup=p),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",mw,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",pw,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...p)=>e.close&&e.close(...p))},[t.createVNode(i,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",hw,t.toDisplayString(c.content),1),t.createElementVNode("div",gw,[t.createElementVNode("div",yw,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",bw,[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]=p=>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]=(...p)=>e.close&&e.close(...p))},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]=p=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",kw,[t.createElementVNode("div",Sw,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const Va=oe(fw,[["render",Cw]]),{componentName:$2,create:ww,scope:Nw}=_("address"),Bw=ww({components:{Location:le.Location,Location2:le.Location2,Check:le.Check,Close:le.Close,Left:le.Left,[me.name]:me,[Kt.name]:Kt},inheritAttrs:!1,props:{...Fe,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:a}=ie.useFoxI18n(Nw),o=t.ref(null),l=t.ref(null),r=t.ref(e.visible),i=t.ref(e.type),s=t.ref(0),c=t.ref(0),u=t.ref(["province","city","country","town"]),p=t.ref(null),d=t.ref([0,0,0,0]),g=t.computed(()=>{switch(s.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),S=I=>{if(!Array.isArray(I))throw new TypeError("params muse be array.");if(!I.length)return[];I.forEach(x=>{if(!x.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const L=[];return I=I.sort((x,W)=>x.title.localeCompare(W.title)),I.forEach(x=>{const W=L.findIndex(j=>j.title===x.title);W<=-1?L.push({title:x.title,list:[].concat(x)}):L[W].list.push(x)}),L};let b=t.ref([]),y=t.reactive({});const k=t.ref("self"),f=t.ref(20),m=()=>{const I=e.modelValue,L=I.length;if(L>0){if(s.value=L-1,g.value.length==0){s.value=0;return}for(let x=0;x<L;x++){let W=[];switch(x){case 0:W=e.province;break;case 1:W=e.city;break;case 2:W=e.country;break;default:W=e.town}b.value[x]=W.filter(j=>j.id==I[x])[0]}C()}},h=(I,L)=>I&&I.name||s.value<L&&I?I.name:e.columnsPlaceholder[L]||a("select"),C=()=>{N(),t.nextTick(()=>{const I=l.value&&l.value.getElementsByClassName("active")[0];if(I){const L=I.offsetLeft;f.value=L||20}})},A=I=>{const L=s.value;c.value=s.value;const x={custom:u.value[L]};b.value[L]=I;for(let W=L+2;W<4;W++)b.value.splice(W,1);L<3?(s.value=L+1,C(),x.next=u.value[s.value],x.value=I,n("change",x)):(E(),n("update:modelValue"))},w=(I,L)=>{c.value=s.value,h(I,L)&&(s.value=L,C())},N=()=>{const I=p.value,L=c.value,x=d.value[s.value];I?.scrollTop&&(d.value[L]=I?.scrollTop),t.nextTick(()=>{I?.scrollTo({top:x,behavior:"auto"})})},T=I=>{const L=e.existAddress;let x={};L.forEach(W=>{W&&W.selectedAddress&&(x=W),W.selectedAddress=!1}),I.selectedAddress=!0,y=I,n("selected",x,I,L),E()},$=()=>{b.value=[],s.value=0,C()},E=(I="self")=>{k.value=I=="cross"?"cross":"self",r.value=!1},D=()=>{k.value="mask"},P=()=>{const I={addressIdStr:"",addressStr:"",province:b.value[0],city:b.value[1],country:b.value[2],town:b.value[3]},L={data:{},type:i.value};["custom","custom2"].includes(i.value)?([0,1,2,3].forEach(x=>{const W=b.value[x];I.addressIdStr+=`${x?"_":""}${W&&W.id||0}`,I.addressStr+=W&&W.name||""}),L.data=I):L.data=y,$(),k.value=="self"?n("close",L):n("close-mask",{closeWay:k}),n("update:visible",!1)},K=()=>{const I=i.value;i.value=I=="exist"?"custom":"exist",$(),n("switch-module",{type:i.value})},V=(I,L)=>{A(L)};return t.watch(()=>e.visible,I=>{r.value=I}),t.watch(()=>r.value,I=>{I&&m()}),{showPopup:r,privateType:i,tabIndex:s,tabName:u,selectedRegion:b,switchModule:K,closeWay:k,close:P,getTabName:h,nextAreaList:A,regionLine:o,tabRegion:l,lineDistance:f,changeRegionTab:w,selectedExist:T,clickOverlay:D,handClose:E,handleElevatorItem:V,initCustomSelected:m,...t.toRefs(e),t:a,regionList:g,transformData:S,scrollDom:p}}}),Aw={class:"fox-address"},Tw={class:"fox-address__header"},$w={class:"fox-address__header__title"},Vw={key:0,class:"fox-address__custom"},Ew={class:"fox-address__region",ref:"tabRegion"},Dw=["onClick"],Iw={key:0,class:"active fox-address__region-item"},xw={key:0,class:"fox-address__detail"},vw={class:"fox-address__detail-list",ref:"scrollDom"},qw=["onClick"],Pw={key:1,class:"fox-address__elevator-group"},Mw={key:1,class:"fox-address__exist"},Lw={class:"fox-address__exist-group"},zw={class:"fox-address__exist-group-list"},Ow=["onClick"],Fw={class:"fox-address__exist-item-info"},Rw={key:0,class:"fox-address__exist-item-info-name"},Kw={key:1,class:"fox-address__exist-item-info-phone"},Uw={class:"fox-address__exist-item-info-bottom"},Hw={class:"fox-address__exist-choose-btn"};function jw(e,n,a,o,l,r){const i=t.resolveComponent("Left"),s=t.resolveComponent("Close"),c=t.resolveComponent("Check"),u=t.resolveComponent("fox-elevator"),p=t.resolveComponent("Location2"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=g=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=g=>e.showPopup=g),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",Aw,[t.createElementVNode("view",Tw,[t.createElementVNode("view",{class:"fox-address__header-back",onClick:n[0]||(n[0]=(...g)=>e.switchModule&&e.switchModule(...g))},[t.renderSlot(e.$slots,"back-icon",{},()=>[t.withDirectives(t.createVNode(i,{size:"14px"},null,512),[[t.vShow,e.type=="exist"&&e.privateType=="custom"]])])]),t.createElementVNode("view",$w,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]=g=>e.handClose("cross"))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(s,{color:"#cccccc",size:"14px"})])])]),["custom","custom2"].includes(e.privateType)?(t.openBlock(),t.createElementBlock("view",Vw,[t.createElementVNode("view",Ew,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(g,S)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",S==e.tabIndex?"active":""]),key:S,onClick:b=>e.changeRegionTab(g,S)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(g,S)),1)],10,Dw))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",Iw,[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",xw,[t.createElementVNode("ul",vw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(g,S)=>(t.openBlock(),t.createElementBlock("li",{key:S,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==g.id?"active":""]),onClick:b=>e.nextAreaList(g)},[t.createElementVNode("div",null,[e.selectedRegion[e.tabIndex]?.id==g.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(g.name),1)])],10,qw))),128))],512)])):(t.openBlock(),t.createElementBlock("view",Pw,[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",Mw,[t.createElementVNode("div",Lw,[t.createElementVNode("ul",zw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(g,S)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",g.selectedAddress?"active":""]),key:S,onClick:b=>e.selectedExist(g)},[g.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(p,{class:"fox-address-select-icon",size:"13px"})]),g.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",Fw,[g.name?(t.openBlock(),t.createElementBlock("div",Rw,t.toDisplayString(g.name),1)):t.createCommentVNode("",!0),g.phone?(t.openBlock(),t.createElementBlock("div",Kw,t.toDisplayString(g.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Uw,[t.createElementVNode("view",null,t.toDisplayString(g.provinceName+g.cityName+g.countyName+g.townName+g.addressDetail),1)])])],10,Ow))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:n[2]||(n[2]=(...g)=>e.switchModule&&e.switchModule(...g))},[t.createElementVNode("div",Hw,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 Ea=oe(Bw,[["render",jw]]),{componentName:Ww,create:Yw}=_("barrage"),Xw=Yw({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const n=new Date().getTime(),a=!!t.useSlots().default,o=t.computed(()=>({[Ww]:!0}));let l=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),i=null;const s=t.ref(e.danmu),c=t.ref(e.rows),u=t.ref(e.top),p=t.ref(0),d=e.speeds,g=t.ref(0);t.onMounted(()=>{S(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(y(),p.value=0,b("hidden")):document.visibilityState==="visible"&&S()})}),t.onUnmounted(()=>{s.value=[],y()});const S=()=>{g.value=l.value.offsetWidth,a&&b("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${g.value}px`),f()},300)},b=h=>{let A=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const w=[];A&&Array.from(A).forEach(N=>{h=="init"?(N.style.opacity="0",w.push(N)):(N.classList="",N.style={})}),h=="init"&&(s.value=w)},y=()=>{i&&(clearTimeout(i),i=null)};t.watch(()=>e.danmu,h=>{e.danmu.length>0&&(s.value=[...h])});const k=h=>{const C=p.value%s.value.length;!e.loop&&p.value===s.value.length?s.value.splice(s.value.length,0,h):s.value.splice(C,0,h)},f=()=>{y(),i=setTimeout(()=>{m()},e.frequency)},m=()=>{const h=e.loop?p.value%s.value.length:p.value;let C=document.createElement("view");a&&typeof s.value[h]=="object"?(C=s.value[h],C?.classList?.add("fox-barrage__item")):(C.innerHTML=s.value[h],C.classList.add("fox-barrage__item"),r.value.appendChild(C)),t.nextTick(()=>{const A=C.offsetHeight;if(C?.classList?.add("move"),C.style.animationDuration=`${d}ms`,C.style.top=h%c.value*(A+u.value)+20+"px",C.style.opacity="1",!a){const w=C.offsetWidth;C.style.width=w+20+"px"}C.addEventListener("animationend",()=>{a?C.classList.remove("move"):r.value.removeChild(C)}),!(!e.loop&&p.value>=s.value.length-1)&&(p.value++,p.value>=s.value.length&&(p.value=0),C.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:o,danmuList:s,dmBody:l,dmContainer:r,add:k}}});function Qw(e,n,a,o,l,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 Da=oe(Xw,[["render",Qw]]),{componentName:Gw,create:Zw,scope:Jw}=_("signature"),_w=Zw({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:n}){const{toLocaleRefs:a}=ie.useFoxI18n(Jw),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),i=t.computed(()=>({[Gw]:!0,[`${e.customClass}`]:e.customClass})),s=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 m=document.createElement("canvas");return!!(m.getContext&&m.getContext("2d"))},u=()=>{l.value.addEventListener(s.events[0],p,!1)},p=m=>{m.preventDefault(),s.ctx.beginPath(),s.ctx.lineWidth=e.lineWidth,s.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(s.events[1],d,!1),l.value.addEventListener(s.events[2],g,!1),l.value.addEventListener(s.events[3],S,!1)},d=m=>{m.preventDefault();let h=s.isSupportTouch?m.touches[0]:m;n("signing",h);let C=l.value.getBoundingClientRect(),A=h.clientX-C.left,w=h.clientY-C.top;s.ctx.lineTo(A,w),s.ctx.stroke()},g=m=>{m.preventDefault(),n("end"),l.value.removeEventListener(s.events[1],d,!1),l.value.removeEventListener(s.events[2],g,!1)},S=m=>{m.preventDefault(),l.value.removeEventListener(s.events[1],d,!1),l.value.removeEventListener(s.events[2],g,!1)},b=()=>{l.value.addEventListener(s.events[2],g,!1),s.ctx.clearRect(0,0,s.canvasWidth,s.canvasHeight),s.ctx.closePath(),n("clear")},y=()=>{f(l.value)},k=m=>{if(!m)return!0;var h=document.createElement("canvas");return h.width=m.width,h.height=m.height,m?.toDataURL()==h.toDataURL()},f=m=>{let h;switch(e.type){case"png":h=m.toDataURL("image/png");break;case"jpg":h=m.toDataURL("image/jpeg",.8);break}const C=k(m)?"请绘制签名":m,A=k(m)?"":h;n("confirm",C,A)};return t.onMounted(()=>{c()&&(s.ctx=l.value.getContext("2d"),s.canvasWidth=r.value.offsetWidth,s.canvasHeight=r.value.offsetHeight,u())}),{...o,...t.toRefs(s),canvas:l,wrap:r,isCanvasSupported:c,confirm:y,clear:b,classes:i}}}),eN={class:"fox-signature-inner",ref:"wrap"},tN=["height","width"],nN={key:0,class:"fox-signature-unsopport"};function oN(e,n,a,o,l,r){const i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",eN,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,tN),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",nN,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(i,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=s=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(i,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=s=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const Ia=oe(_w,[["render",oN]]),{componentName:lN,create:aN,scope:rN}=_("time-select"),sN=aN({components:{[me.name]:me},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:a}=ie.useFoxI18n(rN),o=t.computed(()=>({[lN]:!0})),l=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),i=t.computed(()=>e.currentTime),s=()=>{n.emit("update:visible",!1),n.emit("select",i.value)};return t.provide("currentKey",r),t.provide("currentTime",i),{classes:o,popStyle:l,props:e,close:s,t:a}}}),iN={class:"fox-time-select__title"},cN={class:"fox-time-select__title__fixed"},dN={key:0},uN={class:"fox-time-select__content"},fN={class:"fox-time-select__content__pannel"},mN={class:"fox-time-select__content__detail"};function pN(e,n,a,o,l,r){const i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{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",iN,[t.createElementVNode("view",cN,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",dN,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",uN,[t.createElementVNode("view",fN,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",mN,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const xa=oe(sN,[["render",pN]]),{componentName:hN,create:gN}=_("time-pannel"),yN=gN({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,n)=>{const a=t.inject("currentKey"),o=t.reactive({currentKey:a}),l=t.computed(()=>({[hN]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=i=>{n.emit("change",i)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function bN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=i=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const va=oe(yN,[["render",bN]]),{componentName:kN,create:SN}=_("time-detail"),CN=SN({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,n)=>{const a=t.inject("currentKey"),o=t.inject("currentTime"),l=t.reactive({currentKey:a,currentTime:o}),r=t.computed(()=>({[kN]:!0})),i=u=>{let p=l.currentTime.find(d=>d.key==l.currentKey);if(p)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":p.list.filter(d=>d===u).length>0}},s=t.computed(()=>e.times.find(u=>u.key==l.currentKey).list),c=u=>{n.emit("select",u)};return{classes:r,...t.toRefs(l),getClass:i,renderData:s,handleTime:c}}}),wN={class:"fox-time-detail__detail fox-time-detail__detail--moring"},NN={class:"fox-time-detail__detail__list"},BN=["onClick"];function AN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",wN,[t.createElementVNode("view",NN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.renderData,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.getClass(i)),key:i,onClick:s=>e.handleTime(i)},t.toDisplayString(i),11,BN))),128))])])],2)}const qa=oe(CN,[["render",AN]]),{componentName:V2,create:TN,scope:$N}=_("sku-header"),VN=TN({props:{goods:{type:Object,default:{}}},emits:[],components:{[et.name]:et},setup(e,{emit:n,slots:a}){const{t:o}=ie.useFoxI18n($N);return{getSlots:r=>a[r],t:o}}}),EN={class:"fox-sku-header"},DN=["src"],IN={class:"fox-sku-header-right"},xN={key:3,class:"fox-sku-header-right-extra"};function vN(e,n,a,o,l,r){const i=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",EN,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,DN),t.createElementVNode("view",IN,[e.getSlots("sku-header-price")?t.renderSlot(e.$slots,"sku-header-price",{key:0}):(t.openBlock(),t.createBlock(i,{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",xN,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const qN=oe(VN,[["render",vN]]),{componentName:E2,create:PN}=_("sku-select"),MN=PN({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:n}){const a=t.ref([]);return t.watch(()=>e.sku,l=>{a.value=[].slice.call(l)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(a.value=[].slice.call(e.sku))}),{skuInfo:a,changeSaleChild:(l,r,i,s)=>{l.checkFlag||l.disable||n("selectSku",{sku:l,skuIndex:r,parentSku:i,parentIndex:s})}}}}),LN={class:"fox-sku-select"},zN={class:"fox-sku-select-item-title"},ON={class:"fox-sku-select-item-skus"},FN=["onClick"];function RN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",LN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:i.id},[t.createElementVNode("view",zN,t.toDisplayString(i.name),1),t.createElementVNode("view",ON,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.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:p=>e.changeSaleChild(c,u,i,s),key:c.name},t.toDisplayString(c.name),11,FN))),128))])]))),128))])}const KN=oe(MN,[["render",RN]]),{componentName:D2,create:UN}=_("sku-stepper"),HN=UN({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:{[nt.name]:nt},setup(e,{emit:n}){const a=t.ref(e.stepperMin);return t.onMounted(()=>{a.value=e.stepperMin}),{goodsCount:a,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,u)=>{n("overLimit",{action:u,value:parseInt(a.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&at(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),jN={class:"fox-sku-stepper"},WN={class:"fox-sku-stepper-title"},YN=["innerHTML"],XN={class:"fox-sku-stepper-count"};function QN(e,n,a,o,l,r){const i=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",jN,[t.createElementVNode("view",WN,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,YN),t.createElementVNode("view",XN,[t.createVNode(i,{modelValue:e.goodsCount,"onUpdate:modelValue":n[0]||(n[0]=s=>e.goodsCount=s),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 GN=oe(HN,[["render",QN]]),{componentName:I2,create:ZN}=_("sku-operate"),JN=ZN({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:a}){return{getBtnDesc:i=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[i],clickBtnOperate:i=>{n("clickBtnOperate",i)},getSlots:i=>a[i]}}}),_N={key:0,class:"fox-sku-operate"},eB={key:0,class:"fox-sku-operate-desc"},tB={key:1,class:"fox-sku-operate-btn"},nB=["onClick"];function oB(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",_N,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",eB,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",tB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.btnOptions,(i,s)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass([`fox-sku-operate-btn-${i}`,"fox-sku-operate-btn-item"]),key:s,onClick:c=>e.clickBtnOperate(i)},t.toDisplayString(e.getBtnDesc(i)),11,nB))),128))]))])):t.createCommentVNode("",!0)}const lB=oe(JN,[["render",oB]]),{componentName:x2,create:aB,scope:rB}=_("sku"),sB=aB({props:{...Fe,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:qN,SkuSelect:KN,SkuStepper:GN,SkuOperate:lB,[me.name]:me},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=ie.useFoxI18n(rB),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),i=t.ref(e.stepperMin);t.watch(()=>e.visible,k=>{r.value=k}),t.watch(()=>r.value,k=>{k==!1&&y()}),t.onMounted(()=>{});const s=k=>a[k],c=k=>{n("select-sku",k)},u=k=>{i.value=k,n("change-stepper",k)},p=k=>{n("add",k)},d=k=>{n("reduce",k)},g=k=>{n("over-limit",k)},S=k=>{n("click-btn-operate",{type:k,value:i.value})},b=k=>{k=="icon"&&n("click-close-icon"),k=="overlay"&&n("click-overlay"),k=="close"&&n("close"),r.value=!1},y=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:b,selectSku:c,changeStepper:u,stepperOverLimit:g,clickBtnOperate:S,add:p,reduce:d,getSlots:s,...l}}}),iB={class:"fox-sku"},cB={class:"fox-sku-content"};function dB(e,n,a,o,l,r){const i=t.resolveComponent("sku-header"),s=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),u=t.resolveComponent("sku-operate"),p=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(p,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=d=>e.showPopup=d),onClickCloseIcon:n[1]||(n[1]=d=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=d=>e.closePopup("overlay")),onClose:n[3]||(n[3]=d=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",iB,[t.renderSlot(e.$slots,"sku-header"),e.getSlots("sku-header")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{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",cB,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{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 Pa=oe(sB,[["render",dB]]),{create:uB}=_("card"),fB=uB({components:{[et.name]:et,[_t.name]:_t},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:a}){return{isHaveSlot:l=>a[l]}}}),mB={class:"fox-card"},pB={class:"fox-card__left"},hB=["src"],gB={class:"fox-card__right"},yB={class:"fox-card__right__title"},bB={key:0,class:"fox-card__right__price"},kB={class:"fox-card__right__other"},SB={class:"fox-card__right__shop"},CB={class:"fox-card__right__shop__name"};function wB(e,n,a,o,l,r){const i=t.resolveComponent("fox-price"),s=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",mB,[t.createElementVNode("div",pB,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,hB)]),t.createElementVNode("div",gB,[t.createElementVNode("div",yB,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",bB,[e.isHaveSlot("price")?t.renderSlot(e.$slots,"price",{key:0}):(t.openBlock(),t.createBlock(i,{key:1,price:e.price},null,8,["price"])),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:2}):(t.openBlock(),t.createBlock(i,{key:3,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",kB,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(s,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(s,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",SB,[t.createElementVNode("div",CB,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Ma=oe(fB,[["render",wB]]),{create:NB,scope:BB}=_("ecard"),AB=NB({components:{[nt.name]:nt},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:a}=ie.useFoxI18n(BB),o=t.ref(null),l=t.ref(null),r=t.ref(""),i=t.ref(e.cardAmountMin),s=t.ref(e.modelValue),c=(g,S)=>{o.value=S,i.value=e.cardAmountMin,l.value=g.price,n("change",g),n("update:modelValue",g.price)},u=g=>{let b=g.target.value.replace(/[^\d]/g,"");r.value=b,l.value=b,Number(b)>e.cardAmountMax&&(r.value=e.cardAmountMax,l.value=e.cardAmountMax),Number(b)<e.cardAmountMin&&(r.value=e.cardAmountMin,l.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},p=()=>{o.value="input",i.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},d=g=>{i.value=g,n("changeStep",i.value,l.value)};return t.watch(()=>e.modelValue,g=>{s.value=g}),{handleClick:c,changeStep:d,change:u,inputClick:p,stepValue:i,currentIndex:o,inputValue:r,money:s,t:a}}}),TB={class:"fox-ecard"},$B={class:"fox-ecard__title"},VB={class:"fox-ecard__list"},EB=["onClick"],DB={class:"fox-ecard__list__input--con"},IB=["placeholder"],xB={class:"fox-ecard__list__step"};function vB(e,n,a,o,l,r){const i=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",TB,[t.createElementVNode("view",$B,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",VB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:u=>e.handleClick(s,c)},t.toDisplayString(s.price),11,EB))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:n[2]||(n[2]=(...s)=>e.inputClick&&e.inputClick(...s))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",DB,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":n[0]||(n[0]=s=>e.inputValue=s),onInput:n[1]||(n[1]=(...s)=>e.change&&e.change(...s)),placeholder:e.placeholder||e.t("placeholder")},null,40,IB),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",xB,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(i,{modelValue:e.stepValue,"onUpdate:modelValue":n[3]||(n[3]=s=>e.stepValue=s),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const La=oe(AB,[["render",vB]]),{create:qB,scope:PB}=_("address-list-item"),MB=qB({components:{Del:le.Del,Edit:le.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(PB);return{delClick:i=>{n("delIcon",i,e.item),i.stopPropagation()},editClick:i=>{n("editIcon",i,e.item),i.stopPropagation()},contentsClick:i=>{n("clickItem",i,e.item),i.stopPropagation()},t:a}}}),LB={class:"fox-address-list-item__info"},zB={class:"fox-address-list-item__info-contact"},OB={class:"fox-address-list-item__info-contact-name"},FB={class:"fox-address-list-item__info-contact-tel"},RB={key:0,class:"fox-address-list-item__info-contact-default"},KB={class:"fox-address-list-item__info-handle"},UB={class:"fox-address-list-item__addr"};function HB(e,n,a,o,l,r){const i=t.resolveComponent("Del"),s=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",LB,[t.createElementVNode("div",zB,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",OB,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",FB,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",RB,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",KB,[t.renderSlot(e.$slots,"content-icon",{},()=>[t.createVNode(i,{name:"del",class:"fox-address-list-item__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(s,{name:"edit",class:"fox-address-list-item__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",UB,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const Hs=oe(MB,[["render",HB]]),{create:jB}=_("address-list-general"),WB=jB({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:Hs,[ze.name]:ze,[jt.name]:jt},setup(e,{emit:n}){const a=()=>t.h(Hs,{item:e.item,onDelIcon(A){i(A)},onEditIcon(A){s(A)},onClickItem(A){c(A)}});let o=null;const l=t.ref(!1),r=t.ref(!1),i=A=>{n("delIcon",A,e.item),A.stopPropagation()},s=A=>{n("editIcon",A,e.item),A.stopPropagation()},c=A=>{l.value||(n("clickItem",A,e.item),A.stopPropagation())},u=A=>{n("longDel",A,e.item),A.stopPropagation()},p=A=>{o=0,r.value=!0,n("longDown",A,e.item)};return{renderCompontent:a,showMaskRef:r,clickItem:c,editClick:s,delClick:i,delLongClick:u,holddownstart:A=>{o=setTimeout(()=>{p(A)},300)},holddownmove:()=>{clearTimeout(o)},holddownend:()=>{clearTimeout(o)},copyCLick:A=>{n("longCopy",A,e.item),A.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:A=>{n("longSet",A,e.item),A.stopPropagation()},maskClick:A=>{o!=0&&(r.value=!1),A.stopPropagation(),A.preventDefault()},swipeDelClick:A=>{n("swipeDel",A,e.item),A.stopPropagation()},swipestart:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),YB={key:0,class:"fox-address-list-general"},XB={class:"fox-address-list-swipe"};function QB(e,n,a,o,l,r){const i=t.resolveComponent("fox-button"),s=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(s,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(i,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>n[5]||(n[5]=[t.createTextVNode("删除")])),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",XB,[(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",YB,[(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 GB=oe(WB,[["render",QB]]),{componentName:ZB,create:JB,scope:_B}=_("address-list"),eA=JB({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:GB,[ze.name]:ze},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(_B),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[ZB]:!0})),i=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(y=>cr(l,y,e.dataOptions)))};t.watch(()=>e.data,()=>i(),{deep:!0});const s=(y,k)=>{n("delIcon",y,k),y.stopPropagation()},c=(y,k)=>{n("editIcon",y,k),y.stopPropagation()},u=(y,k)=>{n("clickItem",y,k),y.stopPropagation()},p=(y,k)=>{n("longCopy",y,k),y.stopPropagation()},d=(y,k)=>{n("longSet",y,k),y.stopPropagation()},g=(y,k)=>{n("longDel",y,k),y.stopPropagation()},S=(y,k)=>{n("swipeDel",y,k),y.stopPropagation()},b=y=>{n("add",y),y.stopPropagation()};return t.onMounted(()=>{i()}),{classes:r,clickDelIcon:s,clickEditIcon:c,clickContentItem:u,clickLongCopy:p,clickLongSet:d,clickLongDel:g,clickSwipeDel:S,addAddress:b,dataArray:o,t:a}}});function tA(e,n,a,o,l,r){const i=t.resolveComponent("general-shell"),s=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(i,{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(s,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const za=oe(eA,[["render",tA]]),{componentName:v2,create:nA}=_("category"),oA=nA({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:n,slots:a}){const o=t.ref(0),l=t.ref(!1);return{getChildList:i=>{o.value=i,n("change",i)},checkIndex:o,categoryLeft:l}}}),lA={class:"fox-category"},aA={class:"fox-category__cateList"},rA={key:0},sA=["onClick"];function iA(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",lA,[t.createElementVNode("div",aA,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",rA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.category,(i,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category__cateListLeft",key:s},[t.createElementVNode("div",{class:t.normalizeClass([e.checkIndex==s?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(s)},t.toDisplayString(i.catName),11,sA)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Oa=oe(oA,[["render",iA]]),{componentName:q2,create:cA}=_("category-pane"),dA=cA({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),uA={class:"fox-category-pane"},fA={key:0,class:"fox-category-pane__cateListRight"},mA={class:"fox-category-pane__childTitle"},pA={key:0,class:"fox-category-pane__childItemList"},hA=["onClick"],gA=["src"],yA={class:"fox-category-pane__skuImg"},bA={key:1,class:"fox-category-pane__cateListRight"},kA={class:"fox-category-pane__childTitle"},SA={key:0,class:"fox-category-pane__childItemList"},CA=["onClick"],wA={class:"fox-category-pane__skuName"},NA={key:2,class:"fox-category-pane__selfItemList"},BA=["onClick"];function AA(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",uA,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",fA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(i,s)=>(t.openBlock(),t.createElementBlock("div",{key:s},[t.createElementVNode("div",mA,t.toDisplayString(i?.catName),1),i?.catType==1?(t.openBlock(),t.createElementBlock("div",pA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:u,onClick:p=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,gA),t.createElementVNode("div",yA,t.toDisplayString(c?.catName),1)],8,hA))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",bA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(i,s)=>(t.openBlock(),t.createElementBlock("div",{key:s},[t.createElementVNode("div",kA,t.toDisplayString(i?.catName),1),i?.catType==1?(t.openBlock(),t.createElementBlock("div",SA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.childCateList,(c,u)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:u,onClick:p=>e.onChange(c)},[t.createElementVNode("div",wA,t.toDisplayString(c?.catName),1)],8,CA))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",NA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.customCategory,(i,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__skuName",key:s,onClick:c=>e.onChange(i)},t.toDisplayString(i?.catName),9,BA))),128))])):t.createCommentVNode("",!0)])}const Fa=oe(dA,[["render",AA]]),{componentName:P2,create:TA}=_("comment-header"),$A=TA({components:{[Bt.name]:Bt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),VA={class:"fox-comment-header__user"},EA={class:"fox-comment-header__user-avter"},DA=["src"],IA={class:"fox-comment-header__user-score"},xA={key:0,class:"fox-comment-header__time"};function vA(e,n,a,o,l,r){const i=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]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",VA,[t.createElementVNode("view",EA,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,DA)):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",IA,[t.createVNode(i,{modelValue:e.info.score,"onUpdate:modelValue":n[0]||(n[0]=s=>e.info.score=s),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",xA,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(i,{modelValue:e.info.score,"onUpdate:modelValue":n[2]||(n[2]=s=>e.info.score=s),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 qA=oe($A,[["render",vA]]),{componentName:M2,create:PA}=_("comment-images"),MA=PA({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:le.Right},emits:["click","clickImages"],setup(e,{emit:n}){const a=t.ref(!1),o=t.ref(1),l=t.ref([]);return t.watch(()=>[e.videos,e.images],i=>{i[0].length>0&&i[0].forEach(s=>{s.type="video"}),l.value=i[0].concat(i[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(i=>{i.type="video"}),l.value=e.videos.concat(e.images)}),{isShowImage:a,initIndex:o,showImages:(i,s)=>{const{videos:c,images:u}=e,p=i=="img"?s-c.length:s;n("clickImages",{type:i,index:p,value:i=="img"?u[p]:c[p]})},totalImages:l}}}),LA=["onClick"],zA=["src"],OA=["onClick"],FA=["src"],RA={key:0,class:"fox-comment-images__mask"};function KA(e,n,a,o,l,r){const i=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,(s,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:s.id,onClick:u=>e.showImages("video",c)},[t.createElementVNode("img",{src:s.mainUrl},null,8,zA),n[0]||(n[0]=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1))],8,LA))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(s,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s.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:s.smallImgUrl?s.smallImgUrl:s.imgUrl},null,8,FA),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",RA,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(i,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,OA)):t.createCommentVNode("",!0)],64))),128))],2)}const UA=oe(MA,[["render",KA]]),{componentName:L2,create:HA,scope:jA}=_("comment-bottom"),WA=HA({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:le.Fabulous,Comment:le.Comment,MoreX:le.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(jA),o=t.ref(!1),l=t.ref([]);return t.onMounted(()=>{const s=["replay","like","more"];e.operation&&e.operation.forEach(c=>{s.includes(c)&&l.value.push(c)})}),{showPopver:o,operate:s=>{s=="more"&&(o.value=!o.value),n("clickOperate",s)},mergeOp:l,handleClick:()=>{n("handleClick")},t:a}}}),YA={class:"fox-comment-bottom"},XA={key:0},QA={class:"fox-comment-bottom__cpx"},GA=["onClick"];function ZA(e,n,a,o,l,r){const i=t.resolveComponent("Fabulous"),s=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",YA,[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",XA,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",QA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(u,p)=>(t.openBlock(),t.createElementBlock("view",{key:p,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${u}`]),onClick:d=>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(i,{key:0})):(t.openBlock(),t.createBlock(s,{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]=d=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,GA))),128))])])}const JA=oe(WA,[["render",ZA]]),{componentName:_A,create:e2,scope:t2}=_("comment"),n2=e2({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:qA,CommentImages:UA,CommentBottom:JA,Right:le.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(t2),o=t.computed(()=>({[_A]:!0})),l=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:o,conEllipsis:l,clickOperate:c=>{n("clickOperate",c)},handleClick:()=>{n("click",e.info)},clickImages:c=>{n("clickImages",c)},t:a}}}),o2=["innerHTML"],l2={class:"fox-comment__follow-title"},a2={class:"fox-comment__follow-com"},r2={key:0,class:"fox-comment__follow-img"};function s2(e,n,a,o,l,r){const i=t.resolveComponent("comment-header"),s=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(i,{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]=(...p)=>e.handleClick&&e.handleClick(...p)),innerHTML:e.info.content},null,12,o2),t.createVNode(s,{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]=(...p)=>e.handleClick&&e.handleClick(...p))},[t.createElementVNode("view",l2,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",a2,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",r2,[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 Ra=oe(n2,[["render",s2]]),i2=[$o,Eo,Do,Io,qo,Be,zo,Oo,Fo,Ro,Uo,vn,Xo,Go,el,nl,Hn,jn,ol,Yn,Xn,al,sl,kt,il,dl,to,fl,pl,Pn,Mn,Ln,yl,bl,kl,ut,Sl,Cl,wl,Nl,Bl,Al,Tl,ze,$l,Vl,dt,me,El,Dl,Il,xl,Rt,vl,ql,Pl,Ml,Ll,zl,Ol,Fl,Rl,Kt,Kl,Ul,Hl,jl,Wl,Yl,Xl,Ut,Jn,zn,Un,Rn,nt,Bt,zt,Ql,Gl,Zl,jt,Jl,_l,ea,Wt,Zn,ta,la,Gn,$t,sa,ia,Jt,ca,da,Ht,ua,fa,ma,Vt,pa,ha,Et,Dt,et,lo,ya,ba,ka,_t,en,Sa,Ca,wa,Na,Ba,Aa,Ta,$a,Va,Ea,Da,Ia,xa,va,qa,Pa,Ma,La,za,Oa,Fa,Ra],c2=new Bi(i2,"4.0.0");B.ActionSheet=Jl,B.ActionsheetItem=fl,B.ActionsheetPane=to,B.Address=Ea,B.AddressList=za,B.Animate=Aa,B.Audio=sa,B.AudioOperate=ia,B.Avatar=Jt,B.AvatarGroup=ca,B.BackTop=_l,B.Badge=ka,B.Barrage=Da,B.Broadcast=Co,B.BroadcastKey=we,B.Button=ze,B.Calendar=Un,B.CalendarItem=nl,B.Card=Ma,B.Cascader=zn,B.CascaderItem=Go,B.Category=Oa,B.CategoryPane=Fa,B.Cell=$l,B.CellGroup=Vl,B.Checkbox=Yn,B.CheckboxGroup=Xn,B.CheckboxItem=al,B.CircleProgress=ua,B.Col=Il,B.Collapse=Ca,B.CollapseItem=wa,B.Comment=Ra,B.Content=Io,B.CountDown=ba,B.CountUp=ya,B.DataItemsKey=pt,B.DateItem=el,B.DatePicker=Rn,B.DateUtils=re,B.Dialog=Wt,B.Divider=vl,B.Domain=pn,B.DomainKey=xe,B.DomainProvider=Al,B.Drag=ea,B.Dropdown=Cl,B.Ecard=La,B.Elevator=Kt,B.Ellipsis=Ba,B.Empty=ma,B.FixedNav=Ll,B.FloatingButton=bl,B.FooterBar=Do,B.FoxActionSheet=Jl,B.FoxActionsheetItem=fl,B.FoxActionsheetPane=to,B.FoxAddress=Ea,B.FoxAddressList=za,B.FoxAnimate=Aa,B.FoxAudio=sa,B.FoxAudioOperate=ia,B.FoxAvatar=Jt,B.FoxAvatarGroup=ca,B.FoxBackTop=_l,B.FoxBadge=ka,B.FoxBarrage=Da,B.FoxButton=ze,B.FoxCalendar=Un,B.FoxCalendarItem=nl,B.FoxCard=Ma,B.FoxCascader=zn,B.FoxCascaderItem=Go,B.FoxCategory=Oa,B.FoxCategoryPane=Fa,B.FoxCell=$l,B.FoxCellGroup=Vl,B.FoxCheckbox=Yn,B.FoxCheckboxGroup=Xn,B.FoxCheckboxItem=al,B.FoxCircleProgress=ua,B.FoxCol=Il,B.FoxCollapse=Ca,B.FoxCollapseItem=wa,B.FoxComment=Ra,B.FoxContent=Io,B.FoxCountDown=ba,B.FoxCountUp=ya,B.FoxDateItem=el,B.FoxDatePicker=Rn,B.FoxDialog=Wt,B.FoxDivider=vl,B.FoxDomainProvider=Al,B.FoxDrag=ea,B.FoxDropdown=Cl,B.FoxEcard=La,B.FoxElevator=Kt,B.FoxEllipsis=Ba,B.FoxEmpty=ma,B.FoxFixedNav=Ll,B.FoxFloatingButton=bl,B.FoxFooterBar=Do,B.FoxGrid=ql,B.FoxGridItem=Pl,B.FoxGroup=qo,B.FoxHeaderBar=Eo,B.FoxHintText=kt,B.FoxImage=El,B.FoxImagePreview=lo,B.FoxIndicator=jl,B.FoxInfiniteLoading=Zn,B.FoxInputItem=Fo,B.FoxInputNumber=nt,B.FoxInputnumberItem=pl,B.FoxItem=Be,B.FoxLayout=Dl,B.FoxLinkItem=il,B.FoxList=da,B.FoxMapping=Bl,B.FoxMenu=zl,B.FoxMenuItem=Ol,B.FoxMessageBox=ut,B.FoxMoneyItem=Ro,B.FoxMoreButton=kl,B.FoxNavbar=Ml,B.FoxNoticeBar=fa,B.FoxNotify=la,B.FoxNumberKeyboard=Zl,B.FoxOverLay=dt,B.FoxPage=$o,B.FoxPagination=Kl,B.FoxPicker=zt,B.FoxPickerItem=Xo,B.FoxPopover=en,B.FoxPopoverDialog=wl,B.FoxPopup=me,B.FoxPopupWrapper=Sl,B.FoxPrice=et,B.FoxProgress=Ht,B.FoxPullRefresh=ta,B.FoxRadio=Hn,B.FoxRadioGroup=jn,B.FoxRadioItem=ol,B.FoxRange=Ut,B.FoxRate=Bt,B.FoxRateItem=dl,B.FoxRollingProvider=Tl,B.FoxRow=xl,B.FoxRowItem=zo,B.FoxSearchBar=Jn,B.FoxShortPassword=Ql,B.FoxSideNavBar=Wl,B.FoxSideNavBarItem=Yl,B.FoxSignature=Ia,B.FoxSkeleton=Sa,B.FoxSku=Pa,B.FoxSlotItem=Oo,B.FoxStep=ha,B.FoxSteps=pa,B.FoxStepsBar=yl,B.FoxSticky=Rt,B.FoxSubSideNavBar=Xl,B.FoxSwipe=jt,B.FoxSwiper=Et,B.FoxSwiperItem=Dt,B.FoxSwitch=Gn,B.FoxSwitchItem=sl,B.FoxTabPane=Hl,B.FoxTabbar=Fl,B.FoxTabbarItem=Rl,B.FoxTable=Na,B.FoxTabs=Ul,B.FoxTabsBar=Pn,B.FoxTabsContainer=Mn,B.FoxTabsPane=Ln,B.FoxTag=_t,B.FoxText=Nl,B.FoxTextarea=vn,B.FoxTextareaItem=Uo,B.FoxTimeDetail=qa,B.FoxTimePannel=va,B.FoxTimeSelect=xa,B.FoxToast=$t,B.FoxTour=Va,B.FoxTrendArrow=$a,B.FoxUploader=Gl,B.FoxVideo=Vt,B.FoxWaterMark=Ta,B.Grid=ql,B.GridItem=Pl,B.Group=qo,B.HeaderBar=Eo,B.HintText=kt,B.Image=El,B.ImagePreview=lo,B.Indicator=jl,B.InfiniteLoading=Zn,B.InputItem=Fo,B.InputNumber=nt,B.InputnumberItem=pl,B.Item=Be,B.Layout=Dl,B.LinkItem=il,B.List=da,B.Mapping=Bl,B.Menu=zl,B.MenuItem=Ol,B.MessageBox=ut,B.MoneyItem=Ro,B.MoreButton=kl,B.Navbar=Ml,B.NoticeBar=fa,B.Notify=la,B.NumberKeyboard=Zl,B.OverLay=dt,B.Page=$o,B.Pagination=Kl,B.Picker=zt,B.PickerItem=Xo,B.Popover=en,B.PopoverDialog=wl,B.Popup=me,B.PopupWrapper=Sl,B.Price=et,B.PriorityPolicy=Sn,B.Progress=Ht,B.PullRefresh=ta,B.Radio=Hn,B.RadioGroup=jn,B.RadioItem=ol,B.Range=Ut,B.Rate=Bt,B.RateItem=dl,B.RollingProvider=Tl,B.Row=xl,B.RowItem=zo,B.SearchBar=Jn,B.ShortPassword=Ql,B.SideNavBar=Wl,B.SideNavBarItem=Yl,B.Signature=Ia,B.Skeleton=Sa,B.Sku=Pa,B.SlotItem=Oo,B.Step=ha,B.Steps=pa,B.StepsBar=yl,B.Sticky=Rt,B.SubSideNavBar=Xl,B.Swipe=jt,B.Swiper=Et,B.SwiperItem=Dt,B.Switch=Gn,B.SwitchItem=sl,B.TabPane=Hl,B.Tabbar=Fl,B.TabbarItem=Rl,B.Table=Na,B.Tabs=Ul,B.TabsBar=Pn,B.TabsContainer=Mn,B.TabsPane=Ln,B.Tag=_t,B.Text=Nl,B.Textarea=vn,B.TextareaItem=Uo,B.TimeDetail=qa,B.TimePannel=va,B.TimeSelect=xa,B.Toast=$t,B.Tour=Va,B.TrendArrow=$a,B.UniqueID=In,B.Uploader=Gl,B.ValidateSchema=pr,B.ValidateSchemaKey=Le,B.Video=Vt,B.WaterMark=Ta,B.cancelRaf=Ka,B.clamp=je,B.clearNonNumber=ko,B.clone=yo,B.compareTo=ho,B.createBroadcast=cn,B.createValidateSchema=un,B.debounce=Ze,B.debounceRef=mi,B.decimalLength=sr,B.default=c2,B.defineBroadcast=li,B.defineConfigDomain=gr,B.defineDataItem=br,B.defineDomain=Bo,B.defineItem=Te,B.definePageState=kr,B.defineSimpleItem=gt,B.deleteGlobalValidator=ci,B.disabledProperty=De,B.divide=po,B.excludeProps=rt,B.extend=lt,B.floatData=cr,B.getGlobalIcons=Bn,B.getGlobalValidateCheckEvents=ur,B.getGlobalValidateResetEvents=mr,B.getPageContentAreaHeight=bn,B.getPageContentAreaWidth=kn,B.getPageFooterAreaHeight=yn,B.getPageHeaderAreaHeight=gn,B.getRootDomain=ht,B.hasSymbol=er,B.includeProps=Se,B.indexOf=ni,B.installRules=yr,B.integerLength=rr,B.isArray=ln,B.isArrayLike=nr,B.isBrowser=Ge,B.isDate=He,B.isESModule=Zs,B.isEmptyString=ue,B.isEqual=Me,B.isFunction=an,B.isHidden=sn,B.isInnerPage=gi,B.isMap=Xs,B.isNil=Za,B.isNumberString=ar,B.isObject=Ie,B.isPlainObject=go,B.isPromise=mt,B.isRegExp=lr,B.isSet=Qs,B.isString=Ja,B.isSubPage=yi,B.isSymbol=Gs,B.isTouch=Ho,B.isWindow=tr,B.lastIndexOf=oi,B.makeArray=ti,B.merge=or,B.multiply=Xa,B.negate=Qa,B.nextTick=_s,B.numberFormat=on,B.objectToString=_a,B.once=pi,B.overrideGlobalIcons=xi,B.overrideGlobalValidateHandler=si,B.padZero=st,B.preventDefault=So,B.property=Ve,B.raf=Ue,B.readonlyProperty=Ee,B.setGlobalValidateCheckEvents=di,B.setGlobalValidateHandler=ri,B.setGlobalValidateMessages=fi,B.setGlobalValidateResetEvents=ui,B.setGlobalValidator=ii,B.throttle=mn,B.toBoolean=be,B.toNumber=pe,B.toPadding=Oe,B.toPx=fe,B.toPxDesc=ge,B.toTypeString=rn,B.toValue=Pe,B.tryTimes=wo,B.typeOf=at,B.unNumberFormat=Ga,B.updatePageState=Ao,B.useBroadcast=vt,B.useDomain=We,B.useExpose=ve,B.useInnerSize=Nn,B.usePageState=hn,B.usePosition=Po,B.useRawTouch=jo,B.useRect=qe,B.useSize=Vo,B.useTouch=tt,B.valueLength=ke,Object.defineProperties(B,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
13
+ `)}}});function Ag(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const xl=oe(Bg,[["render",Ag]]),{create:Tg}=_("sticky"),$g=Tg({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),i=t.computed(()=>l.fixed?{[e.position]:`${r.value}px`,transform:l.transform?`translate3d(0, ${l.transform}px, 0)`:void 0,position:l.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const u=e.container;if(!a.value&&!u)return;const f=Me(a),d=o.value,h=Me(d),S=Me(u);l.height=f.height;const g=()=>{let k=!1;if(e.position==="top")k=u?r.value>f.top&&S.bottom>0:r.value>f.top;else{const p=document.documentElement.clientHeight;k=u?S.bottom>0&&p-r.value-h.height>S.top:p-r.value<f.bottom}return k},y=()=>{if(u)if(e.position==="top"){const k=S.bottom-r.value-h.height;return k<0?k:0}else{const k=document.documentElement.clientHeight,p=S.bottom-(k-r.value);return p<0?p:0}return 0};l.transform=y(),l.fixed=g()};return t.watch(()=>l.fixed,u=>{n("change",u)}),t.onMounted(()=>{c(),fl(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{fl(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function Vg(e,n,a,o,l,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 Ft=oe($g,[["render",Vg]]),{componentName:Eg,create:Dg}=_("divider"),Ig=Dg({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:t.computed(()=>{const o=Eg;let l={[o]:!0},r={};return e.direction==="horizontal"?r={...l,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:r={...l,[`${o}-vertical`]:e.direction==="vertical"},r})}}});function vg(e,n,a,o,l,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 ql=oe(Ig,[["render",vg]]);function xg(e,n){const a=[],o=l=>{Array.isArray(l)&&l.forEach(r=>{if(t.isVNode(r)){if(n){if(r.type&&r.type.name===n){a.push(r);return}}else a.push(r);r.component?.subTree&&o(r.component.subTree.children),r.children&&o(r.children)}})};return o(e),a}function qg(e,n,a){const o=xg(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function Mg(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=i=>{i.proxy&&(a.push(t.markRaw(i)),qg(o,a,n))},r=i=>{a.splice(a.indexOf(t.markRaw(i)),1)},s=Object.assign;return i=>(t.provide(e,s({add:l,remove:r,internalChildren:a},i)),{internalChildren:a})}const{componentName:qs}=_("grid"),Ms=Symbol("grid"),Pg={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}){Mg(Ms,`${qs}-item`)({props:e});const a=t.computed(()=>{const l=qs;return{[l]:!0,[`${l}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const l={};return e.gutter&&(l.paddingLeft=ge(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:Lg}=_("grid"),Ml=Lg(Pg);function zg(e){const n=t.inject(e,null);if(n){const a=t.getCurrentInstance(),{add:o,remove:l,internalChildren:r}=n;o(a),t.onUnmounted(()=>l(a));const s=t.computed(()=>r.indexOf(a));return{parent:n,index:s}}return{parent:null,index:t.ref(-1)}}const{create:Og,componentName:Ps}=_("grid-item"),Rg=Og({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=zg(Ms);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[Ps]:!0})),s=t.computed(()=>{const u={flexBasis:`${100/+l.columnNum}%`};return l.square?u.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(u.paddingRight=ge(l.gutter),o.value>=l.columnNum&&(u.marginTop=ge(l.gutter))),u}),i=t.computed(()=>{const u=`${Ps}__content`;return{[`${u}`]:!0,[`${u}--border`]:l.border,[`${u}--surround`]:l.border&&l.gutter,[`${u}--center`]:l.center,[`${u}--square`]:l.square,[`${u}--reverse`]:l.reverse,[`${u}--${l.direction}`]:!!l.direction,[`${u}--clickable`]:l.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:u=>{n("click",u)}}}}),Fg={class:"fox-grid-item__text"};function Kg(e,n,a,o,l,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",Fg,[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 Pl=oe(Rg,[["render",Kg]]),{componentName:Ug,create:Hg}=_("navbar"),jg=Hg({components:{Left:le.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:a,fixed:o,safeAreaInsetTop:l,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let u=t.ref();const f=t.computed(()=>{const k=Ug;return{[k]:!0,[`${k}--border`]:a.value,[`${k}--fixed`]:o.value,[`${k}--safe-area-inset-top`]:l.value}}),d=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 S(){n("on-click-title")}function g(){n("on-click-icon")}function y(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:f,styles:d,handleLeft:h,handleCenter:S,handleCenterIcon:g,handleRight:y}}}),Wg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Yg={key:1,class:"fox-navbar__text"},Xg={class:"fox-navbar__title"},Qg={key:0,class:"fox-navbar__text"},Gg={key:1,class:"fox-navbar__text"},Zg={class:"fox-navbar__title"},Jg={key:0,class:"fox-navbar__text"};function _g(e,n,a,o,l,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Wg,[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",Yg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Xg,[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",Qg,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",Gg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Zg,[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",Jg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Ll=oe(jg,[["render",_g]]),ey=(e,n,a)=>({components:a,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:l}){const{toLocaleRefs:r}=ie.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:(d=!o.visible)=>{l("update:visible",d)},selected:(d,h)=>{l("selected",{item:d,event:h}),c.value=d.id},current:c}}}),{componentName:ty,create:ny,scope:oy}=_("fixednav"),ly=ny(ey(ty,oy,{[dt.name]:dt,Left:le.Left})),ay={class:"fox-fixednav__list"},ry=["onClick"],sy=["src"],iy={class:"span"},cy={key:0,class:"b"},dy={class:"text"};function uy(e,n,a,o,l,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",ay,[(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:f=>e.selected(c,f),key:c.id||u},[t.createElementVNode("img",{src:c.icon},null,8,sy),t.createElementVNode("view",iy,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",cy,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,ry))),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",dy,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const zl=oe(ly,[["render",uy]]),{componentName:fy,create:my}=_("menu"),py=my({components:{ArrowUp2:le.ArrowUp2,ArrowDown2:le.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.ref(0),r=t.ref(!1),s=()=>{const k=t.reactive([]),p=t.reactive([]);return{children:k,linkChildren:m=>{const N=C=>{C.proxy&&(p.push(C),k.push(C.proxy))},B=C=>{if(C.proxy){let w=p.indexOf(C);w>-1&&p.splice(w,1);let T=k.indexOf(C.proxy);w>-1&&k.splice(T,1)}};t.provide("menuParent",Object.assign({removeLink:B,link:N,children:k,internalChildren:p},m))}}},{children:i,linkChildren:c}=s(),u=t.computed(()=>i.some(k=>k.state.showWrapper)),f=t.computed(()=>({[fy]:!0,"scroll-fixed":r.value})),d=()=>{if(o.value){const k=Me(o);e.direction==="down"?l.value=k.bottom:l.value=window.innerHeight-k.top}};c({props:e,offset:l});const h=k=>{i.forEach((p,b)=>{b===k?(d(),p.toggle()):p.state.showPopup&&p.toggle(!1,{immediate:!0})})},S=k=>Math.max(0,"scrollTop"in k?k.scrollTop:k.pageYOffset),g=()=>{const{scrollFixed:k}=e,p=S(window);r.value=p>(typeof k=="boolean"?30:Number(k))},y=k=>{let p="";const{titleClass:b}=e;return k&&(p+="active"),b&&(p+=` ${b}`),p};return t.onMounted(()=>{const{scrollFixed:k}=e;k&&window.addEventListener("scroll",g)}),t.onUnmounted(()=>{const{scrollFixed:k}=e;k&&window.removeEventListener("scroll",g)}),{toggleItem:h,children:i,opened:u,classes:f,barRef:o,getClasses:y}}}),hy=["onClick"],gy={class:"fox-menu__title-text"},yy={class:"fox-menu__title-icon"};function by(e,n,a,o,l,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:f=>!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",gy,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",yy,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,hy))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Ol=oe(py,[["render",by]]),{componentName:ky,create:Sy}=_("menu-item"),Cy=Sy({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:{[me.name]:me,Check:le.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:a}){const o=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),l=()=>{const S=t.inject("menuParent",null);if(S){const g=t.getCurrentInstance(),{link:y,removeLink:k}=S;return y(g),t.onUnmounted(()=>{k(g)}),{parent:S}}},{parent:r}=l(),s=t.computed(()=>({[ky]:!0})),i=t.computed(()=>{const S={height:r.offset.value+"px"};return r.props.direction==="down"?S:{...S,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const S=e.options?.find(g=>g.value===e.modelValue);return S?S.text:""},state:o,parent:r,toggle:(S=!o.showPopup,g={})=>{S!==o.showPopup&&(o.showPopup=S,o.isShowPlaceholderElement=S,S&&(o.showWrapper=!0,n("open")))},onClick:S=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,S.value!==e.modelValue&&(n("update:modelValue",S.value),n("change",S.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),wy={class:"fox-menu-item__content fox-menu-item__overflow"},Ny=["onClick"];function By(e,n,a,o,l,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",wy,[(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:f=>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({ref_for:!0},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,Ny))),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 Rl=oe(Cy,[["render",By]]),{create:Ay}=_("tabbar"),Ty=Ay({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 a(l){o.value!==l&&(o.value=l,n.emit("update:modelValue",l),n.emit("change",l,o.children[l]))}const o=t.reactive({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:a});return t.provide("parent",o),t.watch(()=>e.modelValue,l=>{o.value=l}),{changeIndex:a}}});function $y(e,n,a,o,l,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 Fl=oe(Ty,[["render",$y]]),{create:Vy}=_("tabbar-item"),Ey=Vy({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 a=t.inject("parent"),o=t.reactive({size:a.size,inactiveColor:a.inactiveColor,activeColor:a.activeColor,value:a.value,index:0}),l=t.getCurrentInstance();l!==null&&(u=>{if(u.proxy){let f=a.children.length;o.index=f;let d=Object.assign(u.proxy,{index:f});a.children.push(d)}})(l);const r=t.computed(()=>o.index===o.value);function s(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}const i=t.computed(()=>a?a.value:null);return t.watch(i,c=>{o.value=c}),{state:o,active:r,change:s}}}),Dy={class:"fox-tabbar-item_icon-box"},Iy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},vy={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},xy={key:1,class:"fox-tabbar-item_icon-box_dot"},qy={key:2},My={key:0};function Py(e,n,a,o,l,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",Dy,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",Iy,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",vy,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",xy)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",qy,[(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",My,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Kl=oe(Ey,[["render",Py]]),{componentName:Ly,create:zy}=_("elevator"),Oy=zy({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const a=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}),l=t.computed(()=>({[Ly]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>a.value.clientHeight),i=(p,b)=>p.getAttribute("data-"+b),c=p=>{t.nextTick(()=>{!o.listGroup.includes(p)&&p!=null&&o.listGroup.push(p)})},u=()=>{let p=0;o.listHeight.push(p);for(let b=0;b<o.listGroup.length;b++){let m=o.listGroup[b];p+=Math.floor(m.clientHeight),o.listHeight.push(p)}},f=p=>{!p&&p!==0||(p<0&&(p=0),p>o.listHeight.length-2&&(p=o.listHeight.length-2),o.codeIndex=p,a.value.scrollTo(0,o.listHeight[p]))},d=p=>{o.scrollStart=!0;let b=i(p.target,"index"),m=p.touches[0];o.touchState.y1=m.pageY,o.anchorIndex=+b,o.codeIndex=+b,f(+b)},h=p=>{let b=p.touches[0];o.touchState.y2=b.pageY;let m=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+m,f(o.codeIndex)},S=()=>{o.scrollStart=!1},g=(p,b)=>{n.emit("click-item",p,b),o.currentData=b,o.currentKey=p},y=p=>{n.emit("click-index",p)},k=p=>{let m=p.target.scrollTop;const N=o.listHeight;o.scrollY=m;for(let B=0;B<N.length-1;B++){let C=N[B],w=N[B+1];if(o.scrollY>=C&&o.scrollY<w){o.currentIndex=B,o.diff=w-o.scrollY;return}}o.currentIndex=N.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",k)}),Ie({scrollTo:f}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(u)}),t.watch(()=>o.diff,p=>{const b=o.listHeight;let m=p>0&&p<e.titleHeight?p-e.titleHeight:0;o.scrollY+s.value===b[b.length-1]&&m!==0&&(m=0),o.fixedTop!==m&&(o.fixedTop=m)}),t.watch(()=>o.currentIndex,p=>{n.emit("change",p)}),{classes:l,...t.toRefs(o),fixedStyle:r,clientHeight:s,setListGroup:c,listview:a,touchStart:d,touchMove:h,touchEnd:S,handleClickItem:g,handleClickIndex:y}}}),Ry={class:"fox-elevator__list__item__code"},Fy=["onClick"],Ky=["innerHTML"],Uy={class:"fox-elevator__fixed-title"},Hy={class:"fox-elevator__bars__inner"},jy=["data-index","onClick"];function Wy(e,n,a,o,l,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",Ry,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,Ky))],10,Fy))),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",Uy,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",Hy,[(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,jy))),128))])],32)],2)}const Kt=oe(Oy,[["render",Wy]]),{componentName:E2,create:Yy,scope:Xy}=_("pagination"),Qy=Yy({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:a}=ie.useFoxI18n(Xy),o=a(e,["prevText","nextText"]),{modelValue:l,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:S,itemsPerPage:g}=t.toRefs(e),y=+h.value||Math.ceil(+S.value/+g.value);return Math.max(1,y)}),u=(h,S)=>{h>c.value||h<1||(h!=l.value&&n("update:modelValue",h),S&&n("change",h))},f=(h,S,g=!1)=>({number:h,text:S,active:g}),d=t.computed(()=>{if(r.value=="simple")return;let h=[];const S=c.value,g=+s.value;let y=1,k=S;const p=S>g;p&&(y=Math.max(l.value-Math.floor(g/2),1),k=y+g-1,k>S&&(k=S,y=k-g+1));for(var b=y;b<=k;b++){const m=f(b,b,l.value==b);h.push(m)}if(p&&g>0&&i.value){if(y>1){const m=f(y-1,"...");h.unshift(m)}if(k<S){const m=f(k+1,"...");h.push(m)}}return h});return t.watchEffect(()=>{u(l.value,!1)}),{...o,modelValue:l,select:u,countRef:c,mode:r,pages:d,forceEllipses:i}}}),Gy={class:"fox-pagination"},Zy={key:0,class:"fox-pagination-contain"},Jy=["onClick"],_y={key:1,class:"fox-pagination-contain"},e0={class:"fox-pagination-simple"};function t0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Gy,[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",Zy,[(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,Jy))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",_y,[t.createElementVNode("view",e0,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 Ul=oe(Qy,[["render",t0]]),n0=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=tt();let u="";const f=(h,S)=>{let g=h;switch(e.direction=="horizontal"?(u=h>0?"right":"left",g=Math.abs(g)/r.value.width*100):(u=S>0?"bottom":"top",g=S,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,f(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:l}};class o0{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:l0}=_("tabs"),a0=l0({components:{[Ft.name]:Ft,JoySmile:le.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=V=>{V.forEach((D,M)=>{let K=D.type;if(K=K.name||K,K=="fox-tab-pane"){let v=new o0;if(D.props?.title||D.props?.["pane-key"]||D.props?.paneKey){let E=at(D.props?.["pane-key"]),L=E=="number"||E=="string"?String(D.props?.["pane-key"]):null,I=at(D.props?.paneKey),W=I=="number"||I=="string"?String(D.props?.paneKey):null;v.title=D.props?.title,v.paneKey=L||W||String(M),v.disabled=D.props?.disabled}r.value.push(v)}else{if(D.children==" ")return;Array.isArray(D.children)&&s(D.children)}})},i=t.ref(e.modelValue||0),c=V=>{let D=r.value.findIndex(M=>M.paneKey==V);r.value.length==0||D==-1||(i.value=D)},u=t.computed(()=>e.titleScroll&&e.direction==="vertical"),f=t.ref(),d=t.ref([]),h=V=>{const D=f.value,M=d.value;if(!D||!M||!M[i.value])return;const K=M[i.value];let v=0;e.direction==="vertical"?v=K.offsetTop-D.offsetTop+10-(D.offsetHeight-K.offsetHeight)/2:v=K.offsetLeft-(D.offsetWidth-K.offsetWidth)/2,S(D,v,.3,e.direction)},S=(V,D,M,K)=>{let v=0;const E=K==="horizontal"?V.scrollLeft:V.scrollTop,L=Math.round(M*1e3/16);function I(){K==="horizontal"?V.scrollLeft+=(D-E)/L:V.scrollTop+=(D-E)/L,++v<L&&Ue(I)}I()},g=(V=a.default?.())=>{r.value=[],V=V?.filter(D=>typeof D.children!="string"),V&&V.length&&s(V),c(e.modelValue),t.nextTick(()=>{h()})},y=V=>{l=V.fixed};t.watch(()=>a.default?.(),V=>{g(V)});const k=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,V=>{if(c(V),h(),l){let D=Me(o.value).top+k(),M=Math.ceil(D-e.top);window.scrollTo({top:M,behavior:"smooth"})}}),t.onMounted(g),t.onActivated(g);const p={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,p.updateValue(r.value[i.value])},prev:()=>{i.value-=1,p.updateValue(r.value[i.value])},updateValue:V=>{n("update:modelValue",V.paneKey),n("change",V)},tabChange:(V,D)=>{n("click",V),!(V.disabled||i.value==D)&&(i.value=D,p.updateValue(V))},setTabItemRef:(V,D)=>{d.value[D]=V}},{tabsContentRef:b,touchState:m,touchMethods:N}=n0(e,p),B=t.computed(()=>{let V=i.value*100;m.moving&&(V+=m.offset);let D={transform:e.direction=="horizontal"?`translate3d(-${V}%, 0, 0)`:`translate3d( 0,-${V}%, 0)`,transitionDuration:m.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(D={}),D}),C=t.computed(()=>({background:e.background})),w=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),T=t.computed(()=>{if(!e.titleGutter)return{};const V=ge(e.titleGutter);return e.direction==="vertical"?{marginTop:V,marginBottom:V}:{marginLeft:V,marginRight:V}}),$=t.computed(()=>a.fixedTitle);return{navRef:f,tabsContentRef:b,titles:r,contentStyle:B,tabsNavStyle:C,titleStyle:T,tabsActiveStyle:w,container:o,getScrollY:u,onStickyScroll:y,...p,...N,hasFixedTitle:$}}}),r0=["onClick"],s0={key:0,class:"fox-tabs__titles-fixed-item"},i0=["onClick"],c0={key:0,class:"fox-tabs__titles-fixed-item"};function d0(e,n,a,o,l,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:f=>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,r0))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",s0,[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:f=>e.tabChange(c,u),key:c.paneKey,ref_for:!0,ref:f=>e.setTabItemRef(f,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,i0))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",c0,[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 Hl=oe(a0,[["render",d0]]),{create:u0}=_("tab-pane"),f0=u0({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=t.inject("tabsOpiton"),o=t.computed(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:o}}});function m0(e,n,a,o,l,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 jl=oe(f0,[["render",m0]]),{componentName:Ls,create:p0}=_("indicator"),h0=p0({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:a}=t.toRefs(e);return{classes:t.computed(()=>{const l=Ls;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Ls,padZero:st}}});function g0(e,n,a,o,l,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 Wl=oe(h0,[["render",g0]]),{componentName:y0,create:b0}=_("side-navbar"),k0=b0({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=t.ref(null),a=t.reactive({count:1,observer:null}),o=t.computed(()=>({[y0]:!0})),l=(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")||l(Array.from(u.children[1].children),++a.count))}a.count--},r=()=>{let s=n.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),l(s))};return t.onMounted(()=>{r(),a.observer=new MutationObserver(function(){a.count=1,r()}),a.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(a),list:n,classes:o}}}),S0={class:"fox-side-navbar__content"},C0={class:"fox-side-navbar__content__list",ref:"list"};function w0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",S0,[t.createElementVNode("view",C0,[t.renderSlot(e.$slots,"default")],512)])],2)}const Yl=oe(k0,[["render",w0]]),{componentName:N0,create:B0}=_("side-navbar-item"),A0=B0({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[N0]:!0})),handleClick:()=>{n.emit("click")}})}),T0=["ikey"],$0={class:"fox-side-navbar-item__title"};function V0(e,n,a,o,l,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",$0,t.toDisplayString(e.title),1)],10,T0)}const Xl=oe(A0,[["render",V0]]),{componentName:E0,create:D0}=_("sub-side-navbar"),I0=D0({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:le.ArrowDown2,ArrowUp2:le.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=t.reactive({direction:""}),o=t.computed(()=>({[E0]:!0})),l=t.computed(()=>({height:a.direction?"0px":"auto"})),r=()=>{n.emit("title-click"),a.direction=a.direction?"":"up"};return t.onMounted(()=>{a.direction=e.open?"":"up"}),{...t.toRefs(a),classes:o,style:l,handleClick:r}}}),v0=["ikey"],x0={class:"fox-sub-side-navbar__title__text"},q0={class:"fox-sub-side-navbar__title__icon"};function M0(e,n,a,o,l,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",x0,t.toDisplayString(e.title),1),t.createElementVNode("span",q0,[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,v0)}const Ql=oe(I0,[["render",M0]]),{componentName:P0,create:L0}=_("range"),z0=L0({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n}){const a=t.ref(0);let o,l;const r=t.ref(),s=t.ref(),i=tt(),c=t.computed(()=>{const{marks:v,max:E,min:L}=e;return Object.keys(v).map(parseFloat).sort((j,O)=>j-O).filter(j=>j>=L&&j<=E)}),u=t.computed(()=>Number(e.max)-Number(e.min)),f=t.computed(()=>{const v=P0;return{[v]:!0,[`${v}-disabled`]:e.disabled,[`${v}-vertical`]:e.vertical,[`${v}-show-number`]:!e.hiddenRange}}),d=t.computed(()=>{const v="fox-range-container";return{[v]:!0,[`${v}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),S=t.computed(()=>({borderColor:e.buttonColor})),g=v=>!!e.range&&Array.isArray(v),y=()=>{const{modelValue:v,min:E}=e;return g(v)?`${(v[1]-v[0])*100/u.value}%`:`${(v-Number(E))*100/u.value}%`},k=()=>{const{modelValue:v,min:E}=e;return g(v)?`${(v[0]-Number(E))*100/u.value}%`:"0%"},p=t.computed(()=>e.vertical?{height:y(),top:k(),background:e.activeColor,transition:s.value?"none":void 0}:{width:y(),left:k(),background:e.activeColor,transition:s.value?"none":void 0}),b=v=>{const E="fox-range-mark",{modelValue:L,max:I,min:W}=e;let j=Number(W),O=Number(I);if(e.range){const[H,q]=L;j=H,O=q}else O=L;let ee=v<=O&&v>=j;return{[`${E}-text`]:!0,[`${E}-text-active`]:ee}},m=v=>{const{min:E,vertical:L}=e;let I={left:`${(v-Number(E))/u.value*100}%`};return L&&(I={top:`${(v-Number(E))/u.value*100}%`}),I},N=v=>{const{modelValue:E,max:L,min:I}=e;let W=Number(I),j=Number(L);if(e.range){const[H,q]=E;W=H,j=q}return{background:v<=j&&v>=W?e.activeColor:e.inactiveColor}},B=v=>{const{min:E,max:L,step:I}=e;return v=Math.max(+E,Math.min(v,+L)),Math.round(v/+I)*+I},C=(v,E)=>JSON.stringify(v)===JSON.stringify(E),w=v=>v[0]>v[1]?v.slice(0).reverse():v,T=(v,E)=>{g(v)?v=w(v).map(B):v=B(v),C(v,e.modelValue)||n("update:modelValue",v),E&&!C(v,o)&&n("change",v)},$=v=>{if(e.disabled)return;const{min:E,modelValue:L}=e,I=Me(r);let W=v.clientX-I.left,j=I.width;e.vertical&&(W=v.clientY-I.top,j=I.height);const O=Number(E)+W/j*u.value;if(g(L)){const[ee,H]=L,q=(ee+H)/2;O<=q?T([O,H],!0):T([ee,O],!0)}else T(O,!0)},V=v=>{e.disabled||(i.start(v),l=e.modelValue,g(l)?o=l.map(B):o=B(l),s.value="start")},D=v=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(v),s.value="draging";const E=Me(r);let L=i.deltaX.value,I=E.width,W=L/I*u.value;e.vertical&&(L=i.deltaY.value,I=E.height,W=L/I*u.value),g(o)?l[a.value]=o[a.value]+W:l=o+W,T(l),v.stopPropagation(),v.preventDefault()},M=()=>{e.disabled||(s.value==="draging"&&(T(l,!0),n("drag-end")),s.value="")},K=v=>ln(e.modelValue)&&typeof v=="number"?e.modelValue[v]:Number(e.modelValue);return{root:r,classes:f,wrapperStyle:h,buttonStyle:S,onClick:$,onTouchStart:V,onTouchMove:D,onTouchEnd:M,...t.toRefs(e),barStyle:p,curValue:K,buttonIndex:a,containerClasses:d,markClassName:b,marksStyle:m,marksList:c,tickStyle:N}}}),O0={key:0,class:"fox-range-min"},R0={key:0,class:"fox-range-mark"},F0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],K0={key:0,class:"number"},U0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],H0={key:0,class:"number"},j0={key:1,class:"fox-range-max"};function W0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",O0,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",R0,[(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",K0,t.toDisplayString(e.curValue(s)),1))],4))],42,F0)),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",H0,t.toDisplayString(e.curValue()),1))],4))],40,U0))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",j0,t.toDisplayString(+e.max),1))],2)}const Ut=oe(z0,[["render",W0]]),{create:Y0,scope:X0}=_("short-password"),Q0=Y0({components:{[me.name]:me,Tips:le.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:a}=ie.useFoxI18n(X0),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>u(Number(e.length))),s=t.ref(e.visible),i=d=>{d.stopPropagation(),n("focus")};t.watch(()=>e.visible,d=>{s.value=d}),t.watch(()=>e.modelValue,d=>{l.value=d,String(d).length===r.value&&n("complete",d)});const c=()=>{n("update:visible",!1),n("close")},u=d=>Math.min(Math.max(4,d),6);return{comLen:r,realInput:l,onTouchStart:i,range:u,close:c,onTips:()=>{n("tips")},show:s,...o}}}),G0={class:"fox-short-password-title"},Z0={class:"fox-short-password-subtitle"},J0={class:"fox-short-password-wrapper"},_0={key:0,class:"fox-short-password__item-icon"},eb={class:"fox-short-password__message"},tb={class:"fox-short-password--error"},nb={key:0,class:"fox-short-password--forget"};function ob(e,n,a,o,l,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",G0,t.toDisplayString(e.title),1),t.createElementVNode("view",Z0,t.toDisplayString(e.desc),1),t.createElementVNode("div",J0,[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",_0)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",eb,[t.createElementVNode("view",tb,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",nb,[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 Gl=oe(Q0,[["render",ob]]);class lb{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let ab=class{options;constructor(n){this.options=n}upload(){const n=this.options,a=new XMLHttpRequest;if(a.timeout=n.timeout,a.upload){a.upload.addEventListener("progress",o=>{n.onProgress?.(o,n)},!1),a.onreadystatechange=()=>{a.readyState===4&&(a.status==n.xhrState?n.onSuccess?.(a.responseText,n):n.onFailure?.(a.responseText,n))},a.withCredentials=n.withCredentials,a.open(n.method,n.url,!0);for(const[o,l]of Object.entries(n.headers))a.setRequestHeader(o,l);n.onStart?.(n),n.beforeXhrUpload?n.beforeXhrUpload(a,n):a.send(n.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}};class rb{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const zs=(e,{args:n=[],done:a,canceled:o})=>{if(e){const l=e.apply(null,n);mt(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:sb}=_("progress"),ib=sb({components:{Checked:le.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,a=t.ref(e.strokeWidth+"px"),o=t.ref(),l=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:a,percentage:r,bgStyle:s,textStyle:i,progressOuter:o,insideText:l,slotDefault:n}}}),cb={class:"fox-progress"},db={key:0,class:"fox-progress-text"};function ub(e,n,a,o,l,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",cb,[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",db,[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 Ht=oe(ib,[["render",ub]]),{componentName:fb,create:mb,scope:pb}=_("uploader"),hb=mb({components:{[Ht.name]:Ht,Photograph:le.Photograph,Failure:le.Failure,Loading:le.Loading,Del:le.Del,Link:le.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(pb),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[fb]:!0})),s=()=>{let b={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(b.capture="camera"),t.h("input",b)},i=b=>{b.value=""},c=b=>{n("file-item-click",{fileItem:b})},u=(b,m)=>{const N=new lb;N.url=e.url,N.formData=b.formData,N.timeout=e.timeout*1,N.method=e.method,N.xhrState=e.xhrState,N.headers=e.headers,N.withCredentials=e.withCredentials,N.beforeXhrUpload=e.beforeXhrUpload;try{N.sourceFile=b.formData.get(e.name)}catch{}N.onStart=C=>{b.status="ready",b.message=a("readyUpload"),f(m),n("start",C)},N.onProgress=(C,w)=>{b.status="uploading",b.message=a("uploading"),b.percentage=(C.loaded/C.total*100).toFixed(0),n("progress",{event:C,option:w,percentage:b.percentage})},N.onSuccess=(C,w)=>{b.status="success",b.message=a("success"),n("success",{responseText:C,option:w,fileItem:b}),n("update:fileList",o)},N.onFailure=(C,w)=>{b.status="error",b.message=a("error"),n("failure",{responseText:C,option:w,fileItem:b})};let B=new ab(N);e.autoUpload?B.upload():l.push(new Promise((C,w)=>{C(B)}))},f=(b=-1)=>{b>-1?l.splice(b,1):(l=[],o.splice(0,o.length))},d=()=>{Promise.all(l).then(b=>{b.forEach(m=>m.upload())})},h=b=>{b.forEach((m,N)=>{const B=new FormData;for(const[w,T]of Object.entries(e.data))B.append(w,T);B.append(e.name,m);const C=t.reactive(new rb);if(C.name=m.name,C.status="ready",C.type=m.type,C.formData=B,C.message=a("waitingUpload"),u(C,N),e.isPreview&&m.type.includes("image")){const w=new FileReader;w.onload=T=>{C.url=T.target.result,o.push(C)},w.readAsDataURL(m)}else o.push(C)})},S=b=>{const m=e.maximum*1,N=e.maximize*1,B=new Array;b=b.filter(w=>w.size>N?(B.push(w),!1):!0),B.length&&n("oversize",B);let C=b.length+o.length;return C>m&&b.splice(b.length-(C-m)),b},g=(b,m)=>{o.splice(m,1),n("delete",{file:b,fileList:o,index:m})},y=(b,m)=>{f(m),zs(e.beforeDelete,{args:[b,o],done:()=>g(b,m)})},k=b=>{if(e.disabled)return;const m=b.target;let{files:N}=m;e.beforeUpload?e.beforeUpload(N).then(B=>p(B)):p(N),n("change",{fileList:o,event:b}),e.clearInput&&i(m)},p=b=>{const m=S(new Array().slice.call(b));h(m)};return{onChange:k,onDelete:y,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:f,submit:d,renderInput:s}}}),gb={key:0,class:"fox-uploader__slot"},yb={key:0,class:"fox-uploader__preview-img"},bb={key:0,class:"fox-uploader__preview__progress"},kb={class:"fox-uploader__preview__progress__msg"},Sb=["onClick"],Cb=["onClick","src"],wb={key:3,class:"fox-uploader__preview-img__file"},Nb=["onClick"],Bb={class:"file__name_tips"},Ab={class:"tips"},Tb={key:1,class:"fox-uploader__preview-list"},$b=["onClick"],Vb={class:"file__name_tips"};function Eb(e,n,a,o,l,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),u=t.resolveComponent("Del"),f=t.resolveComponent("fox-progress"),d=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",gb,[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,S)=>(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",yb,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",bb,[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",kb,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:g=>e.onDelete(h,S)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,Sb)):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,Cb)):(t.openBlock(),t.createElementBlock("view",wb,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",Bb,t.toDisplayString(h.name),1)],8,Nb)])),t.createElementVNode("view",Ab,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",Tb,[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",Vb,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,S)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,$b),h.status=="uploading"?(t.openBlock(),t.createBlock(f,{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(d,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const Zl=oe(hb,[["render",Eb]]),Db="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwO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components:{[me.name]:me},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:a}=ie.useFoxI18n(xb),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:p}=e;let b={id:"lock",type:"lock"},m=Array.isArray(p)?p:[p];return m.length===1&&(b={id:m[0],type:"custom"}),[...c(),b,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const p=[];for(let b=1;b<=9;b++)p.push({id:b,type:"number"});return e.randomKeys?p.sort(()=>Math.random()>.5?1:-1):p}function u(){const p=c(),{customKey:b}=e;let m=Array.isArray(b)?b:[b];return m.length>2&&(m=[m[0],m[1]]),m.length==2&&e.title&&e.type!="rightColumn"&&(m=[m[0]]),m.length===1?e.title&&e.type!="rightColumn"?p.push({id:m[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):p.push({id:0,type:"number"},{id:m[0],type:"custom"}):m.length===2&&p.push({id:m[0],type:"custom"},{id:0,type:"number"},{id:m[1],type:"custom"}),p}const f=t.computed(()=>e.type=="rightColumn"||e.title!=""?u():i()),d=()=>{e.visible&&n("blur")},h=p=>{const b=s.value;b&&!b.contains(p.target)&&d()};t.watch(()=>e.visible,p=>{r.value=p,p?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function S(p,b){b.stopPropagation(),l.value=p.id,(p.type=="number"||p.type=="custom")&&(n("input",p.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+p.id)),p.type=="lock"&&k(),p.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function g(p){p.stopPropagation()}function y(p){p.preventDefault(),l.value=void 0}function k(){n("update:visible",!1),n("close")}return{...o,delImg:Db,lockImg:Ib,clickKeyIndex:l,defaultKey:i,closeBoard:k,onTouchEnd:y,onTouchMove:g,onTouchstart:S,keysList:f,genCustomKeys:u,getBasicKeys:c,root:s,show:r}}}),Mb={ref:"root"},Pb={class:"fox-number-keyboard"},Lb={key:0,class:"fox-number-keyboard__header"},zb={class:"fox-number-keyboard__title"},Ob={class:"fox-number-keyboard__body"},Rb={class:"fox-number-keyboard__keys"},Fb=["onTouchstart"],Kb=["src"],Ub=["src"],Hb={key:0,class:"fox-number-keyboard__sidebar"},jb={class:"fox-key__wrapper"},Wb=["src"];function Yb(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",Mb,[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",Pb,[e.title?(t.openBlock(),t.createElementBlock("div",Lb,[t.createElementVNode("h3",zb,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",Ob,[t.createElementVNode("div",Rb,[(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,Kb)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,Ub)):t.createCommentVNode("",!0)],42,Fb)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",Hb,[t.createElementVNode("div",jb,[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,Wb)],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 Jl=oe(qb,[["render",Yb]]),{componentName:Xb,create:Qb}=_("swipe"),Gb=Qb({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 a=t.computed(()=>({[Xb]:!0})),o=b=>b.value?.clientWidth||0,l=t.ref(),r=t.computed(()=>o(l)),s=t.ref(),i=t.computed(()=>o(s));let c=!1,u="",f="";const d=t.reactive({offset:0,moving:!1}),h=(b="")=>{c=!0,b&&(d.offset=b==="left"?-i.value:r.value),n("open",{name:e.name,position:u||b})},S=()=>{d.offset=0,c=!1,n("close",{name:e.name,position:u})},g=t.computed(()=>({transform:`translate3d(${d.offset}px, 0, 0)`})),y=b=>{u=b>0?"right":"left";let m=b;switch(u){case"left":c&&f===u?m=-i.value:m=Math.abs(b)>i.value?-i.value:b;break;case"right":c&&f===u?m=r.value:m=Math.abs(b)>r.value?r.value:b;break}d.offset=m},k=tt();return{classes:a,touchStyle:g,...{onTouchStart(b){e.disabled||k.start(b)},onTouchMove(b){e.disabled||(k.move(b),k.isHorizontal()&&(d.moving=!0,y(k.deltaX.value),e.touchMovePreventDefault&&b.preventDefault(),e.touchMoveStopPropagation&&b.stopPropagation()))},onTouchEnd(){if(d.moving)switch(d.moving=!1,f=u,u){case"left":Math.abs(d.offset)<=i.value/2?S():(d.offset=-i.value,h());break;case"right":Math.abs(d.offset)<=r.value/2?S():(d.offset=r.value,h());break}}},leftRef:l,rightRef:s,open:h,close:S}}}),Zb={class:"fox-swipe__left",ref:"leftRef"},Jb={class:"fox-swipe__content"},_b={class:"fox-swipe__right",ref:"rightRef"};function ek(e,n,a,o,l,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",Zb,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",Jb,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",_b,[t.renderSlot(e.$slots,"right")],512)],38)}const jt=oe(Gb,[["render",ek]]),{componentName:tk,create:nk}=_("action-sheet"),ok=nk({components:{[me.name]:me,Loading:le.Loading},props:{...Re,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 a=!!t.useSlots().default,o=t.computed(()=>({[tk]:!0}));return{slotDefault:a,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}}}),lk={key:0,class:"fox-action-sheet__title"},ak={key:1},rk={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},sk={key:1,class:"fox-action-sheet__menu"},ik=["onClick"],ck={key:1},dk={class:"fox-action-sheet__subdesc"};function uk(e,n,a,o,l,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",lk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",ak,[e.description?(t.openBlock(),t.createElementBlock("view",rk,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",sk,[(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:f=>e.chooseItem(c,u)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",ck,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",dk,t.toDisplayString(c[e.optionSubTag]),1)],14,ik))),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 _l=oe(ok,[["render",uk]]),{componentName:fk,create:mk}=_("backtop"),ea=mk({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n,slots:a}){const o=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),l=t.computed(()=>({[fk]:!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=Qe(function y(){var k=e.duration-Math.max(0,o.startTime-+new Date+e.duration),p=k*-o.scrollTop/e.duration+o.scrollTop;i(p),g=Qe(y),(k==e.duration||p==0)&&Ua(g)})}function u(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function f(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function d(g){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",g)}function h(){S.value?o.scrollEl=S.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(()=>{f()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,h())}),t.onDeactivated(()=>{o.keepAlive=!0,f()});const S=t.computed(()=>{if(typeof a.content=="function"){const g=a.content();return Array.isArray(g)?g[0]:g}return null});return()=>{const g=[];S.value&&g.push(S.value);const y=[];if(typeof a.default=="function")y.push(a.default());else{const p=t.h(le.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});y.push(p)}const k=t.h("div",{class:l.value,style:r.value,onClick:d},y);return g.push(k),g}}}),{componentName:pk,create:hk}=_("drag"),gk=hk({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const a=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}}),l=t.computed(()=>({[pk]:!0}));function r(){const d=document.documentElement;o.elWidth=a.value.offsetWidth,o.elHeight=a.value.offsetHeight,o.screenWidth=d.clientWidth,o.screenHeight=d.clientHeight}function s(d){o.boundary.left?+d.style.left.split("px")[0]>o.boundary.left?(d.style.left=+d.style.left.split("px")[0]-10+"px",Ue(()=>{s(d)})):d.style.left=`${o.boundary.left}px`:+d.style.left.split("px")[0]>10?(d.style.left=+d.style.left.split("px")[0]-10+"px",Ue(()=>{s(d)})):d.style.left="0px"}function i(d,h){h-parseInt(d.style.left.split("px")[0])>10?(d.style.left=parseInt(d.style.left.split("px")[0])+10+"px",Ue(()=>{i(d,h)})):d.style.left=h+"px"}function c(d){d.preventDefault();const h=d.currentTarget;if(d.targetTouches.length===1){const S=d.targetTouches[0];o.nx=S.clientX-o.position.x,o.ny=S.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(d){const h=d.currentTarget;let g=d.changedTouches[0].clientX;const y=o.screenWidth-o.elWidth-o.boundary.right;g>y?g=y:g<o.boundary.left?g=o.boundary.left:g=g<o.screenWidth/2?o.boundary.left:y,e.direction!="y"&&e.attract&&(g<o.screenWidth/2?Ue(()=>{s(h)}):Ue(()=>{i(h,y)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function f(d){const h=d.currentTarget,S=d.touches[0],g=d.targetTouches[0];o.startTop=h.offsetTop,o.startLeft=h.offsetLeft,o.position.x=S.clientX,o.position.y=S.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 d=a;d.value.removeEventListener("touchstart",f),d.value.removeEventListener("touchmove",c),d.value.removeEventListener("touchend",u)}),{classes:l,myDrag:a,touchStart:f,touchMove:c,touchEnd:u}}});function yk(e,n,a,o,l,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 ta=oe(gk,[["render",yk]]),bk={width:{type:[String,Number]},height:{type:[String,Number]},plain:{type:[Boolean]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},showClose:{type:Boolean,default:!1},closeIcon:{type:Object},content:{type:[String,Object]},showFooter:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},cancelButtonText:{type:String},cancelText:{type:String},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},confirmButtonText:{type:String},confirmText:{type:String},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},footerDirection:{type:String,default:"horizontal"},popClass:{type:String},popStyle:{type:Object},beforeClose:{type:Function}},kk=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Sk(e,n,a,o,l){return{props:{...Re,...bk},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:u}=ie.useFoxI18n(n),f=u(r,["confirmText","cancelText"]),d=e,h=t.ref(r.visible);t.watch(()=>r.visible,C=>{h.value!==C&&(h.value=C,C&&c("opened"))});const S=C=>{h.value=C,c("update:visible",C),c("update",C)},g=C=>{if(c(C),!(C==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const w=r.beforeClose(C);mt(w)?w.then(T=>{T&&(S(!1),c("closed",C))}):w===!0&&(S(!1),c("closed",C))}else S(!1),c("closed",C)},y=()=>{g("confirm")},k=()=>{g("cancel")},p=()=>{g("close")},b=(C,w)=>kk(C)?(w.src=C,t.h("img",w)):typeof C=="string"?(Array.isArray(w.class)?w.class.push(C):w.class&&typeof w.class=="object"?w[`${C}`]=!0:typeof w.class=="string"?w.class=`${w.class}, ${C}`:w.class=C,t.h(r.tag,w)):t.h(C,w),m=()=>{const C=[];if(i.header){const T=i.header();C.push(T)}else{if(r.title){const T=t.h("view",{class:`${d}__header-title`},[r.title]);C.push(T)}if(r.showClose){const T={class:[`${d}__header-close-icon`],onClick:p},$=r.closeIcon??l,V=b($,T);C.push(V)}}if(C.length===0)return null;const w={class:[`${d}__header`]};return t.h("view",w,C)},N=()=>{const C=[];if(i.default)C.push(i.default());else{const T={class:[`${d}__content`]};if(r.textAlign&&T.class.push(r.textAlign),typeof r.content=="string"){T.innerHTML=r.content;const $=t.h("view",T);C.push($)}else if(typeof r.content=="function"){const $=t.h("view",T,[r.content()]);C.push($)}else{const $=t.h("view",T,[r.content]);C.push($)}}if(C.length===0)return null;const w={class:[`${d}__body`]};return t.h("view",w,C)},B=()=>{if(!r.showFooter)return null;const C=[];if(i.footer)C.push(i.footer());else if(r.plain){if(r.showCancelButton){const T={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},onClick:k};r.cancelButtonClass&&T.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(T.style,r.cancleButtonStyle);const $=t.h("view",T,[r.cancelButtonText??f.cancelText.value]);C.push($)}if(r.showConfirmButton){const T={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},onClick:y};r.confirmButtonClass&&T.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(T.style,r.confirmButtonStyle);const $=t.h("view",T,[r.confirmButtonText??f.confirmText.value]);C.push($)}}else{if(r.showCancelButton){const T={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:k};r.cancelButtonClass&&T.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(T.style,r.cancleButtonStyle);const $=t.h(o,T,{default:()=>[r.cancelButtonText??f.cancelText.value]});C.push($)}if(r.showConfirmButton){const T={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:y};r.confirmButtonClass&&T.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(T.style,r.confirmButtonStyle);const $=t.h(o,T,{default:()=>[r.confirmButtonText??f.confirmText.value]});C.push($)}}if(C.length===0)return null;const w={class:[`${d}__footer`,`${d}__footer--${r.footerDirection}`]};return t.h("view",w,C)};return()=>{const C=[],w=m();w&&C.push(w);const T=N();T&&C.push(T);const $=B();$&&C.push($);const V={class:{[`${d}`]:!0,[`${d}--plain`]:r.plain}},D=t.h("view",V,C),M=[`${d}__popup`];r.popClass&&M.push(r.popClass);const K={};r.width&&(K.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(K.height=typeof r.height=="number"?`${r.height}px`:r.height);const E={...Se(r,Re),popClass:M.join(" "),style:K,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":S,position:r.position,onClickOverlay:p,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,E,{default:()=>D})}}}}const{componentName:Ck,create:wk,scope:Nk}=_("dialog"),Os=wk(Sk(Ck,Nk,me,ze,le.Close));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 Ak{options=new Bk;constructor(n){let a=Object.assign(this.options,n),o=document.body,l=a.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=a.teleport);const r=document.createElement("view"),s=`dialog-${a.id}`;r.id=s;const i={setup(){return a.onUpdate=u=>{if(u===!1){const f=document.querySelector(`#${s}`);f&&f.parentNode?.removeChild(f)}},a?.onOpened&&a?.onOpened(),()=>t.h(Os,a)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Wt=function(e){return new Ak(e)};Wt.install=e=>{e.use(Os),e.config.globalProperties.$dialog=Wt};const Tk={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}},$k=(e,n,a)=>({props:{...Tk},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=ie.useFoxI18n(n),i=s(o,["pullingText","loosingText","loadingText"]),c=Mn(),u=t.ref(),f=As(u),d=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=t.computed(()=>({[e]:!0})),S=t.computed(()=>{switch(d.status){case"pulling":return r.pulling?"":i.pullingText.value;case"loosing":return r.loosing?"":i.loosingText.value;case"loading":return r.loading?"":i.loadingText.value;default:return""}}),g=t.computed(()=>({transitionDuration:`${o.duration}s`,transform:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),y=t.computed(()=>{const w={};return o.headHeight!=50&&(w.height=ge(o.headHeight)),w}),k=w=>{const T=+(o.pullDistance||o.headHeight);let $=w;return w>T&&(w<T*2?$=(w+T)/2:$=T+w/4),Math.round($)},p=(w,T)=>{const $=+(o.pullDistance||o.headHeight);d.distance=w,T?d.status="loading":w===0?d.status="normal":w<$?d.status="pulling":d.status="loosing",l("change",{status:d.status,distance:w})},b=()=>d.status!=="loading"&&d.status!=="complete",m=()=>f.value==window?Ts()==0:f.value&&f.value.scrollTop==0,N=w=>{b()&&(m()?(c.start(w),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},B=w=>{b()&&d.moving&&(c.move(w),c.isVertical()&&c.state.deltaY>0&&d.isPullRefresh&&(w.cancelable&&w.preventDefault(),p(k(c.state.deltaY))))},C=()=>{d.moving=!1,d.isPullRefresh&&b()&&c.state.deltaY&&(d.status==="loosing"?(p(+o.headHeight,!0),l("update:modelValue",!0),t.nextTick(()=>l("refresh"))):p(0)),setTimeout(()=>{c.reset()},0)};return t.watch(()=>o.modelValue,w=>{w?p(+o.headHeight,!0):p(0)}),()=>{const w=[];let T=null;if(d.status==="loading"){if(T=r?.loading?.()??null,!T){const L={class:["fox-pull-refresh-container-topbox-icon"]};T=t.h(a,L)}}else d.status==="pulling"?T=r?.pulling?.()??null:d.status==="loosing"&&(T=r?.loosing?.()??null);T&&w.push(T);const $={class:["fox-pull-refresh-container-topbox-text"]},V=t.h("dive",$,[S.value]);w.push(V);const D={class:["fox-pull-refresh-container-topbox"],style:y.value},M=t.h("div",D,w),K={class:"fox-pull-refresh-container",style:g.value},v=t.h("div",K,[M,r?.default?.()]),E={ref:u,class:h.value};return qn()?Object.assign(E,{onTouchstart:N,onTouchmove:B,onTouchend:C}):Object.assign(E,{onMousedown:N,onMousemove:B,onMouseup:C}),t.h("div",E,[v])}}}),{componentName:Vk,create:Ek,scope:Dk}=_("pull-refresh"),na=Ek($k(Vk,Dk,le.Loading)),{create:Ik}=_("notify"),vk=Ik({components:{[me.name]:me},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:n}){const a=()=>{e.onClick&&e.onClick()};let o=null;const l=()=>{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 f=e.duration;u&&f&&(o=setTimeout(()=>{r()},f))},{immediate:!0});return{onAfterLeave:()=>{l(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:s}}});function xk(e,n,a,o,l,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 oa=oe(vk,[["render",xk]]),la={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let At=[],Yt=[];const Rs=e=>{if(e){const n=document.getElementById(e);Yt=Yt.filter(a=>a.id!==e),At=At.filter(a=>a!==e),n&&document.body.removeChild(n)}else At.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Yt=[],At=[]},qk=e=>{const n=document.getElementById(e.id);if(n){const a=Yt.find(l=>l.id===e.id);a?e={...la,...a,...e}:e={...la,...e};const o=t.createVNode(oa,e);return t.render(o,n),o.component.data}},Xt=e=>{e.unmount=Rs;let n;if(e.id){if(n=e.id,At.find(r=>r===e.id))return qk(e)}else n=new Date().getTime()+"";e={...la,...e},e.id=n,At.push(e.id),Yt.push(e);const a=document.createElement("view");a.id="notify-"+e.id;const o={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(a)},e.duration)}),()=>t.h(oa,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},Qt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},aa={text(e,n={}){return Qt(e),Xt({...n,msg:e})},primary(e,n={}){return Qt(e),Xt({...n,msg:e,type:"primary"})},success(e,n={}){return Qt(e),Xt({...n,msg:e,type:"success"})},danger(e,n={}){return Qt(e),Xt({...n,msg:e,type:"danger"})},warn(e,n={}){return Qt(e),Xt({...n,msg:e,type:"warning"})},hide(){Rs()},install(e){e.use(oa)}},{create:Mk}=_("toast"),Pk=Mk({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let a=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const l=()=>{a&&(clearTimeout(a),a=null)},r=()=>{o.mounted=!1},s=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),t.watch(()=>e.duration,S=>{S&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),u=()=>{const S=fe(e.iconSize);return t.h(e.icon,{width:S,height:S,color:e.iconColor})},f=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]),d=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:f,toastIconWrapperClass:d,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Lk={key:1,class:"fox-toast-title"},zk=["innerHTML"];function Ok(e,n,a,o,l,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",Lk,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 ra=oe(Pk,[["render",Ok]]),sa={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 Tt=[],Gt=[];const Fs=e=>{if(e){const n=document.getElementById(e);Gt=Gt.filter(a=>a.id!==e),Tt=Tt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Tt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Gt=[],Tt=[]},Rk=e=>{const n=document.getElementById(e.id);if(n){const a=Gt.find(l=>l.id===e.id);a?e={...sa,...a,...e}:e={...sa,...e};const o=t.createVNode(ra,e);return t.render(o,n),$t}},Zt=e=>{e.unmount=Fs;let n;if(e.id){if(n=e.id,Tt.find(l=>l===e.id))return Rk(e)}else n=new Date().getTime()+"";e={...sa,...e},e.id=n,Tt.push(e.id),Gt.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(ra,e);return t.render(o,a),document.body.appendChild(a),$t},lo=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},$t={text(e,n={}){return lo(e),Zt({...n,type:"text",msg:e})},success(e,n={}){return lo(e),Zt({icon:le.Success,...n,msg:e,type:"success"})},fail(e,n={}){return lo(e),Zt({icon:le.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return lo(e),Zt({icon:le.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Zt({icon:le.Loading,...n,msg:e,type:"loading"})},hide(e){Fs(e)},install(e){e.use(ra),e.config.globalProperties.$toast=$t}},{componentName:D2,create:Fk}=_("audio"),Kk=Fk({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:le.Service,[Ut.name]:Ut},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=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 k=0;k<y.length;k++)document.addEventListener(y[k],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(k){k.message}});const r=y=>{const k=o.value;e.autoplay&&k&&k.paused&&k.play(),l.second=k.duration,l.duration=g(k.duration),n("can-play",y)},s=y=>{l.currentTime=parseInt(y.target.currentTime)},i=()=>{l.currentTime>0&&l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},c=()=>{const y=o.value;l.playing?(y.pause(),l.handPlaying=!1):(y.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},u=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},f=y=>{l.currentDuration=g(y),l.percent=y/l.second*100},d=()=>{l.playing=!1,n("ended")},h=y=>{const k=o.value;k.currentTime=l.second*y/100,n("changeProgress",k.currentTime)},S=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},g=y=>{if(!y)return"00:00:00";let k=parseInt(y),p=Math.floor(k/3600),b=Math.floor((k-p*3600)/60),m=k-p*3600-b*60,N="";return N+=("0"+p.toString()).slice(-2)+":",N+=("0"+b.toString()).slice(-2)+":",N+=("0"+m.toString()).slice(-2),N};return t.watch(()=>l.currentTime,y=>{f(y)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:S,forward:u,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:i,forward:u,changeStatus:c,progressChange:h,audioEnd:d,onTimeupdate:s,handleMute:S,onCanplay:r,slots:a}}}),Uk={class:"fox-audio"},Hk={key:0,class:"fox-audio__progress"},jk={class:"fox-audio__time"},Wk={class:"fox-audio__bar"},Yk={class:"fox-audio__time"},Xk={key:1,class:"fox-audio__icon"},Qk=["controls","src","preload","autoplay","loop","muted"];function Gk(e,n,a,o,l,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",Uk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",Hk,[t.createElementVNode("div",jk,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Wk,[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(()=>n[6]||(n[6]=[t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1)])),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Yk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Xk,[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,Qk)])}const ia=oe(Kk,[["render",Gk]]),{componentName:I2,create:Zk,scope:Jk}=_("audio-operate"),_k=Zk({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(Jk),o=t.inject("audioParent"),l=t.reactive(o),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(l),customSlot:r,t:a}}}),eS={class:"fox-audio-operate"};function tS(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",eS,[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 ca=oe(_k,[["render",tS]]),{componentName:nS,create:oS}=_("avatar"),lS=oS({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:a,bgColor:o,color:l}=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&&S(g)});const f=t.computed(()=>({[nS]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||s?.props?.shape||"normal"}`]:!0})),d=t.computed(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${o.value}`,color:`${l.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}`})),S=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:f,styles:d,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(u)}}});function aS(e,n,a,o,l,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=oe(lS,[["render",aS]]),{componentName:rS,create:sS}=_("avatar-group"),iS=sS({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:a}){t.toRefs(e);const o=t.ref(null),l=t.ref(0),r=t.computed(()=>({[rS]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:l}),{classes:r,avatarGroupRef:o}}});function cS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const da=oe(iS,[["render",cS]]);var ao=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(ao||{});function dS(e,n,a){let o=0,l=e.length-1,r=null;for(;o<=l;){r=Math.floor((o+l)/2);const s=e[r],i=a(s,n);if(i===1)return r;i===2?o=r+1:i===3&&(l=r-1)}return r}const{componentName:uS,create:fS}=_("list"),Ks=document.documentElement.clientHeight||document.body.clientHeight||667,mS=fS({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Ks},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref(null),l=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,Ks)),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(()=>({[uS]:!0})),f=t.computed(()=>r.list.slice(r.start,c.value)),d=()=>{if(l.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let p=0;p<r.list.length;++p)r.cachePositions[p]={index:p,height:e.height,top:p*e.height,bottom:(p+1)*(e.height+e.margin),dValue:0}},S=()=>{let p=l.value.childNodes;p=Array.from(p).filter(w=>w.nodeType===1);const b=p[0];p.forEach((w,T)=>{if(!w)return;const $=Me(w),{height:V}=$,M=r.cachePositions[T+r.start].height-V;M&&(r.cachePositions[T+r.start].bottom-=M,r.cachePositions[T+r.start].height=V,r.cachePositions[T+r.start].dValue=M)});let m=0;b&&(m=r.start);const N=r.cachePositions.length;let B=r.cachePositions[m].dValue;r.cachePositions[m].dValue=0;for(let w=m+1;w<N;++w){const T=r.cachePositions[w];r.cachePositions[w].top=r.cachePositions[w-1].bottom,r.cachePositions[w].bottom=r.cachePositions[w].bottom-B,T.dValue!==0&&(B+=T.dValue,T.dValue=0)}const C=r.cachePositions[N-1].bottom;r.phantomHeight=C},g=(p=0)=>{let b=dS(r.cachePositions,p,(N,B)=>{const C=N.bottom;return C===B?ao.eq:C<B?ao.lt:ao.gt});return r.cachePositions[b].bottom<p&&(b+=1),b},y=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,a.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},k=()=>{const p=a.value?.scrollTop,{originStartIndex:b}=r,m=g(p);m!==b&&(r.originStartIndex=m,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&n("scroll-bottom")),n(p>r.scrollTop?"scroll-up":"scroll-down",p),r.scrollTop=p};return t.watch(()=>e.listData,p=>{if(r.list=p.slice(),r.list.length===p.length)h(),S();else{y();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&S()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:d,visibleData:f,classes:u,getContainerHeight:s,handleScrollEvent:k}}});function pS(e,n,a,o,l,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 ua=oe(mS,[["render",pS]]),{componentName:hS,create:gS}=_("circleprogress"),yS=gS({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const a=!!t.useSlots().default,o=Math.random().toString(36).slice(-8),l=t.computed(()=>({[hS]:!0})),r=t.computed(()=>{const f=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${f} 0 90 a 45 45 0 1, ${f} 0 -90`}),s=t.computed(()=>ve(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let f=283,d=f*Number(e.progress)/100;return{stroke:ve(e.color)?`url(#${o})`:e.color,strokeDasharray:`${d}px ${f}px`}}),c=t.computed(()=>({stroke:e.pathColor})),u=t.computed(()=>{if(!ve(e.color))return;let f=e.color;const d=Object.keys(f).sort((S,g)=>parseFloat(S)-parseFloat(g));let h=[];return d.map((S,g)=>{let y={key:"",value:""};y.key=S,y.value=f[S],h.push(y)}),h});return{classes:l,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:u,slotDefault:a,refRandomId:o}}}),bS={viewBox:"0 0 100 100"},kS=["id"],SS=["offset","stop-color"],CS=["d","stroke-width"],wS=["d","stroke","stroke-linecap","stroke-width"],NS={class:"fox-circleprogress-text"},BS={key:0};function AS(e,n,a,o,l,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",bS,[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,SS))),128))],8,kS)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,CS),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,wS)])),t.createElementVNode("div",NS,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",BS,t.toDisplayString(e.progress)+"%",1))])],6)}const fa=oe(yS,[["render",AS]]),{componentName:TS,create:$S}=_("noticebar"),VS=$S({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:le.Notice,CircleClose:le.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=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(()=>({[TS]:!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 w={};return e.color&&(w.color=e.color),e.background&&(w.background=e.background),e.direction=="vertical"&&(w.height=`${e.height}px`),w}),f=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),d=t.computed(()=>{let w={};if(e.complexAm)w={transform:`translateY(${r.distance}px)`};else if(r.animate){let T=~~(e.height/e.speed/4);w={transition:`all ${T==0?~~(e.height/e.speed):T}s`,"margin-top":`-${e.height}px`}}return w});t.watch(()=>e.text,w=>{h()}),t.watch(()=>e.list,w=>{r.scrollList=[...w]});const h=w=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const T=o.value.getBoundingClientRect().width,$=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?$>T:e.scrollable,r.isCanScroll?(r.wrapWidth=T,r.offsetWidth=$,r.duration=$/e.speed,r.animationClass="play"):r.animationClass=""},0)},S=w=>{n("click",w)},g=w=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",w)},y=w=>{r.firstRound=!1,n("across-end",w),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},k=()=>{p(),r.timer=setInterval(p,~~(e.height/e.speed/4*1e3)+e.standTime)},p=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},b=()=>{r.timer=setInterval(()=>{let w=100;for(let T=0;T<w;T++)m(T,!(T<w-1))},e.standTime+100*e.speed)},m=(w,T)=>{setTimeout(()=>{r.distance-=e.height/100,T&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},w*e.speed)},N=w=>{n("click",w)},B=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(a.default?C(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?b():k()},e.standTime)):h(e.text)}),t.watch(()=>a.default?a.default():[],w=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),C(w))});const C=w=>{w&&w.length>0&&(r.scrollList=w[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:f,horseLampStyle:d,wrap:o,content:l,handleClick:S,onClickIcon:g,onAnimationEnd:y,go:N,handleClickIcon:B,slots:a,toPxDesc:ge,wrapContentClass:c}}}),ES={key:0,class:"fox-noticebar__page-lefticon"},DS={ref:"wrap",class:"fox-noticebar__page-wrap"},IS={class:"showNotica"},vS=["onClick"];function xS(e,n,a,o,l,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))},[e.showLeftIcon?(t.openBlock(),t.createElementBlock("view",ES,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("view",DS,[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:1,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",IS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(u,f)=>(t.openBlock(),t.createBlock(c,{key:f,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,f)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:f,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:d=>e.go(u)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(u),1)])],12,vS))),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 ma=oe(VS,[["render",xS]]),qS="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/xdD/y9UyMD0TExP5sb+4uLj/y9X+w879ws3/y9X1tMH8s8H/y9UkJSWAgYHj5OT/ytTY2NheXWDs7e7r7Ozv8PDs7u55eYH09fXMzMzY2NgyMD3/y9UzMzP8s8GwsLDm5+eKiorv8PDLy8s6Ojrl5ubZ2trPz88UFBTh4uLV1dXc3Ny5ubnu7u7T09O1tbXf39+zsrLx8vLR0dHJycm8vLzj5OQ3NUHq6+vo6ek2NjbGxsbCwsK3t7f9x9K+vr79t8Q4ODjs7e0+O0XAwMBiYWaSkZVbW1/27e/8vspUSlZMTExwcHL709tERESjo6ZHQU5MR1N8fH762uD35un54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quROEseRhxSkAWPOM8wxRODSIt7GNHQanCpeQAtQURq4KR80AWOsNlmIK5vCpg0ZuVoNTqS9KpaTGbVp3aKSLlVOaZPCgOIjqKc7L6ojRAlRZxs8VoK5WMy6lTjT/gRak1QKlFFxO9FKsBZzZZZSWQBY3nNKllAOdG70CtDcP9/s4DHtSzEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:v2,create:LS,scope:zS}=_("empty"),OS={empty:qS,error:MS,network:PS},RS=LS({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=ie.useFoxI18n(zS),a=n(e,["description"]),{image:o,imageSize:l}=t.toRefs(e),r=t.computed(()=>l.value?typeof l.value=="number"?`width:${l.value}px;height:${l.value}px`:`width:${l.value};height:${l.value}`:""),i=o.value.startsWith("https://")||o.value.startsWith("http://")||o.value.startsWith("//")?o.value:OS[o.value];return{...a,imageUrl:i,imgStyle:r}}}),FS={class:"fox-empty"},KS=["src"],US={key:1,class:"fox-empty-description"};function HS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",FS,[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,KS)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",US,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const pa=oe(RS,[["render",HS]]),{create:jS,scope:WS}=_("video"),YS=jS({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(WS),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}),l=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,C=>{C.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,C=>{o.state.isMuted=C?C.muted:!1},{immediate:!0});const s=()=>{o.videoElm=l.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",mn(d,1e3)))},i=()=>{const C=l.value,w=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=C,o.progressBar.progressElm=w,o.progressBar.pos=w.getBoundingClientRect(),o.videoSet.progress.width=Math.round(w.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",()=>{f()}),o.videoElm.addEventListener("timeupdate",mn(d,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{S()}else o.videoElm.pause(),n("pause",o.videoElm)},u=C=>{var w=Math.floor(C/3600);w<10&&(w="0"+w);var T=Math.floor(C%3600/60);T<10&&(T="0"+T);var $=Math.round(C%3600%60);$<10&&($="0"+$);var V="";return w!=0?V=w+":"+T+":"+$:V=T+":"+$,V},f=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},d=()=>{const C=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*C),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)},S=()=>{o.state.isError=!0},g=()=>{o.state.vol=e.options.volume},y=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},k=()=>{},p=C=>{let T=C.targetTouches[0].pageX-o.progressBar.pos.left;T<=0&&(T=0),T>=o.videoSet.progress.width&&(T=o.videoSet.progress.width),o.videoSet.progress.current=T;let $=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&m($,o.videoElm.duration)},b=C=>{let T=C.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=T;let $=T/o.videoSet.progress.width;o.videoElm.duration&&m($,o.videoElm.duration)},m=(C,w)=>{o.videoElm.currentTime=Math.floor(C*w)},N=()=>{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:l,...t.toRefs(e),...t.toRefs(o),handleError:S,isDisabled:r,play:c,handleMuted:y,touchSlidSrart:k,touchSlidMove:p,touchSlidEnd:b,retry:N,fullScreen:B,t:a}}}),XS={class:"fox-video",ref:"videocon"},QS=["muted","autoplay","loop","poster","controls","preload"],GS=["src","type"],ZS={class:"fox-video-controller__now"},JS={class:"fox-video-controller__progress"},_S={class:"fox-video-controller__progress-value",ref:"progressBar"},e1={class:"fox-video-controller__played",ref:"playedBar"},t1={class:"fox-video-controller__total"},n1={class:"fox-video-error"},o1={class:"fox-video-error-tip"};function l1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",XS,[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,GS)],40,QS),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",ZS,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",JS,[t.createElementVNode("div",_S,[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"]))},n[10]||(n[10]=[t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1)]),36),t.createElementVNode("div",e1,null,512)],512)]),t.createElementVNode("div",t1,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",n1,[t.createElementVNode("p",o1,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 Vt=oe(YS,[["render",l1]]),{create:a1,componentName:r1}=_("steps"),ha=a1({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:a}){const o=t.reactive({children:[]}),l=t.computed(()=>{const i=r1;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:l.value},a.default?.())}}),{create:s1,componentName:i1}=_("step"),c1=s1({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 a=t.reactive({dot:n.props.progressDot}),o=t.computed(()=>n.state.children.indexOf(e)+1),l=()=>{const c=o.value;return c<+n.props.current?"finish":c===+n.props.current?"process":"wait"},r=t.computed(()=>l()),s=t.computed(()=>{const c=i1;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:s,handleClickStep:i}}}),d1={class:"fox-step-head"},u1={class:"fox-step-icon-inner"},f1={key:1,class:"fox-step-inner"},m1={class:"fox-step-main"},p1={class:"fox-step-title"},h1={key:0},g1={key:0,class:"fox-step-content"},y1=["innerHTML"];function b1(e,n,a,o,l,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",d1,[n[1]||(n[1]=t.createElementVNode("view",{class:"fox-step-line"},null,-1)),t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",u1,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",f1,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",m1,[t.createElementVNode("view",p1,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",h1,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",g1,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,y1)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ga=oe(c1,[["render",b1]]),{create:k1,componentName:ya}=_("swiper"),S1=k1({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:n,slots:a}){const o=t.ref(),l=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=tt(),s=t.computed(()=>({[ya]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const I=ya;return{[`${I}-inner`]:!0,[`${I}-vertical`]:i.value}}),u=t.computed(()=>{const I=ya;return{[`${I}-pagination`]:!0,[`${I}-pagination-vertical`]:i.value}}),f=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),d=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>l.children.length),S=t.computed(()=>l[i.value?"height":"width"]),g=t.computed(()=>h.value*S.value),y=t.computed(()=>l.rect?(i.value?l.rect.height:l.rect.width)-S.value*h.value:0),k=t.computed(()=>(l.active+h.value)%h.value),p=()=>{let I=0;I=l.offset,l.style={transitionDuration:`${l.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${I}px)`,[i.value?"height":"width"]:`${S.value*h.value}px`,[i.value?"width":"height"]:`${i.value?l.width:l.height}px`}},b=I=>{let W=[];const j=l.childrenVNode.length;let O=a?.default?.();if(O=O.filter(ee=>ee.children&&Array.isArray(ee.children)),O.forEach(ee=>{W=W.concat(ee.children)}),!j)l.childrenVNode=W.slice(),I.proxy&&l.children.push(I.proxy);else if(j>W.length)l.children=l.children.filter(ee=>I.proxy!==ee);else if(j<W.length){for(let ee=0;ee<j;ee++)if(W[ee].key!==l.childrenVNode[ee].key){I.proxy&&l.children.splice(ee,0,I.proxy),I.vnode&&l.childrenVNode.splice(ee,0,I.vnode);break}j!==W.length&&(I.proxy&&l.children.push(I.proxy),I.vnode&&l.childrenVNode.push(I.vnode))}else l.childrenVNode=W.slice(),I.proxy&&l.children.push(I.proxy)},m=(I,W=0)=>{let j=I*S.value;e.loop||(j=Math.min(j,-y.value));let O=W-j;return e.loop||(O=je(O,y.value,0)),O},N=I=>{const{active:W}=l;return I?e.loop?je(W+I,-1,h.value):je(W+I,0,h.value-1):W},B=({pace:I=0,offset:W=0,isEmit:j=!1})=>{if(h.value<=1)return;const{active:O}=l,ee=N(I),H=m(ee,W);if(e.loop){if(l.children[0]&&H!==y.value){const q=H<y.value;l.children[0].setOffset(q?g.value:0)}if(l.children[h.value-1]&&H!==0){const q=H>0;l.children[h.value-1].setOffset(q?-g.value:0)}}l.active=ee,l.offset=H,j&&O!==l.active&&n("change",k.value),p()},C=()=>{l.moving=!0,l.active<=-1&&B({pace:h.value}),l.active>=h.value&&B({pace:-h.value})},w=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},T=I=>{C(),r.reset(),Qe(()=>{Qe(()=>{l.moving=!1,B({pace:I,isEmit:!0})})})},$=()=>{T(-1)},V=()=>{T(1)},D=I=>{C(),r.reset(),Qe(()=>{l.moving=!1;let W;e.loop&&h.value===I?W=l.active===0?0:I:W=I%h.value,B({pace:W-l.active,isEmit:!0})})},M=()=>{e.autoPlay<=0||h.value<=1||(w(),l.autoplayTimer=setTimeout(()=>{V(),M()},Number(e.autoPlay)))},K=(I=+e.initPage)=>{w(),l.rect=o.value.getBoundingClientRect(),I=Math.min(h.value-1,I),l.width=e.width?+e.width:l.rect.width,l.height=e.height?+e.height:l.rect.height,l.active=I,l.offset=m(l.active),l.moving=!0,p(),M()},v=I=>{e.isPreventDefault&&I.preventDefault(),e.isStopPropagation&&I.stopPropagation(),e.touchable&&(r.start(I),l.touchTime=Date.now(),w(),C())},E=I=>{e.touchable&&l.moving&&(r.move(I),d.value&&B({offset:f.value}))},L=I=>{if(!e.touchable||!l.moving)return;const W=f.value/(Date.now()-l.touchTime);if((Math.abs(W)>.3||Math.abs(f.value)>+(S.value/2).toFixed(2))&&d.value){let O=0;const ee=i.value?r.offsetY.value:r.offsetX.value;e.loop?O=ee>0?f.value>0?-1:1:0:O=-Math[f.value>0?"ceil":"floor"](f.value/S.value),B({pace:O,isEmit:!0})}else f.value&&B({pace:0});l.moving=!1,p(),M()};return t.provide("parent",{props:e,size:S,relation:b}),Ie({prev:$,next:V,to:D}),t.onDeactivated(()=>{w()}),t.onBeforeUnmount(()=>{w()}),t.watch(()=>e.initPage,I=>{t.nextTick(()=>{K(Number(I))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{K()})}),t.watch(()=>e.autoPlay,I=>{I>0?M():w()}),{state:l,classes:s,classesInner:c,classesPagination:u,container:o,activePagination:k,onTouchStart:v,onTouchMove:E,onTouchEnd:L}}});function C1(e,n,a,o,l,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 Et=oe(S1,[["render",C1]]),{create:w1,componentName:N1}=_("swiper-item"),B1=w1({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[N1]:!0})),r=t.computed(()=>{const i={},c=a?.props.direction;return a?.size.value&&(i[c==="horizontal"?"width":"height"]=`${a?.size.value}px`),o.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${o.offset}px)`),i}),s=i=>{o.offset=i};return t.onUnmounted(()=>{a.relation(t.getCurrentInstance(),"unmount")}),Ie({setOffset:s}),{style:r,classes:l}}});function A1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const Dt=oe(B1,[["render",A1]]),Us={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:T1}=_("image-preview-item"),$1=T1({props:{...Us,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:{[Vt.name]:Vt,[Dt.name]:Dt},setup(e,{emit:n}){const a=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),o=tt(),l=t.computed(()=>{const{rootWidth:$,rootHeight:V}=e,D=V/$;return a.imageRatio>D}),r=t.computed(()=>{const $=e.image;if($&&$.src){const{scale:V,moveX:D,moveY:M,moving:K,zooming:v}=a,E={transitionDuration:v||K?"0s":".3s"};if(V!==1){const L=D/V,I=M/V;E.transform=`scale(${V}, ${V}) translate(${L}px, ${I}px)`}return E}return{}}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:$,rootHeight:V}=e,D=l.value?V/a.imageRatio:$;return Math.max(0,(a.scale*D-$)/2)}return 0}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:$,rootHeight:V}=e,D=l.value?V:$*a.imageRatio;return Math.max(0,(a.scale*D-V)/2)}return 0}),c=$=>{const{naturalWidth:V,naturalHeight:D}=$.target;a.imageRatio=D/V},u=()=>{f(1),a.moveX=0,a.moveY=0},f=$=>{$=je($,+e.minZoom,+e.maxZoom+1),$!==a.scale&&(a.scale=$,n("scale",{scale:$,index:e.initNo}))},d=()=>{const $=a.scale>1?1:2;f($),a.moveX=0,a.moveY=0},h=$=>Math.sqrt(($[0].clientX-$[1].clientX)**2+($[0].clientY-$[1].clientY)**2);let S,g,y,k,p,b,m;const N=$=>{const{touches:V}=$,{offsetX:D}=o;o.start($),m=V.length,S=a.moveX,g=a.moveY,b=Date.now(),a.moving=m===1&&a.scale!==1,a.zooming=m===2&&!D.value,a.zooming&&(y=a.scale,k=h($.touches))},B=$=>{const{touches:V}=$;if(o.move($),(a.moving||a.zooming)&&No($,!0),a.moving){const{deltaX:D,deltaY:M}=o,K=D.value+S,v=M.value+g;a.moveX=je(K,-s.value,s.value),a.moveY=je(v,-i.value,i.value)}if(a.zooming&&V.length===2){const D=h(V),M=y*D/k;f(M)}},C=()=>{if(m==1&&e.video&&e.video.source||m>1)return;const{offsetX:$,offsetY:V}=o,D=Date.now()-b,M=250,K=5;$.value<K&&V.value<K&&D<M&&(p?(clearTimeout(p),p=null,d()):p=setTimeout(()=>{e.contentClose&&n("close"),p=null},M))},w=$=>{let V=!1;(a.moving||a.zooming)&&(V=!0,a.moving&&S===a.moveX&&g===a.moveY&&(V=!1),$.touches.length||(a.zooming&&(a.moveX=je(a.moveX,-s.value,s.value),a.moveY=je(a.moveY,-i.value,i.value),a.zooming=!1),a.moving=!1,S=0,g=0,y=1,a.scale<1&&u(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),No($,V),C(),o.reset()},T=()=>{n("close")};return t.watch(()=>e.initNo,u),t.watch(()=>e.show,$=>{$||u()}),{...t.toRefs(a),onTouchStart:N,onTouchMove:B,onTouchEnd:w,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:T}}}),V1=["src"];function E1(e,n,a,o,l,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,V1)):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 D1=oe($1,[["render",E1]]),{create:I1}=_("image-preview"),v1=I1({props:{...Us,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:D1,CircleClose:le.CircleClose,[me.name]:me,[Et.name]:Et},setup(e,{emit:n}){const a=t.ref(),o=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),l=t.computed(()=>{const f="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${f}-right`:`${f}-left`}`}),r=t.computed(()=>ln(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=f=>{f!==o.active&&(o.active=f,n("change",o.active))},i=()=>{zs(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},u=()=>{if(a.value){const f=Me(a.value);o.rootHeight=f.height,o.rootWidth=f.width}};return t.watch(()=>e.show,f=>{o.showPop=f,f&&(s(e.initNo),u())}),t.watch(()=>e.initNo,f=>{f!=o.active&&s(f)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:a,...t.toRefs(o),onClose:i,mergeImages:r,setActive:s,iconClasses:l}}}),x1={class:"fox-image-preview",ref:"swipeRef"},q1={key:0,class:"fox-image-preview-index"};function M1(e,n,a,o,l,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]=f=>e.showPop=f),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",x1,[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,(f,d)=>(t.openBlock(),t.createBlock(s,{key:d,video:d<e.videos.length?f:{},image:d>=e.videos.length?f:{},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",q1,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]=(...f)=>e.onClose&&e.onClose(...f))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Hs=oe(v1,[["render",M1]]);class P1{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 L1{options=new P1;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=$i(a,{name:"image-preview",components:[me,Vt,Et,Dt,dt],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(Hs,a))}})})}}const ro=e=>new L1(e);ro.install=e=>{e.use(Hs)};function z1(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{componentName:x2,create:O1}=_("countup"),R1=O1({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 a=t.ref(null),o=t.ref([]),l=T=>{T&&o.value.push(T)},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,(T,$)=>{d(),k(0)}),t.watch(()=>e.machinePrizeLevel,(T,$)=>{r.prizeLevelTrun=T}),t.watch(()=>e.initNum,(T,$)=>{r.current=T,r.valFlag=!1,f()}),t.watch(()=>e.endNum,(T,$)=>{r.current=e.initNum,r.valFlag=!1,f()});const f=()=>{if(r.valFlag)return!1;s&&(i||c?u!="machine"&&k():(y(),setTimeout(()=>{r.valFlag=!0},300)))},d=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(T,$,V)=>{const D=(T.toString().split(".")[1]||"").length,M=($.toString().split(".")[1]||"").length,K=Math.pow(10,Math.max(D,M));return Number((T*K-$*K).toFixed(0))/K},S=T=>{let{num_total_len:$,pointNum:V,initDigit1:D,initDigit2:M,sortFlag:K}=r,v=K=="add"||K=="equal"?String(M)[T-($-V)]:10-Number(String(M)[T-($-V)]),E=K=="add"||K=="equal"?String(D)[T]:10-Number(String(D)[T]),L=T>$-V-1?-v*100+"%":T<=String(D).length-1?-E*100+"%":0;return L=="-1000%"&&(L=0),L},g=T=>{let{num_total_len:$,pointNum:V,initDigit1:D,initDigit2:M,sortFlag:K}=r,v=String(M)[T-($-V)];return T>$-V-1?v||0:T<=String(D).length-1?String(D)[T]:0},y=()=>{let{endNum:T,initNum:$,speed:V,toFixed:D}=e,M=setInterval(()=>{if($>T)if(r.current<=T||r.current<=V)r.current=T.toFixed(D),clearInterval(M),n("scroll-end"),r.valFlag=!1;else{let K=parseFloat(String(r.current))-parseFloat(String(V));r.current=K.toFixed(D)}else if(r.current>=T)r.current=T.toFixed(D),clearInterval(M),n("scroll-end"),r.valFlag=!1;else{let K=parseFloat(String(r.current))+parseFloat(String(V));r.current=K.toFixed(D)}},e.during)},k=T=>{let{initNum:$,endNum:V,toFixed:D,customBgImg:M}=e;M&&($=e.customChangeNum);let K,v,E,L;$!=0?(D!=0&&($=Number($.toFixed(D))),String($).indexOf(".")>-1?(K=String($).split(".")[0].length,v=String($).split(".")[1].length):(K=String($).length,v=0)):(K=1,v=0),V!=0?(D!=0&&(V=Number(V.toFixed(D))),String(V).indexOf(".")>-1?(E=String(V).split(".")[0].length,L=String(V).split(".")[1].length):(E=String(V).length,L=0)):(E=1,L=0);let I=K>=E?K:E,W=v>=L?v:L;r.num_total_len=I+W,r.pointNum=W,$>V?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h($,V),r.numberVal=Number(String($))):$<V?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(V,$),r.numberVal=Number(String(V))):r.sortFlag="equal";var j=1;for(let ee=0;ee<r.pointNum;ee++)j*=10;var O=r.numberVal*j;if(r.relNum=O,D!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(O).length),String($).indexOf(".")>-1){let ee=String($).split(".");r.initDigit1=Number(ee[0]),r.initDigit2=Number(ee[1])}else r.initDigit1=$,r.initDigit2=0;i&&!M?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let ee=o.value[r.num_total_len-1];p(ee)}):T!==0&&N()},p=T=>{d();var $=1;r.pointNum!=0&&($=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{b(T),r.totalCount=h(r.totalCount,$),r.totalCount<=0&&(d(),n("scroll-end"),r.valFlag=!1)},e.during)},b=T=>{let $=T.getAttribute("turn-number"),V;if(r.sortFlag=="add"?V=parseInt(String($))+1:V=parseInt(String($))-1>=0?parseInt(String($))-1:9,T.setAttribute("turn-number",String(V)),(T.style.transition=="none 0s ease 0s"||V==1||!T.style.transition)&&(T.style.transition=`all linear ${e.during}ms`),V==10||r.sortFlag=="reduce"&&V==0){var D=null;T.style.top=`-${r.sortFlag=="add"?V*100:(10-V)*100}%`,T.setAttribute("turn-number","0"),D=setTimeout(()=>{D&&clearTimeout(D),T.style.transition="none",T.style.top="0",m(T,V)},.975*e.during)}else T.style.top=`-${r.sortFlag=="add"?V*100:(10-V)*100}%`;T.style.top=="-100%"&&r.sortFlag=="reduce"&&b(T.previousSibling)},m=(T,$)=>{setTimeout(()=>{$==10&&T.previousSibling&&b(T.previousSibling)},200)},N=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{a.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},B=()=>{for(r.notPrize=[];r.notPrize.length<3;){var T=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(T)==-1&&r.notPrize.push(T)}};z1({machineLuck:()=>{const T=e.machineTurnMore<0?0:e.machineTurnMore;let $=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&B();for(let V=0;V<e.machineNum;V++)setTimeout(()=>{let D=$*(V+1+parseFloat(String(T)));r.prizeYPrev.length!=0&&(r.prizeY[V]=r.prizeYPrev[V]);let M=r.prizeYPrev[V]?r.prizeYPrev[V]:0,K=D+M+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+($-M);r.prizeLevelTrun<0&&(K+=e.numHeight*r.notPrize[V]),w(V,K,M)},500*V)}});const w=(T,$,V)=>{let D=setInterval(()=>{if(V<=$)V+=10,r.prizeY[T]=parseFloat(String(V));else if(clearInterval(D),D=null,r.finshMachine+=1,r.prizeY[T]=$,r.finshMachine==e.machineNum){let M=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(v=>{let E=v;for(;E>M;)E-=M;r.prizeYPrev.push(E)}),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(()=>{f()})}),t.onUnmounted(()=>{d(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:S,turnNumber:g}}}),F1={class:"fox-countup"},K1=["turn-number"];function U1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",F1,[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,K1))),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 ba=oe(R1,[["render",U1]]),H1=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:j1,create:W1}=_("countdown"),Y1=W1({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:a}){const o=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),l=t.computed(()=>({[j1]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-H1(e.startTime),o.counting||(o.counting=!0),i()},i=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const S=Date.now()-o.diffTime,g=Math.max(o.handleEndTime-S,0);o.restTime=g,g||(o.counting=!1,d(),n("on-end")),g>0&&i()}}))},c=(S,g)=>{const y=S;let k={d:0,h:0,m:0,s:0,ms:0};const p=1e3,b=60*p,m=60*b,N=24*m;return y>0&&(k.d=y>=p?Math.floor(y/N):0,k.h=Math.floor(y%N/m),k.m=Math.floor(y%m/b),k.s=Math.floor(y%b/p),k.ms=Math.floor(y%p)),g=="custom"?k:u({...k})},u=S=>{let{d:g,h:y,m:k,s:p,ms:b}=S,m=e.format;if(m.includes("DD")?m=m.replace("DD",st(g)):y+=Number(g)*24,m.includes("HH")?m=m.replace("HH",st(y)):k+=Number(y)*60,m.includes("mm")?m=m.replace("mm",st(k)):p+=Number(k)*60,m.includes("ss")?m=m.replace("ss",st(p)):b+=Number(p)*1e3,m.includes("S")){const N=st(b,3).toString();m.includes("SSS")?m=m.replace("SSS",N):m.includes("SS")?m=m.replace("SS",N.slice(0,2)):m.includes("S")&&(m=m.replace("SS",N.slice(0,1)))}return m},f=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i(),n("on-restart",o.restTime))},d=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},h=()=>{e.autoStart||(d(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():o.restTime=e.time}),t.watch(()=>o.restTime,S=>{let g=c(S,"custom");n("update:modelValue",g),n("input",g)}),t.watch(()=>e.paused,(S,g)=>{g?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i()),n("on-restart",o.restTime)):o.counting&&d()}),t.watch(()=>e.endTime,S=>{s()}),t.watch(()=>e.startTime,S=>{s()}),{...t.toRefs(e),slots:a,classes:l,start:f,pause:d,renderTime:r,reset:h}}}),X1=["innerHTML"];function Q1(e,n,a,o,l,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,X1))],2)}const ka=oe(Y1,[["render",Q1]]),{create:G1}=_("badge"),Z1=G1({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({}),a=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),o=t.computed(()=>{if(e.dot)return;const l=e.value,r=e.max;return typeof l=="number"&&typeof r=="number"&&r<l?`${r}+`:l});return{state:n,stl:a,content:o}}}),J1={class:"fox-badge"},_1=["textContent"];function eC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",J1,[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,_1),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const Sa=oe(Z1,[["render",eC]]),{componentName:tC,create:nC}=_("tag"),oC=nC({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:le.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const s=tC;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 lC(e,n,a,o,l,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 _t=oe(oC,[["render",lC]]),{create:aC}=_("popover"),rC=aC({components:{FoxPopup:me},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const b="fox-popover-arrow",m=e.location,N=m.split("-")[0];return`${b} ${b}-${N} ${b}--${m}`}),c=t.computed(()=>{const b={},{bgColor:m,arrowOffset:N,location:B}=e,C=B.split("-")[0],w=B.split("-")[1],T=16;return m&&(b[`border${u(C)}Color`]=m),e.arrowOffset!=0&&(["bottom","top"].includes(C)&&(w||(b.left=`calc(50% + ${N}px)`),w=="start"&&(b.left=`${T+N}px`),w=="end"&&(b.right=`${T-N}px`)),["left","right"].includes(C)&&(w||(b.top=`calc(50% - ${N}px)`),w=="start"&&(b.top=`${T-N}px`),w=="end"&&(b.bottom=`${T+N}px`))),b}),u=b=>(b=b.toLowerCase(),b=b.replace(/\b\w+\b/g,m=>m.substring(0,1).toUpperCase()+m.substring(1)),b),f=t.computed(()=>{let b={};if(!r.value||!s.value)return{};const m=s.value.width,N=s.value.height,{width:B,height:C,left:w,top:T}=r.value,{location:$,offset:V}=e,D=$.split("-")[0],M=$.split("-")[1];let K=0,v=0;if(ln(V)&&V.length==2&&(K+=Number(V[1]),v+=Number(V[0])),B){if(["bottom","top"].includes(D)){const E=D=="bottom"?C+K:-(N+K);b.top=`${T+E}px`,M||(b.left=`${-(m-B)/2+w+v}px`),M=="start"&&(b.left=`${w+v}px`),M=="end"&&(b.left=`${r.value.right+v}px`)}if(["left","right"].includes(D)){const E=D=="left"?-(m+K):B+K;b.left=`${w+E}px`,M||(b.top=`${T-N/2+C/2-4+v}px`),M=="start"&&(b.top=`${T+v}px`),M=="end"&&(b.top=`${T+C+v}px`)}}return b}),d=t.computed(()=>{const b={};return e.bgColor&&(b.background=e.bgColor),b}),h=()=>{let b=Me(a.value);e.targetId&&(b=Me(document.querySelector(`#${e.targetId}`))),r.value=b,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,b=>{l.value=b,b?(window.addEventListener("touchstart",p,!0),h()):window.removeEventListener("touchstart",p,!0)});const S=b=>{n("update",b),n("update:visible",b)},g=()=>{S(!e.visible),n("open")},y=()=>{n("update:visible",!1),n("close")},k=(b,m)=>{!b.disabled&&n("choose",b,m),e.closeOnClickAction&&y()},p=b=>{const m=a.value,N=o.value;let B=m&&!m.contains(b.target);if(e.targetId){const C=document.querySelector(`#${e.targetId}`);B=C&&!C.contains(b.target)}B&&N&&!N.contains(b.target)&&e.closeOnClickOutside&&y()};return{showPopup:l,openPopover:g,popoverArrow:i,closePopover:y,chooseItem:k,popoverRef:a,popoverContentRef:o,getRootPosition:f,customStyle:d,popoverArrowStyle:c,renderIcon:wr}}}),sC={ref:"popoverContentRef",class:"fox-popover-content-group"},iC=["onClick"],cC={class:"fox-popover-menu-item-name"};function dC(e,n,a,o,l,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",sC,[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",cC,t.toDisplayString(i.name),1)],10,iC))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const en=oe(rC,[["render",dC]]),uC=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(n){const{avatarShape:a,round:o,avatarSize:l}=t.toRefs(n),r=t.computed(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${a.value}`]:a.value}});return{avatarShape:a,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:o.value}),getStyle:()=>l.value?{width:l.value,height:l.value}:{width:"50px",height:"50px"}}}}),{create:fC}=_("skeleton"),mC=fC(uC({[Jt.name]:Jt})),pC={key:0},hC={key:1,class:"fox-skeleton"},gC={key:0,class:"fox-skeleton-animation"},yC={class:"fox-skeleton-content"};function bC(e,n,a,o,l,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",hC,[e.animated?(t.openBlock(),t.createElementBlock("view",gC)):t.createCommentVNode("",!0),t.createElementVNode("view",yC,[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",pC,[t.renderSlot(e.$slots,"default")]))}const Ca=oe(mC,[["render",bC]]),{create:kC,componentName:SC}=_("collapse"),CC=kC({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref(e.modelValue||(e.accordion?"":[])),l=t.computed(()=>({[SC]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,u,f=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,u,f)},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(f=>f!==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:a,classes:l}}});function wC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const wa=oe(CC,[["render",wC]]),{create:NC,componentName:BC}=_("collapse-item"),AC=NC({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:le.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=t.ref(null),a=t.ref(null),o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const h=BC;return{[h]:!0,[h+"__border"]:e.border}}),s=t.computed(()=>l?l.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},u=()=>{s.value&&(i.value="auto")},f=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},d=()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?f():d()}),{classes:r,renderIcon:wr,wrapperRef:n,contentRef:a,open:f,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:u}}}),TC={class:"fox-collapse-item__title-main"},$C={class:"fox-collapse-item__title-main-value"},VC=["innerHTML"],EC={key:2,class:"fox-collapse-item__title-label"},DC={key:0,class:"fox-collapse-item__title-sub"},IC=["innerHTML"],vC={key:0,class:"fox-collapse__item-extraWrapper"},xC={class:"fox-collapse__item-extraWrapper__extraRender"},qC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function MC(e,n,a,o,l,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",TC,[t.createElementVNode("view",$C,[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,VC)),e.label?(t.openBlock(),t.createElementBlock("view",EC,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",DC,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,IC)),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",vC,[t.createElementVNode("div",xC,[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",qC,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const Na=oe(AC,[["render",MC]]),PC=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:LC,create:zC,scope:OC}=_("table"),RC=zC({components:{RenderColumn:PC,DownArrow:le.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:n,slots:a}){const{t:o}=ie.useFoxI18n(OC),l=t.reactive({curData:e.data}),r=t.computed(()=>({[LC]:!0})),s=S=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${S.align?S.align:""}`]:!0}),i=S=>S.stylehead?S.stylehead:"",c=S=>S.stylecolumn?S.stylecolumn:"",u=S=>e.columns.filter(g=>g.key===S)[0],f=S=>{const g=e.columns.filter(y=>y.key===S);return g[0].stylecolumn?g[0].stylecolumn:""},d=S=>{S.sorter&&(n("sorter",S),l.curData=typeof S.sorter=="function"?l.curData.sort(S.sorter):S.sorter==="default"?l.curData.sort():l.curData)},h=()=>e.columns.map(S=>[S.key,S.render]);return t.watch(()=>e.data,S=>{l.curData=S.slice()}),{...t.toRefs(l),classes:r,cellClasses:s,getColumnItem:u,getColumnItemStyle:f,handleSorterClick:d,sortDataItem:h,t:o,stylehead:i,stylecolumn:c}}}),FC={class:"fox-table__main__head"},KC={class:"fox-table__main__head__tr"},UC=["onClick"],HC={class:"fox-table__main__body"},jC={key:1},WC={key:0,class:"fox-table__nodata"},YC={key:0,class:"fox-table__nodata__text"},XC={key:1,class:"fox-table__summary"},QC=["innerHTML"];function GC(e,n,a,o,l,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",FC,[t.createElementVNode("view",KC,[(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,UC))),128))])]),t.createElementVNode("view",HC,[(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,f])=>(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 f=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[f,c[u]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",jC,t.toDisplayString(c[u]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",WC,[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",YC,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",XC,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,QC)])):t.createCommentVNode("",!0)],2)}const Ba=oe(RC,[["render",GC]]),{componentName:ZC,create:JC}=_("ellipsis"),_C=JC({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const a=t.ref(null);let o=null,l=0;const r=t.ref(),s=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>({[ZC]:!0}));t.watch(()=>e.content,(y,k)=>{y!=k&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!a.value)return;const y=window.getComputedStyle(a.value);o=document.createElement("div"),Array.prototype.slice.apply(y).forEach(b=>{o.style.setProperty(b,y.getPropertyValue(b))}),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 p=h(y.lineHeight==="normal"?e.lineHeight:y.lineHeight);l=Math.floor(p*(Number(e.rows)+.5)+h(y.paddingTop)+h(y.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),u()},u=()=>{if(o.offsetHeight<=l)s.exceeded=!1,document.body.removeChild(o);else{s.exceeded=!0;const y=e.content.length,k=Math.floor((0+y)/2),p=e.direction==="middle"?d([0,k],[k,y]):f(0,y);r.value=p,document.body.removeChild(o)}},f=(y,k)=>{const p=s.expanded?e.collapseText:e.expandText,b=e.content.length;if(k-y<=1)return e.direction==="end"?{leading:e.content.slice(0,y)+e.symbol}:{tailing:e.symbol+e.content.slice(k,b)};const m=Math.round((y+k)/2);return e.direction==="end"?o.innerText=e.content.slice(0,m)+e.symbol+p:o.innerText=p+e.symbol+e.content.slice(m,b),o.offsetHeight<=l?e.direction==="end"?f(m,k):f(y,m):e.direction==="end"?f(y,m):f(m,k)},d=(y,k)=>{const p=s.expanded?e.collapseText:e.expandText,b=e.content.length;if(y[1]-y[0]<=1&&k[1]-k[0]<=1)return{leading:e.content.slice(0,y[0])+e.symbol,tailing:e.symbol+e.content.slice(k[1],b)};const m=Math.floor((y[0]+y[1])/2),N=Math.ceil((k[0]+k[1])/2);return o.innerText=e.content.slice(0,m)+e.symbol+p+e.symbol+e.content.slice(N,b),o.offsetHeight<=l?d([m,y[1]],[k[0],N]):d([y[0],m],[N,k[1]])},h=y=>{if(!y)return 0;const k=y.match(/^\d*(\.\d*)?/);return k?Number(k[0]):0},S=y=>{y==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},g=()=>{n("click")};return{...t.toRefs(s),root:a,ellipsis:r,classes:i,clickHandle:S,handleClick:g}}}),ew={key:0},tw={key:1},nw={key:2};function ow(e,n,a,o,l,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",ew,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",tw,[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",nw,[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 Aa=oe(_C,[["render",ow]]),{componentName:lw,create:aw}=_("animate"),rw=aw({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:a,loop:o,action:l}=t.toRefs(e),r=t.reactive({clicked:!1});let s=t.computed(()=>({"fox-animate__container":!0,[`${lw}-${a.value}`]:l.value==="initial"||r.clicked?a.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}}}),sw={class:"fox-animate"};function iw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",sw,[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 Ta=oe(rw,[["render",iw]]),{componentName:cw,create:dw}=_("watermark"),uw=dw({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const a=t.reactive({base64Url:""}),{zIndex:o,gapX:l,gapY:r,width:s,height:i,rotate:c,image:u,imageWidth:f,imageHeight:d,content:h,fontStyle:S,fontWeight:g,fontColor:y,fontSize:k,fontFamily:p}=e,b=()=>{const N=document.createElement("canvas"),B=window.devicePixelRatio,C=N.getContext("2d"),w=`${(l+s)*B}px`,T=`${(r+i)*B}px`,$=s*B,V=i*B;if(N.setAttribute("width",w),N.setAttribute("height",T),C){if(u){C.translate($/2,V/2),C.rotate(Math.PI/180*Number(c));const D=new Image;D.crossOrigin="anonymous",D.referrerPolicy="no-referrer",D.src=u,D.onload=()=>{C.drawImage(D,-f*B/2,-d*B/2,f*B,d*B),C.restore(),a.base64Url=N.toDataURL()}}else if(h){C.textBaseline="middle",C.textAlign="center",C.translate($/2,V/2),C.rotate(Math.PI/180*Number(c));const D=Number(k)*B;C.font=`${S} normal ${g} ${D}px/${V}px ${p}`,C.fillStyle=y,C.fillText(h,0,0),C.restore(),a.base64Url=N.toDataURL()}}else throw new Error("当前环境不支持Canvas")};b(),t.watch(()=>[o,l,r,s,i,c,u,f,d,h,S,g,y,k,p],()=>{b()});const m=t.computed(()=>{const N=cw;return{[N]:!0,[`${N}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:m}}});function fw(e,n,a,o,l,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 $a=oe(uw,[["render",fw]]);function mw(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:pw,create:hw}=_("trend-arrow"),gw=hw({components:{TriangleUp:le.TriangleUp,TriangleDown:le.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const n=t.reactive({rateTrend:e.rate>0}),a=t.computed(()=>({[pw]:!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?"+":"-":""}${mw(Number(u),s)}%`}),l=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:a,calcRate:o,calcStyle:l}}});function yw(e,n,a,o,l,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 Va=oe(gw,[["render",yw]]),{create:bw}=_("tour"),kw=bw({components:{[en.name]:en,Close:le.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:n}){const a=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),l=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:f,maskWidth:d,maskHeight:h}=e,{width:S,height:g,left:y,top:k}=o.value,p=[y+S/2,k+g/2],b=Number(d||S),m=Number(h||g);return{width:`${b+ +f[1]*2}px`,height:`${m+ +f[0]*2}px`,top:`${p[1]-m/2-+f[0]}px`,left:`${p[0]-b/2-+f[1]}px`}}),s=f=>{f=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,t.nextTick(()=>{a.showPopup=!0,i()}),n("change",a.active)},i=()=>{const f=document.querySelector(`#${e.steps[a.active].target}`),d=Me(f);o.value=d},c=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},u=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{a.active=0,i()}),t.watch(()=>e.modelValue,f=>{f&&i(),a.active=0,a.showTour=f,a.showPopup=f}),{...t.toRefs(a),classes:l,maskStyle:r,changeStep:s,close:c,handleClickMask:u}}}),Sw={key:0,class:"fox-tour-content"},Cw={key:0,class:"fox-tour-content-top"},ww={class:"fox-tour-content-inner"},Nw={class:"fox-tour-content-bottom"},Bw={class:"fox-tour-content-bottom-init"},Aw={class:"fox-tour-content-bottom-operate"},Tw={key:1,class:"fox-tour-content fox-tour-content-tile"},$w={class:"fox-tour-content-inner"};function Vw(e,n,a,o,l,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]=f=>e.showPopup=f),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",Sw,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",Cw,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...f)=>e.close&&e.close(...f))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",ww,t.toDisplayString(c.content),1),t.createElementVNode("div",Nw,[t.createElementVNode("div",Bw,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",Aw,[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]=f=>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]=(...f)=>e.close&&e.close(...f))},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]=f=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",Tw,[t.createElementVNode("div",$w,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const Ea=oe(kw,[["render",Vw]]),{componentName:q2,create:Ew,scope:Dw}=_("address"),Iw=Ew({components:{Location:le.Location,Location2:le.Location2,Check:le.Check,Close:le.Close,Left:le.Left,[me.name]:me,[Kt.name]:Kt},inheritAttrs:!1,props:{...Re,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:a}=ie.useFoxI18n(Dw),o=t.ref(null),l=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"]),f=t.ref(null),d=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}}),S=E=>{if(!Array.isArray(E))throw new TypeError("params muse be array.");if(!E.length)return[];E.forEach(I=>{if(!I.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const L=[];return E=E.sort((I,W)=>I.title.localeCompare(W.title)),E.forEach(I=>{const W=L.findIndex(j=>j.title===I.title);W<=-1?L.push({title:I.title,list:[].concat(I)}):L[W].list.push(I)}),L};let g=t.ref([]),y=t.reactive({});const k=t.ref("self"),p=t.ref(20),b=()=>{const E=e.modelValue,L=E.length;if(L>0){if(i.value=L-1,h.value.length==0){i.value=0;return}for(let I=0;I<L;I++){let W=[];switch(I){case 0:W=e.province;break;case 1:W=e.city;break;case 2:W=e.country;break;default:W=e.town}g.value[I]=W.filter(j=>j.id==E[I])[0]}N()}},m=(E,L)=>E&&E.name||i.value<L&&E?E.name:e.columnsPlaceholder[L]||a("select"),N=()=>{w(),t.nextTick(()=>{const E=l.value&&l.value.getElementsByClassName("active")[0];if(E){const L=E.offsetLeft;p.value=L||20}})},B=E=>{const L=i.value;c.value=i.value;const I={custom:u.value[L]};g.value[L]=E;for(let W=L+2;W<4;W++)g.value.splice(W,1);L<3?(i.value=L+1,N(),I.next=u.value[i.value],I.value=E,n("change",I)):(V(),n("update:modelValue"))},C=(E,L)=>{c.value=i.value,m(E,L)&&(i.value=L,N())},w=()=>{const E=f.value,L=c.value,I=d.value[i.value];E?.scrollTop&&(d.value[L]=E?.scrollTop),t.nextTick(()=>{E?.scrollTo({top:I,behavior:"auto"})})},T=E=>{const L=e.existAddress;let I={};L.forEach(W=>{W&&W.selectedAddress&&(I=W),W.selectedAddress=!1}),E.selectedAddress=!0,y=E,n("selected",I,E,L),V()},$=()=>{g.value=[],i.value=0,N()},V=(E="self")=>{k.value=E=="cross"?"cross":"self",r.value=!1},D=()=>{k.value="mask"},M=()=>{const E={addressIdStr:"",addressStr:"",province:g.value[0],city:g.value[1],country:g.value[2],town:g.value[3]},L={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(I=>{const W=g.value[I];E.addressIdStr+=`${I?"_":""}${W&&W.id||0}`,E.addressStr+=W&&W.name||""}),L.data=E):L.data=y,$(),k.value=="self"?n("close",L):n("close-mask",{closeWay:k}),n("update:visible",!1)},K=()=>{const E=s.value;s.value=E=="exist"?"custom":"exist",$(),n("switch-module",{type:s.value})},v=(E,L)=>{B(L)};return t.watch(()=>e.visible,E=>{r.value=E}),t.watch(()=>r.value,E=>{E&&b()}),{showPopup:r,privateType:s,tabIndex:i,tabName:u,selectedRegion:g,switchModule:K,closeWay:k,close:M,getTabName:m,nextAreaList:B,regionLine:o,tabRegion:l,lineDistance:p,changeRegionTab:C,selectedExist:T,clickOverlay:D,handClose:V,handleElevatorItem:v,initCustomSelected:b,...t.toRefs(e),t:a,regionList:h,transformData:S,scrollDom:f}}}),vw={class:"fox-address"},xw={class:"fox-address__header"},qw={class:"fox-address__header__title"},Mw={key:0,class:"fox-address__custom"},Pw={class:"fox-address__region",ref:"tabRegion"},Lw=["onClick"],zw={key:0,class:"active fox-address__region-item"},Ow={key:0,class:"fox-address__detail"},Rw={class:"fox-address__detail-list",ref:"scrollDom"},Fw=["onClick"],Kw={key:1,class:"fox-address__elevator-group"},Uw={key:1,class:"fox-address__exist"},Hw={class:"fox-address__exist-group"},jw={class:"fox-address__exist-group-list"},Ww=["onClick"],Yw={class:"fox-address__exist-item-info"},Xw={key:0,class:"fox-address__exist-item-info-name"},Qw={key:1,class:"fox-address__exist-item-info-phone"},Gw={class:"fox-address__exist-item-info-bottom"},Zw={class:"fox-address__exist-choose-btn"};function Jw(e,n,a,o,l,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),u=t.resolveComponent("fox-elevator"),f=t.resolveComponent("Location2"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{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",vw,[t.createElementVNode("view",xw,[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",qw,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",Mw,[t.createElementVNode("view",Pw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,S)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",S==e.tabIndex?"active":""]),key:S,onClick:g=>e.changeRegionTab(h,S)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,S)),1)],10,Lw))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",zw,[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",Ow,[t.createElementVNode("ul",Rw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,S)=>(t.openBlock(),t.createElementBlock("li",{key:S,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,Fw))),128))],512)])):(t.openBlock(),t.createElementBlock("view",Kw,[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",Uw,[t.createElementVNode("div",Hw,[t.createElementVNode("ul",jw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,S)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:S,onClick:g=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(f,{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",Yw,[h.name?(t.openBlock(),t.createElementBlock("div",Xw,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",Qw,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",Gw,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,Ww))),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",Zw,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 Da=oe(Iw,[["render",Jw]]),{componentName:_w,create:eN}=_("barrage"),tN=eN({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const n=new Date().getTime(),a=!!t.useSlots().default,o=t.computed(()=>({[_w]:!0}));let l=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),f=t.ref(0),d=e.speeds,h=t.ref(0);t.onMounted(()=>{S(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(y(),f.value=0,g("hidden")):document.visibilityState==="visible"&&S()})}),t.onUnmounted(()=>{i.value=[],y()});const S=()=>{h.value=l.value.offsetWidth,a&&g("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${h.value}px`),p()},300)},g=m=>{let B=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const C=[];B&&Array.from(B).forEach(w=>{m=="init"?(w.style.opacity="0",C.push(w)):(w.classList="",w.style={})}),m=="init"&&(i.value=C)},y=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,m=>{e.danmu.length>0&&(i.value=[...m])});const k=m=>{const N=f.value%i.value.length;!e.loop&&f.value===i.value.length?i.value.splice(i.value.length,0,m):i.value.splice(N,0,m)},p=()=>{y(),s=setTimeout(()=>{b()},e.frequency)},b=()=>{const m=e.loop?f.value%i.value.length:f.value;let N=document.createElement("view");a&&typeof i.value[m]=="object"?(N=i.value[m],N?.classList?.add("fox-barrage__item")):(N.innerHTML=i.value[m],N.classList.add("fox-barrage__item"),r.value.appendChild(N)),t.nextTick(()=>{const B=N.offsetHeight;if(N?.classList?.add("move"),N.style.animationDuration=`${d}ms`,N.style.top=m%c.value*(B+u.value)+20+"px",N.style.opacity="1",!a){const C=N.offsetWidth;N.style.width=C+20+"px"}N.addEventListener("animationend",()=>{a?N.classList.remove("move"):r.value.removeChild(N)}),!(!e.loop&&f.value>=i.value.length-1)&&(f.value++,f.value>=i.value.length&&(f.value=0),N.removeEventListener("animationend",()=>{}),p())})};return{classTime:n,classes:o,danmuList:i,dmBody:l,dmContainer:r,add:k}}});function nN(e,n,a,o,l,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=oe(tN,[["render",nN]]),{componentName:oN,create:lN,scope:aN}=_("signature"),rN=lN({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:n}){const{toLocaleRefs:a}=ie.useFoxI18n(aN),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),s=t.computed(()=>({[oN]:!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 b=document.createElement("canvas");return!!(b.getContext&&b.getContext("2d"))},u=()=>{l.value.addEventListener(i.events[0],f,!1)},f=b=>{b.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(i.events[1],d,!1),l.value.addEventListener(i.events[2],h,!1),l.value.addEventListener(i.events[3],S,!1)},d=b=>{b.preventDefault();let m=i.isSupportTouch?b.touches[0]:b;n("signing",m);let N=l.value.getBoundingClientRect(),B=m.clientX-N.left,C=m.clientY-N.top;i.ctx.lineTo(B,C),i.ctx.stroke()},h=b=>{b.preventDefault(),n("end"),l.value.removeEventListener(i.events[1],d,!1),l.value.removeEventListener(i.events[2],h,!1)},S=b=>{b.preventDefault(),l.value.removeEventListener(i.events[1],d,!1),l.value.removeEventListener(i.events[2],h,!1)},g=()=>{l.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},y=()=>{p(l.value)},k=b=>{if(!b)return!0;var m=document.createElement("canvas");return m.width=b.width,m.height=b.height,b?.toDataURL()==m.toDataURL()},p=b=>{let m;switch(e.type){case"png":m=b.toDataURL("image/png");break;case"jpg":m=b.toDataURL("image/jpeg",.8);break}const N=k(b)?"请绘制签名":b,B=k(b)?"":m;n("confirm",N,B)};return t.onMounted(()=>{c()&&(i.ctx=l.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,u())}),{...o,...t.toRefs(i),canvas:l,wrap:r,isCanvasSupported:c,confirm:y,clear:g,classes:s}}}),sN={class:"fox-signature-inner",ref:"wrap"},iN=["height","width"],cN={key:0,class:"fox-signature-unsopport"};function dN(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",sN,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,iN),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",cN,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 va=oe(rN,[["render",dN]]),{componentName:uN,create:fN,scope:mN}=_("time-select"),pN=fN({components:{[me.name]:me},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:a}=ie.useFoxI18n(mN),o=t.computed(()=>({[uN]:!0})),l=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:l,props:e,close:i,t:a}}}),hN={class:"fox-time-select__title"},gN={class:"fox-time-select__title__fixed"},yN={key:0},bN={class:"fox-time-select__content"},kN={class:"fox-time-select__content__pannel"},SN={class:"fox-time-select__content__detail"};function CN(e,n,a,o,l,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",hN,[t.createElementVNode("view",gN,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",yN,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",bN,[t.createElementVNode("view",kN,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",SN,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const xa=oe(pN,[["render",CN]]),{componentName:wN,create:NN}=_("time-pannel"),BN=NN({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,n)=>{const a=t.inject("currentKey"),o=t.reactive({currentKey:a}),l=t.computed(()=>({[wN]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function AN(e,n,a,o,l,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 qa=oe(BN,[["render",AN]]),{componentName:TN,create:$N}=_("time-detail"),VN=$N({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,n)=>{const a=t.inject("currentKey"),o=t.inject("currentTime"),l=t.reactive({currentKey:a,currentTime:o}),r=t.computed(()=>({[TN]:!0})),s=u=>{let f=l.currentTime.find(d=>d.key==l.currentKey);if(f)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":f.list.filter(d=>d===u).length>0}},i=t.computed(()=>e.times.find(u=>u.key==l.currentKey).list),c=u=>{n.emit("select",u)};return{classes:r,...t.toRefs(l),getClass:s,renderData:i,handleTime:c}}}),EN={class:"fox-time-detail__detail fox-time-detail__detail--moring"},DN={class:"fox-time-detail__detail__list"},IN=["onClick"];function vN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",EN,[t.createElementVNode("view",DN,[(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,IN))),128))])])],2)}const Ma=oe(VN,[["render",vN]]),{componentName:M2,create:xN,scope:qN}=_("sku-header"),MN=xN({props:{goods:{type:Object,default:{}}},emits:[],components:{[et.name]:et},setup(e,{emit:n,slots:a}){const{t:o}=ie.useFoxI18n(qN);return{getSlots:r=>a[r],t:o}}}),PN={class:"fox-sku-header"},LN=["src"],zN={class:"fox-sku-header-right"},ON={key:3,class:"fox-sku-header-right-extra"};function RN(e,n,a,o,l,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",PN,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,LN),t.createElementVNode("view",zN,[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",ON,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const FN=oe(MN,[["render",RN]]),{componentName:P2,create:KN}=_("sku-select"),UN=KN({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:n}){const a=t.ref([]);return t.watch(()=>e.sku,l=>{a.value=[].slice.call(l)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(a.value=[].slice.call(e.sku))}),{skuInfo:a,changeSaleChild:(l,r,s,i)=>{l.checkFlag||l.disable||n("selectSku",{sku:l,skuIndex:r,parentSku:s,parentIndex:i})}}}}),HN={class:"fox-sku-select"},jN={class:"fox-sku-select-item-title"},WN={class:"fox-sku-select-item-skus"},YN=["onClick"];function XN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",HN,[(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",jN,t.toDisplayString(s.name),1),t.createElementVNode("view",WN,[(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:f=>e.changeSaleChild(c,u,s,i),key:c.name},t.toDisplayString(c.name),11,YN))),128))])]))),128))])}const QN=oe(UN,[["render",XN]]),{componentName:L2,create:GN}=_("sku-stepper"),ZN=GN({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:{[nt.name]:nt},setup(e,{emit:n}){const a=t.ref(e.stepperMin);return t.onMounted(()=>{a.value=e.stepperMin}),{goodsCount:a,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,u)=>{n("overLimit",{action:u,value:parseInt(a.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&at(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),JN={class:"fox-sku-stepper"},_N={class:"fox-sku-stepper-title"},eB=["innerHTML"],tB={class:"fox-sku-stepper-count"};function nB(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",JN,[t.createElementVNode("view",_N,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,eB),t.createElementVNode("view",tB,[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 oB=oe(ZN,[["render",nB]]),{componentName:z2,create:lB}=_("sku-operate"),aB=lB({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:a}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{n("clickBtnOperate",s)},getSlots:s=>a[s]}}}),rB={key:0,class:"fox-sku-operate"},sB={key:0,class:"fox-sku-operate-desc"},iB={key:1,class:"fox-sku-operate-btn"},cB=["onClick"];function dB(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",rB,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",sB,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",iB,[(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,cB))),128))]))])):t.createCommentVNode("",!0)}const uB=oe(aB,[["render",dB]]),{componentName:O2,create:fB,scope:mB}=_("sku"),pB=fB({props:{...Re,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:FN,SkuSelect:QN,SkuStepper:oB,SkuOperate:uB,[me.name]:me},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=ie.useFoxI18n(mB),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,k=>{r.value=k}),t.watch(()=>r.value,k=>{k==!1&&y()}),t.onMounted(()=>{});const i=k=>a[k],c=k=>{n("select-sku",k)},u=k=>{s.value=k,n("change-stepper",k)},f=k=>{n("add",k)},d=k=>{n("reduce",k)},h=k=>{n("over-limit",k)},S=k=>{n("click-btn-operate",{type:k,value:s.value})},g=k=>{k=="icon"&&n("click-close-icon"),k=="overlay"&&n("click-overlay"),k=="close"&&n("close"),r.value=!1},y=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:g,selectSku:c,changeStepper:u,stepperOverLimit:h,clickBtnOperate:S,add:f,reduce:d,getSlots:i,...l}}}),hB={class:"fox-sku"},gB={class:"fox-sku-content"};function yB(e,n,a,o,l,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),u=t.resolveComponent("sku-operate"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=d=>e.showPopup=d),onClickCloseIcon:n[1]||(n[1]=d=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=d=>e.closePopup("overlay")),onClose:n[3]||(n[3]=d=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",hB,[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",gB,[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 Pa=oe(pB,[["render",yB]]),{create:bB}=_("card"),kB=bB({components:{[et.name]:et,[_t.name]:_t},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:a}){return{isHaveSlot:l=>a[l]}}}),SB={class:"fox-card"},CB={class:"fox-card__left"},wB=["src"],NB={class:"fox-card__right"},BB={class:"fox-card__right__title"},AB={key:0,class:"fox-card__right__price"},TB={class:"fox-card__right__other"},$B={class:"fox-card__right__shop"},VB={class:"fox-card__right__shop__name"};function EB(e,n,a,o,l,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",SB,[t.createElementVNode("div",CB,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,wB)]),t.createElementVNode("div",NB,[t.createElementVNode("div",BB,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",AB,[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",TB,[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",$B,[t.createElementVNode("div",VB,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const La=oe(kB,[["render",EB]]),{create:DB,scope:IB}=_("ecard"),vB=DB({components:{[nt.name]:nt},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:a}=ie.useFoxI18n(IB),o=t.ref(null),l=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,S)=>{o.value=S,s.value=e.cardAmountMin,l.value=h.price,n("change",h),n("update:modelValue",h.price)},u=h=>{let g=h.target.value.replace(/[^\d]/g,"");r.value=g,l.value=g,Number(g)>e.cardAmountMax&&(r.value=e.cardAmountMax,l.value=e.cardAmountMax),Number(g)<e.cardAmountMin&&(r.value=e.cardAmountMin,l.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},f=()=>{o.value="input",s.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},d=h=>{s.value=h,n("changeStep",s.value,l.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:d,change:u,inputClick:f,stepValue:s,currentIndex:o,inputValue:r,money:i,t:a}}}),xB={class:"fox-ecard"},qB={class:"fox-ecard__title"},MB={class:"fox-ecard__list"},PB=["onClick"],LB={class:"fox-ecard__list__input--con"},zB=["placeholder"],OB={class:"fox-ecard__list__step"};function RB(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",xB,[t.createElementVNode("view",qB,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",MB,[(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,PB))),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",LB,[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,zB),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",OB,[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 za=oe(vB,[["render",RB]]),{create:FB,scope:KB}=_("address-list-item"),UB=FB({components:{Del:le.Del,Edit:le.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(KB);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:a}}}),HB={class:"fox-address-list-item__info"},jB={class:"fox-address-list-item__info-contact"},WB={class:"fox-address-list-item__info-contact-name"},YB={class:"fox-address-list-item__info-contact-tel"},XB={key:0,class:"fox-address-list-item__info-contact-default"},QB={class:"fox-address-list-item__info-handle"},GB={class:"fox-address-list-item__addr"};function ZB(e,n,a,o,l,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",HB,[t.createElementVNode("div",jB,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",WB,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",YB,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",XB,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",QB,[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",GB,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const js=oe(UB,[["render",ZB]]),{create:JB}=_("address-list-general"),_B=JB({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:js,[ze.name]:ze,[jt.name]:jt},setup(e,{emit:n}){const a=()=>t.h(js,{item:e.item,onDelIcon(B){s(B)},onEditIcon(B){i(B)},onClickItem(B){c(B)}});let o=null;const l=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=>{l.value||(n("clickItem",B,e.item),B.stopPropagation())},u=B=>{n("longDel",B,e.item),B.stopPropagation()},f=B=>{o=0,r.value=!0,n("longDown",B,e.item)};return{renderCompontent:a,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:u,holddownstart:B=>{o=setTimeout(()=>{f(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:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),eA={key:0,class:"fox-address-list-general"},tA={class:"fox-address-list-swipe"};function nA(e,n,a,o,l,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(()=>n[5]||(n[5]=[t.createTextVNode("删除")])),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",tA,[(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",eA,[(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 oA=oe(_B,[["render",nA]]),{componentName:lA,create:aA,scope:rA}=_("address-list"),sA=aA({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:oA,[ze.name]:ze},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(rA),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[lA]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(y=>cr(l,y,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(y,k)=>{n("delIcon",y,k),y.stopPropagation()},c=(y,k)=>{n("editIcon",y,k),y.stopPropagation()},u=(y,k)=>{n("clickItem",y,k),y.stopPropagation()},f=(y,k)=>{n("longCopy",y,k),y.stopPropagation()},d=(y,k)=>{n("longSet",y,k),y.stopPropagation()},h=(y,k)=>{n("longDel",y,k),y.stopPropagation()},S=(y,k)=>{n("swipeDel",y,k),y.stopPropagation()},g=y=>{n("add",y),y.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:u,clickLongCopy:f,clickLongSet:d,clickLongDel:h,clickSwipeDel:S,addAddress:g,dataArray:o,t:a}}});function iA(e,n,a,o,l,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 Oa=oe(sA,[["render",iA]]),{componentName:R2,create:cA}=_("category"),dA=cA({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:n,slots:a}){const o=t.ref(0),l=t.ref(!1);return{getChildList:s=>{o.value=s,n("change",s)},checkIndex:o,categoryLeft:l}}}),uA={class:"fox-category"},fA={class:"fox-category__cateList"},mA={key:0},pA=["onClick"];function hA(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",uA,[t.createElementVNode("div",fA,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",mA,[(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,pA)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Ra=oe(dA,[["render",hA]]),{componentName:F2,create:gA}=_("category-pane"),yA=gA({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),bA={class:"fox-category-pane"},kA={key:0,class:"fox-category-pane__cateListRight"},SA={class:"fox-category-pane__childTitle"},CA={key:0,class:"fox-category-pane__childItemList"},wA=["onClick"],NA=["src"],BA={class:"fox-category-pane__skuImg"},AA={key:1,class:"fox-category-pane__cateListRight"},TA={class:"fox-category-pane__childTitle"},$A={key:0,class:"fox-category-pane__childItemList"},VA=["onClick"],EA={class:"fox-category-pane__skuName"},DA={key:2,class:"fox-category-pane__selfItemList"},IA=["onClick"];function vA(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",bA,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",kA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",SA,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",CA,[(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:f=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,NA),t.createElementVNode("div",BA,t.toDisplayString(c?.catName),1)],8,wA))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",AA,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",TA,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",$A,[(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:f=>e.onChange(c)},[t.createElementVNode("div",EA,t.toDisplayString(c?.catName),1)],8,VA))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",DA,[(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,IA))),128))])):t.createCommentVNode("",!0)])}const Fa=oe(yA,[["render",vA]]),{componentName:K2,create:xA}=_("comment-header"),qA=xA({components:{[Bt.name]:Bt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),MA={class:"fox-comment-header__user"},PA={class:"fox-comment-header__user-avter"},LA=["src"],zA={class:"fox-comment-header__user-score"},OA={key:0,class:"fox-comment-header__time"};function RA(e,n,a,o,l,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",MA,[t.createElementVNode("view",PA,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,LA)):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",zA,[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",OA,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 FA=oe(qA,[["render",RA]]),{componentName:U2,create:KA}=_("comment-images"),UA=KA({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:le.Right},emits:["click","clickImages"],setup(e,{emit:n}){const a=t.ref(!1),o=t.ref(1),l=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),l.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),l.value=e.videos.concat(e.images)}),{isShowImage:a,initIndex:o,showImages:(s,i)=>{const{videos:c,images:u}=e,f=s=="img"?i-c.length:i;n("clickImages",{type:s,index:f,value:s=="img"?u[f]:c[f]})},totalImages:l}}}),HA=["onClick"],jA=["src"],WA=["onClick"],YA=["src"],XA={key:0,class:"fox-comment-images__mask"};function QA(e,n,a,o,l,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,jA),n[0]||(n[0]=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1))],8,HA))),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,YA),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",XA,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,WA)):t.createCommentVNode("",!0)],64))),128))],2)}const GA=oe(UA,[["render",QA]]),{componentName:H2,create:ZA,scope:JA}=_("comment-bottom"),_A=ZA({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:le.Fabulous,Comment:le.Comment,MoreX:le.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(JA),o=t.ref(!1),l=t.ref([]);return t.onMounted(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&l.value.push(c)})}),{showPopver:o,operate:i=>{i=="more"&&(o.value=!o.value),n("clickOperate",i)},mergeOp:l,handleClick:()=>{n("handleClick")},t:a}}}),e2={class:"fox-comment-bottom"},t2={key:0},n2={class:"fox-comment-bottom__cpx"},o2=["onClick"];function l2(e,n,a,o,l,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,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${u}`]),onClick:d=>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]=d=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,o2))),128))])])}const a2=oe(_A,[["render",l2]]),{componentName:r2,create:s2,scope:i2}=_("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:FA,CommentImages:GA,CommentBottom:a2,Right:le.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=ie.useFoxI18n(i2),o=t.computed(()=>({[r2]:!0})),l=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:o,conEllipsis:l,clickOperate:c=>{n("clickOperate",c)},handleClick:()=>{n("click",e.info)},clickImages:c=>{n("clickImages",c)},t:a}}}),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,a,o,l,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]=(...f)=>e.handleClick&&e.handleClick(...f)),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]=(...f)=>e.handleClick&&e.handleClick(...f))},[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 Ka=oe(c2,[["render",p2]]),h2=[Do,vo,xo,qo,Lo,Be,Fo,Ko,Uo,Ho,Wo,xn,Qo,Zo,tl,ol,Wn,Yn,ll,Qn,Gn,rl,il,kt,cl,ul,oo,ml,hl,Ln,zn,On,bl,kl,Sl,ut,Cl,wl,Nl,Bl,Al,Tl,$l,ze,Vl,El,dt,me,Dl,Il,vl,xl,Ft,ql,Ml,Pl,Ll,zl,Ol,Rl,Fl,Kl,Kt,Ul,Hl,jl,Wl,Yl,Xl,Ql,Ut,eo,Rn,jn,Un,nt,Bt,zt,Gl,Zl,Jl,jt,_l,ea,ta,Wt,_n,na,aa,Jn,$t,ia,ca,Jt,da,ua,Ht,fa,ma,pa,Vt,ha,ga,Et,Dt,et,ro,ba,ka,Sa,_t,en,Ca,wa,Na,Ba,Aa,Ta,$a,Va,Ea,Da,Ia,va,xa,qa,Ma,Pa,La,za,Oa,Ra,Fa,Ka],g2=new Ti(h2,"4.0.0");A.ActionSheet=_l,A.ActionsheetItem=ml,A.ActionsheetPane=oo,A.Address=Da,A.AddressList=Oa,A.Animate=Ta,A.Audio=ia,A.AudioOperate=ca,A.Avatar=Jt,A.AvatarGroup=da,A.BackTop=ea,A.Badge=Sa,A.Barrage=Ia,A.Broadcast=Bo,A.BroadcastKey=we,A.Button=ze,A.Calendar=jn,A.CalendarItem=ol,A.Card=La,A.Cascader=Rn,A.CascaderItem=Zo,A.Category=Ra,A.CategoryPane=Fa,A.Cell=Vl,A.CellGroup=El,A.Checkbox=Qn,A.CheckboxGroup=Gn,A.CheckboxItem=rl,A.CircleProgress=fa,A.Col=vl,A.Collapse=wa,A.CollapseItem=Na,A.Comment=Ka,A.Content=qo,A.CountDown=ka,A.CountUp=ba,A.DataItemsKey=pt,A.DateItem=tl,A.DatePicker=Un,A.DateUtils=re,A.Dialog=Wt,A.Divider=ql,A.Domain=pn,A.DomainKey=qe,A.DomainProvider=Tl,A.Drag=ta,A.Dropdown=wl,A.Ecard=za,A.Elevator=Kt,A.Ellipsis=Aa,A.Empty=pa,A.FixedNav=zl,A.FloatingButton=kl,A.FooterBar=xo,A.FoxActionSheet=_l,A.FoxActionsheetItem=ml,A.FoxActionsheetPane=oo,A.FoxAddress=Da,A.FoxAddressList=Oa,A.FoxAnimate=Ta,A.FoxAudio=ia,A.FoxAudioOperate=ca,A.FoxAvatar=Jt,A.FoxAvatarGroup=da,A.FoxBackTop=ea,A.FoxBadge=Sa,A.FoxBarrage=Ia,A.FoxButton=ze,A.FoxCalendar=jn,A.FoxCalendarItem=ol,A.FoxCard=La,A.FoxCascader=Rn,A.FoxCascaderItem=Zo,A.FoxCategory=Ra,A.FoxCategoryPane=Fa,A.FoxCell=Vl,A.FoxCellGroup=El,A.FoxCheckbox=Qn,A.FoxCheckboxGroup=Gn,A.FoxCheckboxItem=rl,A.FoxCircleProgress=fa,A.FoxCol=vl,A.FoxCollapse=wa,A.FoxCollapseItem=Na,A.FoxComment=Ka,A.FoxContent=qo,A.FoxCountDown=ka,A.FoxCountUp=ba,A.FoxDateItem=tl,A.FoxDatePicker=Un,A.FoxDialog=Wt,A.FoxDivider=ql,A.FoxDomainProvider=Tl,A.FoxDrag=ta,A.FoxDropdown=wl,A.FoxEcard=za,A.FoxElevator=Kt,A.FoxEllipsis=Aa,A.FoxEmpty=pa,A.FoxFixedNav=zl,A.FoxFloatingButton=kl,A.FoxFooterBar=xo,A.FoxGrid=Ml,A.FoxGridItem=Pl,A.FoxGroup=Lo,A.FoxHeaderBar=vo,A.FoxHintText=kt,A.FoxImage=Dl,A.FoxImagePreview=ro,A.FoxIndicator=Wl,A.FoxInfiniteLoading=_n,A.FoxInputItem=Uo,A.FoxInputNumber=nt,A.FoxInputnumberItem=hl,A.FoxItem=Be,A.FoxLayout=Il,A.FoxLinkItem=cl,A.FoxList=ua,A.FoxMapping=Al,A.FoxMenu=Ol,A.FoxMenuItem=Rl,A.FoxMessageBox=ut,A.FoxMoneyItem=Ho,A.FoxMoreButton=Sl,A.FoxNavbar=Ll,A.FoxNoticeBar=ma,A.FoxNotify=aa,A.FoxNumberKeyboard=Jl,A.FoxOverLay=dt,A.FoxPage=Do,A.FoxPagination=Ul,A.FoxPicker=zt,A.FoxPickerItem=Qo,A.FoxPopover=en,A.FoxPopoverDialog=Nl,A.FoxPopup=me,A.FoxPopupWrapper=Cl,A.FoxPrice=et,A.FoxProgress=Ht,A.FoxPullRefresh=na,A.FoxRadio=Wn,A.FoxRadioGroup=Yn,A.FoxRadioItem=ll,A.FoxRange=Ut,A.FoxRate=Bt,A.FoxRateItem=ul,A.FoxRollingProvider=$l,A.FoxRow=xl,A.FoxRowItem=Fo,A.FoxSearchBar=eo,A.FoxShortPassword=Gl,A.FoxSideNavBar=Yl,A.FoxSideNavBarItem=Xl,A.FoxSignature=va,A.FoxSkeleton=Ca,A.FoxSku=Pa,A.FoxSlotItem=Ko,A.FoxStep=ga,A.FoxSteps=ha,A.FoxStepsBar=bl,A.FoxSticky=Ft,A.FoxSubSideNavBar=Ql,A.FoxSwipe=jt,A.FoxSwiper=Et,A.FoxSwiperItem=Dt,A.FoxSwitch=Jn,A.FoxSwitchItem=il,A.FoxTabPane=jl,A.FoxTabbar=Fl,A.FoxTabbarItem=Kl,A.FoxTable=Ba,A.FoxTabs=Hl,A.FoxTabsBar=Ln,A.FoxTabsContainer=zn,A.FoxTabsPane=On,A.FoxTag=_t,A.FoxText=Bl,A.FoxTextarea=xn,A.FoxTextareaItem=Wo,A.FoxTimeDetail=Ma,A.FoxTimePannel=qa,A.FoxTimeSelect=xa,A.FoxToast=$t,A.FoxTour=Ea,A.FoxTrendArrow=Va,A.FoxUploader=Zl,A.FoxVideo=Vt,A.FoxWaterMark=$a,A.Grid=Ml,A.GridItem=Pl,A.Group=Lo,A.HeaderBar=vo,A.HintText=kt,A.Image=Dl,A.ImagePreview=ro,A.Indicator=Wl,A.InfiniteLoading=_n,A.InputItem=Uo,A.InputNumber=nt,A.InputnumberItem=hl,A.Item=Be,A.Layout=Il,A.LinkItem=cl,A.List=ua,A.Mapping=Al,A.Menu=Ol,A.MenuItem=Rl,A.MessageBox=ut,A.MoneyItem=Ho,A.MoreButton=Sl,A.Navbar=Ll,A.NoticeBar=ma,A.Notify=aa,A.NumberKeyboard=Jl,A.OverLay=dt,A.Page=Do,A.Pagination=Ul,A.Picker=zt,A.PickerItem=Qo,A.Popover=en,A.PopoverDialog=Nl,A.Popup=me,A.PopupWrapper=Cl,A.Price=et,A.PriorityPolicy=Sn,A.Progress=Ht,A.PullRefresh=na,A.Radio=Wn,A.RadioGroup=Yn,A.RadioItem=ll,A.Range=Ut,A.Rate=Bt,A.RateItem=ul,A.RollingProvider=$l,A.Row=xl,A.RowItem=Fo,A.SearchBar=eo,A.ShortPassword=Gl,A.SideNavBar=Yl,A.SideNavBarItem=Xl,A.Signature=va,A.Skeleton=Ca,A.Sku=Pa,A.SlotItem=Ko,A.Step=ga,A.Steps=ha,A.StepsBar=bl,A.Sticky=Ft,A.SubSideNavBar=Ql,A.Swipe=jt,A.Swiper=Et,A.SwiperItem=Dt,A.Switch=Jn,A.SwitchItem=il,A.TabPane=jl,A.Tabbar=Fl,A.TabbarItem=Kl,A.Table=Ba,A.Tabs=Hl,A.TabsBar=Ln,A.TabsContainer=zn,A.TabsPane=On,A.Tag=_t,A.Text=Bl,A.Textarea=xn,A.TextareaItem=Wo,A.TimeDetail=Ma,A.TimePannel=qa,A.TimeSelect=xa,A.Toast=$t,A.Tour=Ea,A.TrendArrow=Va,A.UniqueID=In,A.Uploader=Zl,A.ValidateSchema=pr,A.ValidateSchemaKey=Le,A.Video=Vt,A.WaterMark=$a,A.cancelRaf=Ua,A.clamp=je,A.clearNonNumber=wo,A.clone=ko,A.compareTo=yo,A.createBroadcast=cn,A.createValidateSchema=un,A.debounce=Ze,A.debounceRef=pi,A.decimalLength=sr,A.default=g2,A.defineBroadcast=ai,A.defineConfigDomain=gr,A.defineDataItem=br,A.defineDomain=$o,A.defineItem=Te,A.definePageState=kr,A.defineSimpleItem=gt,A.deleteGlobalValidator=di,A.disabledProperty=De,A.divide=go,A.excludeProps=rt,A.extend=lt,A.floatData=cr,A.getGlobalIcons=Bn,A.getGlobalValidateCheckEvents=ur,A.getGlobalValidateResetEvents=mr,A.getPageContentAreaHeight=bn,A.getPageContentAreaWidth=kn,A.getPageFooterAreaHeight=yn,A.getPageHeaderAreaHeight=gn,A.getRootDomain=ht,A.hasSymbol=tr,A.includeProps=Se,A.indexOf=oi,A.installRules=yr,A.integerLength=rr,A.isArray=ln,A.isArrayLike=or,A.isBrowser=Ge,A.isDate=He,A.isESModule=Js,A.isEmptyString=ue,A.isEqual=xe,A.isFunction=an,A.isHidden=sn,A.isInnerPage=bi,A.isMap=Qs,A.isNil=Ja,A.isNumberString=Co,A.isObject=ve,A.isPlainObject=bo,A.isPromise=mt,A.isRegExp=ar,A.isSet=Gs,A.isString=_a,A.isSubPage=ki,A.isSymbol=Zs,A.isTouch=qn,A.isWindow=nr,A.lastIndexOf=li,A.makeArray=ni,A.merge=lr,A.multiply=Qa,A.negate=Ga,A.nextTick=ei,A.numberFormat=on,A.objectToString=er,A.once=hi,A.overrideGlobalIcons=qi,A.overrideGlobalValidateHandler=ii,A.padZero=st,A.preventDefault=No,A.property=Ve,A.px2Number=yi,A.raf=Ue,A.readonlyProperty=Ee,A.setGlobalValidateCheckEvents=ui,A.setGlobalValidateHandler=si,A.setGlobalValidateMessages=mi,A.setGlobalValidateResetEvents=fi,A.setGlobalValidator=ci,A.throttle=mn,A.toBoolean=be,A.toNumber=pe,A.toPadding=Oe,A.toPx=fe,A.toPxDesc=ge,A.toTypeString=rn,A.toValue=Pe,A.tryTimes=Ao,A.typeOf=at,A.unNumberFormat=Za,A.updatePageState=Vo,A.useBroadcast=xt,A.useDomain=We,A.useExpose=Ie,A.useInnerSize=Nn,A.usePageState=hn,A.usePosition=zo,A.useRawTouch=Mn,A.useRect=Me,A.useSize=Io,A.useTouch=tt,A.valueLength=ke,Object.defineProperties(A,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});