@fox-js/foxui 4.0.1-17 → 4.0.1-18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";/*!
2
- * @fox-js/foxui-base v4.0.0 Tue Jul 18 2023 15:23:03 GMT+0800 (中国标准时间)
3
- */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),Ze=require("@fox-js/validator"),G=require("@fox-js/icons-vue"),ie=require("@fox-js/i18n"),xt=window,Xr=typeof window<"u";function Qr(){return typeof xt<"u"?xt.requestAnimationFrame||xt.webkitRequestAnimationFrame||function(e){xt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ul(e){Xr?cancelAnimationFrame(e):clearTimeout(e)}const Ye=Qr();/*!
4
- * @fox-js/big-decimal v4.0.1-5 Mon Jan 30 2023 14:39:30 GMT+0800 (中国标准时间)
5
- */function Wt(e,o="0"){let l=0,n=-1;e[0]=="-"&&(l++,n=1,e=e.substring(1),e.length),o[0]=="-"&&(l++,n=2,o=o.substring(1),o.length),e=Se(e),o=Se(o),[e,o]=ln(Se(e),Se(o)),l==1&&(n==1?e=Bo(e):o=Bo(o));let a=dl(e,o);return l?l==2?"-"+Se(a):e.length<a.length?Se(a.substring(1)):"-"+Se(Bo(a)):Se(a)}function Bo(e){let o="",l=e.length,n=e.split(".")[1],a=n?n.length:0;for(let s=0;s<l;s++)e[s]>="0"&&e[s]<="9"?o+=9-parseInt(e[s]):o+=e[s];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return dl(o,r)}function Se(e){let o=e.split(".");for(o[0]||(o[0]="0");o[0][0]=="0"&&o[0].length>1;)o[0]=o[0].substring(1);return o[0]+(o[1]?"."+o[1]:"")}function ln(e,o){let l=e.split("."),n=o.split("."),a=l[0].length,r=n[0].length;return a>r?n[0]=new Array(Math.abs(a-r)+1).join("0")+(n[0]?n[0]:""):l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""),a=l[1]?l[1].length:0,r=n[1]?n[1].length:0,(a||r)&&(a>r?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-r)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),o=n[0]+(n[1]?"."+n[1]:""),[e,o]}function dl(e,o){[e,o]=ln(e,o);let l="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){l="."+l;continue}let r=parseInt(e[a])+parseInt(o[a])+n;l=r%10+l,n=Math.floor(r/10)}return n?n.toString()+l:l}var me=(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))(me||{});function Bt(e,o=0,l=me.HALF_EVEN){if(l===me.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),r=a[0],s=a[1];if(o<0){if(o=-o,r.length<=o)return"0";{let c=r.substr(0,r.length-o);return e=c+"."+r.substr(r.length-o)+s,c=Bt(e,0,l),(n?"-":"")+c+new Array(o+1).join("0")}}if(o==0)return r.length,Vn(a[1],r,n,l)?(n?"-":"")+Vo(r):(n?"-":"")+r;if(a[1]){if(a[1].length<o)return(n?"-":"")+r+"."+a[1]+new Array(o-a[1].length+1).join("0")}else return(n?"-":"")+r+"."+new Array(o+1).join("0");s=a[1].substring(0,o);let i=a[1].substring(o);return i&&Vn(i,s,n,l)&&(s=Vo(s),s.length>o)?(n?"-":"")+Vo(r,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+r+"."+s}function Vn(e,o,l,n){if(!e||e===new Array(e.length+1).join("0")||n===me.DOWN||!l&&n===me.FLOOR||l&&n===me.CEILING)return!1;if(n===me.UP||l&&n===me.FLOOR||!l&&n===me.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case me.HALF_DOWN:return!1;case me.HALF_UP:return!0;case me.HALF_EVEN:default:return parseInt(o[o.length-1])%2==1}}function Vo(e,o=0){o||(o=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let a=l;a>=0;a--){let r=parseInt(e[a])+o;r==10?(o=1,r=0):o=0,n+=r}return o&&(n+=o),n.split("").reverse().join("")}function Mo(e,o){e=e.toString(),o=o.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),o[0]=="-"&&(l++,o=o.substr(1)),e=ht(e),o=ht(o);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),o.indexOf(".")!=-1&&(a=o.length-o.indexOf(".")-1);let r=n+a;if(e=ht(e.replace(".","")),o=ht(o.replace(".","")),e.length<o.length){let f=e;e=o,o=f}if(o=="0")return"0";let s=o.length,i=0,c=[],d=s-1,m="";for(let f=0;f<s;f++)c[f]=e.length-1;for(let f=0;f<2*e.length;f++){let h=0;for(let y=o.length-1;y>=d&&y>=0;y--)c[y]>-1&&c[y]<e.length&&(h+=parseInt(e[c[y]--])*parseInt(o[y]));h+=i,i=Math.floor(h/10),m=h%10+m,d--}return m=ht(Gr(m,r)),l==1&&(m="-"+m),m}function Gr(e,o){return o==0?e:(e=o>=e.length?new Array(o-e.length+1).join("0")+e:e,e.substr(0,e.length-o)+"."+e.substr(e.length-o,o))}function ht(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 zo(e,o,l=8){if(o==0)throw new Error("Cannot divide by 0");if(e=e.toString(),o=o.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),o=o.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;o[0]=="-"&&(o=o.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=o.indexOf(".")>0?o.length-o.indexOf(".")-1:-1;if(o=Se(o.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Se(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=Se(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let m=e.length-d+a;e=Se(e.substring(0,m)+"."+e.substring(m))}else a==d&&(e=Se(e.replace(".","")))}let r=0,s=o.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let d=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(d+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=d,i="0."+new Array(d).join("0")}for(l=l+2;r<=l;){let d=0;for(;parseInt(c)>=parseInt(o);)c=Wt(c,"-"+o),d++;i+=d,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(n==1?"-":"")+Se(Bt(i,l-2))}function xo(e,o){return e=e.toString(),o=o.toString(),o=Po(o),Wt(e,o)}function Po(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function An(e,o){if(o==0)throw new Error("Cannot divide by 0");e=e.toString(),o=o.toString(),En(e),En(o);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),o[0]=="-"&&(o=o.substr(1));let n=xo(e,Mo(o,Bt(zo(e,o),0,me.FLOOR)));return l+n}function En(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Tn(e,o){let l=!1;if(e[0]=="-"&&o[0]!="-")return-1;if(e[0]!="-"&&o[0]=="-")return 1;if(e[0]=="-"&&o[0]=="-"&&(e=e.substr(1),o=o.substr(1),l=!0),[e,o]=ln(e,o),e.localeCompare(o)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=o[n])return e[n]>o[n]?l?-1:1:l?1:-1;return 0}class ae{value;static RoundingModes=me;static validate(o){if(o){if(o=o.toString(),isNaN(o))throw Error("Parameter is not a number: "+o);o[0]=="+"&&(o=o.substring(1))}else o="0";if(o.startsWith(".")?o="0"+o:o.startsWith("-.")&&(o="-0"+o.substr(1)),/e/i.test(o)){let[l,n]=o.split(/[eE]/);l=Se(l);let a="";l[0]=="-"&&(a="-",l=l.substring(1)),l.indexOf(".")>=0?(n=parseInt(n)+l.indexOf("."),l=l.replace(".","")):n=parseInt(n)+l.length,l.length<n?o=a+l+new Array(n-l.length+1).join("0"):l.length>=n&&n>0?o=a+Se(l.substring(0,n))+(l.length>n?"."+l.substring(n):""):o=a+"0."+new Array(-n+1).join("0")+l}return o}constructor(o="0"){this.value=ae.validate(o)}getValue(){return this.value}static getPrettyValue(o,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");o=ae.validate(o);let a=o.charAt(0)=="-";a&&(o=o.substring(1));var r=o.indexOf(".");r=r>0?r:o.length;for(var s="",i=r;i>0;)i<l?(l=i,i=0):i-=l,s=o.substring(i,i+l)+(i<r-l&&i>=0?n:"")+s;return(a?"-":"")+s+o.substring(r)}getPrettyValue(o,l){return ae.getPrettyValue(this.value,o,l)}static round(o,l=0,n=me.HALF_EVEN){if(o=ae.validate(o),isNaN(l))throw Error("Precision is not a number: "+l);return Bt(o,l,n)}round(o=0,l=me.HALF_EVEN){if(isNaN(o))throw Error("Precision is not a number: "+o);return new ae(Bt(this.value,o,l))}static floor(o){return o=ae.validate(o),o.indexOf(".")===-1?o:ae.round(o,0,me.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,me.FLOOR)}static ceil(o){return o=ae.validate(o),o.indexOf(".")===-1?o:ae.round(o,0,me.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,me.CEILING)}static add(o,l){return o=ae.validate(o),l=ae.validate(l),Wt(o,l)}add(o){return new ae(Wt(this.value,o.getValue()))}static subtract(o,l){return o=ae.validate(o),l=ae.validate(l),xo(o,l)}subtract(o){return new ae(xo(this.value,o.getValue()))}static multiply(o,l){return o=ae.validate(o),l=ae.validate(l),Mo(o,l)}multiply(o){return new ae(Mo(this.value,o.getValue()))}static divide(o,l,n){return o=ae.validate(o),l=ae.validate(l),zo(o,l,n)}divide(o,l){return new ae(zo(this.value,o.getValue(),l))}static modulus(o,l){return o=ae.validate(o),l=ae.validate(l),An(o,l)}modulus(o){return new ae(An(this.value,o.getValue()))}static compareTo(o,l){return o=ae.validate(o),l=ae.validate(l),Tn(o,l)}compareTo(o){return Tn(this.value,o.getValue())}static negate(o){return o=ae.validate(o),Po(o)}negate(){return new ae(Po(this.value))}}function fl(e,o){return ae.multiply(`${e}`,`${o}`)}function an(e,o,l=8){return ae.divide(`${e}`,`${o}`,l)}function Lo(e,o){return e=`${e}`,o=`${o}`,ae.compareTo(e,o)}function ml(e){return ae.negate(e)}function rn(e,o=-1,l=!1,n=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",d=r.indexOf(".");d!=-1&&(i=r.substring(0,d),c=r.substring(d+1)),o!=-1&&(o<c.length?c=c.substring(0,o):l&&o>c.length&&(c=c.padEnd(o,"0")));let m;if(n>0){let f="",h=i.split("").reverse();for(let y=0;y<h.length;y++)f+=h[y]+((y+1)%n==0&&y+1!=h.length?a:"");c.length==0?m=`${s}${f.split("").reverse().join("")}`:m=`${s}${f.split("").reverse().join("")}.${c}`}else c.length==0?m=`${s}${i}`:m=`${s}${i}.${c}`;return m}function pl(e){let o=`${e}`,l=o.charAt(0);l=="-"?o=o.substring(1):l="";let n=o.replace(/[^\d\.-]/g,"");return`${l}${n}`}const lt=typeof window<"u",Qe=Ye,mo=Array.isArray,Zr=e=>po(e)==="[object Map]",Jr=e=>po(e)==="[object Set]",Oe=e=>e instanceof Date,Yt=e=>typeof e=="function",hl=e=>typeof e=="string",_r=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",sn=e=>De(e)&&Yt(e.then)&&Yt(e.catch),gl=Object.prototype.toString,po=e=>gl.call(e),Ro=e=>po(e)==="[object Object]",yl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function es(e){return e.__esModule||yl&&e[Symbol.toStringTag]==="Module"}const ts=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function _e(...e){let o=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,n=e.length,a=!1;for(typeof o=="boolean"&&(a=o,o=e[l]??{},l++),typeof o!="object"&&(o={});l<n;l++)if(e[l]!==null&&e[l]!==void 0){let r=e[l];for(let s in r){let i=o[s],c=r[s];if(i!==c)if(a===!0&&c&&typeof c=="object"){let d;Array.isArray(c)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},o[s]=_e(a,d,c)}else c!==void 0&&(o[s]=c)}}return o}function Oo(e,o,l=!1){if(!l)_e(!0,e,o);else{if(typeof o!="object")return{};typeof e!="object"&&(e={});for(let a in o){let r=e[a],s=o[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Ro(s))continue;r=Oo(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}const n=Object.getOwnPropertySymbols(o);for(let a of n){let r=e[a],s=o[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Ro(s))continue;r=Oo(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}}return e}const Ao=ts?Promise.resolve():null;function os(e,...o){Ao!==null?o&&o.length>0?Ao.then(()=>{e(o)}):Ao.then(e):o&&o.length>0?setTimeout(()=>{e(o)}):setTimeout(e)}function ge(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":Boolean(e)}function ue(e){return typeof e=="number"?e:Number(e)}const ns={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function et(e){let l=Object.prototype.toString.call(e);return e==null?String(e):ns[l]||"object"}function vl(e){return!e||e.offsetParent===null}function kl(e){return e&&typeof e=="object"&&"setInterval"in e}function bl(e){let o=!!e&&"length"in e&&e.length,l=et(e);return l==="function"||kl(e)?!1:l==="array"||o===0||typeof o=="number"&&o>0&&o-1 in e}function Sl(e,o){let l=+o.length,n=0,a=e.length;for(;n<l;n++)e[a++]=o[n];return e.length=a,e}function ls(e,o=[]){let l=o;return e!=null&&(bl(Object(e))?Sl(l,typeof e=="string"?[e]:e):l.push(e)),l}function Fe(e,o){if(e==o)return!0;if(e===void 0||o===void 0)return!1;let l=et(e),n=et(o);if(l!==n)return!1;if(l==="object"){let a=Object.keys(e),r=Object.keys(o);if(a.length!==r.length)return!1;for(let s=0;s<a.length;s++){let i=a[s],c=e[i],d=o[i];if(!Fe(c,d))return!1}return!0}else if(l==="array"){if(e.length!==o.length)return!1;for(let a=0;a<e.length;a++){let r=e[a],s=o[a];if(!Fe(r,s))return!1}return!0}return!1}function Cl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const Ce=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function wl(e){return Ce(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),Ce(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Nl(e){if(e==null)return 0;let o=`${e}`;if(o.length==0)return 0;o.charAt(0)=="-"&&(o=o.substring(1)),o=o.replace(/[^\d\.-]/g,"");const l=o.indexOf(".");return l==-1?o.length:l}function Bl(e){if(e==null)return 0;const o=`${e}`;if(o.length==0)return 0;const l=o.indexOf(".");return l==-1?0:o.length-(l+1)}function $n(e,o,l){const n=e.indexOf(o);return n===-1?e:o==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(l,"")}function Fo(e,o=!0,l=!0){o?e=$n(e,".",/\./g):e=e.replace(/\./g,""),l?e=$n(e,"-",/-/g):e=e.replace(/-/,"");const n=o?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function as(e,o){return typeof e=="object"||Array.isArray(e)?o.findIndex(l=>{if(Fe(e,l))return!0}):o.indexOf(e)}function rs(e,o){if(typeof e=="object"||Array.isArray(e)){let l=o.reverse().findIndex(n=>{if(Fe(e,n))return!0});return l!==-1&&(l=o.length-1-l),l}return o.lastIndexOf(e)}function pe(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ke(e,...o){const l={};return o.forEach(n=>{for(const a in n)l[a]=e[a]}),l}function Vl(e,...o){const l=[];o.forEach(a=>{Reflect.apply([].push,l,Reflect.ownKeys(a))});const n={};for(const a in e)l.includes(a)||(n[a]=e[a]);return n}const Al=(e,o,l)=>{const n=Object.assign({},e),a=Object.assign({},l);return Object.keys(o).length>0?(Object.keys(n).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(n[r]=o[a[r]]):o[r]&&(n[r]=o[r])}),n):e};function Uo(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&e.stopPropagation()}const Ge=(e,o=2)=>{for(e+="";e.length<o;)e="0"+e;return e.toString()},Le=(e,o,l)=>Math.min(Math.max(e,o),l),cn=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,ye=Symbol.for("BroadcastKey");class un{parent;children=[];callbacks=new Map;proxy=null;name;constructor(o,l,n){this.parent=o,this.proxy=l,this.name=n,o!==null&&o.addChild(this)}addChild(o){this.children.push(o)}removeChild(o){const l=this.children.findIndex(n=>o===n);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(o,l,...n){if(o.maxLevel!==void 0&&o.maxLevel!==null&&o.maxLevel>0){if(o.level=o.level??0,o.level>o.maxLevel)return[];o.level++}let a=!1;!o.name||o.name==="*"?a=!0:!o.name||o.name==="+"?(a=!1,o.name="*"):Cl(o.name)&&this.name&&o.name.test(this.name)?a=!0:typeof o.name=="function"?a=Reflect.apply(o.name,null,[this.name]):o.name===this.name&&(a=!0);const r=[];if(a){const s=this.callbacks.get(l);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...n]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[l]=="function"){const c=Reflect.apply(i[l],i,[...n]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...o},l,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(o,l,...n){const a=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...o},l,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(o,l){this.callbacks.set(o,l)}}function ho(e,o,l,n){const a=new un(o,e,l);if(n&&typeof n=="object")for(const r in n)a.on(r,n[r]);return a}function ss(e,o,l){const n=l;if(n[ye])return n[ye];const a=t.inject(ye,null),r=new un(a,l,e);if(o&&typeof o=="object")for(const s in o)r.on(s,o[s]);return n[ye]=r,t.provide(ye,r),t.onUnmounted(()=>{r.destroy(),n[ye]=void 0}),r}function St(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ye]??t.inject(ye,null):t.inject(ye,null)}const Je=e=>e.default??e;class is{error(o,l){const n=l,a=St(l);a?a.emit({name:"*",maxLevel:1},"setErrorTip",o):typeof n.setErrorTip=="function"&&n.setErrorTip(o)}reset(o){const l=o,n=St(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(o){const l=o,n=St(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(o,l,n){Array.isArray(o)||(o=[o]);const a=n,r=St(n),s=l.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=o.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(o){return o.modelValue}}let El=new is;function cs(e){El=e}function us(e,o){Je(Ze).setValidator(e,o)}function ds(e){Je(Ze).deleteValidator(e)}let Tl=["blur","clear"];function fs(e){Tl=e}function $l(){return Tl}let Dl=["focus","change"];function ms(e){Dl=e}function Il(){return Dl}function ps(e){Je(Ze).messages(e)}function gt(...e){const o=[];return e.forEach(l=>{l.forEach(n=>{const a=o.findIndex(r=>r.type===n.type);a!==-1&&o.splice(a,1),o.push(n)})}),o}function Pt(e){return e.forEach(o=>{o.type==="required"&&(o.required===null||o.required===void 0)&&(o.required=!0),!o.type&&(o.required===!0||o.required===!1)&&(o.type="required")}),e}const Re=Symbol("ValidateSchemaKey");class ql{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(o,l,n){this.parent=o,this.descriptor=l,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let o=this.proxy.$attrs;o&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const l=Pt(gt(this.attrRules,this.rules)),n=[];for(let r in o){let s=o[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),n.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};n.push(c)}}this.attrRules=Pt(n);const a=gt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(o,...l){const n=this.descriptor.validateHandler;if(n&&typeof n[o]=="function")return Reflect.apply(n[o],n,[...l]);const a=El;return a&&typeof a[o]=="function"?Reflect.apply(a[o],a,[...l]):null}decorate(o,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",o,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(o){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",o,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(o,l,n=!1){n?Je(Ze).setValidator(o,l):this.validators[o]=l}getValidator(o){let l=this.validators[o]??null;return l||(l=this.parent?.getValidator(o)??null),l}deleteValidator(o,l=!1){l?Je(Ze).deleteValidator(o):Reflect.deleteProperty(this.validators,o)}hasValidator(o,l=!1){if(l)return Je(Ze).hasValidator(o);{let n=Reflect.has(this.validators,o);return!n&&this.parent!==null&&(n=this.parent.hasValidator(o,!1)),n}}setRule(o){const l=gt(this.attrRules,this.rules);o===null?this.rules=[]:Array.isArray(o)?this.rules=Pt(o):this.rules=Pt([o]);const n=gt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(n,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=gt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(l.length>0){const a={[`${n}`]:l},r=this.getValue(),s={[`${n}`]:r},i=Je(Ze),c=new i(a),d=this.proxy??s;return c.validate(s,{context:d}).then(f=>{if(f.pass)this.success();else{let h="error";Array.isArray(f.errors)&&f.errors.length>0&&(h=f.errors[0].message??h,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(h)}return f}).catch(f=>{const h=f.message??`${f}`;return this.error(h),f})}}return Promise.resolve({pass:!0})}}function go(e,o,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const a=l.valueName;l.validateHandler={getValue(r){return r[a]}}}return new ql(o,l,e)}const Dn=Symbol("EventEmitterKey");class hs{register=new Map;proxy;constructor(o){this.proxy=o}destroy(){this.proxy=null,this.register.clear()}off(o,l){let n=this.register.get(o);if(n&&Array.isArray(n)){let a=n.findIndex(r=>r===l);a!==-1&&n.splice(a,1)}}on(o,l){let n=this.register.get(o);n||(n=new Array,this.register.set(o,n)),n.push(l)}emit(o,...l){const n=this.register.get(o);n&&n.forEach(a=>{try{Reflect.apply(a,null,[o,...l])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[o,...l])}}function Vt(e,o){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},o)}}function Xt(e,o){let l=0;return function(...n){const a=new Date().getTime();a-l<o||(l=a,Reflect.apply(e,null,[...n]))}}function gs(e,o){const l=Vt((n,a)=>{e=n,a()},o);return t.customRef((n,a)=>({get(){return n(),e},set(r){l(r,a)}}))}function ys(e){let o=!1;return function(...l){o||(o=!0,Reflect.apply(e,null,[...l]))}}const Ae=Symbol("DomainKey"),it=Symbol("DataItemsKey");class yo{_parent=null;get parent(){return this._parent}set parent(o){this._parent=o}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(o){this._broadcast=o}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(o){this._validateSchema=o}_props=t.reactive({});constructor(o=null){this._name=o}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(o,l=[]){for(const n in o){const a=o[n];l.length>0&&l.indexOf(a)!==-1||(this._props[n]=a)}}has(o){if(Reflect.has(this._props,o)){const l=this._props[o];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(o)}delete(o){Reflect.deleteProperty(this._props,o)}set(o,l){this._props[o]=l}get(o,l){if(Reflect.has(this._props,o)){const n=this._props[o];if(n!=null)return n}return this.parent==null?l:this.parent.get(o,l)}getForParent(o,l){return this.parent==null?l:this.parent.get(o,l)}getForSelf(o){return this._props[o]}getAll(o){const l=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,o)){const a=n._props[o];l.push(a)}n=n._parent}return l}}const vs=new yo;function dt(){return vs}function Ue(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ae]??t.inject(Ae,null):t.inject(Ae,null)}const Eo=Symbol("OriginalDateKey");function dn(e,o,l=[],n){const a=t.getCurrentInstance(),r=a?.proxy;let s=t.inject(Ae,null);s===null&&(s=dt());const i=e||o.prop||o.name,c=new yo(i);c.parent=s;const d=v=>{r[Eo]||h(v),c.set("modelValue",v)},m=()=>c.getForSelf("modelValue")??null,f=()=>r[Eo]??null,h=v=>{const g={};_e(!0,g,t.toRaw(v)),r[Eo]=g};t.isReactive(o)?t.watchEffect(()=>{c.merge(o,l)}):c.merge(o,l),o.modelValue&&h(o.modelValue),r[Ae]=c,t.provide(Ae,c);let y=null,k=null;if(a!==null){const v=t.inject(ye,null);y=ho(r,v,i,n),c.broadcast=y,r[ye]=y,t.provide(ye,y),r.broadcast=(u,p,...b)=>Reflect.apply(y.emit,y,[u,p,...b]);const g=t.inject(Re,null);k=go(r,g,{componentName:""}),c.validateSchema=k,r[Re]=k,t.provide(Re,k),r[it]=new Map,r.validate=(u=!0)=>{const p=[];let b=null;const S={deep:!1};if(u===!0)b={name:"*"};else if(Array.isArray(u)&&u.length>0){const B=u;b={name:E=>E?B.indexOf(E)!==-1:!1}}else if(u!=null&&typeof u=="object"){const B=u;if(S.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const E=B.include;b={name:I=>I?E.indexOf(I)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const E=B.exclude;b={name:I=>I?E.indexOf(I)===-1:!1}}else b={name:"*"}}if(b){const B=y?.emitToChildren(b,"validate",S);B&&Reflect.apply([].push,p,B)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(B=>{let E=[];return B.forEach(I=>{I.pass===!1&&Array.isArray(I.errors)&&(E=[...E,...I.errors])}),E.length>0?{pass:!1,errors:E}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(u,p=!0)=>{if(p){const b=Reflect.ownKeys(u),S=[...b],B={name:E=>{const I=b.includes(E);if(I){const V=S.findIndex(C=>E===C);V!==-1&&S.splice(V,1)}return I}};y?.emitToChildren(B,"setNameValidateRules",u,!1),S.length>0&&S.forEach(E=>{let I=String(E);const C=xl(c,I,{componentName:"",fieldName:I,pureDataValidate:!0},y,k);r[it].set(I,C);const w=u[I];w&&C.validateSchema.setRule(w)})}},r.clearValidate=(u=!0)=>{let p=null;if(u===!0)p={name:"*"};else if(Array.isArray(u)&&u.length>0){const b=u;p={name:S=>S?b.indexOf(S)!==-1:!1}}else if(u!=null&&typeof u=="object"){const b=u;if(Array.isArray(b.include)&&b.include.length>0){const S=b.include;p={name:B=>B?S.indexOf(B)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const S=b.exclude;p={name:B=>B?S.indexOf(B)===-1:!1}}else p={name:"*"}}p&&y?.emitToChildren(p,"clearValidate",!1)},r.resetFields=u=>{const p=m();if(!p)return;const b={};if(_e(!0,b,f()??{}),Array.isArray(u))u.forEach(S=>{p[S]=b[S]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(B=>{p[B]=b[B]});else if(u&&Array.isArray(u.exclude)){let S=u.exclude??[];Reflect.ownKeys(b).forEach(B=>{S.includes(B)||(p[B]=b[B])})}else Object.assign(p,b);r.clearValidate(u)},r.setModelValue=(u,p)=>{!p||p===i?d(u):y?.emitToChildren({name:p},"setModelValue",u)},r.getModelValue=()=>m()}return t.onUnmounted(()=>{c.destroy(),r[Ae]=void 0,r[it]&&(r[it].clear(),r[it]=void 0),y!==null&&(y.destroy(),r[ye]=void 0),k!==null&&(k.destroy(),r[Re]=void 0)}),c}function Ml(e,o,l=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(Ae,null);r===null&&(r=dt());const s=e||o.prop||o.name,i=new yo(s);return i.parent=r,t.isReactive(o)?t.watchEffect(()=>{i.merge(o,l)}):i.merge(o,l),a[Ae]=i,t.provide(Ae,i),t.onUnmounted(()=>{i.destroy(),a[Ae]=void 0}),i}function zl(e,o,l){const a=Ue(e)?.get("rules");if(!a)return;let r=a[l];r&&(Array.isArray(r)||(r=[r]),r.forEach(s=>{o.setRule(s)}))}function Be(e,o,l){const a=t.getCurrentInstance()?.proxy,r=o??"",s=t.inject(ye,null),i=ho(a,s,r,l);a[ye]=i,t.provide(ye,i),a.broadcast=(k,v,...g)=>Reflect.apply(i.emit,i,[k,v,...g]);const c=t.inject(Re,null);e.fieldName=e.fieldName??r;const d=go(a,c,e);a[Re]=d,t.provide(Re,d),zl(a,d,r),a.validate=(k=null)=>{const v=[];let g=!1,u=!1;if(Array.isArray(k)&&k.indexOf(r)!==-1)u=!0,g=!0;else if(k&&typeof k=="object"){const p=k;p.ignoreHidden===!0&&vl(a.$el)?u=!1:(Array.isArray(p.include)&&p.include.indexOf(r)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(r),u=!0),g=p.deep??!1}else typeof k=="boolean"&&(g=k),u=!0;if(u){const p=d?.validate();v.push(p)}if(g){let p=null;const b={deep:!1};if(k===!0)p={name:"*"};else if(Array.isArray(k)&&k.length>0){const S=k;p={name:B=>B?S.indexOf(B)!==-1:!1}}else if(k!=null&&typeof k=="object"){const S=k;if(b.ignoreHidden=S.ignoreHidden,Array.isArray(S.include)&&S.include.length>0){const B=S.include;p={name:E=>E?B.indexOf(E)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const B=S.exclude;p={name:E=>E?B.indexOf(E)===-1:!1}}else p={name:"*"}}if(p){const S=i.emitToChildren(p,"validate",b);Reflect.apply([].push,v,S)}}return v.length==1?v[0]:v.length>1?Promise.all(v).then(p=>{let b=[];return p.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(b=[...b,...S.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=k=>d?.setRule(k),a.setNameValidateRules=(k,v=!1)=>{const g=k[r];if(g&&d?.setRule(g),v){const u={name:p=>Reflect.ownKeys(k).includes(p)};i.emitToChildren(u,"setNameValidateRules",k,!1)}},a.clearValidate=(k=null)=>{(!Array.isArray(k)||k.indexOf(o??"")!==-1)&&d?.clear();let v=null;if(k===!0)v={name:"*"};else if(Array.isArray(k)&&k.length>0){const g=k;v={name:u=>u?g.indexOf(u)!==-1:!1}}else if(k!=null&&typeof k=="object"){const g=k;if(Array.isArray(g.include)&&g.include.length>0){const u=g.include;v={name:p=>p?u.indexOf(p)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const u=g.exclude;v={name:p=>p?u.indexOf(p)===-1:!1}}else v={name:"*"}}v&&i.emitToChildren(v,"clearValidate",!1)};const m=new hs(a);a[Dn]=m;const f=Vt((k="validate")=>{k==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:$l()).forEach(k=>{m.on(k,v=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Il()).forEach(k=>{m.on(k,v=>{f("reset")})}),t.onUnmounted(()=>{i.destroy(),a[ye]=void 0,d.destroy(),a[Re]=void 0,m.destroy(),a[Dn]=void 0}),{broadcast:i,validateSchema:d,emitEvent:(k,...v)=>{Reflect.apply(m.emit,m,[k,...v])},onEvent:(k,v)=>{Reflect.apply(m.on,m,[v])},offEvent:(k,v)=>{Reflect.apply(m.off,m,[v])}}}function xl(e,o,l,n,a){const r={},s=o??"";l.fieldName=s,l.validateHandler={getValue(d){const m=e.getForSelf("modelValue");return m?m[s]:null}};const i=go({},a,l);r.validate=(d=null)=>{const m=[];let f=!1,h=!1;if(Array.isArray(d)&&d.indexOf(s)!==-1)h=!0,f=!0;else if(d&&typeof d=="object"){const y=d;Array.isArray(y.include)&&y.include.indexOf(s)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(s),h=!0,f=y.deep??!1}else typeof d=="boolean"&&(f=d),h=!0;if(h){const y=i?.validate();m.push(y)}if(f){let y=null;const k={deep:!1};if(d===!0)y={name:"*"};else if(Array.isArray(d)&&d.length>0){const v=d;y={name:g=>g?v.indexOf(g)!==-1:!1}}else if(d!=null&&typeof d=="object"){const v=d;if(Array.isArray(v.include)&&v.include.length>0){const g=v.include;y={name:u=>u?g.indexOf(u)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const g=v.exclude;y={name:u=>u?g.indexOf(u)===-1:!1}}else y={name:"*"}}if(y){const v=c.emitToChildren(y,"validate",k);Reflect.apply([].push,m,v)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(y=>{let k=[];return y.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(k=[...k,...v.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=d=>i?.setRule(d),r.setNameValidateRules=d=>{const m=d[s];m&&i?.setRule(m)};const c=ho(null,n,s,r);return{broadcast:c,validateSchema:i}}const le=e=>e?`${se(e)}px`:"";function se(e,o=-1){if(typeof e=="number")return e>0&&e<1&&o>0?e*o:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let a=Number(e.substring(0,l)),r=1;if(lt){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return a*=r,a}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))*o;const n=Number(e);return isNaN(n)?0:n}const Xe="PageStateKey";function Me(e){const o={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(o.top=se(e.top)),e.left!==null&&e.left!==void 0&&(o.left=se(e.left)),e.bottom!==null&&e.bottom!==void 0&&(o.bottom=se(e.bottom)),e.right!==null&&e.right!==void 0&&(o.right=se(e.right))),o}function Ko(e,o,l={},n=!0,a=-1,r=-1,s=0,i=0){if(e.headerHeight=se(l.headerHeight??o.headerHeight),e.headerPadding=Me(l.headerPadding??o.headerPadding),e.footerHeight=se(l.footerHeight??o.footerHeight),e.footerPadding=Me(l.footerPadding??o.footerPadding),e.contentPadding=Me(l.contentPadding??o.contentPadding),n){const c=l.height??o.height;c?e.height=se(c,r):e.height=se(r)-se(s,r)-se(i,r),e.width=se(l.width??o.width??0,a)}}function Pl(e,o={}){const l={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},o.safeAreaInset??{});a&&(n.safeAreaTop=se(a.top),n.safeAreaBottom=se(a.bottom),n.safeAreaLeft=se(a.left),n.safeAreaRight=se(a.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Ko(n,r,o,!0,s,i,c,d);const m=t.reactive(n),f=e.getForParent(Xe);f&&(n.height=Qt(e,f),n.width=Gt(e,f),t.watch([()=>f.height,()=>f.width,()=>f.contentPadding,()=>f.headerMounted,()=>f.footerMounted],()=>{m.height=Qt(e,f),m.width=Gt(e,f)}));const h=!f;return t.watch([()=>o.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([y,k,v=-1,g=-1,u=0,p=0])=>{Ko(m,k,o,h,v,g,u,p)}),e.set(Xe,m),m}function vo(e){return e.get(Xe)}function ko(e,o){return o=o??e.get(Xe),o&&o.headerMounted?o.headerHeight+o.safeAreaTop:0}function bo(e,o){return o=o??e.get(Xe),o&&o.footerMounted?o.footerHeight+o.safeAreaBottom:0}function Qt(e,o){if(o=o??e.get(Xe),o){const l=ko(e,o),n=bo(e,o);return o.height-l-n-(o.contentPadding.top??0)-(o.contentPadding.bottom??0)}return 0}function Gt(e,o){return o=o??e.get(Xe),o?o.width-(o.contentPadding.left??0)-(o.contentPadding.right??0):0}function ks(e,o){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[o,e]):!1}function bs(e){return!!e.getForParent(Xe)}var Zt=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Zt||{});function To(e,o){return e==null?!1:typeof o=="function"?o(e):!0}function Ee(e,o,l=1,n){const a=Ue();return a==null?e:l===0?t.computed(()=>{const r=a.getAll(o);for(let i=r.length-1;i>=0;i--){const c=r[i];if(To(c,n))return c}const s=e.value;return To(s,n)?s:null}):t.computed(()=>{const r=e.value;return To(r,n)?r:a?.get(o)})}function Ie(e){return Ee(e,"readonly",0,function(l){return ge(l)})}function Ne(e){return Ee(e,"disabled",0,function(l){return ge(l)})}function ze(e,o="modelValue",l){const n=t.toRef(e,o);let a=n.value;typeof l=="function"&&(a=l(n.value));const r=t.ref(a);return t.watch(n,s=>{if(typeof l=="function"){const i=l(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const Ll=new Map,Jt=new Map;let Ho=null;function Ss(e){Ho=e}function Rl(e,o,l){if(l){let n=Jt.get(l);n||(n=new Map,Jt.set(l,n)),n.set(e,o)}else Ll.set(e,o)}function Mt(e,o,l){!l&&Ho&&(l=Ho(e)??void 0);let n=null;if(l){let a=Jt.get(l);a&&(n=a.get(o))}return n||(n=Ll.get(o)),n}function Cs(e,o){for(let l in e){const n=e[l];Rl(l,n,o)}}function ws(e){Jt.delete(e)}function Ns(){return{top:0,left:0,bottom:0,right:0}}function Bs(e=0,o=0){if(lt){const l=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:l,height:n-se(e,n)-se(o,n),headerHeight:44,footerHeight:44};return{rootWidth:l,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Vs{packages;_version;get version(){return this._version}constructor(o,l){this.packages=o,this._version=l}install(o,l){l?.install!==!1&&this.packages.forEach(r=>{r.install?o.use(r):r.name&&o.component(r.name,r)});const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=dt();if(this.initPageLayout(l,a),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Xt(()=>{const i={...l},c=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=d,this.initPageLayout(i,a)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in l)n.indexOf(r)===-1&&a.set(r,l[r])}initPageLayout(o,l){const n=o.headerBarHeight??0,a=o.footerBarHeight??0,r=_e({},Ns(),o.safeAreaInset),s=Bs(n,a),i=_e({},s.pageLayout,o.pageLayout);l=l??dt(),l.set("safeAreaInset",r),l.set("headerBarHeight",n),l.set("footerBarHeight",a),l.set("pageLayout",i),l.set("rootWidth",s.rootWidth),l.set("rootHeight",s.rootHeight)}setScopeGetter(o){Ss(o)}setAPI(o,l,n){Rl(o,l,n)}getAPI(o,l,n){return Mt(o,l,n)}batchSetAPI(o,l){Cs(o,l)}clearScopeAPI(o){ws(o)}getRootDomain(){return dt()}}function U(e){const o="fox-"+e;return{componentName:o,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=n=>{n.component(l.name,l)},t.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,t.defineComponent(l)}}}const As=(e,o)=>{let l=document.body;const n=e.teleport||"body";n!="body"&&(hl(n)?l=document.querySelector(n):l=e.teleport);const a=document.createElement("view"),r=o.name?o.name+"-":"",s=e.id||new Date().getTime();a.id=r+s;let i={};Yt(o.wrapper)?i=o.wrapper(l,a):i=o.wrapper;const c=t.createApp(i,e),d=o.components;return d&&d.forEach(m=>{c.use(m)}),l.appendChild(a),{instance:c.mount(a),unmount:()=>{c.unmount(),l.removeChild(a)}}},Ol=(e,o)=>e?t.h(e,o):"",de={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},fe={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Fl={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},Ul={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"flex"},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},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1}},Kl=[];for(const e in Ul)Kl.push(e);function Te(e,o=null){if(o||(o=t.getCurrentInstance()),o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const Es=Symbol.for("InnerPageScopeKey"),Ts=(e,o)=>({inheritAttrs:!0,props:{...de,...Fl,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}},setup(l,n){const a=dn(l.name,l);if(a){const d=Pl(a,l);Te({getPageContentHeight:()=>Qt(a,d),getPageContentWidth:()=>Gt(a,d),getPageHeaderHeight:()=>ko(a,d),getPageFooterHeight:()=>bo(a,d)});const m=t.inject(Es,!1);d&&m&&(d.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),i=t.getCurrentInstance(),c=d=>{const m=i?.proxy;m&&typeof m.setNameValidateRules=="function"&&m.setNameValidateRules(d,!0)};return t.watch(()=>l.rules,(d,m)=>{if(!d&&!m)return;const f=t.toRaw(m),h=t.toRaw(d),y=h?Reflect.ownKeys(h):[];(f?Reflect.ownKeys(f):[]).forEach(v=>{y.includes(v)||(h[v]=[])}),c(h)},{deep:!0}),t.onMounted(()=>{if(l.rules){const d=t.toRaw(l.rules);c(d)}}),{classes:r,styles:s}}}),{componentName:$s,create:Ds,scope:mw}=U("page"),Is=Ds(Ts($s));function qs(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const W=(e,o)=>{const l=e.__vccOpts||e;for(const[n,a]of o)l[n]=a;return l},Hl=W(Is,[["render",qs]]),Ms=(e,o,l)=>({props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:l},leftText:{type:String,required:!1,default:""},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(n,a){const r=Ue(),s=r?vo(r):null;s&&(s.headerMounted=!0);const i=t.computed(()=>({[e]:!0})),c=n.height!==null&&n.height!==void 0?se(n.height):null,d=t.computed(()=>{const q={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const L=Me(n.padding??s.footerPadding);return Object.assign(q,L),c&&(s.headerHeight=c),q.height=s.headerHeight,q.safeAreaTop=s.safeAreaTop,q.safeAreaTop&&(q.top=q.safeAreaTop+(L.top??0),q.height=q.height+s.safeAreaTop),console.debug("[header] height",q.height),console.debug("[header] safeBottom",q.safeAreaTop),q}if(c&&(q.height=c),n.padding){const L=Me(n.padding);Object.assign(q,L)}return q});t.onUnmounted(()=>{s&&(s.headerMounted=!1)});const m=t.computed(()=>{const q={};return d.value.height!==null&&d.value.height!==void 0&&(q.height=`${d.value.height}px`),d.value.top!==null&&d.value.top!==void 0&&(q.paddingTop=`${d.value.top}px`),d.value.left!==null&&d.value.left!==void 0&&(q.paddingLeft=`${d.value.left}px`),d.value.right!==null&&d.value.right!==void 0&&(q.paddingRight=`${d.value.right}px`),d.value.bottom!==null&&d.value.bottom!==void 0&&(q.paddingBottom=`${d.value.bottom}px`),q}),f=t.computed(()=>{const q={};return d.value.safeAreaTop!==null&&d.value.safeAreaTop!==void 0&&(q.top=`${d.value.safeAreaTop}px`),q}),h=t.computed(()=>{const q={};return d.value.safeAreaTop!==null&&d.value.safeAreaTop!==void 0&&(q.top=`${d.value.safeAreaTop}px`),q}),y=t.computed(()=>!!n.leftShow),k=t.computed(()=>!(d.value.height!==null&&d.value.height!==void 0&&d.value.height<=0)),v=t.computed(()=>n.titleShow?n.title||n.titleIcon||a.slots.titleIcon||a.slots.default:!1),g=t.computed(()=>n.rightShow?n.rightText||n.rightIcon||a.slots.rightIcon||a.slots.right:!1),u=t.computed(()=>n.leftIcon),p=t.computed(()=>u.value||a.slots.leftIcon),b=t.computed(()=>n.titleIcon),S=t.computed(()=>n.titleIcon||a.slots.titleIcon),B=t.computed(()=>n.rightIcon),E=t.computed(()=>n.rightIcon||a.slots.rightIcon);function I(){a.emit("back")}function V(){a.emit("click-title")}function C(){a.emit("click-right")}function w(){a.emit("click-right-text")}return{classes:i,styles:m,mHeaderShow:k,leftStyles:f,rightStyles:h,mLeftShow:y,mTitleShow:v,mRightShow:g,mLeftIcon:u,hasLeftIcon:p,mTitleIcon:b,hasTitleIcon:S,mRightIcon:B,hasRightIcon:E,handleLeft:I,handleCenter:V,handleRight:C,handleRightText:w}}}),{componentName:zs,create:xs,scope:Ps}=U("header-bar"),Ls=xs(Ms(zs,Ps,G.Left)),Rs={key:1,class:"fox-header-bar__title"},Os={key:0,class:"title-text"};function Fs(e,o,l,n,a,r){return e.mHeaderShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:t.normalizeStyle(e.leftStyles)},[t.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:o[0]||(o[0]=(...s)=>e.handleLeft&&e.handleLeft(...s)),class:"left-icon"},[t.renderSlot(e.$slots,"leftIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mLeftIcon)))])])):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[1]||(o[1]=(...s)=>e.handleLeft&&e.handleLeft(...s))},t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0),e.mTitleShow?(t.openBlock(),t.createElementBlock("view",Rs,[t.renderSlot(e.$slots,"default",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",Os,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.hasTitleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[2]||(o[2]=(...s)=>e.handleCenter&&e.handleCenter(...s)),class:"title-icon"},[t.renderSlot(e.$slots,"titleIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mTitleIcon)))])])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),e.mRightShow?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:t.normalizeStyle(e.rightStyles)},[t.renderSlot(e.$slots,"right",{},()=>[e.rightText?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:o[3]||(o[3]=(...s)=>e.handleRightText&&e.handleRightText(...s))},t.toDisplayString(e.rightText),1)):t.createCommentVNode("",!0),e.hasRightIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[4]||(o[4]=(...s)=>e.handleRight&&e.handleRight(...s)),class:"right-icon"},[t.renderSlot(e.$slots,"rightIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mRightIcon)))])])):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0)])],6)):t.createCommentVNode("",!0)}const jl=W(Ls,[["render",Fs]]);function Us(e,o){return{props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,n){const a=Ue(),r=a?vo(a):null;r&&(r.footerMounted=!0);const s=t.computed(()=>{const m=e;let f=e;return l.align==="left"?f=`${f}__left`:l.align==="right"?f=`${f}__right`:f=`${f}__center`,{[m]:!0,[f]:!0}}),i=l.height!==null&&l.height!==void 0?se(l.height):null,c=t.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&r){const f=Me(l.padding??r.footerPadding);return Object.assign(m,f),i&&(r.footerHeight=i),m.height=r.footerHeight,m.safeAreaBottom=r.safeAreaBottom,m.safeAreaBottom&&(m.height=m.height+r.safeAreaBottom,m.bottom=m.safeAreaBottom+(f.bottom??0)),m}if(i&&(m.height=i),l.padding){const f=Me(l.padding);Object.assign(m,f)}return m});t.onUnmounted(()=>{r&&(r.footerMounted=!1)});const d=t.computed(()=>{const m={};return c.value.height!==null&&c.value.height!==void 0&&(m.height=le(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(m.paddingTop=le(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(m.paddingLeft=le(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(m.paddingRight=le(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(m.paddingBottom=le(c.value.bottom)),m});return{classes:s,styles:d}}}}const{componentName:Ks,create:Hs,scope:pw}=U("footer-bar"),js=Hs(Us(Ks));function Ws(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Wl=W(js,[["render",Ws]]);function Ys(e,o){return{props:{padding:{type:[Object],required:!1}},setup(l){const n=Ue(),a=t.computed(()=>({[e]:!0})),r=t.computed(()=>{const s={};if(n){const i=vo(n);if(i){if(l.padding){const f=Me(l.padding);Object.assign(i.contentPadding,f)}const c=ko(n,i),d=bo(n,i);let m="";if(i.contentHeight?m=`${i.contentHeight}`:m=`${i.height}px`,console.debug("[content]page height:",m),console.debug("[content]header height:",c),console.debug("[content]footer height:",d),console.debug("[content]padding:",i.contentPadding),s.height=m,i.contentPadding.top||c>0){const f=(i&&i.contentPadding&&i.contentPadding.top)??0;s.paddingTop=`${c+f}px`}if(i.contentPadding.bottom||d>0){const f=(i&&i.contentPadding&&i.contentPadding.bottom)??0;s.paddingBottom=`${d+f}px`}return i.contentPadding.left&&(s.paddingLeft=`${i.contentPadding.left}px`),i.contentPadding.right&&(s.paddingRight=`${i.contentPadding.right}px`),s}}if(l.padding){const i=Me(l.padding);i.left&&(s.paddingLeft=`${i.left}px`),i.top&&(s.paddingTop=`${i.top}px`),i.right&&(s.paddingRight=`${i.right}px`),i.bottom&&(s.paddingBottom=`${i.bottom}px`)}return s});return{classes:a,styles:r}}}}const{componentName:Xs,create:Qs,scope:hw}=U("content"),Gs=Qs(Ys(Xs));function Zs(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Yl=W(Gs,[["render",Zs]]),mt="GroupStateKey",Xl=Symbol.for("GroupScopeKey");function So(){return t.inject(Xl,!1)}function Co(e=!0){t.provide(Xl,e)}function Js(e,o={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,o);const a=t.shallowRef(n),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(mt,r),r}function In(e,o,l=-1,n=-1,a=!1,r){const s=e.get(mt);if(!s)return;const i=e.get("groupLayout")??{};l===-1&&(l=i.column??1),n===-1&&(n=i.gutter??0),r||(r=i.minItemWidth??-1),r=se(r);const c=()=>{const d=o===""||o===-1,m=se(o);let f=ue(l);const h=se(n);if(!d){let v=(m-(f-1)*h)/f;for(;r!==-1&&f>1&&v<r;)f--,v=(m-(f-1)*h)/f}let y=!1;const k=s.layout;k.value.width=o,k.value.column!==f&&(k.value.column=f,y=!0),k.value.gutter!==h&&(k.value.gutter=h,y=!0),y&&t.triggerRef(k)};if(a)c();else{const d=++s.passport;setTimeout(()=>{d===s.passport&&c()},50)}}function At(e,o=!1){let l;return o?l=e.getForParent(mt):l=e.get(mt),l.layout}function fn(e,o=!1){let l;return o?l=e.getForParent(mt):l=e.get(mt),l.order}function we(e,o=1){return o==="stretch"?-1:(o=ue(o),o===-1?100:100*o/e)}function _s(e){return e===window}const ve=e=>{const o=t.unref(e);if(_s(o)){const l=o.innerWidth,n=o.innerHeight;return{top:0,left:0,right:l,bottom:n,width:l,height:n}}return o&&o.getBoundingClientRect?o.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},We=(e,o)=>e?o?`fox-group__${e}-${o}`:"":`fox-group__${o}`,ei=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const o=e.type,l=(o.props&&o.props.span&&o.props.span.default)??1;return typeof l=="function"?l():l}return e.props.span},ti=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const l=e.type,n=(l.props&&l.props.offset&&l.props.offset.default)??0;return typeof n=="function"?n():n}const o=ue(e.props.offset);return o<0?0:o},oi=e=>{if(!e.props||e.props.foxItemType===null||e.props.foxItemType===void 0){const o=e.type,l=(o.props&&o.props.foxItemType&&o.props.foxItemType.default)??"Item";return typeof l=="function"?l():l}return e.props.foxItemType??"Item"},ni=e=>{if(!e.props||e.props.foxSubItemCount===null||e.props.foxSubItemCount===void 0){const l=e.type,n=(l.props&&l.props.foxSubItemCount&&l.props.foxSubItemCount.default)??"Item";return typeof n=="function"?n():n}const o=ue(e.props.foxSubItemCount);return o<0?1:o};function $o(e){let o=e.offsetHeight;if(o<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),o=l.offsetHeight,document.body.removeChild(l)}return o}function li(e,o,l){return{props:{...de,...Fl,...Ul},emits:["update:collapse"],setup(n,a){const r=dn(n.name,n,Kl),s=Js(r,{type:n.type}),i=So();Co(!0);const c=t.computed(()=>i&&r?At(r,!0).value:null),d=t.getCurrentInstance(),m=R=>{const O=d?.proxy;O&&typeof O.setNameValidateRules=="function"&&O.setNameValidateRules(R,!0)};t.watch(()=>n.rules,(R,O)=>{if(!R&&!O)return;const X=t.toRaw(O),K=t.toRaw(R),N=K?Reflect.ownKeys(K):[];(X?Reflect.ownKeys(X):[]).forEach(P=>{N.includes(P)||(K[P]=[])}),m(K)},{deep:!0});const f=e,h=t.computed(()=>{const R={};if(R.height=q.value,c.value){const O=At(r,!0);if(O.value.type==="flex"){if(n.width){const N=le(n.width);R.width=N}else{const N=we(O.value.column,n.span);N>0&&(R.width=`${N}%`)}const X=we(O.value.column,n.offset);X>0&&(R["margin-left"]=`${X}%`);const K=O.value.gutter/2;K>0&&(R["padding-left"]=`${K}px`,R["padding-right"]=`${K}px`)}else if(O.value.type==="flow"){if(n.width){const N=le(n.width);R.width=N}else{const N=we(O.value.column,n.span);N>0&&(R.width=`${N}%`)}const X=we(O.value.column,n.offset);X>0&&(R["margin-left"]=`${X}%`);const K=O.value.gutter/2;if(K>0){const N=r?fn(r,!0):null;if(N){let D=ue(n.offset)+ue(n.span);(D===-1||D>O.value.column)&&(D=O.value.column);const P=Math.ceil((N.index+1)/O.value.column),F=Math.ceil((N.index+D)/O.value.column);if(P===F){const Q=(N.index+1)%O.value.column,ee=(N.index+D)%O.value.column,Z=Q===1?0:K,J=ee===0?0:K;R["padding-left"]=`${Z}px`,R["padding-right"]=`${J}px`}else{const Q=D%O.value.column,ee=0,Z=Q===0?0:K;R["padding-left"]=`${ee}px`,R["padding-right"]=`${Z}px`}N.index+=D}else R["padding-left"]=`${K}px`,R["padding-right"]=`${K}px`}}}else if(n.width){const O=le(n.width);R.width=O}return A.value&&(R["box-sizing"]="content-box"),R}),y=t.computed(()=>n.type==="flex"?{[`${We("",n.type)}`]:!0,[`${We("justify",n.justify)}`]:!0,[`${We("align",n.align)}`]:!0,[`${We("flex",n.flexWrap)}`]:!0,[`${f}__gutter`]:!0}:n.type==="flow"?{[`${We("",n.type)}`]:!0,[`${We("justify",n.justify)}`]:!0,[`${We("align",n.align)}`]:!0}:{[`${We("",n.type)}`]:!0,[`${f}__gutter`]:!0}),k=t.toRef(n,"title"),v=t.toRef(n,"gutter"),g=t.toRef(n,"column"),u=t.computed(()=>i?!0:ge(n.isWrap)),p=[],b=R=>{p.push(R)},S=()=>{let R=p.length;p.splice(0,R)},B=t.ref(-1);In(r,B.value,g.value,v.value,!0,n.minItemWidth),n.autoLayout&&t.watch([B,g,v],([R,O,X])=>{s.order.index=0,In(r,R,O,X,!1,n.minItemWidth)});const E=t.computed(()=>A.value?n.expandText??"":n.collapseText??""),I=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),V=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,["is-expand"]:!A.value,["is-collapse"]:A.value})),C=t.ref(),w=t.ref(),q=t.computed(()=>M.value||le(n.height)||""),L=t.ref(!1),M=t.ref(""),A=t.ref(!1);let T=-1;const z=(R,O=!0)=>{const X=C.value;if(X&&L.value!==R){if(T=T===-1?$o(X):T,A.value=!0,O)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",R||(M.value="",A.value=!1)},R){let K=0;n.collapseHeight?K=n.collapseHeight:w.value&&w.value.classList.contains(`${e}__header`)&&(K=$o(w.value)),M.value=`${T}px`,t.nextTick(()=>{M.value=`${K}px`})}else M.value=`${T}px`;else if(R){let K=0;n.collapseHeight?K=n.collapseHeight:w.value&&w.value.classList.contains(`${e}__header`)&&(K=$o(w.value)),M.value=`${K}px`}else A.value=!1,M.value=`${T}px`;L.value=R,a.emit("update:collapse",R)}};t.watch(()=>n.collapse,R=>{z(R)});const $=()=>{x()},x=R=>{R=R??!L.value,z(R)};Te({toggleCollapse:x});let H=null;t.onMounted(()=>{if(n.rules){const R=t.toRaw(n.rules);m(R)}if(lt&&(z(ge(n.collapse),!1),n.autoLayout&&Array.isArray(p)&&p.length>0)){const R=p[0];B.value=ve(R).width,window.ResizeObserver&&(H=new window.ResizeObserver(()=>{const O=ve(R).width;O>0&&O!==B.value&&(B.value=O)}),H.observe(R))}}),t.onUnmounted(()=>{H?.disconnect()});const j=(R,O,X,K)=>{const N={...y.value};return O===0&&(N[`${f}__first`]=!0),X>=K-1&&(N[`${f}__last`]=!0),t.h("div",{ref:b,key:`${O}`,class:N},R)},Y=R=>{if(typeof R.type=="symbol"){if(Array.isArray(R.children)){const O=[...R.children];for(let X=O.length-1;X>=0;X--){const K=O[X],N=Y(K);N===null?O.splice(X,1):N.length>0&&Reflect.apply([].splice,O,[X,1,...N])}return O}return null}return[]};return()=>{s.order.index=0;const R=[];let O=0;if(a.slots.header){const D={key:`${O++}`,ref:w,class:{[`${f}__header`]:!0,[`${f}__first`]:!0}},P=t.h("div",D,[a.slots.header()]);R.push(P)}else{const D=[];if(k.value){if(n.showMark){const F={class:{[`${f}__header-mark`]:!0}};n.markColor&&(F.style={background:n.markColor});const Q=t.h("div",F);D.push(Q)}const P=t.h("div",{class:{[`${f}__header-title`]:!0}},[k.value]);D.push(P)}if(a.slots.toolbar&&D.push(a.slots.toolbar()),n.showCollapse){const P=[];if(E.value){const ee={class:I.value},Z=t.h("span",ee,[E.value]);P.push(Z)}const F={class:V.value},Q=l(n.collapseIcon,F);if(Q&&P.push(Q),P.length>0){const ee=t.h("div",{class:{[`${f}__header-collapse`]:!0},onClick:$},P);D.push(ee)}}if(D.length>0){const P={key:`${O++}`,ref:w,class:{[`${f}__header`]:!0,[`${f}__first`]:!0}},F=t.h("div",P,D);R.push(F)}}S();const X=a.slots.default?a.slots.default():[];let K=[],N=0;if(n.type==="flex"){for(let D=0;D<X.length;D++){const P=Y(X[D]);if(P===null)continue;P.length>0&&Reflect.apply([].splice,X,[D,1,...P]);const F=X[D];if(oi(F)==="fragment"){let oe=ni(F);oe>s.layout.value.column?oe=s.layout.value.column:oe<=0&&(oe=1);const re=N+oe;if(re>s.layout.value.column){const te=j([...K],O++,D-1,X.length);R.push(te),N=oe,K=[F]}else K.push(F),N=re;continue}const ee=ei(F),Z=ti(F);if(ee==="stretch"){if(N<s.layout.value.column){K.push(F);const oe=j([...K],O++,D,X.length);R.push(oe)}else{const oe=j([...K],O++,D-1,X.length);R.push(oe);const re=j([F],O++,D,X.length);R.push(re)}N=0,K=[];continue}let J=ue(ee);if(J===-1){if(K.length>0){const re=j([...K],O++,D-1,X.length);R.push(re)}const oe=j([F],O++,D,X.length);R.push(oe),N=0,K=[];continue}J>s.layout.value.column?J=s.layout.value.column:J<=0&&(J=1);const ne=N+J+Z;if(ne>s.layout.value.column){const oe=j([...K],O++,D-1,X.length);R.push(oe),N=J+Z,K=[F]}else K.push(F),N=ne}if(K.length>0){const D=j([...K],O++,X.length,X.length);R.push(D)}}else if(n.type==="flow"){const D=j(X,O++,0,X.length);R.push(D)}else for(let D=0;D<X.length;D++){const P=X[D],F=j([P],O++,D,X.length);R.push(F)}if(u.value){const D=n.tag||"div";return t.h(D,{ref:C,prop:n.name,class:{[`${f}`]:!0,"is-collapse":A.value},style:h.value},[R])}else return R}}}}const{componentName:ai,create:ri,scope:si}=U("group"),ii=(e=G.RectUp,o={})=>t.h(e,o),Ql=ri(li(ai,si,ii));function ci(e){return e===window}const ui=/matrix\((.+)\)/,Gl=e=>{const o=t.unref(e);if(!o)return{x:0,y:0};if(ci(o))return{x:0,y:0};let l=0,n=0,a=o;for(;a!==null;)l+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let r=0,s=0,i=0,c=0;for(a=o;a!==document;){s+=a.scrollTop,r+=a.scrollLeft;const{transform:d}=window.getComputedStyle(a);if(d){const m=ui.exec(d);if(m){let h=m[1].split(/\s*,\s*/);h.length==6&&(i+=Number(h[4]),c+=Number(h[5]))}}a=a.parentNode}return l-=r,n-=s,l+=i,n+=c,{x:l,y:n}};class di{watchedListeners=[];add(o){this.watchedListeners.push(o)}remove(o){const l=this.watchedListeners.indexOf(o);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(o=>{try{o()}catch{}})}}class fi{monitorRegister=new WeakMap;watch(o,l){let n=o.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r||(r=new di,n.addEventListener("scroll",r.listen),n===document.body&&n.addEventListener("resize",r.listen),this.monitorRegister.set(n,r)),r.add(l),n=n.parentNode}}unwatch(o,l){let n=o.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r&&(r.remove(l),r.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",r.listen),n===document.body&&n.removeEventListener("resize",r.listen))),n=n.parentNode}}}const qn=new fi,Zl={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:mi,create:pi}=U("price"),hi=pi({props:{...Zl},setup(e){const o=t.computed(()=>({[mi]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),n=t.computed(()=>pe(e.price)==0?"":rn(e.price,e.decimalLength,!0,ue(e.digits),e.separator)),a=t.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:o,showSymbol:l,intText:a,decimalText:r}}}),gi=["innerHTML"],yi=["innerHTML"];function vi(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,gi)):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,yi)):t.createCommentVNode("",!0)],2)}const tt=W(hi,[["render",vi]]),{componentName:Lt,create:ki}=U("hint-text"),bi=ki({components:{Price:tt},props:{...Zl,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},popupHeight:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,o){const l=t.ref({x:0,y:0}),n=t.ref(0),a=t.ref(0),r=t.ref(e.placement),s=10,i=4,c=t.ref(0),d=t.computed(()=>({[Lt]:!0})),m=t.ref(null),f=(E,I,V=10)=>{if(!lt||!e.autoFit||I===!1||!E)return;const C=Gl(e.reference);l.value=C,C.y<e.reference.offsetHeight&&(r.value="bottom");const w=ve(e.reference);n.value=w.width,a.value=w.height,setTimeout(()=>{if(!m.value)return;const q=document.documentElement.clientWidth||document.body.clientWidth,L=m.value.offsetWidth;let M=q-(L+se(l.value.x));M<0?c.value=M:c.value=0},V)},h=Vt(()=>{f(e.message,e.visible)},10),y=t.computed(()=>e.visible&&k.value),k=t.ref(!0),v=Vt(E=>{const I=E[0];I&&(k.value=I.isIntersecting)},10),g=new IntersectionObserver(v);t.watch([()=>e.message,()=>e.visible],([E,I])=>{f(E,I)}),t.onMounted(()=>{f(e.message,e.visible),qn.watch(e.reference,h),g.observe(e.reference)}),t.onBeforeMount(()=>{qn.unwatch(e.reference,h),g.unobserve(e.reference),g.disconnect()});const u=t.computed(()=>{const E={left:`${se(l.value.x)+c.value}px`,height:le(e.popupHeight)};return e.placement==="bottom"?E.top=le(l.value.y+a.value+s):E.top=le(l.value.y-e.popupHeight-s-i),e.autoFit?E["min-width"]=le(n.value):E.width=le(n.value),E}),p=t.computed(()=>({[`${Lt}__content`]:!0})),b=t.computed(()=>({})),S=t.computed(()=>({[`${Lt}__arrow`]:!0,[`${Lt}__arrow-${e.placement}`]:!0})),B=t.computed(()=>e.placement==="bottom"?{top:`${-s}px`,left:`${se(-c.value+20)}px`}:{top:"100%",left:`${se(-c.value+20)}px`});return{show:y,tipRef:m,classes:d,styles:u,textClasses:p,textStyles:b,arrowClasses:S,arrowStyles:B}}}),Si={key:1,class:"text"};function Ci(e,o,l,n,a,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createBlock(t.Transition,{name:"hint-text-fade"},{default:t.withCtx(()=>[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"},null,8,["price"])):(t.openBlock(),t.createElementBlock("span",Si,t.toDisplayString(e.message),1))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])]),_:1})}const wo=W(bi,[["render",Ci]]);class Jl{seed=new Date().getTime();constructor(o){this.seed=o??new Date().getTime()}get(){let o=this.seed++;return this.seed<0&&(this.seed=0),o}}const jo={},wi=new Jl,ft=new Map,Wo=e=>{if(e){const o=document.getElementById(e);ft.delete(e),o&&o.parentNode?.removeChild(o)}else{for(const o of ft.keys()){const l=document.getElementById(o);l&&l.parentNode?.removeChild(l)}ft.clear()}},Ni=e=>{const o=document.getElementById(e.id);if(o){const l=ft.get(e.id);l?e={...jo,...l,...e}:e={...jo,...e};const n=t.createVNode(wo,e);return t.render(n,o),e.id}},Bi=e=>{e.unmount=Wo;let o;if(e.id){if(o=e.id,ft.has(o))return Ni(e)}else o=`hinttext_${wi.get()}`;e={...jo,...e},e.id=o,ft.set(o,e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(wo,e);return t.render(n,l),document.body.appendChild(l),o},Vi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ft={show(e,o,l={},n=!0){return n&&Wo(),Vi(o),Bi({...l,message:o,reference:e})},hide(e){Wo(e)},install(e){e.config.globalProperties.$hintText=Ft}},{componentName:Mn,create:Ai}=U("item"),Ei=Ai({inheritAttrs:!0,props:{...de,...fe},emits:["appear","disappear"],setup(e,o){Be({componentName:Mn,validate:!1},e.prop??o.attrs.name);const l=Ue(),n=So();Co(!1);const a=t.computed(()=>n&&l?At(l,!1).value:null),r=Mn,s=t.ref(null),i=t.computed(()=>{const N={[r]:!0,[`${r}__gutter`]:a.value&&a.value.type!=="flow",[`${r}__stretch`]:e.span==="stretch",[`${r}__input--border`]:e.hasBorder};if(N[e.errorMarkClass]=!!w.value,N[e.warnMarkClass]=!!V.value,N[e.infoMarkClass]=!!E.value,typeof s.value=="function"){const D=s.value(itemPropName);N[D]=!0}else if(typeof s.value=="string"){const D=s.value;N[D]=!0}return N}),c=t.computed(()=>{const N={};if(a.value)if(a.value.type==="flex"){if(e.width)N.width=le(e.width);else{const F=we(a.value.column,e.span);F>0&&(N.width=`${F}%`)}const D=we(a.value.column,e.offset);D>0&&(N["margin-left"]=`${D}%`);const P=a.value.gutter/2;P>0&&(N["padding-left"]=`${P}px`,N["padding-right"]=`${P}px`)}else if(a.value.type==="flow"){if(e.width)N.width=le(e.width);else{const F=we(a.value.column,e.span);F>0&&(N.width=`${F}%`)}const D=we(a.value.column,e.offset);D>0&&(N["margin-left"]=`${D}%`);const P=a.value.gutter/2;if(P>0){const F=l?fn(l,!1):null;if(F){let Q=ue(e.offset)+ue(e.span);(Q===-1||Q>a.value.column)&&(Q=a.value.column);const ee=Math.ceil((F.index+1)/a.value.column),Z=Math.ceil((F.index+Q)/a.value.column);if(ee===Z){const J=(F.index+1)%a.value.column,ne=(F.index+Q)%a.value.column,oe=J===1?0:P,re=ne===0?0:P;N["padding-left"]=`${oe}px`,N["padding-right"]=`${re}px`}else{const J=Q%a.value.column,ne=0,oe=J===0?0:P;N["padding-left"]=`${ne}px`,N["padding-right"]=`${oe}px`}F.index+=Q}else N["padding-left"]=`${P}px`,N["padding-right"]=`${P}px`}}else return e.width&&(N.width=le(e.width)),N;else e.width&&(N.width=le(e.width));return N}),d=t.ref(null),m=t.computed({get:()=>d.value??ge(e.isRequired),set:N=>{d.value=N}}),f=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof o.slots.label=="function"),h=Ee(t.toRef(e,"labelPosition"),"labelPosition",Zt.Near),y=t.computed(()=>h&&h.value==="top"?"top":h&&h.value==="right"?"right":"left"),k=t.computed(()=>({[`${r}__main`]:!0,[`${r}__main--${y.value}`]:!0})),v=t.computed(()=>({label:!0,[`label--${y.value}`]:!0})),g=Ee(t.toRef(e,"labelWidth"),"labelWidth",Zt.Near),u=t.computed(()=>g&&g.value?{width:le(g.value)}:{}),p=t.computed(()=>({["label--string"]:!0,["label--required"]:m.value})),b=t.computed(()=>({content:!0,[e.contentClass]:!0})),S=t.computed(()=>({...e.contentStyle})),B=t.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Te({setRequired(N){m.value=N},setErrorTip(N){B.errorTip=N},setErrorIcon(N){B.errorIcon=N},setWarnTip(N){B.warnTip=N},setWarnIcon(N){B.warnIcon=N},setInfoTip(N){B.infoTip=N},setInfoIcon(N){B.infoIcon=N},setCustomClassName(N){s.value=N}});const E=t.computed(()=>e.infoTip||B.infoTip),I=t.computed(()=>e.infoIcon||B.infoIcon),V=t.computed(()=>e.warnTip||B.warnTip),C=t.computed(()=>e.warnIcon||B.warnIcon),w=t.computed(()=>e.errorTip||B.errorTip),q=t.computed(()=>e.errorIcon||B.errorIcon),L=t.computed(()=>w.value?"error":V.value?"warn":E.value?"info":""),M=t.computed(()=>L.value.length>0),A=t.computed(()=>L.value==="error"?w.value:L.value==="warn"?V.value:L.value==="info"?E.value:""),T=t.computed(()=>L.value==="error"?q.value:L.value==="warn"?C.value:L.value==="info"?I.value:null),z=t.computed(()=>{let N={[`${r}__tip`]:!0,[`${r}__tip--${L.value}`]:!0};return L.value==="error"&&e.errorClass?N[`${e.errorClass}`]=!0:L.value==="warn"&&e.warnClass?N[`${e.warnClass}`]=!0:L.value==="info"&&e.infoClass&&(N[`${e.infoClass}`]=!0),N}),$=t.computed(()=>{let N={};return h&&h.value==="top"||!f.value?N["padding-left"]="0px":g&&g.value&&(N["padding-left"]=le(g.value)),N}),x=()=>t.h(T.value,{width:12,height:12}),H=t.computed(()=>o.slots.fixedTip),j=t.computed(()=>({[`${r}__fixed-tip`]:!0})),Y=t.ref();let R="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([N,D,P,F])=>{Y.value&&(N&&!Ce(D)?R?Ft.show(Y.value,D,{...F,id:R,type:P},!0):R=Ft.show(Y.value,D,{...F,type:P},!0):Ft.hide(R))});let O=null;const X=()=>{O||!Y.value||(O=new IntersectionObserver(N=>{let D=!1;for(let P of N)if(P.intersectionRatio>0){D=!0,D&&o.emit("appear",P);break}D||o.emit("disappear")}),O.observe(Y.value))},K=()=>{!O||!Y.value||(O.unobserve(Y.value),O=null)};return t.watch(()=>ge(e.appearListen),N=>{N?X():K()}),t.onMounted(()=>{ge(e.appearListen)&&X()}),t.onUnmounted(K),{classes:i,styles:c,mainClasses:k,hasLabel:f,labelClasses:v,labelStyles:u,labelStringClasses:p,contentClasses:b,contentStyles:S,contentRef:Y,hasTip:M,mTip:A,mIcon:T,renderIcon:x,tipClasses:z,tipStyles:$,hasFixedTip:H,fixedTipClasses:j}}}),Ti=["prop"],$i={key:0,class:"fox-item__tip--icon"},Di={class:"fox-item__tip--text"};function Ii(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createElementBlock("div",$i,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))])):t.createCommentVNode("",!0),t.createElementVNode("div",Di,t.toDisplayString(e.mTip),1)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,Ti)}const Ve=W(Ei,[["render",Ii]]);function qi(e,o){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(l,n){const a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:l.span==="stretch",[`${a}__${l.align}`]:!0})),s=Ue(),i=So();Co(!1);const c=t.computed(()=>{const m={};if(i&&s){const f=At(s,!1);if(f.value.type!=="flex")return l.width&&(m.width=le(l.width)),m;if(l.width)m.width=le(l.width);else{const k=we(f.value.column,l.span);k>0&&(m.width=`${k}%`)}const h=we(f.value.column,l.offset);h>0&&(m["margin-left"]=`${h}%`);const y=f.value.gutter/2;y>0&&(m["padding-left"]=`${y}px`,m["padding-right"]=`${y}px`)}else l.width&&(m.width=le(l.width));return m}),d=t.computed(()=>({[`${a}__content`]:!0}));return()=>{const m=[];if(n.slots.default){const k=n.slots.default();if(l.divide)for(let v=0;v<k.length;v++){if(v>0){const g=t.h("view",{class:{[`${a}__divide`]:!0}});m.push(g)}m.push(k[v])}else Reflect.apply([].push,m,k)}const f={class:d.value},h=t.h("view",f,m),y={class:r.value,style:c.value};return t.h("view",y,[h])}}}}const{componentName:Mi,create:zi,scope:gw}=U("row-item"),_l=zi(qi(Mi));function xi(e,o){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(l,n){const a=Ue(),r=So();Co(!1);const s=t.computed(()=>r&&a?At(a,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:l.span==="stretch"})),d=t.computed(()=>{const m={};if(s.value)if(s.value.type==="flex"){if(l.width)m.width=le(l.width);else{const y=we(s.value.column,l.span);y>0&&(m.width=`${y}%`)}const f=we(s.value.column,l.offset);f>0&&(m["margin-left"]=`${f}%`);const h=s.value.gutter/2;h>0&&(m["padding-left"]=`${h}px`,m["padding-right"]=`${h}px`)}else if(s.value.type==="flow"){if(l.width)m.width=le(l.width);else{const y=we(s.value.column,l.span);y>0&&(m.width=`${y}%`)}const f=we(s.value.column,l.offset);f>0&&(m["margin-left"]=`${f}%`);const h=s.value.gutter/2;if(h>0){const y=a?fn(a,!1):null;if(y){let k=ue(l.offset)+ue(l.span);(k===-1||k>s.value.column)&&(k=s.value.column);const v=Math.ceil((y.index+1)/s.value.column),g=Math.ceil((y.index+k)/s.value.column);if(v===g){const u=(y.index+1)%s.value.column,p=(y.index+k)%s.value.column,b=u===1?0:h,S=p===0?0:h;m["padding-left"]=`${b}px`,m["padding-right"]=`${S}px`}else{const u=k%s.value.column,p=0,b=u===0?0:h;m["padding-left"]=`${p}px`,m["padding-right"]=`${b}px`}y.index+=k}else m["padding-left"]=`${h}px`,m["padding-right"]=`${h}px`}}else return l.width&&(m.width=le(l.width)),m;else l.width&&(m.width=le(l.width));return m});return()=>{const m={class:c.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?t.h("view",m,n.slots.default()):t.h("view",m)}}}}const{componentName:Pi,create:Li,scope:yw}=U("slot-item"),ea=Li(xi(Pi)),zn={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 Ri(e,o,l,n){return{props:{...de,...fe,...zn},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ne(t.computed(()=>a.disabled)),i=Ie(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),{toLocaleRefs:d}=ie.useFoxI18n(o),m=d(a,["placeholder"]),f=t.ref(!1),h=ze(a,"modelValue"),y=e,k=t.computed(()=>({[y]:!0,[`${y}__disabled`]:s.value,[`${y}__readonly`]:i.value})),v=Ee(t.computed(()=>a.textAlign),"textAlign"),g=t.computed(()=>f.value?{textAlign:"left"}:{textAlign:v.value??"right"}),u=A=>{let z=A.target.value;a.type==="digit"&&(z=Fo(z,!0)),a.type==="number"&&(z=Fo(z,!1)),a.maxLength&&z.length>Number(a.maxLength)&&(z=z.slice(0,Number(a.maxLength))),h.value=z,c("update:modelValue",z,A),c("change",z,A)};let p=ze(a,"hintText"),b=t.ref(!1);const S=A=>{let z=A.target.value;f.value=!0,Ce(p.value)||(b.value=!0),c("focus",z,A)},B=A=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let z=A.target.value;a.maxLength&&z.length>Number(a.maxLength)&&(z=z.slice(0,Number(a.maxLength))),c("blur",z,A)},E=t.computed(()=>({[`${y}__append`]:!0})),I=t.computed(()=>pe(a.unit)>0),V=t.computed(()=>!L.value),C=t.computed(()=>({hidden:!V.value})),w=A=>{h.value="",c("update:modelValue","",A),c("change","",A),c("clear","")},q=t.computed(()=>ge(a.clearable)&&!s.value&&!i.value),L=t.computed(()=>{let A=pe(h.value)>0;return ge(a.clearable)&&A&&f.value}),M=t.computed(()=>({action:!0,hidden:!L.value}));return()=>{const A={class:k.value,style:g.value,type:a.type,maxlength:a.maxLength,placeholder:m.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:u,onFocus:S,onBlur:B},T=[],z=t.h("input",A);T.push(z);const $=[];if(q.value){const X={class:["action-icon"]},K=t.h(n,X),N={class:M.value,onClick:w},D=t.h("view",N,{default:()=>[K]});$.push(D)}if(I.value){const X=t.h("view",{class:C.value},[a.unit]);$.push(X)}const x={class:E.value},H=t.h("view",x,{default:()=>$});T.push(H);const j={default:()=>T};if(r.slots.default){const X=r.slots.default();j.label=()=>X}if(r.slots.prepend){const X=r.slots.prepend();j.prepend=()=>X}if(r.slots.append){const X=r.slots.append();j.append=()=>X}const R={...Vl(a,zn),hintText:p.value,hintVisible:b.value};return t.h(l,R,j)}}}}const{componentName:Oi,create:Fi,scope:Ui}=U("input-item"),ta=Fi(Ri(Oi,Ui,Ve,G.CloseLittle));function xn(e,o=0){let l=`${e}`,n=l.indexOf(".");if(n==-1)return l;let a=n;for(let r=l.length-1;r>=n;r--)if(l.charAt(r)!="0"){a=r;break}return a-n<o?a=n+o+1:a!=n&&(a+=1),a>l.length?l=l.padEnd(a,"0"):l=l.substring(0,a),l}function Pn(e,o,l=20){if(typeof o=="string"&&(o=ue(o)),o==1||o==-1)return`${e}`;if(o==0)return"0";if(o>0){let n=fl(`${e}`,`${o}`);return xn(n)}else{let n=an(`${e}`,ml(`${o}`),20);return xn(n)}}function Ki(e,o=-1,l=!1,n=3,a=","){return rn(e,o,l,n,a)}function Ln(e,o,l,n,a=!0){if(e=="")return"";if(e=pl(e),o=ue(o),o==1)return e;if(n)e=Pn(e,o),l&&(e=="0"&&a?e=`${e}.`.padEnd(ue(l)+2,"0"):e=an(e,1,ue(l)));else{let r=-1*o;e=Pn(e,r)}return e}function Rn(e,o){let l={maxValid:!0,minValid:!0,message:""};if(o.min!==void 0){let n=ge(o.minInclude),a=Lo(e,o.min);if(n&&a==-1||!n&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";l.message=r.replace("{0}",o.min),l.minValid=!1}}if(o.max!=null){let n=ge(o.maxInclude),a=Lo(e,o.max);(n&&a==1||!n&&(a==0||a==1))&&(l.maxValid=!1)}return l}function Hi(e,o,l,n){return{props:{...de,...fe,clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ne(t.computed(()=>a.disabled)),i=Ie(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=t.ref(!1),m=ze(a,"modelValue"),f=t.ref("");t.watch([()=>m.value,()=>a.rates,()=>a.precision],([x,H,j])=>{if(Ce(x)){f.value="";return}const Y=Ln(x,H,j,!1);f.value!==Y&&(f.value=Y)},{immediate:!0});const h=t.computed(()=>{let x="";return d.value&&(x=f.value),x}),{t:y}=ie.useFoxI18n(o),k=t.computed(()=>{let x=a.placeholder??"";return!d.value&&!Ce(f.value)?x=Ki(f.value,a.decimalLength,a.autoPadding,a.digits,a.separator):x=y(["placeholder",x]),x}),v=e,g=t.computed(()=>({[v]:!0,[`${v}__disabled`]:s.value,[`${v}__placeholder`]:f.value.length>0})),u=Ee(t.computed(()=>a.textAlign),"textAlign"),p=t.computed(()=>d.value?{textAlign:"left"}:{textAlign:u.value??"right"}),b=t.ref(""),S=t.computed(()=>{let x=b.value;return Ce(x)&&(x=a.errorTip??""),x}),B=t.ref(""),E=t.ref(!1),I=x=>{let j=x.target.value;if(Ce(j)){f.value="",m.value="",c("update:modelValue","",x),c("change","",x),ge(a.showTip)&&E.value&&(E.value=!1);return}if(j.length>=2){let Y=j;if(Y.charAt(0)=="-"&&(Y=Y.substring(1)),Y.length>=2&&Y.charAt(0)=="0"&&Y.charAt(1)!="."){t.triggerRef(f);return}}if(j!="-"){if(!wl(j)){t.triggerRef(f);return}if(a.integerLength!=-1&&Nl(j)>Number(a.integerLength)){t.triggerRef(f);return}if(a.decimalLength&&a.decimalLength!=-1&&Bl(j)>Number(a.decimalLength)){t.triggerRef(f);return}let Y=Rn(j,a);if(Y.maxValid===!1){b.value=Y.message,t.triggerRef(f);return}}else if(a.min!=null&&ue(a.min)>=0){t.triggerRef(f);return}B.value=j,ge(a.showTip)&&(E.value=j.length>0),f.value=j,m.value=Ln(j,a.rates,a.precision,!0),c("update:modelValue",m.value,x),c("change",m.value,x)},V=x=>{if(d.value=!0,ge(a.showTip)){let H=f.value;Ce(H)&&(H=a.hintText),Ce(H)||(B.value=H,E.value=!0)}b.value="",c("focus",m.value,x)},C=x=>{if(setTimeout(()=>{d.value=!1,ge(a.showTip)&&E.value===!0&&(E.value=!1)},0),!Ce(f.value)){let H=Rn(f.value,a);if(H.minValid===!1||H.maxValid){b.value=H.message;return}}c("update:modelValue",m.value,x),c("blur",m.value,x)},w=t.computed(()=>({[`${v}__append`]:!0})),q=t.computed(()=>pe(a.unit)>0),L=t.computed(()=>!z.value),M=t.computed(()=>({hidden:!L.value})),A=x=>{m.value="",c("update:modelValue","",x),c("change","",x),c("clear","")},T=t.computed(()=>ge(a.clearable)&&!s.value&&!i.value),z=t.computed(()=>{let x=pe(m.value)>0;return ge(a.clearable)&&x&&d.value}),$=t.computed(()=>({action:!0,hidden:!z.value}));return()=>{let x={class:g.value,style:p.value,type:"digit",maxlength:a.maxLength,placeholder:k.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:I,onFocus:V,onBlur:C},H=[],j=t.h("input",x);H.push(j);let Y=[];if(T.value){const D={class:["action-icon"]},P=t.h(n,D),F={class:$.value,onClick:A},Q=t.h("view",F,{default:()=>[P]});Y.push(Q)}if(q.value){const D=t.h("view",{class:M.value},[a.unit]);Y.push(D)}const R={class:w.value},O=t.h("view",R,{default:()=>Y});H.push(O);const X={default:()=>H};if(r.slots.default){let D=r.slots.default();X.label=()=>D}if(r.slots.prepend){let D=r.slots.prepend();X.prepend=()=>D}if(r.slots.append){let D=r.slots.append();X.append=()=>D}let K={...a,errorTip:S.value,hintText:B.value,hintVisible:E.value,hintType:"number"};return t.h(l,K,X)}}}}const{componentName:ji,create:Wi,scope:Yi}=U("money-item"),oa=Wi(Hi(ji,Yi,Ve,G.CloseLittle)),Yo={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:Xi,create:Qi,scope:Gi}=U("textarea"),Zi=Qi({props:{...Yo},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:o}){let{toLocaleRefs:l}=ie.useFoxI18n(Gi);const n=l(e,["placeholder"]),a=t.ref(),r=t.computed(()=>{const h=Xi;return{[h]:!0,[`${h}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const s=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let h=a.value;h.style.height="auto";let y=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:k,minHeight:v}=e.autosize;k!==void 0&&(y=Math.min(y,k)),v!==void 0&&(y=Math.max(y,v))}y&&(h.style.height=y+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,y)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),o("update:modelValue",h,y),o("change",h,y)};return{...n,textareaRef:a,classes:r,styles:s,change:h=>{const y=h.target;c(y.value,h)},focus:h=>{e.disabled||e.readonly||o("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let k=h.target.value;c(k,h),o("blur",{value:k,event:h})}}}}),Ji=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],_i={key:0,class:"fox-textarea__limit"};function ec(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:t.normalizeStyle(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:o[0]||(o[0]=(...s)=>e.change&&e.change(...s)),onBlur:o[1]||(o[1]=(...s)=>e.blur&&e.blur(...s)),onFocus:o[2]||(o[2]=(...s)=>e.focus&&e.focus(...s)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Ji),e.limitShow?(t.openBlock(),t.createElementBlock("view",_i,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const mn=W(Zi,[["render",ec]]);function tc(e,o,l,n){return{props:{...de,...fe,...Yo},emits:["update:modelValue","change","blur","focus"],setup(a,r){const s=Ne(t.computed(()=>a.disabled)),i=Ie(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=ze(a,"modelValue"),m=v=>{d.value=v,c("update:modelValue",v,{}),c("change",v,{})};let f=ze(a,"hintText"),h=t.ref(!1);const y=v=>{Ce(f.value)||(h.value=!0),c("focus",d.value,v)},k=v=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",d.value,v)};return()=>{const g={...ke(a,Yo),disabled:s.value,readonly:i.value,value:d.value,["onUpdate:modelValue"]:m,onFocus:y,onBlur:k},u=[],p=t.h(n,g);u.push(p);const b={default:()=>u};if(r.slots.default){const E=r.slots.default();b.label=()=>E}const S=ke(a,fe,de);return t.h(l,S,b)}}}}const{componentName:oc,create:nc,scope:lc}=U("textarea-item"),na=nc(tc(oc,lc,Ve,mn)),at={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},la=2e3;let On=la;const ac=(e,o)=>({components:o,props:{...at},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:n}){const a=t.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),r=t.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),s=t.computed(()=>({zIndex:a.zIndex,transitionDuration:`${l.duration}s`,...l.style})),i=t.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),c=()=>{l.zIndex!==la&&(On=Number(l.zIndex)),n("update:visible",!0),a.zIndex=++On,l.destroyOnClose&&(a.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+l.duration*1e3)},m=v=>{n("click-pop",v)},f=v=>{v.stopPropagation(),n("click-close-icon",v),n("update:visible",!1)},h=v=>{n("click-overlay",v),l.closeOnClickOverlay&&n("update:visible",!1)},y=v=>{n("opend",v)},k=v=>{n("closed",v)};return t.watch(()=>l.visible,v=>{l.visible?c():d()}),t.watchEffect(()=>{a.closed=l.closeable}),{...t.toRefs(a),popStyle:s,transitionName:i,classes:r,onClick:m,onClickCloseIcon:f,onClickOverlay:h,onOpened:y,onClosed:k}}});let yt=0;const Fn="fox-overflow-hidden",Un=()=>lt?document.body:{classList:[]},rc=e=>[()=>{if(e())try{!yt&&Un().classList.add(Fn),yt++}catch{}},()=>{if(e()&&yt)try{yt--,!yt&&Un().classList.remove(Fn)}catch{}}],sc={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:ic,create:cc}=U("overlay"),uc=cc({props:{...sc},emits:["click","update:visible"],setup(e,{emit:o}){const[l,n]=rc(()=>e.lockScroll),a=t.computed(()=>({[ic]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watchEffect(()=>{e.visible?l():n()}),{classes:a,style:r,onClick:i=>{o("click",i),e.closeOnClickOverlay&&o("update:visible",!1)}}}});function dc(e,o,l,n,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const ot=W(uc,[["render",dc]]),{componentName:fc,create:mc}=U("popup"),pc=mc(ac(fc,{[ot.name]:ot,Close:G.Close}));function hc(e,o,l,n,a,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:!e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:o[1]||(o[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[0]||(o[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const ce=W(pc,[["render",hc]]),Kn=10;function gc(e,o){return e>o&&e>Kn?"horizontal":o>e&&o>Kn?"vertical":""}function Ke(){const e=t.ref(0),o=t.ref(0),l=t.ref(0),n=t.ref(0),a=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),d=t.ref(0),m=t.ref(""),f=()=>m.value==="vertical",h=()=>m.value==="horizontal",y=()=>{s.value=0,i.value=0,c.value=0,d.value=0,m.value="",l.value=0};return{move:g=>{const u=g.touches[0];s.value=u.clientX-e.value,i.value=u.clientY-o.value,a.value=u.clientX,r.value=u.clientY,c.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-l.value,m.value||(m.value=gc(c.value,d.value))},start:g=>{y(),e.value=g.touches[0].clientX,o.value=g.touches[0].clientY,l.value=Date.now()},reset:y,startX:e,startY:o,startTime:l,duration:n,moveX:a,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:d,direction:m,isVertical:f,isHorizontal:h}}const aa={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},Xo={...at,...aa,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let ra=36;function yc(){return ra}function vc(e){ra=e}function qe(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function Qo(e,o){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?o[e.childrenKey]:o.children??null}function kc(e,o,l){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(o[e.childrenKey]=l),o.children=l}function nt(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function Hn(e,o){return typeof e.itemOptions=="function"?e.columnOptions(o):e.columnOptions}let bc=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const a=Mt(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(De(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function Sc(){const e=t.getCurrentInstance();return new bc(e.proxy)}function jn(e,o,l){const n=qe(e,o),a=qe(e,l);if(n!==a)return!1;const r=nt(e,o),s=nt(e,l);return r===s}function Cc(e,o,l,n){if(l.length==0)return[];Array.isArray(o)||(o=[o]);const a=[],r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<o.length&&s<l.length;s++){const i=o[s];let d=l[s].findIndex(m=>{if(r==="text")return qe(e,m)===i;if(r==="value"){let f=nt(e,m);return f==null&&(f=qe(e,m)),f===i}else if(r==="item")return jn(e,m,i)});if(d==-1)break;a.push(d)}else{let s=l[0];for(let i=0;i<o.length;i++){const c=o[i];let d=s.findIndex(f=>{if(r==="text")return qe(e,f)===c;if(r==="value"){let h=nt(e,f);return h==null&&(h=qe(e,f)),h===c}else if(r==="item")return jn(e,f,c)});if(d==-1)break;a.push(d);const m=Qo(e,s[d]);if(!Array.isArray(m))break;s=m}}return a}function Wn(e,o,l,n){if(l.length==0)return null;const a={texts:[],values:[]},r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<o.length&&s<l.length;s++){const i=l[s];let c=o[s];c<0&&c>=i.length&&(c=0);const d=i[c],m=qe(e,d);if(a.texts.push(m),r==="text")a.values.push(m);else if(r==="value"){let f=nt(e,d);f==null&&(f=m),a.values.push(f)}else a.values.push(d)}else{let s=l[0];for(let i=0;i<o.length;i++){let c=o[i];c<0&&c>=s.length&&(c=0);const d=s[c],m=qe(e,d);if(a.texts.push(m),r==="text")a.values.push(m);else if(r==="value"){let f=nt(e,d);f==null&&(f=m),a.values.push(f)}else{const f=Object.assign({},d);f.children=null,a.values.push(f)}if(!Array.isArray(d.children))break;s=d.children}}return a}function Yn(e){return{text:e,value:e}}const wc=15,Nc=300,Bc=200,{create:Vc}=U("picker-column");function Ac(e){e.stopPropagation()}function Ec(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&Ac(e)}const Tc=Vc({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},...aa},emits:["click","change","update:modelValue"],setup(e,{emit:o}){const l=t.computed(()=>({"fox-picker__list":!0})),n=t.computed(()=>({height:`${ue(e.visibleItemCount)*+e.itemHeight}px`})),a=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=V=>V>=f.currIndex+8||V<=f.currIndex-8,i=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${f.deg})`,top:`${r.value}px`})),c=V=>`transform: rotate3d(1, 0, 0, ${-f.rotation*V}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${f.scrollDistance+r.value}px, 0)`})),m=t.ref(null),f=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=t.toRef(e,"source"),y=V=>qe(e,V),k=V=>nt(e,V),v=Ke(),g=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},u=(V,C=!1,w=!1)=>{if(f.currIndex=V,C){const q=()=>{f.moving=!1,o("update:modelValue",V),o("change",V)};w?f.transitionEndTrigger=q:q()}},p=(V,C,w)=>{let q=V+f.startDistance;if(C==="end"){const L=-(h.value.length-1)*e.itemHeight;q<L&&(q=L,(!w||w<=0)&&(w=e.swipeDuration)),q>0&&(q=0,(!w||w<=0)&&(w=e.swipeDuration));let M=Math.abs(Math.round(-q/e.itemHeight));const A=-M*e.itemHeight,T=`${(M+1)*f.rotation}deg`,z=w?w>0:!1;u(M,!0,z),b(A,C,w,T)}else{let L=(-q/e.itemHeight+1)*f.rotation;const M=(h.value.length+1)*f.rotation,A=0;if(L=Math.min(Math.max(L,A),M),e.threeDimensional&&(L<A||L>M))return;b(q,null,void 0,`${L}deg`)}},b=(V=0,C,w=Bc,q)=>{C==="end"?f.scrollTime=w:f.scrollTime=0,f.deg=q,f.scrollDistance=V},S=(V,C)=>(V=Math.abs(V/C)/.003*(V<0?-1:1),V),B=V=>{if(!e.readonly){if(f.moving){const C=m.value,{transform:w}=window.getComputedStyle(C);f.scrollDistance=+w.slice(7,w.length-1).split(", ")[5]}f.startDistance=f.scrollDistance,v.start(V),f.transitionEndTrigger=null}},E=V=>{e.readonly||(f.moving=!0,v.move(V),v.isVertical()&&(f.moving=!0,Ec(V,!0)),p(v.deltaY.value,"",0))},I=()=>{if(e.readonly)return;const V=v.deltaY.value,C=v.duration.value;if(C<Nc&&Math.abs(V)>wc){const q=S(V,C);p(q,"end",e.swipeDuration)}else p(V,"end",0)};return t.watch(()=>e.modelValue,V=>{if(f.currIndex!==V){f.currIndex=V;const C=-V*e.itemHeight;p(C)}}),t.onMounted(()=>{const V=-e.modelValue*e.itemHeight;p(V)}),{classes:l,styles:n,contentClasses:a,source:h,itemText:y,itemValue:k,...t.toRefs(f),roller:m,getItemText:qe,onTouchStart:B,onTouchMove:E,onTouchEnd:I,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:d,stopMomentum:g}}}),$c={key:1,class:"fox-picker__item-tile"};function Dc(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:o[4]||(o[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",$c,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Xn=W(Tc,[["render",Dc]]),{create:Ic,componentName:qc,scope:Mc}=U("picker"),zc=Ic({components:{[Xn.name]:Xn,[ce.name]:ce},props:{...Xo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:o}){const{toLocaleRefs:l,t:n}=ie.useFoxI18n(Mc),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(yc());t.watch(()=>e.visible,C=>{C&&s.value<=0&&setTimeout(()=>{if(r.value){const w=ve(r.value);s.value=w.height,vc(s.value)}},50)});const i=t.computed(()=>({[qc]:!0})),c=Sc(),d=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([C,w])=>{if(C){let q=await c.load("picker",C,w);if(q.length>0){let L=q[0];if(Array.isArray(L)){if(typeof L[0]=="string"){let M=q,A=[];M.forEach(T=>{let z=T.map($=>Yn($));A.push(z)}),m.value=A}else m.value=q;d.value="multipleColumn"}else if(typeof L=="string"){let M=q,A=[],T=M.map(z=>Yn(z));A.push(T),m.value=A,d.value="singleColumn"}else{const M=Qo(e,L);Array.isArray(M)?(d.value="cascade",m.value=[q]):(d.value="singleColumn",m.value=[q])}}else m.value=[]}},{immediate:!0});const f=t.ref([]),h=t.ref(e.modelValue),y=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([C,w])=>{let q=Cc(e,C,w,d.value);if(!Fe(q,y.value)){y.value=q;let L=Wn(e,q,w,d.value);L&&(f.value=L.texts,o("update:text",f.value))}});const k=t.ref(e.visible);t.watch(()=>e.visible,C=>{k.value=C});const v=C=>{let w=Hn(e,C);return De(w)?w.defaultIndex??0:0},g=C=>{if(e.readonly===!0)return!0;let w=Hn(e,C);return De(w)?w.readonly??!1:!1},u=(C,w,q=!1)=>{let L=y.value;L[C]=w;for(let A=0;A<C;A++)L[A]==null&&(L[A]=v(A));if(d.value==="cascade")for(let A=C+1;A<b.value.length;A++){let T=v(A);A<L.length?L[A]=T:L.push(T)}else for(let A=L.length;A<b.value.length;A++){let T=v(A);L.push(T)}y.value=L;let M=Wn(e,L,m.value,d.value);if(M&&(f.value=M.texts,h.value=M.values),q)if(d.value==="singleColumn"){let A=M&&M.values.length>0?M.values[0]:"";o("change",A)}else o("change",M?.values)},p=C=>C<y.value.length?y.value[C]:v(C),b=t.computed(()=>{if(m.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return m.value;let C=[],w=0,q=m.value[0],L=0;for(;;){let M=q.map(z=>{let $=Object.assign({},z);return kc(e,$,null),$});C.push(M),w>=y.value.length?L=0:L=y.value[w],(L<0||L>=q.length)&&(L=0);let A=q[L];const T=Qo(e,A);if(!Array.isArray(T))break;q=T,w++}return C}),S=t.computed(()=>ue(+e.visibleItemCount-1)/2*s.value);return{...a,pickerLineRef:r,classes:i,columns:b,dataType:d,show:k,itemHeight:s,top:S,isReadonly:g,getIndex:p,change:(C,w)=>{u(C,w,!0)},close:()=>{o("close"),o("update:visible",!1)},confirm:()=>{if(e.readonly===!0){o("update:visible",!1);return}let C=m.value.length-1;for(;C>=0&&!(y.value[C]===null||y.value[C]===void 0);C--);if(C>=0&&u(C,0,!1),d.value==="singleColumn"){let w=h.value.length>0?h.value[0]:"";e.readonly||(o("update:modelValue",w),o("update:text",f.value)),o("confirm",w)}else e.readonly||(o("update:modelValue",h.value),o("update:text",f.value)),o("confirm",h.value);o("update:visible",!1)},clear:()=>{if(e.readonly===!0){o("update:visible",!1);return}d.value==="singleColumn"?(o("update:modelValue",""),o("change","")):(o("update:modelValue",[]),o("change",[])),o("clear",""),o("update:visible",!1)}}}}),xc={class:"fox-picker__bar"},Pc={class:"fox-picker__title"},Lc={class:"fox-picker__bar__action"},Rc={class:"fox-picker__column"};function Oc(e,o,l,n,a,r){const s=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":o[3]||(o[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",xc,[t.createElementVNode("view",Pc,t.toDisplayString(e.title),1),t.createElementVNode("view",Lc,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:o[0]||(o[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:o[1]||(o[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:o[2]||(o[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Rc,[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,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":m=>e.change(d,m),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const Et=W(zc,[["render",Oc]]);function Fc(e,o,l,n,a,r,s=!0){return{props:{...de,...fe,...Xo,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}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const d=Ne(t.computed(()=>i.disabled)),m=Ie(t.computed(()=>i.readonly)),{emitEvent:f}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(o),y=h(i,["placeholder"]),k=t.ref(!1),v=ze(i,"modelValue"),g=t.ref([]),u=t.computed(()=>Array.isArray(g.value)?g.value.join(" "):g.value),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ee(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>({textAlign:S.value??"right"})),E=t.ref(!1),I=()=>{E.value=!0},V=R=>{E.value=R},C=R=>{v.value=R,f("update:modelValue",R,{}),f("change",R,{})},w=R=>{let X=R.target.value;k.value=!0,f("focus",X,R)},q=R=>{setTimeout(()=>{k.value=!1},0);let X=R.target.value;i.maxLength&&X.length>Number(i.maxLength)&&(X=X.slice(0,Number(i.maxLength))),f("blur",X,R)},L=t.computed(()=>({[`${p}__append`]:!0})),M=t.computed(()=>pe(i.unit)>0),A=t.computed(()=>pe(i.unit)>0&&!k.value),T=t.computed(()=>({hidden:!A.value})),z=R=>{v.value="",f("update:modelValue","",R),f("change","",R),f("clear","")},$=t.computed(()=>i.clearable&&!d.value&&!m.value),x=t.computed(()=>pe(v.value)>0&&k.value),H=R=>{x.value?z(R):I()},j=t.computed(()=>x.value&&$.value?n:a),Y=t.computed(()=>({action:!0}));return()=>{const R={class:b.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:I,onFocus:w,onBlur:q};s&&(R.disabled=!0);const O=[],X=t.h("input",R);O.push(X);const K=[],N={class:["action-icon"]},D=t.h(j.value,N),P={class:Y.value,onClick:H},F=t.h("view",P,{default:()=>[D]});if(K.push(F),M.value){const te=t.h("view",{class:T.value},[i.unit]);K.push(te)}const Q={class:L.value},ee=t.h("view",Q,{default:()=>K});O.push(ee);const Z={default:()=>O};if(c.slots.default){const te=c.slots.default();Z.label=()=>te}if(c.slots.prepend){const te=c.slots.prepend();Z.prepend=()=>te}if(c.slots.append){const te=c.slots.append();Z.append=()=>te}const J=ke(i,Xo);J.disabled=!1,J.readonly=d.value||m.value,J.visible=E.value,J["onUpdate:visible"]=V,J.modelValue=v.value,J["onUpdate:modelValue"]=C,J.text=g.value,J["onUpdate:text"]=te=>{g.value=te};const ne=t.h(r,J);Z.hide=()=>[ne];const oe=ke(i,fe,de);return t.h(l,oe,Z)}}}}const{componentName:Uc,create:Kc,scope:Hc}=U("picker-item"),sa=Kc(Fc(Uc,Hc,Ve,G.CloseLittle,G.ArrowRight,Et,!1)),Ut=(e,o,l)=>e.map(n=>{const{value:a="value",text:r="text",children:s="children"}=l??{},{[a]:i,[r]:c,[s]:d,...m}=n,f={loading:!1,...m,level:o?(o&&o.level||0)+1:0,value:i,text:c,children:d,_parent:o};return f.children&&f.children.length&&(f.children=Ut(f.children,f,l)),f}),ia=(e,o)=>{let l=0,n;for(;(n=e[l++])&&o(n)!==!0;)n.children&&n.children.length&&ia(n.children,o)},jc={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Wc=(e,o)=>{const l={...jc,...o||{}},{topId:n,idKey:a,pidKey:r,sortKey:s}=l;let i=[],c={};return e.forEach(d=>{d={...d};const{[a]:m,[r]:f}=d,h=c[f]=c[f]||[];!i.length&&f===n&&(i=h),h.push(d),d.children=c[m]||(c[m]=[])}),s&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((m,f)=>m[s]-f[s])}),c=null,i},Yc=/scroll|auto|overlay/i,ca=window;function Xc(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Go(e,o=ca){let l=e;for(;l&&l!==o&&Xc(l);){const{overflowY:n}=window.getComputedStyle(l);if(Yc.test(n))return l;l=l.parentNode}return o}function ua(e,o=ca){const l=t.ref();return t.onMounted(()=>{e.value&&(l.value=Go(e.value,o))}),l}const{create:Qc}=U("sticky"),Gc=Qc({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:o}){const l=t.ref(),n=t.ref(),a=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>a.fixed?{height:`${a.height}px`}:{}),i=t.computed(()=>a.fixed?{[e.position]:`${r.value}px`,transform:a.transform?`translate3d(0, ${a.transform}px, 0)`:void 0,position:a.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const d=e.container;if(!l.value&&!d)return;const m=ve(l),f=n.value,h=ve(f),y=ve(d);a.height=m.height;const k=()=>{let g=!1;if(e.position==="top")g=d?r.value>m.top&&y.bottom>0:r.value>m.top;else{const u=document.documentElement.clientHeight;g=d?y.bottom>0&&u-r.value-h.height>y.top:u-r.value<m.bottom}return g},v=()=>{if(d)if(e.position==="top"){const g=y.bottom-r.value-h.height;return g<0?g:0}else{const g=document.documentElement.clientHeight,u=y.bottom-(g-r.value);return u<0?u:0}return 0};a.transform=v(),a.fixed=k()};return t.watch(()=>a.fixed,d=>{o("change",d)}),t.onMounted(()=>{c(),Go(l.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Go(l.value).removeEventListener("scroll",c)}),{rootRef:l,rootStyle:s,stickyRef:n,stickyStyle:i}}});function Zc(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const _t=W(Gc,[["render",Zc]]),Jc=(e,o,l,n)=>{const a=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(l&&l.getEnv()!==l.ENV_TYPE.WEB){let h=await n(a,l);r.value.width=h.width||0,r.value.height=h.height||0}else r.value.width=a.value?.clientWidth||0,r.value.height=a.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=Ke();let d="";const m=(h,y)=>{let k=h;switch(e.direction=="horizontal"?(d=h>0?"right":"left",k=Math.abs(k)/r.value.width*100):(d=y>0?"bottom":"top",k=y,k=Math.abs(k)/r.value?.height*100),k>85&&(k=85),d){case"left":case"top":o.isEnd()&&(k=0,i.moving=!1);break;case"right":case"bottom":k=-k,o.isBegin()&&(k=0,i.moving=!1);break}i.offset=k};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,m(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(h.preventDefault(),h.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(h.preventDefault(),h.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,d){case"left":case"top":i.offset>35&&o.next();break;case"right":case"bottom":i.offset<-35&&o.prev();break}}},touchState:i,tabsContentRef:a}};class _c{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:eu}=U("tabs"),tu=eu({components:{[_t.name]:_t,JoySmile:G.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:o,slots:l}){const n=t.ref(null);let a;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=C=>{C.forEach((w,q)=>{let L=w.type;if(L=L.name||L,L=="fox-tab-pane"){let M=new _c;if(w.props?.title||w.props?.["pane-key"]||w.props?.paneKey){let A=et(w.props?.["pane-key"]),T=A=="number"||A=="string"?String(w.props?.["pane-key"]):null,z=et(w.props?.paneKey),$=z=="number"||z=="string"?String(w.props?.paneKey):null;M.title=w.props?.title,M.paneKey=T||$||String(q),M.disabled=w.props?.disabled}r.value.push(M)}else{if(w.children==" ")return;Array.isArray(w.children)&&s(w.children)}})},i=t.ref(e.modelValue||0),c=C=>{let w=r.value.findIndex(q=>q.paneKey==C);r.value.length==0||w==-1||(i.value=w)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),f=t.ref([]),h=C=>{const w=m.value,q=f.value;if(!w||!q||!q[i.value])return;const L=q[i.value];let M=0;e.direction==="vertical"?M=L.offsetTop-w.offsetTop+10-(w.offsetHeight-L.offsetHeight)/2:M=L.offsetLeft-(w.offsetWidth-L.offsetWidth)/2,y(w,M,C?0:.3,e.direction)},y=(C,w,q,L)=>{let M=0;const A=L==="horizontal"?C.scrollLeft:C.scrollTop,T=q===0?1:Math.round(q*1e3/16);function z(){L==="horizontal"?C.scrollLeft+=(w-A)/T:C.scrollTop+=(w-A)/T,++M<T&&Qe(z)}z()},k=(C=l.default?.())=>{r.value=[],C=C?.filter(w=>typeof w.children!="string"),C&&C.length&&s(C),c(e.modelValue),t.nextTick(()=>{h()})},v=C=>{a=C.fixed};t.watch(()=>l.default?.(),C=>{k(C)});const g=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,C=>{if(c(C),h(),a){let w=ve(n.value).top+g(),q=Math.ceil(w-e.top);window.scrollTo({top:q,behavior:"smooth"})}}),t.onMounted(k),t.onActivated(k);const u={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,u.updateValue(r.value[i.value])},prev:()=>{i.value-=1,u.updateValue(r.value[i.value])},updateValue:C=>{o("update:modelValue",C.paneKey),o("change",C)},tabChange:(C,w)=>{o("click",C),!(C.disabled||i.value==w)&&(i.value=w,u.updateValue(C))},setTabItemRef:(C,w)=>{f.value[w]=C}},{tabsContentRef:p,touchState:b,touchMethods:S}=Jc(e,u),B=t.computed(()=>{let C=i.value*100;b.moving&&(C+=b.offset);let w={transform:e.direction=="horizontal"?`translate3d(-${C}%, 0, 0)`:`translate3d( 0,-${C}%, 0)`,transitionDuration:b.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(w={}),w}),E=t.computed(()=>({background:e.background})),I=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),V=t.computed(()=>{if(!e.titleGutter)return{};const C=le(e.titleGutter);return e.direction==="vertical"?{marginTop:C,marginBottom:C}:{marginLeft:C,marginRight:C}});return{navRef:m,tabsContentRef:p,titles:r,contentStyle:B,tabsNavStyle:E,titleStyle:V,tabsActiveStyle:I,container:n,getScrollY:d,onStickyScroll:v,...u,...S}}}),ou=["onClick"],nu=["onClick"];function lu(e,o,l,n,a,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,d),key: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,ou))),128))],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(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,d),key:c.paneKey,ref_for:!0,ref:m=>e.setTabItemRef(m,d)},[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,nu))),128))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:o[0]||(o[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:o[1]||(o[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:o[2]||(o[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:o[3]||(o[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const eo=W(tu,[["render",lu]]),{create:au}=U("tab-pane"),ru=au({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o}){const l=t.inject("tabsOpiton"),n=t.computed(()=>({display:l.animatedTime.value==0&&e.paneKey!=l.activeKey.value?"none":void 0}));return{...l,paneStyle:n}}});function su(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const to=W(ru,[["render",su]]);class Qn{nodes;config;constructor(o,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=Ut(o,null,this.config)}updateChildren(o,l){l?l.children=Ut(o,l,this.config):this.nodes=Ut(o,null,this.config)}getNodeByValue(o){let l;return ia(this.nodes,n=>{if(n.value===o)return l=n,!0}),l}getPathNodesByValue(o){if(!o.length)return[];const l=[];let n=this.nodes;for(;n&&n.length;){const a=n.find(r=>r.value===o[r.level]);if(!a)break;l.push(a),n=a.children}return l}isLeaf(o,l){const{leaf:n,children:a}=o,r=Array.isArray(a)&&Boolean(a.length);return n||!r&&!l}hasChildren(o,l){if(this.isLeaf(o,l))return!1;const{children:a}=o;return Array.isArray(a)&&Boolean(a.length)}}const{create:iu,scope:cu}=U("cascader-pane"),uu=iu({components:{Loading:G.Loading,Checklist:G.Checklist,[eo.name]:eo,[to.name]:to},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:o}){const l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),n=t.ref(0),a=t.ref(!1),r=t.ref(e.modelValue),s=t.ref(new Qn([],{})),i=t.ref([]),c=t.computed(()=>l.value.lazy&&Boolean(l.value.lazyLoad)),d=new Map;let m;const f=async()=>{d.clear(),i.value=[],n.value=0,a.value=!1,m=null;let{options:u}=e;l.value.convertConfig&&(u=Wc(u,l.value.convertConfig)),s.value=new Qn(u,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),c.value&&!s.value.nodes.length&&await y({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:s.value.nodes,selectedNode:null}],h()},h=async()=>{const u=r.value;if(u===void 0||!s.value.nodes.length)return;if(u.length===0){n.value=0,i.value=[{nodes:s.value.nodes,selectedNode:null}];return}let p=u;if(c.value&&Array.isArray(u)&&u.length){p=[];let b=s.value.nodes.find(S=>S.value===u[0]);if(b){p=[b.value],a.value=!0;const S=await u.slice(1).reduce(async(B,E)=>{const I=await B;await y(I);const V=I?.children?.find(C=>C.value===E);return V&&p.push(E),Promise.resolve(V)},Promise.resolve(b));await y(S),a.value=!1}}p.length&&u===e.modelValue&&s.value.getPathNodesByValue(p).map((S,B)=>{n.value=B,g.handleNode(S,!0)})},y=async u=>{if(!u)return;if(!l.value.lazyLoad){u.leaf=!0;return}if(s.value.isLeaf(u,c.value)||s.value.hasChildren(u,c.value))return;u.loading=!0;const p=u.root?null:u;let b=d.get(u);b||(b=new Promise(B=>{l.value.lazyLoad?.(u,B)}),d.set(u,b));const S=await b;Array.isArray(S)&&S.length>0?s.value.updateChildren(S,p):u.leaf=!0,u.loading=!1,d.delete(u)},k=u=>{const p=u.map(b=>b.value);r.value=p,o("change",p,u),o("update:modelValue",p,u)},{t:v}=ie.useFoxI18n(cu),g={async handleNode(u,p){const{disabled:b,loading:S}=u;if(!(!p&&b||!i.value[n.value])){if(s.value.isLeaf(u,c.value)){if(u.leaf=!0,i.value[n.value].selectedNode=u,i.value=i.value.slice(0,u.level+1),!p){const B=i.value.map(E=>E.selectedNode);k(B),o("pathChange",B)}return}if(s.value.hasChildren(u,c.value)){const B=u.level+1;if(i.value[n.value].selectedNode=u,i.value=i.value.slice(0,B),i.value.push({nodes:u.children||[],selectedNode:null}),n.value=B,!p){const E=i.value.map(I=>I.selectedNode);o("pathChange",E)}return}m=u,!S&&(await y(u),m===u&&(i.value[n.value].selectedNode=u,g.handleNode(u,p)))}},handleTabClick(u){m=null,n.value=Number(u.paneKey)},formatTabTitle(u){return u.selectedNode?u.selectedNode.text:v("select")},isSelected(u,p){return u.selectedNode&&u.selectedNode.value===p.value}};return t.watch([l,()=>e.options],()=>{f()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,u=>{u!==r.value&&(r.value=u,h())}),t.watch(()=>e.visible,u=>{u&&Array.isArray(r.value)&&r.value.length>0&&h()}),{panes:i,initLoading:a,tabsCursor:n,...g}}}),du={role:"menu",class:"fox-cascader__pane"},fu=["aria-checked","aria-disabled","onClick"],mu={class:"fox-cascader__item__title"},pu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function hu(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-tab-pane"),d=t.resolveComponent("fox-tabs");return t.openBlock(),t.createBlock(d,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":o[0]||(o[0]=m=>e.tabsCursor=m),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(m,f)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(m),key:f},{default:t.withCtx(()=>[t.createElementVNode("view",du,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.nodes,h=>(t.openBlock(),t.createElementBlock("view",{key:h.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(m,h),disabled:h.disabled}]),"aria-checked":e.isSelected(m,h),"aria-disabled":h.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(h,!1)},[t.createElementVNode("view",mu,t.toDisplayString(h.text),1),h.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,fu))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[pu]),_:1}))]),_:1},8,["modelValue","onClick"])}const Gn=W(uu,[["render",hu]]),{create:gu}=U("cascader"),yu=gu({components:{[Gn.name]:Gn,[ce.name]:ce},props:{...at,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:o}){const l=t.ref(e.modelValue),n=t.computed({get(){return e.visible},set(s){o("update:visible",s)}}),a=(s,i)=>{l.value=s,n.value=!1,o("change",s,i),o("update:modelValue",s)},r=s=>{o("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==l.value&&(l.value=s)}),{onChange:a,onPathChange:r,innerValue:l,innerVisible:n}}}),vu=["innerHTML"];function ku(e,o,l,n,a,r){const s=t.resolveComponent("fox-cascader-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":o[0]||(o[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,vu)):t.createCommentVNode("",!0),t.createVNode(s,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(s,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}const pn=W(yu,[["render",ku]]);function Tt(e,o){const l=e.textKey??"text";return o[l]??""}function $t(e,o){const l=e.valueKey??"value";return o[l]}function da(e,o){const l=e.childrenKey??"children";return o[l]}function Rt(e,o=[]){const l={texts:[],values:[]};for(let n=0;n<o.length;n++){const a=o[n],r=Tt(e,a),s=$t(e,a);l.texts.push(r),l.values.push(s??"")}return l}function fa(e,o,l,n,a=[]){const r=l[n];for(let s=0;s<o.length;s++)if(Tt(e,o[s])===r){const c=$t(e,o[s])??"",d={[e.textKey]:r,[e.valueKey]:c};a.push(d);const m=da(e,o[s]);Array.isArray(m)&&fa(e,m,l,n+1,a);return}}function ma(e,o,l,n,a=[]){const r=l[n];for(let s=0;s<o.length;s++)if($t(e,o[s])===r){const c=Tt(e,o[s])??"",d={[e.textKey]:c,[e.valueKey]:r};a.push(d);const m=da(e,o[s]);Array.isArray(m)&&ma(e,m,l,n+1,a);return}}function Do(e,o,l){if(o===l)return!0;if(o.length!==l.length)return!1;for(let n=0;n<o.length;n++){const a=Tt(e,o[n]),r=Tt(e,l[n]);if(a!==r)return!1;const s=$t(e,o[n]),i=$t(e,l[n]);if(s!==i)return!1}return!0}let bu=class{proxy;constructor(o){this.proxy=o}async load(o,l){const n="cascader";if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Mt(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(De(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Su(){const e=t.getCurrentInstance();return new bu(e.proxy)}function Cu(e,o,l,n,a,r,s=!1){return{props:{...de,...fe,modelValue:{type:[Array,String]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}},emits:["update:modelValue","change","pathChange","blur","focus","clear"],setup(i,c){const d=Ne(t.computed(()=>i.disabled)),m=Ie(t.computed(()=>i.readonly)),{emitEvent:f}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(o),y=h(i,["placeholder"]),k=t.ref(!1),v=Su(),g=t.ref([]);t.watch([()=>i.source,()=>i.params],async([N,D])=>{N&&(g.value=await v.load(N,D))},{immediate:!0});const u=t.ref([]),p=t.computed(()=>Array.isArray(u.value)?u.value.join(" "):u.value),b=t.ref([]),S=t.ref([]);t.watch([()=>i.modelValue],async([N])=>{if(i.lazy===!0){S.value.length==0&&(u.value=Array.isArray(N)?N:[],b.value=Array.isArray(N)?N:[]);return}if(i.valueType==="item"){let D=N;if(!Do(i,D,S.value)){S.value=D;let P=Rt(i,D);u.value=P.texts,b.value=P.values}}else if(i.valueType==="text"){let D=N,P=[];if(fa(i,g.value,D,0,P),!Do(i,P,S.value)){S.value=P;let F=Rt(i,P);D.value=F.texts,b.value=F.values}}else{let D=[];if(ma(i,g.value,N,0,D),!Do(i,D,S.value)){S.value=D;let P=Rt(i,D);u.value=P.texts,b.value=P.values}}},{immediate:!0});const B="fox-input-item",E=t.computed(()=>({[B]:!0,[`${B}__disabled`]:d.value})),I=Ee(t.computed(()=>i.textAlign),"textAlign"),V=t.computed(()=>({textAlign:I.value??"right"})),C=t.ref(!1),w=()=>{d.value===!0||m.value===!0||(C.value=!0)},q=N=>{C.value=N},L=(N,D)=>{let P=D.map(Q=>{if(Q==null)return Q;let ee={...Q};return Reflect.deleteProperty(ee,"text"),ee[i.textKey]=Q.text??"",Reflect.deleteProperty(ee,"value"),ee[i.valueKey]=Q.value??"",ee});S.value=P;let F=Rt(i,P);u.value=F.texts,b.value=F.values,i.valueType==="text"?(f("change",u.value,P),f("update:modelValue",u.value)):i.valueType==="item"?(f("change",P,P),f("update:modelValue",P)):(f("change",b.value,P),f("update:modelValue",b.value))},M=N=>{let D=N.map(P=>{if(P==null)return P;let F={...P};return Reflect.deleteProperty(F,"text"),F[i.textKey]=P.text??"",Reflect.deleteProperty(F,"value"),F[i.valueKey]=P.value??"",F});f("pathChange",D)},A=N=>{k.value=!0,f("focus",b.value,N)},T=N=>{setTimeout(()=>{k.value=!1},0),f("blur",b.value,N)},z=t.computed(()=>({[`${B}__append`]:!0})),$=t.computed(()=>pe(i.unit)>0),x=t.computed(()=>pe(i.unit)>0&&!k.value),H=t.computed(()=>({hidden:!x.value})),j=N=>{S.value=[],u.value=[],b.value=[],f("update:modelValue",[],N),f("change",[],N),f("clear",[])},Y=t.computed(()=>i.clearable&&!d.value&&!m.value),R=t.computed(()=>{let N=b.value&&b.value.length>0;return i.clearable&&N&&k.value}),O=N=>{R.value?j(N):w()},X=t.computed(()=>R.value&&Y.value?n:a),K=t.computed(()=>({action:!0}));return()=>{const N={class:E.value,style:V.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:w,onFocus:A,onBlur:T};s&&(N.disabled=!0);const D=[],P=t.h("input",N);D.push(P);const F=[],Q={class:["action-icon"]},ee=t.h(X.value,Q),Z={class:K.value,onClick:O},J=t.h("view",Z,{default:()=>[ee]});if(F.push(J),$.value){const $e=t.h("view",{class:H.value},[i.unit]);F.push($e)}const ne={class:z.value},oe=t.h("view",ne,{default:()=>F});D.push(oe);const re={default:()=>D};if(c.slots.default){const $e=c.slots.default();re.label=()=>$e}if(c.slots.prepend){const $e=c.slots.prepend();re.prepend=()=>$e}if(c.slots.append){const $e=c.slots.append();re.append=()=>$e}let te={};te.visible=C.value,te["onUpdate:visible"]=q,te.modelValue=b.value,te.onChange=L,te.onPathChange=M,te.options=g.value,te.title=i.title,te.lazy=i.lazy,te.lazyLoad=i.lazyLoad,te.valueKey=i.valueKey,te.textKey=i.textKey,te.childrenKey=i.childrenKey,te.convertConfig=i.convertConfig;const be=t.h(r,te);re.hide=()=>[be];const he=ke(i,fe,de);return t.h(l,he,re)}}}}const{componentName:wu,create:Nu,scope:Bu}=U("cascader-item"),pa=Nu(Cu(wu,Bu,Ve,G.CloseLittle,G.ArrowRight,pn,!1));var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ha={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){var l=1e3,n=6e4,a=36e5,r="millisecond",s="second",i="minute",c="hour",d="day",m="week",f="month",h="quarter",y="year",k="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|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,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},b=function(M,A,T){var z=String(M);return!z||z.length>=A?M:""+Array(A+1-z.length).join(T)+M},S={s:b,z:function(M){var A=-M.utcOffset(),T=Math.abs(A),z=Math.floor(T/60),$=T%60;return(A<=0?"+":"-")+b(z,2,"0")+":"+b($,2,"0")},m:function M(A,T){if(A.date()<T.date())return-M(T,A);var z=12*(T.year()-A.year())+(T.month()-A.month()),$=A.clone().add(z,f),x=T-$<0,H=A.clone().add(z+(x?-1:1),f);return+(-(z+(T-$)/(x?$-H:H-$))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:f,y,w:m,d,D:k,h:c,m:i,s,ms:r,Q:h}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},B="en",E={};E[B]=p;var I=function(M){return M instanceof q},V=function M(A,T,z){var $;if(!A)return B;if(typeof A=="string"){var x=A.toLowerCase();E[x]&&($=x),T&&(E[x]=T,$=x);var H=A.split("-");if(!$&&H.length>1)return M(H[0])}else{var j=A.name;E[j]=A,$=j}return!z&&$&&(B=$),$||!z&&B},C=function(M,A){if(I(M))return M.clone();var T=typeof A=="object"?A:{};return T.date=M,T.args=arguments,new q(T)},w=S;w.l=V,w.i=I,w.w=function(M,A){return C(M,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var q=function(){function M(T){this.$L=V(T.locale,null,!0),this.parse(T)}var A=M.prototype;return A.parse=function(T){this.$d=function(z){var $=z.date,x=z.utc;if($===null)return new Date(NaN);if(w.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var H=$.match(g);if(H){var j=H[2]-1||0,Y=(H[7]||"0").substring(0,3);return x?new Date(Date.UTC(H[1],j,H[3]||1,H[4]||0,H[5]||0,H[6]||0,Y)):new Date(H[1],j,H[3]||1,H[4]||0,H[5]||0,H[6]||0,Y)}}return new Date($)}(T),this.$x=T.x||{},this.init()},A.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},A.$utils=function(){return w},A.isValid=function(){return this.$d.toString()!==v},A.isSame=function(T,z){var $=C(T);return this.startOf(z)<=$&&$<=this.endOf(z)},A.isAfter=function(T,z){return C(T)<this.startOf(z)},A.isBefore=function(T,z){return this.endOf(z)<C(T)},A.$g=function(T,z,$){return w.u(T)?this[z]:this.set($,T)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(T,z){var $=this,x=!!w.u(z)||z,H=w.p(T),j=function(P,F){var Q=w.w($.$u?Date.UTC($.$y,F,P):new Date($.$y,F,P),$);return x?Q:Q.endOf(d)},Y=function(P,F){return w.w($.toDate()[P].apply($.toDate("s"),(x?[0,0,0,0]:[23,59,59,999]).slice(F)),$)},R=this.$W,O=this.$M,X=this.$D,K="set"+(this.$u?"UTC":"");switch(H){case y:return x?j(1,0):j(31,11);case f:return x?j(1,O):j(0,O+1);case m:var N=this.$locale().weekStart||0,D=(R<N?R+7:R)-N;return j(x?X-D:X+(6-D),O);case d:case k:return Y(K+"Hours",0);case c:return Y(K+"Minutes",1);case i:return Y(K+"Seconds",2);case s:return Y(K+"Milliseconds",3);default:return this.clone()}},A.endOf=function(T){return this.startOf(T,!1)},A.$set=function(T,z){var $,x=w.p(T),H="set"+(this.$u?"UTC":""),j=($={},$[d]=H+"Date",$[k]=H+"Date",$[f]=H+"Month",$[y]=H+"FullYear",$[c]=H+"Hours",$[i]=H+"Minutes",$[s]=H+"Seconds",$[r]=H+"Milliseconds",$)[x],Y=x===d?this.$D+(z-this.$W):z;if(x===f||x===y){var R=this.clone().set(k,1);R.$d[j](Y),R.init(),this.$d=R.set(k,Math.min(this.$D,R.daysInMonth())).$d}else j&&this.$d[j](Y);return this.init(),this},A.set=function(T,z){return this.clone().$set(T,z)},A.get=function(T){return this[w.p(T)]()},A.add=function(T,z){var $,x=this;T=Number(T);var H=w.p(z),j=function(O){var X=C(x);return w.w(X.date(X.date()+Math.round(O*T)),x)};if(H===f)return this.set(f,this.$M+T);if(H===y)return this.set(y,this.$y+T);if(H===d)return j(1);if(H===m)return j(7);var Y=($={},$[i]=n,$[c]=a,$[s]=l,$)[H]||1,R=this.$d.getTime()+T*Y;return w.w(R,this)},A.subtract=function(T,z){return this.add(-1*T,z)},A.format=function(T){var z=this,$=this.$locale();if(!this.isValid())return $.invalidDate||v;var x=T||"YYYY-MM-DDTHH:mm:ssZ",H=w.z(this),j=this.$H,Y=this.$m,R=this.$M,O=$.weekdays,X=$.months,K=function(F,Q,ee,Z){return F&&(F[Q]||F(z,x))||ee[Q].slice(0,Z)},N=function(F){return w.s(j%12||12,F,"0")},D=$.meridiem||function(F,Q,ee){var Z=F<12?"AM":"PM";return ee?Z.toLowerCase():Z},P={YY:String(this.$y).slice(-2),YYYY:this.$y,M:R+1,MM:w.s(R+1,2,"0"),MMM:K($.monthsShort,R,X,3),MMMM:K(X,R),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:K($.weekdaysMin,this.$W,O,2),ddd:K($.weekdaysShort,this.$W,O,3),dddd:O[this.$W],H:String(j),HH:w.s(j,2,"0"),h:N(1),hh:N(2),a:D(j,Y,!0),A:D(j,Y,!1),m:String(Y),mm:w.s(Y,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:H};return x.replace(u,function(F,Q){return Q||P[F]||H.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(T,z,$){var x,H=w.p(z),j=C(T),Y=(j.utcOffset()-this.utcOffset())*n,R=this-j,O=w.m(this,j);return O=(x={},x[y]=O/12,x[f]=O,x[h]=O/3,x[m]=(R-Y)/6048e5,x[d]=(R-Y)/864e5,x[c]=R/a,x[i]=R/n,x[s]=R/l,x)[H]||R,$?O:w.a(O)},A.daysInMonth=function(){return this.endOf(f).$D},A.$locale=function(){return E[this.$L]},A.locale=function(T,z){if(!T)return this.$L;var $=this.clone(),x=V(T,z,!0);return x&&($.$L=x),$},A.clone=function(){return w.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},M}(),L=q.prototype;return C.prototype=L,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",d],["$M",f],["$y",y],["$D",k]].forEach(function(M){L[M[1]]=function(A){return this.$g(A,M[0],M[1])}}),C.extend=function(M,A){return M.$i||(M(A,q,C),M.$i=!0),C},C.locale=V,C.isDayjs=I,C.unix=function(M){return C(1e3*M)},C.en=E[B],C.Ls=E,C.p={},C})})(ha);var Vu=ha.exports;const xe=je(Vu);var ga={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){var l={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(g){this[v]=+g}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var u=g.match(/([+-]|\d\d)/g),p=60*u[1]+(+u[2]||0);return p===0?0:u[0]==="+"?-p:p}(v)}],f=function(v){var g=i[v];return g&&(g.indexOf?g:g.s.concat(g.f))},h=function(v,g){var u,p=i.meridiem;if(p){for(var b=1;b<=24;b+=1)if(v.indexOf(p(b,0,g))>-1){u=b>12;break}}else u=v===(g?"pm":"PM");return u},y={A:[s,function(v){this.afternoon=h(v,!1)}],a:[s,function(v){this.afternoon=h(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[a,d("day")],Do:[s,function(v){var g=i.ordinal,u=v.match(/\d+/);if(this.day=u[0],g)for(var p=1;p<=31;p+=1)g(p).replace(/\[|\]/g,"")===v&&(this.day=p)}],M:[r,d("month")],MM:[a,d("month")],MMM:[s,function(v){var g=f("months"),u=(f("monthsShort")||g.map(function(p){return p.slice(0,3)})).indexOf(v)+1;if(u<1)throw new Error;this.month=u%12||u}],MMMM:[s,function(v){var g=f("months").indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(v){this.year=c(v)}],YYYY:[/\d{4}/,d("year")],Z:m,ZZ:m};function k(v){var g,u;g=v,u=i&&i.formats;for(var p=(v=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,w,q){var L=q&&q.toUpperCase();return w||u[q]||l[q]||u[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(M,A,T){return A||T.slice(1)})})).match(n),b=p.length,S=0;S<b;S+=1){var B=p[S],E=y[B],I=E&&E[0],V=E&&E[1];p[S]=V?{regex:I,parser:V}:B.replace(/^\[|\]$/g,"")}return function(C){for(var w={},q=0,L=0;q<b;q+=1){var M=p[q];if(typeof M=="string")L+=M.length;else{var A=M.regex,T=M.parser,z=C.slice(L),$=A.exec(z)[0];T.call(w,$),C=C.replace($,"")}}return function(x){var H=x.afternoon;if(H!==void 0){var j=x.hours;H?j<12&&(x.hours+=12):j===12&&(x.hours=0),delete x.afternoon}}(w),w}}return function(v,g,u){u.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(c=v.parseTwoDigitYear);var p=g.prototype,b=p.parse;p.parse=function(S){var B=S.date,E=S.utc,I=S.args;this.$u=E;var V=I[1];if(typeof V=="string"){var C=I[2]===!0,w=I[3]===!0,q=C||w,L=I[2];w&&(L=I[2]),i=this.$locale(),!C&&L&&(i=u.Ls[L]),this.$d=function(z,$,x){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*z);var H=k($)(z),j=H.year,Y=H.month,R=H.day,O=H.hours,X=H.minutes,K=H.seconds,N=H.milliseconds,D=H.zone,P=new Date,F=R||(j||Y?1:P.getDate()),Q=j||P.getFullYear(),ee=0;j&&!Y||(ee=Y>0?Y-1:P.getMonth());var Z=O||0,J=X||0,ne=K||0,oe=N||0;return D?new Date(Date.UTC(Q,ee,F,Z,J,ne,oe+60*D.offset*1e3)):x?new Date(Date.UTC(Q,ee,F,Z,J,ne,oe)):new Date(Q,ee,F,Z,J,ne,oe)}catch{return new Date("")}}(B,V,E),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),q&&B!=this.format(V)&&(this.$d=new Date("")),i={}}else if(V instanceof Array)for(var M=V.length,A=1;A<=M;A+=1){I[1]=V[A-1];var T=u.apply(this,I);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}A===M&&(this.$d=new Date(""))}else b.call(this,S)}}})})(ga);var Au=ga.exports;const Eu=je(Au);var ya={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n,a){var r=n.prototype,s=r.format;a.en.ordinal=function(i){var c=["th","st","nd","rd"],d=i%100;return"["+i+(c[(d-20)%10]||c[d]||c[0])+"]"},r.format=function(i){var c=this,d=this.$locale();if(!this.isValid())return s.bind(this)(i);var m=this.$utils(),f=(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 d.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return d.ordinal(c.week(),"W");case"w":case"ww":return m.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return m.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return m.s(String(c.$H===0?24:c.$H),h==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return h}});return s.bind(this)(f)}}})})(ya);var Tu=ya.exports;const $u=je(Tu);var va={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n,a){var r=n.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},i=function(f,h,y,k,v){var g=f.name?f:f.$locale(),u=s(g[h]),p=s(g[y]),b=u||p.map(function(B){return B.slice(0,k)});if(!v)return b;var S=g.weekStart;return b.map(function(B,E){return b[(E+(S||0))%7]})},c=function(){return a.Ls[a.locale()]},d=function(f,h){return f.formats[h]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,v,g){return v||g.slice(1)})}(f.formats[h.toUpperCase()])},m=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):i(f,"months")},monthsShort:function(h){return h?h.format("MMM"):i(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return m.bind(this)()},a.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(h){return d(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return i(c(),"months")},a.monthsShort=function(){return i(c(),"monthsShort","months",3)},a.weekdays=function(f){return i(c(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return i(c(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return i(c(),"weekdaysMin","weekdays",2,f)}}})})(va);var Du=va.exports;const Iu=je(Du);var ka={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){var l="week",n="year";return function(a,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(n).add(1,n).date(d),f=s(this).endOf(l);if(m.isBefore(f))return 1}var h=s(this).startOf(n).date(d).startOf(l).subtract(1,"millisecond"),y=this.diff(h,l,!0);return y<0?s(this).startOf("week").week():Math.ceil(y)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(ka);var qu=ka.exports;const Mu=je(qu);var ba={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n){n.prototype.weekYear=function(){var a=this.month(),r=this.week(),s=this.year();return r===1&&a===11?s+1:a===0&&r>=52?s-1:s}}})})(ba);var zu=ba.exports;const xu=je(zu);var Sa={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n,a){n.prototype.dayOfYear=function(r){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(Sa);var Pu=Sa.exports;const Lu=je(Pu);var Ca={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n){n.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(Ca);var Ru=Ca.exports;const Ou=je(Ru);var wa={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n){n.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(wa);var Fu=wa.exports;const Uu=je(Fu);xe.extend(Iu);xe.extend($u);xe.extend(Eu);xe.extend(Mu);xe.extend(xu);xe.extend(Lu);xe.extend(Ou);xe.extend(Uu);const _={format(e,o){return xe(e).format(o)},parser(e,o){return xe(e,o).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,o,l){const a=new Date(e+"/"+o+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,o){let n=new Date(e+"/"+o+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,o){return/^0/.test(o)&&(o=o.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][o]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,o){o=o||"-";const l=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[l,n,a].join(o)},getDay(e){e=e||0;let o=new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),this.date2Str(o)},compareDate(e,o){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let n;return typeof o=="string"?n=new Date(o.replace("-","/").replace("-","/")):n=o,!(l>=n)},isEqual(e,o){if(e===o)return!0;if(!e||!o)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let n;return typeof o=="string"?n=new Date(o).getTime():n=o,l==n},getMonthWeek:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l));let r=a.getDay(),s=a.getDate(),i=6-r;return n!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l)),r=new Date(Number(e),0,1),s=Math.round((a.valueOf()-r.valueOf())/864e5);return Math.ceil((s+(r.getDay()+1-1))/7)},getWeekDate:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l)),r=a.getTime();let s=a.getDay();if(n===0){const c=r-s*864e5,d=r+(6-s)*864e5,m=this.date2Str(new Date(c)),f=this.date2Str(new Date(d));return[m,f]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,d=r+(7-s)*i,m=this.date2Str(new Date(c)),f=this.date2Str(new Date(d));return[m,f]}},formatResultDate:function(e){let o=[...e.split("-")];return o[2]=_.getNumTwoBit(Number(o[2])),o[3]=`${o[0]}-${o[1]}-${o[2]}`,o[4]=_.getWhatDay(+o[0],+o[1],+o[2]),o},inScope4Day(e,o,l){const n=new Date(new Date(o).setDate(o.getDate()+l)),a=e.getTime(),r=n.getTime(),s=o.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s},inScope4Month(e,o,l){const n=new Date(new Date(o).setMonth(o.getMonth()+l)),a=e.getTime(),r=n.getTime(),s=o.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s}},Zn=new Date().getFullYear(),hn={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss",["month-day"]:"MM-DD",datehour:"YYYY-MM-DD HH"},oo=(e,o,l)=>{let n;if(Oe(o)?n=o:typeof o=="string"&&pe(o)>0?n=_.parser(o,l):n=new Date,n.toString()==="Invalid Date")return null;let a=Math.max(n.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Zo=(e,o,l)=>{Oe(o)||(o=e.minDate);let n=Math.max(o.getTime(),e.minDate.getTime());return n=Math.min(n,e.maxDate.getTime()),_.format(new Date(n),l)};let Jo={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(Zn-10,0,1),validator:Oe},maxDate:{type:Date,default:()=>new Date(Zn+10,11,31),validator:Oe},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:Ku,scope:Hu}=U("date-picker"),ju=Ku({components:{[Et.name]:Et},props:{...Jo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(Hu),n={day:l("day"),year:l("year"),month:l("month"),hour:l("hour"),minute:l("minute"),seconds:l("seconds")},a=t.ref(!1);t.watch(()=>e.visible,u=>{a.value=u});function r(u,p){return new Date(u,p,0).getDate()}const s=(u,p)=>{const b=e[`${u}Date`],S=b.getFullYear();let B=1,E=1,I=0,V=0;u==="max"&&(B=12,E=r(p.getFullYear(),p.getMonth()+1),I=23,V=59);const C=V;return p.getFullYear()===S&&(B=b.getMonth()+1,p.getMonth()+1===B&&(E=b.getDate(),p.getDate()===E&&(I=b.getHours(),p.getHours()===I&&(V=b.getMinutes())))),{[`${u}Year`]:S,[`${u}Month`]:B,[`${u}Date`]:E,[`${u}Hour`]:I,[`${u}Minute`]:V,[`${u}Seconds`]:C}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:u,maxDate:p,maxMonth:b,maxHour:S,maxMinute:B,maxSeconds:E}=s("max",h.value),{minYear:I,minDate:V,minMonth:C,minHour:w,minMinute:q,minSeconds:L}=s("min",h.value);let M=[{type:"year",range:[I,u]},{type:"month",range:[C,b]},{type:"day",range:[V,p]},{type:"hour",range:[w,S]},{type:"minute",range:[q,B]},{type:"seconds",range:[L,E]}];switch(e.type){case"date":M=M.slice(0,3);break;case"datetime":M=M.slice(0,5);break;case"time":M=M.slice(3,6);break;case"month-day":M=M.slice(1,3);break;case"datehour":M=M.slice(0,4);break}return M}),c=(u,p,b)=>{if(!(p>u))return null;const S=[];for(;u<=p;)e.isShowChinese?S.push({text:u+n[b],value:u}):S.push({text:`${u}`,value:u}),b==="minute"?u+=e.minuteStep:u++;return S},d=t.computed(()=>{let u=[];return i.value.forEach(p=>{let b=c(p.range[0],p.range[1],p.type);b&&u.push(b)}),u}),m=(u,p)=>u==="year"?p.getFullYear():u==="month"?p.getMonth()+1:u==="day"?p.getDate():u==="hour"?p.getHours():u==="minute"?p.getMinutes():u==="seconds"?p.getSeconds():0,f=t.ref(),h=t.ref(null);t.watchEffect(()=>{let u,p=e.modelValue;if(typeof p=="string"?p.length==0?u=new Date:e.valueFormat?u=oo(e,e.modelValue,e.valueFormat):u=oo(e,p,hn[e.type]):Oe(p)?u=p:u=new Date,!!u&&(!h.value||u.getTime()!==h.value.getTime())){h.value=u;let b=[];i.value.forEach(S=>{let B=m(S.type,u);b.push(B)}),f.value=b}});const y=u=>{if(e.type==="date"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])))}else if(e.type==="datetime"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3],p[4])}else if(e.type==="datehour"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3])}else if(e.type==="time"){let p=u,b=h.value??new Date,S=new Date(b.getFullYear(),b.getMonth(),b.getDate(),p[0],p[1],p[2]);h.value=S}else if(e.type==="month-day"){let p=u,b=h.value??new Date,S=new Date(b.getFullYear(),p[0]-1,p[1]);h.value=S}f.value=u};return{columns:d,dateIndexs:f,show:a,onClose:()=>{a.value=!1,o("update:visible",!1),o("update:close",!1)},onConfirm:u=>{y(u),a.value=!1;let p=h.value??new Date;if(e.valueFormat){let b=Zo(e,p,e.valueFormat);o("update:modelValue",b)}else o("update:modelValue",p);o("update:visible",!1),o("confirm",u)},onClear:()=>{o("clear")}}}});function Wu(e,o,l,n,a,r){const s=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const gn=W(ju,[["render",Wu]]);function Yu(e){let o=e.format;if(!o){let l=e.type??"date";o=hn[l]}return o}function Xu(e,o,l,n,a,r,s=!1){return{props:{...de,...fe,...Jo,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const d=Ne(t.computed(()=>i.disabled)),m=Ie(t.computed(()=>i.readonly)),{emitEvent:f}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(o),y=h(i,["placeholder"]),k=t.ref(!1),g=ze(i,"modelValue",O=>O==null?null:typeof O=="string"?O.length==0?null:i.valueFormat?oo(i,O,i.valueFormat)??O:oo(i,O,hn[i.type])??O:Oe(O)?O:null),u=t.computed(()=>{if(!g.value)return"";const O=Yu(i);return Zo(i,g.value,O)}),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ee(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>({textAlign:S.value??"right"})),E=t.ref(!1),I=()=>{E.value=!0},V=()=>{E.value=!1};c.expose({showPicker:I,hidePicker:V});const C=O=>{E.value=O},w=O=>{if(g.value=O,i.valueFormat){let X=Zo(i,O,i.valueFormat);f("update:modelValue",X,{}),f("change",X,{})}else f("update:modelValue",O,{}),f("change",O,{})},q=O=>{let K=O.target.value;k.value=!0,f("focus",K,O)},L=O=>{setTimeout(()=>{k.value=!1},0);let K=O.target.value;i.maxLength&&K.length>Number(i.maxLength)&&(K=K.slice(0,Number(i.maxLength))),f("blur",K,O)},M=t.computed(()=>({[`${p}__append`]:!0})),A=t.computed(()=>pe(i.unit)>0),T=t.computed(()=>pe(i.unit)>0&&!k.value),z=t.computed(()=>({hidden:!T.value})),$=O=>{g.value="",f("update:modelValue","",O),f("change","",O),f("clear",""),V()},x=t.computed(()=>i.clearable&&!d.value&&!m.value),H=t.computed(()=>{let O=pe(g.value)>0;return i.clearable&&O&&k.value}),j=O=>{H.value?$(O):I()},Y=t.computed(()=>H.value&&x.value?n:a),R=t.computed(()=>({action:!0}));return()=>{const O={class:b.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:I,onFocus:q,onBlur:L};s&&(O.disabled=!0);const X=[],K=t.h("input",O);X.push(K);const N=[],D={class:["action-icon"]},P=t.h(Y.value,D),F={class:R.value,onClick:j},Q=t.h("view",F,{default:()=>[P]});if(N.push(Q),A.value){const he=t.h("view",{class:z.value},[i.unit]);N.push(he)}const ee={class:M.value},Z=t.h("view",ee,{default:()=>N});X.push(Z);const J={default:()=>X};if(c.slots.default){const he=c.slots.default();J.label=()=>he}if(c.slots.prepend){const he=c.slots.prepend();J.prepend=()=>he}if(c.slots.append){const he=c.slots.append();J.append=()=>he}const ne=ke(i,Jo);ne.valueFormat=null,ne.disabled=!1,ne.readonly=d.value||m.value,ne.visible=E.value,ne["onUpdate:visible"]=C,ne.modelValue=g.value,ne["onUpdate:modelValue"]=w,ne.onClear=$;const oe={};if(c.slots.top){const he=c.slots.top();oe.top=()=>he}if(c.slots.bottom){const he=c.slots.bottom();oe.default=()=>he}const re=t.h(r,ne,oe);J.hide=()=>[re];const te=ke(i,fe,de);return t.h(l,te,J)}}}}const{create:Qu,componentName:Gu,scope:Zu}=U("date-item"),Na=Qu(Xu(Gu,Zu,Ve,G.CloseLittle,G.Date,gn,!1)),{create:Ju,scope:_u}=U("calendar-pane"),ed=Ju({props:{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},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:_.getDay(0)},endDate:{type:String,default:_.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:o,slots:l}){const{toLocaleRefs:n,t:a}=ie.useFoxI18n(_u),r=n(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(a("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),d=t.ref(null),m=t.ref(null),f=t.ref(null),h=t.ref(0),y=t.computed(()=>u.monthsData.slice(u.defaultRange[0],u.defaultRange[1])),k=t.computed(()=>l.btn),v=t.computed(()=>l["top-info"]),g=t.computed(()=>l["bottom-info"]),u=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,avgHeight:0,monthsNum:0}),p=N=>N.split("-"),b=N=>_.isEqual(u.currDate[0],N),S=N=>_.isEqual(u.currDate[1],N),B=N=>u.currDate?.length>0?u.currDate?.some(D=>_.isEqual(D,N)):!1,E=(N,D)=>D.curData[0]+"-"+D.curData[1]+"-"+_.getNumTwoBit(+N.day),I=(N,D)=>{const P=E(N,D),{type:F}=e;return N.type=="curr"?_.isEqual(u.currDate,P)||(F=="range"||F=="week")&&(b(P)||S(P))||F=="multiple"&&B(P)?`${u.dayPrefix}--active`:u.propStartDate&&_.compareDate(P,u.propStartDate)||u.propEndDate&&_.compareDate(u.propEndDate,P)?`${u.dayPrefix}--disabled`:(F=="range"||F=="week")&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&_.compareDate(u.currDate[0],P)&&_.compareDate(P,u.currDate[1])?`${u.dayPrefix}--choose`:null:`${u.dayPrefix}--disabled`},V=()=>{const{type:N}=e;if(N=="range"&&u.chooseData.length==2||N!="range"){let D=u.chooseData.slice(0);N=="week"&&(D={weekDate:[w(u.chooseData[0]),w(u.chooseData[1])]}),o("choose",D),e.poppable&&o("update")}},C=(N,D,P=!1)=>{if(I(N,D)!=`${u.dayPrefix}--disabled`){const{type:F}=e;let[Q,ee]=D.curData,Z=[...D.curData];if(Z[2]=_.getNumTwoBit(Number(N.day)),Z[3]=`${Z[0]}-${Z[1]}-${Z[2]}`,Z[4]=_.getWhatDay(+Z[0],+Z[1],+Z[2]),F=="multiple")if(u.currDate?.length>0){let J;u.currDate?.forEach((ne,oe)=>{ne==Z[3]&&(J=oe)}),P?u.chooseData.push([...Z]):J!==void 0?(u.currDate.splice(J,1),u.chooseData.splice(J,1)):(u.currDate.push(Z[3]),u.chooseData.push([...Z]))}else u.currDate=[Z[3]],u.chooseData=[[...Z]];else if(F=="range"){let J=Object.values(u.currDate).length;J==2||J==0?u.currDate=[Z[3]]:_.compareDate(u.currDate[0],Z[3])?Array.isArray(u.currDate)&&u.currDate.push(Z[3]):Array.isArray(u.currDate)&&u.currDate.unshift(Z[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...Z]]:_.compareDate(u.chooseData[0][3],Z[3])?u.chooseData=[...u.chooseData,[...Z]]:u.chooseData=[[...Z],...u.chooseData]}else if(F=="week"){let J=_.getWeekDate(Q,ee,N.day,e.firstDayOfWeek);u.propStartDate&&_.compareDate(J[0],u.propStartDate)&&J.splice(0,1,u.propStartDate),u.propEndDate&&_.compareDate(u.propEndDate,J[1])&&J.splice(1,1,u.propEndDate),u.currDate=J,u.chooseData=[_.formatResultDate(J[0]),_.formatResultDate(J[1])]}else u.currDate=Z[3],u.chooseData=[...Z];if(!P){let J=u.chooseData;F=="week"&&(J={weekDate:[w(u.chooseData[0]),w(u.chooseData[1])]}),o("select",J),(e.isAutoBackFill||!e.poppable)&&V()}}},w=N=>{let[D,P,F]=N;return{date:N,monthWeekNum:_.getMonthWeek(D,P,F,e.firstDayOfWeek),yearWeekNum:_.getYearWeek(D,P,F,e.firstDayOfWeek)}},q=N=>{const D=N=="prev"?u.monthsData[0]:u.monthsData[u.monthsData.length-1];let P=parseInt(D.curData[0]),F=parseInt(D.curData[1].toString().replace(/^0/,""));switch(N){case"prev":F==1&&(P-=1),F=F==1?12:--F;break;case"next":F==12&&(P+=1),F=F==12?1:++F;break}return[P+"",_.getNumTwoBit(F),_.getMonthDays(String(P),String(F))+""]},L=(N,D,P)=>{let{year:F,month:Q}=P;return D=="prev"&&N>=7&&(N-=7),Array.from(Array(N),(ee,Z)=>({day:String(Z+1),type:D,year:F,month:Q}))},M=(N,D,P,F)=>{N=N-e.firstDayOfWeek;let{year:Q,month:ee}=P;return D=="prev"&&N>=7&&(N-=7),Array.from(Array(F),(J,ne)=>({day:String(ne+1),type:D,year:Q,month:ee})).slice(F-N)},A=(N,D)=>{const P=_.getMonthPreDay(+N[0],+N[1]);let F=Number(N[1])-1,Q=Number(N[0]);F<=0&&(F=12,Q+=1);const ee=_.getMonthDays(String(N[0]),String(N[1])),Z=_.getMonthDays(Q+"",F+""),J={year:N[0],month:N[1]},ne={curData:N,title:a("monthTitle",{year:J.year,month:J.month}),monthData:[...M(P,"prev",{month:String(F),year:String(Q)},Z),...L(ee,"curr",J)],cssHeight:0,cssScrollHeight:0};ne.cssHeight=39+(ne.monthData.length>35?384:320);let oe=0;u.monthsData.length>0&&(oe=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),ne.cssScrollHeight=oe,D=="next"?(!u.endData||!_.compareDate(`${u.endData[0]}-${u.endData[1]}-${_.getMonthDays(u.endData[0],u.endData[1])}`,`${N[0]}-${N[1]}-${N[2]}`))&&u.monthsData.push(ne):!u.startData||!_.compareDate(`${N[0]}-${N[1]}-${N[2]}`,`${u.startData[0]}-${u.startData[1]}-01`)?u.monthsData.unshift(ne):u.unLoadPrev=!0},T=()=>{let N=e.startDate?e.startDate:_.getDay(0),D=e.endDate?e.endDate:_.getDay(365);u.propStartDate=N,u.propEndDate=D,u.startData=p(N),u.endData=p(D),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(u.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const P={year:Number(u.startData[0]),month:Number(u.startData[1])},F={year:Number(u.endData[0]),month:Number(u.endData[1])};let Q=F.month-P.month;F.year-P.year>0&&(Q=Q+12*(F.year-P.year)),Q<=0&&(Q=1),A(u.startData,"next");let ee=1;do A(q("next"),"next");while(ee++<Q);if(u.monthsNum=Q,e.type=="range"&&Array.isArray(u.currDate))u.currDate.length>0&&(N&&_.compareDate(u.currDate[0],N)&&u.currDate.splice(0,1,N),D&&_.compareDate(D,u.currDate[1])&&u.currDate.splice(1,1,D),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let re=[],te={};u.currDate.forEach(be=>{N&&!_.compareDate(be,N)&&D&&!_.compareDate(D,be)&&(Object.hasOwnProperty.call(te,be)||(re.push(be),te[be]=be))}),u.currDate=[...re],u.defaultData=[...p(re[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[re,te,be]=p(u.currDate[0]),he=_.getWeekDate(re,te,be,e.firstDayOfWeek);u.currDate=he,N&&_.compareDate(u.currDate[0],N)&&u.currDate.splice(0,1,N),D&&_.compareDate(D,u.currDate[1])&&u.currDate.splice(1,1,D),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]}}else u.currDate&&(N&&_.compareDate(u.currDate,N)?u.currDate=N:D&&!_.compareDate(u.currDate,D)&&(u.currDate=D),u.defaultData=[...p(u.currDate)]);let Z=0,J=0;u.defaultData.length>0&&u.monthsData.forEach((re,te)=>{re.title==a("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(Z=te),(e.type=="range"||e.type=="week")&&re.title==a("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(J=te)}),x(Q,Z),u.currentIndex=Z,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(C({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),C({day:u.defaultData[5],type:"curr"},u.monthsData[J],!0)):e.type=="week"?C({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(re=>{let te=p(re),be=u.currentIndex;u.monthsData.forEach((he,No)=>{he.title==a("monthTitle",{year:te[0],month:te[1]})&&(be=No)}),C({day:te[2],type:"curr"},u.monthsData[be],!0)}):C({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let ne=u.monthsData[u.monthsData.length-1],oe=ne.cssHeight+ne.cssScrollHeight;Ye(()=>{c?.value&&d?.value&&f?.value&&(h.value=c.value.clientHeight,d.value.style.height=`${oe}px`,c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(oe/(Q+1))};Te({scrollToDate:N=>{_.compareDate(N,u.propStartDate)?N=u.propStartDate:_.compareDate(N,u.propEndDate)||(N=u.propEndDate);let D=p(N);u.monthsData.forEach((P,F)=>{if(P.title==a("monthTitle",{year:D[0],month:D[1]})&&c.value){let Q=u.monthsData[F].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let ee=0,Z=setInterval(()=>{if(ee++,c.value){let J=Q/10;c.value.scrollTop=c.value.scrollTop+J}ee>=10&&(clearInterval(Z),c.value&&(c.value.scrollTop=u.monthsData[F].cssScrollHeight))},40)}else c.value.scrollTop=u.monthsData[F].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}});const x=(N,D)=>{N>=3?D>0&&D<N?u.defaultRange=[D-1,D+3]:D==0?u.defaultRange=[D,D+4]:D==N&&(u.defaultRange=[D-2,D+2]):u.defaultRange=[0,N+2];let P=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=P},H=(N,D)=>(e.type=="range"||e.type=="week")&&N.type=="curr"&&I(N,D)=="fox-calendar__day--active",j=(N,D)=>H(N,D)&&b(E(N,D)),Y=(N,D)=>u.currDate.length>=2&&S(E(N,D))?H(N,D):!1,R=()=>{if(u.currDate.length>=2)return _.isEqual(u.currDate[0],u.currDate[1])},O=N=>{const D=`${N.year}-${N.month}-${Number(N.day)<10?"0"+N.day:N.day}`;return _.isEqual(D,_.date2Str(new Date))},X=N=>{if(u.monthsData.length<=1)return;const D=N.target.scrollTop;let P=Math.floor(D/u.avgHeight);if(P==0)D>=u.monthsData[P+1].cssScrollHeight&&(P+=1);else if(P>0&&P<u.monthsNum-1)D>=u.monthsData[P+1].cssScrollHeight&&(P+=1),D<u.monthsData[P].cssScrollHeight&&(P-=1);else{const F=Math.round(D+h.value);F<u.monthsData[P].cssScrollHeight+u.monthsData[P].cssHeight&&D>u.monthsData[P-1].cssScrollHeight&&(P-=1),P+1<=u.monthsNum&&F>=u.monthsData[P+1].cssScrollHeight+u.monthsData[P+1].cssHeight&&(P+=1),P>=1&&D<u.monthsData[P-1].cssScrollHeight&&(P-=1)}u.currentIndex!==P&&(u.currentIndex=P,x(u.monthsNum,P)),u.yearMonthTitle=u.monthsData[P].title},K=()=>{u.chooseData.splice(0),u.monthsData.splice(0),T()};return T(),t.watch(()=>e.defaultValue,N=>{N&&e.poppable&&K()}),{weeks:i,compConthsData:y,showTopBtn:k,topInfo:v,bottomInfo:g,rangeTip:R,mothsViewScroll:X,getClass:I,isStartTip:j,isEndTip:Y,chooseDay:C,isCurrDay:O,confirm:V,months:c,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:m,viewArea:f}}}),td={class:"fox-calendar__header"},od={key:0,class:"fox-calendar__header-title"},nd={key:1,class:"fox-calendar__header-slot"},ld={key:2,class:"fox-calendar__header-subtitle"},ad={class:"fox-calendar__weekdays",ref:"weeksPanel"},rd={class:"fox-calendar__panel",ref:"monthsPanel"},sd={class:"fox-calendar__month-title"},id={class:"fox-calendar__days"},cd=["onClick"],ud={class:"fox-calendar__day-value"},dd={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},fd={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},md={key:2,class:"fox-calendar__day-tips--curr"},pd={key:4,class:"fox-calendar__day-tip"},hd={key:0,class:"fox-calendar__footer"};function gd(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",td,[e.showTitle?(t.openBlock(),t.createElementBlock("view",od,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",nd,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",ld,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",ad,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:i},t.toDisplayString(s),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:o[0]||(o[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",rd,[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",sd,t.toDisplayString(s.title),1),t.createElementVNode("view",id,[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,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:m=>e.chooseDay(c,s)},[t.createElementVNode("view",ud,[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",dd,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",fd,[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",md,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",pd,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,cd))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",hd,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:o[1]||(o[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const Jn=W(ed,[["render",gd]]),yd=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),_o={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,default:_.getDay(0)},endDate:{type:String,default:_.getDay(365)},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6}},{create:vd}=U("calendar"),kd=vd({components:{[Jn.name]:Jn,[ce.name]:ce},props:{..._o},emits:["choose","close","update:visible","select"],setup(e,{emit:o,slots:l}){const n=t.computed(()=>l.btn),a=t.computed(()=>l["top-info"]),r=t.computed(()=>l.day),s=t.computed(()=>l["bottom-info"]),i=t.ref(null);Te({scrollToDate:v=>{i.value?.scrollToDate(v)},initPosition:()=>{i.value?.initPosition()}});const m=()=>{o("update:visible",!1)},f=()=>{o("close"),o("update:visible",!1)};return{closePopup:()=>{f()},update:m,close:f,select:v=>{o("select",v)},choose:v=>{f(),o("choose",v)},calendarRef:i,showTopBtn:n,topInfo:a,dayInfo:r,bottomInfo:s}}});function bd(e,o,l,n,a,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:{height:"85vh"}}),{default:t.withCtx(()=>[t.createVNode(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const yn=W(kd,[["render",bd]]),Io=(e,o)=>{let l;return Oe(e)?l=e:typeof e=="string"&&pe(e)>0?l=_.parser(e,o):l=new Date,l},rt=(e,o,l)=>(Oe(o)||(o=new Date),_.format(o,l)),st=e=>{let o=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,n=`${e.getDate()}`,a=_.date2Str(e),r=_.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[o,l,n,a,r]};function Sd(e,o,l,n,{CloseIcon:a,MarkIcon:r},s=!1){return{props:{...de,...fe,..._o,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const d=Ne(t.computed(()=>i.disabled)),m=Ie(t.computed(()=>i.readonly)),{emitEvent:f}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(o),y=h(i,["placeholder"]),k=t.ref(!1),v=t.computed(()=>i.type==="range"),g=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),u=()=>{g.startDate!==null&&(g.startDate=null,g.endDate=null,g.startArray=[],g.endArray=[])},p=(K,N="one",D="YYYY-MM-DD")=>{if(yd(K)){u();return}if(v.value&&Array.isArray(K)&&K.length==2){let P,F;typeof K[0]=="string"?(P=Io(K[0],D),F=Io(K[1],D)):(P=K[0],F=K[1]);let Q=st(P),ee=st(F);(g.startDate===null||g.startDate.getTime()!==P.getTime()||g.endDate?.getTime()!==F.getTime())&&(g.startDate=P,g.startArray=Q,g.endDate=F,g.endArray=ee)}else{let P;typeof K=="string"?P=Io(K,D):P=K;let F=st(P);(g.startDate===null||g.startDate.getTime()!==P.getTime())&&(g.startDate=P,g.startArray=F)}};p(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,K=>{p(K,i.type,i.valueFormat)});const b=t.computed(()=>{if(g.startDate===null)return"";if(v.value){let K=rt(i,g.startDate,i.format),N=rt(i,g.endDate,i.format);return`${K} ${i.rangeSeparator} ${N}`}else{let K=rt(i,g.startDate,i.format);return i.showWeek&&(K=`${K} ${g.startArray[4]}`),K}}),S=t.computed(()=>{if(g.startDate===null)return null;if(v.value){let K=_.date2Str(g.startDate),N=_.date2Str(g.endDate??new Date);return[K,N]}else return _.date2Str(g.startDate)}),B="fox-input-item",E=t.computed(()=>({[B]:!0,[`${B}__disabled`]:d.value})),I=Ee(t.computed(()=>i.textAlign),"textAlign"),V=t.computed(()=>({textAlign:I.value??"right"})),C=t.ref(!1),w=()=>{m.value||d.value||(C.value=!0)},q=K=>{C.value=K},L=K=>{if(K){if(v.value&&Array.isArray(K)){let N=K[0],D=ue(N[0]),P=ue(N[1]),F=ue(N[2]),Q=new Date(D,P-1,F),ee=K[1];D=ue(ee[0]),P=ue(ee[1]),F=ue(ee[2]);let Z=new Date(D,P-1,F);if(g.startDate=Q,g.startArray=st(Q),g.endDate=Z,g.endArray=st(Z),i.valueFormat){let J=rt(i,Q,i.valueFormat),ne=rt(i,Z,i.valueFormat);f("update:modelValue",[J,ne],{})}else f("update:modelValue",[Q,Z],{})}else{let N=K,D=ue(N[0]),P=ue(N[1]),F=ue(N[2]),Q=new Date(D,P-1,F);if(g.startDate=Q,g.startArray=st(Q),i.valueFormat){let ee=rt(i,Q,i.valueFormat);f("update:modelValue",ee,{})}else f("update:modelValue",Q,{})}f("change",K,{})}},M=K=>{let D=K.target.value;k.value=!0,f("focus",D,K)},A=K=>{setTimeout(()=>{k.value=!1},0);let D=K.target.value;i.maxLength&&D.length>Number(i.maxLength)&&(D=D.slice(0,Number(i.maxLength))),f("blur",D,K)},T=t.computed(()=>({[`${B}__append`]:!0})),z=t.computed(()=>pe(i.unit)>0),$=t.computed(()=>pe(i.unit)>0&&!k.value),x=t.computed(()=>({hidden:!$.value})),H=K=>{u(),f("update:modelValue",null,K),f("change","",K),f("clear","")},j=t.computed(()=>i.clearable&&!d.value&&!m.value),Y=t.computed(()=>{let K=pe(b.value)>0;return i.clearable&&K&&k.value}),R=K=>{Y.value?H(K):w()},O=t.computed(()=>Y.value&&j.value?a:r),X=t.computed(()=>({action:!0}));return()=>{const K={class:E.value,style:V.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:w,onFocus:M,onBlur:A};s&&(K.disabled=!0);const N=[],D=t.h("input",K);N.push(D);const P=[],F={class:["action-icon"]},Q=t.h(O.value,F),ee={class:X.value,onClick:R},Z=t.h("view",ee,{default:()=>[Q]});if(P.push(Z),z.value){const $e=t.h("view",{class:x.value},[i.unit]);P.push($e)}const J={class:T.value},ne=t.h("view",J,{default:()=>P});N.push(ne);const oe={default:()=>N};c.slots.default&&(oe.label=c.slots.default),c.slots.prepend&&(oe.prepend=c.slots.prepend),c.slots.append&&(oe.append=c.slots.append);const re=ke(i,_o);re.visible=C.value,re["onUpdate:visible"]=q,re["default-value"]=S.value,re.onChoose=L;const te={};if(c.slots.btn){const $e=c.slots.btn();te.btn=()=>$e}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 be=t.h(l,re,te);oe.hide=()=>[be];const he=ke(i,fe,de);return t.h(n,he,oe)}}}}const{componentName:Cd,create:wd,scope:Nd}=U("calendar-item"),Ba=wd(Sd(Cd,Nd,yn,Ve,{CloseIcon:G.CloseLittle,MarkIcon:G.Date},!1)),Bd={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 Vd(e,{CheckNormal:o,Checked:l}){return{props:{...Bd},setup(n,{emit:a,slots:r}){let s=t.inject("parent",null);const i=t.computed(()=>s.label.value===n.label),c=t.computed(()=>n.disabled?"fox-radio__icon--disable":i.value?"fox-radio__icon":"fox-radio__icon--unchecked"),d=t.computed(()=>s.position),m=()=>{if(i.value){if(r.checkedIcon)return r.checkedIcon();{const v=se(n.iconSize),g=n.icon??l;return t.h(g,{width:v,height:v,class:c.value})}}else{if(r.icon)return r.icon();{const v=se(n.iconSize),g=n.icon??o;return t.h(g,{width:v,height:v,class:c.value})}}},f=()=>t.h("view",{class:`${e}__label ${n.disabled?`${e}__label--disabled`:""}`},r.default?.()),h=()=>t.h("view",{class:`${e}__button ${i.value&&`${e}__button--active`} ${n.disabled?`${e}__button--disabled`:""}`},r.default?.()),y=()=>{i.value||n.disabled||n.readonly||s.updateValue(n.label)},k=d.value==="left";return()=>t.h("view",{class:`${e} ${e}--${n.shape} ${k?`${e}--reverse`:""}`,onClick:y},[n.shape=="button"?h():k?[f(),m()]:[m(),f()]])}}}const{componentName:Ad,create:Ed}=U("radio"),vn=Ed(Vd(Ad,{CheckNormal:G.CheckNormal,Checked:G.CheckChecked})),{componentName:_n,create:Td}=U("radio-group"),kn=Td({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"}},emits:["change","update:modelValue"],setup(e,{emit:o,slots:l}){const n=a=>o("update:modelValue",a);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:n}),t.watch(()=>e.modelValue,a=>o("change",a)),()=>t.h("view",{class:`${_n} ${_n}--${e.direction}`},l.default?.())}});function el(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(Kt(e,r)===l)return a}else if(n==="item"){if(Fe(l,r))return a}else if(Ct(e,r)===l)return a}return-1}function Kt(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function Ct(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function $d(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function Dd(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let Id=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);let a=Mt(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(De(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function qd(){const e=t.getCurrentInstance();return new Id(e.proxy)}const tl={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},Md={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"}};function zd(e,o,l,n,a){return{props:{...de,...fe,...tl,...Md,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Boolean,Object],default:""}},emits:["change","update:modelValue"],setup(r,s){const i=Ie(t.computed(()=>r.readonly)),c=Ne(t.computed(()=>r.disabled)),{emitEvent:d}=Be({componentName:e,get validate(){return!c.value||!i.value}},r.prop??s.attrs.name),m=qd(),f=t.ref([]);t.watch([()=>r.source,()=>r.params],async([g,u])=>{g&&(f.value=await m.load("radio",g,u))},{immediate:!0});let h=t.ref(-1);t.watch([()=>r.modelValue,()=>f.value],async([g,u])=>{h.value=el(r,u,g,r.valueType)},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;if(h.value===-1)return null;const g=f.value[h.value];return Ct(r,g)}),k=g=>{let u=null,p=null;if(f.value.length>0){let b=el(r,f.value,g,"value");h.value=b,b>=0&&(p=f.value[b],r.valueType==="text"?u=Kt(r,p):r.valueType==="item"?u=p:u=Ct(r,p))}else u=g;d("update:modelValue",u),d("change",u,p)},v=()=>{let g=null,u=null;if(f.value.length>0&&h.value!==-1){let p=f.value[h.value];r.valueType==="text"?g=Kt(r,p):r.valueType==="item"?g=p:g=Ct(r,p)}d("update:modelValue",g),d("change",g,u)};if(Te({clear(){h.value!==-1&&(h.value=-1,v())}}),r.source){const g=()=>{const u=[],p=ke(r,tl);return f.value.forEach((b,S)=>{const B=Kt(r,b),E=Ct(r,b),I=$d(r,b);let V={...p,label:E,disabled:I};const C=Dd(r,b,S);V={...V,...C},c.value&&(V.disabled=!0),i.value&&(V.readonly=!0);const w={};s.slots.icon&&(w.icon=s.slots.icon),s.slots.checkedIcon&&(w.checkedIcon=s.slots.checkedIcon),w.default=()=>B;let q=t.h(a,V,w);u.push(q)}),u};return()=>{const u=g(),p={class:`${e}`,direction:r.direction,textPosition:r.textPosition,modelValue:y,["onUpdate:modelValue"]:k},b=t.h(n,p,{default:()=>u}),S={default:()=>b};if(s.slots.default){const I=s.slots.default();S.label=()=>I}if(s.slots.prepend){const I=s.slots.prepend();S.prepend=()=>I}if(s.slots.append){const I=s.slots.append();S.append=()=>I}const B=ke(r,fe,de);return t.h(l,B,S)}}else return()=>{const g=s.slots.options?.()??[];return t.h(n,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,modelValue:y,["update:modelValue"]:k},{default:()=>g})}}}}const{componentName:xd,create:Pd,scope:Ld}=U("radio-item"),Va=Pd(zd(xd,Ld,Ve,kn,vn)),Rd=(e,{CheckNormal:o,Checked:l,Indeterminate:n})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(a,{emit:r,slots:s}){const i=t.inject("parent",null),c=t.reactive({partialSelect:a.indeterminate});t.watch(()=>a.indeterminate,b=>{c.partialSelect=b});const d=t.computed(()=>!!i),m=t.computed(()=>d.value?i.value.value.includes(a.label):!!a.modelValue),f=t.computed(()=>d.value?i.position:a.textPosition),h=t.computed(()=>a.disabled?"fox-checkbox__icon--disable":c.partialSelect?"fox-checkbox__icon--indeterminate":m.value?"fox-checkbox__icon":"fox-checkbox__icon--unchecked");let y="";const k=(b,S)=>{y="click",r("update:modelValue",b),r("change",b,S)};t.watch(()=>a.modelValue,b=>{y=="click"?y="":r("change",b)});const v=()=>{if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const b=se(a.iconSize),S=a.indeterminateIcon??n;return t.h(S,{width:b,height:b,class:h.value})}}else if(m.value){if(s.checkedIcon)return s.checkedIcon();{const b=se(a.iconSize),S=a.checkedIcon??l;return t.h(S,{width:b,height:b,class:h.value})}}else{if(s.icon)return s.icon();{const b=se(a.iconSize),S=a.icon??o;return t.h(S,{width:b,height:b,class:h.value})}}},g=()=>t.h("view",{class:`${e}__label ${a.disabled?`${e}__label--disabled`:""}`},s.default?.()),u=()=>t.h("view",{class:`${e}__button ${m.value&&`${e}__button--active`} ${a.disabled?`${e}__button--disabled`:""}`},s.default?.()),p=b=>{if(!(a.disabled||a.readonly)){if(m.value&&c.partialSelect){c.partialSelect=!1,k(m.value,s.default?.()[0].children);return}if(k(!m.value,s.default?.()[0].children),d.value){const S=i.value.value,B=i.max.value,{label:E}=a,I=S.indexOf(E);I>-1?S.splice(I,1):I<=-1&&(S.length<B||!B)&&S.push(E),i.updateValue(S)}}};return t.onMounted(()=>{d.value&&i.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{d.value&&i.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${a.shape} ${f.value==="left"?`${e}--reverse`:""}`,onClick:p},[a.shape=="button"?u():[v(),g()]])}}),{componentName:Od,create:Fd}=U("checkbox"),bn=Fd(Rd(Od,{CheckNormal:G.CheckNormal,Checked:G.Checked,Indeterminate:G.CheckDisabled})),{create:Ud,componentName:ol}=U("checkbox-group"),Sn=Ud({props:{modelValue:{type:Array,default:()=>[]},textPosition:{type:String,default:"right"},direction:{type:String,default:"vertical"},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:o,emit:l}){const n=t.reactive({children:[]}),a=d=>{d.proxy&&n.children.push(d.proxy)},r=d=>{d.proxy&&(n.children=n.children.filter(m=>m!==d.proxy))},s=d=>{l("update:modelValue",d),l("change",d)},i=d=>{const m=[];d&&n.children.forEach(f=>{f?.disabled||m.push(f?.label)}),l("update:modelValue",m)},c=()=>{const d=n.children.filter(m=>m?.disabled?!1:!e.modelValue.includes(m.label)).map(m=>m.label);l("update:modelValue",d)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:a,unlink:r}),t.watch(()=>e.modelValue,d=>{l("change",d)}),Te({toggleAll:i,toggleReverse:c}),()=>t.h("view",{class:`${ol} ${ol}--${e.direction}`},o.default?.())}});function nl(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(en(e,r)===l)return a}else if(n==="item"){if(Fe(l,r))return a}else if(Ht(e,r)===l)return a}return-1}function en(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function Ht(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function Kd(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function Hd(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}class jd{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);let a=Mt(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(De(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}}function Wd(){const e=t.getCurrentInstance();return new jd(e.proxy)}const Yd={max:{type:Number,default:0},textPosition:{type:String,default:"right"},direction:{type:String,default:"vertical"}},ll={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}};function Xd(e,o,l,n,a){return{props:{...Yd,...ll,...de,...fe,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]}},emits:["change","update:modelValue"],setup(r,s){const i=Ne(t.computed(()=>r.disabled)),c=Ne(t.computed(()=>r.readonly)),{emitEvent:d}=Be({componentName:e,get validate(){return!i.value||!c.value}},r.prop??s.attrs.name),m=Wd(),f=t.ref([]);t.watch([()=>r.source,()=>r.params],async([g,u])=>{g&&(f.value=await m.load("checkbox",g,u))},{immediate:!0});const h=t.ref([]);t.watch([()=>r.modelValue,()=>f.value],async([g,u])=>{const p=[];Array.isArray(g)&&g.forEach(b=>{let S=nl(r,u,b,r.valueType);S!==-1&&p.push(S)}),!Fe(p,h.value)&&(h.value=p)},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;let g=[];return h.value.forEach(u=>{let p=f.value[u];g.push(Ht(r,p))}),g}),k=g=>{let u=[],p=[];if(f.value.length>0){const b=[];Array.isArray(g)&&g.forEach(S=>{let B=nl(r,f.value,S,"value");B!==-1&&b.push(B);const E=f.value[B];p.push(E),r.valueType==="text"?u.push(en(r,E)):r.valueType==="item"?u.push(E):u.push(Ht(r,E))}),h.value=b}else u=g;d("update:modelValue",u),d("change",u,p)},v=t.ref();if(Te({toggleAll:g=>{v.value.toggleAll(g)},toggleReverse:()=>{v.value.toggleReverse()}}),r.source){const g=()=>{const u=[],p=ke(r,ll);return f.value.forEach((b,S)=>{const B=en(r,b),E=Ht(r,b),I=Kd(r,b);let V={...p,label:E,disabled:I};const C=Hd(r,b,S);V={...V,...C},i.value&&(V.disabled=!0),c.value&&(V.readonly=!0);const w={};s.slots.icon&&(w.icon=s.slots.icon),s.slots.checkedIcon&&(w.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(w.indeterminateIcon=s.slots.indeterminateIcon),w.default=()=>B;let q=t.h(a,V,w);u.push(q)}),u};return()=>{const u=g(),p={class:`${e}`,ref:v,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:y.value,["onUpdate:modelValue"]:k},b=t.h(n,p,{default:()=>u}),S={default:()=>b};if(s.slots.default){const I=s.slots.default();S.label=()=>I}if(s.slots.prepend){const I=s.slots.prepend();S.prepend=()=>I}if(s.slots.append){const I=s.slots.append();S.append=()=>I}const B=ke(r,fe,de);return t.h(l,B,S)}}else return()=>{const g=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:v,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:y,["onUpdate:modelValue"]:k},{default:()=>g})}}}}const{componentName:Qd,create:Gd,scope:Zd}=U("checkbox-item"),Aa=Gd(Xd(Qd,Zd,Ve,Sn,bn)),tn={modelValue:{type:[String,Number,Boolean],default:!1},disable:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:Jd,create:_d}=U("switch"),ef=_d({components:{Loading1:G.Loading1},props:{...tn},emits:["change","update:modelValue","update:loading"],setup(e,{emit:o}){const l=t.computed(()=>e.modelValue===e.activeValue),n=t.computed(()=>{const i=Jd;return{[i]:!0,[l.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-disable`]:e.disable,[`${i}-base`]:!0}}),a=t.computed(()=>({backgroundColor:l.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disable||e.loading)return;r="click";const c=l.value?e.inactiveValue:e.activeValue;o("update:modelValue",c),o("change",c,i)};return t.watch(()=>e.modelValue,i=>{r=="click"?r="":o("change",i)}),{classes:n,style:a,isActive:l,onClick:s}}}),tf={class:"fox-switch-button"};function of(e,o,l,n,a,r){const s=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",tf,[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 Cn=W(ef,[["render",of]]);function nf(e,o,l,n){return{props:{...de,...fe,...tn},emits:["change","update:modelValue"],setup(a,r){const s=Ne(t.computed(()=>a.disabled)),i=Ie(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,m=ze(a,"modelValue"),f=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const y={...ke(a,tn),disabled:s.value,readonly:i.value,value:m.value,["onUpdate:modelValue"]:f},k=[],v=t.h(n,y);k.push(v);const g={default:()=>k};if(r.slots.default){const b=r.slots.default();g.label=()=>b}const u=ke(a,fe,de);return u["content-class"]=d,t.h(l,u,g)}}}}const{componentName:lf,create:af,scope:rf}=U("switch-item"),Ea=af(nf(lf,rf,Ve,Cn));function sf(e,o,l,n){return{props:{...de,...fe,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur"],setup(a,r){const{emitEvent:s}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},a.prop??r.attrs.name),{toLocaleRefs:i}=ie.useFoxI18n(o),c=i(a,["placeholder"]),d=Ne(t.computed(()=>a.disabled)),m=Ie(t.computed(()=>a.readonly)),f=ze(a,"modelValue"),h=t.computed(()=>({[`${e}`]:!0,[`${e}__disabled`]:d.value,[`${e}__placeholder`]:!d.value&&Ce(f.value)})),y=Ee(t.computed(()=>a.textAlign),"textAlign"),k=t.computed(()=>({textAlign:y.value??"right"})),v=t.computed(()=>Ce(f.value)?c.placeholder.value:f.value),g=()=>{s("focus",f.value)},u=()=>{s("blur",f.value)},p=t.computed(()=>({[`${e}__append`]:!0})),b=t.computed(()=>pe(a.unit)>0),S=I=>{d.value==!0||m.value==!0||s("click")},B=t.computed(()=>a.icon??l),E=t.computed(()=>({action:!0}));return()=>{const I={tabIndex:0,class:h.value,style:k.value,innerHTML:v.value,onFocus:g,onBlur:u,onClick:S},V=[],C=t.h("view",I);V.push(C);const w=[],q=se(a.iconSize);let L=r.slots.icon;if(!L){const j={width:q,height:q,class:["action-icon"]};L=t.h(B.value,j)}const M={class:E.value,onClick:S},A=t.h("view",M,{default:()=>[L]});if(w.push(A),b.value){const j=t.h("view",{},[a.unit]);w.push(j)}const T={class:p.value},z=t.h("view",T,{default:()=>w});V.push(z);const $={default:()=>V};if(r.slots.default){const j=r.slots.default();$.label=()=>j}if(r.slots.prepend){const j=r.slots.prepend();$.prepend=()=>j}if(r.slots.append){const j=r.slots.append();$.append=()=>j}const x=ke(a,fe,de);return t.h(n,x,$)}}}}const{componentName:cf,create:uf,scope:df}=U("link-item"),Ta=uf(sf(cf,df,G.ArrowRight,Ve));function ff(e,o){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return Ml(l.name,l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Sw,create:mf,scope:Cw}=U("domain-provider"),$a=mf(ff()),{componentName:pf,create:hf}=U("button"),gf=hf({components:{Loading:G.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o,slots:l}){const{type:n,size:a,shape:r,disabled:s,loading:i,color:c,plain:d,block:m}=t.toRefs(e),f=k=>{!i.value&&!s.value&&o("click",k)},h=t.computed(()=>{const k=pf;return{[k]:!0,[`${k}--${n.value}`]:n.value,[`${k}--${a.value}`]:a.value,[`${k}--${r.value}`]:r.value,[`${k}--plain`]:d.value,[`${k}--block`]:m.value,[`${k}--disabled`]:s.value,[`${k}--loading`]:i.value}}),y=t.computed(()=>{const k={};return c?.value&&(d.value?(k.color=c.value,k.background="#fff",c.value?.includes("gradient")||(k.borderColor=c.value)):(k.color="#fff",k.background=c.value)),k});return{handleClick:f,classes:h,getStyle:y}}}),yf={class:"fox-button__wrap"};function vf(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:o[0]||(o[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",yf,[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 Pe=W(gf,[["render",vf]]),{componentName:kf,create:bf}=U("cell"),Sf=bf({components:{Right:G.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:o}){const l=t.computed(()=>{const r=kf;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),n=t.computed(()=>({borderRadius:le(e.roundRadius)}));return{handleClick:r=>{o("click",r)},classes:l,baseStyle:n}}}),Cf={key:0,class:"fox-cell__icon"},wf={key:1,class:"fox-cell__title"},Nf={class:"title"},Bf={class:"fox-cell__title-desc"};function Vf(e,o,l,n,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:o[0]||(o[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",Cf,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",wf,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Nf,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Bf,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 Da=W(Sf,[["render",Vf]]),{componentName:Af,create:Ef}=U("cell-group"),Tf=Ef({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Af]:!0}))}}}),$f={key:1,class:"fox-cell-group__title"},Df={key:3,class:"fox-cell-group__desc"},If={class:"fox-cell-group__wrap"};function qf(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):e.title?(t.openBlock(),t.createElementBlock("view",$f,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",Df,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",If,[t.renderSlot(e.$slots,"default")])],2)}const Ia=W(Tf,[["render",qf]]),{componentName:Mf,create:zf}=U("image"),xf=zf({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:G.Image,ImageError:G.ImageError},emits:["click","load","error"],setup(e,{emit:o}){const l=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),n=t.computed(()=>{const y=Mf;return{[y]:!0,[`${y}-round`]:e.round}}),a=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const y={threshold:[0],rootMargin:"0px"};a.value=new IntersectionObserver(k=>{k.forEach(v=>{v.isIntersecting&&(r.value=!0,a.value.disconnect())})},y),s.value&&a.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{a.value&&a.value.disconnect()});const c=t.computed(()=>{let y={};return e.width&&(y.width=le(e.width)),e.height&&(y.height=le(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=le(e.radius)),y}),d=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,y=>{l.isError=!1,l.loading=!0});const m=()=>{l.loading=!1,o("load")},f=()=>{l.isError=!0,l.loading=!1,o("error")},h=y=>{o("click",y)};return{...t.toRefs(l),imageClick:h,classes:n,styles:d,stylebox:c,error:f,load:m,show:r,imgRef:s}}}),Pf=["src","date-src","alt"],Lf={key:0,class:"fox-img-loading"},Rf={key:1,class:"fox-img-error"};function Of(e,o,l,n,a,r){const s=t.resolveComponent("Image"),i=t.resolveComponent("ImageError");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.stylebox),onClick:o[2]||(o[2]=(...c)=>e.imageClick&&e.imageClick(...c))},[t.createElementVNode("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:o[0]||(o[0]=(...c)=>e.load&&e.load(...c)),onError:o[1]||(o[1]=(...c)=>e.error&&e.error(...c)),style:t.normalizeStyle(e.styles)},null,44,Pf),e.loading?(t.openBlock(),t.createElementBlock("div",Lf,[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",Rf,[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 qa=W(xf,[["render",Of]]),{create:Ff}=U("layout"),Ma=Ff({}),{componentName:Uf,create:Kf}=U("col"),Hf=Kf({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const o=Uf,l=t.inject("gutter"),n=t.computed(()=>({[o]:!0,[`${o}-gutter`]:l,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),a=t.computed(()=>({paddingLeft:l/2+"px",paddingRight:l/2+"px"}));return{classes:n,style:a}}});function jf(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const za=W(Hf,[["render",jf]]),{componentName:Wf,create:Yf}=U("row"),Xf=Yf({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const o=Wf;t.provide("gutter",e.gutter);const l=(a,r)=>a?r?`fox-row-${a}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
2
+ * @fox-js/foxui-base v4.0.0 Tue Aug 22 2023 21:15:51 GMT+0800 (中国标准时间)
3
+ */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),Xe=require("@fox-js/validator"),Q=require("@fox-js/icons-vue"),re=require("@fox-js/i18n"),zt=window,Zr=typeof window<"u";function Jr(){return typeof zt<"u"?zt.requestAnimationFrame||zt.webkitRequestAnimationFrame||function(e){zt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function fl(e){Zr?cancelAnimationFrame(e):clearTimeout(e)}const He=Jr();/*!
4
+ * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
+ */function jt(e,o="0"){let l=0,n=-1;e[0]=="-"&&(l++,n=1,e=e.substring(1),e.length),o[0]=="-"&&(l++,n=2,o=o.substring(1),o.length),e=ve(e),o=ve(o),[e,o]=an(ve(e),ve(o)),l==1&&(n==1?e=Bo(e):o=Bo(o));let a=ml(e,o);return l?l==2?"-"+ve(a):e.length<a.length?ve(a.substring(1)):"-"+ve(Bo(a)):ve(a)}function Bo(e){let o="",l=e.length,n=e.split(".")[1],a=n?n.length:0;for(let s=0;s<l;s++)e[s]>="0"&&e[s]<="9"?o+=9-parseInt(e[s]):o+=e[s];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return ml(o,r)}function ve(e){let o=e.split(".");for(o[0]||(o[0]="0");o[0][0]=="0"&&o[0].length>1;)o[0]=o[0].substring(1);return o[0]+(o[1]?"."+o[1]:"")}function an(e,o){let l=e.split("."),n=o.split("."),a=l[0].length,r=n[0].length;return a>r?n[0]=new Array(Math.abs(a-r)+1).join("0")+(n[0]?n[0]:""):l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""),a=l[1]?l[1].length:0,r=n[1]?n[1].length:0,(a||r)&&(a>r?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-r)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),o=n[0]+(n[1]?"."+n[1]:""),[e,o]}function ml(e,o){[e,o]=an(e,o);let l="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){l="."+l;continue}let r=parseInt(e[a])+parseInt(o[a])+n;l=r%10+l,n=Math.floor(r/10)}return n?n.toString()+l:l}var me=(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))(me||{});function Ct(e,o=0,l=me.HALF_EVEN){if(l===me.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),r=a[0],s=a[1];if(o<0){if(o=-o,r.length<=o)return"0";{let c=r.substr(0,r.length-o);return e=c+"."+r.substr(r.length-o)+s,c=Ct(e,0,l),(n?"-":"")+c+new Array(o+1).join("0")}}if(o==0)return r.length,En(a[1],r,n,l)?(n?"-":"")+Vo(r):(n?"-":"")+r;if(a[1]){if(a[1].length<o)return(n?"-":"")+r+"."+a[1]+new Array(o-a[1].length+1).join("0")}else return(n?"-":"")+r+"."+new Array(o+1).join("0");s=a[1].substring(0,o);let i=a[1].substring(o);return i&&En(i,s,n,l)&&(s=Vo(s),s.length>o)?(n?"-":"")+Vo(r,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+r+"."+s}function En(e,o,l,n){if(!e||e===new Array(e.length+1).join("0")||n===me.DOWN||!l&&n===me.FLOOR||l&&n===me.CEILING)return!1;if(n===me.UP||l&&n===me.FLOOR||!l&&n===me.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case me.HALF_DOWN:return!1;case me.HALF_UP:return!0;case me.HALF_EVEN:default:return parseInt(o[o.length-1])%2==1}}function Vo(e,o=0){o||(o=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let a=l;a>=0;a--){let r=parseInt(e[a])+o;r==10?(o=1,r=0):o=0,n+=r}return o&&(n+=o),n.split("").reverse().join("")}function zo(e,o){e=e.toString(),o=o.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),o[0]=="-"&&(l++,o=o.substr(1)),e=ft(e),o=ft(o);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),o.indexOf(".")!=-1&&(a=o.length-o.indexOf(".")-1);let r=n+a;if(e=ft(e.replace(".","")),o=ft(o.replace(".","")),e.length<o.length){let f=e;e=o,o=f}if(o=="0")return"0";let s=o.length,i=0,c=[],d=s-1,m="";for(let f=0;f<s;f++)c[f]=e.length-1;for(let f=0;f<2*e.length;f++){let h=0;for(let g=o.length-1;g>=d&&g>=0;g--)c[g]>-1&&c[g]<e.length&&(h+=parseInt(e[c[g]--])*parseInt(o[g]));h+=i,i=Math.floor(h/10),m=h%10+m,d--}return m=ft(_r(m,r)),l==1&&(m="-"+m),m}function _r(e,o){return o==0?e:(e=o>=e.length?new Array(o-e.length+1).join("0")+e:e,e.substr(0,e.length-o)+"."+e.substr(e.length-o,o))}function ft(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 Lo(e,o,l=8){if(o==0)throw new Error("Cannot divide by 0");if(e=e.toString(),o=o.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),o=o.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;o[0]=="-"&&(o=o.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=o.indexOf(".")>0?o.length-o.indexOf(".")-1:-1;if(o=ve(o.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=ve(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=ve(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let m=e.length-d+a;e=ve(e.substring(0,m)+"."+e.substring(m))}else a==d&&(e=ve(e.replace(".","")))}let r=0,s=o.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let d=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(d+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=d,i="0."+new Array(d).join("0")}for(l=l+2;r<=l;){let d=0;for(;parseInt(c)>=parseInt(o);)c=jt(c,"-"+o),d++;i+=d,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(n==1?"-":"")+ve(Ct(i,l-2))}function xo(e,o){return e=e.toString(),o=o.toString(),o=Po(o),jt(e,o)}function Po(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Tn(e,o){if(o==0)throw new Error("Cannot divide by 0");e=e.toString(),o=o.toString(),$n(e),$n(o);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),o[0]=="-"&&(o=o.substr(1));let n=xo(e,zo(o,Ct(Lo(e,o),0,me.FLOOR)));return l+n}function $n(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Dn(e,o){let l=!1;if(e[0]=="-"&&o[0]!="-")return-1;if(e[0]!="-"&&o[0]=="-")return 1;if(e[0]=="-"&&o[0]=="-"&&(e=e.substr(1),o=o.substr(1),l=!0),[e,o]=an(e,o),e.localeCompare(o)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=o[n])return e[n]>o[n]?l?-1:1:l?1:-1;return 0}class ne{value;static RoundingModes=me;static validate(o){if(o){if(o=o.toString(),isNaN(o))throw Error("Parameter is not a number: "+o);o[0]=="+"&&(o=o.substring(1))}else o="0";if(o.startsWith(".")?o="0"+o:o.startsWith("-.")&&(o="-0"+o.substr(1)),/e/i.test(o)){let[l,n]=o.split(/[eE]/);l=ve(l);let a="";l[0]=="-"&&(a="-",l=l.substring(1)),l.indexOf(".")>=0?(n=parseInt(n)+l.indexOf("."),l=l.replace(".","")):n=parseInt(n)+l.length,l.length<n?o=a+l+new Array(n-l.length+1).join("0"):l.length>=n&&n>0?o=a+ve(l.substring(0,n))+(l.length>n?"."+l.substring(n):""):o=a+"0."+new Array(-n+1).join("0")+l}return o}constructor(o="0"){this.value=ne.validate(o)}getValue(){return this.value}static getPrettyValue(o,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");o=ne.validate(o);let a=o.charAt(0)=="-";a&&(o=o.substring(1));var r=o.indexOf(".");r=r>0?r:o.length;for(var s="",i=r;i>0;)i<l?(l=i,i=0):i-=l,s=o.substring(i,i+l)+(i<r-l&&i>=0?n:"")+s;return(a?"-":"")+s+o.substring(r)}getPrettyValue(o,l){return ne.getPrettyValue(this.value,o,l)}static round(o,l=0,n=me.HALF_EVEN){if(o=ne.validate(o),isNaN(l))throw Error("Precision is not a number: "+l);return Ct(o,l,n)}round(o=0,l=me.HALF_EVEN){if(isNaN(o))throw Error("Precision is not a number: "+o);return new ne(Ct(this.value,o,l))}static floor(o){return o=ne.validate(o),o.indexOf(".")===-1?o:ne.round(o,0,me.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ne(this.value):new ne(this.value).round(0,me.FLOOR)}static ceil(o){return o=ne.validate(o),o.indexOf(".")===-1?o:ne.round(o,0,me.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ne(this.value):new ne(this.value).round(0,me.CEILING)}static add(o,l){return o=ne.validate(o),l=ne.validate(l),jt(o,l)}add(o){return new ne(jt(this.value,o.getValue()))}static subtract(o,l){return o=ne.validate(o),l=ne.validate(l),xo(o,l)}subtract(o){return new ne(xo(this.value,o.getValue()))}static multiply(o,l){return o=ne.validate(o),l=ne.validate(l),zo(o,l)}multiply(o){return new ne(zo(this.value,o.getValue()))}static divide(o,l,n){return o=ne.validate(o),l=ne.validate(l),Lo(o,l,n)}divide(o,l){return new ne(Lo(this.value,o.getValue(),l))}static modulus(o,l){return o=ne.validate(o),l=ne.validate(l),Tn(o,l)}modulus(o){return new ne(Tn(this.value,o.getValue()))}static compareTo(o,l){return o=ne.validate(o),l=ne.validate(l),Dn(o,l)}compareTo(o){return Dn(this.value,o.getValue())}static negate(o){return o=ne.validate(o),Po(o)}negate(){return new ne(Po(this.value))}}function pl(e,o){return ne.multiply(`${e}`,`${o}`)}function rn(e,o,l=8){return ne.divide(`${e}`,`${o}`,l)}function Ro(e,o){return e=`${e}`,o=`${o}`,ne.compareTo(e,o)}function hl(e){return ne.negate(e)}function sn(e,o=-1,l=!1,n=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",d=r.indexOf(".");d!=-1&&(i=r.substring(0,d),c=r.substring(d+1)),o!=-1&&(o<c.length?c=c.substring(0,o):l&&o>c.length&&(c=c.padEnd(o,"0")));let m;if(n>0){let f="",h=i.split("").reverse();for(let g=0;g<h.length;g++)f+=h[g]+((g+1)%n==0&&g+1!=h.length?a:"");c.length==0?m=`${s}${f.split("").reverse().join("")}`:m=`${s}${f.split("").reverse().join("")}.${c}`}else c.length==0?m=`${s}${i}`:m=`${s}${i}.${c}`;return m}function gl(e){let o=`${e}`,l=o.charAt(0);l=="-"?o=o.substring(1):l="";let n=o.replace(/[^\d\.-]/g,"");return`${l}${n}`}const tt=typeof window<"u",We=He,fo=Array.isArray,es=e=>mo(e)==="[object Map]",ts=e=>mo(e)==="[object Set]",Pe=e=>e instanceof Date,Wt=e=>typeof e=="function",yl=e=>typeof e=="string",os=e=>typeof e=="symbol",Te=e=>e!==null&&typeof e=="object",cn=e=>Te(e)&&Wt(e.then)&&Wt(e.catch),vl=Object.prototype.toString,mo=e=>vl.call(e),Oo=e=>mo(e)==="[object Object]",kl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function ns(e){return e.__esModule||kl&&e[Symbol.toStringTag]==="Module"}const ls=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ge(...e){let o=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,n=e.length,a=!1;for(typeof o=="boolean"&&(a=o,o=e[l]??{},l++),typeof o!="object"&&(o={});l<n;l++)if(e[l]!==null&&e[l]!==void 0){let r=e[l];for(let s in r){let i=o[s],c=r[s];if(i!==c)if(a===!0&&c&&typeof c=="object"){let d;Array.isArray(c)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},o[s]=Ge(a,d,c)}else c!==void 0&&(o[s]=c)}}return o}function Fo(e,o,l=!1){if(!l)Ge(!0,e,o);else{if(typeof o!="object")return{};typeof e!="object"&&(e={});for(let a in o){let r=e[a],s=o[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Oo(s))continue;r=Fo(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}const n=Object.getOwnPropertySymbols(o);for(let a of n){let r=e[a],s=o[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Oo(s))continue;r=Fo(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}}return e}const Ao=ls?Promise.resolve():null;function as(e,...o){Ao!==null?o&&o.length>0?Ao.then(()=>{e(o)}):Ao.then(e):o&&o.length>0?setTimeout(()=>{e(o)}):setTimeout(e)}function he(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function ue(e){return typeof e=="number"?e:Number(e)}const rs={"[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 Ze(e){let l=Object.prototype.toString.call(e);return e==null?String(e):rs[l]||"object"}function bl(e){return!e||e.offsetParent===null}function Sl(e){return e&&typeof e=="object"&&"setInterval"in e}function Cl(e){let o=!!e&&"length"in e&&e.length,l=Ze(e);return l==="function"||Sl(e)?!1:l==="array"||o===0||typeof o=="number"&&o>0&&o-1 in e}function wl(e,o){let l=+o.length,n=0,a=e.length;for(;n<l;n++)e[a++]=o[n];return e.length=a,e}function ss(e,o=[]){let l=o;return e!=null&&(Cl(Object(e))?wl(l,typeof e=="string"?[e]:e):l.push(e)),l}function Re(e,o){if(e==o)return!0;if(e===void 0||o===void 0)return!1;let l=Ze(e),n=Ze(o);if(l!==n)return!1;if(l==="object"){let a=Object.keys(e),r=Object.keys(o);if(a.length!==r.length)return!1;for(let s=0;s<a.length;s++){let i=a[s],c=e[i],d=o[i];if(!Re(c,d))return!1}return!0}else if(l==="array"){if(e.length!==o.length)return!1;for(let a=0;a<e.length;a++){let r=e[a],s=o[a];if(!Re(r,s))return!1}return!0}return!1}function Nl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const be=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Bl(e){return be(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),be(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Vl(e){if(e==null)return 0;let o=`${e}`;if(o.length==0)return 0;o.charAt(0)=="-"&&(o=o.substring(1)),o=o.replace(/[^\d\.-]/g,"");const l=o.indexOf(".");return l==-1?o.length:l}function Al(e){if(e==null)return 0;const o=`${e}`;if(o.length==0)return 0;const l=o.indexOf(".");return l==-1?0:o.length-(l+1)}function In(e,o,l){const n=e.indexOf(o);return n===-1?e:o==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(l,"")}function Uo(e,o=!0,l=!0){o?e=In(e,".",/\./g):e=e.replace(/\./g,""),l?e=In(e,"-",/-/g):e=e.replace(/-/,"");const n=o?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function is(e,o){return typeof e=="object"||Array.isArray(e)?o.findIndex(l=>{if(Re(e,l))return!0}):o.indexOf(e)}function cs(e,o){if(typeof e=="object"||Array.isArray(e)){let l=o.reverse().findIndex(n=>{if(Re(e,n))return!0});return l!==-1&&(l=o.length-1-l),l}return o.lastIndexOf(e)}function pe(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ye(e,...o){const l={};return o.forEach(n=>{for(const a in n)l[a]=e[a]}),l}function El(e,...o){const l=[];o.forEach(a=>{Reflect.apply([].push,l,Reflect.ownKeys(a))});const n={};for(const a in e)l.includes(a)||(n[a]=e[a]);return n}const Tl=(e,o,l)=>{const n=Object.assign({},e),a=Object.assign({},l);return Object.keys(o).length>0?(Object.keys(n).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(n[r]=o[a[r]]):o[r]&&(n[r]=o[r])}),n):e};function Ko(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&e.stopPropagation()}const Ye=(e,o=2)=>{for(e+="";e.length<o;)e="0"+e;return e.toString()},Le=(e,o,l)=>Math.min(Math.max(e,o),l),un=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,ge=Symbol.for("BroadcastKey");class dn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(o,l,n){this.parent=o,this.proxy=l,this.name=n,o!==null&&o.addChild(this)}addChild(o){this.children.push(o)}removeChild(o){const l=this.children.findIndex(n=>o===n);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(o,l,...n){if(o.maxLevel!==void 0&&o.maxLevel!==null&&o.maxLevel>0){if(o.level=o.level??0,o.level>o.maxLevel)return[];o.level++}let a=!1;!o.name||o.name==="*"?a=!0:!o.name||o.name==="+"?(a=!1,o.name="*"):Nl(o.name)&&this.name&&o.name.test(this.name)?a=!0:typeof o.name=="function"?a=Reflect.apply(o.name,null,[this.name]):o.name===this.name&&(a=!0);const r=[];if(a){const s=this.callbacks.get(l);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...n]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[l]=="function"){const c=Reflect.apply(i[l],i,[...n]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...o},l,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(o,l,...n){const a=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...o},l,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(o,l){this.callbacks.set(o,l)}}function po(e,o,l,n){const a=new dn(o,e,l);if(n&&typeof n=="object")for(const r in n)a.on(r,n[r]);return a}function us(e,o,l){const n=l;if(n[ge])return n[ge];const a=t.inject(ge,null),r=new dn(a,l,e);if(o&&typeof o=="object")for(const s in o)r.on(s,o[s]);return n[ge]=r,t.provide(ge,r),t.onUnmounted(()=>{r.destroy(),n[ge]=void 0}),r}function vt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ge]??t.inject(ge,null):t.inject(ge,null)}const Qe=e=>e.default??e;class ds{error(o,l){const n=l,a=vt(l);a?a.emit({name:"*",maxLevel:1},"setErrorTip",o):typeof n.setErrorTip=="function"&&n.setErrorTip(o)}reset(o){const l=o,n=vt(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(o){const l=o,n=vt(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(o,l,n){Array.isArray(o)||(o=[o]);const a=n,r=vt(n),s=l.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=o.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(o){return o.modelValue}}let $l=new ds;function fs(e){$l=e}function ms(e,o){Qe(Xe).setValidator(e,o)}function ps(e){Qe(Xe).deleteValidator(e)}let Dl=["blur","clear"];function hs(e){Dl=e}function Il(){return Dl}let ql=["focus","change"];function gs(e){ql=e}function Ml(){return ql}function ys(e){Qe(Xe).messages(e)}function mt(...e){const o=[];return e.forEach(l=>{l.forEach(n=>{const a=o.findIndex(r=>r.type===n.type);a!==-1&&o.splice(a,1),o.push(n)})}),o}function Lt(e){return e.forEach(o=>{o.type==="required"&&(o.required===null||o.required===void 0)&&(o.required=!0),!o.type&&(o.required===!0||o.required===!1)&&(o.type="required")}),e}const xe=Symbol("ValidateSchemaKey");class zl{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(o,l,n){this.parent=o,this.descriptor=l,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let o=this.proxy.$attrs;o&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const l=Lt(mt(this.attrRules,this.rules)),n=[];for(let r in o){let s=o[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),n.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};n.push(c)}}this.attrRules=Lt(n);const a=mt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(o,...l){const n=this.descriptor.validateHandler;if(n&&typeof n[o]=="function")return Reflect.apply(n[o],n,[...l]);const a=$l;return a&&typeof a[o]=="function"?Reflect.apply(a[o],a,[...l]):null}decorate(o,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",o,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(o){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",o,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(o,l,n=!1){n?Qe(Xe).setValidator(o,l):this.validators[o]=l}getValidator(o){let l=this.validators[o]??null;return l||(l=this.parent?.getValidator(o)??null),l}deleteValidator(o,l=!1){l?Qe(Xe).deleteValidator(o):Reflect.deleteProperty(this.validators,o)}hasValidator(o,l=!1){if(l)return Qe(Xe).hasValidator(o);{let n=Reflect.has(this.validators,o);return!n&&this.parent!==null&&(n=this.parent.hasValidator(o,!1)),n}}setRule(o){const l=mt(this.attrRules,this.rules);o===null?this.rules=[]:Array.isArray(o)?this.rules=Lt(o):this.rules=Lt([o]);const n=mt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(n,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=mt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(l.length>0){const a={[`${n}`]:l},r=this.getValue(),s={[`${n}`]:r},i=Qe(Xe),c=new i(a),d=this.proxy??s;return c.validate(s,{context:d}).then(f=>{if(f.pass)this.success();else{let h="error";Array.isArray(f.errors)&&f.errors.length>0&&(h=f.errors[0].message??h,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(h)}return f}).catch(f=>{const h=f.message??`${f}`;return this.error(h),f})}}return Promise.resolve({pass:!0})}}function ho(e,o,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const a=l.valueName;l.validateHandler={getValue(r){return r[a]}}}return new zl(o,l,e)}const qn=Symbol("EventEmitterKey");class vs{register=new Map;proxy;constructor(o){this.proxy=o}destroy(){this.proxy=null,this.register.clear()}off(o,l){let n=this.register.get(o);if(n&&Array.isArray(n)){let a=n.findIndex(r=>r===l);a!==-1&&n.splice(a,1)}}on(o,l){let n=this.register.get(o);n||(n=new Array,this.register.set(o,n)),n.push(l)}emit(o,...l){const n=this.register.get(o);n&&n.forEach(a=>{try{Reflect.apply(a,null,[o,...l])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[o,...l])}}function wt(e,o){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},o)}}function Yt(e,o){let l=0;return function(...n){const a=new Date().getTime();a-l<o||(l=a,Reflect.apply(e,null,[...n]))}}function ks(e,o){const l=wt((n,a)=>{e=n,a()},o);return t.customRef((n,a)=>({get(){return n(),e},set(r){l(r,a)}}))}function bs(e){let o=!1;return function(...l){o||(o=!0,Reflect.apply(e,null,[...l]))}}const Be=Symbol("DomainKey"),at=Symbol("DataItemsKey");class go{_parent=null;get parent(){return this._parent}set parent(o){this._parent=o}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(o){this._broadcast=o}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(o){this._validateSchema=o}_props=t.reactive({});constructor(o=null){this._name=o}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(o,l=[]){for(const n in o){const a=o[n];l.length>0&&l.indexOf(a)!==-1||(this._props[n]=a)}}has(o){if(Reflect.has(this._props,o)){const l=this._props[o];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(o)}delete(o){Reflect.deleteProperty(this._props,o)}set(o,l){this._props[o]=l}get(o,l){if(Reflect.has(this._props,o)){const n=this._props[o];if(n!=null)return n}return this.parent==null?l:this.parent.get(o,l)}getForParent(o,l){return this.parent==null?l:this.parent.get(o,l)}getForSelf(o){return this._props[o]}getAll(o){const l=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,o)){const a=n._props[o];l.push(a)}n=n._parent}return l}}const Ss=new go;function it(){return Ss}function Oe(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Be]??t.inject(Be,null):t.inject(Be,null)}const Eo=Symbol("OriginalDateKey");function fn(e,o,l=[],n){const a=t.getCurrentInstance(),r=a?.proxy;let s=t.inject(Be,null);s===null&&(s=it());const i=e||o.prop||o.name,c=new go(i);c.parent=s;const d=y=>{r[Eo]||h(y),c.set("modelValue",y)},m=()=>c.getForSelf("modelValue")??null,f=()=>r[Eo]??null,h=y=>{const v={};Ge(!0,v,t.toRaw(y)),r[Eo]=v};t.isReactive(o)?t.watchEffect(()=>{c.merge(o,l)}):c.merge(o,l),o.modelValue&&h(o.modelValue),r[Be]=c,t.provide(Be,c);let g=null,b=null;if(a!==null){const y=t.inject(ge,null);g=po(r,y,i,n),c.broadcast=g,r[ge]=g,t.provide(ge,g),r.broadcast=(u,p,...k)=>Reflect.apply(g.emit,g,[u,p,...k]);const v=t.inject(xe,null);b=ho(r,v,{componentName:""}),c.validateSchema=b,r[xe]=b,t.provide(xe,b),r[at]=new Map,r.validate=(u=!0)=>{const p=[];let k=null;const S={deep:!1};if(u===!0)k={name:"*"};else if(Array.isArray(u)&&u.length>0){const A=u;k={name:V=>V?A.indexOf(V)!==-1:!1}}else if(u!=null&&typeof u=="object"){const A=u;if(S.ignoreHidden=A.ignoreHidden,Array.isArray(A.include)&&A.include.length>0){const V=A.include;k={name:I=>I?V.indexOf(I)!==-1:!1}}else if(Array.isArray(A.exclude)&&A.exclude.length>0){const V=A.exclude;k={name:I=>I?V.indexOf(I)===-1:!1}}else k={name:"*"}}if(k){const A=g?.emitToChildren(k,"validate",S);A&&Reflect.apply([].push,p,A)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(A=>{let V=[];return A.forEach(I=>{I.pass===!1&&Array.isArray(I.errors)&&(V=[...V,...I.errors])}),V.length>0?{pass:!1,errors:V}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(u,p=!0)=>{if(p){const k=Reflect.ownKeys(u),S=[...k],A={name:V=>{const I=k.includes(V);if(I){const B=S.findIndex(C=>V===C);B!==-1&&S.splice(B,1)}return I}};g?.emitToChildren(A,"setNameValidateRules",u,!1),S.length>0&&S.forEach(V=>{let I=String(V);const C=Pl(c,I,{componentName:"",fieldName:I,pureDataValidate:!0},g,b);r[at].set(I,C);const w=u[I];w&&C.validateSchema.setRule(w)})}},r.clearValidate=(u=!0)=>{let p=null;if(u===!0)p={name:"*"};else if(Array.isArray(u)&&u.length>0){const k=u;p={name:S=>S?k.indexOf(S)!==-1:!1}}else if(u!=null&&typeof u=="object"){const k=u;if(Array.isArray(k.include)&&k.include.length>0){const S=k.include;p={name:A=>A?S.indexOf(A)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const S=k.exclude;p={name:A=>A?S.indexOf(A)===-1:!1}}else p={name:"*"}}p&&g?.emitToChildren(p,"clearValidate",!1)},r.resetFields=u=>{const p=m();if(!p)return;const k={};if(Ge(!0,k,f()??{}),Array.isArray(u))u.forEach(S=>{p[S]=k[S]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(A=>{p[A]=k[A]});else if(u&&Array.isArray(u.exclude)){let S=u.exclude??[];Reflect.ownKeys(k).forEach(A=>{S.includes(A)||(p[A]=k[A])})}else Object.assign(p,k);r.clearValidate(u)},r.setModelValue=(u,p)=>{!p||p===i?d(u):g?.emitToChildren({name:p},"setModelValue",u)},r.getModelValue=()=>m()}return t.onUnmounted(()=>{c.destroy(),r[Be]=void 0,r[at]&&(r[at].clear(),r[at]=void 0),g!==null&&(g.destroy(),r[ge]=void 0),b!==null&&(b.destroy(),r[xe]=void 0)}),c}function Ll(e,o,l=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(Be,null);r===null&&(r=it());const s=e||o.prop||o.name,i=new go(s);return i.parent=r,t.isReactive(o)?t.watchEffect(()=>{i.merge(o,l)}):i.merge(o,l),a[Be]=i,t.provide(Be,i),t.onUnmounted(()=>{i.destroy(),a[Be]=void 0}),i}function xl(e,o,l){const a=Oe(e)?.get("rules");if(!a)return;let r=a[l];r&&(Array.isArray(r)||(r=[r]),r.forEach(s=>{o.setRule(s)}))}function we(e,o,l){const a=t.getCurrentInstance()?.proxy,r=o??"",s=t.inject(ge,null),i=po(a,s,r,l);a[ge]=i,t.provide(ge,i),a.broadcast=(b,y,...v)=>Reflect.apply(i.emit,i,[b,y,...v]);const c=t.inject(xe,null);e.fieldName=e.fieldName??r;const d=ho(a,c,e);a[xe]=d,t.provide(xe,d),xl(a,d,r),a.validate=(b=null)=>{const y=[];let v=!1,u=!1;if(Array.isArray(b)&&b.indexOf(r)!==-1)u=!0,v=!0;else if(b&&typeof b=="object"){const p=b;p.ignoreHidden===!0&&bl(a.$el)?u=!1:(Array.isArray(p.include)&&p.include.indexOf(r)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(r),u=!0),v=p.deep??!1}else typeof b=="boolean"&&(v=b),u=!0;if(u){const p=d?.validate();y.push(p)}if(v){let p=null;const k={deep:!1};if(b===!0)p={name:"*"};else if(Array.isArray(b)&&b.length>0){const S=b;p={name:A=>A?S.indexOf(A)!==-1:!1}}else if(b!=null&&typeof b=="object"){const S=b;if(k.ignoreHidden=S.ignoreHidden,Array.isArray(S.include)&&S.include.length>0){const A=S.include;p={name:V=>V?A.indexOf(V)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const A=S.exclude;p={name:V=>V?A.indexOf(V)===-1:!1}}else p={name:"*"}}if(p){const S=i.emitToChildren(p,"validate",k);Reflect.apply([].push,y,S)}}return y.length==1?y[0]:y.length>1?Promise.all(y).then(p=>{let k=[];return p.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(k=[...k,...S.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=b=>d?.setRule(b),a.setNameValidateRules=(b,y=!1)=>{const v=b[r];if(v&&d?.setRule(v),y){const u={name:p=>Reflect.ownKeys(b).includes(p)};i.emitToChildren(u,"setNameValidateRules",b,!1)}},a.clearValidate=(b=null)=>{(!Array.isArray(b)||b.indexOf(o??"")!==-1)&&d?.clear();let y=null;if(b===!0)y={name:"*"};else if(Array.isArray(b)&&b.length>0){const v=b;y={name:u=>u?v.indexOf(u)!==-1:!1}}else if(b!=null&&typeof b=="object"){const v=b;if(Array.isArray(v.include)&&v.include.length>0){const u=v.include;y={name:p=>p?u.indexOf(p)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const u=v.exclude;y={name:p=>p?u.indexOf(p)===-1:!1}}else y={name:"*"}}y&&i.emitToChildren(y,"clearValidate",!1)};const m=new vs(a);a[qn]=m;const f=wt((b="validate")=>{b==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Il()).forEach(b=>{m.on(b,y=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Ml()).forEach(b=>{m.on(b,y=>{f("reset")})}),t.onUnmounted(()=>{i.destroy(),a[ge]=void 0,d.destroy(),a[xe]=void 0,m.destroy(),a[qn]=void 0}),{broadcast:i,validateSchema:d,emitEvent:(b,...y)=>{Reflect.apply(m.emit,m,[b,...y])},onEvent:(b,y)=>{Reflect.apply(m.on,m,[y])},offEvent:(b,y)=>{Reflect.apply(m.off,m,[y])}}}function Pl(e,o,l,n,a){const r={},s=o??"";l.fieldName=s,l.validateHandler={getValue(d){const m=e.getForSelf("modelValue");return m?m[s]:null}};const i=ho({},a,l);r.validate=(d=null)=>{const m=[];let f=!1,h=!1;if(Array.isArray(d)&&d.indexOf(s)!==-1)h=!0,f=!0;else if(d&&typeof d=="object"){const g=d;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),h=!0,f=g.deep??!1}else typeof d=="boolean"&&(f=d),h=!0;if(h){const g=i?.validate();m.push(g)}if(f){let g=null;const b={deep:!1};if(d===!0)g={name:"*"};else if(Array.isArray(d)&&d.length>0){const y=d;g={name:v=>v?y.indexOf(v)!==-1:!1}}else if(d!=null&&typeof d=="object"){const y=d;if(Array.isArray(y.include)&&y.include.length>0){const v=y.include;g={name:u=>u?v.indexOf(u)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const v=y.exclude;g={name:u=>u?v.indexOf(u)===-1:!1}}else g={name:"*"}}if(g){const y=c.emitToChildren(g,"validate",b);Reflect.apply([].push,m,y)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(g=>{let b=[];return g.forEach(y=>{y.pass===!1&&Array.isArray(y.errors)&&(b=[...b,...y.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=d=>i?.setRule(d),r.setNameValidateRules=d=>{const m=d[s];m&&i?.setRule(m)};const c=po(null,n,s,r);return{broadcast:c,validateSchema:i}}const se=e=>e?`${le(e)}px`:"";function le(e,o=-1){if(typeof e=="number")return e>0&&e<1&&o>0?e*o:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let a=Number(e.substring(0,l)),r=1;if(tt){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return a*=r,a}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))*o;const n=Number(e);return isNaN(n)?0:n}const je="PageStateKey";function Ie(e){const o={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(o.top=le(e.top)),e.left!==null&&e.left!==void 0&&(o.left=le(e.left)),e.bottom!==null&&e.bottom!==void 0&&(o.bottom=le(e.bottom)),e.right!==null&&e.right!==void 0&&(o.right=le(e.right))),o}function Ho(e,o,l={},n=!0,a=-1,r=-1,s=0,i=0){if(e.headerHeight=le(l.headerHeight??o.headerHeight),e.headerPadding=Ie(l.headerPadding??o.headerPadding),e.footerHeight=le(l.footerHeight??o.footerHeight),e.footerPadding=Ie(l.footerPadding??o.footerPadding),e.contentPadding=Ie(l.contentPadding??o.contentPadding),n){const c=l.height??o.height;c?e.height=le(c,r):e.height=le(r)-le(s,r)-le(i,r),e.width=le(l.width??o.width??0,a)}}function Rl(e,o={}){const l={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},o.safeAreaInset??{});a&&(n.safeAreaTop=le(a.top),n.safeAreaBottom=le(a.bottom),n.safeAreaLeft=le(a.left),n.safeAreaRight=le(a.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Ho(n,r,o,!0,s,i,c,d);const m=t.reactive(n),f=e.getForParent(je);f&&(n.height=Xt(e,f),n.width=Qt(e,f),t.watch([()=>f.height,()=>f.width,()=>f.contentPadding,()=>f.headerMounted,()=>f.footerMounted],()=>{m.height=Xt(e,f),m.width=Qt(e,f)}));const h=!f;return t.watch([()=>o.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([g,b,y=-1,v=-1,u=0,p=0])=>{Ho(m,b,o,h,y,v,u,p)}),e.set(je,m),m}function yo(e){return e.get(je)}function Nt(e,o){if(o=o??e.get(je),o&&o.headerMounted){const l=o.safeAreaTop==-1?0:o.safeAreaTop;return o.headerAllHeight??o.headerHeight+l}return 0}function Bt(e,o){if(o=o??e.get(je),o&&o.footerMounted){const l=o.safeAreaBottom==-1?0:o.safeAreaBottom;return o.footerAllHeight??o.footerHeight+l}return 0}function Xt(e,o){if(o=o??e.get(je),o){if(o.contentInnerHeight)return o.contentInnerHeight;const l=Nt(e,o),n=Bt(e,o);return o.height-l-n-(o.contentPadding.top??0)-(o.contentPadding.bottom??0)}return 0}function Qt(e,o){return o=o??e.get(je),o?o.contentInnerWidth??o.width-(o.contentPadding.left??0)-(o.contentPadding.right??0):0}function Cs(e,o){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[o,e]):!1}function ws(e){return!!e.getForParent(je)}var Gt=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Gt||{});function To(e,o){return e==null?!1:typeof o=="function"?o(e):!0}function Ve(e,o,l=1,n){const a=Oe();return a==null?e:l===0?t.computed(()=>{const r=a.getAll(o);for(let i=r.length-1;i>=0;i--){const c=r[i];if(To(c,n))return c}const s=e.value;return To(s,n)?s:null}):t.computed(()=>{const r=e.value;return To(r,n)?r:a?.get(o)})}function $e(e){return Ve(e,"readonly",0,function(l){return he(l)})}function Ce(e){return Ve(e,"disabled",0,function(l){return he(l)})}function qe(e,o="modelValue",l){const n=t.toRef(e,o);let a=n.value;typeof l=="function"&&(a=l(n.value));const r=t.ref(a);return t.watch(n,s=>{if(typeof l=="function"){const i=l(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const Ol=new Map,Zt=new Map;let jo=null;function Ns(e){jo=e}function Fl(e,o,l){if(l){let n=Zt.get(l);n||(n=new Map,Zt.set(l,n)),n.set(e,o)}else Ol.set(e,o)}function It(e,o,l){!l&&jo&&(l=jo(e)??void 0);let n=null;if(l){let a=Zt.get(l);a&&(n=a.get(o))}return n||(n=Ol.get(o)),n}function Bs(e,o){for(let l in e){const n=e[l];Fl(l,n,o)}}function Vs(e){Zt.delete(e)}function As(){return{top:0,left:0,bottom:0,right:0}}function Es(e=0,o=0){if(tt){const l=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:l,height:n-le(e,n)-le(o,n),headerHeight:44,footerHeight:44};return{rootWidth:l,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Ts{packages;_version;get version(){return this._version}constructor(o,l){this.packages=o,this._version=l}install(o,l){l?.install!==!1&&this.packages.forEach(r=>{r.install?o.use(r):r.name&&o.component(r.name,r)});const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=it();if(this.initPageLayout(l,a),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Yt(()=>{const i={...l},c=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=d,this.initPageLayout(i,a)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in l)n.indexOf(r)===-1&&a.set(r,l[r])}initPageLayout(o,l){const n=o.headerBarHeight??0,a=o.footerBarHeight??0,r=Ge({},As(),o.safeAreaInset),s=Es(n,a),i=Ge({},s.pageLayout,o.pageLayout);l=l??it(),l.set("safeAreaInset",r),l.set("headerBarHeight",n),l.set("footerBarHeight",a),l.set("pageLayout",i),l.set("rootWidth",s.rootWidth),l.set("rootHeight",s.rootHeight)}setScopeGetter(o){Ns(o)}setAPI(o,l,n){Fl(o,l,n)}getAPI(o,l,n){return It(o,l,n)}batchSetAPI(o,l){Bs(o,l)}clearScopeAPI(o){Vs(o)}getRootDomain(){return it()}}function O(e){const o="fox-"+e;return{componentName:o,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=n=>{n.component(l.name,l)},t.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,t.defineComponent(l)}}}const $s=(e,o)=>{let l=document.body;const n=e.teleport||"body";n!="body"&&(yl(n)?l=document.querySelector(n):l=e.teleport);const a=document.createElement("view"),r=o.name?o.name+"-":"",s=e.id||new Date().getTime();a.id=r+s;let i={};Wt(o.wrapper)?i=o.wrapper(l,a):i=o.wrapper;const c=t.createApp(i,e),d=o.components;return d&&d.forEach(m=>{c.use(m)}),l.appendChild(a),{instance:c.mount(a),unmount:()=>{c.unmount(),l.removeChild(a)}}},Ul=(e,o)=>e?t.h(e,o):"",ce={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},fe={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Kl={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}},Hl={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"grid"},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},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1}},jl=[];for(const e in Hl)jl.push(e);function Ae(e,o=null){if(o||(o=t.getCurrentInstance()),o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const Ds=Symbol.for("InnerPageScopeKey"),Is=(e,o)=>({inheritAttrs:!0,props:{...ce,...Kl,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}},setup(l,n){const a=fn(l.name,l);if(a){const d=Rl(a,l);Ae({getPageContentHeight:()=>Xt(a,d),getPageContentWidth:()=>Qt(a,d),getPageHeaderHeight:()=>Nt(a,d),getPageFooterHeight:()=>Bt(a,d)});const m=t.inject(Ds,!1);d&&m&&(d.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),i=t.getCurrentInstance(),c=d=>{const m=i?.proxy;m&&typeof m.setNameValidateRules=="function"&&m.setNameValidateRules(d,!0)};return t.watch(()=>l.rules,(d,m)=>{if(!d&&!m)return;const f=t.toRaw(m),h=t.toRaw(d),g=h?Reflect.ownKeys(h):[];(f?Reflect.ownKeys(f):[]).forEach(y=>{g.includes(y)||(h[y]=[])}),c(h)},{deep:!0}),t.onMounted(()=>{if(l.rules){const d=t.toRaw(l.rules);c(d)}}),{classes:r,styles:s}}}),{componentName:qs,create:Ms,scope:gw}=O("page"),zs=Ms(Is(qs));function Ls(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const K=(e,o)=>{const l=e.__vccOpts||e;for(const[n,a]of o)l[n]=a;return l},Wl=K(zs,[["render",Ls]]);function mn(e){const o=t.unref(e);return{width:o.offsetWidth,height:o.offsetHeight}}function pn(e){const o=t.unref(e),l=window.getComputedStyle(o,null),n=parseFloat(l.getPropertyValue("padding-left")),a=parseFloat(l.getPropertyValue("padding-right")),r=parseFloat(l.getPropertyValue("padding-top")),s=parseFloat(l.getPropertyValue("padding-bottom"));return{width:o.clientWidth-n-a,height:o.clientHeight-r-s}}const xs=(e,o,l,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:l},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const s=Oe(),i=s?yo(s):null;i&&(i.headerMounted=!0);const c=t.computed(()=>{const N=e;return{[N]:!0,[`${N}--border`]:a.border,[`${N}--fixed`]:a.fixed,[`${N}--safe-area-inset-top`]:a.safeAreaInsetTop}}),d=a.height!==null&&a.height!==void 0?le(a.height):null,m=t.computed(()=>{const N={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const T=Ie(a.padding??i.headerPadding);return Object.assign(N,T),d&&(i.headerHeight=d),N.height=i.headerHeight,N.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,N.safeAreaTop>0&&(N.top=N.safeAreaTop+(T.top??0),N.height=N.height+N.safeAreaTop),N}if(d&&(N.height=d),a.padding){const T=Ie(a.padding);Object.assign(N,T)}return N}),f=t.ref(null),h=()=>{if(i&&f.value){if(!n){const N=mn(f.value);i.headerAllHeight=N.height}i.headerMounted=!0}};t.onMounted(()=>{h()}),t.onUnmounted(()=>{i&&(i.headerMounted=!1)});const g=t.computed(()=>{const N={};return m.value.height!==null&&m.value.height!==void 0&&(N.height=`${m.value.height}px`),m.value.top!==null&&m.value.top!==void 0&&(N.paddingTop=`${m.value.top}px`),m.value.left!==null&&m.value.left!==void 0&&(N.paddingLeft=`${m.value.left}px`),m.value.right!==null&&m.value.right!==void 0&&(N.paddingRight=`${m.value.right}px`),m.value.bottom!==null&&m.value.bottom!==void 0&&(N.paddingBottom=`${m.value.bottom}px`),N}),b=t.computed(()=>{const N={};return m.value.safeAreaTop!==null&&m.value.safeAreaTop!==void 0&&(N.top=`${m.value.safeAreaTop}px`),N}),y=t.computed(()=>{const N={};return m.value.safeAreaTop!==null&&m.value.safeAreaTop!==void 0&&(N.top=`${m.value.safeAreaTop}px`),N}),v=t.computed(()=>!!a.leftShow),u=t.computed(()=>!(m.value.height!==null&&m.value.height!==void 0&&m.value.height<=0)),p=t.computed(()=>a.titleShow?a.title||a.titleIcon||r.slots.titleIcon||r.slots.default:!1),k=t.computed(()=>a.rightShow?a.rightText||a.rightIcon||r.slots.rightIcon||r.slots.right:!1),S=t.computed(()=>a.leftIcon),A=t.computed(()=>S.value||r.slots.leftIcon),V=t.computed(()=>a.titleIcon),I=t.computed(()=>a.titleIcon||r.slots.titleIcon),B=t.computed(()=>a.rightIcon),C=t.computed(()=>a.rightIcon||r.slots.rightIcon);function w(){r.emit("back")}function L(){r.emit("click-title")}function x(){r.emit("click-right")}function q(){r.emit("click-right-text")}return{headerBarRef:f,classes:c,styles:g,mHeaderShow:u,leftStyles:b,rightStyles:y,mLeftShow:v,mTitleShow:p,mRightShow:k,mLeftIcon:S,hasLeftIcon:A,mTitleIcon:V,hasTitleIcon:I,mRightIcon:B,hasRightIcon:C,handleLeft:w,handleCenter:L,handleRight:x,handleRightText:q}}}),{componentName:Ps,create:Rs,scope:Os}=O("header-bar"),Fs=Rs(xs(Ps,Os,Q.Left,!1)),Us={key:1,class:"fox-header-bar__title"},Ks={key:0,class:"title-text"};function Hs(e,o,l,n,a,r){return e.mHeaderShow?(t.openBlock(),t.createElementBlock("view",{key:0,ref:"headerBarRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:t.normalizeStyle(e.leftStyles)},[t.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:o[0]||(o[0]=(...s)=>e.handleLeft&&e.handleLeft(...s)),class:"left-icon"},[t.renderSlot(e.$slots,"leftIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mLeftIcon)))])])):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[1]||(o[1]=(...s)=>e.handleLeft&&e.handleLeft(...s))},t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0),e.mTitleShow?(t.openBlock(),t.createElementBlock("view",Us,[t.renderSlot(e.$slots,"default",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",Ks,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.hasTitleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[2]||(o[2]=(...s)=>e.handleCenter&&e.handleCenter(...s)),class:"title-icon"},[t.renderSlot(e.$slots,"titleIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mTitleIcon)))])])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),e.mRightShow?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:t.normalizeStyle(e.rightStyles)},[t.renderSlot(e.$slots,"right",{},()=>[e.rightText?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:o[3]||(o[3]=(...s)=>e.handleRightText&&e.handleRightText(...s))},t.toDisplayString(e.rightText),1)):t.createCommentVNode("",!0),e.hasRightIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[4]||(o[4]=(...s)=>e.handleRight&&e.handleRight(...s)),class:"right-icon"},[t.renderSlot(e.$slots,"rightIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mRightIcon)))])])):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0)])],6)):t.createCommentVNode("",!0)}const Yl=K(Fs,[["render",Hs]]);function js(e,o,l=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,a){const r=Oe(),s=r?yo(r):null,i=t.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),c=n.height!==null&&n.height!==void 0?le(n.height):null,d=t.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const b=Ie(n.padding??s.footerPadding);return Object.assign(g,b),c&&(s.footerHeight=c),g.height=s.footerHeight,g.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,g.safeAreaBottom>0&&(g.height=g.height+g.safeAreaBottom,g.bottom=g.safeAreaBottom+(b.bottom??0)),g}if(c&&(g.height=c),n.padding){const b=Ie(n.padding);Object.assign(g,b)}return g}),m=t.ref(null),f=()=>{if(s&&m.value){if(!l){const g=mn(m.value);s.footerAllHeight=g.height}s.footerMounted=!0}};t.onMounted(()=>{f()}),t.onUnmounted(()=>{s&&(s.footerMounted=!1)});const h=t.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=se(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=se(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=se(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=se(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=se(d.value.bottom)),g});return{footerBarRef:m,classes:i,styles:h}}}}const{componentName:Ws,create:Ys,scope:Xs}=O("footer-bar"),Qs=Ys(js(Ws,Xs,!1));function Gs(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"footerBarRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Xl=K(Qs,[["render",Gs]]);function Zs(e,o){return{props:{padding:{type:[Object],required:!1}},setup(l){const n=Oe(),a=t.computed(()=>({[e]:!0})),r=n?yo(n):null,s=t.computed(()=>{const d={};if(n&&r){if(l.padding){const g=Ie(l.padding);Object.assign(r.contentPadding,g)}const m=Nt(n,r),f=Bt(n,r);let h="";if(r.contentHeight?h=`${r.contentHeight}`:h=`${r.height}px`,console.debug("[content]page height:",h),console.debug("[content]header height:",m),console.debug("[content]footer height:",f),console.debug("[content]padding:",r.contentPadding),d.height=h,r.contentPadding.top||m>0){const g=(r&&r.contentPadding&&r.contentPadding.top)??0;d.paddingTop=`${m+g}px`}if(r.contentPadding.bottom||f>0){const g=(r&&r.contentPadding&&r.contentPadding.bottom)??0;d.paddingBottom=`${f+g}px`}return r.contentPadding.left&&(d.paddingLeft=`${r.contentPadding.left}px`),r.contentPadding.right&&(d.paddingRight=`${r.contentPadding.right}px`),d}if(l.padding){const m=Ie(l.padding);m.left&&(d.paddingLeft=`${m.left}px`),m.top&&(d.paddingTop=`${m.top}px`),m.right&&(d.paddingRight=`${m.right}px`),m.bottom&&(d.paddingBottom=`${m.bottom}px`)}return d}),i=t.ref(null),c=()=>{if(r&&i.value){const d=pn(i.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}};return t.onMounted(()=>{c()}),n&&r&&t.watch([()=>Nt(n),()=>Bt(n)],([])=>{c()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:Js,create:_s,scope:yw}=O("content"),ei=_s(Zs(Js));function ti(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Ql=K(ei,[["render",ti]]),ut="GroupStateKey",Gl=Symbol.for("GroupScopeKey");function vo(){return t.inject(Gl,!1)}function ko(e=!0){t.provide(Gl,e)}function oi(e,o={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,o);const a=t.shallowRef(n),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(ut,r),r}function $o(e,o,l=-1,n=-1,a=!1,r,s){const i=e.get(ut);if(!i)return;const c=e.get("groupLayout")??{};l===-1&&(l=c.column??1),n===-1&&(n=c.gutter??0),r||(r=c.minItemWidth??-1),s||(s=c.maxItemWidth??-1);const d=le(r),m=le(s),f=()=>{const h=o===""||o===-1,g=le(o);let b=ue(l);const y=le(n);if(!h){let p=(g-(b-1)*y)/b;for(;m!==-1&&p>m;)b++,p=(g-(b-1)*y)/b;for(;d!==-1&&b>1&&p<d;)b--,p=(g-(b-1)*y)/b}let v=!1;const u=i.layout;u.value.width=o,u.value.column!==b&&(u.value.column=b,v=!0),u.value.gutter!==y&&(u.value.gutter=y,v=!0),v&&t.triggerRef(u)};if(a)f();else{const h=++i.passport;setTimeout(()=>{h===i.passport&&f()},50)}}function bo(e,o=!1){let l;return o?l=e.getForParent(ut):l=e.get(ut),l.layout}function So(e,o=!1){let l;return o?l=e.getForParent(ut):l=e.get(ut),l.order}function Mn(e,o=1){if(o==="stretch")return-1;const l=ue(o);return l===-1?100:100*l/e}function Co(e,o,l=1,n=0,a){const r={};let s=0;a?s=le(a):s=Mn(o.column,l),s>0&&(r.width=`${s}%`);const i=Mn(o.column,n);i>0&&(r["margin-left"]=`${i}%`);const c=o.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function wo(e,o,l=1,n=0){if(l==="stretch"){const c=e.index%o.column,d=c+(o.column-c);return e.index=e.index+(d-c),{"grid-column-start":c+1,"grid-column-end":d+1}}let a=ue(l);if(a===-1){const c=e.index%o.column,d=o.column;return c==0?e.index=e.index+o.column:e.index=e.index+(o.column-c)+o.column,{"grid-column-start":1,"grid-column-end":d+1}}if(a>o.column){const c=e.index%o.column,d=o.column;return c==0?e.index=e.index+o.column:e.index=e.index+(o.column-c)+o.column,{"grid-column-start":1,"grid-column-end":d+1}}const r=ue(n)%o.column;let s=(e.index+r)%o.column,i=s+a;return i>o.column?(s=0,i=s+a,e.index=e.index+(o.column-s)+a):e.index=e.index+r+a,{"grid-column-start":s+1,"grid-column-end":i+1}}function Do(e){let o=e.offsetHeight;if(o<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),o=l.offsetHeight,document.body.removeChild(l)}return o}function ni(e,o,l){if(e<=0)return"1fr";const n=(e-(o-1)*l)/o;return n>0?`${n}px`:"1fr"}function li(e,o,l){return{props:{...ce,...Kl,...Hl},emits:["update:collapse"],setup(n,a){const r=fn(n.name,n,jl),s=oi(r,{type:n.type}),i=vo();ko(!0);const c=t.computed(()=>i&&r?bo(r,!0).value:null),d=t.getCurrentInstance(),m=R=>{const H=d?.proxy;H&&typeof H.setNameValidateRules=="function"&&H.setNameValidateRules(R,!0)};t.watch(()=>n.rules,(R,H)=>{if(!R&&!H)return;const E=t.toRaw(H),D=t.toRaw(R),P=D?Reflect.ownKeys(D):[];(E?Reflect.ownKeys(E):[]).forEach(Z=>{P.includes(Z)||(D[Z]=[])}),m(D)},{deep:!0});const f=e,h=t.computed(()=>{const R={};R.height=q.value;const H=i?So(r,!0):null;if(c.value&&H){if(c.value.type==="grid"){const E=wo(H,c.value,n.span,n.offset);Object.assign(R,E)}else if(c.value.type==="flow"){const E=Co(H,c.value,n.span,n.offset,n.width);Object.assign(R,E)}}else if(n.width){const E=se(n.width);R.width=E}return M.value&&(R["box-sizing"]="content-box"),R}),g=t.computed(()=>n.type==="grid"||n.type==="flow"?{[`${f}--${n.type}`]:!0,[`${f}--${n.type}-justify-${n.justify}`]:!0,[`${f}--${n.type}-align-${n.align}`]:!0,[`${f}--gutter`]:!0}:{[`${f}--${n.type}`]:!0,[`${f}--gutter`]:!0}),b=t.computed(()=>{if(n.type==="grid"){let R="";if(n.columnWidth)R=`repeat(auto-fill, ${n.columnWidth})`;else{const H=ni(V.value,s.layout.value.column,s.layout.value.gutter);R=`repeat(${s.layout.value.column}, ${H})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":R}}}),y=t.toRef(n,"title"),v=t.toRef(n,"gutter"),u=t.toRef(n,"column"),p=t.computed(()=>i?!0:he(n.isWrap)),k=[],S=R=>{k.push(R)},A=()=>{let R=k.length;k.splice(0,R)},V=t.ref(-1),I=R=>{const H=pn(R).width;H>0&&H!==V.value&&(V.value=H)};$o(r,V.value,u.value,v.value,!0,n.minItemWidth,n.maxItemWidth),n.autoLayout&&t.watch([V,u,v],([R,H,E])=>{s.order.index=0,$o(r,R,H,E,!1,n.minItemWidth,n.maxItemWidth)});const B=t.computed(()=>M.value?n.expandText??"":n.collapseText??""),C=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),w=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!M.value,"is-collapse":M.value})),L=t.ref(),x=t.ref(),q=t.computed(()=>T.value||se(n.height)||""),N=t.ref(!1),T=t.ref(""),M=t.ref(!1);let $=-1;const z=(R,H=!0)=>{const E=L.value;if(E&&N.value!==R){if($=$===-1?Do(E):$,M.value=!0,H)if(E.style["will-change"]="height",E.ontransitionend=function(){E.ontransitionend=null,this.style["will-change"]="auto",R||(T.value="",M.value=!1)},R){let D=0;n.collapseHeight?D=n.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(D=Do(x.value)),T.value=`${$}px`,t.nextTick(()=>{T.value=`${D}px`})}else T.value=`${$}px`;else if(R){let D=0;n.collapseHeight?D=n.collapseHeight:x.value&&x.value.classList.contains(`${e}__header`)&&(D=Do(x.value)),T.value=`${D}px`}else M.value=!1,T.value=`${$}px`;N.value=R,a.emit("update:collapse",R)}};t.watch(()=>n.collapse,R=>{z(R)});const F=()=>{U()},U=R=>{R=R??!N.value,z(R)},W=t.ref(0);Ae({toggleCollapse:U,doLayout:()=>{k[0]&&(I(k[0]),$o(r,V.value,u.value,v.value,!0,n.minItemWidth,n.maxItemWidth),W.value=W.value+1)}});let Y=null;t.onMounted(()=>{if(n.rules){const R=t.toRaw(n.rules);m(R)}if(tt&&(z(he(n.collapse),!1),n.autoLayout&&Array.isArray(k)&&k.length>0)){const R=k[0];I(R),window.ResizeObserver&&(Y=new window.ResizeObserver(()=>{I(R)}),Y.observe(R))}}),t.onUnmounted(()=>{Y?.disconnect()});const J=(R,H,E,D)=>{const P={...g.value};return H===0&&(P[`${f}__first`]=!0),E>=D-1&&(P[`${f}__last`]=!0),t.h("div",{ref:S,key:`${H}`,class:P,style:b.value},R)};return()=>{W.value,s.order.index=0;const R=[];let H=0;if(a.slots.header){const D={key:`${H++}`,ref:x,class:{[`${f}__header`]:!0,[`${f}__first`]:!0}},P=t.h("div",D,[a.slots.header()]);R.push(P)}else{const D=[];if(y.value){if(n.showMark){const j={class:{[`${f}__header-mark`]:!0}};n.markColor&&(j.style={background:n.markColor});const Z=t.h("div",j);D.push(Z)}const P=t.h("div",{class:{[`${f}__header-title`]:!0}},[y.value]);D.push(P)}if(a.slots.toolbar&&D.push(a.slots.toolbar()),n.showCollapse){const P=[];if(B.value){const te={class:C.value},G=t.h("span",te,[B.value]);P.push(G)}const j={class:w.value},Z=l(n.collapseIcon,j);if(Z&&P.push(Z),P.length>0){const te=t.h("div",{class:{[`${f}__header-collapse`]:!0},onClick:F},P);D.push(te)}}if(D.length>0){const P={key:`${H++}`,ref:x,class:{[`${f}__header`]:!0,[`${f}__first`]:!0}},j=t.h("div",P,D);R.push(j)}}A();const E=a.slots.default?a.slots.default():[];if(n.type==="grid"){const D=J(E,H++,0,E.length);R.push(D)}else if(n.type==="flow"){const D=J(E,H++,0,E.length);R.push(D)}else for(let D=0;D<E.length;D++){const P=E[D],j=J([P],H++,D,E.length);R.push(j)}if(p.value){const D=n.tag||"div";return t.h(D,{ref:L,prop:n.name,class:{[`${f}`]:!0,"is-collapse":M.value},style:h.value},[R])}else return R}}}}const{componentName:ai,create:ri,scope:si}=O("group"),ii=(e=Q.RectUp,o={})=>t.h(e,o),Zl=ri(li(ai,si,ii));function ci(e){return e===window}const ui=/matrix\((.+)\)/,Jl=e=>{const o=t.unref(e);if(!o)return{x:0,y:0};if(ci(o))return{x:0,y:0};let l=0,n=0,a=o;for(;a!==null;)l+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let r=0,s=0,i=0,c=0;for(a=o;a!==document;){s+=a.scrollTop,r+=a.scrollLeft;const{transform:d}=window.getComputedStyle(a);if(d){const m=ui.exec(d);if(m){let h=m[1].split(/\s*,\s*/);h.length==6&&(i+=Number(h[4]),c+=Number(h[5]))}}a=a.parentNode}return l-=r,n-=s,l+=i,n+=c,{x:l,y:n}};function di(e){return e===window}const Se=e=>{const o=t.unref(e);if(di(o)){const l=o.innerWidth,n=o.innerHeight;return{top:0,left:0,right:l,bottom:n,width:l,height:n}}return o&&o.getBoundingClientRect?o.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class fi{watchedListeners=[];add(o){this.watchedListeners.push(o)}remove(o){const l=this.watchedListeners.indexOf(o);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(o=>{try{o()}catch{}})}}class mi{monitorRegister=new WeakMap;watch(o,l){let n=o.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r||(r=new fi,n.addEventListener("scroll",r.listen),n===document.body&&n.addEventListener("resize",r.listen),this.monitorRegister.set(n,r)),r.add(l),n=n.parentNode}}unwatch(o,l){let n=o.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r&&(r.remove(l),r.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",r.listen),n===document.body&&n.removeEventListener("resize",r.listen))),n=n.parentNode}}}const zn=new mi,_l={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:pi,create:hi}=O("price"),gi=hi({props:{..._l},setup(e){const o=t.computed(()=>({[pi]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),n=t.computed(()=>pe(e.price)==0?"":sn(e.price,e.decimalLength,!0,ue(e.digits),e.separator)),a=t.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:o,showSymbol:l,intText:a,decimalText:r}}}),yi=["innerHTML"],vi=["innerHTML"];function ki(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,yi)):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,vi)):t.createCommentVNode("",!0)],2)}const Je=K(gi,[["render",ki]]),{componentName:xt,create:bi}=O("hint-text"),Si=bi({components:{Price:Je},props:{..._l,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},popupHeight:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,o){const l=t.ref({x:0,y:0}),n=t.ref(0),a=t.ref(0),r=t.ref(e.placement),s=10,i=4,c=t.ref(0),d=t.computed(()=>({[xt]:!0})),m=t.ref(null),f=(V,I,B=10)=>{if(!tt||!e.autoFit||I===!1||!V)return;const C=Jl(e.reference);l.value=C,C.y<e.reference.offsetHeight&&(r.value="bottom");const w=Se(e.reference);n.value=w.width,a.value=w.height,setTimeout(()=>{if(!m.value)return;const L=document.documentElement.clientWidth||document.body.clientWidth,x=m.value.offsetWidth;let q=L-(x+le(l.value.x));q<0?c.value=q:c.value=0},B)},h=wt(()=>{f(e.message,e.visible)},10),g=t.computed(()=>e.visible&&b.value),b=t.ref(!0),y=wt(V=>{const I=V[0];I&&(b.value=I.isIntersecting)},10),v=new IntersectionObserver(y);t.watch([()=>e.message,()=>e.visible],([V,I])=>{f(V,I)}),t.onMounted(()=>{f(e.message,e.visible),zn.watch(e.reference,h),v.observe(e.reference)}),t.onBeforeMount(()=>{zn.unwatch(e.reference,h),v.unobserve(e.reference),v.disconnect()});const u=t.computed(()=>{const V={left:`${le(l.value.x)+c.value}px`,height:se(e.popupHeight)};return e.placement==="bottom"?V.top=se(l.value.y+a.value+s):V.top=se(l.value.y-e.popupHeight-s-i),e.autoFit?V["min-width"]=se(n.value):V.width=se(n.value),V}),p=t.computed(()=>({[`${xt}__content`]:!0})),k=t.computed(()=>({})),S=t.computed(()=>({[`${xt}__arrow`]:!0,[`${xt}__arrow-${e.placement}`]:!0})),A=t.computed(()=>e.placement==="bottom"?{top:`${-s}px`,left:`${le(-c.value+20)}px`}:{top:"100%",left:`${le(-c.value+20)}px`});return{show:g,tipRef:m,classes:d,styles:u,textClasses:p,textStyles:k,arrowClasses:S,arrowStyles:A}}}),Ci={key:1,class:"text"};function wi(e,o,l,n,a,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createBlock(t.Transition,{name:"hint-text-fade"},{default:t.withCtx(()=>[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"},null,8,["price"])):(t.openBlock(),t.createElementBlock("span",Ci,t.toDisplayString(e.message),1))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])]),_:1})}const No=K(Si,[["render",wi]]);class ea{seed=new Date().getTime();constructor(o){this.seed=o??new Date().getTime()}get(){let o=this.seed++;return this.seed<0&&(this.seed=0),o}}const Wo={},Ni=new ea,ct=new Map,Yo=e=>{if(e){const o=document.getElementById(e);ct.delete(e),o&&o.parentNode?.removeChild(o)}else{for(const o of ct.keys()){const l=document.getElementById(o);l&&l.parentNode?.removeChild(l)}ct.clear()}},Bi=e=>{const o=document.getElementById(e.id);if(o){const l=ct.get(e.id);l?e={...Wo,...l,...e}:e={...Wo,...e};const n=t.createVNode(No,e);return t.render(n,o),e.id}},Vi=e=>{e.unmount=Yo;let o;if(e.id){if(o=e.id,ct.has(o))return Bi(e)}else o=`hinttext_${Ni.get()}`;e={...Wo,...e},e.id=o,ct.set(o,e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(No,e);return t.render(n,l),document.body.appendChild(l),o},Ai=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ot={show(e,o,l={},n=!0){return n&&Yo(),Ai(o),Vi({...l,message:o,reference:e})},hide(e){Yo(e)},install(e){e.config.globalProperties.$hintText=Ot}},{componentName:Ln,create:Ei}=O("item"),Ti=Ei({inheritAttrs:!0,props:{...ce,...fe},emits:["appear","disappear"],setup(e,o){const l=e.prop??o.attrs.name;we({componentName:Ln,validate:!1},l);const n=Oe(),a=vo();ko(!1);const r=t.computed(()=>a&&n?bo(n,!1).value:null),s=Ln,i=t.ref(null),c=t.computed(()=>{const E={[s]:!0,[`${s}__gutter`]:r.value&&r.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:e.hasBorder};if(E[e.errorMarkClass]=!!L.value,E[e.warnMarkClass]=!!C.value,E[e.infoMarkClass]=!!I.value,typeof i.value=="function"){const D=i.value(l);E[D]=!0}else if(typeof i.value=="string"){const D=i.value;E[D]=!0}return E}),d=t.computed(()=>{const E={},D=a&&n?So(n,!1):null;if(r.value&&D)if(r.value.type==="grid"){const P=wo(D,r.value,e.span,e.offset);Object.assign(E,P)}else if(r.value.type==="flow"){const P=Co(D,r.value,e.span,e.offset,e.width);Object.assign(E,P)}else return e.width&&(E.width=se(e.width)),E;else e.width&&(E.width=se(e.width));return E}),m=t.ref(null),f=t.computed({get:()=>m.value??he(e.isRequired),set:E=>{m.value=E}}),h=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof o.slots.label=="function"),g=Ve(t.toRef(e,"labelPosition"),"labelPosition",Gt.Near),b=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),y=t.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${b.value}`]:!0})),v=t.computed(()=>({label:!0,[`label--${b.value}`]:!0})),u=Ve(t.toRef(e,"labelWidth"),"labelWidth",Gt.Near),p=t.computed(()=>u&&u.value?{width:se(u.value)}:{}),k=t.computed(()=>({"label--string":!0,"label--required":f.value})),S=t.computed(()=>({content:!0,[e.contentClass]:!0})),A=t.computed(()=>({...e.contentStyle})),V=t.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ae({setRequired(E){f.value=E},setErrorTip(E){V.errorTip=E},setErrorIcon(E){V.errorIcon=E},setWarnTip(E){V.warnTip=E},setWarnIcon(E){V.warnIcon=E},setInfoTip(E){V.infoTip=E},setInfoIcon(E){V.infoIcon=E},setCustomClassName(E){i.value=E}});const I=t.computed(()=>e.infoTip||V.infoTip),B=t.computed(()=>e.infoIcon||V.infoIcon),C=t.computed(()=>e.warnTip||V.warnTip),w=t.computed(()=>e.warnIcon||V.warnIcon),L=t.computed(()=>e.errorTip||V.errorTip),x=t.computed(()=>e.errorIcon||V.errorIcon),q=t.computed(()=>L.value?"error":C.value?"warn":I.value?"info":""),N=t.computed(()=>q.value.length>0),T=t.computed(()=>q.value==="error"?L.value:q.value==="warn"?C.value:q.value==="info"?I.value:""),M=t.computed(()=>q.value==="error"?x.value:q.value==="warn"?w.value:q.value==="info"?B.value:null),$=t.computed(()=>{let E={[`${s}__tip`]:!0,[`${s}__tip--${q.value}`]:!0};return q.value==="error"&&e.errorClass?E[`${e.errorClass}`]=!0:q.value==="warn"&&e.warnClass?E[`${e.warnClass}`]=!0:q.value==="info"&&e.infoClass&&(E[`${e.infoClass}`]=!0),E}),z=t.computed(()=>{let E={};return g&&g.value==="top"||!h.value?E["padding-left"]="0px":u&&u.value&&(E["padding-left"]=se(u.value)),E}),F=()=>t.h(M.value,{width:12,height:12}),U=t.computed(()=>o.slots.fixedTip),W=t.computed(()=>({[`${s}__fixed-tip`]:!0})),X=t.ref();let Y="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([E,D,P,j])=>{X.value&&(E&&!be(D)?Y?Ot.show(X.value,D,{...j,id:Y,type:P},!0):Y=Ot.show(X.value,D,{...j,type:P},!0):Ot.hide(Y))});let J=null;const R=()=>{J||!X.value||(J=new IntersectionObserver(E=>{let D=!1;for(let P of E)if(P.intersectionRatio>0){D=!0,D&&o.emit("appear",P);break}D||o.emit("disappear")}),J.observe(X.value))},H=()=>{!J||!X.value||(J.unobserve(X.value),J=null)};return t.watch(()=>he(e.appearListen),E=>{E?R():H()}),t.onMounted(()=>{he(e.appearListen)&&R()}),t.onUnmounted(H),{classes:c,styles:d,mainClasses:y,hasLabel:h,labelClasses:v,labelStyles:p,labelStringClasses:k,contentClasses:S,contentStyles:A,contentRef:X,hasTip:N,mTip:T,mIcon:M,renderIcon:F,tipClasses:$,tipStyles:z,hasFixedTip:U,fixedTipClasses:W}}}),$i=["prop"],Di={key:0,class:"fox-item__tip--icon"},Ii={class:"fox-item__tip--text"};function qi(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createElementBlock("div",Di,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))])):t.createCommentVNode("",!0),t.createElementVNode("div",Ii,t.toDisplayString(e.mTip),1)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,$i)}const Ne=K(Ti,[["render",qi]]);function Mi(e,o){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(l,n){const a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:l.span==="stretch",[`${a}__${l.align}`]:!0})),s=Oe(),i=vo();ko(!1);const c=t.computed(()=>{const d={};if(i&&s){const m=bo(s,!1),f=So(s,!1);if(m.value&&f)if(m.value.type==="grid"){const h=wo(f,m.value,l.span,l.offset);Object.assign(d,h)}else if(m.value.type==="flow"){const h=Co(f,m.value,l.span,l.offset,l.width);Object.assign(d,h)}else l.width&&(d.width=se(l.width))}else l.width&&(d.width=se(l.width));return d});return()=>{const d=[];if(n.slots.default){const f=n.slots.default();if(l.divide)for(let h=0;h<f.length;h++){if(h>0){const g=t.h("div",{class:{[`${a}__divide`]:!0}});d.push(g)}d.push(f[h])}else Reflect.apply([].push,d,f)}const m={class:r.value,style:c.value};return t.h("div",m,d)}}}}const{componentName:zi,create:Li,scope:vw}=O("row-item"),ta=Li(Mi(zi));function xi(e,o){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(l,n){const a=Oe(),r=vo();ko(!1);const s=t.computed(()=>r&&a?bo(a,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:l.span==="stretch"})),d=t.computed(()=>{const m={},f=r&&a?So(a,!1):null;if(s.value&&f)if(s.value.type==="grid"){const h=wo(f,s.value,l.span,l.offset);Object.assign(m,h)}else if(s.value.type==="flow"){const h=Co(f,s.value,l.span,l.offset,l.width);Object.assign(m,h)}else return l.width&&(m.width=se(l.width)),m;else l.width&&(m.width=se(l.width));return m});return()=>{const m={class:c.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?t.h("div",m,n.slots.default()):t.h("div",m)}}}}const{componentName:Pi,create:Ri,scope:kw}=O("slot-item"),oa=Ri(xi(Pi)),xn={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 Oi(e,o,l,n){return{props:{...ce,...fe,...xn},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=$e(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),{toLocaleRefs:d}=re.useFoxI18n(o),m=d(a,["placeholder"]),f=t.ref(!1),h=qe(a,"modelValue"),g=e,b=t.computed(()=>({[g]:!0,[`${g}__disabled`]:s.value,[`${g}__readonly`]:i.value})),y=Ve(t.computed(()=>a.textAlign),"textAlign"),v=t.computed(()=>f.value?{textAlign:"left"}:{textAlign:y.value??"right"}),u=N=>{let M=N.target.value;a.type==="digit"&&(M=Uo(M,!0)),a.type==="number"&&(M=Uo(M,!1)),a.maxLength&&M.length>Number(a.maxLength)&&(M=M.slice(0,Number(a.maxLength))),h.value=M,c("update:modelValue",M,N),c("change",M,N)};let p=qe(a,"hintText"),k=t.ref(!1);const S=N=>{let M=N.target.value;f.value=!0,be(p.value)||(k.value=!0),c("focus",M,N)},A=N=>{setTimeout(()=>{k.value&&(k.value=!1),f.value=!1},0);let M=N.target.value;a.maxLength&&M.length>Number(a.maxLength)&&(M=M.slice(0,Number(a.maxLength))),c("blur",M,N)},V=t.computed(()=>({[`${g}__append`]:!0})),I=t.computed(()=>pe(a.unit)>0),B=t.computed(()=>!x.value),C=t.computed(()=>({hidden:!B.value})),w=N=>{h.value="",c("update:modelValue","",N),c("change","",N),c("clear","")},L=t.computed(()=>he(a.clearable)&&!s.value&&!i.value),x=t.computed(()=>{let N=pe(h.value)>0;return he(a.clearable)&&N&&f.value}),q=t.computed(()=>({action:!0,hidden:!x.value}));return()=>{const N={class:b.value,style:v.value,type:a.type,maxlength:a.maxLength,placeholder:m.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:u,onFocus:S,onBlur:A},T=[],M=t.h("input",N);T.push(M);const $=[];if(L.value){const J={class:["action-icon"]},R=t.h(n,J),H={class:q.value,onClick:w},E=t.h("view",H,{default:()=>[R]});$.push(E)}if(I.value){const J=t.h("view",{class:C.value},[a.unit]);$.push(J)}const z={class:V.value},F=t.h("view",z,{default:()=>$});T.push(F);const U={default:()=>T};if(r.slots.default){const J=r.slots.default();U.label=()=>J}if(r.slots.prepend){const J=r.slots.prepend();U.prepend=()=>J}if(r.slots.append){const J=r.slots.append();U.append=()=>J}const X={...El(a,xn),hintText:p.value,hintVisible:k.value};return t.h(l,X,U)}}}}const{componentName:Fi,create:Ui,scope:Ki}=O("input-item"),na=Ui(Oi(Fi,Ki,Ne,Q.CloseLittle));function Pn(e,o=0){let l=`${e}`,n=l.indexOf(".");if(n==-1)return l;let a=n;for(let r=l.length-1;r>=n;r--)if(l.charAt(r)!="0"){a=r;break}return a-n<o?a=n+o+1:a!=n&&(a+=1),a>l.length?l=l.padEnd(a,"0"):l=l.substring(0,a),l}function Rn(e,o,l=20){if(typeof o=="string"&&(o=ue(o)),o==1||o==-1)return`${e}`;if(o==0)return"0";if(o>0){let n=pl(`${e}`,`${o}`);return Pn(n)}else{let n=rn(`${e}`,hl(`${o}`),20);return Pn(n)}}function Hi(e,o=-1,l=!1,n=3,a=","){return sn(e,o,l,n,a)}function On(e,o,l,n,a=!0){if(e=="")return"";if(e=gl(e),o=ue(o),o==1)return e;if(n)e=Rn(e,o),l&&(e=="0"&&a?e=`${e}.`.padEnd(ue(l)+2,"0"):e=rn(e,1,ue(l)));else{let r=-1*o;e=Rn(e,r)}return e}function Fn(e,o){let l={maxValid:!0,minValid:!0,message:""};if(o.min!==void 0){let n=he(o.minInclude),a=Ro(e,o.min);if(n&&a==-1||!n&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";l.message=r.replace("{0}",o.min),l.minValid=!1}}if(o.max!=null){let n=he(o.maxInclude),a=Ro(e,o.max);(n&&a==1||!n&&(a==0||a==1))&&(l.maxValid=!1)}return l}function ji(e,o,l,n){return{props:{...ce,...fe,clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=$e(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=t.ref(!1),m=qe(a,"modelValue"),f=t.ref("");t.watch([()=>m.value,()=>a.rates,()=>a.precision],([z,F,U])=>{if(be(z)){f.value="";return}const W=On(z,F,U,!1);f.value!==W&&(f.value=W)},{immediate:!0});const h=t.computed(()=>{let z="";return d.value&&(z=f.value),z}),{t:g}=re.useFoxI18n(o),b=t.computed(()=>{let z=a.placeholder??"";return!d.value&&!be(f.value)?z=Hi(f.value,a.decimalLength,a.autoPadding,a.digits,a.separator):z=g(["placeholder",z]),z}),y=e,v=t.computed(()=>({[y]:!0,[`${y}__disabled`]:s.value,[`${y}__placeholder`]:f.value.length>0})),u=Ve(t.computed(()=>a.textAlign),"textAlign"),p=t.computed(()=>d.value?{textAlign:"left"}:{textAlign:u.value??"right"}),k=t.ref(""),S=t.computed(()=>{let z=k.value;return be(z)&&(z=a.errorTip??""),z}),A=t.ref(""),V=t.ref(!1),I=z=>{let U=z.target.value;if(be(U)){f.value="",m.value="",c("update:modelValue","",z),c("change","",z),he(a.showTip)&&V.value&&(V.value=!1);return}if(U.length>=2){let W=U;if(W.charAt(0)=="-"&&(W=W.substring(1)),W.length>=2&&W.charAt(0)=="0"&&W.charAt(1)!="."){t.triggerRef(f);return}}if(U!="-"){if(!Bl(U)){t.triggerRef(f);return}if(a.integerLength!=-1&&Vl(U)>Number(a.integerLength)){t.triggerRef(f);return}if(a.decimalLength&&a.decimalLength!=-1&&Al(U)>Number(a.decimalLength)){t.triggerRef(f);return}let W=Fn(U,a);if(W.maxValid===!1){k.value=W.message,t.triggerRef(f);return}}else if(a.min!=null&&ue(a.min)>=0){t.triggerRef(f);return}A.value=U,he(a.showTip)&&(V.value=U.length>0),f.value=U,m.value=On(U,a.rates,a.precision,!0),c("update:modelValue",m.value,z),c("change",m.value,z)},B=z=>{if(d.value=!0,he(a.showTip)){let F=f.value;be(F)&&(F=a.hintText),be(F)||(A.value=F,V.value=!0)}k.value="",c("focus",m.value,z)},C=z=>{if(setTimeout(()=>{d.value=!1,he(a.showTip)&&V.value===!0&&(V.value=!1)},0),!be(f.value)){let F=Fn(f.value,a);if(F.minValid===!1||F.maxValid===!1){k.value=F.message;return}}c("update:modelValue",m.value,z),c("blur",m.value,z)},w=t.computed(()=>({[`${y}__append`]:!0})),L=t.computed(()=>pe(a.unit)>0),x=t.computed(()=>!M.value),q=t.computed(()=>({hidden:!x.value})),N=z=>{m.value="",c("update:modelValue","",z),c("change","",z),c("clear","")},T=t.computed(()=>he(a.clearable)&&!s.value&&!i.value),M=t.computed(()=>{let z=pe(m.value)>0;return he(a.clearable)&&z&&d.value}),$=t.computed(()=>({action:!0,hidden:!M.value}));return()=>{let z={class:v.value,style:p.value,type:"digit",maxlength:a.maxLength,placeholder:b.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:I,onFocus:B,onBlur:C},F=[],U=t.h("input",z);F.push(U);let W=[];if(T.value){const E={class:["action-icon"]},D=t.h(n,E),P={class:$.value,onClick:N},j=t.h("view",P,{default:()=>[D]});W.push(j)}if(L.value){const E=t.h("view",{class:q.value},[a.unit]);W.push(E)}const X={class:w.value},Y=t.h("view",X,{default:()=>W});F.push(Y);const J={default:()=>F};if(r.slots.default){let E=r.slots.default();J.label=()=>E}if(r.slots.prepend){let E=r.slots.prepend();J.prepend=()=>E}if(r.slots.append){let E=r.slots.append();J.append=()=>E}let R={...a,errorTip:S.value,hintText:A.value,hintVisible:V.value,hintType:"number"};return t.h(l,R,J)}}}}const{componentName:Wi,create:Yi,scope:Xi}=O("money-item"),la=Yi(ji(Wi,Xi,Ne,Q.CloseLittle)),Xo={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:Qi,create:Gi,scope:Zi}=O("textarea"),Ji=Gi({props:{...Xo},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:o}){let{toLocaleRefs:l}=re.useFoxI18n(Zi);const n=l(e,["placeholder"]),a=t.ref(),r=t.computed(()=>{const h=Qi;return{[h]:!0,[`${h}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const s=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let h=a.value;h.style.height="auto";let g=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:b,minHeight:y}=e.autosize;b!==void 0&&(g=Math.min(g,b)),y!==void 0&&(g=Math.max(g,y))}g&&(h.style.height=g+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,g)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),o("update:modelValue",h,g),o("change",h,g)};return{...n,textareaRef:a,classes:r,styles:s,change:h=>{const g=h.target;c(g.value,h)},focus:h=>{e.disabled||e.readonly||o("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let b=h.target.value;c(b,h),o("blur",{value:b,event:h})}}}}),_i=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],ec={key:0,class:"fox-textarea__limit"};function tc(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:t.normalizeStyle(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:o[0]||(o[0]=(...s)=>e.change&&e.change(...s)),onBlur:o[1]||(o[1]=(...s)=>e.blur&&e.blur(...s)),onFocus:o[2]||(o[2]=(...s)=>e.focus&&e.focus(...s)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,_i),e.limitShow?(t.openBlock(),t.createElementBlock("view",ec,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const hn=K(Ji,[["render",tc]]);function oc(e,o,l,n){return{props:{...ce,...fe,...Xo},emits:["update:modelValue","change","blur","focus"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=$e(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=qe(a,"modelValue"),m=y=>{d.value=y,c("update:modelValue",y,{}),c("change",y,{})};let f=qe(a,"hintText"),h=t.ref(!1);const g=y=>{be(f.value)||(h.value=!0),c("focus",d.value,y)},b=y=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",d.value,y)};return()=>{const v={...ye(a,Xo),disabled:s.value,readonly:i.value,value:d.value,"onUpdate:modelValue":m,onFocus:g,onBlur:b},u=[],p=t.h(n,v);u.push(p);const k={default:()=>u};if(r.slots.default){const V=r.slots.default();k.label=()=>V}const S=ye(a,fe,ce);return t.h(l,S,k)}}}}const{componentName:nc,create:lc,scope:ac}=O("textarea-item"),aa=lc(oc(nc,ac,Ne,hn)),ot={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},ra=2e3;let Un=ra;const rc=(e,o)=>({components:o,props:{...ot},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:n}){const a=t.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),r=t.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),s=t.computed(()=>({zIndex:a.zIndex,transitionDuration:`${l.duration}s`,...l.style})),i=t.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),c=()=>{l.zIndex!==ra&&(Un=Number(l.zIndex)),n("update:visible",!0),a.zIndex=++Un,l.destroyOnClose&&(a.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+l.duration*1e3)},m=y=>{n("click-pop",y)},f=y=>{y.stopPropagation(),n("click-close-icon",y),n("update:visible",!1)},h=y=>{n("click-overlay",y),l.closeOnClickOverlay&&n("update:visible",!1)},g=y=>{n("opend",y)},b=y=>{n("closed",y)};return t.watch(()=>l.visible,y=>{l.visible?c():d()}),t.watchEffect(()=>{a.closed=l.closeable}),{...t.toRefs(a),popStyle:s,transitionName:i,classes:r,onClick:m,onClickCloseIcon:f,onClickOverlay:h,onOpened:g,onClosed:b}}});let pt=0;const Kn="fox-overflow-hidden",Hn=()=>tt?document.body:{classList:[]},sc=e=>[()=>{if(e())try{!pt&&Hn().classList.add(Kn),pt++}catch{}},()=>{if(e()&&pt)try{pt--,!pt&&Hn().classList.remove(Kn)}catch{}}],ic={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:cc,create:uc}=O("overlay"),dc=uc({props:{...ic},emits:["click","update:visible"],setup(e,{emit:o}){const[l,n]=sc(()=>e.lockScroll),a=t.computed(()=>({[cc]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watchEffect(()=>{e.visible?l():n()}),{classes:a,style:r,onClick:i=>{o("click",i),e.closeOnClickOverlay&&o("update:visible",!1)}}}});function fc(e,o,l,n,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const _e=K(dc,[["render",fc]]),{componentName:mc,create:pc}=O("popup"),hc=pc(rc(mc,{[_e.name]:_e,Close:Q.Close}));function gc(e,o,l,n,a,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:o[1]||(o[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[0]||(o[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const ie=K(hc,[["render",gc]]),jn=10;function yc(e,o){return e>o&&e>jn?"horizontal":o>e&&o>jn?"vertical":""}function Fe(){const e=t.ref(0),o=t.ref(0),l=t.ref(0),n=t.ref(0),a=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),d=t.ref(0),m=t.ref(""),f=()=>m.value==="vertical",h=()=>m.value==="horizontal",g=()=>{s.value=0,i.value=0,c.value=0,d.value=0,m.value="",l.value=0};return{move:v=>{const u=v.touches[0];s.value=u.clientX-e.value,i.value=u.clientY-o.value,a.value=u.clientX,r.value=u.clientY,c.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-l.value,m.value||(m.value=yc(c.value,d.value))},start:v=>{g(),e.value=v.touches[0].clientX,o.value=v.touches[0].clientY,l.value=Date.now()},reset:g,startX:e,startY:o,startTime:l,duration:n,moveX:a,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:d,direction:m,isVertical:f,isHorizontal:h}}const sa={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},Qo={...ot,...sa,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let ia=36;function vc(){return ia}function kc(e){ia=e}function De(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function Go(e,o){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?o[e.childrenKey]:o.children??null}function bc(e,o,l){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(o[e.childrenKey]=l),o.children=l}function et(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function Wn(e,o){return typeof e.itemOptions=="function"?e.columnOptions(o):e.columnOptions}let Sc=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const a=It(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Te(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function Cc(){const e=t.getCurrentInstance();return new Sc(e.proxy)}function Yn(e,o,l){const n=De(e,o),a=De(e,l);if(n!==a)return!1;const r=et(e,o),s=et(e,l);return r===s}function wc(e,o,l,n){if(l.length==0)return[];Array.isArray(o)||(o=[o]);const a=[],r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<o.length&&s<l.length;s++){const i=o[s];let d=l[s].findIndex(m=>{if(r==="text")return De(e,m)===i;if(r==="value"){let f=et(e,m);return f==null&&(f=De(e,m)),f===i}else if(r==="item")return Yn(e,m,i)});if(d==-1)break;a.push(d)}else{let s=l[0];for(let i=0;i<o.length;i++){const c=o[i];let d=s.findIndex(f=>{if(r==="text")return De(e,f)===c;if(r==="value"){let h=et(e,f);return h==null&&(h=De(e,f)),h===c}else if(r==="item")return Yn(e,f,c)});if(d==-1)break;a.push(d);const m=Go(e,s[d]);if(!Array.isArray(m))break;s=m}}return a}function Xn(e,o,l,n){if(l.length==0)return null;const a={texts:[],values:[]},r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<o.length&&s<l.length;s++){const i=l[s];let c=o[s];c<0&&c>=i.length&&(c=0);const d=i[c],m=De(e,d);if(a.texts.push(m),r==="text")a.values.push(m);else if(r==="value"){let f=et(e,d);f==null&&(f=m),a.values.push(f)}else a.values.push(d)}else{let s=l[0];for(let i=0;i<o.length;i++){let c=o[i];c<0&&c>=s.length&&(c=0);const d=s[c],m=De(e,d);if(a.texts.push(m),r==="text")a.values.push(m);else if(r==="value"){let f=et(e,d);f==null&&(f=m),a.values.push(f)}else{const f=Object.assign({},d);f.children=null,a.values.push(f)}if(!Array.isArray(d.children))break;s=d.children}}return a}function Qn(e){return{text:e,value:e}}const Nc=15,Bc=300,Vc=200,{create:Ac}=O("picker-column");function Ec(e){e.stopPropagation()}function Tc(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&Ec(e)}const $c=Ac({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},...sa},emits:["click","change","update:modelValue"],setup(e,{emit:o}){const l=t.computed(()=>({"fox-picker__list":!0})),n=t.computed(()=>({height:`${ue(e.visibleItemCount)*+e.itemHeight}px`})),a=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=B=>B>=f.currIndex+8||B<=f.currIndex-8,i=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${f.deg})`,top:`${r.value}px`})),c=B=>`transform: rotate3d(1, 0, 0, ${-f.rotation*B}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${f.scrollDistance+r.value}px, 0)`})),m=t.ref(null),f=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=t.toRef(e,"source"),g=B=>De(e,B),b=B=>et(e,B),y=Fe(),v=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},u=(B,C=!1,w=!1)=>{if(f.currIndex=B,C){const L=()=>{f.moving=!1,o("update:modelValue",B),o("change",B)};w?f.transitionEndTrigger=L:L()}},p=(B,C,w)=>{let L=B+f.startDistance;if(C==="end"){const x=-(h.value.length-1)*e.itemHeight;L<x&&(L=x,(!w||w<=0)&&(w=e.swipeDuration)),L>0&&(L=0,(!w||w<=0)&&(w=e.swipeDuration));let q=Math.abs(Math.round(-L/e.itemHeight));const N=-q*e.itemHeight,T=`${(q+1)*f.rotation}deg`,M=w?w>0:!1;u(q,!0,M),k(N,C,w,T)}else{let x=(-L/e.itemHeight+1)*f.rotation;const q=(h.value.length+1)*f.rotation,N=0;if(x=Math.min(Math.max(x,N),q),e.threeDimensional&&(x<N||x>q))return;k(L,null,void 0,`${x}deg`)}},k=(B=0,C,w=Vc,L)=>{C==="end"?f.scrollTime=w:f.scrollTime=0,f.deg=L,f.scrollDistance=B},S=(B,C)=>(B=Math.abs(B/C)/.003*(B<0?-1:1),B),A=B=>{if(!e.readonly){if(f.moving){const C=m.value,{transform:w}=window.getComputedStyle(C);f.scrollDistance=+w.slice(7,w.length-1).split(", ")[5]}f.startDistance=f.scrollDistance,y.start(B),f.transitionEndTrigger=null}},V=B=>{e.readonly||(f.moving=!0,y.move(B),y.isVertical()&&(f.moving=!0,Tc(B,!0)),p(y.deltaY.value,"",0))},I=()=>{if(e.readonly)return;const B=y.deltaY.value,C=y.duration.value;if(C<Bc&&Math.abs(B)>Nc){const L=S(B,C);p(L,"end",e.swipeDuration)}else p(B,"end",0)};return t.watch(()=>e.modelValue,B=>{if(f.currIndex!==B){f.currIndex=B;const C=-B*e.itemHeight;p(C)}}),t.onMounted(()=>{const B=-e.modelValue*e.itemHeight;p(B)}),{classes:l,styles:n,contentClasses:a,source:h,itemText:g,itemValue:b,...t.toRefs(f),roller:m,getItemText:De,onTouchStart:A,onTouchMove:V,onTouchEnd:I,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:d,stopMomentum:v}}}),Dc={key:1,class:"fox-picker__item-tile"};function Ic(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:o[4]||(o[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",Dc,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Gn=K($c,[["render",Ic]]),{create:qc,componentName:Mc,scope:zc}=O("picker"),Lc=qc({components:{[Gn.name]:Gn,[ie.name]:ie},props:{...Qo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:o}){const{toLocaleRefs:l,t:n}=re.useFoxI18n(zc),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(vc());t.watch(()=>e.visible,C=>{C&&s.value<=0&&setTimeout(()=>{if(r.value){const w=Se(r.value);s.value=w.height,kc(s.value)}},50)});const i=t.computed(()=>({[Mc]:!0})),c=Cc(),d=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([C,w])=>{if(C){let L=await c.load("picker",C,w);if(L.length>0){let x=L[0];if(Array.isArray(x)){if(typeof x[0]=="string"){let q=L,N=[];q.forEach(T=>{let M=T.map($=>Qn($));N.push(M)}),m.value=N}else m.value=L;d.value="multipleColumn"}else if(typeof x=="string"){let q=L,N=[],T=q.map(M=>Qn(M));N.push(T),m.value=N,d.value="singleColumn"}else{const q=Go(e,x);Array.isArray(q)?(d.value="cascade",m.value=[L]):(d.value="singleColumn",m.value=[L])}}else m.value=[]}},{immediate:!0});const f=t.ref([]),h=t.ref(e.modelValue),g=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([C,w])=>{let L=wc(e,C,w,d.value);if(!Re(L,g.value)){g.value=L;let x=Xn(e,L,w,d.value);x&&(f.value=x.texts,o("update:text",f.value))}});const b=t.ref(e.visible);t.watch(()=>e.visible,C=>{b.value=C});const y=C=>{let w=Wn(e,C);return Te(w)?w.defaultIndex??0:0},v=C=>{if(e.readonly===!0)return!0;let w=Wn(e,C);return Te(w)?w.readonly??!1:!1},u=(C,w,L=!1)=>{let x=g.value;x[C]=w;for(let N=0;N<C;N++)x[N]==null&&(x[N]=y(N));if(d.value==="cascade")for(let N=C+1;N<k.value.length;N++){let T=y(N);N<x.length?x[N]=T:x.push(T)}else for(let N=x.length;N<k.value.length;N++){let T=y(N);x.push(T)}g.value=x;let q=Xn(e,x,m.value,d.value);if(q&&(f.value=q.texts,h.value=q.values),L)if(d.value==="singleColumn"){let N=q&&q.values.length>0?q.values[0]:"";o("change",N)}else o("change",q?.values)},p=C=>C<g.value.length?g.value[C]:y(C),k=t.computed(()=>{if(m.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return m.value;let C=[],w=0,L=m.value[0],x=0;for(;;){let q=L.map(M=>{let $=Object.assign({},M);return bc(e,$,null),$});C.push(q),w>=g.value.length?x=0:x=g.value[w],(x<0||x>=L.length)&&(x=0);let N=L[x];const T=Go(e,N);if(!Array.isArray(T))break;L=T,w++}return C}),S=t.computed(()=>ue(+e.visibleItemCount-1)/2*s.value);return{...a,pickerLineRef:r,classes:i,columns:k,dataType:d,show:b,itemHeight:s,top:S,isReadonly:v,getIndex:p,change:(C,w)=>{u(C,w,!0)},close:()=>{o("close"),o("update:visible",!1)},confirm:()=>{if(e.readonly===!0){o("update:visible",!1);return}let C=m.value.length-1;for(;C>=0&&!(g.value[C]===null||g.value[C]===void 0);C--);if(C>=0&&u(C,0,!1),d.value==="singleColumn"){let w=h.value.length>0?h.value[0]:"";e.readonly||(o("update:modelValue",w),o("update:text",f.value)),o("confirm",w)}else e.readonly||(o("update:modelValue",h.value),o("update:text",f.value)),o("confirm",h.value);o("update:visible",!1)},clear:()=>{if(e.readonly===!0){o("update:visible",!1);return}d.value==="singleColumn"?(o("update:modelValue",""),o("change","")):(o("update:modelValue",[]),o("change",[])),o("clear",""),o("update:visible",!1)}}}}),xc={class:"fox-picker__bar"},Pc={class:"fox-picker__title"},Rc={class:"fox-picker__bar__action"},Oc={class:"fox-picker__column"};function Fc(e,o,l,n,a,r){const s=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":o[3]||(o[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",xc,[t.createElementVNode("view",Pc,t.toDisplayString(e.title),1),t.createElementVNode("view",Rc,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:o[0]||(o[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:o[1]||(o[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:o[2]||(o[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Oc,[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,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":m=>e.change(d,m),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const Vt=K(Lc,[["render",Fc]]);function Uc(e,o,l,n,a,r,s=!0){return{props:{...ce,...fe,...Qo,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}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=$e(t.computed(()=>i.readonly)),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(o),g=h(i,["placeholder"]),b=t.ref(!1),y=qe(i,"modelValue"),v=t.ref([]),u=t.computed(()=>Array.isArray(v.value)?v.value.join(" "):v.value),p="fox-input-item",k=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ve(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>({textAlign:S.value??"right"})),V=t.ref(!1),I=()=>{V.value=!0},B=X=>{V.value=X},C=X=>{y.value=X,f("update:modelValue",X,{}),f("change",X,{})},w=X=>{let J=X.target.value;b.value=!0,f("focus",J,X)},L=X=>{setTimeout(()=>{b.value=!1},0);let J=X.target.value;i.maxLength&&J.length>Number(i.maxLength)&&(J=J.slice(0,Number(i.maxLength))),f("blur",J,X)},x=t.computed(()=>({[`${p}__append`]:!0})),q=t.computed(()=>pe(i.unit)>0),N=t.computed(()=>pe(i.unit)>0&&!b.value),T=t.computed(()=>({hidden:!N.value})),M=X=>{y.value="",f("update:modelValue","",X),f("change","",X),f("clear","")},$=t.computed(()=>i.clearable&&!d.value&&!m.value),z=t.computed(()=>pe(y.value)>0&&b.value),F=X=>{z.value?M(X):I()},U=t.computed(()=>z.value&&$.value?n:a),W=t.computed(()=>({action:!0}));return()=>{const X={class:k.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:g.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:I,onFocus:w,onBlur:L};s&&(X.disabled=!0);const Y=[],J=t.h("input",X);Y.push(J);const R=[],H={class:["action-icon"]},E=t.h(U.value,H),D={class:W.value,onClick:F},P=t.h("view",D,{default:()=>[E]});if(R.push(P),q.value){const ae=t.h("view",{class:T.value},[i.unit]);R.push(ae)}const j={class:x.value},Z=t.h("view",j,{default:()=>R});Y.push(Z);const te={default:()=>Y};if(c.slots.default){const ae=c.slots.default();te.label=()=>ae}if(c.slots.prepend){const ae=c.slots.prepend();te.prepend=()=>ae}if(c.slots.append){const ae=c.slots.append();te.append=()=>ae}const G=ye(i,Qo);G.disabled=!1,G.readonly=d.value||m.value,G.visible=V.value,G["onUpdate:visible"]=B,G.modelValue=y.value,G["onUpdate:modelValue"]=C,G.text=v.value,G["onUpdate:text"]=ae=>{v.value=ae};const ee=t.h(r,G);te.hide=()=>[ee];const oe=ye(i,fe,ce);return t.h(l,oe,te)}}}}const{componentName:Kc,create:Hc,scope:jc}=O("picker-item"),ca=Hc(Uc(Kc,jc,Ne,Q.CloseLittle,Q.ArrowRight,Vt,!1)),Ft=(e,o,l)=>e.map(n=>{const{value:a="value",text:r="text",children:s="children"}=l??{},{[a]:i,[r]:c,[s]:d,...m}=n,f={loading:!1,...m,level:o?(o&&o.level||0)+1:0,value:i,text:c,children:d,_parent:o};return f.children&&f.children.length&&(f.children=Ft(f.children,f,l)),f}),ua=(e,o)=>{let l=0,n;for(;(n=e[l++])&&o(n)!==!0;)n.children&&n.children.length&&ua(n.children,o)},Wc={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Yc=(e,o)=>{const l={...Wc,...o||{}},{topId:n,idKey:a,pidKey:r,sortKey:s}=l;let i=[],c={};return e.forEach(d=>{d={...d};const{[a]:m,[r]:f}=d,h=c[f]=c[f]||[];!i.length&&f===n&&(i=h),h.push(d),d.children=c[m]||(c[m]=[])}),s&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((m,f)=>m[s]-f[s])}),c=null,i},Xc=/scroll|auto|overlay/i,da=window;function Qc(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Zo(e,o=da){let l=e;for(;l&&l!==o&&Qc(l);){const{overflowY:n}=window.getComputedStyle(l);if(Xc.test(n))return l;l=l.parentNode}return o}function fa(e,o=da){const l=t.ref();return t.onMounted(()=>{e.value&&(l.value=Zo(e.value,o))}),l}const{create:Gc}=O("sticky"),Zc=Gc({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:o}){const l=t.ref(),n=t.ref(),a=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>a.fixed?{height:`${a.height}px`}:{}),i=t.computed(()=>a.fixed?{[e.position]:`${r.value}px`,transform:a.transform?`translate3d(0, ${a.transform}px, 0)`:void 0,position:a.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const d=e.container;if(!l.value&&!d)return;const m=Se(l),f=n.value,h=Se(f),g=Se(d);a.height=m.height;const b=()=>{let v=!1;if(e.position==="top")v=d?r.value>m.top&&g.bottom>0:r.value>m.top;else{const u=document.documentElement.clientHeight;v=d?g.bottom>0&&u-r.value-h.height>g.top:u-r.value<m.bottom}return v},y=()=>{if(d)if(e.position==="top"){const v=g.bottom-r.value-h.height;return v<0?v:0}else{const v=document.documentElement.clientHeight,u=g.bottom-(v-r.value);return u<0?u:0}return 0};a.transform=y(),a.fixed=b()};return t.watch(()=>a.fixed,d=>{o("change",d)}),t.onMounted(()=>{c(),Zo(l.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Zo(l.value).removeEventListener("scroll",c)}),{rootRef:l,rootStyle:s,stickyRef:n,stickyStyle:i}}});function Jc(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const Jt=K(Zc,[["render",Jc]]),_c=(e,o,l,n)=>{const a=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(l&&l.getEnv()!==l.ENV_TYPE.WEB){let h=await n(a,l);r.value.width=h.width||0,r.value.height=h.height||0}else r.value.width=a.value?.clientWidth||0,r.value.height=a.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=Fe();let d="";const m=(h,g)=>{let b=h;switch(e.direction=="horizontal"?(d=h>0?"right":"left",b=Math.abs(b)/r.value.width*100):(d=g>0?"bottom":"top",b=g,b=Math.abs(b)/r.value?.height*100),b>85&&(b=85),d){case"left":case"top":o.isEnd()&&(b=0,i.moving=!1);break;case"right":case"bottom":b=-b,o.isBegin()&&(b=0,i.moving=!1);break}i.offset=b};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,m(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(h.preventDefault(),h.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(h.preventDefault(),h.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,d){case"left":case"top":i.offset>35&&o.next();break;case"right":case"bottom":i.offset<-35&&o.prev();break}}},touchState:i,tabsContentRef:a}};class eu{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:tu}=O("tabs"),ou=tu({components:{[Jt.name]:Jt,JoySmile:Q.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:o,slots:l}){const n=t.ref(null);let a;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=C=>{C.forEach((w,L)=>{let x=w.type;if(x=x.name||x,x=="fox-tab-pane"){let q=new eu;if(w.props?.title||w.props?.["pane-key"]||w.props?.paneKey){let N=Ze(w.props?.["pane-key"]),T=N=="number"||N=="string"?String(w.props?.["pane-key"]):null,M=Ze(w.props?.paneKey),$=M=="number"||M=="string"?String(w.props?.paneKey):null;q.title=w.props?.title,q.paneKey=T||$||String(L),q.disabled=w.props?.disabled}r.value.push(q)}else{if(w.children==" ")return;Array.isArray(w.children)&&s(w.children)}})},i=t.ref(e.modelValue||0),c=C=>{let w=r.value.findIndex(L=>L.paneKey==C);r.value.length==0||w==-1||(i.value=w)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),f=t.ref([]),h=C=>{const w=m.value,L=f.value;if(!w||!L||!L[i.value])return;const x=L[i.value];let q=0;e.direction==="vertical"?q=x.offsetTop-w.offsetTop+10-(w.offsetHeight-x.offsetHeight)/2:q=x.offsetLeft-(w.offsetWidth-x.offsetWidth)/2,g(w,q,C?0:.3,e.direction)},g=(C,w,L,x)=>{let q=0;const N=x==="horizontal"?C.scrollLeft:C.scrollTop,T=L===0?1:Math.round(L*1e3/16);function M(){x==="horizontal"?C.scrollLeft+=(w-N)/T:C.scrollTop+=(w-N)/T,++q<T&&We(M)}M()},b=(C=l.default?.())=>{r.value=[],C=C?.filter(w=>typeof w.children!="string"),C&&C.length&&s(C),c(e.modelValue),t.nextTick(()=>{h()})},y=C=>{a=C.fixed};t.watch(()=>l.default?.(),C=>{b(C)});const v=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,C=>{if(c(C),h(),a){let w=Se(n.value).top+v(),L=Math.ceil(w-e.top);window.scrollTo({top:L,behavior:"smooth"})}}),t.onMounted(b),t.onActivated(b);const u={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,u.updateValue(r.value[i.value])},prev:()=>{i.value-=1,u.updateValue(r.value[i.value])},updateValue:C=>{o("update:modelValue",C.paneKey),o("change",C)},tabChange:(C,w)=>{o("click",C),!(C.disabled||i.value==w)&&(i.value=w,u.updateValue(C))},setTabItemRef:(C,w)=>{f.value[w]=C}},{tabsContentRef:p,touchState:k,touchMethods:S}=_c(e,u),A=t.computed(()=>{let C=i.value*100;k.moving&&(C+=k.offset);let w={transform:e.direction=="horizontal"?`translate3d(-${C}%, 0, 0)`:`translate3d( 0,-${C}%, 0)`,transitionDuration:k.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(w={}),w}),V=t.computed(()=>({background:e.background})),I=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),B=t.computed(()=>{if(!e.titleGutter)return{};const C=se(e.titleGutter);return e.direction==="vertical"?{marginTop:C,marginBottom:C}:{marginLeft:C,marginRight:C}});return{navRef:m,tabsContentRef:p,titles:r,contentStyle:A,tabsNavStyle:V,titleStyle:B,tabsActiveStyle:I,container:n,getScrollY:d,onStickyScroll:y,...u,...S}}}),nu=["onClick"],lu=["onClick"];function au(e,o,l,n,a,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,d),key: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,nu))),128))],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(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,d),key:c.paneKey,ref_for:!0,ref:m=>e.setTabItemRef(m,d)},[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,lu))),128))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:o[0]||(o[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:o[1]||(o[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:o[2]||(o[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:o[3]||(o[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const _t=K(ou,[["render",au]]),{create:ru}=O("tab-pane"),su=ru({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o}){const l=t.inject("tabsOpiton"),n=t.computed(()=>({display:l.animatedTime.value==0&&e.paneKey!=l.activeKey.value?"none":void 0}));return{...l,paneStyle:n}}});function iu(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const eo=K(su,[["render",iu]]);class Zn{nodes;config;constructor(o,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=Ft(o,null,this.config)}updateChildren(o,l){l?l.children=Ft(o,l,this.config):this.nodes=Ft(o,null,this.config)}getNodeByValue(o){let l;return ua(this.nodes,n=>{if(n.value===o)return l=n,!0}),l}getPathNodesByValue(o){if(!o.length)return[];const l=[];let n=this.nodes;for(;n&&n.length;){const a=n.find(r=>r.value===o[r.level]);if(!a)break;l.push(a),n=a.children}return l}isLeaf(o,l){const{leaf:n,children:a}=o,r=Array.isArray(a)&&!!a.length;return n||!r&&!l}hasChildren(o,l){if(this.isLeaf(o,l))return!1;const{children:a}=o;return Array.isArray(a)&&!!a.length}}const{create:cu,scope:uu}=O("cascader-pane"),du=cu({components:{Loading:Q.Loading,Checklist:Q.Checklist,[_t.name]:_t,[eo.name]:eo},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:o}){const l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),n=t.ref(0),a=t.ref(!1),r=t.ref(e.modelValue),s=t.ref(new Zn([],{})),i=t.ref([]),c=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),d=new Map;let m;const f=async()=>{d.clear(),i.value=[],n.value=0,a.value=!1,m=null;let{options:u}=e;l.value.convertConfig&&(u=Yc(u,l.value.convertConfig)),s.value=new Zn(u,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),c.value&&!s.value.nodes.length&&await g({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:s.value.nodes,selectedNode:null}],h()},h=async()=>{const u=r.value;if(u===void 0||!s.value.nodes.length)return;if(u.length===0){n.value=0,i.value=[{nodes:s.value.nodes,selectedNode:null}];return}let p=u;if(c.value&&Array.isArray(u)&&u.length){p=[];let k=s.value.nodes.find(S=>S.value===u[0]);if(k){p=[k.value],a.value=!0;const S=await u.slice(1).reduce(async(A,V)=>{const I=await A;await g(I);const B=I?.children?.find(C=>C.value===V);return B&&p.push(V),Promise.resolve(B)},Promise.resolve(k));await g(S),a.value=!1}}p.length&&u===e.modelValue&&s.value.getPathNodesByValue(p).map((S,A)=>{n.value=A,v.handleNode(S,!0)})},g=async u=>{if(!u)return;if(!l.value.lazyLoad){u.leaf=!0;return}if(s.value.isLeaf(u,c.value)||s.value.hasChildren(u,c.value))return;u.loading=!0;const p=u.root?null:u;let k=d.get(u);k||(k=new Promise(A=>{l.value.lazyLoad?.(u,A)}),d.set(u,k));const S=await k;Array.isArray(S)&&S.length>0?s.value.updateChildren(S,p):u.leaf=!0,u.loading=!1,d.delete(u)},b=u=>{const p=u.map(k=>k.value);r.value=p,o("change",p,u),o("update:modelValue",p,u)},{t:y}=re.useFoxI18n(uu),v={async handleNode(u,p){const{disabled:k,loading:S}=u;if(!(!p&&k||!i.value[n.value])){if(s.value.isLeaf(u,c.value)){if(u.leaf=!0,i.value[n.value].selectedNode=u,i.value=i.value.slice(0,u.level+1),!p){const A=i.value.map(V=>V.selectedNode);b(A),o("pathChange",A)}return}if(s.value.hasChildren(u,c.value)){const A=u.level+1;if(i.value[n.value].selectedNode=u,i.value=i.value.slice(0,A),i.value.push({nodes:u.children||[],selectedNode:null}),n.value=A,!p){const V=i.value.map(I=>I.selectedNode);o("pathChange",V)}return}m=u,!S&&(await g(u),m===u&&(i.value[n.value].selectedNode=u,v.handleNode(u,p)))}},handleTabClick(u){m=null,n.value=Number(u.paneKey)},formatTabTitle(u){return u.selectedNode?u.selectedNode.text:y("select")},isSelected(u,p){return u.selectedNode&&u.selectedNode.value===p.value}};return t.watch([l,()=>e.options],()=>{f()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,u=>{u!==r.value&&(r.value=u,h())}),t.watch(()=>e.visible,u=>{u&&Array.isArray(r.value)&&r.value.length>0&&h()}),{panes:i,initLoading:a,tabsCursor:n,...v}}}),fu={role:"menu",class:"fox-cascader__pane"},mu=["aria-checked","aria-disabled","onClick"],pu={class:"fox-cascader__item__title"},hu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function gu(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-tab-pane"),d=t.resolveComponent("fox-tabs");return t.openBlock(),t.createBlock(d,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":o[0]||(o[0]=m=>e.tabsCursor=m),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(m,f)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(m),key:f},{default:t.withCtx(()=>[t.createElementVNode("view",fu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.nodes,h=>(t.openBlock(),t.createElementBlock("view",{key:h.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(m,h),disabled:h.disabled}]),"aria-checked":e.isSelected(m,h),"aria-disabled":h.disabled||void 0,role:"menuitemradio",onClick:g=>e.handleNode(h,!1)},[t.createElementVNode("view",pu,t.toDisplayString(h.text),1),h.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,mu))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[hu]),_:1}))]),_:1},8,["modelValue","onClick"])}const Jn=K(du,[["render",gu]]),{create:yu}=O("cascader"),vu=yu({components:{[Jn.name]:Jn,[ie.name]:ie},props:{...ot,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:o}){const l=t.ref(e.modelValue),n=t.computed({get(){return e.visible},set(s){o("update:visible",s)}}),a=(s,i)=>{l.value=s,n.value=!1,o("change",s,i),o("update:modelValue",s)},r=s=>{o("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==l.value&&(l.value=s)}),{onChange:a,onPathChange:r,innerValue:l,innerVisible:n}}}),ku=["innerHTML"];function bu(e,o,l,n,a,r){const s=t.resolveComponent("fox-cascader-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":o[0]||(o[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,ku)):t.createCommentVNode("",!0),t.createVNode(s,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(s,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}const gn=K(vu,[["render",bu]]);function At(e,o){const l=e.textKey??"text";return o[l]??""}function Et(e,o){const l=e.valueKey??"value";return o[l]}function ma(e,o){const l=e.childrenKey??"children";return o[l]}function Pt(e,o=[]){const l={texts:[],values:[]};for(let n=0;n<o.length;n++){const a=o[n],r=At(e,a),s=Et(e,a);l.texts.push(r),l.values.push(s??"")}return l}function pa(e,o,l,n,a=[]){const r=l[n];for(let s=0;s<o.length;s++)if(At(e,o[s])===r){const c=Et(e,o[s])??"",d={[e.textKey]:r,[e.valueKey]:c};a.push(d);const m=ma(e,o[s]);Array.isArray(m)&&pa(e,m,l,n+1,a);return}}function ha(e,o,l,n,a=[]){const r=l[n];for(let s=0;s<o.length;s++)if(Et(e,o[s])===r){const c=At(e,o[s])??"",d={[e.textKey]:c,[e.valueKey]:r};a.push(d);const m=ma(e,o[s]);Array.isArray(m)&&ha(e,m,l,n+1,a);return}}function Io(e,o,l){if(o===l)return!0;if(o.length!==l.length)return!1;for(let n=0;n<o.length;n++){const a=At(e,o[n]),r=At(e,l[n]);if(a!==r)return!1;const s=Et(e,o[n]),i=Et(e,l[n]);if(s!==i)return!1}return!0}let Su=class{proxy;constructor(o){this.proxy=o}async load(o,l){const n="cascader";if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=It(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Te(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Cu(){const e=t.getCurrentInstance();return new Su(e.proxy)}function wu(e,o,l,n,a,r,s=!1){return{props:{...ce,...fe,modelValue:{type:[Array,String]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}},emits:["update:modelValue","change","pathChange","blur","focus","clear"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=$e(t.computed(()=>i.readonly)),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(o),g=h(i,["placeholder"]),b=t.ref(!1),y=Cu(),v=t.ref([]);t.watch([()=>i.source,()=>i.params],async([H,E])=>{H&&(v.value=await y.load(H,E))},{immediate:!0});const u=t.ref([]),p=t.computed(()=>Array.isArray(u.value)?u.value.join(" "):u.value),k=t.ref([]),S=t.ref([]);t.watch([()=>i.modelValue],async([H])=>{if(i.lazy===!0){S.value.length==0&&(u.value=Array.isArray(H)?H:[],k.value=Array.isArray(H)?H:[]);return}if(i.valueType==="item"){let E=H;if(!Io(i,E,S.value)){S.value=E;let D=Pt(i,E);u.value=D.texts,k.value=D.values}}else if(i.valueType==="text"){let E=H,D=[];if(pa(i,v.value,E,0,D),!Io(i,D,S.value)){S.value=D;let P=Pt(i,D);E.value=P.texts,k.value=P.values}}else{let E=[];if(ha(i,v.value,H,0,E),!Io(i,E,S.value)){S.value=E;let D=Pt(i,E);u.value=D.texts,k.value=D.values}}},{immediate:!0});const A="fox-input-item",V=t.computed(()=>({[A]:!0,[`${A}__disabled`]:d.value})),I=Ve(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>({textAlign:I.value??"right"})),C=t.ref(!1),w=()=>{d.value===!0||m.value===!0||(C.value=!0)},L=H=>{C.value=H},x=(H,E)=>{let D=E.map(j=>{if(j==null)return j;let Z={...j};return Reflect.deleteProperty(Z,"text"),Z[i.textKey]=j.text??"",Reflect.deleteProperty(Z,"value"),Z[i.valueKey]=j.value??"",Z});S.value=D;let P=Pt(i,D);u.value=P.texts,k.value=P.values,i.valueType==="text"?(f("change",u.value,D),f("update:modelValue",u.value)):i.valueType==="item"?(f("change",D,D),f("update:modelValue",D)):(f("change",k.value,D),f("update:modelValue",k.value))},q=H=>{let E=H.map(D=>{if(D==null)return D;let P={...D};return Reflect.deleteProperty(P,"text"),P[i.textKey]=D.text??"",Reflect.deleteProperty(P,"value"),P[i.valueKey]=D.value??"",P});f("pathChange",E)},N=H=>{b.value=!0,f("focus",k.value,H)},T=H=>{setTimeout(()=>{b.value=!1},0),f("blur",k.value,H)},M=t.computed(()=>({[`${A}__append`]:!0})),$=t.computed(()=>pe(i.unit)>0),z=t.computed(()=>pe(i.unit)>0&&!b.value),F=t.computed(()=>({hidden:!z.value})),U=H=>{S.value=[],u.value=[],k.value=[],f("update:modelValue",[],H),f("change",[],H),f("clear",[])},W=t.computed(()=>i.clearable&&!d.value&&!m.value),X=t.computed(()=>{let H=k.value&&k.value.length>0;return i.clearable&&H&&b.value}),Y=H=>{X.value?U(H):w()},J=t.computed(()=>X.value&&W.value?n:a),R=t.computed(()=>({action:!0}));return()=>{const H={class:V.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:g.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:w,onFocus:N,onBlur:T};s&&(H.disabled=!0);const E=[],D=t.h("input",H);E.push(D);const P=[],j={class:["action-icon"]},Z=t.h(J.value,j),te={class:R.value,onClick:Y},G=t.h("view",te,{default:()=>[Z]});if(P.push(G),$.value){const Ee=t.h("view",{class:F.value},[i.unit]);P.push(Ee)}const ee={class:M.value},oe=t.h("view",ee,{default:()=>P});E.push(oe);const de={default:()=>E};if(c.slots.default){const Ee=c.slots.default();de.label=()=>Ee}if(c.slots.prepend){const Ee=c.slots.prepend();de.prepend=()=>Ee}if(c.slots.append){const Ee=c.slots.append();de.append=()=>Ee}let ae={};ae.visible=C.value,ae["onUpdate:visible"]=L,ae.modelValue=k.value,ae.onChange=x,ae.onPathChange=q,ae.options=v.value,ae.title=i.title,ae.lazy=i.lazy,ae.lazyLoad=i.lazyLoad,ae.valueKey=i.valueKey,ae.textKey=i.textKey,ae.childrenKey=i.childrenKey,ae.convertConfig=i.convertConfig;const Mt=t.h(r,ae);de.hide=()=>[Mt];const ke=ye(i,fe,ce);return t.h(l,ke,de)}}}}const{componentName:Nu,create:Bu,scope:Vu}=O("cascader-item"),ga=Bu(wu(Nu,Vu,Ne,Q.CloseLittle,Q.ArrowRight,gn,!1));var Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ke(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ya={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){var l=1e3,n=6e4,a=36e5,r="millisecond",s="second",i="minute",c="hour",d="day",m="week",f="month",h="quarter",g="year",b="date",y="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|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,p={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("_")},k=function(q,N,T){var M=String(q);return!M||M.length>=N?q:""+Array(N+1-M.length).join(T)+q},S={s:k,z:function(q){var N=-q.utcOffset(),T=Math.abs(N),M=Math.floor(T/60),$=T%60;return(N<=0?"+":"-")+k(M,2,"0")+":"+k($,2,"0")},m:function q(N,T){if(N.date()<T.date())return-q(T,N);var M=12*(T.year()-N.year())+(T.month()-N.month()),$=N.clone().add(M,f),z=T-$<0,F=N.clone().add(M+(z?-1:1),f);return+(-(M+(T-$)/(z?$-F:F-$))||0)},a:function(q){return q<0?Math.ceil(q)||0:Math.floor(q)},p:function(q){return{M:f,y:g,w:m,d,D:b,h:c,m:i,s,ms:r,Q:h}[q]||String(q||"").toLowerCase().replace(/s$/,"")},u:function(q){return q===void 0}},A="en",V={};V[A]=p;var I=function(q){return q instanceof L},B=function q(N,T,M){var $;if(!N)return A;if(typeof N=="string"){var z=N.toLowerCase();V[z]&&($=z),T&&(V[z]=T,$=z);var F=N.split("-");if(!$&&F.length>1)return q(F[0])}else{var U=N.name;V[U]=N,$=U}return!M&&$&&(A=$),$||!M&&A},C=function(q,N){if(I(q))return q.clone();var T=typeof N=="object"?N:{};return T.date=q,T.args=arguments,new L(T)},w=S;w.l=B,w.i=I,w.w=function(q,N){return C(q,{locale:N.$L,utc:N.$u,x:N.$x,$offset:N.$offset})};var L=function(){function q(T){this.$L=B(T.locale,null,!0),this.parse(T)}var N=q.prototype;return N.parse=function(T){this.$d=function(M){var $=M.date,z=M.utc;if($===null)return new Date(NaN);if(w.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var F=$.match(v);if(F){var U=F[2]-1||0,W=(F[7]||"0").substring(0,3);return z?new Date(Date.UTC(F[1],U,F[3]||1,F[4]||0,F[5]||0,F[6]||0,W)):new Date(F[1],U,F[3]||1,F[4]||0,F[5]||0,F[6]||0,W)}}return new Date($)}(T),this.$x=T.x||{},this.init()},N.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},N.$utils=function(){return w},N.isValid=function(){return this.$d.toString()!==y},N.isSame=function(T,M){var $=C(T);return this.startOf(M)<=$&&$<=this.endOf(M)},N.isAfter=function(T,M){return C(T)<this.startOf(M)},N.isBefore=function(T,M){return this.endOf(M)<C(T)},N.$g=function(T,M,$){return w.u(T)?this[M]:this.set($,T)},N.unix=function(){return Math.floor(this.valueOf()/1e3)},N.valueOf=function(){return this.$d.getTime()},N.startOf=function(T,M){var $=this,z=!!w.u(M)||M,F=w.p(T),U=function(D,P){var j=w.w($.$u?Date.UTC($.$y,P,D):new Date($.$y,P,D),$);return z?j:j.endOf(d)},W=function(D,P){return w.w($.toDate()[D].apply($.toDate("s"),(z?[0,0,0,0]:[23,59,59,999]).slice(P)),$)},X=this.$W,Y=this.$M,J=this.$D,R="set"+(this.$u?"UTC":"");switch(F){case g:return z?U(1,0):U(31,11);case f:return z?U(1,Y):U(0,Y+1);case m:var H=this.$locale().weekStart||0,E=(X<H?X+7:X)-H;return U(z?J-E:J+(6-E),Y);case d:case b:return W(R+"Hours",0);case c:return W(R+"Minutes",1);case i:return W(R+"Seconds",2);case s:return W(R+"Milliseconds",3);default:return this.clone()}},N.endOf=function(T){return this.startOf(T,!1)},N.$set=function(T,M){var $,z=w.p(T),F="set"+(this.$u?"UTC":""),U=($={},$[d]=F+"Date",$[b]=F+"Date",$[f]=F+"Month",$[g]=F+"FullYear",$[c]=F+"Hours",$[i]=F+"Minutes",$[s]=F+"Seconds",$[r]=F+"Milliseconds",$)[z],W=z===d?this.$D+(M-this.$W):M;if(z===f||z===g){var X=this.clone().set(b,1);X.$d[U](W),X.init(),this.$d=X.set(b,Math.min(this.$D,X.daysInMonth())).$d}else U&&this.$d[U](W);return this.init(),this},N.set=function(T,M){return this.clone().$set(T,M)},N.get=function(T){return this[w.p(T)]()},N.add=function(T,M){var $,z=this;T=Number(T);var F=w.p(M),U=function(Y){var J=C(z);return w.w(J.date(J.date()+Math.round(Y*T)),z)};if(F===f)return this.set(f,this.$M+T);if(F===g)return this.set(g,this.$y+T);if(F===d)return U(1);if(F===m)return U(7);var W=($={},$[i]=n,$[c]=a,$[s]=l,$)[F]||1,X=this.$d.getTime()+T*W;return w.w(X,this)},N.subtract=function(T,M){return this.add(-1*T,M)},N.format=function(T){var M=this,$=this.$locale();if(!this.isValid())return $.invalidDate||y;var z=T||"YYYY-MM-DDTHH:mm:ssZ",F=w.z(this),U=this.$H,W=this.$m,X=this.$M,Y=$.weekdays,J=$.months,R=function(P,j,Z,te){return P&&(P[j]||P(M,z))||Z[j].slice(0,te)},H=function(P){return w.s(U%12||12,P,"0")},E=$.meridiem||function(P,j,Z){var te=P<12?"AM":"PM";return Z?te.toLowerCase():te},D={YY:String(this.$y).slice(-2),YYYY:this.$y,M:X+1,MM:w.s(X+1,2,"0"),MMM:R($.monthsShort,X,J,3),MMMM:R(J,X),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:R($.weekdaysMin,this.$W,Y,2),ddd:R($.weekdaysShort,this.$W,Y,3),dddd:Y[this.$W],H:String(U),HH:w.s(U,2,"0"),h:H(1),hh:H(2),a:E(U,W,!0),A:E(U,W,!1),m:String(W),mm:w.s(W,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:F};return z.replace(u,function(P,j){return j||D[P]||F.replace(":","")})},N.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},N.diff=function(T,M,$){var z,F=w.p(M),U=C(T),W=(U.utcOffset()-this.utcOffset())*n,X=this-U,Y=w.m(this,U);return Y=(z={},z[g]=Y/12,z[f]=Y,z[h]=Y/3,z[m]=(X-W)/6048e5,z[d]=(X-W)/864e5,z[c]=X/a,z[i]=X/n,z[s]=X/l,z)[F]||X,$?Y:w.a(Y)},N.daysInMonth=function(){return this.endOf(f).$D},N.$locale=function(){return V[this.$L]},N.locale=function(T,M){if(!T)return this.$L;var $=this.clone(),z=B(T,M,!0);return z&&($.$L=z),$},N.clone=function(){return w.w(this.$d,this)},N.toDate=function(){return new Date(this.valueOf())},N.toJSON=function(){return this.isValid()?this.toISOString():null},N.toISOString=function(){return this.$d.toISOString()},N.toString=function(){return this.$d.toUTCString()},q}(),x=L.prototype;return C.prototype=x,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",d],["$M",f],["$y",g],["$D",b]].forEach(function(q){x[q[1]]=function(N){return this.$g(N,q[0],q[1])}}),C.extend=function(q,N){return q.$i||(q(N,L,C),q.$i=!0),C},C.locale=B,C.isDayjs=I,C.unix=function(q){return C(1e3*q)},C.en=V[A],C.Ls=V,C.p={},C})})(ya);var Au=ya.exports;const Me=Ke(Au);var va={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){var l={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(y){return(y=+y)+(y>68?1900:2e3)},d=function(y){return function(v){this[y]=+v}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(y){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var u=v.match(/([+-]|\d\d)/g),p=60*u[1]+(+u[2]||0);return p===0?0:u[0]==="+"?-p:p}(y)}],f=function(y){var v=i[y];return v&&(v.indexOf?v:v.s.concat(v.f))},h=function(y,v){var u,p=i.meridiem;if(p){for(var k=1;k<=24;k+=1)if(y.indexOf(p(k,0,v))>-1){u=k>12;break}}else u=y===(v?"pm":"PM");return u},g={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:[a,function(y){this.milliseconds=10*+y}],SSS:[/\d{3}/,function(y){this.milliseconds=+y}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[a,d("day")],Do:[s,function(y){var v=i.ordinal,u=y.match(/\d+/);if(this.day=u[0],v)for(var p=1;p<=31;p+=1)v(p).replace(/\[|\]/g,"")===y&&(this.day=p)}],M:[r,d("month")],MM:[a,d("month")],MMM:[s,function(y){var v=f("months"),u=(f("monthsShort")||v.map(function(p){return p.slice(0,3)})).indexOf(y)+1;if(u<1)throw new Error;this.month=u%12||u}],MMMM:[s,function(y){var v=f("months").indexOf(y)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(y){this.year=c(y)}],YYYY:[/\d{4}/,d("year")],Z:m,ZZ:m};function b(y){var v,u;v=y,u=i&&i.formats;for(var p=(y=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,w,L){var x=L&&L.toUpperCase();return w||u[L]||l[L]||u[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(q,N,T){return N||T.slice(1)})})).match(n),k=p.length,S=0;S<k;S+=1){var A=p[S],V=g[A],I=V&&V[0],B=V&&V[1];p[S]=B?{regex:I,parser:B}:A.replace(/^\[|\]$/g,"")}return function(C){for(var w={},L=0,x=0;L<k;L+=1){var q=p[L];if(typeof q=="string")x+=q.length;else{var N=q.regex,T=q.parser,M=C.slice(x),$=N.exec(M)[0];T.call(w,$),C=C.replace($,"")}}return function(z){var F=z.afternoon;if(F!==void 0){var U=z.hours;F?U<12&&(z.hours+=12):U===12&&(z.hours=0),delete z.afternoon}}(w),w}}return function(y,v,u){u.p.customParseFormat=!0,y&&y.parseTwoDigitYear&&(c=y.parseTwoDigitYear);var p=v.prototype,k=p.parse;p.parse=function(S){var A=S.date,V=S.utc,I=S.args;this.$u=V;var B=I[1];if(typeof B=="string"){var C=I[2]===!0,w=I[3]===!0,L=C||w,x=I[2];w&&(x=I[2]),i=this.$locale(),!C&&x&&(i=u.Ls[x]),this.$d=function(M,$,z){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*M);var F=b($)(M),U=F.year,W=F.month,X=F.day,Y=F.hours,J=F.minutes,R=F.seconds,H=F.milliseconds,E=F.zone,D=new Date,P=X||(U||W?1:D.getDate()),j=U||D.getFullYear(),Z=0;U&&!W||(Z=W>0?W-1:D.getMonth());var te=Y||0,G=J||0,ee=R||0,oe=H||0;return E?new Date(Date.UTC(j,Z,P,te,G,ee,oe+60*E.offset*1e3)):z?new Date(Date.UTC(j,Z,P,te,G,ee,oe)):new Date(j,Z,P,te,G,ee,oe)}catch{return new Date("")}}(A,B,V),this.init(),x&&x!==!0&&(this.$L=this.locale(x).$L),L&&A!=this.format(B)&&(this.$d=new Date("")),i={}}else if(B instanceof Array)for(var q=B.length,N=1;N<=q;N+=1){I[1]=B[N-1];var T=u.apply(this,I);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}N===q&&(this.$d=new Date(""))}else k.call(this,S)}}})})(va);var Eu=va.exports;const Tu=Ke(Eu);var ka={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){return function(l,n,a){var r=n.prototype,s=r.format;a.en.ordinal=function(i){var c=["th","st","nd","rd"],d=i%100;return"["+i+(c[(d-20)%10]||c[d]||c[0])+"]"},r.format=function(i){var c=this,d=this.$locale();if(!this.isValid())return s.bind(this)(i);var m=this.$utils(),f=(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 d.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return d.ordinal(c.week(),"W");case"w":case"ww":return m.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return m.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return m.s(String(c.$H===0?24:c.$H),h==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return h}});return s.bind(this)(f)}}})})(ka);var $u=ka.exports;const Du=Ke($u);var ba={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){return function(l,n,a){var r=n.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},i=function(f,h,g,b,y){var v=f.name?f:f.$locale(),u=s(v[h]),p=s(v[g]),k=u||p.map(function(A){return A.slice(0,b)});if(!y)return k;var S=v.weekStart;return k.map(function(A,V){return k[(V+(S||0))%7]})},c=function(){return a.Ls[a.locale()]},d=function(f,h){return f.formats[h]||function(g){return g.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,y,v){return y||v.slice(1)})}(f.formats[h.toUpperCase()])},m=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):i(f,"months")},monthsShort:function(h){return h?h.format("MMM"):i(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return m.bind(this)()},a.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(h){return d(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return i(c(),"months")},a.monthsShort=function(){return i(c(),"monthsShort","months",3)},a.weekdays=function(f){return i(c(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return i(c(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return i(c(),"weekdaysMin","weekdays",2,f)}}})})(ba);var Iu=ba.exports;const qu=Ke(Iu);var Sa={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){var l="week",n="year";return function(a,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(n).add(1,n).date(d),f=s(this).endOf(l);if(m.isBefore(f))return 1}var h=s(this).startOf(n).date(d).startOf(l).subtract(1,"millisecond"),g=this.diff(h,l,!0);return g<0?s(this).startOf("week").week():Math.ceil(g)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Sa);var Mu=Sa.exports;const zu=Ke(Mu);var Ca={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){return function(l,n){n.prototype.weekYear=function(){var a=this.month(),r=this.week(),s=this.year();return r===1&&a===11?s+1:a===0&&r>=52?s-1:s}}})})(Ca);var Lu=Ca.exports;const xu=Ke(Lu);var wa={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){return function(l,n,a){n.prototype.dayOfYear=function(r){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(wa);var Pu=wa.exports;const Ru=Ke(Pu);var Na={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){return function(l,n){n.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(Na);var Ou=Na.exports;const Fu=Ke(Ou);var Ba={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){return function(l,n){n.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(Ba);var Uu=Ba.exports;const Ku=Ke(Uu);Me.extend(qu);Me.extend(Du);Me.extend(Tu);Me.extend(zu);Me.extend(xu);Me.extend(Ru);Me.extend(Fu);Me.extend(Ku);const _={format(e,o){return Me(e).format(o)},parser(e,o){return Me(e,o).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,o,l){const a=new Date(e+"/"+o+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,o){let n=new Date(e+"/"+o+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,o){return/^0/.test(o)&&(o=o.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][o]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,o){o=o||"-";const l=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[l,n,a].join(o)},getDay(e,o){e=e||0;let l=o??new Date;const n=e*(1e3*60*60*24);return l=new Date(l.getTime()+n),this.date2Str(l)},compareDate(e,o){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let n;return typeof o=="string"?n=new Date(o.replace("-","/").replace("-","/")):n=o,!(l>=n)},isEqual(e,o){if(e===o)return!0;if(!e||!o)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let n;return typeof o=="string"?n=new Date(o).getTime():n=o,l==n},getMonthWeek:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l));let r=a.getDay(),s=a.getDate(),i=6-r;return n!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l)),r=new Date(Number(e),0,1),s=Math.round((a.valueOf()-r.valueOf())/864e5);let i=a.getDay(),c=6-i;return n!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l)),r=a.getTime();let s=a.getDay();if(n===0){const c=r-s*864e5,d=r+(6-s)*864e5,m=this.date2Str(new Date(c)),f=this.date2Str(new Date(d));return[m,f]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,d=r+(7-s)*i,m=this.date2Str(new Date(c)),f=this.date2Str(new Date(d));return[m,f]}},formatResultDate:function(e){let o=[...e.split("-")];return o[2]=_.getNumTwoBit(Number(o[2])),o[3]=`${o[0]}-${o[1]}-${o[2]}`,o[4]=_.getWhatDay(+o[0],+o[1],+o[2]),o},inScope4Day(e,o,l){const n=new Date(new Date(o).setDate(o.getDate()+l)),a=e.getTime(),r=n.getTime(),s=o.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s},inScope4Month(e,o,l){const n=new Date(new Date(o).setMonth(o.getMonth()+l)),a=e.getTime(),r=n.getTime(),s=o.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s}},_n=new Date().getFullYear(),yn={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"},to=(e,o,l)=>{let n;if(Pe(o)?n=o:typeof o=="string"&&pe(o)>0?n=_.parser(o,l):n=new Date,n.toString()==="Invalid Date")return null;let a=Math.max(n.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Jo=(e,o,l)=>{Pe(o)||(o=e.minDate);let n=Math.max(o.getTime(),e.minDate.getTime());return n=Math.min(n,e.maxDate.getTime()),_.format(new Date(n),l)};let _o={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(_n-10,0,1),validator:Pe},maxDate:{type:Date,default:()=>new Date(_n+10,11,31),validator:Pe},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:Hu,scope:ju}=O("date-picker"),Wu=Hu({components:{[Vt.name]:Vt},props:{..._o},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:o}){const{t:l}=re.useFoxI18n(ju),n={day:l("day"),year:l("year"),month:l("month"),hour:l("hour"),minute:l("minute"),seconds:l("seconds")},a=t.ref(!1);t.watch(()=>e.visible,u=>{a.value=u});function r(u,p){return new Date(u,p,0).getDate()}const s=(u,p)=>{const k=e[`${u}Date`],S=k.getFullYear();let A=1,V=1,I=0,B=0;u==="max"&&(A=12,V=r(p.getFullYear(),p.getMonth()+1),I=23,B=59);const C=B;return p.getFullYear()===S&&(A=k.getMonth()+1,p.getMonth()+1===A&&(V=k.getDate(),p.getDate()===V&&(I=k.getHours(),p.getHours()===I&&(B=k.getMinutes())))),{[`${u}Year`]:S,[`${u}Month`]:A,[`${u}Date`]:V,[`${u}Hour`]:I,[`${u}Minute`]:B,[`${u}Seconds`]:C}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:u,maxDate:p,maxMonth:k,maxHour:S,maxMinute:A,maxSeconds:V}=s("max",h.value),{minYear:I,minDate:B,minMonth:C,minHour:w,minMinute:L,minSeconds:x}=s("min",h.value);let q=[{type:"year",range:[I,u]},{type:"month",range:[C,k]},{type:"day",range:[B,p]},{type:"hour",range:[w,S]},{type:"minute",range:[L,A]},{type:"seconds",range:[x,V]}];switch(e.type){case"date":q=q.slice(0,3);break;case"datetime":q=q.slice(0,5);break;case"time":q=q.slice(3,6);break;case"year-month":q=q.slice(0,2);break;case"month-day":q=q.slice(1,3);break;case"datehour":q=q.slice(0,4);break;case"hour-minute":q=q.slice(3,5);break}return q}),c=(u,p,k)=>{if(!(p>u))return null;const S=[];for(;u<=p;)e.isShowChinese?S.push({text:u+n[k],value:u}):S.push({text:`${u}`,value:u}),k==="minute"?u+=e.minuteStep:u++;return S},d=t.computed(()=>{let u=[];return i.value.forEach(p=>{let k=c(p.range[0],p.range[1],p.type);k&&u.push(k)}),u}),m=(u,p)=>u==="year"?p.getFullYear():u==="month"?p.getMonth()+1:u==="day"?p.getDate():u==="hour"?p.getHours():u==="minute"?p.getMinutes():u==="seconds"?p.getSeconds():0,f=t.ref(),h=t.ref(null);t.watchEffect(()=>{let u,p=e.modelValue;if(typeof p=="string"?p.length==0?u=new Date:e.valueFormat?u=to(e,e.modelValue,e.valueFormat):u=to(e,p,yn[e.type]):Pe(p)?u=p:u=new Date,!!u&&(!h.value||u.getTime()!==h.value.getTime())){h.value=u;let k=[];i.value.forEach(S=>{let A=m(S.type,u);k.push(A)}),f.value=k}});const g=u=>{if(e.type==="date"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])))}else if(e.type==="datetime"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3],p[4])}else if(e.type==="time"){let p=u,k=h.value??new Date,S=new Date(k.getFullYear(),k.getMonth(),k.getDate(),p[0],p[1],p[2]);h.value=S}else if(e.type==="year-month"){let p=u,k=new Date(p[0],p[1]-1);h.value=k}else if(e.type==="month-day"){let p=u,k=h.value??new Date,S=new Date(k.getFullYear(),p[0]-1,p[1]);h.value=S}else if(e.type==="datehour"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3])}else if(e.type==="hour-minute"){let p=u,k=h.value??new Date,S=new Date(k.getFullYear(),k.getMonth(),k.getDate(),p[0],p[1]);h.value=S}f.value=u};return{columns:d,dateIndexs:f,show:a,onClose:()=>{a.value=!1,o("update:visible",!1),o("update:close",!1)},onConfirm:u=>{g(u),a.value=!1;let p=h.value??new Date;if(e.valueFormat){let k=Jo(e,p,e.valueFormat);o("update:modelValue",k)}else o("update:modelValue",p);o("update:visible",!1),o("confirm",u)},onClear:()=>{o("clear")}}}});function Yu(e,o,l,n,a,r){const s=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const vn=K(Wu,[["render",Yu]]);function Xu(e){let o=e.format;if(!o){let l=e.type??"date";o=yn[l]}return o}function Qu(e,o,l,n,a,r,s=!1){return{props:{...ce,...fe,..._o,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=$e(t.computed(()=>i.readonly)),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(o),g=h(i,["placeholder"]),b=t.ref(!1),v=qe(i,"modelValue",Y=>Y==null?null:typeof Y=="string"?Y.length==0?null:i.valueFormat?to(i,Y,i.valueFormat)??Y:to(i,Y,yn[i.type])??Y:Pe(Y)?Y:null),u=t.computed(()=>{if(!v.value)return"";const Y=Xu(i);return Jo(i,v.value,Y)}),p="fox-input-item",k=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ve(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>({textAlign:S.value??"right"})),V=t.ref(!1),I=()=>{V.value=!0},B=()=>{V.value=!1};c.expose({showPicker:I,hidePicker:B});const C=Y=>{V.value=Y},w=Y=>{if(v.value=Y,i.valueFormat){let J=Jo(i,Y,i.valueFormat);f("update:modelValue",J,{}),f("change",J,{})}else f("update:modelValue",Y,{}),f("change",Y,{})},L=Y=>{let R=Y.target.value;b.value=!0,f("focus",R,Y)},x=Y=>{setTimeout(()=>{b.value=!1},0);let R=Y.target.value;i.maxLength&&R.length>Number(i.maxLength)&&(R=R.slice(0,Number(i.maxLength))),f("blur",R,Y)},q=t.computed(()=>({[`${p}__append`]:!0})),N=t.computed(()=>pe(i.unit)>0),T=t.computed(()=>pe(i.unit)>0&&!b.value),M=t.computed(()=>({hidden:!T.value})),$=Y=>{v.value="",f("update:modelValue","",Y),f("change","",Y),f("clear",""),B()},z=t.computed(()=>i.clearable&&!d.value&&!m.value),F=t.computed(()=>{let Y=pe(v.value)>0;return i.clearable&&Y&&b.value}),U=Y=>{F.value?$(Y):I()},W=t.computed(()=>F.value&&z.value?n:a),X=t.computed(()=>({action:!0}));return()=>{const Y={class:k.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:g.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:I,onFocus:L,onBlur:x};s&&(Y.disabled=!0);const J=[],R=t.h("input",Y);J.push(R);const H=[],E={class:["action-icon"]},D=t.h(W.value,E),P={class:X.value,onClick:U},j=t.h("view",P,{default:()=>[D]});if(H.push(j),N.value){const ke=t.h("view",{class:M.value},[i.unit]);H.push(ke)}const Z={class:q.value},te=t.h("view",Z,{default:()=>H});J.push(te);const G={default:()=>J};if(c.slots.default){const ke=c.slots.default();G.label=()=>ke}if(c.slots.prepend){const ke=c.slots.prepend();G.prepend=()=>ke}if(c.slots.append){const ke=c.slots.append();G.append=()=>ke}const ee=ye(i,_o);ee.valueFormat=null,ee.disabled=!1,ee.readonly=d.value||m.value,ee.visible=V.value,ee["onUpdate:visible"]=C,ee.modelValue=v.value,ee["onUpdate:modelValue"]=w,ee.onClear=$;const oe={};if(c.slots.top){const ke=c.slots.top();oe.top=()=>ke}if(c.slots.bottom){const ke=c.slots.bottom();oe.default=()=>ke}const de=t.h(r,ee,oe);G.hide=()=>[de];const ae=ye(i,fe,ce);return t.h(l,ae,G)}}}}const{create:Gu,componentName:Zu,scope:Ju}=O("date-item"),Va=Gu(Qu(Zu,Ju,Ne,Q.CloseLittle,Q.Date,vn,!1)),_u=39,ed=64,{create:td,scope:od}=O("calendar-pane"),nd=td({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:_.getDay(0)},endDate:{type:String,default:_.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:o,slots:l}){const{toLocaleRefs:n,t:a}=re.useFoxI18n(od),r=n(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(a("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),d=t.ref(null),m=t.ref(null),f=t.ref(null),h=t.ref(0),g=t.computed(()=>u.monthsData.slice(u.defaultRange[0],u.defaultRange[1])),b=t.computed(()=>l.btn),y=t.computed(()=>l["top-info"]),v=t.computed(()=>l["bottom-info"]),u=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}),p=E=>E.split("-"),k=E=>_.isEqual(u.currDate[0],E),S=E=>_.isEqual(u.currDate[1],E),A=E=>u.currDate?.length>0?u.currDate?.some(D=>_.isEqual(D,E)):!1,V=(E,D)=>D.curData[0]+"-"+D.curData[1]+"-"+_.getNumTwoBit(+E.day),I=(E,D)=>{const P=V(E,D),{type:j}=e;return E.type=="curr"?_.isEqual(u.currDate,P)||(j=="range"||j=="week")&&(k(P)||S(P))||j=="multiple"&&A(P)?`${u.dayPrefix}--active`:u.propStartDate&&_.compareDate(P,u.propStartDate)||u.propEndDate&&_.compareDate(u.propEndDate,P)?`${u.dayPrefix}--disabled`:(j=="range"||j=="week")&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&_.compareDate(u.currDate[0],P)&&_.compareDate(P,u.currDate[1])?`${u.dayPrefix}--choose`:null:`${u.dayPrefix}--disabled`},B=()=>{const{type:E}=e;if(E=="range"&&u.chooseData.length==2||E!="range"){let D=u.chooseData.slice(0);E=="week"&&(D={weekDate:[w(u.chooseData[0]),w(u.chooseData[1])]}),o("choose",D),e.poppable&&o("update")}},C=(E,D,P=!1)=>{if(I(E,D)!=`${u.dayPrefix}--disabled`){const{type:j}=e;let[Z,te]=D.curData,G=[...D.curData];if(G[2]=_.getNumTwoBit(Number(E.day)),G[3]=`${G[0]}-${G[1]}-${G[2]}`,G[4]=_.getWhatDay(+G[0],+G[1],+G[2]),j=="multiple")if(u.currDate?.length>0){let ee;u.currDate?.forEach((oe,de)=>{oe==G[3]&&(ee=de)}),P?u.chooseData.push([...G]):ee!==void 0?(u.currDate.splice(ee,1),u.chooseData.splice(ee,1)):(u.currDate.push(G[3]),u.chooseData.push([...G]))}else u.currDate=[G[3]],u.chooseData=[[...G]];else if(j=="range"){let ee=Object.values(u.currDate).length;ee==2||ee==0?u.currDate=[G[3]]:_.compareDate(u.currDate[0],G[3])?Array.isArray(u.currDate)&&u.currDate.push(G[3]):Array.isArray(u.currDate)&&u.currDate.unshift(G[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...G]]:_.compareDate(u.chooseData[0][3],G[3])?u.chooseData=[...u.chooseData,[...G]]:u.chooseData=[[...G],...u.chooseData]}else if(j=="week"){let ee=_.getWeekDate(Z,te,E.day,e.firstDayOfWeek);u.propStartDate&&_.compareDate(ee[0],u.propStartDate)&&ee.splice(0,1,u.propStartDate),u.propEndDate&&_.compareDate(u.propEndDate,ee[1])&&ee.splice(1,1,u.propEndDate),u.currDate=ee,u.chooseData=[_.formatResultDate(ee[0]),_.formatResultDate(ee[1])]}else u.currDate=G[3],u.chooseData=[...G];if(!P){let ee=u.chooseData;j=="week"&&(ee={weekDate:[w(u.chooseData[0]),w(u.chooseData[1])]}),o("select",ee),(e.isAutoBackFill||!e.poppable)&&B()}}},w=E=>{let[D,P,j]=E;return{date:E,monthWeekNum:_.getMonthWeek(D,P,j,e.firstDayOfWeek),yearWeekNum:_.getYearWeek(D,P,j,e.firstDayOfWeek)}},L=E=>{const D=E=="prev"?u.monthsData[0]:u.monthsData[u.monthsData.length-1];let P=parseInt(D.curData[0]),j=parseInt(D.curData[1].toString().replace(/^0/,""));switch(E){case"prev":j==1&&(P-=1),j=j==1?12:--j;break;case"next":j==12&&(P+=1),j=j==12?1:++j;break}return[P+"",_.getNumTwoBit(j),_.getMonthDays(String(P),String(j))+""]},x=(E,D,P)=>{let{year:j,month:Z}=P;return D=="prev"&&E>=7&&(E-=7),Array.from(Array(E),(te,G)=>({day:String(G+1),type:D,year:j,month:Z}))},q=(E,D,P,j)=>{E=E-e.firstDayOfWeek;let{year:Z,month:te}=P;return D=="prev"&&E>=7&&(E-=7),Array.from(Array(j),(ee,oe)=>({day:String(oe+1),type:D,year:Z,month:te})).slice(j-E)},N=(E,D)=>{const P=_.getMonthPreDay(+E[0],+E[1]);let j=Number(E[1])-1,Z=Number(E[0]);j<=0&&(j=12,Z+=1);const te=_.getMonthDays(String(E[0]),String(E[1])),G=_.getMonthDays(Z+"",j+""),ee={year:E[0],month:E[1]},oe={curData:E,title:a("monthTitle",{year:ee.year,month:ee.month}),monthData:[...q(P,"prev",{month:String(j),year:String(Z)},G),...x(te,"curr",ee)],cssHeight:0,cssScrollHeight:0},de=oe.monthData.length>35?6:5;oe.cssHeight=_u+ed*de;let ae=0;u.monthsData.length>0&&(ae=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),oe.cssScrollHeight=ae,D=="next"?(!u.endData||!_.compareDate(`${u.endData[0]}-${u.endData[1]}-${_.getMonthDays(u.endData[0],u.endData[1])}`,`${E[0]}-${E[1]}-${E[2]}`))&&u.monthsData.push(oe):!u.startData||!_.compareDate(`${E[0]}-${E[1]}-${E[2]}`,`${u.startData[0]}-${u.startData[1]}-01`)?u.monthsData.unshift(oe):u.unLoadPrev=!0},T=()=>{let E=e.startDate?e.startDate:_.getDay(0),D=e.endDate?e.endDate:_.getDay(365);u.propStartDate=E,u.propEndDate=D,u.startData=p(E),u.endData=p(D),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(u.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const P={year:Number(u.startData[0]),month:Number(u.startData[1])},j={year:Number(u.endData[0]),month:Number(u.endData[1])};let Z=j.month-P.month;j.year-P.year>0&&(Z=Z+12*(j.year-P.year)),Z<=0&&(Z=1),N(u.startData,"next");let te=1;do N(L("next"),"next");while(te++<Z);if(u.monthsNum=Z,e.type=="range"&&Array.isArray(u.currDate))u.currDate.length>0&&(E&&_.compareDate(u.currDate[0],E)&&u.currDate.splice(0,1,E),D&&_.compareDate(D,u.currDate[1])&&u.currDate.splice(1,1,D),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let G=[],ee={};u.currDate.forEach(oe=>{E&&!_.compareDate(oe,E)&&D&&!_.compareDate(D,oe)&&(Object.hasOwnProperty.call(ee,oe)||(G.push(oe),ee[oe]=oe))}),u.currDate=[...G],u.defaultData=[...p(G[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[G,ee,oe]=p(u.currDate[0]),de=_.getWeekDate(G,ee,oe,e.firstDayOfWeek);u.currDate=de,E&&_.compareDate(u.currDate[0],E)&&u.currDate.splice(0,1,E),D&&_.compareDate(D,u.currDate[1])&&u.currDate.splice(1,1,D),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]}}else u.currDate&&(E&&_.compareDate(u.currDate,E)?u.currDate=E:D&&!_.compareDate(u.currDate,D)&&(u.currDate=D),u.defaultData=[...p(u.currDate)])};Ae({scrollToDate:E=>{_.compareDate(E,u.propStartDate)?E=u.propStartDate:_.compareDate(E,u.propEndDate)||(E=u.propEndDate);let D=p(E);u.monthsData.forEach((P,j)=>{if(P.title==a("monthTitle",{year:D[0],month:D[1]})&&c.value){let Z=u.monthsData[j].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let te=0,G=setInterval(()=>{if(te++,c.value){let ee=Z/10;c.value.scrollTop=c.value.scrollTop+ee}te>=10&&(clearInterval(G),c.value&&(c.value.scrollTop=u.monthsData[j].cssScrollHeight))},40)}else c.value.scrollTop=u.monthsData[j].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)},doLayout:()=>{let E=0,D=0;u.defaultData.length>0&&u.monthsData.forEach((Z,te)=>{Z.title==a("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(E=te),(e.type=="range"||e.type=="week")&&Z.title==a("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(D=te)}),F(u.monthsNum,E),u.currentIndex=E,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(C({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),C({day:u.defaultData[5],type:"curr"},u.monthsData[D],!0)):e.type=="week"?C({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(Z=>{let te=p(Z),G=u.currentIndex;u.monthsData.forEach((ee,oe)=>{ee.title==a("monthTitle",{year:te[0],month:te[1]})&&(G=oe)}),C({day:te[2],type:"curr"},u.monthsData[G],!0)}):C({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let P=u.monthsData[u.monthsData.length-1],j=P.cssHeight+P.cssScrollHeight;He(()=>{c?.value&&d?.value&&f?.value&&(h.value=c.value.clientHeight,d.value.style.height=`${j}px`,c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(j/(u.monthsNum+1))}});const F=(E,D)=>{E>=3?D>0&&D<E?u.defaultRange=[D-1,D+3]:D==0?u.defaultRange=[D,D+4]:D==E&&(u.defaultRange=[D-2,D+2]):u.defaultRange=[0,E+2];let P=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=P},U=(E,D)=>(e.type=="range"||e.type=="week")&&E.type=="curr"&&I(E,D)=="fox-calendar__day--active",W=(E,D)=>U(E,D)&&k(V(E,D)),X=(E,D)=>u.currDate.length>=2&&S(V(E,D))?U(E,D):!1,Y=()=>{if(u.currDate.length>=2)return _.isEqual(u.currDate[0],u.currDate[1])},J=E=>{const D=`${E.year}-${E.month}-${Number(E.day)<10?"0"+E.day:E.day}`;return _.isEqual(D,_.date2Str(new Date))},R=E=>{if(u.monthsData.length<=1)return;const D=E.target.scrollTop;let P=Math.floor(D/u.avgHeight);if(P==0)D>=u.monthsData[P+1].cssScrollHeight&&(P+=1);else if(P>0&&P<u.monthsNum-1)D>=u.monthsData[P+1].cssScrollHeight&&(P+=1),D<u.monthsData[P].cssScrollHeight&&(P-=1);else{const j=Math.round(D+h.value);j<u.monthsData[P].cssScrollHeight+u.monthsData[P].cssHeight&&D>u.monthsData[P-1].cssScrollHeight&&(P-=1),P+1<=u.monthsNum&&j>=u.monthsData[P+1].cssScrollHeight+u.monthsData[P+1].cssHeight&&(P+=1),P>=1&&D<u.monthsData[P-1].cssScrollHeight&&(P-=1)}u.currentIndex!==P&&(u.currentIndex=P,F(u.monthsNum,P)),u.yearMonthTitle=u.monthsData[P].title},H=()=>{u.chooseData.splice(0),u.monthsData.splice(0),T()};return T(),t.watch(()=>e.defaultValue,E=>{E&&e.poppable&&H()}),{weeks:i,compConthsData:g,showTopBtn:b,topInfo:y,bottomInfo:v,rangeTip:Y,mothsViewScroll:R,getClass:I,isStartTip:W,isEndTip:X,chooseDay:C,isCurrDay:J,confirm:B,months:c,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:m,viewArea:f}}}),ld={class:"fox-calendar__header"},ad={key:0,class:"fox-calendar__header-title"},rd={key:1,class:"fox-calendar__header-slot"},sd={key:2,class:"fox-calendar__header-subtitle"},id={class:"fox-calendar__weekdays",ref:"weeksPanel"},cd={class:"fox-calendar__panel",ref:"monthsPanel"},ud={class:"fox-calendar__month-title"},dd={class:"fox-calendar__days"},fd=["onClick"],md={class:"fox-calendar__day-value"},pd={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},hd={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},gd={key:2,class:"fox-calendar__day-tips--curr"},yd={key:4,class:"fox-calendar__day-tip"},vd={key:0,class:"fox-calendar__footer"};function kd(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",ld,[e.showTitle?(t.openBlock(),t.createElementBlock("view",ad,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",rd,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",sd,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",id,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:i},t.toDisplayString(s),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:o[0]||(o[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",cd,[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",ud,t.toDisplayString(s.title),1),t.createElementVNode("view",dd,[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,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:m=>e.chooseDay(c,s)},[t.createElementVNode("view",md,[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",pd,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",hd,[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",gd,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",yd,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,fd))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",vd,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:o[1]||(o[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const el=K(nd,[["render",kd]]),bd=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),en={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:Sd}=O("calendar"),Cd=Sd({components:{[el.name]:el,[ie.name]:ie},props:{...en},emits:["choose","close","update:visible","select"],setup(e,{emit:o,slots:l}){const n=t.computed(()=>l.btn),a=t.computed(()=>l["top-info"]),r=t.computed(()=>l.day),s=t.computed(()=>l["bottom-info"]),i=t.ref(null),c=y=>{i.value?.scrollToDate(y)},d=()=>{i.value?.initPosition()};t.watch(()=>e.visible,y=>{y&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Ae({scrollToDate:c,initPosition:d});const m=()=>{o("update:visible",!1)},f=()=>{o("close"),o("update:visible",!1)};return{closePopup:()=>{f()},update:m,close:f,select:y=>{o("select",y)},choose:y=>{f(),o("choose",y)},calendarRef:i,showTopBtn:n,topInfo:a,dayInfo:r,bottomInfo:s}}});function wd(e,o,l,n,a,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:{height:"85vh"}}),{default:t.withCtx(()=>[t.createVNode(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const kn=K(Cd,[["render",wd]]),qo=(e,o)=>{let l;return Pe(e)?l=e:typeof e=="string"&&pe(e)>0?l=_.parser(e,o):l=new Date,l},nt=(e,o,l)=>(Pe(o)||(o=new Date),_.format(o,l)),lt=e=>{let o=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,n=`${e.getDate()}`,a=_.date2Str(e),r=_.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[o,l,n,a,r]};function Nd(e,o,l,n,{CloseIcon:a,MarkIcon:r},s=!1){return{props:{...ce,...fe,...en,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=$e(t.computed(()=>i.readonly)),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(o),g=h(i,["placeholder"]),b=t.ref(!1),y=t.computed(()=>i.type==="range"),v=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),u=()=>{v.startDate!==null&&(v.startDate=null,v.endDate=null,v.startArray=[],v.endArray=[])},p=(R,H="one",E="YYYY-MM-DD")=>{if(bd(R)){u();return}if(y.value&&Array.isArray(R)&&R.length==2){let D,P;typeof R[0]=="string"?(D=qo(R[0],E),P=qo(R[1],E)):(D=R[0],P=R[1]);let j=lt(D),Z=lt(P);(v.startDate===null||v.startDate.getTime()!==D.getTime()||v.endDate?.getTime()!==P.getTime())&&(v.startDate=D,v.startArray=j,v.endDate=P,v.endArray=Z)}else{let D;typeof R=="string"?D=qo(R,E):D=R;let P=lt(D);(v.startDate===null||v.startDate.getTime()!==D.getTime())&&(v.startDate=D,v.startArray=P)}};p(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,R=>{p(R,i.type,i.valueFormat)});const k=t.computed(()=>{if(v.startDate===null)return"";if(y.value){let R=nt(i,v.startDate,i.format),H=nt(i,v.endDate,i.format);return`${R} ${i.rangeSeparator} ${H}`}else{let R=nt(i,v.startDate,i.format);return i.showWeek&&(R=`${R} ${v.startArray[4]}`),R}}),S=t.computed(()=>{if(v.startDate===null)return null;if(y.value){let R=_.date2Str(v.startDate),H=_.date2Str(v.endDate??new Date);return[R,H]}else return _.date2Str(v.startDate)}),A="fox-input-item",V=t.computed(()=>({[A]:!0,[`${A}__disabled`]:d.value})),I=Ve(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>({textAlign:I.value??"right"})),C=t.ref(!1),w=()=>{m.value||d.value||(C.value=!0)},L=R=>{C.value=R},x=R=>{if(R){if(y.value&&Array.isArray(R)){let H=R[0],E=ue(H[0]),D=ue(H[1]),P=ue(H[2]),j=new Date(E,D-1,P),Z=R[1];E=ue(Z[0]),D=ue(Z[1]),P=ue(Z[2]);let te=new Date(E,D-1,P);if(v.startDate=j,v.startArray=lt(j),v.endDate=te,v.endArray=lt(te),i.valueFormat){let G=nt(i,j,i.valueFormat),ee=nt(i,te,i.valueFormat);f("update:modelValue",[G,ee],{})}else f("update:modelValue",[j,te],{})}else{let H=R,E=ue(H[0]),D=ue(H[1]),P=ue(H[2]),j=new Date(E,D-1,P);if(v.startDate=j,v.startArray=lt(j),i.valueFormat){let Z=nt(i,j,i.valueFormat);f("update:modelValue",Z,{})}else f("update:modelValue",j,{})}f("change",R,{})}},q=R=>{let E=R.target.value;b.value=!0,f("focus",E,R)},N=R=>{setTimeout(()=>{b.value=!1},0);let E=R.target.value;i.maxLength&&E.length>Number(i.maxLength)&&(E=E.slice(0,Number(i.maxLength))),f("blur",E,R)},T=t.computed(()=>({[`${A}__append`]:!0})),M=t.computed(()=>pe(i.unit)>0),$=t.computed(()=>pe(i.unit)>0&&!b.value),z=t.computed(()=>({hidden:!$.value})),F=R=>{u(),f("update:modelValue",null,R),f("change","",R),f("clear","")},U=t.computed(()=>i.clearable&&!d.value&&!m.value),W=t.computed(()=>{let R=pe(k.value)>0;return i.clearable&&R&&b.value}),X=R=>{W.value?F(R):w()},Y=t.computed(()=>W.value&&U.value?a:r),J=t.computed(()=>({action:!0}));return()=>{const R={class:V.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:g.placeholder.value,readonly:!0,unselectable:"on",value:k.value,onClick:w,onFocus:q,onBlur:N};s&&(R.disabled=!0);const H=[],E=t.h("input",R);H.push(E);const D=[],P={class:["action-icon"]},j=t.h(Y.value,P),Z={class:J.value,onClick:X},te=t.h("view",Z,{default:()=>[j]});if(D.push(te),M.value){const Ee=t.h("view",{class:z.value},[i.unit]);D.push(Ee)}const G={class:T.value},ee=t.h("view",G,{default:()=>D});H.push(ee);const oe={default:()=>H};c.slots.default&&(oe.label=c.slots.default),c.slots.prepend&&(oe.prepend=c.slots.prepend),c.slots.append&&(oe.append=c.slots.append);const de=ye(i,en);de.visible=C.value,de["onUpdate:visible"]=L,de["default-value"]=S.value,de.onChoose=x;const ae={};if(c.slots.btn){const Ee=c.slots.btn();ae.btn=()=>Ee}c.slots.day&&(ae.day=c.slots.day),c.slots.topInfo&&(ae.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(ae.bottomInfo=c.slots.bottomInfo);const Mt=t.h(l,de,ae);oe.hide=()=>[Mt];const ke=ye(i,fe,ce);return t.h(n,ke,oe)}}}}const{componentName:Bd,create:Vd,scope:Ad}=O("calendar-item"),Aa=Vd(Nd(Bd,Ad,kn,Ne,{CloseIcon:Q.CloseLittle,MarkIcon:Q.Date},!1)),Ed={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 Td(e,{CheckNormal:o,Checked:l}){return{props:{...Ed},setup(n,{emit:a,slots:r}){let s=t.inject("parent",null);const i=t.computed(()=>s.label.value===n.label),c=t.computed(()=>n.disabled?"fox-radio__icon--disable":i.value?"fox-radio__icon":"fox-radio__icon--unchecked"),d=t.computed(()=>s.position),m=()=>{if(i.value){if(r.checkedIcon)return r.checkedIcon();{const y=le(n.iconSize),v=n.icon??l;return t.h(v,{width:y,height:y,class:c.value})}}else{if(r.icon)return r.icon();{const y=le(n.iconSize),v=n.icon??o;return t.h(v,{width:y,height:y,class:c.value})}}},f=()=>t.h("view",{class:`${e}__label ${n.disabled?`${e}__label--disabled`:""}`},r.default?.()),h=()=>t.h("view",{class:`${e}__button ${i.value&&`${e}__button--active`} ${n.disabled?`${e}__button--disabled`:""}`},r.default?.()),g=()=>{i.value||n.disabled||n.readonly||s.updateValue(n.label)},b=d.value==="left";return()=>t.h("view",{class:`${e} ${e}--${n.shape} ${b?`${e}--reverse`:""}`,onClick:g},[n.shape=="button"?h():b?[f(),m()]:[m(),f()]])}}}const{componentName:$d,create:Dd}=O("radio"),bn=Dd(Td($d,{CheckNormal:Q.CheckNormal,Checked:Q.CheckChecked})),{componentName:tl,create:Id}=O("radio-group"),Sn=Id({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"}},emits:["change","update:modelValue"],setup(e,{emit:o,slots:l}){const n=a=>o("update:modelValue",a);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:n}),t.watch(()=>e.modelValue,a=>o("change",a)),()=>t.h("view",{class:`${tl} ${tl}--${e.direction}`},l.default?.())}});function ol(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(Ut(e,r)===l)return a}else if(n==="item"){if(Re(l,r))return a}else if(kt(e,r)===l)return a}return-1}function Ut(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function kt(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function qd(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function Md(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let zd=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);let a=It(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Te(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function Ld(){const e=t.getCurrentInstance();return new zd(e.proxy)}const nl={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},xd={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"}};function Pd(e,o,l,n,a){return{props:{...ce,...fe,...nl,...xd,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Boolean,Object],default:""}},emits:["change","update:modelValue"],setup(r,s){const i=$e(t.computed(()=>r.readonly)),c=Ce(t.computed(()=>r.disabled)),{emitEvent:d}=we({componentName:e,get validate(){return!c.value||!i.value}},r.prop??s.attrs.name),m=Ld(),f=t.ref([]);t.watch([()=>r.source,()=>r.params],async([v,u])=>{v&&(f.value=await m.load("radio",v,u))},{immediate:!0});let h=t.ref(-1);t.watch([()=>r.modelValue,()=>f.value],async([v,u])=>{h.value=ol(r,u,v,r.valueType)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;if(h.value===-1)return null;const v=f.value[h.value];return kt(r,v)}),b=v=>{let u=null,p=null;if(f.value.length>0){let k=ol(r,f.value,v,"value");h.value=k,k>=0&&(p=f.value[k],r.valueType==="text"?u=Ut(r,p):r.valueType==="item"?u=p:u=kt(r,p))}else u=v;d("update:modelValue",u),d("change",u,p)},y=()=>{let v=null,u=null;if(f.value.length>0&&h.value!==-1){let p=f.value[h.value];r.valueType==="text"?v=Ut(r,p):r.valueType==="item"?v=p:v=kt(r,p)}d("update:modelValue",v),d("change",v,u)};if(Ae({clear(){h.value!==-1&&(h.value=-1,y())}}),r.source){const v=()=>{const u=[],p=ye(r,nl);return f.value.forEach((k,S)=>{const A=Ut(r,k),V=kt(r,k),I=qd(r,k);let B={...p,label:V,disabled:I};const C=Md(r,k,S);B={...B,...C},c.value&&(B.disabled=!0),i.value&&(B.readonly=!0);const w={};s.slots.icon&&(w.icon=s.slots.icon),s.slots.checkedIcon&&(w.checkedIcon=s.slots.checkedIcon),w.default=()=>A;let L=t.h(a,B,w);u.push(L)}),u};return()=>{const u=v(),p={class:`${e}`,direction:r.direction,textPosition:r.textPosition,modelValue:g,"onUpdate:modelValue":b},k=t.h(n,p,{default:()=>u}),S={default:()=>k};if(s.slots.default){const I=s.slots.default();S.label=()=>I}if(s.slots.prepend){const I=s.slots.prepend();S.prepend=()=>I}if(s.slots.append){const I=s.slots.append();S.append=()=>I}const A=ye(r,fe,ce);return t.h(l,A,S)}}else return()=>{const v=s.slots.options?.()??[];return t.h(n,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,modelValue:g,"update:modelValue":b},{default:()=>v})}}}}const{componentName:Rd,create:Od,scope:Fd}=O("radio-item"),Ea=Od(Pd(Rd,Fd,Ne,Sn,bn)),Ud=(e,{CheckNormal:o,Checked:l,Indeterminate:n})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(a,{emit:r,slots:s}){const i=t.inject("parent",null),c=t.reactive({partialSelect:a.indeterminate});t.watch(()=>a.indeterminate,k=>{c.partialSelect=k});const d=t.computed(()=>!!i),m=t.computed(()=>d.value?i.value.value.includes(a.label):!!a.modelValue),f=t.computed(()=>d.value?i.position:a.textPosition),h=t.computed(()=>a.disabled?"fox-checkbox__icon--disable":c.partialSelect?"fox-checkbox__icon--indeterminate":m.value?"fox-checkbox__icon":"fox-checkbox__icon--unchecked");let g="";const b=(k,S)=>{g="click",r("update:modelValue",k),r("change",k,S)};t.watch(()=>a.modelValue,k=>{g=="click"?g="":r("change",k)});const y=()=>{if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const k=le(a.iconSize),S=a.indeterminateIcon??n;return t.h(S,{width:k,height:k,class:h.value})}}else if(m.value){if(s.checkedIcon)return s.checkedIcon();{const k=le(a.iconSize),S=a.checkedIcon??l;return t.h(S,{width:k,height:k,class:h.value})}}else{if(s.icon)return s.icon();{const k=le(a.iconSize),S=a.icon??o;return t.h(S,{width:k,height:k,class:h.value})}}},v=()=>t.h("view",{class:`${e}__label ${a.disabled?`${e}__label--disabled`:""}`},s.default?.()),u=()=>t.h("view",{class:`${e}__button ${m.value&&`${e}__button--active`} ${a.disabled?`${e}__button--disabled`:""}`},s.default?.()),p=k=>{if(!(a.disabled||a.readonly)){if(m.value&&c.partialSelect){c.partialSelect=!1,b(m.value,s.default?.()[0].children);return}if(b(!m.value,s.default?.()[0].children),d.value){const S=i.value.value,A=i.max.value,{label:V}=a,I=S.indexOf(V);I>-1?S.splice(I,1):I<=-1&&(S.length<A||!A)&&S.push(V),i.updateValue(S)}}};return t.onMounted(()=>{d.value&&i.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{d.value&&i.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${a.shape} ${f.value==="left"?`${e}--reverse`:""}`,onClick:p},[a.shape=="button"?u():[y(),v()]])}}),{componentName:Kd,create:Hd}=O("checkbox"),Cn=Hd(Ud(Kd,{CheckNormal:Q.CheckNormal,Checked:Q.Checked,Indeterminate:Q.CheckDisabled})),{create:jd,componentName:ll}=O("checkbox-group"),wn=jd({props:{modelValue:{type:Array,default:()=>[]},textPosition:{type:String,default:"right"},direction:{type:String,default:"vertical"},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:o,emit:l}){const n=t.reactive({children:[]}),a=d=>{d.proxy&&n.children.push(d.proxy)},r=d=>{d.proxy&&(n.children=n.children.filter(m=>m!==d.proxy))},s=d=>{l("update:modelValue",d),l("change",d)},i=d=>{const m=[];d&&n.children.forEach(f=>{f?.disabled||m.push(f?.label)}),l("update:modelValue",m)},c=()=>{const d=n.children.filter(m=>m?.disabled?!1:!e.modelValue.includes(m.label)).map(m=>m.label);l("update:modelValue",d)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:a,unlink:r}),t.watch(()=>e.modelValue,d=>{l("change",d)}),Ae({toggleAll:i,toggleReverse:c}),()=>t.h("view",{class:`${ll} ${ll}--${e.direction}`},o.default?.())}});function al(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(tn(e,r)===l)return a}else if(n==="item"){if(Re(l,r))return a}else if(Kt(e,r)===l)return a}return-1}function tn(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function Kt(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function Wd(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function Yd(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}class Xd{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);let a=It(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Te(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}}function Qd(){const e=t.getCurrentInstance();return new Xd(e.proxy)}const Gd={max:{type:Number,default:0},textPosition:{type:String,default:"right"},direction:{type:String,default:"vertical"}},rl={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}};function Zd(e,o,l,n,a){return{props:{...Gd,...rl,...ce,...fe,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]}},emits:["change","update:modelValue"],setup(r,s){const i=Ce(t.computed(()=>r.disabled)),c=Ce(t.computed(()=>r.readonly)),{emitEvent:d}=we({componentName:e,get validate(){return!i.value||!c.value}},r.prop??s.attrs.name),m=Qd(),f=t.ref([]);t.watch([()=>r.source,()=>r.params],async([v,u])=>{v&&(f.value=await m.load("checkbox",v,u))},{immediate:!0});const h=t.ref([]);t.watch([()=>r.modelValue,()=>f.value],async([v,u])=>{const p=[];Array.isArray(v)&&v.forEach(k=>{let S=al(r,u,k,r.valueType);S!==-1&&p.push(S)}),!Re(p,h.value)&&(h.value=p)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;let v=[];return h.value.forEach(u=>{let p=f.value[u];v.push(Kt(r,p))}),v}),b=v=>{let u=[],p=[];if(f.value.length>0){const k=[];Array.isArray(v)&&v.forEach(S=>{let A=al(r,f.value,S,"value");A!==-1&&k.push(A);const V=f.value[A];p.push(V),r.valueType==="text"?u.push(tn(r,V)):r.valueType==="item"?u.push(V):u.push(Kt(r,V))}),h.value=k}else u=v;d("update:modelValue",u),d("change",u,p)},y=t.ref();if(Ae({toggleAll:v=>{y.value.toggleAll(v)},toggleReverse:()=>{y.value.toggleReverse()}}),r.source){const v=()=>{const u=[],p=ye(r,rl);return f.value.forEach((k,S)=>{const A=tn(r,k),V=Kt(r,k),I=Wd(r,k);let B={...p,label:V,disabled:I};const C=Yd(r,k,S);B={...B,...C},i.value&&(B.disabled=!0),c.value&&(B.readonly=!0);const w={};s.slots.icon&&(w.icon=s.slots.icon),s.slots.checkedIcon&&(w.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(w.indeterminateIcon=s.slots.indeterminateIcon),w.default=()=>A;let L=t.h(a,B,w);u.push(L)}),u};return()=>{const u=v(),p={class:`${e}`,ref:y,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:g.value,"onUpdate:modelValue":b},k=t.h(n,p,{default:()=>u}),S={default:()=>k};if(s.slots.default){const I=s.slots.default();S.label=()=>I}if(s.slots.prepend){const I=s.slots.prepend();S.prepend=()=>I}if(s.slots.append){const I=s.slots.append();S.append=()=>I}const A=ye(r,fe,ce);return t.h(l,A,S)}}else return()=>{const v=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:y,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:g,"onUpdate:modelValue":b},{default:()=>v})}}}}const{componentName:Jd,create:_d,scope:ef}=O("checkbox-item"),Ta=_d(Zd(Jd,ef,Ne,wn,Cn)),on={modelValue:{type:[String,Number,Boolean],default:!1},disable:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:tf,create:of}=O("switch"),nf=of({components:{Loading1:Q.Loading1},props:{...on},emits:["change","update:modelValue","update:loading"],setup(e,{emit:o}){const l=t.computed(()=>e.modelValue===e.activeValue),n=t.computed(()=>{const i=tf;return{[i]:!0,[l.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-disable`]:e.disable,[`${i}-base`]:!0}}),a=t.computed(()=>({backgroundColor:l.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disable||e.loading)return;r="click";const c=l.value?e.inactiveValue:e.activeValue;o("update:modelValue",c),o("change",c,i)};return t.watch(()=>e.modelValue,i=>{r=="click"?r="":o("change",i)}),{classes:n,style:a,isActive:l,onClick:s}}}),lf={class:"fox-switch-button"};function af(e,o,l,n,a,r){const s=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",lf,[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 Nn=K(nf,[["render",af]]);function rf(e,o,l,n){return{props:{...ce,...fe,...on},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=$e(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,m=qe(a,"modelValue"),f=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const g={...ye(a,on),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},b=[],y=t.h(n,g);b.push(y);const v={default:()=>b};if(r.slots.default){const k=r.slots.default();v.label=()=>k}const u=ye(a,fe,ce);return u["content-class"]=d,t.h(l,u,v)}}}}const{componentName:sf,create:cf,scope:uf}=O("switch-item"),$a=cf(rf(sf,uf,Ne,Nn));function df(e,o,l,n){return{props:{...ce,...fe,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur"],setup(a,r){const{emitEvent:s}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},a.prop??r.attrs.name),{toLocaleRefs:i}=re.useFoxI18n(o),c=i(a,["placeholder"]),d=Ce(t.computed(()=>a.disabled)),m=$e(t.computed(()=>a.readonly)),f=qe(a,"modelValue"),h=t.computed(()=>({[`${e}`]:!0,[`${e}__disabled`]:d.value,[`${e}__placeholder`]:!d.value&&be(f.value)})),g=Ve(t.computed(()=>a.textAlign),"textAlign"),b=t.computed(()=>({textAlign:g.value??"right"})),y=t.computed(()=>be(f.value)?c.placeholder.value:f.value),v=()=>{s("focus",f.value)},u=()=>{s("blur",f.value)},p=t.computed(()=>({[`${e}__append`]:!0})),k=t.computed(()=>pe(a.unit)>0),S=I=>{d.value==!0||m.value==!0||s("click")},A=t.computed(()=>a.icon??l),V=t.computed(()=>({action:!0}));return()=>{const I={tabIndex:0,class:h.value,style:b.value,innerHTML:y.value,onFocus:v,onBlur:u,onClick:S},B=[],C=t.h("view",I);B.push(C);const w=[],L=le(a.iconSize);let x=r.slots.icon;if(!x){const U={width:L,height:L,class:["action-icon"]};x=t.h(A.value,U)}const q={class:V.value,onClick:S},N=t.h("view",q,{default:()=>[x]});if(w.push(N),k.value){const U=t.h("view",{},[a.unit]);w.push(U)}const T={class:p.value},M=t.h("view",T,{default:()=>w});B.push(M);const $={default:()=>B};if(r.slots.default){const U=r.slots.default();$.label=()=>U}if(r.slots.prepend){const U=r.slots.prepend();$.prepend=()=>U}if(r.slots.append){const U=r.slots.append();$.append=()=>U}const z=ye(a,fe,ce);return t.h(n,z,$)}}}}const{componentName:ff,create:mf,scope:pf}=O("link-item"),Da=mf(df(ff,pf,Q.ArrowRight,Ne));function hf(e,o){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return Ll(l.name,l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:ww,create:gf,scope:Nw}=O("domain-provider"),Ia=gf(hf()),{componentName:yf,create:vf}=O("button"),kf=vf({components:{Loading:Q.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o,slots:l}){const{type:n,size:a,shape:r,disabled:s,loading:i,color:c,plain:d,block:m}=t.toRefs(e),f=b=>{!i.value&&!s.value&&o("click",b)},h=t.computed(()=>{const b=yf;return{[b]:!0,[`${b}--${n.value}`]:n.value,[`${b}--${a.value}`]:a.value,[`${b}--${r.value}`]:r.value,[`${b}--plain`]:d.value,[`${b}--block`]:m.value,[`${b}--disabled`]:s.value,[`${b}--loading`]:i.value}}),g=t.computed(()=>{const b={};return c?.value&&(d.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:f,classes:h,getStyle:g}}}),bf={class:"fox-button__wrap"};function Sf(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:o[0]||(o[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",bf,[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=K(kf,[["render",Sf]]),{componentName:Cf,create:wf}=O("cell"),Nf=wf({components:{Right:Q.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:o}){const l=t.computed(()=>{const r=Cf;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),n=t.computed(()=>({borderRadius:se(e.roundRadius)}));return{handleClick:r=>{o("click",r)},classes:l,baseStyle:n}}}),Bf={key:0,class:"fox-cell__icon"},Vf={key:1,class:"fox-cell__title"},Af={class:"title"},Ef={class:"fox-cell__title-desc"};function Tf(e,o,l,n,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:o[0]||(o[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",Bf,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Vf,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Af,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Ef,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 qa=K(Nf,[["render",Tf]]),{componentName:$f,create:Df}=O("cell-group"),If=Df({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[$f]:!0}))}}}),qf={key:1,class:"fox-cell-group__title"},Mf={key:3,class:"fox-cell-group__desc"},zf={class:"fox-cell-group__wrap"};function Lf(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):e.title?(t.openBlock(),t.createElementBlock("view",qf,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",Mf,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",zf,[t.renderSlot(e.$slots,"default")])],2)}const Ma=K(If,[["render",Lf]]),{componentName:xf,create:Pf}=O("image"),Rf=Pf({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:Q.Image,ImageError:Q.ImageError},emits:["click","load","error"],setup(e,{emit:o}){const l=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),n=t.computed(()=>{const g=xf;return{[g]:!0,[`${g}-round`]:e.round}}),a=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const g={threshold:[0],rootMargin:"0px"};a.value=new IntersectionObserver(b=>{b.forEach(y=>{y.isIntersecting&&(r.value=!0,a.value.disconnect())})},g),s.value&&a.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{a.value&&a.value.disconnect()});const c=t.computed(()=>{let g={};return e.width&&(g.width=se(e.width)),e.height&&(g.height=se(e.height)),e.radius!==void 0&&e.radius!==null&&(g.overflow="hidden",g.borderRadius=se(e.radius)),g}),d=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,g=>{l.isError=!1,l.loading=!0});const m=()=>{l.loading=!1,o("load")},f=()=>{l.isError=!0,l.loading=!1,o("error")},h=g=>{o("click",g)};return{...t.toRefs(l),imageClick:h,classes:n,styles:d,stylebox:c,error:f,load:m,show:r,imgRef:s}}}),Of=["src","date-src","alt"],Ff={key:0,class:"fox-img-loading"},Uf={key:1,class:"fox-img-error"};function Kf(e,o,l,n,a,r){const s=t.resolveComponent("Image"),i=t.resolveComponent("ImageError");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.stylebox),onClick:o[2]||(o[2]=(...c)=>e.imageClick&&e.imageClick(...c))},[t.createElementVNode("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:o[0]||(o[0]=(...c)=>e.load&&e.load(...c)),onError:o[1]||(o[1]=(...c)=>e.error&&e.error(...c)),style:t.normalizeStyle(e.styles)},null,44,Of),e.loading?(t.openBlock(),t.createElementBlock("div",Ff,[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",Uf,[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 za=K(Rf,[["render",Kf]]),{create:Hf}=O("layout"),La=Hf({}),{componentName:jf,create:Wf}=O("col"),Yf=Wf({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const o=jf,l=t.inject("gutter"),n=t.computed(()=>({[o]:!0,[`${o}-gutter`]:l,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),a=t.computed(()=>({paddingLeft:l/2+"px",paddingRight:l/2+"px"}));return{classes:n,style:a}}});function Xf(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const xa=K(Yf,[["render",Xf]]),{componentName:Qf,create:Gf}=O("row"),Zf=Gf({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const o=Qf;t.provide("gutter",e.gutter);const l=(a,r)=>a?r?`fox-row-${a}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
6
6
  ${l("",e.type)}
7
7
  ${l("justify",e.justify)}
8
8
  ${l("align",e.align)}
@@ -10,4 +10,4 @@
10
10
  ${o}
11
11
  `:`
12
12
  ${o}
13
- `)}}});function Qf(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const xa=W(Xf,[["render",Qf]]),{componentName:Gf,create:Zf}=U("divider"),Jf=Zf({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,o){return{classes:t.computed(()=>{const n=Gf;let a={[n]:!0},r={};return e.direction==="horizontal"?r={...a,[`${n}-center`]:o.slots.default,[`${n}-left`]:e.contentPosition==="left",[`${n}-right`]:e.contentPosition==="right",[`${n}-dashed`]:e.dashed,[`${n}-hairline`]:e.hairline}:r={...a,[`${n}-vertical`]:e.direction==="vertical"},r})}}});function _f(e,o,l,n,a,r){return e.direction==="horizontal"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes)},null,2))}const Pa=W(Jf,[["render",_f]]);function em(e,o){const l=[],n=a=>{Array.isArray(a)&&a.forEach(r=>{if(t.isVNode(r)){if(o){if(r.type&&r.type.name===o){l.push(r);return}}else l.push(r);r.component?.subTree&&n(r.component.subTree.children),r.children&&n(r.children)}})};return n(e),l}function tm(e,o,l){const n=em(e.subTree.children,l);o.sort((a,r)=>n.indexOf(a.vnode)-n.indexOf(r.vnode))}function om(e,o){const l=t.shallowReactive([]),n=t.getCurrentInstance(),a=i=>{i.proxy&&(l.push(t.markRaw(i)),tm(n,l,o))},r=i=>{l.splice(l.indexOf(t.markRaw(i)),1)},s=Object.assign;return i=>(t.provide(e,s({add:a,remove:r,internalChildren:l},i)),{internalChildren:l})}const{componentName:al}=U("grid"),La=Symbol("grid"),nm={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}},lm={props:nm,setup(e,{slots:o}){om(La,`${al}-item`)({props:e});const l=t.computed(()=>{const a=al;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),n=t.computed(()=>{const a={};return e.gutter&&(a.paddingLeft=le(e.gutter)),a});return()=>t.h("view",{class:l.value,style:n.value},o.default?.())}},{create:am}=U("grid"),Ra=am(lm);function rm(e){const o=t.inject(e,null);if(o){const l=t.getCurrentInstance(),{add:n,remove:a,internalChildren:r}=o;n(l),t.onUnmounted(()=>a(l));const s=t.computed(()=>r.indexOf(l));return{parent:o,index:s}}return{parent:null,index:t.ref(-1)}}const{create:sm,componentName:rl}=U("grid-item"),im=sm({props:{text:{type:String}},emits:["click"],setup(e,{emit:o}){const l=rm(La);if(!l.parent)return{};const n=l.index,a=l.parent.props,r=t.computed(()=>({[rl]:!0})),s=t.computed(()=>{const d={flexBasis:`${100/+a.columnNum}%`};return a.square?d.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(d.paddingRight=le(a.gutter),n.value>=a.columnNum&&(d.marginTop=le(a.gutter))),d}),i=t.computed(()=>{const d=`${rl}__content`;return{[`${d}`]:!0,[`${d}--border`]:a.border,[`${d}--surround`]:a.border&&a.gutter,[`${d}--center`]:a.center,[`${d}--square`]:a.square,[`${d}--reverse`]:a.reverse,[`${d}--${a.direction}`]:!!a.direction,[`${d}--clickable`]:a.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:d=>{o("click",d)}}}}),cm={class:"fox-grid-item__text"};function um(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:o[0]||(o[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",cm,[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 Oa=W(im,[["render",um]]),{componentName:dm,create:fm}=U("navbar"),mm=fm({components:{Left:G.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:o}){const{border:l,fixed:n,safeAreaInsetTop:a,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let d=t.ref();const m=t.computed(()=>{const g=dm;return{[g]:!0,[`${g}--border`]:l.value,[`${g}--fixed`]:n.value,[`${g}--safe-area-inset-top`]:a.value}}),f=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{n.value&&r.value&&t.nextTick(()=>{d.value=c?.value?.getBoundingClientRect().height,i.value.style.height=d.value+"px"})});function h(){o("on-click-back")}function y(){o("on-click-title")}function k(){o("on-click-icon")}function v(){o("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:m,styles:f,handleLeft:h,handleCenter:y,handleCenterIcon:k,handleRight:v}}}),pm={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},hm={key:1,class:"fox-navbar__text"},gm={class:"fox-navbar__title"},ym={key:0,class:"fox-navbar__text"},vm={key:1,class:"fox-navbar__text"},km={class:"fox-navbar__title"},bm={key:0,class:"fox-navbar__text"};function Sm(e,o,l,n,a,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",pm,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:o[0]||(o[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",hm,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",gm,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:o[1]||(o[1]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:o[3]||(o[3]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:o[2]||(o[2]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:o[4]||(o[4]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",ym,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6)],512)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:o[5]||(o[5]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",vm,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",km,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:o[6]||(o[6]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:o[8]||(o[8]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:o[7]||(o[7]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:o[9]||(o[9]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",bm,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Fa=W(mm,[["render",Sm]]),Cm=(e,o,l)=>({components:l,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{default:"",type:String},activeText:{default:"",type:String},unActiveText:{default:"",type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(n,{emit:a}){const{toLocaleRefs:r}=ie.useFoxI18n(o),s=r(n,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:n.visible,[n.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(f=!n.visible)=>{a("update:visible",f)},selected:(f,h)=>{a("selected",{item:f,event:h}),c.value=f.id},current:c}}}),{componentName:wm,create:Nm,scope:Bm}=U("fixednav"),Vm=Nm(Cm(wm,Bm,{[ot.name]:ot,Left:G.Left})),Am={class:"fox-fixednav__list"},Em=["onClick"],Tm=["src"],$m={class:"span"},Dm={key:0,class:"b"},Im={class:"text"};function qm(e,o,l,n,a,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Left");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(s,{key:0,visible:e.visible,"z-index":200,onClick:o[0]||(o[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",Am,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:m=>e.selected(c,m),key:c.id||d},[t.createElementVNode("img",{src:c.icon},null,8,Tm),t.createElementVNode("view",$m,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Dm,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Em))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:o[1]||(o[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{color:"#fff"}),t.createElementVNode("view",Im,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Ua=W(Vm,[["render",qm]]),{componentName:Mm,create:zm}=U("menu"),xm=zm({components:{ArrowUp2:G.ArrowUp2,ArrowDown2:G.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:o,slots:l}){const n=t.ref(),a=t.ref(0),r=t.ref(!1),s=()=>{const g=t.reactive([]),u=t.reactive([]);return{children:g,linkChildren:b=>{const S=E=>{E.proxy&&(u.push(E),g.push(E.proxy))},B=E=>{if(E.proxy){let I=u.indexOf(E);I>-1&&u.splice(I,1);let V=g.indexOf(E.proxy);I>-1&&g.splice(V,1)}};t.provide("menuParent",Object.assign({removeLink:B,link:S,children:g,internalChildren:u},b))}}},{children:i,linkChildren:c}=s(),d=t.computed(()=>i.some(g=>g.state.showWrapper)),m=t.computed(()=>({[Mm]:!0,"scroll-fixed":r.value})),f=()=>{if(n.value){const g=ve(n);e.direction==="down"?a.value=g.bottom:a.value=window.innerHeight-g.top}};c({props:e,offset:a});const h=g=>{i.forEach((u,p)=>{p===g?(f(),u.toggle()):u.state.showPopup&&u.toggle(!1,{immediate:!0})})},y=g=>Math.max(0,"scrollTop"in g?g.scrollTop:g.pageYOffset),k=()=>{const{scrollFixed:g}=e,u=y(window);r.value=u>(typeof g=="boolean"?30:Number(g))},v=g=>{let u="";const{titleClass:p}=e;return g&&(u+="active"),p&&(u+=` ${p}`),u};return t.onMounted(()=>{const{scrollFixed:g}=e;g&&window.addEventListener("scroll",k)}),t.onUnmounted(()=>{const{scrollFixed:g}=e;g&&window.removeEventListener("scroll",k)}),{toggleItem:h,children:i,opened:d,classes:m,barRef:n,getClasses:v}}}),Pm=["onClick"],Lm={class:"fox-menu__title-text"},Rm={class:"fox-menu__title-icon"};function Om(e,o,l,n,a,r){const s=t.resolveComponent("ArrowUp2"),i=t.resolveComponent("ArrowDown2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:m=>!c.disabled&&e.toggleItem(d),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",Lm,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Rm,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Pm))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Ka=W(xm,[["render",Om]]),{componentName:Fm,create:Um}=U("menu-item"),Km=Um({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[ce.name]:ce,Check:G.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:o,slots:l}){const n=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),a=()=>{const y=t.inject("menuParent",null);if(y){const k=t.getCurrentInstance(),{link:v,removeLink:g}=y;return v(k),t.onUnmounted(()=>{g(k)}),{parent:y}}},{parent:r}=a(),s=t.computed(()=>({[Fm]:!0})),i=t.computed(()=>{const y={height:r.offset.value+"px"};return r.props.direction==="down"?y:{...y,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const y=e.options?.find(k=>k.value===e.modelValue);return y?y.text:""},state:n,parent:r,toggle:(y=!n.showPopup,k={})=>{y!==n.showPopup&&(n.showPopup=y,n.isShowPlaceholderElement=y,y&&(n.showWrapper=!0,o("open")))},onClick:y=>{n.showPopup=!1,n.isShowPlaceholderElement=!1,y.value!==e.modelValue&&(o("update:modelValue",y.value),o("change",y.value))},handleClose:()=>{o("close"),n.showWrapper=!1,n.isShowPlaceholderElement=!1},handleClickOutside:()=>{n.showPopup=!1,o("close")}}}}),Hm={class:"fox-menu-item__content fox-menu-item__overflow"},jm=["onClick"];function Wm(e,o,l,n,a,r){const s=t.resolveComponent("Check"),i=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:o[0]||(o[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:t.normalizeStyle(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),t.createVNode(i,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",top:"auto"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":o[1]||(o[1]=c=>e.state.showPopup=c),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:t.withCtx(()=>[t.createElementVNode("view",Hm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:m=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps(e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass([c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),7)],14,jm))),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 Ha=W(Km,[["render",Wm]]),{create:Ym}=U("tabbar"),Xm=Ym({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,o){function l(a){n.value!==a&&(n.value=a,o.emit("update:modelValue",a),o.emit("change",a,n.children[a]))}const n=t.reactive({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:l});return t.provide("parent",n),t.watch(()=>e.modelValue,a=>{n.value=a}),{changeIndex:l}}});function Qm(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[t.renderSlot(e.$slots,"default")],2)}const ja=W(Xm,[["render",Qm]]),{create:Gm}=U("tabbar-item"),Zm=Gm({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,o){const l=t.inject("parent"),n=t.reactive({size:l.size,inactiveColor:l.inactiveColor,activeColor:l.activeColor,value:l.value,index:0}),a=t.getCurrentInstance();a!==null&&(d=>{if(d.proxy){let m=l.children.length;n.index=m;let f=Object.assign(d.proxy,{index:m});l.children.push(f)}})(a);const r=t.computed(()=>n.index===n.value);function s(c){l&&typeof l.changeIndex=="function"&&l.changeIndex(c)}const i=t.computed(()=>l?l.value:null);return t.watch(i,c=>{n.value=c}),{state:n,active:r,change:s}}}),Jm={class:"fox-tabbar-item_icon-box"},_m={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},ep={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},tp={key:1,class:"fox-tabbar-item_icon-box_dot"},op={key:2},np={key:0};function lp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:t.normalizeStyle({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:o[0]||(o[0]=s=>e.change(e.state.index))},[t.createElementVNode("view",Jm,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",_m,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",ep,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",tp)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",op,[(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",np,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Wa=W(Zm,[["render",lp]]),{componentName:ap,create:rp}=U("elevator"),sp=rp({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,o){const l=t.ref(null),n=t.reactive({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),a=t.computed(()=>({[ap]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${n.scrollY+n.fixedTop}px, 0)`})),s=t.computed(()=>l.value.clientHeight),i=(u,p)=>{const b="data-";return u.getAttribute(b+p)},c=u=>{t.nextTick(()=>{!n.listGroup.includes(u)&&u!=null&&n.listGroup.push(u)})},d=()=>{let u=0;n.listHeight.push(u);for(let p=0;p<n.listGroup.length;p++){let b=n.listGroup[p];u+=Math.floor(b.clientHeight),n.listHeight.push(u)}},m=u=>{!u&&u!==0||(u<0&&(u=0),u>n.listHeight.length-2&&(u=n.listHeight.length-2),n.codeIndex=u,l.value.scrollTo(0,n.listHeight[u]))},f=u=>{n.scrollStart=!0;let p=i(u.target,"index"),b=u.touches[0];n.touchState.y1=b.pageY,n.anchorIndex=+p,n.codeIndex=+p,m(+p)},h=u=>{let p=u.touches[0];n.touchState.y2=p.pageY;let b=(n.touchState.y2-n.touchState.y1)/e.spaceHeight|0;n.codeIndex=n.anchorIndex+b,m(n.codeIndex)},y=()=>{n.scrollStart=!1},k=(u,p)=>{o.emit("click-item",u,p),n.currentData=p,n.currentKey=u},v=u=>{o.emit("click-index",u)},g=u=>{let b=u.target.scrollTop;const S=n.listHeight;n.scrollY=b;for(let B=0;B<S.length-1;B++){let E=S[B],I=S[B+1];if(n.scrollY>=E&&n.scrollY<I){n.currentIndex=B,n.diff=I-n.scrollY;return}}n.currentIndex=S.length-2};return t.onMounted(()=>{l.value.addEventListener("scroll",g)}),Te({scrollTo:m}),t.watch(()=>n.listGroup.length,()=>{n.listHeight=[],t.nextTick(d)}),t.watch(()=>n.diff,u=>{const p=n.listHeight;let b=u>0&&u<e.titleHeight?u-e.titleHeight:0;n.scrollY+s.value===p[p.length-1]&&b!==0&&(b=0),n.fixedTop!==b&&(n.fixedTop=b)}),t.watch(()=>n.currentIndex,u=>{o.emit("change",u)}),{classes:a,...t.toRefs(n),fixedStyle:r,clientHeight:s,setListGroup:c,listview:l,touchStart:f,touchMove:h,touchEnd:y,handleClickItem:k,handleClickIndex:v}}}),ip={class:"fox-elevator__list__item__code"},cp=["onClick"],up=["innerHTML"],dp={class:"fox-elevator__fixed-title"},fp={class:"fox-elevator__bars__inner"},mp=["data-index","onClick"];function pp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",ip,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,up))],10,cp))),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",dp,t.toDisplayString(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):t.createCommentVNode("",!0)],4),e.indexList.length?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__code--current"},t.toDisplayString(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-elevator__bars",onTouchstart:o[0]||(o[0]=(...s)=>e.touchStart&&e.touchStart(...s)),onTouchmove:o[1]||(o[1]=t.withModifiers((...s)=>e.touchMove&&e.touchMove(...s),["stop","prevent"])),onTouchend:o[2]||(o[2]=(...s)=>e.touchEnd&&e.touchEnd(...s))},[t.createElementVNode("view",fp,[(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,mp))),128))])],32)],2)}const no=W(sp,[["render",pp]]),{componentName:ww,create:hp,scope:gp}=U("pagination"),yp=hp({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:o}){const{toLocaleRefs:l}=ie.useFoxI18n(gp),n=l(e,["prevText","nextText"]),{modelValue:a,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:y,itemsPerPage:k}=t.toRefs(e),v=+h.value||Math.ceil(+y.value/+k.value);return Math.max(1,v)}),d=(h,y)=>{h>c.value||h<1||(h!=a.value&&o("update:modelValue",h),y&&o("change",h))},m=(h,y,k=!1)=>({number:h,text:y,active:k}),f=t.computed(()=>{if(r.value=="simple")return;let h=[];const y=c.value,k=+s.value;let v=1,g=y;const u=y>k;u&&(v=Math.max(a.value-Math.floor(k/2),1),g=v+k-1,g>y&&(g=y,v=g-k+1));for(var p=v;p<=g;p++){const b=m(p,p,a.value==p);h.push(b)}if(u&&k>0&&i.value){if(v>1){const b=m(v-1,"...");h.unshift(b)}if(g<y){const b=m(g+1,"...");h.push(b)}}return h});return t.watchEffect(()=>{d(a.value,!1)}),{...n,modelValue:a,select:d,countRef:c,mode:r,pages:f,forceEllipses:i}}}),vp={class:"fox-pagination"},kp={key:0,class:"fox-pagination-contain"},bp=["onClick"],Sp={key:1,class:"fox-pagination-contain"},Cp={class:"fox-pagination-simple"};function wp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",vp,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:o[0]||(o[0]=s=>e.select(e.modelValue-1,!0))},[t.renderSlot(e.$slots,"prev-text",{},()=>[t.createTextVNode(t.toDisplayString(e.prevText),1)])],2),e.mode=="multi"?(t.openBlock(),t.createElementBlock("view",kp,[(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,bp))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Sp,[t.createElementVNode("view",Cp,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:o[1]||(o[1]=s=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const Ya=W(yp,[["render",wp]]),{componentName:sl,create:Np}=U("indicator"),Bp=Np({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:o,align:l}=t.toRefs(e);return{classes:t.computed(()=>{const a=sl;return{[a]:!0,[`${a}--block`]:o.value,[`${a}--align__${l.value}`]:o.value&&l.value}}),componentName:sl,padZero:Ge}}});function Vp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,s=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[s===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(s)||s),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const Xa=W(Bp,[["render",Vp]]),{componentName:Ap,create:Ep}=U("side-navbar"),Tp=Ep({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const o=t.ref(null),l=t.reactive({count:1,observer:null}),n=t.computed(()=>({[Ap]:!0})),a=(s,i=1)=>{for(let c=0;c<s.length;c++){let d=s[c];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*i+"px",d.className.includes("fox-side-navbar-item")||a(Array.from(d.children[1].children),++l.count))}l.count--},r=()=>{let s=o.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),a(s))};return t.onMounted(()=>{r(),l.observer=new MutationObserver(function(){l.count=1,r()}),l.observer.observe(o.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(l),list:o,classes:n}}}),$p={class:"fox-side-navbar__content"},Dp={class:"fox-side-navbar__content__list",ref:"list"};function Ip(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",$p,[t.createElementVNode("view",Dp,[t.renderSlot(e.$slots,"default")],512)])],2)}const Qa=W(Tp,[["render",Ip]]),{componentName:qp,create:Mp}=U("side-navbar-item"),zp=Mp({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,o)=>({classes:t.computed(()=>({[qp]:!0})),handleClick:()=>{o.emit("click")}})}),xp=["ikey"],Pp={class:"fox-side-navbar-item__title"};function Lp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[t.createElementVNode("span",Pp,t.toDisplayString(e.title),1)],10,xp)}const Ga=W(zp,[["render",Lp]]),{componentName:Rp,create:Op}=U("sub-side-navbar"),Fp=Op({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:G.ArrowDown2,ArrowUp2:G.ArrowUp2},emits:["title-click"],setup:(e,o)=>{const l=t.reactive({direction:""}),n=t.computed(()=>({[Rp]:!0})),a=t.computed(()=>({height:l.direction?"0px":"auto"})),r=()=>{o.emit("title-click"),l.direction=l.direction?"":"up"};return t.onMounted(()=>{l.direction=e.open?"":"up"}),{...t.toRefs(l),classes:n,style:a,handleClick:r}}}),Up=["ikey"],Kp={class:"fox-sub-side-navbar__title__text"},Hp={class:"fox-sub-side-navbar__title__icon"};function jp(e,o,l,n,a,r){const s=t.resolveComponent("ArrowDown2"),i=t.resolveComponent("ArrowUp2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-sub-side-navbar__title",onClick:o[0]||(o[0]=t.withModifiers((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[t.createElementVNode("span",Kp,t.toDisplayString(e.title),1),t.createElementVNode("span",Hp,[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,Up)}const Za=W(Fp,[["render",jp]]),{componentName:Wp,create:Yp}=U("range"),Xp=Yp({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:o}){const l=t.ref(0);let n,a;const r=t.ref(),s=t.ref(),i=Ke(),c=t.computed(()=>{const{marks:A,max:T,min:z}=e;return Object.keys(A).map(parseFloat).sort((H,j)=>H-j).filter(H=>H>=z&&H<=T)}),d=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const A=Wp;return{[A]:!0,[`${A}-disabled`]:e.disabled,[`${A}-vertical`]:e.vertical,[`${A}-show-number`]:!e.hiddenRange}}),f=t.computed(()=>{const A="fox-range-container";return{[A]:!0,[`${A}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),y=t.computed(()=>({borderColor:e.buttonColor})),k=A=>!!e.range&&Array.isArray(A),v=()=>{const{modelValue:A,min:T}=e;return k(A)?`${(A[1]-A[0])*100/d.value}%`:`${(A-Number(T))*100/d.value}%`},g=()=>{const{modelValue:A,min:T}=e;return k(A)?`${(A[0]-Number(T))*100/d.value}%`:"0%"},u=t.computed(()=>e.vertical?{height:v(),top:g(),background:e.activeColor,transition:s.value?"none":void 0}:{width:v(),left:g(),background:e.activeColor,transition:s.value?"none":void 0}),p=A=>{const T="fox-range-mark",{modelValue:z,max:$,min:x}=e;let H=Number(x),j=Number($);if(e.range){const[R,O]=z;H=R,j=O}else j=z;let Y=A<=j&&A>=H;return{[`${T}-text`]:!0,[`${T}-text-active`]:Y}},b=A=>{const{min:T,vertical:z}=e;let $={left:`${(A-Number(T))/d.value*100}%`};return z&&($={top:`${(A-Number(T))/d.value*100}%`}),$},S=A=>{const{modelValue:T,max:z,min:$}=e;let x=Number($),H=Number(z);if(e.range){const[R,O]=T;x=R,H=O}return{background:A<=H&&A>=x?e.activeColor:e.inactiveColor}},B=A=>{const{min:T,max:z,step:$}=e;return A=Math.max(+T,Math.min(A,+z)),Math.round(A/+$)*+$},E=(A,T)=>JSON.stringify(A)===JSON.stringify(T),I=A=>A[0]>A[1]?A.slice(0).reverse():A,V=(A,T)=>{k(A)?A=I(A).map(B):A=B(A),E(A,e.modelValue)||o("update:modelValue",A),T&&!E(A,n)&&o("change",A)},C=A=>{if(e.disabled)return;const{min:T,modelValue:z}=e,$=ve(r);let x=A.clientX-$.left,H=$.width;e.vertical&&(x=A.clientY-$.top,H=$.height);const j=Number(T)+x/H*d.value;if(k(z)){const[Y,R]=z,O=(Y+R)/2;j<=O?V([j,R],!0):V([Y,j],!0)}else V(j,!0)},w=A=>{e.disabled||(i.start(A),a=e.modelValue,k(a)?n=a.map(B):n=B(a),s.value="start")},q=A=>{if(e.disabled)return;s.value==="start"&&o("drag-start"),i.move(A),s.value="draging";const T=ve(r);let z=i.deltaX.value,$=T.width,x=z/$*d.value;e.vertical&&(z=i.deltaY.value,$=T.height,x=z/$*d.value),k(n)?a[l.value]=n[l.value]+x:a=n+x,V(a),A.stopPropagation(),A.preventDefault()},L=()=>{e.disabled||(s.value==="draging"&&(V(a,!0),o("drag-end")),s.value="")},M=A=>mo(e.modelValue)&&typeof A=="number"?e.modelValue[A]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:h,buttonStyle:y,onClick:C,onTouchStart:w,onTouchMove:q,onTouchEnd:L,...t.toRefs(e),barStyle:u,curValue:M,buttonIndex:l,containerClasses:f,markClassName:p,marksStyle:b,marksList:c,tickStyle:S}}}),Qp={key:0,class:"fox-range-min"},Gp={key:0,class:"fox-range-mark"},Zp=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Jp={key:0,class:"number"},_p=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],eh={key:0,class:"number"},th={key:1,class:"fox-range-max"};function oh(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Qp,t.toDisplayString(+e.min),1)),t.createElementVNode("view",{ref:"root",style:t.normalizeStyle(e.wrapperStyle),class:t.normalizeClass(e.classes),onClick:o[9]||(o[9]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",Gp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,s=>(t.openBlock(),t.createElementBlock("span",{key:s,class:t.normalizeClass(e.markClassName(s)),style:t.normalizeStyle(e.marksStyle(s))},[t.createTextVNode(t.toDisplayString(s)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(s))},null,4)],6))),128))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-range-bar",style:t.normalizeStyle(e.barStyle)},[e.range?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList([0,1],s=>t.createElementVNode("view",{key:s,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":s==0,"fox-range-button-wrapper-right":s==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(s),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(i=>{typeof s=="number"&&(e.buttonIndex=s),e.onTouchStart(i)},["stop","prevent"]),onTouchmove:o[0]||(o[0]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:o[1]||(o[1]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:o[2]||(o[2]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:o[3]||(o[3]=i=>i.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Jp,t.toDisplayString(e.curValue(s)),1))],4))],42,Zp)),64)):(t.openBlock(),t.createElementBlock("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:o[4]||(o[4]=t.withModifiers(s=>{e.onTouchStart(s)},["stop","prevent"])),onTouchmove:o[5]||(o[5]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:o[6]||(o[6]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:o[7]||(o[7]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:o[8]||(o[8]=s=>s.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",eh,t.toDisplayString(e.curValue()),1))],4))],40,_p))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",th,t.toDisplayString(+e.max),1))],2)}const lo=W(Xp,[["render",oh]]),{create:nh,scope:lh}=U("searchbar"),ah=nh({props:{modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object,default:()=>G.CircleClose},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},emits:["change","update:modelValue","blur","focus","clear","search","click-input","click-left-icon","click-right-icon"],setup(e,{emit:o}){const{toLocaleRefs:l}=ie.useFoxI18n(lh),n=l(e,["placeholder"]),a=t.reactive({active:!1}),r=t.computed(()=>({background:e.background})),s=t.computed(()=>({background:e.inputBackground})),i=p=>{let S=p.target.value;e.maxLength&&S.length>Number(e.maxLength)&&(S=S.slice(0,Number(e.maxLength))),o("update:modelValue",S,p),o("change",S,p)},c=t.ref({}),d=p=>{let S=p.target.value;a.active=!0,c.value=e.focusStyle,o("focus",S,p)},m=p=>{setTimeout(()=>{a.active=!1},0);let S=p.target.value;e.maxLength&&S.length>Number(e.maxLength)&&(S=S.slice(0,Number(e.maxLength))),c.value={},o("blur",S,p)},f=p=>{o("update:modelValue","",p),o("change","",p),o("clear","")},h=()=>{o("search",e.modelValue)},y=p=>{o("click-input",p)},k=p=>{o("click-left-icon",e.modelValue,p)},v=p=>{o("click-right-icon",e.modelValue,p)},g=t.computed(()=>({textAlign:e.inputAlign})),u=t.ref(null);return t.onMounted(()=>{e.autofocus&&u.value.focus()}),{...n,inputsearch:u,...t.toRefs(a),valueChange:i,valueFocus:d,valueBlur:m,handleClear:f,handleSubmit:h,searchbarStyle:r,inputSearchbarStyle:s,focusCss:c,clickInput:y,leftIconClick:k,rightIconClick:v,styleSearchbar:g}}}),rh={key:0,class:"fox-searchbar__search-label"},sh={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},ih=["type","maxlength","placeholder","value","disabled","readonly"],ch={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-search-icon"},uh={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function dh(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:"fox-searchbar",style:t.normalizeStyle(e.searchbarStyle)},[e.label?(t.openBlock(),t.createElementBlock("span",rh,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",sh,[t.renderSlot(e.$slots,"leftout")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__search-input",e.shape]),style:t.normalizeStyle({...e.inputSearchbarStyle,...e.focusCss})},[e.$slots.leftin?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-searchbar__search-icon fox-searchbar__iptleft-search-icon",onClick:o[0]||(o[0]=(...s)=>e.leftIconClick&&e.leftIconClick(...s))},[t.renderSlot(e.$slots,"leftin")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner",e.$slots.rightin&&"fox-searchbar__input-inner-absolute"])},[t.createElementVNode("form",{class:"fox-searchbar__input-form",action:"#",onSubmit:o[5]||(o[5]=t.withModifiers((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[t.createElementVNode("input",{ref:"inputsearch",class:t.normalizeClass(["fox-searchbar__input-bar",e.clearable&&"fox-searchbar__input-bar_clear"]),type:e.inputType,maxlength:e.maxLength,placeholder:e.placeholder,value:e.modelValue,disabled:e.disabled,readonly:e.readonly,onClick:o[1]||(o[1]=(...s)=>e.clickInput&&e.clickInput(...s)),onInput:o[2]||(o[2]=(...s)=>e.valueChange&&e.valueChange(...s)),onFocus:o[3]||(o[3]=(...s)=>e.valueFocus&&e.valueFocus(...s)),onBlur:o[4]||(o[4]=(...s)=>e.valueBlur&&e.valueBlur(...s)),style:t.normalizeStyle(e.styleSearchbar)},null,46,ih)],32)],2),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner-icon",e.$slots.rightin&&"fox-searchbar__input-inner-icon-absolute"])},[e.clearable?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,onClick:o[6]||(o[6]=(...s)=>e.handleClear&&e.handleClear(...s)),class:"fox-searchbar__search-icon fox-searchbar__input-clear"},[e.$slots["clear-icon"]?t.renderSlot(e.$slots,"clear-icon",{key:0}):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.clearIcon),{key:1}))],512)),[[t.vShow,String(e.modelValue).length>0]]):t.createCommentVNode("",!0),e.$slots.rightin?(t.openBlock(),t.createElementBlock("view",ch,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],2)],6),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",uh,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const Ja=W(ah,[["render",dh]]),{componentName:fh,create:mh}=U("input-number"),ph=mh({components:{Minus:G.Minus,Plus:G.Plus},props:{modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:o}){const l=t.computed(()=>{const y=fh;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),n=y=>Number(y).toFixed(Number(e.decimalPlaces)),a=y=>{const k=y.target;o("update:modelValue",k.valueAsNumber,y)},r=(y,k)=>{let v=n(y);o("update:modelValue",v,k),o("change",v,k)},s=(y=Number(e.modelValue))=>y<Number(e.max)&&!e.disabled,i=(y=Number(e.modelValue))=>y>Number(e.min)&&!e.disabled,c=y=>{if(o("reduce",y),i()){let k=Number(e.modelValue)-Number(e.step);r(k,y)}else o("overlimit",y,"reduce")},d=y=>{if(o("add",y),s()){let k=Number(e.modelValue)+Number(e.step);r(k,y)}else o("overlimit",y,"add")},m=y=>{e.disabled||e.readonly||o("focus",y)},f=y=>{if(e.disabled||e.readonly)return;let v=y.target.valueAsNumber;v<Number(e.min)?v=Number(e.min):v>Number(e.max)&&(v=Number(e.max)),r(v,y),o("blur",y)},h=y=>{let k=Number(y);return k<Number(e.min)?k=Number(e.min):k>Number(e.max)&&(k=Number(e.max)),k};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const y=h(e.modelValue);y!==Number(e.modelValue)&&r(y,{})}),{classes:l,change:a,blur:f,focus:m,add:d,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:le}}}),hh=["min","max","disabled","readonly","value"];function gh(e,o,l,n,a,r){const s=t.resolveComponent("Minus"),i=t.resolveComponent("Plus");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:o[0]||(o[0]=(...c)=>e.reduce&&e.reduce(...c))},[t.renderSlot(e.$slots,"left-icon",{},()=>[t.createVNode(s,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxDesc(e.inputWidth),height:e.toPxDesc(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:o[1]||(o[1]=(...c)=>e.change&&e.change(...c)),onBlur:o[2]||(o[2]=(...c)=>e.blur&&e.blur(...c)),onFocus:o[3]||(o[3]=(...c)=>e.focus&&e.focus(...c))},null,44,hh),t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:o[4]||(o[4]=(...c)=>e.add&&e.add(...c))},[t.renderSlot(e.$slots,"right-icon",{},()=>[t.createVNode(i,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2)],2)}const pt=W(ph,[["render",gh]]),{create:yh,componentName:vh}=U("rate"),kh=yh({props:{count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object,default:()=>G.StarFillN},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}},components:{StarFillN:G.StarFillN},emits:["update:modelValue","change"],setup(e,{emit:o,slots:l}){const n=t.ref([]),a=t.computed(()=>({[vh]:!0})),r=h=>{o("update:modelValue",h),o("change",h)},s=(h,y)=>{if(e.disabled||e.readonly)return;let k=0;y===1&&e.modelValue===y||(k=y,e.allowHalf&&h==2&&(k-=.5)),r(k)},i=(h,y,k)=>{let v=0;for(let g=y.value.length-1;g>=0;g--){const u=y.value[g];if(h>u.offsetLeft){k?v=g+(h>u.offsetLeft+u.clientWidth/2?1:.5):v=g+1;break}}return v},c=Ke(),d={onTouchStart(h){!e.touchable||e.readonly||c.start(h)},onTouchMove(h){e.touchable&&(c.move(h),c.isHorizontal()&&n.value&&(h.preventDefault(),r(i(c.moveX.value,n,e.allowHalf))))}},m=Math.random().toString(36).slice(-8);return{classes:a,...d,onClick:s,toPxDesc:le,renderIcon:(h,y)=>t.h(h,y),rateRefs:n,refRandomId:m,slots:l}}}),bh=["id"],Sh={class:"fox-rate-item__icon--full"},Ch={key:0,class:"fox-rate-item__icon--half"},wh={key:1,class:"fox-rate-item__icon--half"};function Nh(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:s,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+s,style:t.normalizeStyle(s<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",Sh,[(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",Ch,[(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",wh,[(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,bh))),128))],34)}const ao=W(kh,[["render",Nh]]),{create:Bh,scope:Vh}=U("short-password"),Ah=Bh({components:{[ce.name]:ce,Tips:G.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:o}){const{toLocaleRefs:l}=ie.useFoxI18n(Vh),n=l(e,["title","desc","tips"]),a=t.ref(e.modelValue),r=t.computed(()=>d(Number(e.length))),s=t.ref(e.visible),i=f=>{f.stopPropagation(),o("focus")};t.watch(()=>e.visible,f=>{s.value=f}),t.watch(()=>e.modelValue,f=>{a.value=f,String(f).length===r.value&&o("complete",f)});const c=()=>{o("update:visible",!1),o("close")},d=f=>Math.min(Math.max(4,f),6);return{comLen:r,realInput:a,onTouchStart:i,range:d,close:c,onTips:()=>{o("tips")},show:s,...n}}}),Eh={class:"fox-short-password-title"},Th={class:"fox-short-password-subtitle"},$h={class:"fox-short-password-wrapper"},Dh={key:0,class:"fox-short-password__item-icon"},Ih={class:"fox-short-password__message"},qh={class:"fox-short-password--error"},Mh={key:0,class:"fox-short-password--forget"};function zh(e,o,l,n,a,r){const s=t.resolveComponent("Tips"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(i,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":o[2]||(o[2]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("view",Eh,t.toDisplayString(e.title),1),t.createElementVNode("view",Th,t.toDisplayString(e.desc),1),t.createElementVNode("div",$h,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:o[0]||(o[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?(t.openBlock(),t.createElementBlock("view",Dh)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",Ih,[t.createElementVNode("view",qh,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",Mh,[t.createVNode(s,{class:"icon",width:"11px",height:"11px"}),t.createElementVNode("view",{onClick:o[1]||(o[1]=(...c)=>e.onTips&&e.onTips(...c))},t.toDisplayString(e.tips),1)])):t.createCommentVNode("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}const _a=W(Ah,[["render",zh]]);class xh{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Ph=class{options;constructor(o){this.options=o}upload(){const o=this.options,l=new XMLHttpRequest;if(l.timeout=o.timeout,l.upload){l.upload.addEventListener("progress",n=>{o.onProgress?.(n,o)},!1),l.onreadystatechange=()=>{l.readyState===4&&(l.status==o.xhrState?o.onSuccess?.(l.responseText,o):o.onFailure?.(l.responseText,o))},l.withCredentials=o.withCredentials,l.open(o.method,o.url,!0);for(const[n,a]of Object.entries(o.headers))l.setRequestHeader(n,a);o.onStart?.(o),o.beforeXhrUpload?o.beforeXhrUpload(l,o):l.send(o.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}};class Lh{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const er=(e,{args:o=[],done:l,canceled:n})=>{if(e){const a=e.apply(null,o);sn(a)?a.then(r=>{r?l(r):n&&n()}).catch(()=>{}):a?l():n&&n()}else l()},{create:Rh}=U("progress"),Oh=Rh({components:{Checked:G.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const o=!!t.useSlots().default,l=t.ref(e.strokeWidth+"px"),n=t.ref(),a=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),s=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),i=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:l,percentage:r,bgStyle:s,textStyle:i,progressOuter:n,insideText:a,slotDefault:o}}}),Fh={class:"fox-progress"},Uh={key:0,class:"fox-progress-text"};function Kh(e,o,l,n,a,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",Fh,[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",Uh,[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 ro=W(Oh,[["render",Kh]]),{componentName:Hh,create:jh,scope:Wh}=U("uploader"),Yh=jh({components:{[ro.name]:ro,Photograph:G.Photograph,Failure:G.Failure,Loading:G.Loading,Del:G.Del,Link:G.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,o)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(Wh),n=t.reactive(e.fileList);let a=[];const r=t.computed(()=>({[Hh]:!0})),s=()=>{let p={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(p.capture="camera"),t.h("input",p)},i=p=>{p.value=""},c=p=>{o("file-item-click",{fileItem:p})},d=(p,b)=>{const S=new xh;S.url=e.url,S.formData=p.formData,S.timeout=e.timeout*1,S.method=e.method,S.xhrState=e.xhrState,S.headers=e.headers,S.withCredentials=e.withCredentials,S.beforeXhrUpload=e.beforeXhrUpload;try{S.sourceFile=p.formData.get(e.name)}catch{}S.onStart=E=>{p.status="ready",p.message=l("readyUpload"),m(b),o("start",E)},S.onProgress=(E,I)=>{p.status="uploading",p.message=l("uploading"),p.percentage=(E.loaded/E.total*100).toFixed(0),o("progress",{event:E,option:I,percentage:p.percentage})},S.onSuccess=(E,I)=>{p.status="success",p.message=l("success"),o("success",{responseText:E,option:I,fileItem:p}),o("update:fileList",n)},S.onFailure=(E,I)=>{p.status="error",p.message=l("error"),o("failure",{responseText:E,option:I,fileItem:p})};let B=new Ph(S);e.autoUpload?B.upload():a.push(new Promise((E,I)=>{E(B)}))},m=(p=-1)=>{p>-1?a.splice(p,1):(a=[],n.splice(0,n.length))},f=()=>{Promise.all(a).then(p=>{p.forEach(b=>b.upload())})},h=p=>{p.forEach((b,S)=>{const B=new FormData;for(const[I,V]of Object.entries(e.data))B.append(I,V);B.append(e.name,b);const E=t.reactive(new Lh);if(E.name=b.name,E.status="ready",E.type=b.type,E.formData=B,E.message=l("waitingUpload"),d(E,S),e.isPreview&&b.type.includes("image")){const I=new FileReader;I.onload=V=>{E.url=V.target.result,n.push(E)},I.readAsDataURL(b)}else n.push(E)})},y=p=>{const b=e.maximum*1,S=e.maximize*1,B=new Array;p=p.filter(I=>I.size>S?(B.push(I),!1):!0),B.length&&o("oversize",B);let E=p.length+n.length;return E>b&&p.splice(p.length-(E-b)),p},k=(p,b)=>{n.splice(b,1),o("delete",{file:p,fileList:n,index:b})},v=(p,b)=>{m(b),er(e.beforeDelete,{args:[p,n],done:()=>k(p,b)})},g=p=>{if(e.disabled)return;const b=p.target;let{files:S}=b;e.beforeUpload?e.beforeUpload(S).then(B=>u(B)):u(S),o("change",{fileList:n,event:p}),e.clearInput&&i(b)},u=p=>{const b=y(new Array().slice.call(p));h(b)};return{onChange:g,onDelete:v,fileList:n,classes:r,fileItemClick:c,clearUploadQueue:m,submit:f,renderInput:s}}}),Xh={key:0,class:"fox-uploader__slot"},Qh={key:0,class:"fox-uploader__preview-img"},Gh={key:0,class:"fox-uploader__preview__progress"},Zh={class:"fox-uploader__preview__progress__msg"},Jh=["onClick"],_h=["onClick","src"],eg={key:3,class:"fox-uploader__preview-img__file"},tg=["onClick"],og={class:"file__name_tips"},ng={class:"tips"},lg={key:1,class:"fox-uploader__preview-list"},ag=["onClick"],rg={class:"file__name_tips"};function sg(e,o,l,n,a,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),d=t.resolveComponent("Del"),m=t.resolveComponent("fox-progress"),f=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",Xh,[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,y)=>(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",Qh,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",Gh,[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",Zh,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:k=>e.onDelete(h,y)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,Jh)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:k=>e.fileItemClick(h),src:h.url},null,8,_h)):(t.openBlock(),t.createElementBlock("view",eg,[t.createElementVNode("view",{onClick:k=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",og,t.toDisplayString(h.name),1)],8,tg)])),t.createElementVNode("view",ng,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",lg,[t.createElementVNode("view",{onClick:k=>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",rg,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:k=>e.onDelete(h,y)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,ag),h.status=="uploading"?(t.openBlock(),t.createBlock(m,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(f,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const tr=W(Yh,[["render",sg]]),ig="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/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0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:ug,scope:dg}=U("number-keyboard"),fg=ug({components:{[ce.name]:ce},props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:o}){const{toLocaleRefs:l}=ie.useFoxI18n(dg),n=l(e,["confirmText"]),a=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:u}=e;let p={id:"lock",type:"lock"},b=Array.isArray(u)?u:[u];return b.length===1&&(p={id:b[0],type:"custom"}),[...c(),p,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const u=[];for(let p=1;p<=9;p++)u.push({id:p,type:"number"});return e.randomKeys?u.sort(()=>Math.random()>.5?1:-1):u}function d(){const u=c(),{customKey:p}=e;let b=Array.isArray(p)?p:[p];return b.length>2&&(b=[b[0],b[1]]),b.length==2&&e.title&&e.type!="rightColumn"&&(b=[b[0]]),b.length===1?e.title&&e.type!="rightColumn"?u.push({id:b[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):u.push({id:0,type:"number"},{id:b[0],type:"custom"}):b.length===2&&u.push({id:b[0],type:"custom"},{id:0,type:"number"},{id:b[1],type:"custom"}),u}const m=t.computed(()=>e.type=="rightColumn"||e.title!=""?d():i()),f=()=>{e.visible&&o("blur")},h=u=>{const p=s.value;p&&!p.contains(u.target)&&f()};t.watch(()=>e.visible,u=>{r.value=u,u?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function y(u,p){p.stopPropagation(),a.value=u.id,(u.type=="number"||u.type=="custom")&&(o("input",u.id),e.modelValue.length<Number(e.maxlength)&&o("update:modelValue",e.modelValue+u.id)),u.type=="lock"&&g(),u.type=="delete"&&(o("delete"),o("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function k(u){u.stopPropagation()}function v(u){u.preventDefault(),a.value=void 0}function g(){o("update:visible",!1),o("close")}return{...n,delImg:ig,lockImg:cg,clickKeyIndex:a,defaultKey:i,closeBoard:g,onTouchEnd:v,onTouchMove:k,onTouchstart:y,keysList:m,genCustomKeys:d,getBasicKeys:c,root:s,show:r}}}),mg={ref:"root"},pg={class:"fox-number-keyboard"},hg={key:0,class:"fox-number-keyboard__header"},gg={class:"fox-number-keyboard__title"},yg={class:"fox-number-keyboard__body"},vg={class:"fox-number-keyboard__keys"},kg=["onTouchstart"],bg=["src"],Sg=["src"],Cg={key:0,class:"fox-number-keyboard__sidebar"},wg={class:"fox-key__wrapper"},Ng=["src"];function Bg(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",mg,[t.createVNode(s,{visible:e.show,"onUpdate:visible":o[7]||(o[7]=i=>e.show=i),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",pg,[e.title?(t.openBlock(),t.createElementBlock("div",hg,[t.createElementVNode("h3",gg,t.toDisplayString(e.title),1),e.type=="default"?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-number-keyboard__close",onClick:o[0]||(o[0]=i=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",yg,[t.createElementVNode("div",vg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,i=>(t.openBlock(),t.createElementBlock("div",{key:"key"+i.id,class:t.normalizeClass(["fox-key__wrapper",{"fox-key__wrapper--wider":i.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{"fox-key--active":i.id==e.clickKeyIndex},{"fox-key--lock":i.type=="lock"},{"fox-key--delete":i.type=="delete"}]),onTouchstart:c=>e.onTouchstart(i,c),onTouchmove:o[1]||(o[1]=c=>e.onTouchMove(c)),onTouchend:o[2]||(o[2]=c=>e.onTouchEnd(c))},[i.type=="number"||i.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.id),1)],64)):t.createCommentVNode("",!0),i.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,bg)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,Sg)):t.createCommentVNode("",!0)],42,kg)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",Cg,[t.createElementVNode("div",wg,[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:o[3]||(o[3]=i=>e.onTouchstart({id:"delete",type:"delete"},i)),onTouchmove:o[4]||(o[4]=i=>e.onTouchMove(i)),onTouchend:o[5]||(o[5]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("img",{src:e.delImg},null,8,Ng)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:o[6]||(o[6]=i=>e.closeBoard())},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},t.toDisplayString(e.confirmText),3)])])):t.createCommentVNode("",!0)])])]),_:1},8,["visible","popClass"])],512)}const or=W(fg,[["render",Bg]]),{componentName:Vg,create:Ag}=U("swipe"),Eg=Ag({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:o}){const l=t.computed(()=>({[Vg]:!0})),n=p=>p.value?.clientWidth||0,a=t.ref(),r=t.computed(()=>n(a)),s=t.ref(),i=t.computed(()=>n(s));let c=!1,d="",m="";const f=t.reactive({offset:0,moving:!1}),h=(p="")=>{c=!0,p&&(f.offset=p==="left"?-i.value:r.value),o("open",{name:e.name,position:d||p})},y=()=>{f.offset=0,c=!1,o("close",{name:e.name,position:d})},k=t.computed(()=>({transform:`translate3d(${f.offset}px, 0, 0)`})),v=p=>{d=p>0?"right":"left";let b=p;switch(d){case"left":c&&m===d?b=-i.value:b=Math.abs(p)>i.value?-i.value:p;break;case"right":c&&m===d?b=r.value:b=Math.abs(p)>r.value?r.value:p;break}f.offset=b},g=Ke();return{classes:l,touchStyle:k,...{onTouchStart(p){e.disabled||g.start(p)},onTouchMove(p){e.disabled||(g.move(p),g.isHorizontal()&&(f.moving=!0,v(g.deltaX.value),e.touchMovePreventDefault&&p.preventDefault(),e.touchMoveStopPropagation&&p.stopPropagation()))},onTouchEnd(){if(f.moving)switch(f.moving=!1,m=d,d){case"left":Math.abs(f.offset)<=i.value/2?y():(f.offset=-i.value,h());break;case"right":Math.abs(f.offset)<=r.value/2?y():(f.offset=r.value,h());break}}},leftRef:a,rightRef:s,open:h,close:y}}}),Tg={class:"fox-swipe__left",ref:"leftRef"},$g={class:"fox-swipe__content"},Dg={class:"fox-swipe__right",ref:"rightRef"};function Ig(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",Tg,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",$g,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Dg,[t.renderSlot(e.$slots,"right")],512)],38)}const so=W(Eg,[["render",Ig]]),{componentName:qg,create:Mg}=U("action-sheet"),zg=Mg({components:{[ce.name]:ce,Loading:G.Loading},props:{...at,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:o}){const l=!!t.useSlots().default,n=t.computed(()=>({[qg]:!0}));return{slotDefault:l,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{o("cancel"),o("update:visible",!1)},chooseItem:(c,d)=>{!c.disable&&!c.loading&&(o("choose",c,d),o("update:visible",!1))},close:c=>{o("close",c),o("update:visible",!1)},classes:n}}}),xg={key:0,class:"fox-action-sheet__title"},Pg={key:1},Lg={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},Rg={key:1,class:"fox-action-sheet__menu"},Og=["onClick"],Fg={key:1},Ug={class:"fox-action-sheet__subdesc"};function Kg(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.title?(t.openBlock(),t.createElementBlock("view",xg,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Pg,[e.description?(t.openBlock(),t.createElementBlock("view",Lg,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",Rg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,d)=>(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:d,onClick:m=>e.chooseItem(c,d)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",Fg,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",Ug,t.toDisplayString(c[e.optionSubTag]),1)],14,Og))),128))])):t.createCommentVNode("",!0),e.cancelTxt?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-action-sheet__cancel",onClick:o[0]||(o[0]=(...c)=>e.cancelActionSheet&&e.cancelActionSheet(...c))},t.toDisplayString(e.cancelTxt),1)):t.createCommentVNode("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}const nr=W(zg,[["render",Kg]]),{componentName:Hg,create:jg}=U("backtop"),lr=jg({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:o,slots:l}){const n=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),a=t.computed(()=>({[Hg]:!0,show:n.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){n.scrollEl instanceof Window?n.scrollTop=n.scrollEl.pageYOffset:n.scrollTop=n.scrollEl.scrollTop,n.backTop=n.scrollTop>=e.distance}function i(k=0){n.scrollEl instanceof Window?window.scrollTo(0,k):n.scrollEl.scrollTop=k}function c(){let k=Ye(function v(){var g=e.duration-Math.max(0,n.startTime-+new Date+e.duration),u=g*-n.scrollTop/e.duration+n.scrollTop;i(u),k=Ye(v),(g==e.duration||u==0)&&ul(k)})}function d(){n.scrollEl.addEventListener("scroll",s,!1),n.scrollEl.addEventListener("resize",s,!1)}function m(){n.scrollEl.removeEventListener("scroll",s,!1),n.scrollEl.removeEventListener("resize",s,!1)}function f(k){n.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),o("click",k)}function h(){y.value?n.scrollEl=y.value.el:e.elId&&document.getElementById(e.elId)&&(n.scrollEl=document.getElementById(e.elId)),d()}t.onMounted(()=>{e.distance==0&&(n.backTop=!0),h()}),t.onUnmounted(()=>{m()}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1,h())}),t.onDeactivated(()=>{n.keepAlive=!0,m()});const y=t.computed(()=>{if(typeof l.content=="function"){const k=l.content();return Array.isArray(k)?k[0]:k}return null});return()=>{const k=[];y.value&&k.push(y.value);const v=[];if(typeof l.default=="function")v.push(l.default());else{const u=t.h(G.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});v.push(u)}const g=t.h("div",{class:a.value,style:r.value,onClick:f},v);return k.push(g),k}}}),{componentName:Wg,create:Yg}=U("drag"),Xg=Yg({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:o}){const l=t.ref(),n=t.reactive({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),a=t.computed(()=>({[Wg]:!0}));function r(){const f=document.documentElement;n.elWidth=l.value.offsetWidth,n.elHeight=l.value.offsetHeight,n.screenWidth=f.clientWidth,n.screenHeight=f.clientHeight}function s(f){n.boundary.left?+f.style.left.split("px")[0]>n.boundary.left?(f.style.left=+f.style.left.split("px")[0]-10+"px",Qe(()=>{s(f)})):f.style.left=`${n.boundary.left}px`:+f.style.left.split("px")[0]>10?(f.style.left=+f.style.left.split("px")[0]-10+"px",Qe(()=>{s(f)})):f.style.left="0px"}function i(f,h){h-parseInt(f.style.left.split("px")[0])>10?(f.style.left=parseInt(f.style.left.split("px")[0])+10+"px",Qe(()=>{i(f,h)})):f.style.left=h+"px"}function c(f){f.preventDefault();const h=f.currentTarget;if(f.targetTouches.length===1){const y=f.targetTouches[0];n.nx=y.clientX-n.position.x,n.ny=y.clientY-n.position.y,n.xPum=n.startLeft+n.nx,n.yPum=n.startTop+n.ny;const k=n.screenWidth-n.elWidth-n.boundary.right;Math.abs(n.xPum)>k?n.xPum=k:n.xPum<=n.boundary.left&&(n.xPum=n.boundary.left),n.yPum<n.boundary.top?n.yPum=n.boundary.top:n.yPum>n.screenHeight-n.elHeight-n.boundary.bottom&&(n.yPum=n.screenHeight-n.elHeight-n.boundary.bottom),e.direction!="y"&&(h.style.left=n.xPum+"px"),e.direction!="x"&&(h.style.top=n.yPum+"px")}}function d(f){const h=f.currentTarget;let k=f.changedTouches[0].clientX;const v=n.screenWidth-n.elWidth-n.boundary.right;k>v?k=v:k<n.boundary.left?k=n.boundary.left:k=k<n.screenWidth/2?n.boundary.left:v,e.direction!="y"&&e.attract&&(k<n.screenWidth/2?Qe(()=>{s(h)}):Qe(()=>{i(h,v)})),e.direction!="x"&&(h.style.top=n.yPum+"px")}function m(f){const h=f.currentTarget,y=f.touches[0],k=f.targetTouches[0];n.startTop=h.offsetTop,n.startLeft=h.offsetLeft,n.position.x=y.clientX,n.position.y=y.clientY,n.nx=k.clientX-n.position.x,n.ny=k.clientY-n.position.y,n.xPum=n.startLeft+n.nx,n.yPum=n.startTop+n.ny}return t.onMounted(()=>{r(),n.boundary=e.boundary}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1)}),t.onDeactivated(()=>{n.keepAlive=!0;const f=l;f.value.removeEventListener("touchstart",m),f.value.removeEventListener("touchmove",c),f.value.removeEventListener("touchend",d)}),{classes:a,myDrag:l,touchStart:m,touchMove:c,touchEnd:d}}});function Qg(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:o[0]||(o[0]=s=>e.touchStart(s)),onTouchmove:o[1]||(o[1]=s=>e.touchMove(s)),onTouchend:o[2]||(o[2]=s=>e.touchEnd(s))},[t.renderSlot(e.$slots,"default")],34)}const ar=W(Xg,[["render",Qg]]),{componentName:Gg,create:Zg,scope:Jg}=U("dialog"),_g=Zg({inheritAttrs:!1,components:{[ce.name]:ce,[Pe.name]:Pe},props:{...at,closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String,default:""},content:{type:[String,Object],default:""},noFooter:{type:Boolean,default:!1},noConfirmBtn:{type:Boolean,default:!1},noCancelBtn:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},closeOnPopstate:{type:Boolean,default:!1},footerDirection:{type:String,default:"horizontal"},customClass:{type:String,default:""},popStyle:{type:Object},beforeClose:{type:Function}},emits:["update","update:visible","confirm","cancel","opened","closed"],setup(e,{emit:o}){const{toLocaleRefs:l}=ie.useFoxI18n(Jg),n=l(e,["confirmText","cancelText"]),a=t.ref(e.visible);t.onMounted(()=>{e.closeOnPopstate&&lt&&window.addEventListener("popstate",function(){i("page")})}),t.watch(()=>e.visible,m=>{a.value=m,m&&o("opened")});const r=t.computed(()=>({[Gg]:!0,[e.customClass]:!0})),s=m=>{o("update",m),o("update:visible",m)},i=m=>{if(e.beforeClose){const f=e.beforeClose(m);sn(f)&&f.then(h=>{h&&(s(!1),o("closed"))})}else s(!1),o("closed")};return{...n,closed:i,classes:r,onCancel:()=>{o("cancel"),e.cancelAutoClose&&i("cancel")},onConfirm:()=>{o("confirm"),i("confirm")},showPopup:a}}}),ey={key:0,class:"fox-dialog__header"},ty=["innerHTML"];function oy(e,o,l,n,a,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{teleport:e.teleport,visible:e.showPopup,"onUpdate:visible":o[0]||(o[0]=c=>e.showPopup=c),"close-on-click-overlay":e.closeOnClickOverlay,"lock-scroll":e.lockScroll,"pop-class":e.popClass,style:t.normalizeStyle(e.popStyle),"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,round:"",onClickOverlay:e.closed,onClickCloseIcon:e.closed},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("view",ey,[e.$slots.header?t.renderSlot(e.$slots,"header",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.title),1)],64))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-dialog__content",style:t.normalizeStyle({textAlign:e.textAlign})},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):typeof e.content=="string"?(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.content},null,8,ty)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.content),{key:2}))],4),e.noFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-dialog__footer",{[e.footerDirection]:e.footerDirection}])},[e.$slots.footer?t.renderSlot(e.$slots,"footer",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.noCancelBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,size:"small",plain:"",type:"primary",class:"fox-dialog__footer-cancel",onClick:e.onCancel},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.cancelText),1)]),_:1},8,["onClick"])),e.noConfirmBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:1,size:"small",type:"primary",class:"fox-dialog__footer-ok",onClick:e.onConfirm},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1},8,["onClick"]))],64))],2))],2)]),_:3},8,["teleport","visible","close-on-click-overlay","lock-scroll","pop-class","style","overlay-class","overlay-style","onClickOverlay","onClickCloseIcon"])}const rr=W(_g,[["render",oy]]);class ny{title="";content="";cancelText="";confirmText="";textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=o=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1}class ly{options=new ny;instance;constructor(o){let l=Object.assign(this.options,o),n=document.body,a=l.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):n=l.teleport);const r=document.createElement("view");r.id="dialog-"+l.id;const s={setup(){return l.onUpdate=i=>{i==!1&&n.removeChild(r)},l?.onOpened&&l?.onOpened(),l.teleport=`#${r.id}`,()=>t.h(rr,l)}};this.instance=t.createVNode(s),n.appendChild(r),t.render(this.instance,r)}close=()=>{};setDefaultOptions=o=>{};resetDefaultOptions=()=>{}}const io=function(e){return new ly(e)};io.install=e=>{e.use(rr),e.config.globalProperties.$dialog=io};const{componentName:ay,create:ry,scope:sy}=U("infinite-loading"),iy=ry({props:{modelValue:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!0},threshold:{type:Number,default:200},loadText:{type:String},loadMoreText:{type:String},useCapture:{type:Boolean,default:!1}},emits:["scroll-change","load-more","update:modelValue"],components:{Loading:G.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ie.useFoxI18n(sy),a=n(e,["pullText","loadText","loadMoreText"]),r=t.ref(),s=ua(r),i=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[ay]:!0})),d=v=>v?v.offsetTop+d(v.offsetParent):0,m=()=>{let v=0,g=0,u="down";if(s.value==window){const p=cn();r.value&&(v=d(r.value)+r.value.offsetHeight-p-window.innerHeight),g=p}else{const{scrollHeight:p,clientHeight:b,scrollTop:S}=s.value;v=p-b-S,g=S}return i.beforeScrollTop>g?u="up":u="down",i.beforeScrollTop=g,o("scroll-change",g),v<=e.threshold&&u=="down"},f=()=>{Ye(()=>{if(!m()||!e.hasMore||i.isInfiniting)return!1;i.isInfiniting=!0,o("update:modelValue",!0),t.nextTick(()=>o("load-more"))})},h=()=>{s.value&&s.value.addEventListener("scroll",f,e.useCapture)},y=()=>{s.value&&s.value.removeEventListener("scroll",f,e.useCapture)};t.onMounted(()=>{h()}),t.onUnmounted(()=>{y()});const k=t.ref(!1);return t.onActivated(()=>{k.value&&(k.value=!1,h())}),t.onDeactivated(()=>{k.value=!0,y()}),t.watch(()=>e.modelValue,v=>{v||(i.isInfiniting=!1)}),{classes:c,scroller:r,...t.toRefs(i),slots:l,...a}}}),cy={class:"fox-infinite__container"},uy={class:"fox-infinite__bottom"},dy={key:0,class:"fox-infinite__bottom-box"},fy={class:"fox-infinite__bottom-box__text"},my={class:"fox-infinite__bottom-tips"};function py(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"scroller"},[t.createElementVNode("view",cy,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",uy,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",dy,[t.renderSlot(e.$slots,"loading",{},()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[t.createVNode(s,{class:"fox-icon-loading fox-infinite__bottom-box__img"})]),t.createElementVNode("view",fy,t.toDisplayString(e.loadText),1)])])):e.hasMore?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"finished",{key:1},()=>[t.createElementVNode("view",my,t.toDisplayString(e.loadMoreText),1)])])],2)}const sr=W(iy,[["render",py]]),{componentName:hy,create:gy,scope:yy}=U("pull-refresh"),vy=gy({props:{modelValue:{type:Boolean,default:!1},pullingText:{type:String},loosingText:{type:String},loadingText:{type:String},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},emits:["change","refresh","update:modelValue"],components:{Loading:G.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ie.useFoxI18n(yy),a=n(e,["pullingText","loosingText","loadingText"]),r=Ke(),s=t.ref(),i=ua(s),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal"}),d=t.computed(()=>({[hy]:!0})),m=t.computed(()=>{switch(c.status){case"pulling":return l.pulling?"":a.pullingText.value;case"loosing":return l.loosing?"":a.loosingText.value;case"loading":return l.loading?"":a.loadingText.value}}),f=t.computed(()=>({transitionDuration:`${e.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=t.computed(()=>{const S={};return e.headHeight!=50&&(S.height=le(e.headHeight)),S}),y=S=>{const B=+(e.pullDistance||e.headHeight);let E=S;return S>B&&(S<B*2?E=(S+B)/2:E=B+S/4),Math.round(E)},k=(S,B)=>{const E=+(e.pullDistance||e.headHeight);c.distance=S,B?c.status="loading":S===0?c.status="normal":S<E?c.status="pulling":c.status="loosing",o("change",{status:c.status,distance:S})},v=()=>c.status!=="loading"&&c.status!=="complete",g=()=>i.value==window?cn()==0:i.value&&i.value.scrollTop==0,u=S=>{v()&&(g()?(r.start(S),c.isPullRefresh=!0):(c.distance=0,c.isPullRefresh=!1))},p=S=>{if(v()){r.move(S);const{deltaY:B}=r;r.isVertical()&&B.value>0&&c.isPullRefresh&&(S.preventDefault(),k(y(B.value)))}},b=()=>{c.isPullRefresh&&v()&&r.deltaY.value&&(c.status==="loosing"?(k(+e.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):k(0)),setTimeout(()=>{r.reset()},0)};return t.watch(()=>e.modelValue,S=>{S?k(+e.headHeight,!0):k(0)}),{classes:d,scroller:s,...t.toRefs(c),touchStart:u,touchMove:p,touchEnd:b,getStyle:f,slots:l,getHeightStyle:h,getPullStatus:m}}}),ky={class:"fox-pull-refresh-container-topbox-text"};function by(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),ref:"scroller",onTouchstart:o[0]||(o[0]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:o[1]||(o[1]=(...i)=>e.touchMove&&e.touchMove(...i)),onTouchend:o[2]||(o[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[t.createElementVNode("div",{class:"fox-pull-refresh-container",style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("div",{class:"fox-pull-refresh-container-topbox",style:t.normalizeStyle(e.getHeightStyle)},[e.status=="loading"&&!e.slots.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading fox-pull-refresh-container-topbox-icon"})):t.createCommentVNode("",!0),t.createElementVNode("div",ky,t.toDisplayString(e.getPullStatus),1),e.status=="pulling"?t.renderSlot(e.$slots,"pulling",{key:1}):t.createCommentVNode("",!0),e.status=="loosing"?t.renderSlot(e.$slots,"loosing",{key:2}):t.createCommentVNode("",!0),e.status=="loading"?t.renderSlot(e.$slots,"loading",{key:3}):t.createCommentVNode("",!0)],4),t.renderSlot(e.$slots,"default")],4)],34)}const ir=W(vy,[["render",by]]),{create:Sy}=U("notify"),Cy=Sy({components:{[ce.name]:ce},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:o}){const l=()=>{e.onClick&&e.onClick()};let n=null;const a=()=>{n&&clearTimeout(n),n=null},r=()=>{o("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,d=>{s.value=e.visible;const m=e.duration;d&&m&&(n=setTimeout(()=>{r()},m))},{immediate:!0});return{onAfterLeave:()=>{a(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:l,isShowPopup:s}}});function wy(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.isShowPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.isShowPopup=i),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:o[0]||(o[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}const wn=W(Cy,[["render",wy]]),on={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let ct=[],wt=[];const cr=e=>{if(e){const o=document.getElementById(e);wt=wt.filter(l=>l.id!==e),ct=ct.filter(l=>l!==e),o&&document.body.removeChild(o)}else ct.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),wt=[],ct=[]},Ny=e=>{const o=document.getElementById(e.id);if(o){const l=wt.find(a=>a.id===e.id);l?e={...on,...l,...e}:e={...on,...e};const n=t.createVNode(wn,e);return t.render(n,o),n.component.data}},vt=e=>{e.unmount=cr;let o;if(e.id){if(o=e.id,ct.find(r=>r===e.id))return Ny(e)}else o=new Date().getTime()+"";e={...on,...e},e.id=o,ct.push(e.id),wt.push(e);const l=document.createElement("view");l.id="notify-"+e.id;const n={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(l)},e.duration)}),()=>t.h(wn,e)}},a=t.createVNode(n);document.body.appendChild(l),t.render(a,l)},kt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},ur={text(e,o={}){return kt(e),vt({...o,msg:e})},primary(e,o={}){return kt(e),vt({...o,msg:e,type:"primary"})},success(e,o={}){return kt(e),vt({...o,msg:e,type:"success"})},danger(e,o={}){return kt(e),vt({...o,msg:e,type:"danger"})},warn(e,o={}){return kt(e),vt({...o,msg:e,type:"warning"})},hide(){cr()},install(e){e.use(wn)}},{create:By}=U("toast"),Vy=By({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:o}){let l=null;const n=t.reactive({mounted:!1});t.onMounted(()=>{n.mounted=!0});const a=()=>{l&&(clearTimeout(l),l=null)},r=()=>{n.mounted=!1},s=()=>{a(),e.duration&&(l=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),o("close"))};e.duration&&s(),t.watch(()=>e.duration,y=>{y&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const y=se(e.iconSize);return t.h(e.icon,{width:y,height:y,color:e.iconColor})},m=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),f=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:r,clickCover:i,renderIcon:d,hasIcon:c,toastBodyClass:m,toastIconWrapperClass:f,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Ay={key:1,class:"fox-toast-title"},Ey=["innerHTML"];function Ty(e,o,l,n,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:o[0]||(o[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Ay,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Ey)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Nn=W(Vy,[["render",Ty]]),nn={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 ut=[],Nt=[];const dr=e=>{if(e){const o=document.getElementById(e);Nt=Nt.filter(l=>l.id!==e),ut=ut.filter(l=>l!==e),o&&document.body.removeChild(o)}else ut.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),Nt=[],ut=[]},$y=e=>{const o=document.getElementById(e.id);if(o){const l=Nt.find(a=>a.id===e.id);l?e={...nn,...l,...e}:e={...nn,...e};const n=t.createVNode(Nn,e);return t.render(n,o),zt}},bt=e=>{e.unmount=dr;let o;if(e.id){if(o=e.id,ut.find(a=>a===e.id))return $y(e)}else o=new Date().getTime()+"";e={...nn,...e},e.id=o,ut.push(e.id),Nt.push(e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(Nn,e);return t.render(n,l),document.body.appendChild(l),zt},Ot=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},zt={text(e,o={}){return Ot(e),bt({...o,type:"text",msg:e})},success(e,o={}){return Ot(e),bt({icon:G.Success,...o,msg:e,type:"success"})},fail(e,o={}){return Ot(e),bt({icon:G.Failure,...o,msg:e,type:"fail"})},warn(e,o={}){return Ot(e),bt({icon:G.Tips,...o,msg:e,type:"warn"})},loading(e,o={}){return bt({icon:G.Loading,...o,msg:e,type:"loading"})},hide(e){dr(e)},install(e){e.use(Nn),e.config.globalProperties.$toast=zt}},{componentName:Bw,create:Dy}=U("audio"),Iy=Dy({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:G.Service,[lo.name]:lo},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var v=["webkitVisibilityState","visibilitychange"];try{for(let g=0;g<v.length;g++)document.addEventListener(v[g],()=>{document.hidden?n.value.pause():a.playing&&setTimeout(()=>{n.value.play()},200)})}catch(g){g.message}});const r=v=>{const g=n.value;e.autoplay&&g&&g.paused&&g.play(),a.second=g.duration,a.duration=k(g.duration),o("can-play",v)},s=v=>{a.currentTime=parseInt(v.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,n.value.currentTime=a.currentTime,o("fastBack",a.currentTime)},c=()=>{const v=n.value;a.playing?(v.pause(),a.handPlaying=!1):(v.play(),a.handPlaying=!0),a.playing=!a.playing,o("play",a.playing)},d=()=>{a.currentTime++,n.value.currentTime=a.currentTime,o("forward",a.currentTime)},m=v=>{a.currentDuration=k(v),a.percent=v/a.second*100},f=()=>{a.playing=!1,o("ended")},h=v=>{const g=n.value;g.currentTime=a.second*v/100,o("changeProgress",g.currentTime)},y=()=>{a.hanMuted=!a.hanMuted,o("mute",a.hanMuted)},k=v=>{if(!v)return"00:00:00";let g=parseInt(v),u=Math.floor(g/3600),p=Math.floor((g-u*3600)/60),b=g-u*3600-p*60,S="";return S+=("0"+u.toString()).slice(-2)+":",S+=("0"+p.toString()).slice(-2)+":",S+=("0"+b.toString()).slice(-2),S};return t.watch(()=>a.currentTime,v=>{m(v)}),t.provide("audioParent",{children:[],props:e,audioData:a,handleMute:y,forward:d,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(a),audioRef:n,fastBack:i,forward:d,changeStatus:c,progressChange:h,audioEnd:f,onTimeupdate:s,handleMute:y,onCanplay:r,slots:l}}}),qy={class:"fox-audio"},My={key:0,class:"fox-audio__progress"},zy={class:"fox-audio__time"},xy={class:"fox-audio__bar"},Py=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),Ly={class:"fox-audio__time"},Ry={key:1,class:"fox-audio__icon"},Oy=["controls","src","preload","autoplay","loop","muted"];function Fy(e,o,l,n,a,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",qy,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",My,[t.createElementVNode("div",zy,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",xy,[t.createVNode(s,{modelValue:e.percent,"onUpdate:modelValue":o[0]||(o[0]=c=>e.percent=c),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:t.withCtx(()=>[Py]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Ly,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Ry,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:o[1]||(o[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):(t.openBlock(),t.createBlock(i,{key:1}))],2)])):t.createCommentVNode("",!0),e.type=="none"?(t.openBlock(),t.createElementBlock("div",{key:2,onClick:o[2]||(o[2]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type!="none"?t.renderSlot(e.$slots,"default",{key:3}):t.createCommentVNode("",!0),t.createElementVNode("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:o[3]||(o[3]=(...c)=>e.onTimeupdate&&e.onTimeupdate(...c)),onCanplay:o[4]||(o[4]=(...c)=>e.onCanplay&&e.onCanplay(...c)),onEnded:o[5]||(o[5]=(...c)=>e.audioEnd&&e.audioEnd(...c)),muted:e.hanMuted},null,40,Oy)])}const fr=W(Iy,[["render",Fy]]),{componentName:Vw,create:Uy,scope:Ky}=U("audio-operate"),Hy=Uy({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(Ky),n=t.inject("audioParent"),a=t.reactive(n),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(a),customSlot:r,t:l}}}),jy={class:"fox-audio-operate"};function Wy(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",jy,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:o[0]||(o[0]=(...i)=>e.fastBack&&e.fastBack(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:o[1]||(o[1]=(...i)=>e.changeStatus&&e.changeStatus(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:o[2]||(o[2]=(...i)=>e.forward&&e.forward(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:o[3]||(o[3]=(...i)=>e.handleMute&&e.handleMute(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("mute")),1)]),_:1},8,["type"])),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)])}const mr=W(Hy,[["render",Wy]]),{componentName:Yy,create:Xy}=U("avatar"),Qy=Xy({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:o,shape:l,bgColor:n,color:a}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),d=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const k=s?.avatarGroupRef?.value?.children;k&&y(k)});const m=t.computed(()=>({[Yy]:!0,[`fox-avatar-${o.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${l.value||s?.props?.shape||"normal"}`]:!0})),f=t.computed(()=>({width:r.indexOf(o.value)>-1?"":`${o.value}px`,height:r.indexOf(o.value)>-1?"":`${o.value}px`,backgroundColor:`${n.value}`,color:`${a.value}`,marginLeft:d.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),y=k=>{d.maxIndex=k.length;for(let v=0;v<k.length;v++)k[v]&&k[v].classList&&k[v].classList[0]=="fox-avatar"&&k[v].setAttribute("data-index",v+1);d.index=i?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=s?.props?.maxCount&&(d.showMax=!0)};return{classes:m,styles:f,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(d)}}});function Gy(e,o,l,n,a,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const co=W(Qy,[["render",Gy]]),{componentName:Zy,create:Jy}=U("avatar-group"),_y=Jy({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:o,slots:l}){t.toRefs(e);const n=t.ref(null),a=t.ref(0),r=t.computed(()=>({[Zy]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:n,index:a}),{classes:r,avatarGroupRef:n}}});function ev(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const pr=W(_y,[["render",ev]]);var jt=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(jt||{});function tv(e,o,l){let n=0,a=e.length-1,r=null;for(;n<=a;){r=Math.floor((n+a)/2);const s=e[r],i=l(s,o);if(i===1)return r;i===2?n=r+1:i===3&&(a=r-1)}return r}const{componentName:ov,create:nv}=U("list"),il=document.documentElement.clientHeight||document.body.clientHeight||667,lv=nv({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:il},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref(null),a=t.ref(null),r=t.reactive({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),s=t.computed(()=>Math.min(e.containerHeight,il)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),d=t.computed(()=>({[ov]:!0})),m=t.computed(()=>r.list.slice(r.start,c.value)),f=()=>{if(a.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let u=0;u<r.list.length;++u)r.cachePositions[u]={index:u,height:e.height,top:u*e.height,bottom:(u+1)*(e.height+e.margin),dValue:0}},y=()=>{let u=a.value.childNodes;u=Array.from(u).filter(I=>I.nodeType===1);const p=u[0];u.forEach((I,V)=>{if(!I)return;const C=ve(I),{height:w}=C,L=r.cachePositions[V+r.start].height-w;L&&(r.cachePositions[V+r.start].bottom-=L,r.cachePositions[V+r.start].height=w,r.cachePositions[V+r.start].dValue=L)});let b=0;p&&(b=r.start);const S=r.cachePositions.length;let B=r.cachePositions[b].dValue;r.cachePositions[b].dValue=0;for(let I=b+1;I<S;++I){const V=r.cachePositions[I];r.cachePositions[I].top=r.cachePositions[I-1].bottom,r.cachePositions[I].bottom=r.cachePositions[I].bottom-B,V.dValue!==0&&(B+=V.dValue,V.dValue=0)}const E=r.cachePositions[S-1].bottom;r.phantomHeight=E},k=(u=0)=>{let p=tv(r.cachePositions,u,(S,B)=>{const E=S.bottom;return E===B?jt.eq:E<B?jt.lt:jt.gt});return r.cachePositions[p].bottom<u&&(p+=1),p},v=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,l.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},g=()=>{const u=l.value?.scrollTop,{originStartIndex:p}=r,b=k(u);b!==p&&(r.originStartIndex=b,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&o("scroll-bottom")),o(u>r.scrollTop?"scroll-up":"scroll-down",u),r.scrollTop=u};return t.watch(()=>e.listData,u=>{if(r.list=u.slice(),r.list.length===u.length)h(),y();else{v();return}}),t.watch(()=>r.start,()=>{a.value&&r.list.length>0&&y()}),{...t.toRefs(r),list:l,phantom:n,actualContent:a,getTransform:f,visibleData:m,classes:d,getContainerHeight:s,handleScrollEvent:g}}});function av(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:o[0]||(o[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform()}),ref:"actualContent"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:s},[t.renderSlot(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}const hr=W(lv,[["render",av]]),{componentName:rv,create:sv}=U("circleprogress"),iv=sv({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:o}){const l=!!t.useSlots().default,n=Math.random().toString(36).slice(-8),a=t.computed(()=>({[rv]:!0})),r=t.computed(()=>{const m=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${m} 0 90 a 45 45 0 1, ${m} 0 -90`}),s=t.computed(()=>De(e.color)?`url(#${n})`:e.color),i=t.computed(()=>{let m=283,f=m*Number(e.progress)/100;return{stroke:De(e.color)?`url(#${n})`:e.color,strokeDasharray:`${f}px ${m}px`}}),c=t.computed(()=>({stroke:e.pathColor})),d=t.computed(()=>{if(!De(e.color))return;let m=e.color;const f=Object.keys(m).sort((y,k)=>parseFloat(y)-parseFloat(k));let h=[];return f.map((y,k)=>{let v={key:"",value:""};v.key=y,v.value=m[y],h.push(v)}),h});return{classes:a,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:d,slotDefault:l,refRandomId:n}}}),cv={viewBox:"0 0 100 100"},uv=["id"],dv=["offset","stop-color"],fv=["d","stroke-width"],mv=["d","stroke","stroke-linecap","stroke-width"],pv={class:"fox-circleprogress-text"},hv={key:0};function gv(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",cv,[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,dv))),128))],8,uv)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,fv),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,mv)])),t.createElementVNode("div",pv,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",hv,t.toDisplayString(e.progress)+"%",1))])],6)}const gr=W(iv,[["render",gv]]),{componentName:yv,create:vv}=U("noticebar"),kv=vv({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:G.Notice,CircleClose:G.CircleClose},emits:["click","close","across-end"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=t.computed(()=>({[yv]:!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})),d=t.computed(()=>{let V={};return e.color&&(V.color=e.color),e.background&&(V.background=e.background),e.direction=="vertical"&&(V.height=`${e.height}px`),V}),m=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),f=t.computed(()=>{let V={};if(e.complexAm)V={transform:`translateY(${r.distance}px)`};else if(r.animate){let C=~~(e.height/e.speed/4);V={transition:`all ${C==0?~~(e.height/e.speed):C}s`,"margin-top":`-${e.height}px`}}return V});t.watch(()=>e.text,V=>{h()}),t.watch(()=>e.list,V=>{r.scrollList=[].concat(V)});const h=V=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!n.value||!a.value)return;const C=n.value.getBoundingClientRect().width,w=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?w>C:e.scrollable,r.isCanScroll?(r.wrapWidth=C,r.offsetWidth=w,r.duration=w/e.speed,r.animationClass="play"):r.animationClass=""},0)},y=V=>{o("click",V)},k=V=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",V)},v=V=>{r.firstRound=!1,o("across-end",V),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},g=()=>{u(),r.timer=setInterval(u,~~(e.height/e.speed/4*1e3)+e.standTime)},u=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},p=()=>{r.timer=setInterval(()=>{let V=100;for(let C=0;C<V;C++)b(C,!(C<V-1))},e.standTime+100*e.speed)},b=(V,C)=>{setTimeout(()=>{r.distance-=e.height/100,C&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},V*e.speed)},S=V=>{o("click",V)},B=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(l.default?(E(),I()):r.scrollList=[].concat(e.list),setTimeout(()=>{e.complexAm?p():g()},e.standTime)):h(e.text)});const E=()=>{l.default&&(r.scrollList=[].concat(l.default()[0].children))},I=()=>{setTimeout(()=>{var V=new MutationObserver(w=>{r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),E()});const C=document.getElementsByClassName("fox-noticebar-custom-item")[0];C&&V.observe(C,{childList:!0,subtree:!0})},100)};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:d,contentStyle:m,horseLampStyle:f,wrap:n,content:a,handleClick:y,onClickIcon:k,onAnimationEnd:v,go:S,handleClickIcon:B,slots:l,toPxDesc:le,wrapContentClass:c}}}),bv={class:"fox-noticebar__page-lefticon"},Sv={ref:"wrap",class:"fox-noticebar__page-wrap"},Cv={class:"showNotica"},wv={class:"fox-noticebar-custom-item"},Nv=["onClick"];function Bv(e,o,l,n,a,r){const s=t.resolveComponent("Notice"),i=t.resolveComponent("CircleClose"),c=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:o[3]||(o[3]=(...d)=>e.handleClick&&e.handleClick(...d))},[t.createElementVNode("view",bv,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",Sv,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:o[0]||(o[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":o[1]||(o[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__page-righticon",onClick:o[2]||(o[2]=t.withModifiers((...d)=>e.onClickIcon&&e.onClickIcon(...d),["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(t.Fragment,{key:0},[t.createElementVNode("view",{class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",Cv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(d,m)=>(t.openBlock(),t.createBlock(c,{key:m,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:d},null,8,["style","item"]))),128))])],4),t.createElementVNode("view",wv,[t.renderSlot(e.$slots,"default")])],64)):(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,(d,m)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:m,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:f=>e.go(d)},t.toDisplayString(d),13,Nv))),128))],4)),t.createElementVNode("view",{class:"go",onClick:o[4]||(o[4]=d=>!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 yr=W(kv,[["render",Bv]]),Vv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/xdD/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AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:Aw,create:Tv,scope:$v}=U("empty"),Dv={empty:Vv,error:Av,network:Ev},Iv=Tv({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:o}=ie.useFoxI18n($v),l=o(e,["description"]),{image:n,imageSize:a}=t.toRefs(e),r=t.computed(()=>a.value?typeof a.value=="number"?`width:${a.value}px;height:${a.value}px`:`width:${a.value};height:${a.value}`:""),i=n.value.startsWith("https://")||n.value.startsWith("http://")||n.value.startsWith("//")?n.value:Dv[n.value];return{...l,imageUrl:i,imgStyle:r}}}),qv={class:"fox-empty"},Mv=["src"],zv={key:1,class:"fox-empty-description"};function xv(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",qv,[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,Mv)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",zv,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const vr=W(Iv,[["render",xv]]),{create:Pv,scope:Lv}=U("video"),Rv=Pv({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(Lv),n=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),a=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,E=>{E.src&&t.nextTick(()=>{n.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,E=>{n.state.isMuted=E?E.muted:!1},{immediate:!0});const s=()=>{n.videoElm=a.value,e.options.autoplay&&setTimeout(()=>{n.videoElm.play()},200),e.options.touchPlay&&(n.showTouchMask=!0),e.options.playsinline&&(n.videoElm.setAttribute("playsinline",e.options.playsinline),n.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),n.videoElm.setAttribute("x5-video-player-type","h5-page"),n.videoElm.setAttribute("x5-video-player-fullscreen",!1)),k(),n.showToolbox?i():(n.videoElm.addEventListener("play",()=>{n.state.playing=!0,o("play",n.videoElm)}),n.videoElm.addEventListener("pause",()=>{n.state.playing=!1,o("pause",n.videoElm)}),n.videoElm.addEventListener("ended",h),n.videoElm.addEventListener("timeupdate",Xt(f,1e3)))},i=()=>{const E=a.value,I=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];n.player.$player=E,n.progressBar.progressElm=I,n.progressBar.pos=I.getBoundingClientRect(),n.videoSet.progress.width=Math.round(I.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return n.state.playing=!0,!1;if(n.state.playing=!n.state.playing,n.videoElm)if(n.state.playing)try{setTimeout(()=>{n.videoElm.play()},200),n.videoElm.addEventListener("progress",()=>{m()}),n.videoElm.addEventListener("timeupdate",Xt(f,1e3)),n.videoElm.addEventListener("ended",h),o("play",n.videoElm)}catch{y()}else n.videoElm.pause(),o("pause",n.videoElm)},d=E=>{var I=Math.floor(E/3600);I<10&&(I="0"+I);var V=Math.floor(E%3600/60);V<10&&(V="0"+V);var C=Math.round(E%3600%60);C<10&&(C="0"+C);var w="";return I!=0?w=I+":"+V+":"+C:w=V+":"+C,w},m=()=>{n.videoSet.loaded&&(n.videoSet.loaded=n.videoElm.buffered.end(0)/n.videoElm.duration*100)},f=()=>{const E=n.videoElm.currentTime/n.videoElm.duration;n.videoSet.progress.current=Math.round(n.videoSet.progress.width*E),n.videoSet.totalTime=d(n.videoElm.duration),n.videoSet.displayTime=d(n.videoElm.currentTime),o("time",n.videoSet.displayTime,n.videoSet.totalTime)},h=()=>{n.state.playing=!1,n.state.isEnd=!0,n.videoSet.displayTime="00:00",n.videoSet.progress.current=0,n.videoElm.currentTime=0,o("playend",n.videoElm)},y=()=>{n.state.isError=!0},k=()=>{n.state.vol=e.options.volume},v=()=>{n.state.isMuted=!n.state.isMuted,n.videoElm.muted=n.state.isMuted},g=()=>{},u=E=>{let V=E.targetTouches[0].pageX-n.progressBar.pos.left;V<=0&&(V=0),V>=n.videoSet.progress.width&&(V=n.videoSet.progress.width),n.videoSet.progress.current=V;let C=n.videoSet.progress.current/n.videoSet.progress.width;n.videoElm.duration&&b(C,n.videoElm.duration)},p=E=>{let V=E.changedTouches[0].pageX-n.progressBar.pos.left;n.videoSet.progress.current=V;let C=V/n.videoSet.progress.width;n.videoElm.duration&&b(C,n.videoElm.duration)},b=(E,I)=>{n.videoElm.currentTime=Math.floor(E*I)},S=()=>{n.state.isError=!1,s()},B=()=>{n.state.fullScreen?(n.state.fullScreen=!1,document.webkitCancelFullScreen()):(n.state.fullScreen=!0,n.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:a,...t.toRefs(e),...t.toRefs(n),handleError:y,isDisabled:r,play:c,handleMuted:v,touchSlidSrart:g,touchSlidMove:u,touchSlidEnd:p,retry:S,fullScreen:B,t:l}}}),Ov={class:"fox-video",ref:"videocon"},Fv=["muted","autoplay","loop","poster","controls","preload"],Uv=["src","type"],Kv={class:"fox-video-controller__now"},Hv={class:"fox-video-controller__progress"},jv={class:"fox-video-controller__progress-value",ref:"progressBar"},Wv=t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1),Yv=[Wv],Xv={class:"fox-video-controller__played",ref:"playedBar"},Qv={class:"fox-video-controller__total"},Gv={class:"fox-video-error"},Zv={class:"fox-video-error-tip"};function Jv(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",Ov,[t.createElementVNode("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:o[0]||(o[0]=(...s)=>e.handleError&&e.handleError(...s))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,Uv)],40,Fv),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:o[1]||(o[1]=(...s)=>e.play&&e.play(...s))},null,512)):t.createCommentVNode("",!0),e.showToolbox&&!e.isDisabled?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:o[2]||(o[2]=(...s)=>e.play&&e.play(...s))},null,512)),[[t.vShow,!e.state.playing]]):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[t.createElementVNode("div",{class:"fox-video-controller__playbtn",onClick:o[3]||(o[3]=(...s)=>e.play&&e.play(...s))}),t.createElementVNode("div",Kv,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",Hv,[t.createElementVNode("div",jv,[t.createElementVNode("div",{class:"buffered",style:t.normalizeStyle({width:`${e.videoSet.loaded}%`})},null,4),t.createElementVNode("div",{class:"fox-video-controller__ball",style:t.normalizeStyle({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:o[4]||(o[4]=t.withModifiers(s=>e.touchSlidMove(s),["stop","prevent"])),onTouchstart:o[5]||(o[5]=t.withModifiers(s=>e.touchSlidSrart(),["stop"])),onTouchend:o[6]||(o[6]=t.withModifiers(s=>e.touchSlidEnd(s),["stop"]))},Yv,36),t.createElementVNode("div",Xv,null,512)],512)]),t.createElementVNode("div",Qv,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:o[7]||(o[7]=(...s)=>e.handleMuted&&e.handleMuted(...s))},null,2),t.createElementVNode("div",{class:"fox-video-controller__full",onClick:o[8]||(o[8]=(...s)=>e.fullScreen&&e.fullScreen(...s))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",Gv,[t.createElementVNode("p",Zv,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:o[9]||(o[9]=(...s)=>e.retry&&e.retry(...s))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const Dt=W(Rv,[["render",Jv]]),{create:_v,componentName:ek}=U("steps"),kr=_v({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:o,slots:l}){const n=t.reactive({children:[]}),a=t.computed(()=>{const i=ek;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&n.children.push(i)},s=i=>{o("click-step",i)};return t.provide("parent",{relation:r,state:n,props:e,onEmit:s}),()=>t.h("view",{class:a.value},l.default?.())}}),{create:tk,componentName:ok}=U("step"),nk=tk({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=t.getCurrentInstance(),o=t.inject("parent");o.relation(e);const l=t.reactive({dot:o.props.progressDot}),n=t.computed(()=>o.state.children.indexOf(e)+1),a=()=>{const c=n.value;return c<+o.props.current?"finish":c===+o.props.current?"process":"wait"},r=t.computed(()=>a()),s=t.computed(()=>{const c=ok;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{o.onEmit(n.value)};return{...t.toRefs(l),index:n,classes:s,handleClickStep:i}}}),lk={class:"fox-step-head"},ak=t.createElementVNode("view",{class:"fox-step-line"},null,-1),rk={class:"fox-step-icon-inner"},sk={key:1,class:"fox-step-inner"},ik={class:"fox-step-main"},ck={class:"fox-step-title"},uk={key:0},dk={key:0,class:"fox-step-content"},fk=["innerHTML"];function mk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[t.createElementVNode("view",lk,[ak,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",rk,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",sk,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",ik,[t.createElementVNode("view",ck,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",uk,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",dk,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,fk)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const br=W(nk,[["render",mk]]),{create:pk,componentName:qo}=U("swiper"),hk=pk({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:o,slots:l}){const n=t.ref(),a=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=Ke(),s=t.computed(()=>({[qo]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const $=qo;return{[`${$}-inner`]:!0,[`${$}-vertical`]:i.value}}),d=t.computed(()=>{const $=qo;return{[`${$}-pagination`]:!0,[`${$}-pagination-vertical`]:i.value}}),m=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),f=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>a.children.length),y=t.computed(()=>a[i.value?"height":"width"]),k=t.computed(()=>h.value*y.value),v=t.computed(()=>a.rect?(i.value?a.rect.height:a.rect.width)-y.value*h.value:0),g=t.computed(()=>(a.active+h.value)%h.value),u=()=>{let $=0;$=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${$}px)`,[i.value?"height":"width"]:`${y.value*h.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},p=$=>{let x=[];const H=a.childrenVNode.length;let j=l?.default?.();if(j=j.filter(Y=>Y.children&&Array.isArray(Y.children)),j.forEach(Y=>{x=x.concat(Y.children)}),!H)a.childrenVNode=x.slice(),$.proxy&&a.children.push($.proxy);else if(H>x.length)a.children=a.children.filter(Y=>$.proxy!==Y);else if(H<x.length){for(let Y=0;Y<H;Y++)if(x[Y].key!==a.childrenVNode[Y].key){$.proxy&&a.children.splice(Y,0,$.proxy),$.vnode&&a.childrenVNode.splice(Y,0,$.vnode);break}H!==x.length&&($.proxy&&a.children.push($.proxy),$.vnode&&a.childrenVNode.push($.vnode))}else a.childrenVNode=x.slice(),$.proxy&&a.children.push($.proxy)},b=($,x=0)=>{let H=$*y.value;e.loop||(H=Math.min(H,-v.value));let j=x-H;return e.loop||(j=Le(j,v.value,0)),j},S=$=>{const{active:x}=a;return $?e.loop?Le(x+$,-1,h.value):Le(x+$,0,h.value-1):x},B=({pace:$=0,offset:x=0,isEmit:H=!1})=>{if(h.value<=1)return;const{active:j}=a,Y=S($),R=b(Y,x);if(e.loop){if(a.children[0]&&R!==v.value){const O=R<v.value;a.children[0].setOffset(O?k.value:0)}if(a.children[h.value-1]&&R!==0){const O=R>0;a.children[h.value-1].setOffset(O?-k.value:0)}}a.active=Y,a.offset=R,H&&j!==a.active&&o("change",g.value),u()},E=()=>{a.moving=!0,a.active<=-1&&B({pace:h.value}),a.active>=h.value&&B({pace:-h.value})},I=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},V=$=>{E(),r.reset(),Ye(()=>{Ye(()=>{a.moving=!1,B({pace:$,isEmit:!0})})})},C=()=>{V(-1)},w=()=>{V(1)},q=$=>{E(),r.reset(),Ye(()=>{a.moving=!1;let x;e.loop&&h.value===$?x=a.active===0?0:$:x=$%h.value,B({pace:x-a.active,isEmit:!0})})},L=()=>{e.autoPlay<=0||h.value<=1||(I(),a.autoplayTimer=setTimeout(()=>{w(),L()},Number(e.autoPlay)))},M=($=+e.initPage)=>{I(),a.rect=n.value.getBoundingClientRect(),$=Math.min(h.value-1,$),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=$,a.offset=b(a.active),a.moving=!0,u(),L()},A=$=>{e.isPreventDefault&&$.preventDefault(),e.isStopPropagation&&$.stopPropagation(),e.touchable&&(r.start($),a.touchTime=Date.now(),I(),E())},T=$=>{e.touchable&&a.moving&&(r.move($),f.value&&B({offset:m.value}))},z=$=>{if(!e.touchable||!a.moving)return;const x=m.value/(Date.now()-a.touchTime);if((Math.abs(x)>.3||Math.abs(m.value)>+(y.value/2).toFixed(2))&&f.value){let j=0;const Y=i.value?r.offsetY.value:r.offsetX.value;e.loop?j=Y>0?m.value>0?-1:1:0:j=-Math[m.value>0?"ceil":"floor"](m.value/y.value),B({pace:j,isEmit:!0})}else m.value&&B({pace:0});a.moving=!1,u(),L()};return t.provide("parent",{props:e,size:y,relation:p}),Te({prev:C,next:w,to:q}),t.onDeactivated(()=>{I()}),t.onBeforeUnmount(()=>{I()}),t.watch(()=>e.initPage,$=>{t.nextTick(()=>{M(Number($))})}),t.watch(()=>a.children.length,()=>{t.nextTick(()=>{M()})}),t.watch(()=>e.autoPlay,$=>{$>0?L():I()}),{state:a,classes:s,classesInner:c,classesPagination:d,container:n,activePagination:g,onTouchStart:A,onTouchMove:T,onTouchEnd:z}}});function gk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.classesInner),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classesPagination)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(s,i)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===i}),key:i},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const It=W(hk,[["render",gk]]),{create:yk,componentName:vk}=U("swiper-item"),kk=yk({setup(e,{slots:o}){const l=t.inject("parent");l.relation(t.getCurrentInstance());const n=t.reactive({offset:0}),a=t.computed(()=>({[vk]:!0})),r=t.computed(()=>{const i={},c=l?.props.direction;return l?.size.value&&(i[c==="horizontal"?"width":"height"]=`${l?.size.value}px`),n.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${n.offset}px)`),i}),s=i=>{n.offset=i};return t.onUnmounted(()=>{l.relation(t.getCurrentInstance(),"unmount")}),Te({setOffset:s}),{style:r,classes:a}}});function bk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const qt=W(kk,[["render",bk]]),Sr={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:Sk}=U("image-preview-item"),Ck=Sk({props:{...Sr,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:{[Dt.name]:Dt,[qt.name]:qt},setup(e,{emit:o}){const l=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),n=Ke(),a=t.computed(()=>{const{rootWidth:C,rootHeight:w}=e,q=w/C;return l.imageRatio>q}),r=t.computed(()=>{const C=e.image;if(C&&C.src){const{scale:w,moveX:q,moveY:L,moving:M,zooming:A}=l,T={transitionDuration:A||M?"0s":".3s"};if(w!==1){const z=q/w,$=L/w;T.transform=`scale(${w}, ${w}) translate(${z}px, ${$}px)`}return T}return{}}),s=t.computed(()=>{if(l.imageRatio){const{rootWidth:C,rootHeight:w}=e,q=a.value?w/l.imageRatio:C;return Math.max(0,(l.scale*q-C)/2)}return 0}),i=t.computed(()=>{if(l.imageRatio){const{rootWidth:C,rootHeight:w}=e,q=a.value?w:C*l.imageRatio;return Math.max(0,(l.scale*q-w)/2)}return 0}),c=C=>{const{naturalWidth:w,naturalHeight:q}=C.target;l.imageRatio=q/w},d=()=>{m(1),l.moveX=0,l.moveY=0},m=C=>{C=Le(C,+e.minZoom,+e.maxZoom+1),C!==l.scale&&(l.scale=C,o("scale",{scale:C,index:e.initNo}))},f=()=>{const C=l.scale>1?1:2;m(C),l.moveX=0,l.moveY=0},h=C=>Math.sqrt((C[0].clientX-C[1].clientX)**2+(C[0].clientY-C[1].clientY)**2);let y,k,v,g,u,p,b;const S=C=>{const{touches:w}=C,{offsetX:q}=n;n.start(C),b=w.length,y=l.moveX,k=l.moveY,p=Date.now(),l.moving=b===1&&l.scale!==1,l.zooming=b===2&&!q.value,l.zooming&&(v=l.scale,g=h(C.touches))},B=C=>{const{touches:w}=C;if(n.move(C),(l.moving||l.zooming)&&Uo(C,!0),l.moving){const{deltaX:q,deltaY:L}=n,M=q.value+y,A=L.value+k;l.moveX=Le(M,-s.value,s.value),l.moveY=Le(A,-i.value,i.value)}if(l.zooming&&w.length===2){const q=h(w),L=v*q/g;m(L)}},E=()=>{if(b==1&&e.video&&e.video.source||b>1)return;const{offsetX:C,offsetY:w}=n,q=Date.now()-p,L=250,M=5;C.value<M&&w.value<M&&q<L&&(u?(clearTimeout(u),u=null,f()):u=setTimeout(()=>{e.contentClose&&o("close"),u=null},L))},I=C=>{let w=!1;(l.moving||l.zooming)&&(w=!0,l.moving&&y===l.moveX&&k===l.moveY&&(w=!1),C.touches.length||(l.zooming&&(l.moveX=Le(l.moveX,-s.value,s.value),l.moveY=Le(l.moveY,-i.value,i.value),l.zooming=!1),l.moving=!1,y=0,k=0,v=1,l.scale<1&&d(),l.scale>e.maxZoom&&(l.scale=+e.maxZoom))),Uo(C,w),E(),n.reset()},V=()=>{o("close")};return t.watch(()=>e.initNo,d),t.watch(()=>e.show,C=>{C||d()}),{...t.toRefs(l),onTouchStart:S,onTouchMove:B,onTouchEnd:I,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:V}}}),wk=["src"];function Nk(e,o,l,n,a,r){const s=t.resolveComponent("fox-video"),i=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(i,{onClick:e.closeSwiper},{default:t.withCtx(()=>[t.createElementVNode("view",{style:t.normalizeStyle(e.imageStyle),class:"fox-image-preview-box",onTouchstart:o[1]||(o[1]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:o[2]||(o[2]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:o[3]||(o[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:o[4]||(o[4]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[e.image&&e.image.src?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:o[0]||(o[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,wk)):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 Bk=W(Ck,[["render",Nk]]),{create:Vk}=U("image-preview"),Ak=Vk({props:{...Sr,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:Bk,CircleClose:G.CircleClose,[ce.name]:ce,[It.name]:It},setup(e,{emit:o}){const l=t.ref(),n=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),a=t.computed(()=>{const m="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${m}-right`:`${m}-left`}`}),r=t.computed(()=>mo(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=m=>{m!==n.active&&(n.active=m,o("change",n.active))},i=()=>{er(e.beforeClose,{args:[n.active],done:()=>c()})},c=()=>{n.showPop=!1,o("close")},d=()=>{if(l.value){const m=ve(l.value);n.rootHeight=m.height,n.rootWidth=m.width}};return t.watch(()=>e.show,m=>{n.showPop=m,m&&(s(e.initNo),d())}),t.watch(()=>e.initNo,m=>{m!=n.active&&s(m)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:l,...t.toRefs(n),onClose:i,mergeImages:r,setActive:s,iconClasses:a}}}),Ek={class:"fox-image-preview",ref:"swipeRef"},Tk={key:0,class:"fox-image-preview-index"};function $k(e,o,l,n,a,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":o[1]||(o[1]=m=>e.showPop=m),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",Ek,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(m,f)=>(t.openBlock(),t.createBlock(s,{key:f,video:f<e.videos.length?m:{},image:f>=e.videos.length?m:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",Tk,t.toDisplayString(e.active+1)+" / "+t.toDisplayString(e.mergeImages.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.iconClasses),onClick:o[0]||(o[0]=(...m)=>e.onClose&&e.onClose(...m))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Cr=W(Ak,[["render",$k]]);class Dk{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 Ik{options=new Dk;constructor(o){const l=Object.assign(this.options,o),{unmount:n}=As(l,{name:"image-preview",components:[ce,Dt,It,qt,ot],wrapper:()=>({setup(){return()=>(l.onClose=()=>{l.show=!1,t.nextTick(()=>{n()})},t.h(Cr,l))}})})}}const Bn=e=>new Ik(e);Bn.install=e=>{e.use(Cr)};function qk(e){const o=t.getCurrentInstance();if(o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const{componentName:Ew,create:Mk}=U("countup"),zk=Mk({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref([]),a=V=>{V&&n.value.push(V)},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:d}=t.reactive(e);t.watch(()=>e.customChangeNum,(V,C)=>{f(),g(0)}),t.watch(()=>e.machinePrizeLevel,(V,C)=>{r.prizeLevelTrun=V}),t.watch(()=>e.initNum,(V,C)=>{r.current=V,r.valFlag=!1,m()}),t.watch(()=>e.endNum,(V,C)=>{r.current=e.initNum,r.valFlag=!1,m()});const m=()=>{if(r.valFlag)return!1;s&&(i||c?d!="machine"&&g():(v(),setTimeout(()=>{r.valFlag=!0},300)))},f=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(V,C,w)=>{const q=(V.toString().split(".")[1]||"").length,L=(C.toString().split(".")[1]||"").length,M=Math.pow(10,Math.max(q,L));return w=="-"?Number((V*M-C*M).toFixed(0))/M:Number((V*M+C*M).toFixed(0))/M},y=V=>{let{num_total_len:C,pointNum:w,initDigit1:q,initDigit2:L,sortFlag:M}=r,A=M=="add"||M=="equal"?String(L)[V-(C-w)]:10-Number(String(L)[V-(C-w)]),T=M=="add"||M=="equal"?String(q)[V]:10-Number(String(q)[V]),z=V>C-w-1?-A*100+"%":V<=String(q).length-1?-T*100+"%":0;return z=="-1000%"&&(z=0),z},k=V=>{let{num_total_len:C,pointNum:w,initDigit1:q,initDigit2:L,sortFlag:M}=r,A=String(L)[V-(C-w)];return V>C-w-1?A||0:V<=String(q).length-1?String(q)[V]:0},v=()=>{let{endNum:V,initNum:C,speed:w,toFixed:q}=e,L=setInterval(()=>{if(C>V)if(r.current<=V||r.current<=w)r.current=V.toFixed(q),clearInterval(L),o("scroll-end"),r.valFlag=!1;else{let M=parseFloat(String(r.current))-parseFloat(String(w));r.current=M.toFixed(q)}else if(r.current>=V)r.current=V.toFixed(q),clearInterval(L),o("scroll-end"),r.valFlag=!1;else{let M=parseFloat(String(r.current))+parseFloat(String(w));r.current=M.toFixed(q)}},e.during)},g=V=>{let{initNum:C,endNum:w,toFixed:q,customBgImg:L}=e;L&&(C=e.customChangeNum);let M,A,T,z;C!=0?(q!=0&&(C=Number(C.toFixed(q))),String(C).indexOf(".")>-1?(M=String(C).split(".")[0].length,A=String(C).split(".")[1].length):(M=String(C).length,A=0)):(M=1,A=0),w!=0?(q!=0&&(w=Number(w.toFixed(q))),String(w).indexOf(".")>-1?(T=String(w).split(".")[0].length,z=String(w).split(".")[1].length):(T=String(w).length,z=0)):(T=1,z=0);let $=M>=T?M:T,x=A>=z?A:z;r.num_total_len=$+x,r.pointNum=x,C>w?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(C,w,"-"),r.numberVal=Number(String(C))):C<w?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(w,C,"-"),r.numberVal=Number(String(w))):r.sortFlag="equal";var H=1;for(let Y=0;Y<r.pointNum;Y++)H*=10;var j=r.numberVal*H;if(r.relNum=j,q!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(j).length),String(C).indexOf(".")>-1){let Y=String(C).split(".");r.initDigit1=Number(Y[0]),r.initDigit2=Number(Y[1])}else r.initDigit1=C,r.initDigit2=0;i&&!L?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let Y=n.value[r.num_total_len-1];u(Y)}):V!==0&&S()},u=V=>{f();var C=1;r.pointNum!=0&&(C=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{p(V),r.totalCount=h(r.totalCount,C,"-"),r.totalCount<=0&&(f(),o("scroll-end"),r.valFlag=!1)},e.during)},p=V=>{let C=V.getAttribute("turn-number"),w;if(r.sortFlag=="add"?w=parseInt(String(C))+1:w=parseInt(String(C))-1>=0?parseInt(String(C))-1:9,V.setAttribute("turn-number",String(w)),(V.style.transition=="none 0s ease 0s"||w==1||!V.style.transition)&&(V.style.transition=`all linear ${e.during}ms`),w==10||r.sortFlag=="reduce"&&w==0){var q=null;V.style.top=`-${r.sortFlag=="add"?w*100:(10-w)*100}%`,V.setAttribute("turn-number","0"),q=setTimeout(()=>{q&&clearTimeout(q),V.style.transition="none",V.style.top="0",b(V,w)},.975*e.during)}else V.style.top=`-${r.sortFlag=="add"?w*100:(10-w)*100}%`;V.style.top=="-100%"&&r.sortFlag=="reduce"&&p(V.previousSibling)},b=(V,C)=>{setTimeout(()=>{C==10&&V.previousSibling&&p(V.previousSibling)},200)},S=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{o("scroll-end"),r.valFlag=!1})})},B=()=>{for(r.notPrize=[];r.notPrize.length<3;){var V=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(V)==-1&&r.notPrize.push(V)}};qk({machineLuck:()=>{const V=e.machineTurnMore<0?0:e.machineTurnMore;let C=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&B();for(let w=0;w<e.machineNum;w++)setTimeout(()=>{let q=C*(w+1+parseFloat(String(V)));r.prizeYPrev.length!=0&&(r.prizeY[w]=r.prizeYPrev[w]);let L=r.prizeYPrev[w]?r.prizeYPrev[w]:0,M=q+L+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(C-L);r.prizeLevelTrun<0&&(M+=e.numHeight*r.notPrize[w]),I(w,M,L)},500*w)}});const I=(V,C,w)=>{let q=setInterval(()=>{if(w<=C)w+=10,r.prizeY[V]=parseFloat(String(w));else if(clearInterval(q),q=null,r.finshMachine+=1,r.prizeY[V]=C,r.finshMachine==e.machineNum){let L=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(A=>{let T=A;for(;T>L;)T-=L;r.prizeYPrev.push(T)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(o("scroll-end",!1),r.valFlag=!1):(o("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{m()})}),t.onUnmounted(()=>{f(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:l,setRef:a,topNumber:y,turnNumber:k}}}),xk={class:"fox-countup"},Pk=["turn-number"];function Lk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",xk,[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,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+d,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,Pk))),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 wr=W(zk,[["render",Lk]]),Rk=e=>{if(!e)return Date.now();let o=Number(e),l=o>0?+o:o.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:Ok,create:Fk}=U("countdown"),Uk=Fk({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:o,slots:l}){const n=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),a=t.computed(()=>({[Ok]:!0})),r=t.computed(()=>c(n.restTime)),s=()=>{n.handleEndTime=e.endTime,n.diffTime=Date.now()-Rk(e.startTime),n.counting||(n.counting=!0),i()},i=()=>{window!==void 0&&(n.timer=requestAnimationFrame(()=>{if(n.counting){const y=Date.now()-n.diffTime,k=Math.max(n.handleEndTime-y,0);n.restTime=k,k||(n.counting=!1,f(),o("on-end")),k>0&&i()}}))},c=(y,k)=>{const v=y;let g={d:0,h:0,m:0,s:0,ms:0};const u=1e3,p=60*u,b=60*p,S=24*b;return v>0&&(g.d=v>=u?Math.floor(v/S):0,g.h=Math.floor(v%S/b),g.m=Math.floor(v%b/p),g.s=Math.floor(v%p/u),g.ms=Math.floor(v%u)),k=="custom"?g:d({...g})},d=y=>{let{d:k,h:v,m:g,s:u,ms:p}=y,b=e.format;if(b.includes("DD")?b=b.replace("DD",Ge(k)):v+=Number(k)*24,b.includes("HH")?b=b.replace("HH",Ge(v)):g+=Number(v)*60,b.includes("mm")?b=b.replace("mm",Ge(g)):u+=Number(g)*60,b.includes("ss")?b=b.replace("ss",Ge(u)):p+=Number(u)*1e3,b.includes("S")){const S=Ge(p,3).toString();b.includes("SSS")?b=b.replace("SSS",S):b.includes("SS")?b=b.replace("SS",S.slice(0,2)):b.includes("S")&&(b=b.replace("SS",S.slice(0,1)))}return b},m=()=>{!n.counting&&!e.autoStart&&(n.counting=!0,n.handleEndTime=Date.now()+Number(n.restTime),i(),o("on-restart",n.restTime))},f=()=>{cancelAnimationFrame(n.timer),n.counting=!1,o("on-paused",n.restTime)},h=()=>{e.autoStart||(f(),n.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():n.restTime=e.time}),t.watch(()=>n.restTime,y=>{let k=c(y,"custom");o("update:modelValue",k),o("input",k)}),t.watch(()=>e.paused,(y,k)=>{k?(n.counting||(n.counting=!0,n.handleEndTime=Date.now()+Number(n.restTime),i()),o("on-restart",n.restTime)):n.counting&&f()}),t.watch(()=>e.endTime,y=>{s()}),t.watch(()=>e.startTime,y=>{s()}),{...t.toRefs(e),slots:l,classes:a,start:m,pause:f,renderTime:r,reset:h}}}),Kk=["innerHTML"];function Hk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,Kk))],2)}const Nr=W(Uk,[["render",Hk]]),{create:jk}=U("badge"),Wk=jk({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const o=t.reactive({}),l=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),n=t.computed(()=>{if(e.dot)return;const a=e.value,r=e.max;return typeof a=="number"&&typeof r=="number"&&r<a?`${r}+`:a});return{state:o,stl:l,content:n}}}),Yk={class:"fox-badge"},Xk=["textContent"];function Qk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",Yk,[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,Xk),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const Br=W(Wk,[["render",Qk]]),{componentName:Gk,create:Zk}=U("tag"),Jk=Zk({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}},components:{Close:G.Close},emits:["close","click"],setup(e,{emit:o}){const{type:l,color:n,plain:a,round:r,mark:s,textColor:i}=t.toRefs(e);return{classes:t.computed(()=>{const h=Gk;return{[h]:!0,[`${h}--${l.value}`]:l.value,[`${h}--plain`]:a.value,[`${h}--round`]:r.value,[`${h}--mark`]:s.value}}),getStyle:()=>{const h={};return i.value?h.color=i.value:n.value&&a.value&&(h.color=n.value),a.value?(h.background="#fff",h["border-color"]=n.value):n.value&&(h.background=n.value),h},onClose:h=>{h.stopPropagation(),o("close",h)},onClick:h=>{o("click",h)}}}});function _k(e,o,l,n,a,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",width:"12px",height:"12px",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const uo=W(Jk,[["render",_k]]),{create:eb}=U("popover"),tb=eb({components:{[ce.name]:ce},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:o}){const l=t.ref(),n=t.ref(),a=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const p="fox-popover-arrow",b=e.location,S=b.split("-")[0];return`${p} ${p}-${S} ${p}--${b}`}),c=t.computed(()=>{const p={},{bgColor:b,arrowOffset:S,location:B}=e,E=B.split("-")[0],I=B.split("-")[1],V=16;return b&&(p[`border${d(E)}Color`]=b),e.arrowOffset!=0&&(["bottom","top"].includes(E)&&(I||(p.left=`calc(50% + ${S}px)`),I=="start"&&(p.left=`${V+S}px`),I=="end"&&(p.right=`${V-S}px`)),["left","right"].includes(E)&&(I||(p.top=`calc(50% - ${S}px)`),I=="start"&&(p.top=`${V-S}px`),I=="end"&&(p.bottom=`${V+S}px`))),p}),d=b=>{var b=b.toLowerCase();return b=b.replace(/\b\w+\b/g,S=>S.substring(0,1).toUpperCase()+S.substring(1)),b},m=t.computed(()=>{let p={};if(!r.value||!s.value)return{};const b=s.value.width,S=s.value.height,{width:B,height:E,left:I,top:V}=r.value,{location:C,offset:w}=e,q=C.split("-")[0],L=C.split("-")[1];let M=0,A=0;if(mo(w)&&w.length==2&&(M+=+w[1],A+=+w[0]),B){if(["bottom","top"].includes(q)){const T=q=="bottom"?E+M:-(S+M);p.top=`${V+T}px`,L||(p.left=`${-(b-B)/2+I+A}px`),L=="start"&&(p.left=`${I+A}px`),L=="end"&&(p.left=`${r.value.right+A}px`)}if(["left","right"].includes(q)){const T=q=="left"?-(b+M):B+M;p.left=`${I+T}px`,L||(p.top=`${V-S/2+E/2-4+A}px`),L=="start"&&(p.top=`${V+A}px`),L=="end"&&(p.top=`${V+E+A}px`)}}return p}),f=t.computed(()=>{const p={};return e.bgColor&&(p.background=e.bgColor),p}),h=()=>{let p=ve(l.value);e.targetId&&(p=ve(document.querySelector(`#${e.targetId}`))),r.value=p,setTimeout(()=>{s.value={height:n.value.clientHeight,width:n.value.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,p=>{a.value=p,p?(window.addEventListener("touchstart",u,!0),h()):window.removeEventListener("touchstart",u,!0)});const y=p=>{o("update",p),o("update:visible",p)},k=()=>{y(!e.visible),o("open")},v=()=>{o("update:visible",!1),o("close")},g=(p,b)=>{!p.disabled&&o("choose",p,b),e.closeOnClickAction&&v()},u=p=>{const b=l.value,S=n.value;let B=b&&!b.contains(p.target);if(e.targetId){const E=document.querySelector(`#${e.targetId}`);B=E&&!E.contains(p.target)}B&&S&&!S.contains(p.target)&&e.closeOnClickOutside&&v()};return{showPopup:a,openPopover:k,popoverArrow:i,closePopover:v,chooseItem:g,popoverRef:l,popoverContentRef:n,getRootPosition:m,customStyle:f,popoverArrowStyle:c,renderIcon:Ol}}}),ob={ref:"popoverContentRef",class:"fox-popover-content-group"},nb=["onClick"],lb={class:"fox-popover-menu-item-name"};function ab(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.targetId?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-popover-wrapper",onClick:o[0]||(o[0]=(...i)=>e.openPopover&&e.openPopover(...i)),ref:"popoverRef"},[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,{popClass:`fox-popover-content fox-popover-content--${e.location}`,style:t.normalizeStyle(e.customStyle),visible:e.showPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.showPopup=i),position:"",transition:"fox-popover",overlay:e.overlay,duration:e.duration,overlayStyle:e.overlayStyle,overlayClass:e.overlayClass,closeOnClickOverlay:e.closeOnClickOverlay},{default:t.withCtx(()=>[t.createElementVNode("view",ob,[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(d=>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",lb,t.toDisplayString(i.name),1)],10,nb))),128))],512)]),_:3},8,["popClass","style","visible","overlay","duration","overlayStyle","overlayClass","closeOnClickOverlay"])],6)],64)}const fo=W(tb,[["render",ab]]),rb=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(o){const{avatarShape:l,round:n,avatarSize:a}=t.toRefs(o),r=t.computed(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${l.value}`]:l.value}});return{avatarShape:l,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:n.value}),getStyle:()=>a.value?{width:a.value,height:a.value}:{width:"50px",height:"50px"}}}}),{create:sb}=U("skeleton"),ib=sb(rb({[co.name]:co})),cb={key:0},ub={key:1,class:"fox-skeleton"},db={key:0,class:"fox-skeleton-animation"},fb={class:"fox-skeleton-content"};function mb(e,o,l,n,a,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",ub,[e.animated?(t.openBlock(),t.createElementBlock("view",db)):t.createCommentVNode("",!0),t.createElementVNode("view",fb,[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",cb,[t.renderSlot(e.$slots,"default")]))}const Vr=W(ib,[["render",mb]]),{create:pb,componentName:hb}=U("collapse"),gb=pb({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref(e.modelValue||(e.accordion?"":[])),a=t.computed(()=>({[hb]:!0}));t.watch(()=>e.modelValue,c=>{n.value=c});const r=(c,d,m=!0)=>{n.value=c,o("update:modelValue",c),o("change",c,d,m)},s=c=>{if(e.accordion)n.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(n.value))if(n.value.includes(c)){const d=n.value.filter(m=>m!==c);r(d,c,!1)}else{const d=n.value.concat([c]);r(d,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?n.value===c:Array.isArray(n.value)?n.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:l,classes:a}}});function yb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const Ar=W(gb,[["render",yb]]),{create:vb,componentName:kb}=U("collapse-item"),bb=vb({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:G.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const o=t.ref(null),l=t.ref(null),n=t.inject("collapseParent"),a=t.reactive(n),r=t.computed(()=>{const h=kb;return{[h]:!0,[h+"__border"]:e.border}}),s=t.computed(()=>a?a.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{a.updateVal(e.name)},d=()=>{s.value&&(i.value="auto")},m=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},f=()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?m():f()}),{classes:r,renderIcon:Ol,wrapperRef:o,contentRef:l,open:m,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:d}}}),Sb={class:"fox-collapse-item__title-main"},Cb={class:"fox-collapse-item__title-main-value"},wb=["innerHTML"],Nb={key:2,class:"fox-collapse-item__title-label"},Bb={key:0,class:"fox-collapse-item__title-sub"},Vb=["innerHTML"],Ab={key:0,class:"fox-collapse__item-extraWrapper"},Eb={class:"fox-collapse__item-extraWrapper__extraRender"},Tb={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function $b(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:o[0]||(o[0]=(...s)=>e.toggle&&e.toggle(...s))},[t.createElementVNode("view",Sb,[t.createElementVNode("view",Cb,[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,wb)),e.label?(t.openBlock(),t.createElementBlock("view",Nb,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",Bb,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,Vb)),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",Ab,[t.createElementVNode("div",Eb,[t.renderSlot(e.$slots,"extra")])])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:t.normalizeStyle({willChange:"height",height:e.wrapperHeight}),onTransitionend:o[1]||(o[1]=(...s)=>e.onTransitionEnd&&e.onTransitionEnd(...s))},[t.createElementVNode("view",Tb,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const Er=W(bb,[["render",$b]]),Db=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:Ib,create:qb,scope:Mb}=U("table"),zb=qb({components:{RenderColumn:Db,DownArrow:G.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:o,slots:l}){const{t:n}=ie.useFoxI18n(Mb),a=t.reactive({curData:e.data}),r=t.computed(()=>({[Ib]:!0})),s=y=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${y.align?y.align:""}`]:!0}),i=y=>y.stylehead?y.stylehead:"",c=y=>y.stylecolumn?y.stylecolumn:"",d=y=>e.columns.filter(k=>k.key===y)[0],m=y=>{const k=e.columns.filter(v=>v.key===y);return k[0].stylecolumn?k[0].stylecolumn:""},f=y=>{y.sorter&&(o("sorter",y),a.curData=typeof y.sorter=="function"?a.curData.sort(y.sorter):y.sorter==="default"?a.curData.sort():a.curData)},h=()=>e.columns.map(y=>[y.key,y.render]);return t.watch(()=>e.data,y=>{a.curData=y.slice()}),{...t.toRefs(a),classes:r,cellClasses:s,getColumnItem:d,getColumnItemStyle:m,handleSorterClick:f,sortDataItem:h,t:n,stylehead:i,stylecolumn:c}}}),xb={class:"fox-table__main__head"},Pb={class:"fox-table__main__head__tr"},Lb=["onClick"],Rb={class:"fox-table__main__body"},Ob={key:1},Fb={key:0,class:"fox-table__nodata"},Ub={key:0,class:"fox-table__nodata__text"},Kb={key:1,class:"fox-table__summary"},Hb=["innerHTML"];function jb(e,o,l,n,a,r){const s=t.resolveComponent("DownArrow"),i=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",xb,[t.createElementVNode("view",Pb,[(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:d=>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,Lb))),128))])]),t.createElementVNode("view",Rb,[(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(),([d,m])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:t.normalizeStyle(e.getColumnItemStyle(d))},[typeof c[d]=="function"||typeof m=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[m,c[d]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",Ob,t.toDisplayString(c[d]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Fb,[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",Ub,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",Kb,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,Hb)])):t.createCommentVNode("",!0)],2)}const Tr=W(zb,[["render",jb]]),{componentName:Wb,create:Yb}=U("ellipsis"),Xb=Yb({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:o}){const l=t.ref(null);let n=null,a=0;const r=t.ref(),s=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>({[Wb]:!0}));t.watch(()=>e.content,(v,g)=>{v!=g&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!l.value)return;const v=window.getComputedStyle(l.value);n=document.createElement("div"),Array.prototype.slice.apply(v).forEach(p=>{n.style.setProperty(p,v.getPropertyValue(p))}),n.style.position="fixed",n.style.left="999999px",n.style.top="999999px",n.style.zIndex="-1000",n.style.height="auto",n.style.minHeight="auto",n.style.maxHeight="auto",n.style.textOverflow="clip",n.style.whiteSpace="normal",n.style.webkitLineClamp="unset",n.style.display="block";const u=h(v.lineHeight==="normal"?e.lineHeight:v.lineHeight);a=Math.floor(u*(Number(e.rows)+.5)+h(v.paddingTop)+h(v.paddingBottom)),n.innerText=e.content,document.body.appendChild(n),d()},d=()=>{if(n.offsetHeight<=a)s.exceeded=!1,document.body.removeChild(n);else{s.exceeded=!0;const v=e.content.length,g=Math.floor((0+v)/2),u=e.direction==="middle"?f([0,g],[g,v]):m(0,v);r.value=u,document.body.removeChild(n)}},m=(v,g)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(g-v<=1)return e.direction==="end"?{leading:e.content.slice(0,v)+e.symbol}:{tailing:e.symbol+e.content.slice(g,p)};const b=Math.round((v+g)/2);return e.direction==="end"?n.innerText=e.content.slice(0,b)+e.symbol+u:n.innerText=u+e.symbol+e.content.slice(b,p),n.offsetHeight<=a?e.direction==="end"?m(b,g):m(v,b):e.direction==="end"?m(v,b):m(b,g)},f=(v,g)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(v[1]-v[0]<=1&&g[1]-g[0]<=1)return{leading:e.content.slice(0,v[0])+e.symbol,tailing:e.symbol+e.content.slice(g[1],p)};const b=Math.floor((v[0]+v[1])/2),S=Math.ceil((g[0]+g[1])/2);return n.innerText=e.content.slice(0,b)+e.symbol+u+e.symbol+e.content.slice(S,p),n.offsetHeight<=a?f([b,v[1]],[g[0],S]):f([v[0],b],[S,g[1]])},h=v=>{if(!v)return 0;const g=v.match(/^\d*(\.\d*)?/);return g?Number(g[0]):0},y=v=>{v==1?(s.expanded=!0,o("change","expand")):(s.expanded=!1,o("change","collapse"))},k=()=>{o("click")};return{...t.toRefs(s),root:l,ellipsis:r,classes:i,clickHandle:y,handleClick:k}}}),Qb={key:0},Gb={key:1},Zb={key:2};function Jb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[2]||(o[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Qb,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",Gb,[t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.leading),1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:o[0]||(o[0]=t.withModifiers(s=>e.clickHandle(1),["stop"]))},t.toDisplayString(e.expandText),1)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.tailing),1)])):t.createCommentVNode("",!0),e.exceeded&&e.expanded?(t.openBlock(),t.createElementBlock("view",Zb,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:o[1]||(o[1]=t.withModifiers(s=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const $r=W(Xb,[["render",Jb]]),{componentName:_b,create:eS}=U("animate"),tS=eS({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:o}){const{type:l,loop:n,action:a}=t.toRefs(e),r=t.reactive({clicked:!1});let s=t.computed(()=>({"fox-animate__container":!0,[`${_b}-${l.value}`]:a.value==="initial"||r.clicked?l.value:!1,loop:n.value}));const i=c=>{r.clicked=!0,n.value||setTimeout(()=>{r.clicked=!1},1e3),o("click",c)};return{...t.toRefs(r),classes:s,handleClick:i}}}),oS={class:"fox-animate"};function nS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",oS,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...s)=>e.handleClick&&e.handleClick(...s)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const Dr=W(tS,[["render",nS]]),{componentName:lS,create:aS}=U("watermark"),rS=aS({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:o}){const l=t.reactive({base64Url:""}),{zIndex:n,gapX:a,gapY:r,width:s,height:i,rotate:c,image:d,imageWidth:m,imageHeight:f,content:h,fontStyle:y,fontWeight:k,fontColor:v,fontSize:g,fontFamily:u}=e,p=()=>{const S=document.createElement("canvas"),B=window.devicePixelRatio,E=S.getContext("2d"),I=`${(a+s)*B}px`,V=`${(r+i)*B}px`,C=s*B,w=i*B;if(S.setAttribute("width",I),S.setAttribute("height",V),E){if(d){E.translate(C/2,w/2),E.rotate(Math.PI/180*Number(c));const q=new Image;q.crossOrigin="anonymous",q.referrerPolicy="no-referrer",q.src=d,q.onload=()=>{E.drawImage(q,-m*B/2,-f*B/2,m*B,f*B),E.restore(),l.base64Url=S.toDataURL()}}else if(h){E.textBaseline="middle",E.textAlign="center",E.translate(C/2,w/2),E.rotate(Math.PI/180*Number(c));const q=Number(g)*B;E.font=`${y} normal ${k} ${q}px/${w}px ${u}`,E.fillStyle=v,E.fillText(h,0,0),E.restore(),l.base64Url=S.toDataURL()}}else throw new Error("当前环境不支持Canvas")};p(),t.watch(()=>[n,a,r,s,i,c,d,m,f,h,y,k,v,g,u],()=>{p()});const b=t.computed(()=>{const S=lS;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...t.toRefs(l),classes:b}}});function sS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}const Ir=W(rS,[["render",sS]]);function iS(e,o=2){return Object.is(parseFloat(e),NaN)?console.log(`传入的值:${e}不是一个数字`):(e=parseFloat(e),(Math.round((e+Number.EPSILON)*Math.pow(10,o))/Math.pow(10,o)).toFixed(o))}const{componentName:cS,create:uS}=U("trend-arrow"),dS=uS({components:{TriangleUp:G.TriangleUp,TriangleDown:G.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const o=t.reactive({rateTrend:e.rate>0}),l=t.computed(()=>({[cS]:!0})),n=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;o.rateTrend=r>0;const d=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?o.rateTrend?"+":"-":""}${iS(Number(d),s)}%`}),a=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:d}=e;return{color:d===0?c:i?o.rateTrend?s:r:c}});return{...t.toRefs(o),classes:l,calcRate:n,calcStyle:a}}});function fS(e,o,l,n,a,r){const s=t.resolveComponent("TriangleUp"),i=t.resolveComponent("TriangleDown");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.arrowLeft?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?t.renderSlot(e.$slots,"up-icon",{key:1},()=>[t.createVNode(s,{color:e.riseColor},null,8,["color"])]):t.createCommentVNode("",!0),Number(e.rate)!==0&&!e.rateTrend?t.renderSlot(e.$slots,"down-icon",{key:2},()=>[t.createVNode(i,{color:e.dropColor},null,8,["color"])]):t.createCommentVNode("",!0),e.arrowLeft?(t.openBlock(),t.createElementBlock("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)):t.createCommentVNode("",!0)],2)}const qr=W(dS,[["render",fS]]),{create:mS}=U("tour"),pS=mS({components:{[fo.name]:fo,Close:G.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:o}){const l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),n=t.ref({}),a=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:m,maskWidth:f,maskHeight:h}=e,{width:y,height:k,left:v,top:g}=n.value,u=[v+y/2,g+k/2],p=Number(f||y),b=Number(h||k);return{width:`${p+ +m[1]*2}px`,height:`${b+ +m[0]*2}px`,top:`${u[1]-b/2-+m[0]}px`,left:`${u[0]-p/2-+m[1]}px`}}),s=m=>{m=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,i()}),o("change",l.active)},i=()=>{const m=document.querySelector(`#${e.steps[l.active].target}`),f=ve(m);n.value=f},c=()=>{l.showTour=!1,l.showPopup=!1,o("close",l.active),o("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{l.active=0,i()}),t.watch(()=>e.modelValue,m=>{m&&i(),l.active=0,l.showTour=m,l.showPopup=m}),{...t.toRefs(l),classes:a,maskStyle:r,changeStep:s,close:c,handleClickMask:d}}}),hS={key:0,class:"fox-tour-content"},gS={key:0,class:"fox-tour-content-top"},yS={class:"fox-tour-content-inner"},vS={class:"fox-tour-content-bottom"},kS={class:"fox-tour-content-bottom-init"},bS={class:"fox-tour-content-bottom-operate"},SS={key:1,class:"fox-tour-content fox-tour-content-tile"},CS={class:"fox-tour-content-inner"};function wS(e,o,l,n,a,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-popover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour-masked",onClick:o[0]||(o[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":o[5]||(o[5]=m=>e.showPopup=m),location:c.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:c.popoverOffset||[0,12],arrowOffset:c.arrowOffset||0},{content:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",hS,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",gS,[t.createElementVNode("div",{onClick:o[1]||(o[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",yS,t.toDisplayString(c.content),1),t.createElementVNode("div",vS,[t.createElementVNode("div",kS,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",bS,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:o[2]||(o[2]=m=>e.changeStep("prev"))},t.toDisplayString(e.prevStepTxt),1)):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:o[3]||(o[3]=(...m)=>e.close&&e.close(...m))},t.toDisplayString(e.completeTxt),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:o[4]||(o[4]=m=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",SS,[t.createElementVNode("div",CS,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const Mr=W(pS,[["render",wS]]),{componentName:Tw,create:NS,scope:BS}=U("address"),VS=NS({components:{Location:G.Location,Location2:G.Location2,Check:G.Check,Close:G.Close,Left:G.Left,[ce.name]:ce,[no.name]:no},inheritAttrs:!1,props:{...at,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(BS),n=t.ref(null),a=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),d=t.ref(["province","city","country","town"]),m=t.ref(null),f=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}}),y=T=>{if(!Array.isArray(T))throw new TypeError("params muse be array.");if(!T.length)return[];T.forEach($=>{if(!$.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const z=[];return T=T.sort(($,x)=>$.title.localeCompare(x.title)),T.forEach($=>{const x=z.findIndex(H=>H.title===$.title);x<=-1?z.push({title:$.title,list:[].concat($)}):z[x].list.push($)}),z};let k=t.ref([]),v=t.reactive({});const g=t.ref("self"),u=t.ref(20),p=()=>{const T=e.modelValue,z=T.length;if(z>0){if(i.value=z-1,h.value.length==0){i.value=0;return}for(let $=0;$<z;$++){let x=[];switch($){case 0:x=e.province;break;case 1:x=e.city;break;case 2:x=e.country;break;default:x=e.town}k.value[$]=x.filter(H=>H.id==T[$])[0]}S()}},b=(T,z)=>T&&T.name||i.value<z&&T?T.name:e.columnsPlaceholder[z]||l("select"),S=()=>{I(),t.nextTick(()=>{const T=a.value&&a.value.getElementsByClassName("active")[0];if(T){const z=T.offsetLeft;u.value=z||20}})},B=T=>{const z=i.value;c.value=i.value;const $={custom:d.value[z]};k.value[z]=T;for(let x=z+2;x<4;x++)k.value.splice(x,1);z<3?(i.value=z+1,S(),$.next=d.value[i.value],$.value=T,o("change",$)):(w(),o("update:modelValue"))},E=(T,z)=>{c.value=i.value,b(T,z)&&(i.value=z,S())},I=()=>{const T=m.value,z=c.value,$=f.value[i.value];T?.scrollTop&&(f.value[z]=T?.scrollTop),t.nextTick(()=>{T?.scrollTo({top:$,behavior:"auto"})})},V=T=>{const z=e.existAddress;let $={};z.forEach(x=>{x&&x.selectedAddress&&($=x),x.selectedAddress=!1}),T.selectedAddress=!0,v=T,o("selected",$,T,z),w()},C=()=>{k.value=[],i.value=0,S()},w=(T="self")=>{g.value=T=="cross"?"cross":"self",r.value=!1},q=()=>{g.value="mask"},L=()=>{const T={addressIdStr:"",addressStr:"",province:k.value[0],city:k.value[1],country:k.value[2],town:k.value[3]},z={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach($=>{const x=k.value[$];T.addressIdStr+=`${$?"_":""}${x&&x.id||0}`,T.addressStr+=x&&x.name||""}),z.data=T):z.data=v,C(),g.value=="self"?o("close",z):o("close-mask",{closeWay:g}),o("update:visible",!1)},M=()=>{const T=s.value;s.value=T=="exist"?"custom":"exist",C(),o("switch-module",{type:s.value})},A=(T,z)=>{B(z)};return t.watch(()=>e.visible,T=>{r.value=T}),t.watch(()=>r.value,T=>{T&&p()}),{showPopup:r,privateType:s,tabIndex:i,tabName:d,selectedRegion:k,switchModule:M,closeWay:g,close:L,getTabName:b,nextAreaList:B,regionLine:n,tabRegion:a,lineDistance:u,changeRegionTab:E,selectedExist:V,clickOverlay:q,handClose:w,handleElevatorItem:A,initCustomSelected:p,...t.toRefs(e),t:l,regionList:h,transformData:y,scrollDom:m}}}),AS={class:"fox-address"},ES={class:"fox-address__header"},TS={class:"fox-address__header__title"},$S={key:0,class:"fox-address__custom"},DS={class:"fox-address__region",ref:"tabRegion"},IS=["onClick"],qS={key:0,class:"active fox-address__region-item"},MS={key:0,class:"fox-address__detail"},zS={class:"fox-address__detail-list",ref:"scrollDom"},xS=["onClick"],PS={key:1,class:"fox-address__elevator-group"},LS={key:1,class:"fox-address__exist"},RS={class:"fox-address__exist-group"},OS={class:"fox-address__exist-group-list"},FS=["onClick"],US={class:"fox-address__exist-item-info"},KS={key:0,class:"fox-address__exist-item-info-name"},HS={key:1,class:"fox-address__exist-item-info-phone"},jS={class:"fox-address__exist-item-info-bottom"},WS={class:"fox-address__exist-choose-btn"};function YS(e,o,l,n,a,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),d=t.resolveComponent("fox-elevator"),m=t.resolveComponent("Location2"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:o[3]||(o[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":o[4]||(o[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",AS,[t.createElementVNode("view",ES,[t.createElementVNode("view",{class:"fox-address__header-back",onClick:o[0]||(o[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",TS,t.toDisplayString(e.privateType=="custom"?e.customAddressTitle||e.t("selectRegion"):e.existAddressTitle||e.t("deliveryTo")),1),t.createElementVNode("view",{class:"fox-address__header-close",onClick:o[1]||(o[1]=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",$S,[t.createElementVNode("view",DS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,y)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",y==e.tabIndex?"active":""]),key:y,onClick:k=>e.changeRegionTab(h,y)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,y)),1)],10,IS))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",qS,[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",MS,[t.createElementVNode("ul",zS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,y)=>(t.openBlock(),t.createElementBlock("li",{key:y,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick:k=>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,xS))),128))],512)])):(t.openBlock(),t.createElementBlock("view",PS,[t.createVNode(d,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",LS,[t.createElementVNode("div",RS,[t.createElementVNode("ul",OS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,y)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:y,onClick:k=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(m,{class:"fox-address-select-icon",size:"13px"})]),h.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",US,[h.name?(t.openBlock(),t.createElementBlock("div",KS,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",HS,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",jS,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,FS))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:o[2]||(o[2]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.createElementVNode("div",WS,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 zr=W(VS,[["render",YS]]),{componentName:XS,create:QS}=U("barrage"),GS=QS({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const o=new Date().getTime(),l=!!t.useSlots().default,n=t.computed(()=>({[XS]:!0}));let a=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),d=t.ref(e.top),m=t.ref(0),f=e.speeds,h=t.ref(0);t.onMounted(()=>{y(),l&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(v(),m.value=0,k("hidden")):document.visibilityState==="visible"&&y()})}),t.onUnmounted(()=>{i.value=[],v()});const y=()=>{h.value=a.value.offsetWidth,l&&k("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${h.value}px`),u()},300)},k=b=>{let B=document.getElementsByClassName("slotBody"+o)?.[0]?.children||[];const E=[];B&&Array.from(B).forEach(I=>{b=="init"?(I.style.opacity="0",E.push(I)):(I.classList="",I.style={})}),b=="init"&&(i.value=E)},v=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,b=>{e.danmu.length>0&&(i.value=[...b])});const g=b=>{const S=m.value%i.value.length;!e.loop&&m.value===i.value.length?i.value.splice(i.value.length,0,b):i.value.splice(S,0,b)},u=()=>{v(),s=setTimeout(()=>{p()},e.frequency)},p=()=>{const b=e.loop?m.value%i.value.length:m.value;let S=document.createElement("view");l&&typeof i.value[b]=="object"?(S=i.value[b],S?.classList?.add("fox-barrage__item")):(S.innerHTML=i.value[b],S.classList.add("fox-barrage__item"),r.value.appendChild(S)),t.nextTick(()=>{const B=S.offsetHeight;if(S?.classList?.add("move"),S.style.animationDuration=`${f}ms`,S.style.top=b%c.value*(B+d.value)+20+"px",S.style.opacity="1",!l){const E=S.offsetWidth;S.style.width=E+20+"px"}S.addEventListener("animationend",()=>{l?S.classList.remove("move"):r.value.removeChild(S)}),!(!e.loop&&m.value>=i.value.length-1)&&(m.value++,m.value>=i.value.length&&(m.value=0),S.removeEventListener("animationend",()=>{}),u())})};return{classTime:o,classes:n,danmuList:i,dmBody:a,dmContainer:r,add:g}}});function ZS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"dmBody",class:t.normalizeClass(e.classes)},[t.createElementVNode("div",{ref:"dmContainer",class:t.normalizeClass(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["slotBody","slotBody"+e.classTime])},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)],2)],2)}const xr=W(GS,[["render",ZS]]),{componentName:JS,create:_S,scope:e0}=U("signature"),t0=_S({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:{[Pe.name]:Pe},emits:["start","end","signing","confirm","clear"],setup(e,{emit:o}){const{toLocaleRefs:l}=ie.useFoxI18n(e0),n=l(e,["unSupportTpl","reSign","confirmText"]),a=t.ref(null),r=t.ref(null),s=t.computed(()=>({[JS]:!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 p=document.createElement("canvas");return!!(p.getContext&&p.getContext("2d"))},d=()=>{a.value.addEventListener(i.events[0],m,!1)},m=p=>{p.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,o("start"),a.value.addEventListener(i.events[1],f,!1),a.value.addEventListener(i.events[2],h,!1),a.value.addEventListener(i.events[3],y,!1)},f=p=>{p.preventDefault();let b=i.isSupportTouch?p.touches[0]:p;o("signing",b);let S=a.value.getBoundingClientRect(),B=b.clientX-S.left,E=b.clientY-S.top;i.ctx.lineTo(B,E),i.ctx.stroke()},h=p=>{p.preventDefault(),o("end"),a.value.removeEventListener(i.events[1],f,!1),a.value.removeEventListener(i.events[2],h,!1)},y=p=>{p.preventDefault(),a.value.removeEventListener(i.events[1],f,!1),a.value.removeEventListener(i.events[2],h,!1)},k=()=>{a.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),o("clear")},v=()=>{u(a.value)},g=p=>{if(!p)return!0;var b=document.createElement("canvas");return b.width=p.width,b.height=p.height,p?.toDataURL()==b.toDataURL()},u=p=>{let b;switch(e.type){case"png":b=p.toDataURL("image/png");break;case"jpg":b=p.toDataURL("image/jpeg",.8);break}const S=g(p)?"请绘制签名":p,B=g(p)?"":b;o("confirm",S,B)};return t.onMounted(()=>{c()&&(i.ctx=a.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,d())}),{...n,...t.toRefs(i),canvas:a,wrap:r,isCanvasSupported:c,confirm:v,clear:k,classes:s}}}),o0={class:"fox-signature-inner",ref:"wrap"},n0=["height","width"],l0={key:0,class:"fox-signature-unsopport"};function a0(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",o0,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,n0),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",l0,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(s,{class:"fox-signature-btn",type:"default",onClick:o[0]||(o[0]=i=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(s,{class:"fox-signature-btn",type:"primary",onClick:o[1]||(o[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const Pr=W(t0,[["render",a0]]),{componentName:r0,create:s0,scope:i0}=U("time-select"),c0=s0({components:{[ce.name]:ce},props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!0},teleportDisable:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,o)=>{const{t:l}=ie.useFoxI18n(i0),n=t.computed(()=>({[r0]:!0})),a=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),s=t.computed(()=>e.currentTime),i=()=>{o.emit("update:visible",!1),o.emit("select",s.value)};return t.provide("currentKey",r),t.provide("currentTime",s),{classes:n,popStyle:a,props:e,close:i,t:l}}}),u0={class:"fox-time-select__title"},d0={class:"fox-time-select__title__fixed"},f0={key:0},m0={class:"fox-time-select__content"},p0={class:"fox-time-select__content__pannel"},h0={class:"fox-time-select__content__detail"};function g0(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{position:"bottom",closeable:"",round:"",teleportDisable:e.teleportDisable,visible:e.visible,style:t.normalizeStyle(e.popStyle),"lock-scroll":e.lockScroll,onClickOverlay:e.close,onClickCloseIcon:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",u0,[t.createElementVNode("view",d0,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",f0,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",m0,[t.createElementVNode("view",p0,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",h0,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Lr=W(c0,[["render",g0]]),{componentName:y0,create:v0}=U("time-pannel"),k0=v0({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,o)=>{const l=t.inject("currentKey"),n=t.reactive({currentKey:l}),a=t.computed(()=>({[y0]:!0,"fox-time-pannel--curr":n.currentKey==e.pannelKey})),r=s=>{o.emit("change",s)};return{...t.toRefs(n),classes:a,handlePannel:r}}});function b0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=s=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const Rr=W(k0,[["render",b0]]),{componentName:S0,create:C0}=U("time-detail"),w0=C0({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,o)=>{const l=t.inject("currentKey"),n=t.inject("currentTime"),a=t.reactive({currentKey:l,currentTime:n}),r=t.computed(()=>({[S0]:!0})),s=d=>{let m=a.currentTime.find(f=>f.key==a.currentKey);if(m)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":m.list.filter(f=>f===d).length>0}},i=t.computed(()=>e.times.find(d=>d.key==a.currentKey).list),c=d=>{o.emit("select",d)};return{classes:r,...t.toRefs(a),getClass:s,renderData:i,handleTime:c}}}),N0={class:"fox-time-detail__detail fox-time-detail__detail--moring"},B0={class:"fox-time-detail__detail__list"},V0=["onClick"];function A0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",N0,[t.createElementVNode("view",B0,[(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,V0))),128))])])],2)}const Or=W(w0,[["render",A0]]),{componentName:$w,create:E0,scope:T0}=U("sku-header"),$0=E0({props:{goods:{type:Object,default:{}}},emits:[],components:{[tt.name]:tt},setup(e,{emit:o,slots:l}){const{t:n}=ie.useFoxI18n(T0);return{getSlots:r=>l[r],t:n}}}),D0={class:"fox-sku-header"},I0=["src"],q0={class:"fox-sku-header-right"},M0={key:3,class:"fox-sku-header-right-extra"};function z0(e,o,l,n,a,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",D0,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,I0),t.createElementVNode("view",q0,[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",M0,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const x0=W($0,[["render",z0]]),{componentName:Dw,create:P0}=U("sku-select"),L0=P0({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:o}){const l=t.ref([]);return t.watch(()=>e.sku,a=>{l.value=[].slice.call(a)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(l.value=[].slice.call(e.sku))}),{skuInfo:l,changeSaleChild:(a,r,s,i)=>{a.checkFlag||a.disable||o("selectSku",{sku:a,skuIndex:r,parentSku:s,parentIndex:i})}}}}),R0={class:"fox-sku-select"},O0={class:"fox-sku-select-item-title"},F0={class:"fox-sku-select-item-skus"},U0=["onClick"];function K0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",R0,[(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",O0,t.toDisplayString(s.name),1),t.createElementVNode("view",F0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:m=>e.changeSaleChild(c,d,s,i),key:c.name},t.toDisplayString(c.name),11,U0))),128))])]))),128))])}const H0=W(L0,[["render",K0]]),{componentName:Iw,create:j0}=U("sku-stepper"),W0=j0({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:{[pt.name]:pt},setup(e,{emit:o}){const l=t.ref(e.stepperMin);return t.onMounted(()=>{l.value=e.stepperMin}),{goodsCount:l,add:c=>{o("add",c)},reduce:c=>{o("reduce",c)},overlimit:(c,d)=>{o("overLimit",{action:d,value:parseInt(l.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&et(c)=="function"?c():""},changeStepper:c=>{l.value=c,o("changeStepper",c)}}}}),Y0={class:"fox-sku-stepper"},X0={class:"fox-sku-stepper-title"},Q0=["innerHTML"],G0={class:"fox-sku-stepper-count"};function Z0(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",Y0,[t.createElementVNode("view",X0,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,Q0),t.createElementVNode("view",G0,[t.createVNode(s,{modelValue:e.goodsCount,"onUpdate:modelValue":o[0]||(o[0]=i=>e.goodsCount=i),min:e.stepperMin,max:e.stepperMax,onAdd:e.add,onReduce:e.reduce,onOverlimit:e.overlimit,onChange:e.changeStepper},null,8,["modelValue","min","max","onAdd","onReduce","onOverlimit","onChange"])])])}const J0=W(W0,[["render",Z0]]),{componentName:qw,create:_0}=U("sku-operate"),eC=_0({props:{btnOptions:{type:Array,default:()=>["confirm"]},btnExtraText:{type:String,default:""},buyText:{type:String,default:"立即购买"},addCartText:{type:String,default:"加入购物车"},confirmText:{type:String,default:"确定"}},emits:["click","changeSku","changeBuyCount","clickBtnOperate"],setup(e,{emit:o,slots:l}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{o("clickBtnOperate",s)},getSlots:s=>l[s]}}}),tC={key:0,class:"fox-sku-operate"},oC={key:0,class:"fox-sku-operate-desc"},nC={key:1,class:"fox-sku-operate-btn"},lC=["onClick"];function aC(e,o,l,n,a,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",tC,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",oC,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",nC,[(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,lC))),128))]))])):t.createCommentVNode("",!0)}const rC=W(eC,[["render",aC]]),{componentName:Mw,create:sC,scope:iC}=U("sku"),cC=sC({props:{...at,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:x0,SkuSelect:H0,SkuStepper:J0,SkuOperate:rC,[ce.name]:ce},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ie.useFoxI18n(iC),a=n(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,g=>{r.value=g}),t.watch(()=>r.value,g=>{g==!1&&v()}),t.onMounted(()=>{});const i=g=>l[g],c=g=>{o("select-sku",g)},d=g=>{s.value=g,o("change-stepper",g)},m=g=>{o("add",g)},f=g=>{o("reduce",g)},h=g=>{o("over-limit",g)},y=g=>{o("click-btn-operate",{type:g,value:s.value})},k=g=>{g=="icon"&&o("click-close-icon"),g=="overlay"&&o("click-overlay"),g=="close"&&o("close"),r.value=!1},v=()=>{o("update:visible",!1)};return{showPopup:r,closePopup:k,selectSku:c,changeStepper:d,stepperOverLimit:h,clickBtnOperate:y,add:m,reduce:f,getSlots:i,...a}}}),uC={class:"fox-sku"},dC={class:"fox-sku-content"};function fC(e,o,l,n,a,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),d=t.resolveComponent("sku-operate"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":o[0]||(o[0]=f=>e.showPopup=f),onClickCloseIcon:o[1]||(o[1]=f=>e.closePopup("icon")),onClickOverlay:o[2]||(o[2]=f=>e.closePopup("overlay")),onClose:o[3]||(o[3]=f=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",uC,[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",dC,[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(d,{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 Fr=W(cC,[["render",fC]]),{create:mC}=U("card"),pC=mC({components:{[tt.name]:tt,[uo.name]:uo},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:o,slots:l}){return{isHaveSlot:a=>l[a]}}}),hC={class:"fox-card"},gC={class:"fox-card__left"},yC=["src"],vC={class:"fox-card__right"},kC={class:"fox-card__right__title"},bC={key:0,class:"fox-card__right__price"},SC={class:"fox-card__right__other"},CC={class:"fox-card__right__shop"},wC={class:"fox-card__right__shop__name"};function NC(e,o,l,n,a,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",hC,[t.createElementVNode("div",gC,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,yC)]),t.createElementVNode("div",vC,[t.createElementVNode("div",kC,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",bC,[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",SC,[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",CC,[t.createElementVNode("div",wC,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Ur=W(pC,[["render",NC]]),{create:BC,scope:VC}=U("ecard"),AC=BC({components:{[pt.name]:pt},props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:Array,default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"¥"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(VC),n=t.ref(null),a=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,y)=>{n.value=y,s.value=e.cardAmountMin,a.value=h.price,o("change",h),o("update:modelValue",h.price)},d=h=>{let k=h.target.value.replace(/[^\d]/g,"");r.value=k,a.value=k,Number(k)>e.cardAmountMax&&(r.value=e.cardAmountMax,a.value=e.cardAmountMax),Number(k)<e.cardAmountMin&&(r.value=e.cardAmountMin,a.value=e.cardAmountMin),o("inputChange",Number(r.value)),o("update:modelValue",Number(r.value))},m=()=>{n.value="input",s.value=e.cardAmountMin,a.value=r.value,o("update:modelValue",r.value),o("inputClick")},f=h=>{s.value=h,o("changeStep",s.value,a.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:f,change:d,inputClick:m,stepValue:s,currentIndex:n,inputValue:r,money:i,t:l}}}),EC={class:"fox-ecard"},TC={class:"fox-ecard__title"},$C={class:"fox-ecard__list"},DC=["onClick"],IC={class:"fox-ecard__list__input--con"},qC=["placeholder"],MC={class:"fox-ecard__list__step"};function zC(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",EC,[t.createElementVNode("view",TC,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",$C,[(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:d=>e.handleClick(i,c)},t.toDisplayString(i.price),11,DC))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:o[2]||(o[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",IC,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":o[0]||(o[0]=i=>e.inputValue=i),onInput:o[1]||(o[1]=(...i)=>e.change&&e.change(...i)),placeholder:e.placeholder||e.t("placeholder")},null,40,qC),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",MC,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(s,{modelValue:e.stepValue,"onUpdate:modelValue":o[3]||(o[3]=i=>e.stepValue=i),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const Kr=W(AC,[["render",zC]]),{create:xC,scope:PC}=U("address-list-item"),LC=xC({components:{Del:G.Del,Edit:G.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(PC);return{delClick:s=>{o("delIcon",s,e.item),s.stopPropagation()},editClick:s=>{o("editIcon",s,e.item),s.stopPropagation()},contentsClick:s=>{o("clickItem",s,e.item),s.stopPropagation()},t:l}}}),RC={class:"fox-address-list-item__info"},OC={class:"fox-address-list-item__info-contact"},FC={class:"fox-address-list-item__info-contact-name"},UC={class:"fox-address-list-item__info-contact-tel"},KC={key:0,class:"fox-address-list-item__info-contact-default"},HC={class:"fox-address-list-item__info-handle"},jC={class:"fox-address-list-item__addr"};function WC(e,o,l,n,a,r){const s=t.resolveComponent("Del"),i=t.resolveComponent("Edit");return t.openBlock(),t.createElementBlock("div",{class:"fox-address-list-item",onClick:o[0]||(o[0]=(...c)=>e.contentsClick&&e.contentsClick(...c))},[t.createElementVNode("div",RC,[t.createElementVNode("div",OC,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",FC,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",UC,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",KC,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",HC,[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",jC,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const cl=W(LC,[["render",WC]]),{create:YC}=U("address-list-general"),XC=YC({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:cl,[Pe.name]:Pe,[so.name]:so},setup(e,{emit:o}){const l=()=>t.h(cl,{item:e.item,onDelIcon(B){s(B)},onEditIcon(B){i(B)},onClickItem(B){c(B)}});let n=null;const a=t.ref(!1),r=t.ref(!1),s=B=>{o("delIcon",B,e.item),B.stopPropagation()},i=B=>{o("editIcon",B,e.item),B.stopPropagation()},c=B=>{a.value||(o("clickItem",B,e.item),B.stopPropagation())},d=B=>{o("longDel",B,e.item),B.stopPropagation()},m=B=>{n=0,r.value=!0,o("longDown",B,e.item)};return{renderCompontent:l,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:d,holddownstart:B=>{n=setTimeout(()=>{m(B)},300)},holddownmove:()=>{clearTimeout(n)},holddownend:()=>{clearTimeout(n)},copyCLick:B=>{o("longCopy",B,e.item),B.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:B=>{o("longSet",B,e.item),B.stopPropagation()},maskClick:B=>{n!=0&&(r.value=!1),B.stopPropagation(),B.preventDefault()},swipeDelClick:B=>{o("swipeDel",B,e.item),B.stopPropagation()},swipestart:()=>{a.value=!1},swipemove:()=>{a.value=!0}}}}),QC={key:0,class:"fox-address-list-general"},GC={class:"fox-address-list-swipe"};function ZC(e,o,l,n,a,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(i,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(s,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>[t.createTextVNode("删除")]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",GC,[(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",QC,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchstart:e.holddownstart,onTouchend:e.holddownend,onTouchmove:e.holddownmove},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchstart","onTouchend","onTouchmove"])),e.longPress&&e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list-general__mask",onClick:o[3]||(o[3]=(...c)=>e.maskClick&&e.maskClick(...c))},[t.renderSlot(e.$slots,"longpress-all",{},()=>[t.createElementVNode("div",{class:"fox-address-list-general__mask-copy",onClick:o[0]||(o[0]=(...c)=>e.copyCLick&&e.copyCLick(...c))},"复制地址"),t.createElementVNode("div",{class:"fox-address-list-general__mask-set",onClick:o[1]||(o[1]=(...c)=>e.setDefault&&e.setDefault(...c))},"设置默认"),t.createElementVNode("div",{class:"fox-address-list-general__mask-del",onClick:o[2]||(o[2]=(...c)=>e.delLongClick&&e.delLongClick(...c))},"删除地址")])])):t.createCommentVNode("",!0),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-address-list__mask-bottom",onClick:o[4]||(o[4]=(...c)=>e.hideMaskClick&&e.hideMaskClick(...c))})):t.createCommentVNode("",!0)]))}const JC=W(XC,[["render",ZC]]),{componentName:_C,create:e1,scope:t1}=U("address-list"),o1=e1({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:JC,[Pe.name]:Pe},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(t1),n=t.ref([]),a=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[_C]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(n.value=e.data.map(v=>Al(a,v,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(v,g)=>{o("delIcon",v,g),v.stopPropagation()},c=(v,g)=>{o("editIcon",v,g),v.stopPropagation()},d=(v,g)=>{o("clickItem",v,g),v.stopPropagation()},m=(v,g)=>{o("longCopy",v,g),v.stopPropagation()},f=(v,g)=>{o("longSet",v,g),v.stopPropagation()},h=(v,g)=>{o("longDel",v,g),v.stopPropagation()},y=(v,g)=>{o("swipeDel",v,g),v.stopPropagation()},k=v=>{o("add",v),v.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:d,clickLongCopy:m,clickLongSet:f,clickLongDel:h,clickSwipeDel:y,addAddress:k,dataArray:n,t:l}}});function n1(e,o,l,n,a,r){const s=t.resolveComponent("general-shell"),i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,d)=>(t.openBlock(),t.createBlock(s,{key:d,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:o[0]||(o[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const Hr=W(o1,[["render",n1]]),{componentName:zw,create:l1}=U("category"),a1=l1({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:o,slots:l}){const n=t.ref(0),a=t.ref(!1);return{getChildList:s=>{n.value=s,o("change",s)},checkIndex:n,categoryLeft:a}}}),r1={class:"fox-category"},s1={class:"fox-category__cateList"},i1={key:0},c1=["onClick"];function u1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",r1,[t.createElementVNode("div",s1,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",i1,[(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,c1)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const jr=W(a1,[["render",u1]]),{componentName:xw,create:d1}=U("category-pane"),f1=d1({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:o}){return{onChange:n=>{o("onChange",n)}}}}),m1={class:"fox-category-pane"},p1={key:0,class:"fox-category-pane__cateListRight"},h1={class:"fox-category-pane__childTitle"},g1={key:0,class:"fox-category-pane__childItemList"},y1=["onClick"],v1=["src"],k1={class:"fox-category-pane__skuImg"},b1={key:1,class:"fox-category-pane__cateListRight"},S1={class:"fox-category-pane__childTitle"},C1={key:0,class:"fox-category-pane__childItemList"},w1=["onClick"],N1={class:"fox-category-pane__skuName"},B1={key:2,class:"fox-category-pane__selfItemList"},V1=["onClick"];function A1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",m1,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",p1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",h1,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",g1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,v1),t.createElementVNode("div",k1,t.toDisplayString(c?.catName),1)],8,y1))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",b1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",S1,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",C1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("div",N1,t.toDisplayString(c?.catName),1)],8,w1))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",B1,[(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,V1))),128))])):t.createCommentVNode("",!0)])}const Wr=W(f1,[["render",A1]]),{componentName:Pw,create:E1}=U("comment-header"),T1=E1({components:{[ao.name]:ao},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:o}){return{handleClick:()=>{o("handleClick")}}}}),$1={class:"fox-comment-header__user"},D1={class:"fox-comment-header__user-avter"},I1=["src"],q1={class:"fox-comment-header__user-score"},M1={key:0,class:"fox-comment-header__time"};function z1(e,o,l,n,a,r){const s=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:o[1]||(o[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",$1,[t.createElementVNode("view",D1,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,I1)):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",q1,[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":o[0]||(o[0]=i=>e.info.score=i),size:"12",spacing:"5",readonly:"",onChange:e.handleClick},null,8,["modelValue","onChange"])])],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("span",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},t.toDisplayString(e.info.nickName),3),t.renderSlot(e.$slots,"labels")],2))]),e.info.time?(t.openBlock(),t.createElementBlock("view",M1,t.toDisplayString(e.info.time),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.type=="complex"?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__${e.type}-score`])},[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":o[2]||(o[2]=i=>e.info.score=i),size:"12",spacing:"3",readonly:""},null,8,["modelValue"]),t.createElementVNode("i",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-i`])},null,2),t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-size`])},t.toDisplayString(e.info.size),3)],2)):t.createCommentVNode("",!0)])}const x1=W(T1,[["render",z1]]),{componentName:Lw,create:P1}=U("comment-images"),L1=P1({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:G.Right},emits:["click","clickImages"],setup(e,{emit:o}){const l=t.ref(!1),n=t.ref(1),a=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),a.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),a.value=e.videos.concat(e.images)}),{isShowImage:l,initIndex:n,showImages:(s,i)=>{const{videos:c,images:d}=e,m=s=="img"?i-c.length:i;o("clickImages",{type:s,index:m,value:s=="img"?d[m]:c[m]})},totalImages:a}}}),R1=["onClick"],O1=["src"],F1=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),U1=["onClick"],K1=["src"],H1={key:0,class:"fox-comment-images__mask"};function j1(e,o,l,n,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:d=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,O1),F1],8,R1))),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:d=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,K1),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",H1,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,U1)):t.createCommentVNode("",!0)],64))),128))],2)}const W1=W(L1,[["render",j1]]),{componentName:Rw,create:Y1,scope:X1}=U("comment-bottom"),Q1=Y1({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:G.Fabulous,Comment:G.Comment,MoreX:G.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(X1),n=t.ref(!1),a=t.ref([]);return t.onMounted(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&a.value.push(c)})}),{showPopver:n,operate:i=>{i=="more"&&(n.value=!n.value),o("clickOperate",i)},mergeOp:a,handleClick:()=>{o("handleClick")},t:l}}}),G1={class:"fox-comment-bottom"},Z1={key:0},J1={class:"fox-comment-bottom__cpx"},_1=["onClick"];function ew(e,o,l,n,a,r){const s=t.resolveComponent("Fabulous"),i=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",G1,[t.createElementVNode("view",{onClick:o[0]||(o[0]=(...d)=>e.handleClick&&e.handleClick(...d)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",Z1,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",J1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(d,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${d}`]),onClick:f=>e.operate(d)},[d!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[d]),1),d=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),d=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:o[1]||(o[1]=f=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,_1))),128))])])}const tw=W(Q1,[["render",ew]]),{componentName:ow,create:nw,scope:lw}=U("comment"),aw=nw({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:x1,CommentImages:W1,CommentBottom:tw,Right:G.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(lw),n=t.computed(()=>({[ow]:!0})),a=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:n,conEllipsis:a,clickOperate:c=>{o("clickOperate",c)},handleClick:()=>{o("click",e.info)},clickImages:c=>{o("clickImages",c)},t:l}}}),rw=["innerHTML"],sw={class:"fox-comment__follow-title"},iw={class:"fox-comment__follow-com"},cw={key:0,class:"fox-comment__follow-img"};function uw(e,o,l,n,a,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),d=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:o[0]||(o[0]=(...m)=>e.handleClick&&e.handleClick(...m)),innerHTML:e.info.content},null,12,rw),t.createVNode(i,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:o[1]||(o[1]=(...m)=>e.handleClick&&e.handleClick(...m))},[t.createElementVNode("view",sw,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",iw,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",cw,[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(d,{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 Yr=W(aw,[["render",uw]]),dw=[Hl,jl,Wl,Yl,Ql,Ve,_l,ea,ta,oa,na,mn,sa,pa,Na,Ba,vn,kn,Va,bn,Sn,Aa,Ea,wo,Ta,$a,Pe,Da,Ia,ot,ce,qa,Ma,za,xa,_t,Pa,Ra,Oa,Fa,Ua,Ka,Ha,ja,Wa,no,Ya,eo,to,Xa,Qa,Ga,Za,lo,Ja,pn,yn,gn,pt,ao,Et,_a,tr,or,so,nr,lr,ar,io,sr,ir,ur,Cn,zt,fr,mr,co,pr,hr,ro,gr,yr,vr,Dt,kr,br,It,qt,tt,Bn,wr,Nr,Br,uo,fo,Vr,Ar,Er,Tr,$r,Dr,Ir,qr,Mr,zr,xr,Pr,Lr,Rr,Or,Fr,Ur,Kr,Hr,jr,Wr,Yr],fw=new Vs(dw,"4.0.0");exports.ActionSheet=nr;exports.Address=zr;exports.AddressList=Hr;exports.Animate=Dr;exports.Audio=fr;exports.AudioOperate=mr;exports.Avatar=co;exports.AvatarGroup=pr;exports.BackTop=lr;exports.Badge=Br;exports.Barrage=xr;exports.Broadcast=un;exports.BroadcastKey=ye;exports.Button=Pe;exports.Calendar=yn;exports.CalendarItem=Ba;exports.Card=Ur;exports.Cascader=pn;exports.CascaderItem=pa;exports.Category=jr;exports.CategoryPane=Wr;exports.Cell=Da;exports.CellGroup=Ia;exports.Checkbox=bn;exports.CheckboxGroup=Sn;exports.CheckboxItem=Aa;exports.CircleProgress=gr;exports.Col=za;exports.Collapse=Ar;exports.CollapseItem=Er;exports.Comment=Yr;exports.Content=Yl;exports.CountDown=Nr;exports.CountUp=wr;exports.DataItemsKey=it;exports.DateItem=Na;exports.DatePicker=gn;exports.DateUtils=_;exports.Dialog=io;exports.Divider=Pa;exports.Domain=yo;exports.DomainKey=Ae;exports.DomainProvider=$a;exports.Drag=ar;exports.Ecard=Kr;exports.Elevator=no;exports.Ellipsis=$r;exports.Empty=vr;exports.FixedNav=Ua;exports.FooterBar=Wl;exports.Grid=Ra;exports.GridItem=Oa;exports.Group=Ql;exports.HeaderBar=jl;exports.Image=qa;exports.ImagePreview=Bn;exports.Indicator=Xa;exports.InfiniteLoading=sr;exports.InputItem=ta;exports.InputNumber=pt;exports.Item=Ve;exports.Layout=Ma;exports.LinkItem=Ta;exports.List=hr;exports.Menu=Ka;exports.MenuItem=Ha;exports.MoneyItem=oa;exports.Navbar=Fa;exports.NoticeBar=yr;exports.Notify=ur;exports.NumberKeyboard=or;exports.OverLay=ot;exports.Page=Hl;exports.Pagination=Ya;exports.Picker=Et;exports.PickerItem=sa;exports.Popover=fo;exports.Popup=ce;exports.Price=tt;exports.PriorityPolicy=Zt;exports.Progress=ro;exports.PullRefresh=ir;exports.Radio=vn;exports.RadioGroup=kn;exports.RadioItem=Va;exports.Range=lo;exports.Rate=ao;exports.Row=xa;exports.RowItem=_l;exports.SearchBar=Ja;exports.ShortPassword=_a;exports.SideNavBar=Qa;exports.SideNavBarItem=Ga;exports.Signature=Pr;exports.Skeleton=Vr;exports.Sku=Fr;exports.SlotItem=ea;exports.Step=br;exports.Steps=kr;exports.Sticky=_t;exports.SubSideNavBar=Za;exports.Swipe=so;exports.Swiper=It;exports.SwiperItem=qt;exports.Switch=Cn;exports.SwitchItem=Ea;exports.TabPane=to;exports.Tabbar=ja;exports.TabbarItem=Wa;exports.Table=Tr;exports.Tabs=eo;exports.Tag=uo;exports.Textarea=mn;exports.TextareaItem=na;exports.TimeDetail=Or;exports.TimePannel=Rr;exports.TimeSelect=Lr;exports.Toast=zt;exports.Tour=Mr;exports.TrendArrow=qr;exports.UniqueID=Jl;exports.Uploader=tr;exports.ValidateSchema=ql;exports.ValidateSchemaKey=Re;exports.Video=Dt;exports.WaterMark=Ir;exports.cancelRaf=ul;exports.clamp=Le;exports.clearNonNumber=Fo;exports.clone=Oo;exports.compareTo=Lo;exports.createBroadcast=ho;exports.createValidateSchema=go;exports.debounce=Vt;exports.debounceRef=gs;exports.decimalLength=Bl;exports.default=fw;exports.defineBroadcast=ss;exports.defineConfigDomain=Ml;exports.defineDataItem=xl;exports.defineDomain=dn;exports.defineItem=Be;exports.definePageState=Pl;exports.deleteGlobalValidator=ds;exports.disabledProperty=Ne;exports.divide=an;exports.excludeProps=Vl;exports.extend=_e;exports.floatData=Al;exports.getGlobalValidateCheckEvents=$l;exports.getGlobalValidateResetEvents=Il;exports.getPageContentAreaHeight=Qt;exports.getPageContentAreaWidth=Gt;exports.getPageFooterAreaHeight=bo;exports.getPageHeaderAreaHeight=ko;exports.getRootDomain=dt;exports.getScrollTopRoot=cn;exports.hasSymbol=yl;exports.hinttext=wo;exports.includeProps=ke;exports.indexOf=as;exports.installRules=zl;exports.integerLength=Nl;exports.isArray=mo;exports.isArrayLike=bl;exports.isBrowser=lt;exports.isDate=Oe;exports.isESModule=es;exports.isEmptyString=Ce;exports.isEqual=Fe;exports.isFunction=Yt;exports.isHidden=vl;exports.isInnerPage=ks;exports.isMap=Zr;exports.isNumberString=wl;exports.isObject=De;exports.isPlainObject=Ro;exports.isPromise=sn;exports.isRegExp=Cl;exports.isSet=Jr;exports.isString=hl;exports.isSubPage=bs;exports.isSymbol=_r;exports.isWindow=kl;exports.lastIndexOf=rs;exports.makeArray=ls;exports.merge=Sl;exports.multiply=fl;exports.negate=ml;exports.nextTick=os;exports.numberFormat=rn;exports.objectToString=gl;exports.once=ys;exports.padZero=Ge;exports.preventDefault=Uo;exports.property=Ee;exports.raf=Qe;exports.readonlyProperty=Ie;exports.setGlobalValidateCheckEvents=fs;exports.setGlobalValidateHandler=cs;exports.setGlobalValidateMessages=ps;exports.setGlobalValidateResetEvents=ms;exports.setGlobalValidator=us;exports.throttle=Xt;exports.toBoolean=ge;exports.toNumber=ue;exports.toPadding=Me;exports.toPx=se;exports.toPxDesc=le;exports.toTypeString=po;exports.toValue=ze;exports.typeOf=et;exports.unNumberFormat=pl;exports.updatePageState=Ko;exports.useBroadcast=St;exports.useDomain=Ue;exports.useExpose=Te;exports.usePageState=vo;exports.usePosition=Gl;exports.useRect=ve;exports.useTouch=Ke;exports.valueLength=pe;
13
+ `)}}});function Jf(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Pa=K(Zf,[["render",Jf]]),{componentName:_f,create:em}=O("divider"),tm=em({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,o){return{classes:t.computed(()=>{const n=_f;let a={[n]:!0},r={};return e.direction==="horizontal"?r={...a,[`${n}-center`]:o.slots.default,[`${n}-left`]:e.contentPosition==="left",[`${n}-right`]:e.contentPosition==="right",[`${n}-dashed`]:e.dashed,[`${n}-hairline`]:e.hairline}:r={...a,[`${n}-vertical`]:e.direction==="vertical"},r})}}});function om(e,o,l,n,a,r){return e.direction==="horizontal"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes)},null,2))}const Ra=K(tm,[["render",om]]);function nm(e,o){const l=[],n=a=>{Array.isArray(a)&&a.forEach(r=>{if(t.isVNode(r)){if(o){if(r.type&&r.type.name===o){l.push(r);return}}else l.push(r);r.component?.subTree&&n(r.component.subTree.children),r.children&&n(r.children)}})};return n(e),l}function lm(e,o,l){const n=nm(e.subTree.children,l);o.sort((a,r)=>n.indexOf(a.vnode)-n.indexOf(r.vnode))}function am(e,o){const l=t.shallowReactive([]),n=t.getCurrentInstance(),a=i=>{i.proxy&&(l.push(t.markRaw(i)),lm(n,l,o))},r=i=>{l.splice(l.indexOf(t.markRaw(i)),1)},s=Object.assign;return i=>(t.provide(e,s({add:a,remove:r,internalChildren:l},i)),{internalChildren:l})}const{componentName:sl}=O("grid"),Oa=Symbol("grid"),rm={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}},sm={props:rm,setup(e,{slots:o}){am(Oa,`${sl}-item`)({props:e});const l=t.computed(()=>{const a=sl;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),n=t.computed(()=>{const a={};return e.gutter&&(a.paddingLeft=se(e.gutter)),a});return()=>t.h("view",{class:l.value,style:n.value},o.default?.())}},{create:im}=O("grid"),Fa=im(sm);function cm(e){const o=t.inject(e,null);if(o){const l=t.getCurrentInstance(),{add:n,remove:a,internalChildren:r}=o;n(l),t.onUnmounted(()=>a(l));const s=t.computed(()=>r.indexOf(l));return{parent:o,index:s}}return{parent:null,index:t.ref(-1)}}const{create:um,componentName:il}=O("grid-item"),dm=um({props:{text:{type:String}},emits:["click"],setup(e,{emit:o}){const l=cm(Oa);if(!l.parent)return{};const n=l.index,a=l.parent.props,r=t.computed(()=>({[il]:!0})),s=t.computed(()=>{const d={flexBasis:`${100/+a.columnNum}%`};return a.square?d.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(d.paddingRight=se(a.gutter),n.value>=a.columnNum&&(d.marginTop=se(a.gutter))),d}),i=t.computed(()=>{const d=`${il}__content`;return{[`${d}`]:!0,[`${d}--border`]:a.border,[`${d}--surround`]:a.border&&a.gutter,[`${d}--center`]:a.center,[`${d}--square`]:a.square,[`${d}--reverse`]:a.reverse,[`${d}--${a.direction}`]:!!a.direction,[`${d}--clickable`]:a.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:d=>{o("click",d)}}}}),fm={class:"fox-grid-item__text"};function mm(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:o[0]||(o[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",fm,[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 Ua=K(dm,[["render",mm]]),{componentName:pm,create:hm}=O("navbar"),gm=hm({components:{Left:Q.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:o}){const{border:l,fixed:n,safeAreaInsetTop:a,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let d=t.ref();const m=t.computed(()=>{const v=pm;return{[v]:!0,[`${v}--border`]:l.value,[`${v}--fixed`]:n.value,[`${v}--safe-area-inset-top`]:a.value}}),f=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{n.value&&r.value&&t.nextTick(()=>{d.value=c?.value?.getBoundingClientRect().height,i.value.style.height=d.value+"px"})});function h(){o("on-click-back")}function g(){o("on-click-title")}function b(){o("on-click-icon")}function y(){o("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:m,styles:f,handleLeft:h,handleCenter:g,handleCenterIcon:b,handleRight:y}}}),ym={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},vm={key:1,class:"fox-navbar__text"},km={class:"fox-navbar__title"},bm={key:0,class:"fox-navbar__text"},Sm={key:1,class:"fox-navbar__text"},Cm={class:"fox-navbar__title"},wm={key:0,class:"fox-navbar__text"};function Nm(e,o,l,n,a,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",ym,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:o[0]||(o[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",vm,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",km,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:o[1]||(o[1]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:o[3]||(o[3]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:o[2]||(o[2]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:o[4]||(o[4]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",bm,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6)],512)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:o[5]||(o[5]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Sm,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Cm,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:o[6]||(o[6]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:o[8]||(o[8]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:o[7]||(o[7]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:o[9]||(o[9]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",wm,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Ka=K(gm,[["render",Nm]]),Bm=(e,o,l)=>({components:l,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{default:"",type:String},activeText:{default:"",type:String},unActiveText:{default:"",type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(n,{emit:a}){const{toLocaleRefs:r}=re.useFoxI18n(o),s=r(n,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:n.visible,[n.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(f=!n.visible)=>{a("update:visible",f)},selected:(f,h)=>{a("selected",{item:f,event:h}),c.value=f.id},current:c}}}),{componentName:Vm,create:Am,scope:Em}=O("fixednav"),Tm=Am(Bm(Vm,Em,{[_e.name]:_e,Left:Q.Left})),$m={class:"fox-fixednav__list"},Dm=["onClick"],Im=["src"],qm={class:"span"},Mm={key:0,class:"b"},zm={class:"text"};function Lm(e,o,l,n,a,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Left");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(s,{key:0,visible:e.visible,"z-index":200,onClick:o[0]||(o[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",$m,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:m=>e.selected(c,m),key:c.id||d},[t.createElementVNode("img",{src:c.icon},null,8,Im),t.createElementVNode("view",qm,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Mm,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Dm))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:o[1]||(o[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{color:"#fff"}),t.createElementVNode("view",zm,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Ha=K(Tm,[["render",Lm]]),{componentName:xm,create:Pm}=O("menu"),Rm=Pm({components:{ArrowUp2:Q.ArrowUp2,ArrowDown2:Q.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:o,slots:l}){const n=t.ref(),a=t.ref(0),r=t.ref(!1),s=()=>{const v=t.reactive([]),u=t.reactive([]);return{children:v,linkChildren:k=>{const S=V=>{V.proxy&&(u.push(V),v.push(V.proxy))},A=V=>{if(V.proxy){let I=u.indexOf(V);I>-1&&u.splice(I,1);let B=v.indexOf(V.proxy);I>-1&&v.splice(B,1)}};t.provide("menuParent",Object.assign({removeLink:A,link:S,children:v,internalChildren:u},k))}}},{children:i,linkChildren:c}=s(),d=t.computed(()=>i.some(v=>v.state.showWrapper)),m=t.computed(()=>({[xm]:!0,"scroll-fixed":r.value})),f=()=>{if(n.value){const v=Se(n);e.direction==="down"?a.value=v.bottom:a.value=window.innerHeight-v.top}};c({props:e,offset:a});const h=v=>{i.forEach((u,p)=>{p===v?(f(),u.toggle()):u.state.showPopup&&u.toggle(!1,{immediate:!0})})},g=v=>Math.max(0,"scrollTop"in v?v.scrollTop:v.pageYOffset),b=()=>{const{scrollFixed:v}=e,u=g(window);r.value=u>(typeof v=="boolean"?30:Number(v))},y=v=>{let u="";const{titleClass:p}=e;return v&&(u+="active"),p&&(u+=` ${p}`),u};return t.onMounted(()=>{const{scrollFixed:v}=e;v&&window.addEventListener("scroll",b)}),t.onUnmounted(()=>{const{scrollFixed:v}=e;v&&window.removeEventListener("scroll",b)}),{toggleItem:h,children:i,opened:d,classes:m,barRef:n,getClasses:y}}}),Om=["onClick"],Fm={class:"fox-menu__title-text"},Um={class:"fox-menu__title-icon"};function Km(e,o,l,n,a,r){const s=t.resolveComponent("ArrowUp2"),i=t.resolveComponent("ArrowDown2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:m=>!c.disabled&&e.toggleItem(d),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",Fm,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Um,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Om))),128))],2),t.renderSlot(e.$slots,"default")],2)}const ja=K(Rm,[["render",Km]]),{componentName:Hm,create:jm}=O("menu-item"),Wm=jm({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:{[ie.name]:ie,Check:Q.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:o,slots:l}){const n=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),a=()=>{const g=t.inject("menuParent",null);if(g){const b=t.getCurrentInstance(),{link:y,removeLink:v}=g;return y(b),t.onUnmounted(()=>{v(b)}),{parent:g}}},{parent:r}=a(),s=t.computed(()=>({[Hm]:!0})),i=t.computed(()=>{const g={height:r.offset.value+"px"};return r.props.direction==="down"?g:{...g,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const g=e.options?.find(b=>b.value===e.modelValue);return g?g.text:""},state:n,parent:r,toggle:(g=!n.showPopup,b={})=>{g!==n.showPopup&&(n.showPopup=g,n.isShowPlaceholderElement=g,g&&(n.showWrapper=!0,o("open")))},onClick:g=>{n.showPopup=!1,n.isShowPlaceholderElement=!1,g.value!==e.modelValue&&(o("update:modelValue",g.value),o("change",g.value))},handleClose:()=>{o("close"),n.showWrapper=!1,n.isShowPlaceholderElement=!1},handleClickOutside:()=>{n.showPopup=!1,o("close")}}}}),Ym={class:"fox-menu-item__content fox-menu-item__overflow"},Xm=["onClick"];function Qm(e,o,l,n,a,r){const s=t.resolveComponent("Check"),i=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:o[0]||(o[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:t.normalizeStyle(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),t.createVNode(i,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",top:"auto"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":o[1]||(o[1]=c=>e.state.showPopup=c),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:t.withCtx(()=>[t.createElementVNode("view",Ym,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:m=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps(e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass([c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),7)],14,Xm))),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 Wa=K(Wm,[["render",Qm]]),{create:Gm}=O("tabbar"),Zm=Gm({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,o){function l(a){n.value!==a&&(n.value=a,o.emit("update:modelValue",a),o.emit("change",a,n.children[a]))}const n=t.reactive({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:l});return t.provide("parent",n),t.watch(()=>e.modelValue,a=>{n.value=a}),{changeIndex:l}}});function Jm(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[t.renderSlot(e.$slots,"default")],2)}const Ya=K(Zm,[["render",Jm]]),{create:_m}=O("tabbar-item"),ep=_m({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,o){const l=t.inject("parent"),n=t.reactive({size:l.size,inactiveColor:l.inactiveColor,activeColor:l.activeColor,value:l.value,index:0}),a=t.getCurrentInstance();a!==null&&(d=>{if(d.proxy){let m=l.children.length;n.index=m;let f=Object.assign(d.proxy,{index:m});l.children.push(f)}})(a);const r=t.computed(()=>n.index===n.value);function s(c){l&&typeof l.changeIndex=="function"&&l.changeIndex(c)}const i=t.computed(()=>l?l.value:null);return t.watch(i,c=>{n.value=c}),{state:n,active:r,change:s}}}),tp={class:"fox-tabbar-item_icon-box"},op={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},np={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},lp={key:1,class:"fox-tabbar-item_icon-box_dot"},ap={key:2},rp={key:0};function sp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:t.normalizeStyle({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:o[0]||(o[0]=s=>e.change(e.state.index))},[t.createElementVNode("view",tp,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",op,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",np,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",lp)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",ap,[(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",rp,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Xa=K(ep,[["render",sp]]),{componentName:ip,create:cp}=O("elevator"),up=cp({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,o){const l=t.ref(null),n=t.reactive({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),a=t.computed(()=>({[ip]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${n.scrollY+n.fixedTop}px, 0)`})),s=t.computed(()=>l.value.clientHeight),i=(u,p)=>{const k="data-";return u.getAttribute(k+p)},c=u=>{t.nextTick(()=>{!n.listGroup.includes(u)&&u!=null&&n.listGroup.push(u)})},d=()=>{let u=0;n.listHeight.push(u);for(let p=0;p<n.listGroup.length;p++){let k=n.listGroup[p];u+=Math.floor(k.clientHeight),n.listHeight.push(u)}},m=u=>{!u&&u!==0||(u<0&&(u=0),u>n.listHeight.length-2&&(u=n.listHeight.length-2),n.codeIndex=u,l.value.scrollTo(0,n.listHeight[u]))},f=u=>{n.scrollStart=!0;let p=i(u.target,"index"),k=u.touches[0];n.touchState.y1=k.pageY,n.anchorIndex=+p,n.codeIndex=+p,m(+p)},h=u=>{let p=u.touches[0];n.touchState.y2=p.pageY;let k=(n.touchState.y2-n.touchState.y1)/e.spaceHeight|0;n.codeIndex=n.anchorIndex+k,m(n.codeIndex)},g=()=>{n.scrollStart=!1},b=(u,p)=>{o.emit("click-item",u,p),n.currentData=p,n.currentKey=u},y=u=>{o.emit("click-index",u)},v=u=>{let k=u.target.scrollTop;const S=n.listHeight;n.scrollY=k;for(let A=0;A<S.length-1;A++){let V=S[A],I=S[A+1];if(n.scrollY>=V&&n.scrollY<I){n.currentIndex=A,n.diff=I-n.scrollY;return}}n.currentIndex=S.length-2};return t.onMounted(()=>{l.value.addEventListener("scroll",v)}),Ae({scrollTo:m}),t.watch(()=>n.listGroup.length,()=>{n.listHeight=[],t.nextTick(d)}),t.watch(()=>n.diff,u=>{const p=n.listHeight;let k=u>0&&u<e.titleHeight?u-e.titleHeight:0;n.scrollY+s.value===p[p.length-1]&&k!==0&&(k=0),n.fixedTop!==k&&(n.fixedTop=k)}),t.watch(()=>n.currentIndex,u=>{o.emit("change",u)}),{classes:a,...t.toRefs(n),fixedStyle:r,clientHeight:s,setListGroup:c,listview:l,touchStart:f,touchMove:h,touchEnd:g,handleClickItem:b,handleClickIndex:y}}}),dp={class:"fox-elevator__list__item__code"},fp=["onClick"],mp=["innerHTML"],pp={class:"fox-elevator__fixed-title"},hp={class:"fox-elevator__bars__inner"},gp=["data-index","onClick"];function yp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",dp,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,mp))],10,fp))),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",pp,t.toDisplayString(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):t.createCommentVNode("",!0)],4),e.indexList.length?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__code--current"},t.toDisplayString(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-elevator__bars",onTouchstart:o[0]||(o[0]=(...s)=>e.touchStart&&e.touchStart(...s)),onTouchmove:o[1]||(o[1]=t.withModifiers((...s)=>e.touchMove&&e.touchMove(...s),["stop","prevent"])),onTouchend:o[2]||(o[2]=(...s)=>e.touchEnd&&e.touchEnd(...s))},[t.createElementVNode("view",hp,[(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,gp))),128))])],32)],2)}const oo=K(up,[["render",yp]]),{componentName:Bw,create:vp,scope:kp}=O("pagination"),bp=vp({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:o}){const{toLocaleRefs:l}=re.useFoxI18n(kp),n=l(e,["prevText","nextText"]),{modelValue:a,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:g,itemsPerPage:b}=t.toRefs(e),y=+h.value||Math.ceil(+g.value/+b.value);return Math.max(1,y)}),d=(h,g)=>{h>c.value||h<1||(h!=a.value&&o("update:modelValue",h),g&&o("change",h))},m=(h,g,b=!1)=>({number:h,text:g,active:b}),f=t.computed(()=>{if(r.value=="simple")return;let h=[];const g=c.value,b=+s.value;let y=1,v=g;const u=g>b;u&&(y=Math.max(a.value-Math.floor(b/2),1),v=y+b-1,v>g&&(v=g,y=v-b+1));for(var p=y;p<=v;p++){const k=m(p,p,a.value==p);h.push(k)}if(u&&b>0&&i.value){if(y>1){const k=m(y-1,"...");h.unshift(k)}if(v<g){const k=m(v+1,"...");h.push(k)}}return h});return t.watchEffect(()=>{d(a.value,!1)}),{...n,modelValue:a,select:d,countRef:c,mode:r,pages:f,forceEllipses:i}}}),Sp={class:"fox-pagination"},Cp={key:0,class:"fox-pagination-contain"},wp=["onClick"],Np={key:1,class:"fox-pagination-contain"},Bp={class:"fox-pagination-simple"};function Vp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",Sp,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:o[0]||(o[0]=s=>e.select(e.modelValue-1,!0))},[t.renderSlot(e.$slots,"prev-text",{},()=>[t.createTextVNode(t.toDisplayString(e.prevText),1)])],2),e.mode=="multi"?(t.openBlock(),t.createElementBlock("view",Cp,[(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,wp))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Np,[t.createElementVNode("view",Bp,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:o[1]||(o[1]=s=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const Qa=K(bp,[["render",Vp]]),{componentName:cl,create:Ap}=O("indicator"),Ep=Ap({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:o,align:l}=t.toRefs(e);return{classes:t.computed(()=>{const a=cl;return{[a]:!0,[`${a}--block`]:o.value,[`${a}--align__${l.value}`]:o.value&&l.value}}),componentName:cl,padZero:Ye}}});function Tp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,s=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[s===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(s)||s),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const Ga=K(Ep,[["render",Tp]]),{componentName:$p,create:Dp}=O("side-navbar"),Ip=Dp({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const o=t.ref(null),l=t.reactive({count:1,observer:null}),n=t.computed(()=>({[$p]:!0})),a=(s,i=1)=>{for(let c=0;c<s.length;c++){let d=s[c];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*i+"px",d.className.includes("fox-side-navbar-item")||a(Array.from(d.children[1].children),++l.count))}l.count--},r=()=>{let s=o.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),a(s))};return t.onMounted(()=>{r(),l.observer=new MutationObserver(function(){l.count=1,r()}),l.observer.observe(o.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(l),list:o,classes:n}}}),qp={class:"fox-side-navbar__content"},Mp={class:"fox-side-navbar__content__list",ref:"list"};function zp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",qp,[t.createElementVNode("view",Mp,[t.renderSlot(e.$slots,"default")],512)])],2)}const Za=K(Ip,[["render",zp]]),{componentName:Lp,create:xp}=O("side-navbar-item"),Pp=xp({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,o)=>({classes:t.computed(()=>({[Lp]:!0})),handleClick:()=>{o.emit("click")}})}),Rp=["ikey"],Op={class:"fox-side-navbar-item__title"};function Fp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[t.createElementVNode("span",Op,t.toDisplayString(e.title),1)],10,Rp)}const Ja=K(Pp,[["render",Fp]]),{componentName:Up,create:Kp}=O("sub-side-navbar"),Hp=Kp({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:Q.ArrowDown2,ArrowUp2:Q.ArrowUp2},emits:["title-click"],setup:(e,o)=>{const l=t.reactive({direction:""}),n=t.computed(()=>({[Up]:!0})),a=t.computed(()=>({height:l.direction?"0px":"auto"})),r=()=>{o.emit("title-click"),l.direction=l.direction?"":"up"};return t.onMounted(()=>{l.direction=e.open?"":"up"}),{...t.toRefs(l),classes:n,style:a,handleClick:r}}}),jp=["ikey"],Wp={class:"fox-sub-side-navbar__title__text"},Yp={class:"fox-sub-side-navbar__title__icon"};function Xp(e,o,l,n,a,r){const s=t.resolveComponent("ArrowDown2"),i=t.resolveComponent("ArrowUp2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-sub-side-navbar__title",onClick:o[0]||(o[0]=t.withModifiers((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[t.createElementVNode("span",Wp,t.toDisplayString(e.title),1),t.createElementVNode("span",Yp,[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,jp)}const _a=K(Hp,[["render",Xp]]),{componentName:Qp,create:Gp}=O("range"),Zp=Gp({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:o}){const l=t.ref(0);let n,a;const r=t.ref(),s=t.ref(),i=Fe(),c=t.computed(()=>{const{marks:N,max:T,min:M}=e;return Object.keys(N).map(parseFloat).sort((F,U)=>F-U).filter(F=>F>=M&&F<=T)}),d=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const N=Qp;return{[N]:!0,[`${N}-disabled`]:e.disabled,[`${N}-vertical`]:e.vertical,[`${N}-show-number`]:!e.hiddenRange}}),f=t.computed(()=>{const N="fox-range-container";return{[N]:!0,[`${N}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),g=t.computed(()=>({borderColor:e.buttonColor})),b=N=>!!e.range&&Array.isArray(N),y=()=>{const{modelValue:N,min:T}=e;return b(N)?`${(N[1]-N[0])*100/d.value}%`:`${(N-Number(T))*100/d.value}%`},v=()=>{const{modelValue:N,min:T}=e;return b(N)?`${(N[0]-Number(T))*100/d.value}%`:"0%"},u=t.computed(()=>e.vertical?{height:y(),top:v(),background:e.activeColor,transition:s.value?"none":void 0}:{width:y(),left:v(),background:e.activeColor,transition:s.value?"none":void 0}),p=N=>{const T="fox-range-mark",{modelValue:M,max:$,min:z}=e;let F=Number(z),U=Number($);if(e.range){const[X,Y]=M;F=X,U=Y}else U=M;let W=N<=U&&N>=F;return{[`${T}-text`]:!0,[`${T}-text-active`]:W}},k=N=>{const{min:T,vertical:M}=e;let $={left:`${(N-Number(T))/d.value*100}%`};return M&&($={top:`${(N-Number(T))/d.value*100}%`}),$},S=N=>{const{modelValue:T,max:M,min:$}=e;let z=Number($),F=Number(M);if(e.range){const[X,Y]=T;z=X,F=Y}return{background:N<=F&&N>=z?e.activeColor:e.inactiveColor}},A=N=>{const{min:T,max:M,step:$}=e;return N=Math.max(+T,Math.min(N,+M)),Math.round(N/+$)*+$},V=(N,T)=>JSON.stringify(N)===JSON.stringify(T),I=N=>N[0]>N[1]?N.slice(0).reverse():N,B=(N,T)=>{b(N)?N=I(N).map(A):N=A(N),V(N,e.modelValue)||o("update:modelValue",N),T&&!V(N,n)&&o("change",N)},C=N=>{if(e.disabled)return;const{min:T,modelValue:M}=e,$=Se(r);let z=N.clientX-$.left,F=$.width;e.vertical&&(z=N.clientY-$.top,F=$.height);const U=Number(T)+z/F*d.value;if(b(M)){const[W,X]=M,Y=(W+X)/2;U<=Y?B([U,X],!0):B([W,U],!0)}else B(U,!0)},w=N=>{e.disabled||(i.start(N),a=e.modelValue,b(a)?n=a.map(A):n=A(a),s.value="start")},L=N=>{if(e.disabled)return;s.value==="start"&&o("drag-start"),i.move(N),s.value="draging";const T=Se(r);let M=i.deltaX.value,$=T.width,z=M/$*d.value;e.vertical&&(M=i.deltaY.value,$=T.height,z=M/$*d.value),b(n)?a[l.value]=n[l.value]+z:a=n+z,B(a),N.stopPropagation(),N.preventDefault()},x=()=>{e.disabled||(s.value==="draging"&&(B(a,!0),o("drag-end")),s.value="")},q=N=>fo(e.modelValue)&&typeof N=="number"?e.modelValue[N]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:h,buttonStyle:g,onClick:C,onTouchStart:w,onTouchMove:L,onTouchEnd:x,...t.toRefs(e),barStyle:u,curValue:q,buttonIndex:l,containerClasses:f,markClassName:p,marksStyle:k,marksList:c,tickStyle:S}}}),Jp={key:0,class:"fox-range-min"},_p={key:0,class:"fox-range-mark"},eh=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],th={key:0,class:"number"},oh=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],nh={key:0,class:"number"},lh={key:1,class:"fox-range-max"};function ah(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Jp,t.toDisplayString(+e.min),1)),t.createElementVNode("view",{ref:"root",style:t.normalizeStyle(e.wrapperStyle),class:t.normalizeClass(e.classes),onClick:o[9]||(o[9]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",_p,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,s=>(t.openBlock(),t.createElementBlock("span",{key:s,class:t.normalizeClass(e.markClassName(s)),style:t.normalizeStyle(e.marksStyle(s))},[t.createTextVNode(t.toDisplayString(s)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(s))},null,4)],6))),128))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-range-bar",style:t.normalizeStyle(e.barStyle)},[e.range?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList([0,1],s=>t.createElementVNode("view",{key:s,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":s==0,"fox-range-button-wrapper-right":s==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(s),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(i=>{typeof s=="number"&&(e.buttonIndex=s),e.onTouchStart(i)},["stop","prevent"]),onTouchmove:o[0]||(o[0]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:o[1]||(o[1]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:o[2]||(o[2]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:o[3]||(o[3]=i=>i.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",th,t.toDisplayString(e.curValue(s)),1))],4))],42,eh)),64)):(t.openBlock(),t.createElementBlock("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:o[4]||(o[4]=t.withModifiers(s=>{e.onTouchStart(s)},["stop","prevent"])),onTouchmove:o[5]||(o[5]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:o[6]||(o[6]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:o[7]||(o[7]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:o[8]||(o[8]=s=>s.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",nh,t.toDisplayString(e.curValue()),1))],4))],40,oh))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",lh,t.toDisplayString(+e.max),1))],2)}const no=K(Zp,[["render",ah]]),{create:rh,scope:sh}=O("searchbar"),ih=rh({props:{modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object,default:()=>Q.CircleClose},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},emits:["change","update:modelValue","blur","focus","clear","search","click-input","click-left-icon","click-right-icon"],setup(e,{emit:o}){const{toLocaleRefs:l}=re.useFoxI18n(sh),n=l(e,["placeholder"]),a=t.reactive({active:!1}),r=t.computed(()=>({background:e.background})),s=t.computed(()=>({background:e.inputBackground})),i=p=>{let S=p.target.value;e.maxLength&&S.length>Number(e.maxLength)&&(S=S.slice(0,Number(e.maxLength))),o("update:modelValue",S,p),o("change",S,p)},c=t.ref({}),d=p=>{let S=p.target.value;a.active=!0,c.value=e.focusStyle,o("focus",S,p)},m=p=>{setTimeout(()=>{a.active=!1},0);let S=p.target.value;e.maxLength&&S.length>Number(e.maxLength)&&(S=S.slice(0,Number(e.maxLength))),c.value={},o("blur",S,p)},f=p=>{o("update:modelValue","",p),o("change","",p),o("clear","")},h=()=>{o("search",e.modelValue)},g=p=>{o("click-input",p)},b=p=>{o("click-left-icon",e.modelValue,p)},y=p=>{o("click-right-icon",e.modelValue,p)},v=t.computed(()=>({textAlign:e.inputAlign})),u=t.ref(null);return t.onMounted(()=>{e.autofocus&&u.value.focus()}),{...n,inputsearch:u,...t.toRefs(a),valueChange:i,valueFocus:d,valueBlur:m,handleClear:f,handleSubmit:h,searchbarStyle:r,inputSearchbarStyle:s,focusCss:c,clickInput:g,leftIconClick:b,rightIconClick:y,styleSearchbar:v}}}),ch={key:0,class:"fox-searchbar__search-label"},uh={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},dh=["type","maxlength","placeholder","value","disabled","readonly"],fh={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-search-icon"},mh={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function ph(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:"fox-searchbar",style:t.normalizeStyle(e.searchbarStyle)},[e.label?(t.openBlock(),t.createElementBlock("span",ch,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",uh,[t.renderSlot(e.$slots,"leftout")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__search-input",e.shape]),style:t.normalizeStyle({...e.inputSearchbarStyle,...e.focusCss})},[e.$slots.leftin?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-searchbar__search-icon fox-searchbar__iptleft-search-icon",onClick:o[0]||(o[0]=(...s)=>e.leftIconClick&&e.leftIconClick(...s))},[t.renderSlot(e.$slots,"leftin")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner",e.$slots.rightin&&"fox-searchbar__input-inner-absolute"])},[t.createElementVNode("form",{class:"fox-searchbar__input-form",action:"#",onSubmit:o[5]||(o[5]=t.withModifiers((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[t.createElementVNode("input",{ref:"inputsearch",class:t.normalizeClass(["fox-searchbar__input-bar",e.clearable&&"fox-searchbar__input-bar_clear"]),type:e.inputType,maxlength:e.maxLength,placeholder:e.placeholder,value:e.modelValue,disabled:e.disabled,readonly:e.readonly,onClick:o[1]||(o[1]=(...s)=>e.clickInput&&e.clickInput(...s)),onInput:o[2]||(o[2]=(...s)=>e.valueChange&&e.valueChange(...s)),onFocus:o[3]||(o[3]=(...s)=>e.valueFocus&&e.valueFocus(...s)),onBlur:o[4]||(o[4]=(...s)=>e.valueBlur&&e.valueBlur(...s)),style:t.normalizeStyle(e.styleSearchbar)},null,46,dh)],32)],2),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner-icon",e.$slots.rightin&&"fox-searchbar__input-inner-icon-absolute"])},[e.clearable?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,onClick:o[6]||(o[6]=(...s)=>e.handleClear&&e.handleClear(...s)),class:"fox-searchbar__search-icon fox-searchbar__input-clear"},[e.$slots["clear-icon"]?t.renderSlot(e.$slots,"clear-icon",{key:0}):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.clearIcon),{key:1}))],512)),[[t.vShow,String(e.modelValue).length>0]]):t.createCommentVNode("",!0),e.$slots.rightin?(t.openBlock(),t.createElementBlock("view",fh,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],2)],6),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",mh,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const er=K(ih,[["render",ph]]),{componentName:hh,create:gh}=O("input-number"),yh=gh({components:{Minus:Q.Minus,Plus:Q.Plus},props:{modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:o}){const l=t.computed(()=>{const g=hh;return{[g]:!0,[`${g}--disabled`]:e.disabled}}),n=g=>Number(g).toFixed(Number(e.decimalPlaces)),a=g=>{const b=g.target;o("update:modelValue",b.valueAsNumber,g)},r=(g,b)=>{let y=n(g);o("update:modelValue",y,b),o("change",y,b)},s=(g=Number(e.modelValue))=>g<Number(e.max)&&!e.disabled,i=(g=Number(e.modelValue))=>g>Number(e.min)&&!e.disabled,c=g=>{if(o("reduce",g),i()){let b=Number(e.modelValue)-Number(e.step);r(b,g)}else o("overlimit",g,"reduce")},d=g=>{if(o("add",g),s()){let b=Number(e.modelValue)+Number(e.step);r(b,g)}else o("overlimit",g,"add")},m=g=>{e.disabled||e.readonly||o("focus",g)},f=g=>{if(e.disabled||e.readonly)return;let y=g.target.valueAsNumber;y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),r(y,g),o("blur",g)},h=g=>{let b=Number(g);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 g=h(e.modelValue);g!==Number(e.modelValue)&&r(g,{})}),{classes:l,change:a,blur:f,focus:m,add:d,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:se}}}),vh=["min","max","disabled","readonly","value"];function kh(e,o,l,n,a,r){const s=t.resolveComponent("Minus"),i=t.resolveComponent("Plus");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:o[0]||(o[0]=(...c)=>e.reduce&&e.reduce(...c))},[t.renderSlot(e.$slots,"left-icon",{},()=>[t.createVNode(s,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxDesc(e.inputWidth),height:e.toPxDesc(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:o[1]||(o[1]=(...c)=>e.change&&e.change(...c)),onBlur:o[2]||(o[2]=(...c)=>e.blur&&e.blur(...c)),onFocus:o[3]||(o[3]=(...c)=>e.focus&&e.focus(...c))},null,44,vh),t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:o[4]||(o[4]=(...c)=>e.add&&e.add(...c))},[t.renderSlot(e.$slots,"right-icon",{},()=>[t.createVNode(i,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2)],2)}const dt=K(yh,[["render",kh]]),{create:bh,componentName:Sh}=O("rate"),Ch=bh({props:{count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object,default:()=>Q.StarFillN},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}},components:{StarFillN:Q.StarFillN},emits:["update:modelValue","change"],setup(e,{emit:o,slots:l}){const n=t.ref([]),a=t.computed(()=>({[Sh]:!0})),r=h=>{o("update:modelValue",h),o("change",h)},s=(h,g)=>{if(e.disabled||e.readonly)return;let b=0;g===1&&e.modelValue===g||(b=g,e.allowHalf&&h==2&&(b-=.5)),r(b)},i=(h,g,b)=>{let y=0;for(let v=g.value.length-1;v>=0;v--){const u=g.value[v];if(h>u.offsetLeft){b?y=v+(h>u.offsetLeft+u.clientWidth/2?1:.5):y=v+1;break}}return y},c=Fe(),d={onTouchStart(h){!e.touchable||e.readonly||c.start(h)},onTouchMove(h){e.touchable&&(c.move(h),c.isHorizontal()&&n.value&&(h.preventDefault(),r(i(c.moveX.value,n,e.allowHalf))))}},m=Math.random().toString(36).slice(-8);return{classes:a,...d,onClick:s,toPxDesc:se,renderIcon:(h,g)=>t.h(h,g),rateRefs:n,refRandomId:m,slots:l}}}),wh=["id"],Nh={class:"fox-rate-item__icon--full"},Bh={key:0,class:"fox-rate-item__icon--half"},Vh={key:1,class:"fox-rate-item__icon--half"};function Ah(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:s,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+s,style:t.normalizeStyle(s<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",Nh,[(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",Bh,[(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",Vh,[(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,wh))),128))],34)}const lo=K(Ch,[["render",Ah]]),{create:Eh,scope:Th}=O("short-password"),$h=Eh({components:{[ie.name]:ie,Tips:Q.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:o}){const{toLocaleRefs:l}=re.useFoxI18n(Th),n=l(e,["title","desc","tips"]),a=t.ref(e.modelValue),r=t.computed(()=>d(Number(e.length))),s=t.ref(e.visible),i=f=>{f.stopPropagation(),o("focus")};t.watch(()=>e.visible,f=>{s.value=f}),t.watch(()=>e.modelValue,f=>{a.value=f,String(f).length===r.value&&o("complete",f)});const c=()=>{o("update:visible",!1),o("close")},d=f=>Math.min(Math.max(4,f),6);return{comLen:r,realInput:a,onTouchStart:i,range:d,close:c,onTips:()=>{o("tips")},show:s,...n}}}),Dh={class:"fox-short-password-title"},Ih={class:"fox-short-password-subtitle"},qh={class:"fox-short-password-wrapper"},Mh={key:0,class:"fox-short-password__item-icon"},zh={class:"fox-short-password__message"},Lh={class:"fox-short-password--error"},xh={key:0,class:"fox-short-password--forget"};function Ph(e,o,l,n,a,r){const s=t.resolveComponent("Tips"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(i,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":o[2]||(o[2]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("view",Dh,t.toDisplayString(e.title),1),t.createElementVNode("view",Ih,t.toDisplayString(e.desc),1),t.createElementVNode("div",qh,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:o[0]||(o[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?(t.openBlock(),t.createElementBlock("view",Mh)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",zh,[t.createElementVNode("view",Lh,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",xh,[t.createVNode(s,{class:"icon",width:"11px",height:"11px"}),t.createElementVNode("view",{onClick:o[1]||(o[1]=(...c)=>e.onTips&&e.onTips(...c))},t.toDisplayString(e.tips),1)])):t.createCommentVNode("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}const tr=K($h,[["render",Ph]]);class Rh{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Oh=class{options;constructor(o){this.options=o}upload(){const o=this.options,l=new XMLHttpRequest;if(l.timeout=o.timeout,l.upload){l.upload.addEventListener("progress",n=>{o.onProgress?.(n,o)},!1),l.onreadystatechange=()=>{l.readyState===4&&(l.status==o.xhrState?o.onSuccess?.(l.responseText,o):o.onFailure?.(l.responseText,o))},l.withCredentials=o.withCredentials,l.open(o.method,o.url,!0);for(const[n,a]of Object.entries(o.headers))l.setRequestHeader(n,a);o.onStart?.(o),o.beforeXhrUpload?o.beforeXhrUpload(l,o):l.send(o.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}};class Fh{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const or=(e,{args:o=[],done:l,canceled:n})=>{if(e){const a=e.apply(null,o);cn(a)?a.then(r=>{r?l(r):n&&n()}).catch(()=>{}):a?l():n&&n()}else l()},{create:Uh}=O("progress"),Kh=Uh({components:{Checked:Q.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const o=!!t.useSlots().default,l=t.ref(e.strokeWidth+"px"),n=t.ref(),a=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),s=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),i=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:l,percentage:r,bgStyle:s,textStyle:i,progressOuter:n,insideText:a,slotDefault:o}}}),Hh={class:"fox-progress"},jh={key:0,class:"fox-progress-text"};function Wh(e,o,l,n,a,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",Hh,[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",jh,[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 ao=K(Kh,[["render",Wh]]),{componentName:Yh,create:Xh,scope:Qh}=O("uploader"),Gh=Xh({components:{[ao.name]:ao,Photograph:Q.Photograph,Failure:Q.Failure,Loading:Q.Loading,Del:Q.Del,Link:Q.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,o)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:o}){const{t:l}=re.useFoxI18n(Qh),n=t.reactive(e.fileList);let a=[];const r=t.computed(()=>({[Yh]:!0})),s=()=>{let p={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(p.capture="camera"),t.h("input",p)},i=p=>{p.value=""},c=p=>{o("file-item-click",{fileItem:p})},d=(p,k)=>{const S=new Rh;S.url=e.url,S.formData=p.formData,S.timeout=e.timeout*1,S.method=e.method,S.xhrState=e.xhrState,S.headers=e.headers,S.withCredentials=e.withCredentials,S.beforeXhrUpload=e.beforeXhrUpload;try{S.sourceFile=p.formData.get(e.name)}catch{}S.onStart=V=>{p.status="ready",p.message=l("readyUpload"),m(k),o("start",V)},S.onProgress=(V,I)=>{p.status="uploading",p.message=l("uploading"),p.percentage=(V.loaded/V.total*100).toFixed(0),o("progress",{event:V,option:I,percentage:p.percentage})},S.onSuccess=(V,I)=>{p.status="success",p.message=l("success"),o("success",{responseText:V,option:I,fileItem:p}),o("update:fileList",n)},S.onFailure=(V,I)=>{p.status="error",p.message=l("error"),o("failure",{responseText:V,option:I,fileItem:p})};let A=new Oh(S);e.autoUpload?A.upload():a.push(new Promise((V,I)=>{V(A)}))},m=(p=-1)=>{p>-1?a.splice(p,1):(a=[],n.splice(0,n.length))},f=()=>{Promise.all(a).then(p=>{p.forEach(k=>k.upload())})},h=p=>{p.forEach((k,S)=>{const A=new FormData;for(const[I,B]of Object.entries(e.data))A.append(I,B);A.append(e.name,k);const V=t.reactive(new Fh);if(V.name=k.name,V.status="ready",V.type=k.type,V.formData=A,V.message=l("waitingUpload"),d(V,S),e.isPreview&&k.type.includes("image")){const I=new FileReader;I.onload=B=>{V.url=B.target.result,n.push(V)},I.readAsDataURL(k)}else n.push(V)})},g=p=>{const k=e.maximum*1,S=e.maximize*1,A=new Array;p=p.filter(I=>I.size>S?(A.push(I),!1):!0),A.length&&o("oversize",A);let V=p.length+n.length;return V>k&&p.splice(p.length-(V-k)),p},b=(p,k)=>{n.splice(k,1),o("delete",{file:p,fileList:n,index:k})},y=(p,k)=>{m(k),or(e.beforeDelete,{args:[p,n],done:()=>b(p,k)})},v=p=>{if(e.disabled)return;const k=p.target;let{files:S}=k;e.beforeUpload?e.beforeUpload(S).then(A=>u(A)):u(S),o("change",{fileList:n,event:p}),e.clearInput&&i(k)},u=p=>{const k=g(new Array().slice.call(p));h(k)};return{onChange:v,onDelete:y,fileList:n,classes:r,fileItemClick:c,clearUploadQueue:m,submit:f,renderInput:s}}}),Zh={key:0,class:"fox-uploader__slot"},Jh={key:0,class:"fox-uploader__preview-img"},_h={key:0,class:"fox-uploader__preview__progress"},eg={class:"fox-uploader__preview__progress__msg"},tg=["onClick"],og=["onClick","src"],ng={key:3,class:"fox-uploader__preview-img__file"},lg=["onClick"],ag={class:"file__name_tips"},rg={class:"tips"},sg={key:1,class:"fox-uploader__preview-list"},ig=["onClick"],cg={class:"file__name_tips"};function ug(e,o,l,n,a,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),d=t.resolveComponent("Del"),m=t.resolveComponent("fox-progress"),f=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",Zh,[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,g)=>(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",Jh,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",_h,[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",eg,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:b=>e.onDelete(h,g)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,tg)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:b=>e.fileItemClick(h),src:h.url},null,8,og)):(t.openBlock(),t.createElementBlock("view",ng,[t.createElementVNode("view",{onClick:b=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",ag,t.toDisplayString(h.name),1)],8,lg)])),t.createElementVNode("view",rg,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",sg,[t.createElementVNode("view",{onClick:b=>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",cg,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:b=>e.onDelete(h,g)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,ig),h.status=="uploading"?(t.openBlock(),t.createBlock(m,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(f,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const nr=K(Gh,[["render",ug]]),dg="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCIgeG1wTU06RG9j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gznz/y91noevSOECBbhxtwVt7dFpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:mg,scope:pg}=O("number-keyboard"),hg=mg({components:{[ie.name]:ie},props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:o}){const{toLocaleRefs:l}=re.useFoxI18n(pg),n=l(e,["confirmText"]),a=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:u}=e;let p={id:"lock",type:"lock"},k=Array.isArray(u)?u:[u];return k.length===1&&(p={id:k[0],type:"custom"}),[...c(),p,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const u=[];for(let p=1;p<=9;p++)u.push({id:p,type:"number"});return e.randomKeys?u.sort(()=>Math.random()>.5?1:-1):u}function d(){const u=c(),{customKey:p}=e;let k=Array.isArray(p)?p:[p];return k.length>2&&(k=[k[0],k[1]]),k.length==2&&e.title&&e.type!="rightColumn"&&(k=[k[0]]),k.length===1?e.title&&e.type!="rightColumn"?u.push({id:k[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):u.push({id:0,type:"number"},{id:k[0],type:"custom"}):k.length===2&&u.push({id:k[0],type:"custom"},{id:0,type:"number"},{id:k[1],type:"custom"}),u}const m=t.computed(()=>e.type=="rightColumn"||e.title!=""?d():i()),f=()=>{e.visible&&o("blur")},h=u=>{const p=s.value;p&&!p.contains(u.target)&&f()};t.watch(()=>e.visible,u=>{r.value=u,u?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function g(u,p){p.stopPropagation(),a.value=u.id,(u.type=="number"||u.type=="custom")&&(o("input",u.id),e.modelValue.length<Number(e.maxlength)&&o("update:modelValue",e.modelValue+u.id)),u.type=="lock"&&v(),u.type=="delete"&&(o("delete"),o("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function b(u){u.stopPropagation()}function y(u){u.preventDefault(),a.value=void 0}function v(){o("update:visible",!1),o("close")}return{...n,delImg:dg,lockImg:fg,clickKeyIndex:a,defaultKey:i,closeBoard:v,onTouchEnd:y,onTouchMove:b,onTouchstart:g,keysList:m,genCustomKeys:d,getBasicKeys:c,root:s,show:r}}}),gg={ref:"root"},yg={class:"fox-number-keyboard"},vg={key:0,class:"fox-number-keyboard__header"},kg={class:"fox-number-keyboard__title"},bg={class:"fox-number-keyboard__body"},Sg={class:"fox-number-keyboard__keys"},Cg=["onTouchstart"],wg=["src"],Ng=["src"],Bg={key:0,class:"fox-number-keyboard__sidebar"},Vg={class:"fox-key__wrapper"},Ag=["src"];function Eg(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",gg,[t.createVNode(s,{visible:e.show,"onUpdate:visible":o[7]||(o[7]=i=>e.show=i),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",yg,[e.title?(t.openBlock(),t.createElementBlock("div",vg,[t.createElementVNode("h3",kg,t.toDisplayString(e.title),1),e.type=="default"?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-number-keyboard__close",onClick:o[0]||(o[0]=i=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",bg,[t.createElementVNode("div",Sg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,i=>(t.openBlock(),t.createElementBlock("div",{key:"key"+i.id,class:t.normalizeClass(["fox-key__wrapper",{"fox-key__wrapper--wider":i.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{"fox-key--active":i.id==e.clickKeyIndex},{"fox-key--lock":i.type=="lock"},{"fox-key--delete":i.type=="delete"}]),onTouchstart:c=>e.onTouchstart(i,c),onTouchmove:o[1]||(o[1]=c=>e.onTouchMove(c)),onTouchend:o[2]||(o[2]=c=>e.onTouchEnd(c))},[i.type=="number"||i.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.id),1)],64)):t.createCommentVNode("",!0),i.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,wg)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,Ng)):t.createCommentVNode("",!0)],42,Cg)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",Bg,[t.createElementVNode("div",Vg,[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:o[3]||(o[3]=i=>e.onTouchstart({id:"delete",type:"delete"},i)),onTouchmove:o[4]||(o[4]=i=>e.onTouchMove(i)),onTouchend:o[5]||(o[5]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("img",{src:e.delImg},null,8,Ag)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:o[6]||(o[6]=i=>e.closeBoard())},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},t.toDisplayString(e.confirmText),3)])])):t.createCommentVNode("",!0)])])]),_:1},8,["visible","popClass"])],512)}const lr=K(hg,[["render",Eg]]),{componentName:Tg,create:$g}=O("swipe"),Dg=$g({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:o}){const l=t.computed(()=>({[Tg]:!0})),n=p=>p.value?.clientWidth||0,a=t.ref(),r=t.computed(()=>n(a)),s=t.ref(),i=t.computed(()=>n(s));let c=!1,d="",m="";const f=t.reactive({offset:0,moving:!1}),h=(p="")=>{c=!0,p&&(f.offset=p==="left"?-i.value:r.value),o("open",{name:e.name,position:d||p})},g=()=>{f.offset=0,c=!1,o("close",{name:e.name,position:d})},b=t.computed(()=>({transform:`translate3d(${f.offset}px, 0, 0)`})),y=p=>{d=p>0?"right":"left";let k=p;switch(d){case"left":c&&m===d?k=-i.value:k=Math.abs(p)>i.value?-i.value:p;break;case"right":c&&m===d?k=r.value:k=Math.abs(p)>r.value?r.value:p;break}f.offset=k},v=Fe();return{classes:l,touchStyle:b,...{onTouchStart(p){e.disabled||v.start(p)},onTouchMove(p){e.disabled||(v.move(p),v.isHorizontal()&&(f.moving=!0,y(v.deltaX.value),e.touchMovePreventDefault&&p.preventDefault(),e.touchMoveStopPropagation&&p.stopPropagation()))},onTouchEnd(){if(f.moving)switch(f.moving=!1,m=d,d){case"left":Math.abs(f.offset)<=i.value/2?g():(f.offset=-i.value,h());break;case"right":Math.abs(f.offset)<=r.value/2?g():(f.offset=r.value,h());break}}},leftRef:a,rightRef:s,open:h,close:g}}}),Ig={class:"fox-swipe__left",ref:"leftRef"},qg={class:"fox-swipe__content"},Mg={class:"fox-swipe__right",ref:"rightRef"};function zg(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",Ig,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",qg,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Mg,[t.renderSlot(e.$slots,"right")],512)],38)}const ro=K(Dg,[["render",zg]]),{componentName:Lg,create:xg}=O("action-sheet"),Pg=xg({components:{[ie.name]:ie,Loading:Q.Loading},props:{...ot,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:o}){const l=!!t.useSlots().default,n=t.computed(()=>({[Lg]:!0}));return{slotDefault:l,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{o("cancel"),o("update:visible",!1)},chooseItem:(c,d)=>{!c.disable&&!c.loading&&(o("choose",c,d),o("update:visible",!1))},close:c=>{o("close",c),o("update:visible",!1)},classes:n}}}),Rg={key:0,class:"fox-action-sheet__title"},Og={key:1},Fg={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},Ug={key:1,class:"fox-action-sheet__menu"},Kg=["onClick"],Hg={key:1},jg={class:"fox-action-sheet__subdesc"};function Wg(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.title?(t.openBlock(),t.createElementBlock("view",Rg,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Og,[e.description?(t.openBlock(),t.createElementBlock("view",Fg,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",Ug,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,d)=>(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:d,onClick:m=>e.chooseItem(c,d)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",Hg,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",jg,t.toDisplayString(c[e.optionSubTag]),1)],14,Kg))),128))])):t.createCommentVNode("",!0),e.cancelTxt?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-action-sheet__cancel",onClick:o[0]||(o[0]=(...c)=>e.cancelActionSheet&&e.cancelActionSheet(...c))},t.toDisplayString(e.cancelTxt),1)):t.createCommentVNode("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}const ar=K(Pg,[["render",Wg]]),{componentName:Yg,create:Xg}=O("backtop"),rr=Xg({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:o,slots:l}){const n=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),a=t.computed(()=>({[Yg]:!0,show:n.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){n.scrollEl instanceof Window?n.scrollTop=n.scrollEl.pageYOffset:n.scrollTop=n.scrollEl.scrollTop,n.backTop=n.scrollTop>=e.distance}function i(b=0){n.scrollEl instanceof Window?window.scrollTo(0,b):n.scrollEl.scrollTop=b}function c(){let b=He(function y(){var v=e.duration-Math.max(0,n.startTime-+new Date+e.duration),u=v*-n.scrollTop/e.duration+n.scrollTop;i(u),b=He(y),(v==e.duration||u==0)&&fl(b)})}function d(){n.scrollEl.addEventListener("scroll",s,!1),n.scrollEl.addEventListener("resize",s,!1)}function m(){n.scrollEl.removeEventListener("scroll",s,!1),n.scrollEl.removeEventListener("resize",s,!1)}function f(b){n.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),o("click",b)}function h(){g.value?n.scrollEl=g.value.el:e.elId&&document.getElementById(e.elId)&&(n.scrollEl=document.getElementById(e.elId)),d()}t.onMounted(()=>{e.distance==0&&(n.backTop=!0),h()}),t.onUnmounted(()=>{m()}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1,h())}),t.onDeactivated(()=>{n.keepAlive=!0,m()});const g=t.computed(()=>{if(typeof l.content=="function"){const b=l.content();return Array.isArray(b)?b[0]:b}return null});return()=>{const b=[];g.value&&b.push(g.value);const y=[];if(typeof l.default=="function")y.push(l.default());else{const u=t.h(Q.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});y.push(u)}const v=t.h("div",{class:a.value,style:r.value,onClick:f},y);return b.push(v),b}}}),{componentName:Qg,create:Gg}=O("drag"),Zg=Gg({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:o}){const l=t.ref(),n=t.reactive({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),a=t.computed(()=>({[Qg]:!0}));function r(){const f=document.documentElement;n.elWidth=l.value.offsetWidth,n.elHeight=l.value.offsetHeight,n.screenWidth=f.clientWidth,n.screenHeight=f.clientHeight}function s(f){n.boundary.left?+f.style.left.split("px")[0]>n.boundary.left?(f.style.left=+f.style.left.split("px")[0]-10+"px",We(()=>{s(f)})):f.style.left=`${n.boundary.left}px`:+f.style.left.split("px")[0]>10?(f.style.left=+f.style.left.split("px")[0]-10+"px",We(()=>{s(f)})):f.style.left="0px"}function i(f,h){h-parseInt(f.style.left.split("px")[0])>10?(f.style.left=parseInt(f.style.left.split("px")[0])+10+"px",We(()=>{i(f,h)})):f.style.left=h+"px"}function c(f){f.preventDefault();const h=f.currentTarget;if(f.targetTouches.length===1){const g=f.targetTouches[0];n.nx=g.clientX-n.position.x,n.ny=g.clientY-n.position.y,n.xPum=n.startLeft+n.nx,n.yPum=n.startTop+n.ny;const b=n.screenWidth-n.elWidth-n.boundary.right;Math.abs(n.xPum)>b?n.xPum=b:n.xPum<=n.boundary.left&&(n.xPum=n.boundary.left),n.yPum<n.boundary.top?n.yPum=n.boundary.top:n.yPum>n.screenHeight-n.elHeight-n.boundary.bottom&&(n.yPum=n.screenHeight-n.elHeight-n.boundary.bottom),e.direction!="y"&&(h.style.left=n.xPum+"px"),e.direction!="x"&&(h.style.top=n.yPum+"px")}}function d(f){const h=f.currentTarget;let b=f.changedTouches[0].clientX;const y=n.screenWidth-n.elWidth-n.boundary.right;b>y?b=y:b<n.boundary.left?b=n.boundary.left:b=b<n.screenWidth/2?n.boundary.left:y,e.direction!="y"&&e.attract&&(b<n.screenWidth/2?We(()=>{s(h)}):We(()=>{i(h,y)})),e.direction!="x"&&(h.style.top=n.yPum+"px")}function m(f){const h=f.currentTarget,g=f.touches[0],b=f.targetTouches[0];n.startTop=h.offsetTop,n.startLeft=h.offsetLeft,n.position.x=g.clientX,n.position.y=g.clientY,n.nx=b.clientX-n.position.x,n.ny=b.clientY-n.position.y,n.xPum=n.startLeft+n.nx,n.yPum=n.startTop+n.ny}return t.onMounted(()=>{r(),n.boundary=e.boundary}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1)}),t.onDeactivated(()=>{n.keepAlive=!0;const f=l;f.value.removeEventListener("touchstart",m),f.value.removeEventListener("touchmove",c),f.value.removeEventListener("touchend",d)}),{classes:a,myDrag:l,touchStart:m,touchMove:c,touchEnd:d}}});function Jg(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:o[0]||(o[0]=s=>e.touchStart(s)),onTouchmove:o[1]||(o[1]=s=>e.touchMove(s)),onTouchend:o[2]||(o[2]=s=>e.touchEnd(s))},[t.renderSlot(e.$slots,"default")],34)}const sr=K(Zg,[["render",Jg]]),{componentName:_g,create:ey,scope:ty}=O("dialog"),oy=ey({inheritAttrs:!1,components:{[ie.name]:ie,[ze.name]:ze},props:{...ot,closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String,default:""},content:{type:[String,Object],default:""},noFooter:{type:Boolean,default:!1},noConfirmBtn:{type:Boolean,default:!1},noCancelBtn:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},closeOnPopstate:{type:Boolean,default:!1},footerDirection:{type:String,default:"horizontal"},customClass:{type:String,default:""},popStyle:{type:Object},beforeClose:{type:Function}},emits:["update","update:visible","confirm","cancel","opened","closed"],setup(e,{emit:o}){const{toLocaleRefs:l}=re.useFoxI18n(ty),n=l(e,["confirmText","cancelText"]),a=t.ref(e.visible);t.onMounted(()=>{e.closeOnPopstate&&tt&&window.addEventListener("popstate",function(){i("page")})}),t.watch(()=>e.visible,m=>{a.value=m,m&&o("opened")});const r=t.computed(()=>({[_g]:!0,[e.customClass]:!0})),s=m=>{o("update",m),o("update:visible",m)},i=m=>{if(e.beforeClose){const f=e.beforeClose(m);cn(f)&&f.then(h=>{h&&(s(!1),o("closed"))})}else s(!1),o("closed")};return{...n,closed:i,classes:r,onCancel:()=>{o("cancel"),e.cancelAutoClose&&i("cancel")},onConfirm:()=>{o("confirm"),i("confirm")},showPopup:a}}}),ny={key:0,class:"fox-dialog__header"},ly=["innerHTML"];function ay(e,o,l,n,a,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{teleport:e.teleport,visible:e.showPopup,"onUpdate:visible":o[0]||(o[0]=c=>e.showPopup=c),"close-on-click-overlay":e.closeOnClickOverlay,"lock-scroll":e.lockScroll,"pop-class":e.popClass,style:t.normalizeStyle(e.popStyle),"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,round:"",onClickOverlay:e.closed,onClickCloseIcon:e.closed},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("view",ny,[e.$slots.header?t.renderSlot(e.$slots,"header",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.title),1)],64))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-dialog__content",style:t.normalizeStyle({textAlign:e.textAlign})},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):typeof e.content=="string"?(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.content},null,8,ly)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.content),{key:2}))],4),e.noFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-dialog__footer",{[e.footerDirection]:e.footerDirection}])},[e.$slots.footer?t.renderSlot(e.$slots,"footer",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.noCancelBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,size:"small",plain:"",type:"primary",class:"fox-dialog__footer-cancel",onClick:e.onCancel},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.cancelText),1)]),_:1},8,["onClick"])),e.noConfirmBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:1,size:"small",type:"primary",class:"fox-dialog__footer-ok",onClick:e.onConfirm},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1},8,["onClick"]))],64))],2))],2)]),_:3},8,["teleport","visible","close-on-click-overlay","lock-scroll","pop-class","style","overlay-class","overlay-style","onClickOverlay","onClickCloseIcon"])}const ir=K(oy,[["render",ay]]);class ry{title="";content="";cancelText="";confirmText="";textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=o=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1}class sy{options=new ry;instance;constructor(o){let l=Object.assign(this.options,o),n=document.body,a=l.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):n=l.teleport);const r=document.createElement("view");r.id="dialog-"+l.id;const s={setup(){return l.onUpdate=i=>{i==!1&&n.removeChild(r)},l?.onOpened&&l?.onOpened(),l.teleport=`#${r.id}`,()=>t.h(ir,l)}};this.instance=t.createVNode(s),n.appendChild(r),t.render(this.instance,r)}close=()=>{};setDefaultOptions=o=>{};resetDefaultOptions=()=>{}}const so=function(e){return new sy(e)};so.install=e=>{e.use(ir),e.config.globalProperties.$dialog=so};const{componentName:iy,create:cy,scope:uy}=O("infinite-loading"),dy=cy({props:{modelValue:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!0},threshold:{type:Number,default:200},loadText:{type:String},loadMoreText:{type:String},useCapture:{type:Boolean,default:!1}},emits:["scroll-change","load-more","update:modelValue"],components:{Loading:Q.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=re.useFoxI18n(uy),a=n(e,["pullText","loadText","loadMoreText"]),r=t.ref(),s=fa(r),i=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[iy]:!0})),d=y=>y?y.offsetTop+d(y.offsetParent):0,m=()=>{let y=0,v=0,u="down";if(s.value==window){const p=un();r.value&&(y=d(r.value)+r.value.offsetHeight-p-window.innerHeight),v=p}else{const{scrollHeight:p,clientHeight:k,scrollTop:S}=s.value;y=p-k-S,v=S}return i.beforeScrollTop>v?u="up":u="down",i.beforeScrollTop=v,o("scroll-change",v),y<=e.threshold&&u=="down"},f=()=>{He(()=>{if(!m()||!e.hasMore||i.isInfiniting)return!1;i.isInfiniting=!0,o("update:modelValue",!0),t.nextTick(()=>o("load-more"))})},h=()=>{s.value&&s.value.addEventListener("scroll",f,e.useCapture)},g=()=>{s.value&&s.value.removeEventListener("scroll",f,e.useCapture)};t.onMounted(()=>{h()}),t.onUnmounted(()=>{g()});const b=t.ref(!1);return t.onActivated(()=>{b.value&&(b.value=!1,h())}),t.onDeactivated(()=>{b.value=!0,g()}),t.watch(()=>e.modelValue,y=>{y||(i.isInfiniting=!1)}),{classes:c,scroller:r,...t.toRefs(i),slots:l,...a}}}),fy={class:"fox-infinite__container"},my={class:"fox-infinite__bottom"},py={key:0,class:"fox-infinite__bottom-box"},hy={class:"fox-infinite__bottom-box__text"},gy={class:"fox-infinite__bottom-tips"};function yy(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"scroller"},[t.createElementVNode("view",fy,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",my,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",py,[t.renderSlot(e.$slots,"loading",{},()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[t.createVNode(s,{class:"fox-icon-loading fox-infinite__bottom-box__img"})]),t.createElementVNode("view",hy,t.toDisplayString(e.loadText),1)])])):e.hasMore?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"finished",{key:1},()=>[t.createElementVNode("view",gy,t.toDisplayString(e.loadMoreText),1)])])],2)}const cr=K(dy,[["render",yy]]),{componentName:vy,create:ky,scope:by}=O("pull-refresh"),Sy=ky({props:{modelValue:{type:Boolean,default:!1},pullingText:{type:String},loosingText:{type:String},loadingText:{type:String},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},emits:["change","refresh","update:modelValue"],components:{Loading:Q.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=re.useFoxI18n(by),a=n(e,["pullingText","loosingText","loadingText"]),r=Fe(),s=t.ref(),i=fa(s),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal"}),d=t.computed(()=>({[vy]:!0})),m=t.computed(()=>{switch(c.status){case"pulling":return l.pulling?"":a.pullingText.value;case"loosing":return l.loosing?"":a.loosingText.value;case"loading":return l.loading?"":a.loadingText.value}}),f=t.computed(()=>({transitionDuration:`${e.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=t.computed(()=>{const S={};return e.headHeight!=50&&(S.height=se(e.headHeight)),S}),g=S=>{const A=+(e.pullDistance||e.headHeight);let V=S;return S>A&&(S<A*2?V=(S+A)/2:V=A+S/4),Math.round(V)},b=(S,A)=>{const V=+(e.pullDistance||e.headHeight);c.distance=S,A?c.status="loading":S===0?c.status="normal":S<V?c.status="pulling":c.status="loosing",o("change",{status:c.status,distance:S})},y=()=>c.status!=="loading"&&c.status!=="complete",v=()=>i.value==window?un()==0:i.value&&i.value.scrollTop==0,u=S=>{y()&&(v()?(r.start(S),c.isPullRefresh=!0):(c.distance=0,c.isPullRefresh=!1))},p=S=>{if(y()){r.move(S);const{deltaY:A}=r;r.isVertical()&&A.value>0&&c.isPullRefresh&&(S.preventDefault(),b(g(A.value)))}},k=()=>{c.isPullRefresh&&y()&&r.deltaY.value&&(c.status==="loosing"?(b(+e.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):b(0)),setTimeout(()=>{r.reset()},0)};return t.watch(()=>e.modelValue,S=>{S?b(+e.headHeight,!0):b(0)}),{classes:d,scroller:s,...t.toRefs(c),touchStart:u,touchMove:p,touchEnd:k,getStyle:f,slots:l,getHeightStyle:h,getPullStatus:m}}}),Cy={class:"fox-pull-refresh-container-topbox-text"};function wy(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),ref:"scroller",onTouchstart:o[0]||(o[0]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:o[1]||(o[1]=(...i)=>e.touchMove&&e.touchMove(...i)),onTouchend:o[2]||(o[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[t.createElementVNode("div",{class:"fox-pull-refresh-container",style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("div",{class:"fox-pull-refresh-container-topbox",style:t.normalizeStyle(e.getHeightStyle)},[e.status=="loading"&&!e.slots.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading fox-pull-refresh-container-topbox-icon"})):t.createCommentVNode("",!0),t.createElementVNode("div",Cy,t.toDisplayString(e.getPullStatus),1),e.status=="pulling"?t.renderSlot(e.$slots,"pulling",{key:1}):t.createCommentVNode("",!0),e.status=="loosing"?t.renderSlot(e.$slots,"loosing",{key:2}):t.createCommentVNode("",!0),e.status=="loading"?t.renderSlot(e.$slots,"loading",{key:3}):t.createCommentVNode("",!0)],4),t.renderSlot(e.$slots,"default")],4)],34)}const ur=K(Sy,[["render",wy]]),{create:Ny}=O("notify"),By=Ny({components:{[ie.name]:ie},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:o}){const l=()=>{e.onClick&&e.onClick()};let n=null;const a=()=>{n&&clearTimeout(n),n=null},r=()=>{o("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,d=>{s.value=e.visible;const m=e.duration;d&&m&&(n=setTimeout(()=>{r()},m))},{immediate:!0});return{onAfterLeave:()=>{a(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:l,isShowPopup:s}}});function Vy(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.isShowPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.isShowPopup=i),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:o[0]||(o[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}const Bn=K(By,[["render",Vy]]),nn={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let rt=[],bt=[];const dr=e=>{if(e){const o=document.getElementById(e);bt=bt.filter(l=>l.id!==e),rt=rt.filter(l=>l!==e),o&&document.body.removeChild(o)}else rt.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),bt=[],rt=[]},Ay=e=>{const o=document.getElementById(e.id);if(o){const l=bt.find(a=>a.id===e.id);l?e={...nn,...l,...e}:e={...nn,...e};const n=t.createVNode(Bn,e);return t.render(n,o),n.component.data}},ht=e=>{e.unmount=dr;let o;if(e.id){if(o=e.id,rt.find(r=>r===e.id))return Ay(e)}else o=new Date().getTime()+"";e={...nn,...e},e.id=o,rt.push(e.id),bt.push(e);const l=document.createElement("view");l.id="notify-"+e.id;const n={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(l)},e.duration)}),()=>t.h(Bn,e)}},a=t.createVNode(n);document.body.appendChild(l),t.render(a,l)},gt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},fr={text(e,o={}){return gt(e),ht({...o,msg:e})},primary(e,o={}){return gt(e),ht({...o,msg:e,type:"primary"})},success(e,o={}){return gt(e),ht({...o,msg:e,type:"success"})},danger(e,o={}){return gt(e),ht({...o,msg:e,type:"danger"})},warn(e,o={}){return gt(e),ht({...o,msg:e,type:"warning"})},hide(){dr()},install(e){e.use(Bn)}},{create:Ey}=O("toast"),Ty=Ey({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:o}){let l=null;const n=t.reactive({mounted:!1});t.onMounted(()=>{n.mounted=!0});const a=()=>{l&&(clearTimeout(l),l=null)},r=()=>{n.mounted=!1},s=()=>{a(),e.duration&&(l=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),o("close"))};e.duration&&s(),t.watch(()=>e.duration,g=>{g&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const g=le(e.iconSize);return t.h(e.icon,{width:g,height:g,color:e.iconColor})},m=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),f=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:r,clickCover:i,renderIcon:d,hasIcon:c,toastBodyClass:m,toastIconWrapperClass:f,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),$y={key:1,class:"fox-toast-title"},Dy=["innerHTML"];function Iy(e,o,l,n,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:o[0]||(o[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",$y,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Dy)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Vn=K(Ty,[["render",Iy]]),ln={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1};let st=[],St=[];const mr=e=>{if(e){const o=document.getElementById(e);St=St.filter(l=>l.id!==e),st=st.filter(l=>l!==e),o&&document.body.removeChild(o)}else st.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),St=[],st=[]},qy=e=>{const o=document.getElementById(e.id);if(o){const l=St.find(a=>a.id===e.id);l?e={...ln,...l,...e}:e={...ln,...e};const n=t.createVNode(Vn,e);return t.render(n,o),qt}},yt=e=>{e.unmount=mr;let o;if(e.id){if(o=e.id,st.find(a=>a===e.id))return qy(e)}else o=new Date().getTime()+"";e={...ln,...e},e.id=o,st.push(e.id),St.push(e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(Vn,e);return t.render(n,l),document.body.appendChild(l),qt},Rt=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},qt={text(e,o={}){return Rt(e),yt({...o,type:"text",msg:e})},success(e,o={}){return Rt(e),yt({icon:Q.Success,...o,msg:e,type:"success"})},fail(e,o={}){return Rt(e),yt({icon:Q.Failure,...o,msg:e,type:"fail"})},warn(e,o={}){return Rt(e),yt({icon:Q.Tips,...o,msg:e,type:"warn"})},loading(e,o={}){return yt({icon:Q.Loading,...o,msg:e,type:"loading"})},hide(e){mr(e)},install(e){e.use(Vn),e.config.globalProperties.$toast=qt}},{componentName:Aw,create:My}=O("audio"),zy=My({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:Q.Service,[no.name]:no},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var y=["webkitVisibilityState","visibilitychange"];try{for(let v=0;v<y.length;v++)document.addEventListener(y[v],()=>{document.hidden?n.value.pause():a.playing&&setTimeout(()=>{n.value.play()},200)})}catch(v){v.message}});const r=y=>{const v=n.value;e.autoplay&&v&&v.paused&&v.play(),a.second=v.duration,a.duration=b(v.duration),o("can-play",y)},s=y=>{a.currentTime=parseInt(y.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,n.value.currentTime=a.currentTime,o("fastBack",a.currentTime)},c=()=>{const y=n.value;a.playing?(y.pause(),a.handPlaying=!1):(y.play(),a.handPlaying=!0),a.playing=!a.playing,o("play",a.playing)},d=()=>{a.currentTime++,n.value.currentTime=a.currentTime,o("forward",a.currentTime)},m=y=>{a.currentDuration=b(y),a.percent=y/a.second*100},f=()=>{a.playing=!1,o("ended")},h=y=>{const v=n.value;v.currentTime=a.second*y/100,o("changeProgress",v.currentTime)},g=()=>{a.hanMuted=!a.hanMuted,o("mute",a.hanMuted)},b=y=>{if(!y)return"00:00:00";let v=parseInt(y),u=Math.floor(v/3600),p=Math.floor((v-u*3600)/60),k=v-u*3600-p*60,S="";return S+=("0"+u.toString()).slice(-2)+":",S+=("0"+p.toString()).slice(-2)+":",S+=("0"+k.toString()).slice(-2),S};return t.watch(()=>a.currentTime,y=>{m(y)}),t.provide("audioParent",{children:[],props:e,audioData:a,handleMute:g,forward:d,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(a),audioRef:n,fastBack:i,forward:d,changeStatus:c,progressChange:h,audioEnd:f,onTimeupdate:s,handleMute:g,onCanplay:r,slots:l}}}),Ly={class:"fox-audio"},xy={key:0,class:"fox-audio__progress"},Py={class:"fox-audio__time"},Ry={class:"fox-audio__bar"},Oy=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),Fy={class:"fox-audio__time"},Uy={key:1,class:"fox-audio__icon"},Ky=["controls","src","preload","autoplay","loop","muted"];function Hy(e,o,l,n,a,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",Ly,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",xy,[t.createElementVNode("div",Py,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Ry,[t.createVNode(s,{modelValue:e.percent,"onUpdate:modelValue":o[0]||(o[0]=c=>e.percent=c),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:t.withCtx(()=>[Oy]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Fy,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Uy,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:o[1]||(o[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):(t.openBlock(),t.createBlock(i,{key:1}))],2)])):t.createCommentVNode("",!0),e.type=="none"?(t.openBlock(),t.createElementBlock("div",{key:2,onClick:o[2]||(o[2]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type!="none"?t.renderSlot(e.$slots,"default",{key:3}):t.createCommentVNode("",!0),t.createElementVNode("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:o[3]||(o[3]=(...c)=>e.onTimeupdate&&e.onTimeupdate(...c)),onCanplay:o[4]||(o[4]=(...c)=>e.onCanplay&&e.onCanplay(...c)),onEnded:o[5]||(o[5]=(...c)=>e.audioEnd&&e.audioEnd(...c)),muted:e.hanMuted},null,40,Ky)])}const pr=K(zy,[["render",Hy]]),{componentName:Ew,create:jy,scope:Wy}=O("audio-operate"),Yy=jy({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:o}){const{t:l}=re.useFoxI18n(Wy),n=t.inject("audioParent"),a=t.reactive(n),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(a),customSlot:r,t:l}}}),Xy={class:"fox-audio-operate"};function Qy(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Xy,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:o[0]||(o[0]=(...i)=>e.fastBack&&e.fastBack(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:o[1]||(o[1]=(...i)=>e.changeStatus&&e.changeStatus(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:o[2]||(o[2]=(...i)=>e.forward&&e.forward(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:o[3]||(o[3]=(...i)=>e.handleMute&&e.handleMute(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("mute")),1)]),_:1},8,["type"])),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)])}const hr=K(Yy,[["render",Qy]]),{componentName:Gy,create:Zy}=O("avatar"),Jy=Zy({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:o,shape:l,bgColor:n,color:a}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),d=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const b=s?.avatarGroupRef?.value?.children;b&&g(b)});const m=t.computed(()=>({[Gy]:!0,[`fox-avatar-${o.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${l.value||s?.props?.shape||"normal"}`]:!0})),f=t.computed(()=>({width:r.indexOf(o.value)>-1?"":`${o.value}px`,height:r.indexOf(o.value)>-1?"":`${o.value}px`,backgroundColor:`${n.value}`,color:`${a.value}`,marginLeft:d.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),g=b=>{d.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);d.index=i?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=s?.props?.maxCount&&(d.showMax=!0)};return{classes:m,styles:f,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(d)}}});function _y(e,o,l,n,a,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const io=K(Jy,[["render",_y]]),{componentName:ev,create:tv}=O("avatar-group"),ov=tv({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:o,slots:l}){t.toRefs(e);const n=t.ref(null),a=t.ref(0),r=t.computed(()=>({[ev]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:n,index:a}),{classes:r,avatarGroupRef:n}}});function nv(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const gr=K(ov,[["render",nv]]);var Ht=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(Ht||{});function lv(e,o,l){let n=0,a=e.length-1,r=null;for(;n<=a;){r=Math.floor((n+a)/2);const s=e[r],i=l(s,o);if(i===1)return r;i===2?n=r+1:i===3&&(a=r-1)}return r}const{componentName:av,create:rv}=O("list"),ul=document.documentElement.clientHeight||document.body.clientHeight||667,sv=rv({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:ul},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref(null),a=t.ref(null),r=t.reactive({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),s=t.computed(()=>Math.min(e.containerHeight,ul)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),d=t.computed(()=>({[av]:!0})),m=t.computed(()=>r.list.slice(r.start,c.value)),f=()=>{if(a.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let u=0;u<r.list.length;++u)r.cachePositions[u]={index:u,height:e.height,top:u*e.height,bottom:(u+1)*(e.height+e.margin),dValue:0}},g=()=>{let u=a.value.childNodes;u=Array.from(u).filter(I=>I.nodeType===1);const p=u[0];u.forEach((I,B)=>{if(!I)return;const C=Se(I),{height:w}=C,x=r.cachePositions[B+r.start].height-w;x&&(r.cachePositions[B+r.start].bottom-=x,r.cachePositions[B+r.start].height=w,r.cachePositions[B+r.start].dValue=x)});let k=0;p&&(k=r.start);const S=r.cachePositions.length;let A=r.cachePositions[k].dValue;r.cachePositions[k].dValue=0;for(let I=k+1;I<S;++I){const B=r.cachePositions[I];r.cachePositions[I].top=r.cachePositions[I-1].bottom,r.cachePositions[I].bottom=r.cachePositions[I].bottom-A,B.dValue!==0&&(A+=B.dValue,B.dValue=0)}const V=r.cachePositions[S-1].bottom;r.phantomHeight=V},b=(u=0)=>{let p=lv(r.cachePositions,u,(S,A)=>{const V=S.bottom;return V===A?Ht.eq:V<A?Ht.lt:Ht.gt});return r.cachePositions[p].bottom<u&&(p+=1),p},y=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,l.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},v=()=>{const u=l.value?.scrollTop,{originStartIndex:p}=r,k=b(u);k!==p&&(r.originStartIndex=k,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&o("scroll-bottom")),o(u>r.scrollTop?"scroll-up":"scroll-down",u),r.scrollTop=u};return t.watch(()=>e.listData,u=>{if(r.list=u.slice(),r.list.length===u.length)h(),g();else{y();return}}),t.watch(()=>r.start,()=>{a.value&&r.list.length>0&&g()}),{...t.toRefs(r),list:l,phantom:n,actualContent:a,getTransform:f,visibleData:m,classes:d,getContainerHeight:s,handleScrollEvent:v}}});function iv(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:o[0]||(o[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform()}),ref:"actualContent"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:s},[t.renderSlot(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}const yr=K(sv,[["render",iv]]),{componentName:cv,create:uv}=O("circleprogress"),dv=uv({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:o}){const l=!!t.useSlots().default,n=Math.random().toString(36).slice(-8),a=t.computed(()=>({[cv]:!0})),r=t.computed(()=>{const m=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${m} 0 90 a 45 45 0 1, ${m} 0 -90`}),s=t.computed(()=>Te(e.color)?`url(#${n})`:e.color),i=t.computed(()=>{let m=283,f=m*Number(e.progress)/100;return{stroke:Te(e.color)?`url(#${n})`:e.color,strokeDasharray:`${f}px ${m}px`}}),c=t.computed(()=>({stroke:e.pathColor})),d=t.computed(()=>{if(!Te(e.color))return;let m=e.color;const f=Object.keys(m).sort((g,b)=>parseFloat(g)-parseFloat(b));let h=[];return f.map((g,b)=>{let y={key:"",value:""};y.key=g,y.value=m[g],h.push(y)}),h});return{classes:a,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:d,slotDefault:l,refRandomId:n}}}),fv={viewBox:"0 0 100 100"},mv=["id"],pv=["offset","stop-color"],hv=["d","stroke-width"],gv=["d","stroke","stroke-linecap","stroke-width"],yv={class:"fox-circleprogress-text"},vv={key:0};function kv(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",fv,[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,pv))),128))],8,mv)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,hv),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,gv)])),t.createElementVNode("div",yv,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",vv,t.toDisplayString(e.progress)+"%",1))])],6)}const vr=K(dv,[["render",kv]]),{componentName:bv,create:Sv}=O("noticebar"),Cv=Sv({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:Q.Notice,CircleClose:Q.CircleClose},emits:["click","close","across-end"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=t.computed(()=>({[bv]:!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})),d=t.computed(()=>{let B={};return e.color&&(B.color=e.color),e.background&&(B.background=e.background),e.direction=="vertical"&&(B.height=`${e.height}px`),B}),m=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),f=t.computed(()=>{let B={};if(e.complexAm)B={transform:`translateY(${r.distance}px)`};else if(r.animate){let C=~~(e.height/e.speed/4);B={transition:`all ${C==0?~~(e.height/e.speed):C}s`,"margin-top":`-${e.height}px`}}return B});t.watch(()=>e.text,B=>{h()}),t.watch(()=>e.list,B=>{r.scrollList=[].concat(B)});const h=B=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!n.value||!a.value)return;const C=n.value.getBoundingClientRect().width,w=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?w>C:e.scrollable,r.isCanScroll?(r.wrapWidth=C,r.offsetWidth=w,r.duration=w/e.speed,r.animationClass="play"):r.animationClass=""},0)},g=B=>{o("click",B)},b=B=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",B)},y=B=>{r.firstRound=!1,o("across-end",B),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},v=()=>{u(),r.timer=setInterval(u,~~(e.height/e.speed/4*1e3)+e.standTime)},u=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},p=()=>{r.timer=setInterval(()=>{let B=100;for(let C=0;C<B;C++)k(C,!(C<B-1))},e.standTime+100*e.speed)},k=(B,C)=>{setTimeout(()=>{r.distance-=e.height/100,C&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},B*e.speed)},S=B=>{o("click",B)},A=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(l.default?(V(),I()):r.scrollList=[].concat(e.list),setTimeout(()=>{e.complexAm?p():v()},e.standTime)):h(e.text)});const V=()=>{l.default&&(r.scrollList=[].concat(l.default()[0].children))},I=()=>{setTimeout(()=>{var B=new MutationObserver(w=>{r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),V()});const C=document.getElementsByClassName("fox-noticebar-custom-item")[0];C&&B.observe(C,{childList:!0,subtree:!0})},100)};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:d,contentStyle:m,horseLampStyle:f,wrap:n,content:a,handleClick:g,onClickIcon:b,onAnimationEnd:y,go:S,handleClickIcon:A,slots:l,toPxDesc:se,wrapContentClass:c}}}),wv={class:"fox-noticebar__page-lefticon"},Nv={ref:"wrap",class:"fox-noticebar__page-wrap"},Bv={class:"showNotica"},Vv={class:"fox-noticebar-custom-item"},Av=["onClick"];function Ev(e,o,l,n,a,r){const s=t.resolveComponent("Notice"),i=t.resolveComponent("CircleClose"),c=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:o[3]||(o[3]=(...d)=>e.handleClick&&e.handleClick(...d))},[t.createElementVNode("view",wv,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",Nv,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:o[0]||(o[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":o[1]||(o[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__page-righticon",onClick:o[2]||(o[2]=t.withModifiers((...d)=>e.onClickIcon&&e.onClickIcon(...d),["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(t.Fragment,{key:0},[t.createElementVNode("view",{class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",Bv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(d,m)=>(t.openBlock(),t.createBlock(c,{key:m,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:d},null,8,["style","item"]))),128))])],4),t.createElementVNode("view",Vv,[t.renderSlot(e.$slots,"default")])],64)):(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,(d,m)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:m,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:f=>e.go(d)},t.toDisplayString(d),13,Av))),128))],4)),t.createElementVNode("view",{class:"go",onClick:o[4]||(o[4]=d=>!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 kr=K(Cv,[["render",Ev]]),Tv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09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al5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:Tw,create:Iv,scope:qv}=O("empty"),Mv={empty:Tv,error:$v,network:Dv},zv=Iv({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:o}=re.useFoxI18n(qv),l=o(e,["description"]),{image:n,imageSize:a}=t.toRefs(e),r=t.computed(()=>a.value?typeof a.value=="number"?`width:${a.value}px;height:${a.value}px`:`width:${a.value};height:${a.value}`:""),i=n.value.startsWith("https://")||n.value.startsWith("http://")||n.value.startsWith("//")?n.value:Mv[n.value];return{...l,imageUrl:i,imgStyle:r}}}),Lv={class:"fox-empty"},xv=["src"],Pv={key:1,class:"fox-empty-description"};function Rv(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",Lv,[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,xv)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",Pv,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const br=K(zv,[["render",Rv]]),{create:Ov,scope:Fv}=O("video"),Uv=Ov({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:o}){const{t:l}=re.useFoxI18n(Fv),n=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),a=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,V=>{V.src&&t.nextTick(()=>{n.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,V=>{n.state.isMuted=V?V.muted:!1},{immediate:!0});const s=()=>{n.videoElm=a.value,e.options.autoplay&&setTimeout(()=>{n.videoElm.play()},200),e.options.touchPlay&&(n.showTouchMask=!0),e.options.playsinline&&(n.videoElm.setAttribute("playsinline",e.options.playsinline),n.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),n.videoElm.setAttribute("x5-video-player-type","h5-page"),n.videoElm.setAttribute("x5-video-player-fullscreen",!1)),b(),n.showToolbox?i():(n.videoElm.addEventListener("play",()=>{n.state.playing=!0,o("play",n.videoElm)}),n.videoElm.addEventListener("pause",()=>{n.state.playing=!1,o("pause",n.videoElm)}),n.videoElm.addEventListener("ended",h),n.videoElm.addEventListener("timeupdate",Yt(f,1e3)))},i=()=>{const V=a.value,I=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];n.player.$player=V,n.progressBar.progressElm=I,n.progressBar.pos=I.getBoundingClientRect(),n.videoSet.progress.width=Math.round(I.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return n.state.playing=!0,!1;if(n.state.playing=!n.state.playing,n.videoElm)if(n.state.playing)try{setTimeout(()=>{n.videoElm.play()},200),n.videoElm.addEventListener("progress",()=>{m()}),n.videoElm.addEventListener("timeupdate",Yt(f,1e3)),n.videoElm.addEventListener("ended",h),o("play",n.videoElm)}catch{g()}else n.videoElm.pause(),o("pause",n.videoElm)},d=V=>{var I=Math.floor(V/3600);I<10&&(I="0"+I);var B=Math.floor(V%3600/60);B<10&&(B="0"+B);var C=Math.round(V%3600%60);C<10&&(C="0"+C);var w="";return I!=0?w=I+":"+B+":"+C:w=B+":"+C,w},m=()=>{n.videoSet.loaded&&(n.videoSet.loaded=n.videoElm.buffered.end(0)/n.videoElm.duration*100)},f=()=>{const V=n.videoElm.currentTime/n.videoElm.duration;n.videoSet.progress.current=Math.round(n.videoSet.progress.width*V),n.videoSet.totalTime=d(n.videoElm.duration),n.videoSet.displayTime=d(n.videoElm.currentTime),o("time",n.videoSet.displayTime,n.videoSet.totalTime)},h=()=>{n.state.playing=!1,n.state.isEnd=!0,n.videoSet.displayTime="00:00",n.videoSet.progress.current=0,n.videoElm.currentTime=0,o("playend",n.videoElm)},g=()=>{n.state.isError=!0},b=()=>{n.state.vol=e.options.volume},y=()=>{n.state.isMuted=!n.state.isMuted,n.videoElm.muted=n.state.isMuted},v=()=>{},u=V=>{let B=V.targetTouches[0].pageX-n.progressBar.pos.left;B<=0&&(B=0),B>=n.videoSet.progress.width&&(B=n.videoSet.progress.width),n.videoSet.progress.current=B;let C=n.videoSet.progress.current/n.videoSet.progress.width;n.videoElm.duration&&k(C,n.videoElm.duration)},p=V=>{let B=V.changedTouches[0].pageX-n.progressBar.pos.left;n.videoSet.progress.current=B;let C=B/n.videoSet.progress.width;n.videoElm.duration&&k(C,n.videoElm.duration)},k=(V,I)=>{n.videoElm.currentTime=Math.floor(V*I)},S=()=>{n.state.isError=!1,s()},A=()=>{n.state.fullScreen?(n.state.fullScreen=!1,document.webkitCancelFullScreen()):(n.state.fullScreen=!0,n.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:a,...t.toRefs(e),...t.toRefs(n),handleError:g,isDisabled:r,play:c,handleMuted:y,touchSlidSrart:v,touchSlidMove:u,touchSlidEnd:p,retry:S,fullScreen:A,t:l}}}),Kv={class:"fox-video",ref:"videocon"},Hv=["muted","autoplay","loop","poster","controls","preload"],jv=["src","type"],Wv={class:"fox-video-controller__now"},Yv={class:"fox-video-controller__progress"},Xv={class:"fox-video-controller__progress-value",ref:"progressBar"},Qv=t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1),Gv=[Qv],Zv={class:"fox-video-controller__played",ref:"playedBar"},Jv={class:"fox-video-controller__total"},_v={class:"fox-video-error"},ek={class:"fox-video-error-tip"};function tk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",Kv,[t.createElementVNode("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:o[0]||(o[0]=(...s)=>e.handleError&&e.handleError(...s))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,jv)],40,Hv),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:o[1]||(o[1]=(...s)=>e.play&&e.play(...s))},null,512)):t.createCommentVNode("",!0),e.showToolbox&&!e.isDisabled?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:o[2]||(o[2]=(...s)=>e.play&&e.play(...s))},null,512)),[[t.vShow,!e.state.playing]]):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[t.createElementVNode("div",{class:"fox-video-controller__playbtn",onClick:o[3]||(o[3]=(...s)=>e.play&&e.play(...s))}),t.createElementVNode("div",Wv,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",Yv,[t.createElementVNode("div",Xv,[t.createElementVNode("div",{class:"buffered",style:t.normalizeStyle({width:`${e.videoSet.loaded}%`})},null,4),t.createElementVNode("div",{class:"fox-video-controller__ball",style:t.normalizeStyle({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:o[4]||(o[4]=t.withModifiers(s=>e.touchSlidMove(s),["stop","prevent"])),onTouchstart:o[5]||(o[5]=t.withModifiers(s=>e.touchSlidSrart(),["stop"])),onTouchend:o[6]||(o[6]=t.withModifiers(s=>e.touchSlidEnd(s),["stop"]))},Gv,36),t.createElementVNode("div",Zv,null,512)],512)]),t.createElementVNode("div",Jv,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:o[7]||(o[7]=(...s)=>e.handleMuted&&e.handleMuted(...s))},null,2),t.createElementVNode("div",{class:"fox-video-controller__full",onClick:o[8]||(o[8]=(...s)=>e.fullScreen&&e.fullScreen(...s))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",_v,[t.createElementVNode("p",ek,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:o[9]||(o[9]=(...s)=>e.retry&&e.retry(...s))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const Tt=K(Uv,[["render",tk]]),{create:ok,componentName:nk}=O("steps"),Sr=ok({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:o,slots:l}){const n=t.reactive({children:[]}),a=t.computed(()=>{const i=nk;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&n.children.push(i)},s=i=>{o("click-step",i)};return t.provide("parent",{relation:r,state:n,props:e,onEmit:s}),()=>t.h("view",{class:a.value},l.default?.())}}),{create:lk,componentName:ak}=O("step"),rk=lk({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=t.getCurrentInstance(),o=t.inject("parent");o.relation(e);const l=t.reactive({dot:o.props.progressDot}),n=t.computed(()=>o.state.children.indexOf(e)+1),a=()=>{const c=n.value;return c<+o.props.current?"finish":c===+o.props.current?"process":"wait"},r=t.computed(()=>a()),s=t.computed(()=>{const c=ak;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{o.onEmit(n.value)};return{...t.toRefs(l),index:n,classes:s,handleClickStep:i}}}),sk={class:"fox-step-head"},ik=t.createElementVNode("view",{class:"fox-step-line"},null,-1),ck={class:"fox-step-icon-inner"},uk={key:1,class:"fox-step-inner"},dk={class:"fox-step-main"},fk={class:"fox-step-title"},mk={key:0},pk={key:0,class:"fox-step-content"},hk=["innerHTML"];function gk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[t.createElementVNode("view",sk,[ik,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",ck,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",uk,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",dk,[t.createElementVNode("view",fk,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",mk,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",pk,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,hk)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const Cr=K(rk,[["render",gk]]),{create:yk,componentName:Mo}=O("swiper"),vk=yk({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:o,slots:l}){const n=t.ref(),a=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=Fe(),s=t.computed(()=>({[Mo]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const $=Mo;return{[`${$}-inner`]:!0,[`${$}-vertical`]:i.value}}),d=t.computed(()=>{const $=Mo;return{[`${$}-pagination`]:!0,[`${$}-pagination-vertical`]:i.value}}),m=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),f=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>a.children.length),g=t.computed(()=>a[i.value?"height":"width"]),b=t.computed(()=>h.value*g.value),y=t.computed(()=>a.rect?(i.value?a.rect.height:a.rect.width)-g.value*h.value:0),v=t.computed(()=>(a.active+h.value)%h.value),u=()=>{let $=0;$=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${$}px)`,[i.value?"height":"width"]:`${g.value*h.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},p=$=>{let z=[];const F=a.childrenVNode.length;let U=l?.default?.();if(U=U.filter(W=>W.children&&Array.isArray(W.children)),U.forEach(W=>{z=z.concat(W.children)}),!F)a.childrenVNode=z.slice(),$.proxy&&a.children.push($.proxy);else if(F>z.length)a.children=a.children.filter(W=>$.proxy!==W);else if(F<z.length){for(let W=0;W<F;W++)if(z[W].key!==a.childrenVNode[W].key){$.proxy&&a.children.splice(W,0,$.proxy),$.vnode&&a.childrenVNode.splice(W,0,$.vnode);break}F!==z.length&&($.proxy&&a.children.push($.proxy),$.vnode&&a.childrenVNode.push($.vnode))}else a.childrenVNode=z.slice(),$.proxy&&a.children.push($.proxy)},k=($,z=0)=>{let F=$*g.value;e.loop||(F=Math.min(F,-y.value));let U=z-F;return e.loop||(U=Le(U,y.value,0)),U},S=$=>{const{active:z}=a;return $?e.loop?Le(z+$,-1,h.value):Le(z+$,0,h.value-1):z},A=({pace:$=0,offset:z=0,isEmit:F=!1})=>{if(h.value<=1)return;const{active:U}=a,W=S($),X=k(W,z);if(e.loop){if(a.children[0]&&X!==y.value){const Y=X<y.value;a.children[0].setOffset(Y?b.value:0)}if(a.children[h.value-1]&&X!==0){const Y=X>0;a.children[h.value-1].setOffset(Y?-b.value:0)}}a.active=W,a.offset=X,F&&U!==a.active&&o("change",v.value),u()},V=()=>{a.moving=!0,a.active<=-1&&A({pace:h.value}),a.active>=h.value&&A({pace:-h.value})},I=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},B=$=>{V(),r.reset(),He(()=>{He(()=>{a.moving=!1,A({pace:$,isEmit:!0})})})},C=()=>{B(-1)},w=()=>{B(1)},L=$=>{V(),r.reset(),He(()=>{a.moving=!1;let z;e.loop&&h.value===$?z=a.active===0?0:$:z=$%h.value,A({pace:z-a.active,isEmit:!0})})},x=()=>{e.autoPlay<=0||h.value<=1||(I(),a.autoplayTimer=setTimeout(()=>{w(),x()},Number(e.autoPlay)))},q=($=+e.initPage)=>{I(),a.rect=n.value.getBoundingClientRect(),$=Math.min(h.value-1,$),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=$,a.offset=k(a.active),a.moving=!0,u(),x()},N=$=>{e.isPreventDefault&&$.preventDefault(),e.isStopPropagation&&$.stopPropagation(),e.touchable&&(r.start($),a.touchTime=Date.now(),I(),V())},T=$=>{e.touchable&&a.moving&&(r.move($),f.value&&A({offset:m.value}))},M=$=>{if(!e.touchable||!a.moving)return;const z=m.value/(Date.now()-a.touchTime);if((Math.abs(z)>.3||Math.abs(m.value)>+(g.value/2).toFixed(2))&&f.value){let U=0;const W=i.value?r.offsetY.value:r.offsetX.value;e.loop?U=W>0?m.value>0?-1:1:0:U=-Math[m.value>0?"ceil":"floor"](m.value/g.value),A({pace:U,isEmit:!0})}else m.value&&A({pace:0});a.moving=!1,u(),x()};return t.provide("parent",{props:e,size:g,relation:p}),Ae({prev:C,next:w,to:L}),t.onDeactivated(()=>{I()}),t.onBeforeUnmount(()=>{I()}),t.watch(()=>e.initPage,$=>{t.nextTick(()=>{q(Number($))})}),t.watch(()=>a.children.length,()=>{t.nextTick(()=>{q()})}),t.watch(()=>e.autoPlay,$=>{$>0?x():I()}),{state:a,classes:s,classesInner:c,classesPagination:d,container:n,activePagination:v,onTouchStart:N,onTouchMove:T,onTouchEnd:M}}});function kk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.classesInner),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classesPagination)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(s,i)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===i}),key:i},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const $t=K(vk,[["render",kk]]),{create:bk,componentName:Sk}=O("swiper-item"),Ck=bk({setup(e,{slots:o}){const l=t.inject("parent");l.relation(t.getCurrentInstance());const n=t.reactive({offset:0}),a=t.computed(()=>({[Sk]:!0})),r=t.computed(()=>{const i={},c=l?.props.direction;return l?.size.value&&(i[c==="horizontal"?"width":"height"]=`${l?.size.value}px`),n.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${n.offset}px)`),i}),s=i=>{n.offset=i};return t.onUnmounted(()=>{l.relation(t.getCurrentInstance(),"unmount")}),Ae({setOffset:s}),{style:r,classes:a}}});function wk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const Dt=K(Ck,[["render",wk]]),wr={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:Nk}=O("image-preview-item"),Bk=Nk({props:{...wr,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:{[Tt.name]:Tt,[Dt.name]:Dt},setup(e,{emit:o}){const l=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),n=Fe(),a=t.computed(()=>{const{rootWidth:C,rootHeight:w}=e,L=w/C;return l.imageRatio>L}),r=t.computed(()=>{const C=e.image;if(C&&C.src){const{scale:w,moveX:L,moveY:x,moving:q,zooming:N}=l,T={transitionDuration:N||q?"0s":".3s"};if(w!==1){const M=L/w,$=x/w;T.transform=`scale(${w}, ${w}) translate(${M}px, ${$}px)`}return T}return{}}),s=t.computed(()=>{if(l.imageRatio){const{rootWidth:C,rootHeight:w}=e,L=a.value?w/l.imageRatio:C;return Math.max(0,(l.scale*L-C)/2)}return 0}),i=t.computed(()=>{if(l.imageRatio){const{rootWidth:C,rootHeight:w}=e,L=a.value?w:C*l.imageRatio;return Math.max(0,(l.scale*L-w)/2)}return 0}),c=C=>{const{naturalWidth:w,naturalHeight:L}=C.target;l.imageRatio=L/w},d=()=>{m(1),l.moveX=0,l.moveY=0},m=C=>{C=Le(C,+e.minZoom,+e.maxZoom+1),C!==l.scale&&(l.scale=C,o("scale",{scale:C,index:e.initNo}))},f=()=>{const C=l.scale>1?1:2;m(C),l.moveX=0,l.moveY=0},h=C=>Math.sqrt((C[0].clientX-C[1].clientX)**2+(C[0].clientY-C[1].clientY)**2);let g,b,y,v,u,p,k;const S=C=>{const{touches:w}=C,{offsetX:L}=n;n.start(C),k=w.length,g=l.moveX,b=l.moveY,p=Date.now(),l.moving=k===1&&l.scale!==1,l.zooming=k===2&&!L.value,l.zooming&&(y=l.scale,v=h(C.touches))},A=C=>{const{touches:w}=C;if(n.move(C),(l.moving||l.zooming)&&Ko(C,!0),l.moving){const{deltaX:L,deltaY:x}=n,q=L.value+g,N=x.value+b;l.moveX=Le(q,-s.value,s.value),l.moveY=Le(N,-i.value,i.value)}if(l.zooming&&w.length===2){const L=h(w),x=y*L/v;m(x)}},V=()=>{if(k==1&&e.video&&e.video.source||k>1)return;const{offsetX:C,offsetY:w}=n,L=Date.now()-p,x=250,q=5;C.value<q&&w.value<q&&L<x&&(u?(clearTimeout(u),u=null,f()):u=setTimeout(()=>{e.contentClose&&o("close"),u=null},x))},I=C=>{let w=!1;(l.moving||l.zooming)&&(w=!0,l.moving&&g===l.moveX&&b===l.moveY&&(w=!1),C.touches.length||(l.zooming&&(l.moveX=Le(l.moveX,-s.value,s.value),l.moveY=Le(l.moveY,-i.value,i.value),l.zooming=!1),l.moving=!1,g=0,b=0,y=1,l.scale<1&&d(),l.scale>e.maxZoom&&(l.scale=+e.maxZoom))),Ko(C,w),V(),n.reset()},B=()=>{o("close")};return t.watch(()=>e.initNo,d),t.watch(()=>e.show,C=>{C||d()}),{...t.toRefs(l),onTouchStart:S,onTouchMove:A,onTouchEnd:I,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:B}}}),Vk=["src"];function Ak(e,o,l,n,a,r){const s=t.resolveComponent("fox-video"),i=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(i,{onClick:e.closeSwiper},{default:t.withCtx(()=>[t.createElementVNode("view",{style:t.normalizeStyle(e.imageStyle),class:"fox-image-preview-box",onTouchstart:o[1]||(o[1]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:o[2]||(o[2]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:o[3]||(o[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:o[4]||(o[4]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[e.image&&e.image.src?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:o[0]||(o[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,Vk)):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 Ek=K(Bk,[["render",Ak]]),{create:Tk}=O("image-preview"),$k=Tk({props:{...wr,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:Ek,CircleClose:Q.CircleClose,[ie.name]:ie,[$t.name]:$t},setup(e,{emit:o}){const l=t.ref(),n=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),a=t.computed(()=>{const m="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${m}-right`:`${m}-left`}`}),r=t.computed(()=>fo(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=m=>{m!==n.active&&(n.active=m,o("change",n.active))},i=()=>{or(e.beforeClose,{args:[n.active],done:()=>c()})},c=()=>{n.showPop=!1,o("close")},d=()=>{if(l.value){const m=Se(l.value);n.rootHeight=m.height,n.rootWidth=m.width}};return t.watch(()=>e.show,m=>{n.showPop=m,m&&(s(e.initNo),d())}),t.watch(()=>e.initNo,m=>{m!=n.active&&s(m)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:l,...t.toRefs(n),onClose:i,mergeImages:r,setActive:s,iconClasses:a}}}),Dk={class:"fox-image-preview",ref:"swipeRef"},Ik={key:0,class:"fox-image-preview-index"};function qk(e,o,l,n,a,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":o[1]||(o[1]=m=>e.showPop=m),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",Dk,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(m,f)=>(t.openBlock(),t.createBlock(s,{key:f,video:f<e.videos.length?m:{},image:f>=e.videos.length?m:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",Ik,t.toDisplayString(e.active+1)+" / "+t.toDisplayString(e.mergeImages.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.iconClasses),onClick:o[0]||(o[0]=(...m)=>e.onClose&&e.onClose(...m))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Nr=K($k,[["render",qk]]);class Mk{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 zk{options=new Mk;constructor(o){const l=Object.assign(this.options,o),{unmount:n}=$s(l,{name:"image-preview",components:[ie,Tt,$t,Dt,_e],wrapper:()=>({setup(){return()=>(l.onClose=()=>{l.show=!1,t.nextTick(()=>{n()})},t.h(Nr,l))}})})}}const An=e=>new zk(e);An.install=e=>{e.use(Nr)};function Lk(e){const o=t.getCurrentInstance();if(o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const{componentName:$w,create:xk}=O("countup"),Pk=xk({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref([]),a=B=>{B&&n.value.push(B)},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:d}=t.reactive(e);t.watch(()=>e.customChangeNum,(B,C)=>{f(),v(0)}),t.watch(()=>e.machinePrizeLevel,(B,C)=>{r.prizeLevelTrun=B}),t.watch(()=>e.initNum,(B,C)=>{r.current=B,r.valFlag=!1,m()}),t.watch(()=>e.endNum,(B,C)=>{r.current=e.initNum,r.valFlag=!1,m()});const m=()=>{if(r.valFlag)return!1;s&&(i||c?d!="machine"&&v():(y(),setTimeout(()=>{r.valFlag=!0},300)))},f=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(B,C,w)=>{const L=(B.toString().split(".")[1]||"").length,x=(C.toString().split(".")[1]||"").length,q=Math.pow(10,Math.max(L,x));return w=="-"?Number((B*q-C*q).toFixed(0))/q:Number((B*q+C*q).toFixed(0))/q},g=B=>{let{num_total_len:C,pointNum:w,initDigit1:L,initDigit2:x,sortFlag:q}=r,N=q=="add"||q=="equal"?String(x)[B-(C-w)]:10-Number(String(x)[B-(C-w)]),T=q=="add"||q=="equal"?String(L)[B]:10-Number(String(L)[B]),M=B>C-w-1?-N*100+"%":B<=String(L).length-1?-T*100+"%":0;return M=="-1000%"&&(M=0),M},b=B=>{let{num_total_len:C,pointNum:w,initDigit1:L,initDigit2:x,sortFlag:q}=r,N=String(x)[B-(C-w)];return B>C-w-1?N||0:B<=String(L).length-1?String(L)[B]:0},y=()=>{let{endNum:B,initNum:C,speed:w,toFixed:L}=e,x=setInterval(()=>{if(C>B)if(r.current<=B||r.current<=w)r.current=B.toFixed(L),clearInterval(x),o("scroll-end"),r.valFlag=!1;else{let q=parseFloat(String(r.current))-parseFloat(String(w));r.current=q.toFixed(L)}else if(r.current>=B)r.current=B.toFixed(L),clearInterval(x),o("scroll-end"),r.valFlag=!1;else{let q=parseFloat(String(r.current))+parseFloat(String(w));r.current=q.toFixed(L)}},e.during)},v=B=>{let{initNum:C,endNum:w,toFixed:L,customBgImg:x}=e;x&&(C=e.customChangeNum);let q,N,T,M;C!=0?(L!=0&&(C=Number(C.toFixed(L))),String(C).indexOf(".")>-1?(q=String(C).split(".")[0].length,N=String(C).split(".")[1].length):(q=String(C).length,N=0)):(q=1,N=0),w!=0?(L!=0&&(w=Number(w.toFixed(L))),String(w).indexOf(".")>-1?(T=String(w).split(".")[0].length,M=String(w).split(".")[1].length):(T=String(w).length,M=0)):(T=1,M=0);let $=q>=T?q:T,z=N>=M?N:M;r.num_total_len=$+z,r.pointNum=z,C>w?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(C,w,"-"),r.numberVal=Number(String(C))):C<w?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(w,C,"-"),r.numberVal=Number(String(w))):r.sortFlag="equal";var F=1;for(let W=0;W<r.pointNum;W++)F*=10;var U=r.numberVal*F;if(r.relNum=U,L!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(U).length),String(C).indexOf(".")>-1){let W=String(C).split(".");r.initDigit1=Number(W[0]),r.initDigit2=Number(W[1])}else r.initDigit1=C,r.initDigit2=0;i&&!x?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let W=n.value[r.num_total_len-1];u(W)}):B!==0&&S()},u=B=>{f();var C=1;r.pointNum!=0&&(C=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{p(B),r.totalCount=h(r.totalCount,C,"-"),r.totalCount<=0&&(f(),o("scroll-end"),r.valFlag=!1)},e.during)},p=B=>{let C=B.getAttribute("turn-number"),w;if(r.sortFlag=="add"?w=parseInt(String(C))+1:w=parseInt(String(C))-1>=0?parseInt(String(C))-1:9,B.setAttribute("turn-number",String(w)),(B.style.transition=="none 0s ease 0s"||w==1||!B.style.transition)&&(B.style.transition=`all linear ${e.during}ms`),w==10||r.sortFlag=="reduce"&&w==0){var L=null;B.style.top=`-${r.sortFlag=="add"?w*100:(10-w)*100}%`,B.setAttribute("turn-number","0"),L=setTimeout(()=>{L&&clearTimeout(L),B.style.transition="none",B.style.top="0",k(B,w)},.975*e.during)}else B.style.top=`-${r.sortFlag=="add"?w*100:(10-w)*100}%`;B.style.top=="-100%"&&r.sortFlag=="reduce"&&p(B.previousSibling)},k=(B,C)=>{setTimeout(()=>{C==10&&B.previousSibling&&p(B.previousSibling)},200)},S=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{o("scroll-end"),r.valFlag=!1})})},A=()=>{for(r.notPrize=[];r.notPrize.length<3;){var B=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(B)==-1&&r.notPrize.push(B)}};Lk({machineLuck:()=>{const B=e.machineTurnMore<0?0:e.machineTurnMore;let C=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&A();for(let w=0;w<e.machineNum;w++)setTimeout(()=>{let L=C*(w+1+parseFloat(String(B)));r.prizeYPrev.length!=0&&(r.prizeY[w]=r.prizeYPrev[w]);let x=r.prizeYPrev[w]?r.prizeYPrev[w]:0,q=L+x+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(C-x);r.prizeLevelTrun<0&&(q+=e.numHeight*r.notPrize[w]),I(w,q,x)},500*w)}});const I=(B,C,w)=>{let L=setInterval(()=>{if(w<=C)w+=10,r.prizeY[B]=parseFloat(String(w));else if(clearInterval(L),L=null,r.finshMachine+=1,r.prizeY[B]=C,r.finshMachine==e.machineNum){let x=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(N=>{let T=N;for(;T>x;)T-=x;r.prizeYPrev.push(T)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(o("scroll-end",!1),r.valFlag=!1):(o("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{m()})}),t.onUnmounted(()=>{f(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:l,setRef:a,topNumber:g,turnNumber:b}}}),Rk={class:"fox-countup"},Ok=["turn-number"];function Fk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",Rk,[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,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+d,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,Ok))),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 Br=K(Pk,[["render",Fk]]),Uk=e=>{if(!e)return Date.now();let o=Number(e),l=o>0?+o:o.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:Kk,create:Hk}=O("countdown"),jk=Hk({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:o,slots:l}){const n=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),a=t.computed(()=>({[Kk]:!0})),r=t.computed(()=>c(n.restTime)),s=()=>{n.handleEndTime=e.endTime,n.diffTime=Date.now()-Uk(e.startTime),n.counting||(n.counting=!0),i()},i=()=>{window!==void 0&&(n.timer=requestAnimationFrame(()=>{if(n.counting){const g=Date.now()-n.diffTime,b=Math.max(n.handleEndTime-g,0);n.restTime=b,b||(n.counting=!1,f(),o("on-end")),b>0&&i()}}))},c=(g,b)=>{const y=g;let v={d:0,h:0,m:0,s:0,ms:0};const u=1e3,p=60*u,k=60*p,S=24*k;return y>0&&(v.d=y>=u?Math.floor(y/S):0,v.h=Math.floor(y%S/k),v.m=Math.floor(y%k/p),v.s=Math.floor(y%p/u),v.ms=Math.floor(y%u)),b=="custom"?v:d({...v})},d=g=>{let{d:b,h:y,m:v,s:u,ms:p}=g,k=e.format;if(k.includes("DD")?k=k.replace("DD",Ye(b)):y+=Number(b)*24,k.includes("HH")?k=k.replace("HH",Ye(y)):v+=Number(y)*60,k.includes("mm")?k=k.replace("mm",Ye(v)):u+=Number(v)*60,k.includes("ss")?k=k.replace("ss",Ye(u)):p+=Number(u)*1e3,k.includes("S")){const S=Ye(p,3).toString();k.includes("SSS")?k=k.replace("SSS",S):k.includes("SS")?k=k.replace("SS",S.slice(0,2)):k.includes("S")&&(k=k.replace("SS",S.slice(0,1)))}return k},m=()=>{!n.counting&&!e.autoStart&&(n.counting=!0,n.handleEndTime=Date.now()+Number(n.restTime),i(),o("on-restart",n.restTime))},f=()=>{cancelAnimationFrame(n.timer),n.counting=!1,o("on-paused",n.restTime)},h=()=>{e.autoStart||(f(),n.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():n.restTime=e.time}),t.watch(()=>n.restTime,g=>{let b=c(g,"custom");o("update:modelValue",b),o("input",b)}),t.watch(()=>e.paused,(g,b)=>{b?(n.counting||(n.counting=!0,n.handleEndTime=Date.now()+Number(n.restTime),i()),o("on-restart",n.restTime)):n.counting&&f()}),t.watch(()=>e.endTime,g=>{s()}),t.watch(()=>e.startTime,g=>{s()}),{...t.toRefs(e),slots:l,classes:a,start:m,pause:f,renderTime:r,reset:h}}}),Wk=["innerHTML"];function Yk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,Wk))],2)}const Vr=K(jk,[["render",Yk]]),{create:Xk}=O("badge"),Qk=Xk({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const o=t.reactive({}),l=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),n=t.computed(()=>{if(e.dot)return;const a=e.value,r=e.max;return typeof a=="number"&&typeof r=="number"&&r<a?`${r}+`:a});return{state:o,stl:l,content:n}}}),Gk={class:"fox-badge"},Zk=["textContent"];function Jk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",Gk,[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,Zk),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const Ar=K(Qk,[["render",Jk]]),{componentName:_k,create:eb}=O("tag"),tb=eb({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}},components:{Close:Q.Close},emits:["close","click"],setup(e,{emit:o}){const{type:l,color:n,plain:a,round:r,mark:s,textColor:i}=t.toRefs(e);return{classes:t.computed(()=>{const h=_k;return{[h]:!0,[`${h}--${l.value}`]:l.value,[`${h}--plain`]:a.value,[`${h}--round`]:r.value,[`${h}--mark`]:s.value}}),getStyle:()=>{const h={};return i.value?h.color=i.value:n.value&&a.value&&(h.color=n.value),a.value?(h.background="#fff",h["border-color"]=n.value):n.value&&(h.background=n.value),h},onClose:h=>{h.stopPropagation(),o("close",h)},onClick:h=>{o("click",h)}}}});function ob(e,o,l,n,a,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",width:"12px",height:"12px",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const co=K(tb,[["render",ob]]),{create:nb}=O("popover"),lb=nb({components:{[ie.name]:ie},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:""}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:o}){const l=t.ref(),n=t.ref(),a=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const p="fox-popover-arrow",k=e.location,S=k.split("-")[0];return`${p} ${p}-${S} ${p}--${k}`}),c=t.computed(()=>{const p={},{bgColor:k,arrowOffset:S,location:A}=e,V=A.split("-")[0],I=A.split("-")[1],B=16;return k&&(p[`border${d(V)}Color`]=k),e.arrowOffset!=0&&(["bottom","top"].includes(V)&&(I||(p.left=`calc(50% + ${S}px)`),I=="start"&&(p.left=`${B+S}px`),I=="end"&&(p.right=`${B-S}px`)),["left","right"].includes(V)&&(I||(p.top=`calc(50% - ${S}px)`),I=="start"&&(p.top=`${B-S}px`),I=="end"&&(p.bottom=`${B+S}px`))),p}),d=k=>{var k=k.toLowerCase();return k=k.replace(/\b\w+\b/g,S=>S.substring(0,1).toUpperCase()+S.substring(1)),k},m=t.computed(()=>{let p={};if(!r.value||!s.value)return{};const k=s.value.width,S=s.value.height,{width:A,height:V,left:I,top:B}=r.value,{location:C,offset:w}=e,L=C.split("-")[0],x=C.split("-")[1];let q=0,N=0;if(fo(w)&&w.length==2&&(q+=+w[1],N+=+w[0]),A){if(["bottom","top"].includes(L)){const T=L=="bottom"?V+q:-(S+q);p.top=`${B+T}px`,x||(p.left=`${-(k-A)/2+I+N}px`),x=="start"&&(p.left=`${I+N}px`),x=="end"&&(p.left=`${r.value.right+N}px`)}if(["left","right"].includes(L)){const T=L=="left"?-(k+q):A+q;p.left=`${I+T}px`,x||(p.top=`${B-S/2+V/2-4+N}px`),x=="start"&&(p.top=`${B+N}px`),x=="end"&&(p.top=`${B+V+N}px`)}}return p}),f=t.computed(()=>{const p={};return e.bgColor&&(p.background=e.bgColor),p}),h=()=>{let p=Se(l.value);e.targetId&&(p=Se(document.querySelector(`#${e.targetId}`))),r.value=p,setTimeout(()=>{s.value={height:n.value.clientHeight,width:n.value.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,p=>{a.value=p,p?(window.addEventListener("touchstart",u,!0),h()):window.removeEventListener("touchstart",u,!0)});const g=p=>{o("update",p),o("update:visible",p)},b=()=>{g(!e.visible),o("open")},y=()=>{o("update:visible",!1),o("close")},v=(p,k)=>{!p.disabled&&o("choose",p,k),e.closeOnClickAction&&y()},u=p=>{const k=l.value,S=n.value;let A=k&&!k.contains(p.target);if(e.targetId){const V=document.querySelector(`#${e.targetId}`);A=V&&!V.contains(p.target)}A&&S&&!S.contains(p.target)&&e.closeOnClickOutside&&y()};return{showPopup:a,openPopover:b,popoverArrow:i,closePopover:y,chooseItem:v,popoverRef:l,popoverContentRef:n,getRootPosition:m,customStyle:f,popoverArrowStyle:c,renderIcon:Ul}}}),ab={ref:"popoverContentRef",class:"fox-popover-content-group"},rb=["onClick"],sb={class:"fox-popover-menu-item-name"};function ib(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.targetId?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-popover-wrapper",onClick:o[0]||(o[0]=(...i)=>e.openPopover&&e.openPopover(...i)),ref:"popoverRef"},[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,{popClass:`fox-popover-content fox-popover-content--${e.location}`,style:t.normalizeStyle(e.customStyle),visible:e.showPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.showPopup=i),position:"",transition:"fox-popover",overlay:e.overlay,duration:e.duration,overlayStyle:e.overlayStyle,overlayClass:e.overlayClass,closeOnClickOverlay:e.closeOnClickOverlay},{default:t.withCtx(()=>[t.createElementVNode("view",ab,[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(d=>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",sb,t.toDisplayString(i.name),1)],10,rb))),128))],512)]),_:3},8,["popClass","style","visible","overlay","duration","overlayStyle","overlayClass","closeOnClickOverlay"])],6)],64)}const uo=K(lb,[["render",ib]]),cb=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(o){const{avatarShape:l,round:n,avatarSize:a}=t.toRefs(o),r=t.computed(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${l.value}`]:l.value}});return{avatarShape:l,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:n.value}),getStyle:()=>a.value?{width:a.value,height:a.value}:{width:"50px",height:"50px"}}}}),{create:ub}=O("skeleton"),db=ub(cb({[io.name]:io})),fb={key:0},mb={key:1,class:"fox-skeleton"},pb={key:0,class:"fox-skeleton-animation"},hb={class:"fox-skeleton-content"};function gb(e,o,l,n,a,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",mb,[e.animated?(t.openBlock(),t.createElementBlock("view",pb)):t.createCommentVNode("",!0),t.createElementVNode("view",hb,[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",fb,[t.renderSlot(e.$slots,"default")]))}const Er=K(db,[["render",gb]]),{create:yb,componentName:vb}=O("collapse"),kb=yb({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref(e.modelValue||(e.accordion?"":[])),a=t.computed(()=>({[vb]:!0}));t.watch(()=>e.modelValue,c=>{n.value=c});const r=(c,d,m=!0)=>{n.value=c,o("update:modelValue",c),o("change",c,d,m)},s=c=>{if(e.accordion)n.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(n.value))if(n.value.includes(c)){const d=n.value.filter(m=>m!==c);r(d,c,!1)}else{const d=n.value.concat([c]);r(d,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?n.value===c:Array.isArray(n.value)?n.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:l,classes:a}}});function bb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const Tr=K(kb,[["render",bb]]),{create:Sb,componentName:Cb}=O("collapse-item"),wb=Sb({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:Q.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const o=t.ref(null),l=t.ref(null),n=t.inject("collapseParent"),a=t.reactive(n),r=t.computed(()=>{const h=Cb;return{[h]:!0,[h+"__border"]:e.border}}),s=t.computed(()=>a?a.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{a.updateVal(e.name)},d=()=>{s.value&&(i.value="auto")},m=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},f=()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?m():f()}),{classes:r,renderIcon:Ul,wrapperRef:o,contentRef:l,open:m,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:d}}}),Nb={class:"fox-collapse-item__title-main"},Bb={class:"fox-collapse-item__title-main-value"},Vb=["innerHTML"],Ab={key:2,class:"fox-collapse-item__title-label"},Eb={key:0,class:"fox-collapse-item__title-sub"},Tb=["innerHTML"],$b={key:0,class:"fox-collapse__item-extraWrapper"},Db={class:"fox-collapse__item-extraWrapper__extraRender"},Ib={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function qb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:o[0]||(o[0]=(...s)=>e.toggle&&e.toggle(...s))},[t.createElementVNode("view",Nb,[t.createElementVNode("view",Bb,[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,Vb)),e.label?(t.openBlock(),t.createElementBlock("view",Ab,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",Eb,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,Tb)),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",$b,[t.createElementVNode("div",Db,[t.renderSlot(e.$slots,"extra")])])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:t.normalizeStyle({willChange:"height",height:e.wrapperHeight}),onTransitionend:o[1]||(o[1]=(...s)=>e.onTransitionEnd&&e.onTransitionEnd(...s))},[t.createElementVNode("view",Ib,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const $r=K(wb,[["render",qb]]),Mb=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:zb,create:Lb,scope:xb}=O("table"),Pb=Lb({components:{RenderColumn:Mb,DownArrow:Q.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:o,slots:l}){const{t:n}=re.useFoxI18n(xb),a=t.reactive({curData:e.data}),r=t.computed(()=>({[zb]:!0})),s=g=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${g.align?g.align:""}`]:!0}),i=g=>g.stylehead?g.stylehead:"",c=g=>g.stylecolumn?g.stylecolumn:"",d=g=>e.columns.filter(b=>b.key===g)[0],m=g=>{const b=e.columns.filter(y=>y.key===g);return b[0].stylecolumn?b[0].stylecolumn:""},f=g=>{g.sorter&&(o("sorter",g),a.curData=typeof g.sorter=="function"?a.curData.sort(g.sorter):g.sorter==="default"?a.curData.sort():a.curData)},h=()=>e.columns.map(g=>[g.key,g.render]);return t.watch(()=>e.data,g=>{a.curData=g.slice()}),{...t.toRefs(a),classes:r,cellClasses:s,getColumnItem:d,getColumnItemStyle:m,handleSorterClick:f,sortDataItem:h,t:n,stylehead:i,stylecolumn:c}}}),Rb={class:"fox-table__main__head"},Ob={class:"fox-table__main__head__tr"},Fb=["onClick"],Ub={class:"fox-table__main__body"},Kb={key:1},Hb={key:0,class:"fox-table__nodata"},jb={key:0,class:"fox-table__nodata__text"},Wb={key:1,class:"fox-table__summary"},Yb=["innerHTML"];function Xb(e,o,l,n,a,r){const s=t.resolveComponent("DownArrow"),i=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",Rb,[t.createElementVNode("view",Ob,[(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:d=>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,Fb))),128))])]),t.createElementVNode("view",Ub,[(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(),([d,m])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:t.normalizeStyle(e.getColumnItemStyle(d))},[typeof c[d]=="function"||typeof m=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[m,c[d]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",Kb,t.toDisplayString(c[d]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Hb,[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",jb,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",Wb,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,Yb)])):t.createCommentVNode("",!0)],2)}const Dr=K(Pb,[["render",Xb]]),{componentName:Qb,create:Gb}=O("ellipsis"),Zb=Gb({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:o}){const l=t.ref(null);let n=null,a=0;const r=t.ref(),s=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>({[Qb]:!0}));t.watch(()=>e.content,(y,v)=>{y!=v&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!l.value)return;const y=window.getComputedStyle(l.value);n=document.createElement("div"),Array.prototype.slice.apply(y).forEach(p=>{n.style.setProperty(p,y.getPropertyValue(p))}),n.style.position="fixed",n.style.left="999999px",n.style.top="999999px",n.style.zIndex="-1000",n.style.height="auto",n.style.minHeight="auto",n.style.maxHeight="auto",n.style.textOverflow="clip",n.style.whiteSpace="normal",n.style.webkitLineClamp="unset",n.style.display="block";const u=h(y.lineHeight==="normal"?e.lineHeight:y.lineHeight);a=Math.floor(u*(Number(e.rows)+.5)+h(y.paddingTop)+h(y.paddingBottom)),n.innerText=e.content,document.body.appendChild(n),d()},d=()=>{if(n.offsetHeight<=a)s.exceeded=!1,document.body.removeChild(n);else{s.exceeded=!0;const y=e.content.length,v=Math.floor((0+y)/2),u=e.direction==="middle"?f([0,v],[v,y]):m(0,y);r.value=u,document.body.removeChild(n)}},m=(y,v)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(v-y<=1)return e.direction==="end"?{leading:e.content.slice(0,y)+e.symbol}:{tailing:e.symbol+e.content.slice(v,p)};const k=Math.round((y+v)/2);return e.direction==="end"?n.innerText=e.content.slice(0,k)+e.symbol+u:n.innerText=u+e.symbol+e.content.slice(k,p),n.offsetHeight<=a?e.direction==="end"?m(k,v):m(y,k):e.direction==="end"?m(y,k):m(k,v)},f=(y,v)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(y[1]-y[0]<=1&&v[1]-v[0]<=1)return{leading:e.content.slice(0,y[0])+e.symbol,tailing:e.symbol+e.content.slice(v[1],p)};const k=Math.floor((y[0]+y[1])/2),S=Math.ceil((v[0]+v[1])/2);return n.innerText=e.content.slice(0,k)+e.symbol+u+e.symbol+e.content.slice(S,p),n.offsetHeight<=a?f([k,y[1]],[v[0],S]):f([y[0],k],[S,v[1]])},h=y=>{if(!y)return 0;const v=y.match(/^\d*(\.\d*)?/);return v?Number(v[0]):0},g=y=>{y==1?(s.expanded=!0,o("change","expand")):(s.expanded=!1,o("change","collapse"))},b=()=>{o("click")};return{...t.toRefs(s),root:l,ellipsis:r,classes:i,clickHandle:g,handleClick:b}}}),Jb={key:0},_b={key:1},eS={key:2};function tS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[2]||(o[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Jb,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",_b,[t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.leading),1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:o[0]||(o[0]=t.withModifiers(s=>e.clickHandle(1),["stop"]))},t.toDisplayString(e.expandText),1)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.tailing),1)])):t.createCommentVNode("",!0),e.exceeded&&e.expanded?(t.openBlock(),t.createElementBlock("view",eS,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:o[1]||(o[1]=t.withModifiers(s=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const Ir=K(Zb,[["render",tS]]),{componentName:oS,create:nS}=O("animate"),lS=nS({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:o}){const{type:l,loop:n,action:a}=t.toRefs(e),r=t.reactive({clicked:!1});let s=t.computed(()=>({"fox-animate__container":!0,[`${oS}-${l.value}`]:a.value==="initial"||r.clicked?l.value:!1,loop:n.value}));const i=c=>{r.clicked=!0,n.value||setTimeout(()=>{r.clicked=!1},1e3),o("click",c)};return{...t.toRefs(r),classes:s,handleClick:i}}}),aS={class:"fox-animate"};function rS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",aS,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...s)=>e.handleClick&&e.handleClick(...s)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const qr=K(lS,[["render",rS]]),{componentName:sS,create:iS}=O("watermark"),cS=iS({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:o}){const l=t.reactive({base64Url:""}),{zIndex:n,gapX:a,gapY:r,width:s,height:i,rotate:c,image:d,imageWidth:m,imageHeight:f,content:h,fontStyle:g,fontWeight:b,fontColor:y,fontSize:v,fontFamily:u}=e,p=()=>{const S=document.createElement("canvas"),A=window.devicePixelRatio,V=S.getContext("2d"),I=`${(a+s)*A}px`,B=`${(r+i)*A}px`,C=s*A,w=i*A;if(S.setAttribute("width",I),S.setAttribute("height",B),V){if(d){V.translate(C/2,w/2),V.rotate(Math.PI/180*Number(c));const L=new Image;L.crossOrigin="anonymous",L.referrerPolicy="no-referrer",L.src=d,L.onload=()=>{V.drawImage(L,-m*A/2,-f*A/2,m*A,f*A),V.restore(),l.base64Url=S.toDataURL()}}else if(h){V.textBaseline="middle",V.textAlign="center",V.translate(C/2,w/2),V.rotate(Math.PI/180*Number(c));const L=Number(v)*A;V.font=`${g} normal ${b} ${L}px/${w}px ${u}`,V.fillStyle=y,V.fillText(h,0,0),V.restore(),l.base64Url=S.toDataURL()}}else throw new Error("当前环境不支持Canvas")};p(),t.watch(()=>[n,a,r,s,i,c,d,m,f,h,g,b,y,v,u],()=>{p()});const k=t.computed(()=>{const S=sS;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...t.toRefs(l),classes:k}}});function uS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}const Mr=K(cS,[["render",uS]]);function dS(e,o=2){return Object.is(parseFloat(e),NaN)?console.log(`传入的值:${e}不是一个数字`):(e=parseFloat(e),(Math.round((e+Number.EPSILON)*Math.pow(10,o))/Math.pow(10,o)).toFixed(o))}const{componentName:fS,create:mS}=O("trend-arrow"),pS=mS({components:{TriangleUp:Q.TriangleUp,TriangleDown:Q.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const o=t.reactive({rateTrend:e.rate>0}),l=t.computed(()=>({[fS]:!0})),n=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;o.rateTrend=r>0;const d=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?o.rateTrend?"+":"-":""}${dS(Number(d),s)}%`}),a=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:d}=e;return{color:d===0?c:i?o.rateTrend?s:r:c}});return{...t.toRefs(o),classes:l,calcRate:n,calcStyle:a}}});function hS(e,o,l,n,a,r){const s=t.resolveComponent("TriangleUp"),i=t.resolveComponent("TriangleDown");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.arrowLeft?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?t.renderSlot(e.$slots,"up-icon",{key:1},()=>[t.createVNode(s,{color:e.riseColor},null,8,["color"])]):t.createCommentVNode("",!0),Number(e.rate)!==0&&!e.rateTrend?t.renderSlot(e.$slots,"down-icon",{key:2},()=>[t.createVNode(i,{color:e.dropColor},null,8,["color"])]):t.createCommentVNode("",!0),e.arrowLeft?(t.openBlock(),t.createElementBlock("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)):t.createCommentVNode("",!0)],2)}const zr=K(pS,[["render",hS]]),{create:gS}=O("tour"),yS=gS({components:{[uo.name]:uo,Close:Q.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:o}){const l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),n=t.ref({}),a=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:m,maskWidth:f,maskHeight:h}=e,{width:g,height:b,left:y,top:v}=n.value,u=[y+g/2,v+b/2],p=Number(f||g),k=Number(h||b);return{width:`${p+ +m[1]*2}px`,height:`${k+ +m[0]*2}px`,top:`${u[1]-k/2-+m[0]}px`,left:`${u[0]-p/2-+m[1]}px`}}),s=m=>{m=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,i()}),o("change",l.active)},i=()=>{const m=document.querySelector(`#${e.steps[l.active].target}`),f=Se(m);n.value=f},c=()=>{l.showTour=!1,l.showPopup=!1,o("close",l.active),o("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{l.active=0,i()}),t.watch(()=>e.modelValue,m=>{m&&i(),l.active=0,l.showTour=m,l.showPopup=m}),{...t.toRefs(l),classes:a,maskStyle:r,changeStep:s,close:c,handleClickMask:d}}}),vS={key:0,class:"fox-tour-content"},kS={key:0,class:"fox-tour-content-top"},bS={class:"fox-tour-content-inner"},SS={class:"fox-tour-content-bottom"},CS={class:"fox-tour-content-bottom-init"},wS={class:"fox-tour-content-bottom-operate"},NS={key:1,class:"fox-tour-content fox-tour-content-tile"},BS={class:"fox-tour-content-inner"};function VS(e,o,l,n,a,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-popover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour-masked",onClick:o[0]||(o[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":o[5]||(o[5]=m=>e.showPopup=m),location:c.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:c.popoverOffset||[0,12],arrowOffset:c.arrowOffset||0},{content:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",vS,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",kS,[t.createElementVNode("div",{onClick:o[1]||(o[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",bS,t.toDisplayString(c.content),1),t.createElementVNode("div",SS,[t.createElementVNode("div",CS,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",wS,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:o[2]||(o[2]=m=>e.changeStep("prev"))},t.toDisplayString(e.prevStepTxt),1)):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:o[3]||(o[3]=(...m)=>e.close&&e.close(...m))},t.toDisplayString(e.completeTxt),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:o[4]||(o[4]=m=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",NS,[t.createElementVNode("div",BS,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const Lr=K(yS,[["render",VS]]),{componentName:Dw,create:AS,scope:ES}=O("address"),TS=AS({components:{Location:Q.Location,Location2:Q.Location2,Check:Q.Check,Close:Q.Close,Left:Q.Left,[ie.name]:ie,[oo.name]:oo},inheritAttrs:!1,props:{...ot,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:o}){const{t:l}=re.useFoxI18n(ES),n=t.ref(null),a=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),d=t.ref(["province","city","country","town"]),m=t.ref(null),f=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}}),g=T=>{if(!Array.isArray(T))throw new TypeError("params muse be array.");if(!T.length)return[];T.forEach($=>{if(!$.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const M=[];return T=T.sort(($,z)=>$.title.localeCompare(z.title)),T.forEach($=>{const z=M.findIndex(F=>F.title===$.title);z<=-1?M.push({title:$.title,list:[].concat($)}):M[z].list.push($)}),M};let b=t.ref([]),y=t.reactive({});const v=t.ref("self"),u=t.ref(20),p=()=>{const T=e.modelValue,M=T.length;if(M>0){if(i.value=M-1,h.value.length==0){i.value=0;return}for(let $=0;$<M;$++){let z=[];switch($){case 0:z=e.province;break;case 1:z=e.city;break;case 2:z=e.country;break;default:z=e.town}b.value[$]=z.filter(F=>F.id==T[$])[0]}S()}},k=(T,M)=>T&&T.name||i.value<M&&T?T.name:e.columnsPlaceholder[M]||l("select"),S=()=>{I(),t.nextTick(()=>{const T=a.value&&a.value.getElementsByClassName("active")[0];if(T){const M=T.offsetLeft;u.value=M||20}})},A=T=>{const M=i.value;c.value=i.value;const $={custom:d.value[M]};b.value[M]=T;for(let z=M+2;z<4;z++)b.value.splice(z,1);M<3?(i.value=M+1,S(),$.next=d.value[i.value],$.value=T,o("change",$)):(w(),o("update:modelValue"))},V=(T,M)=>{c.value=i.value,k(T,M)&&(i.value=M,S())},I=()=>{const T=m.value,M=c.value,$=f.value[i.value];T?.scrollTop&&(f.value[M]=T?.scrollTop),t.nextTick(()=>{T?.scrollTo({top:$,behavior:"auto"})})},B=T=>{const M=e.existAddress;let $={};M.forEach(z=>{z&&z.selectedAddress&&($=z),z.selectedAddress=!1}),T.selectedAddress=!0,y=T,o("selected",$,T,M),w()},C=()=>{b.value=[],i.value=0,S()},w=(T="self")=>{v.value=T=="cross"?"cross":"self",r.value=!1},L=()=>{v.value="mask"},x=()=>{const T={addressIdStr:"",addressStr:"",province:b.value[0],city:b.value[1],country:b.value[2],town:b.value[3]},M={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach($=>{const z=b.value[$];T.addressIdStr+=`${$?"_":""}${z&&z.id||0}`,T.addressStr+=z&&z.name||""}),M.data=T):M.data=y,C(),v.value=="self"?o("close",M):o("close-mask",{closeWay:v}),o("update:visible",!1)},q=()=>{const T=s.value;s.value=T=="exist"?"custom":"exist",C(),o("switch-module",{type:s.value})},N=(T,M)=>{A(M)};return t.watch(()=>e.visible,T=>{r.value=T}),t.watch(()=>r.value,T=>{T&&p()}),{showPopup:r,privateType:s,tabIndex:i,tabName:d,selectedRegion:b,switchModule:q,closeWay:v,close:x,getTabName:k,nextAreaList:A,regionLine:n,tabRegion:a,lineDistance:u,changeRegionTab:V,selectedExist:B,clickOverlay:L,handClose:w,handleElevatorItem:N,initCustomSelected:p,...t.toRefs(e),t:l,regionList:h,transformData:g,scrollDom:m}}}),$S={class:"fox-address"},DS={class:"fox-address__header"},IS={class:"fox-address__header__title"},qS={key:0,class:"fox-address__custom"},MS={class:"fox-address__region",ref:"tabRegion"},zS=["onClick"],LS={key:0,class:"active fox-address__region-item"},xS={key:0,class:"fox-address__detail"},PS={class:"fox-address__detail-list",ref:"scrollDom"},RS=["onClick"],OS={key:1,class:"fox-address__elevator-group"},FS={key:1,class:"fox-address__exist"},US={class:"fox-address__exist-group"},KS={class:"fox-address__exist-group-list"},HS=["onClick"],jS={class:"fox-address__exist-item-info"},WS={key:0,class:"fox-address__exist-item-info-name"},YS={key:1,class:"fox-address__exist-item-info-phone"},XS={class:"fox-address__exist-item-info-bottom"},QS={class:"fox-address__exist-choose-btn"};function GS(e,o,l,n,a,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),d=t.resolveComponent("fox-elevator"),m=t.resolveComponent("Location2"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:o[3]||(o[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":o[4]||(o[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",$S,[t.createElementVNode("view",DS,[t.createElementVNode("view",{class:"fox-address__header-back",onClick:o[0]||(o[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",IS,t.toDisplayString(e.privateType=="custom"?e.customAddressTitle||e.t("selectRegion"):e.existAddressTitle||e.t("deliveryTo")),1),t.createElementVNode("view",{class:"fox-address__header-close",onClick:o[1]||(o[1]=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",qS,[t.createElementVNode("view",MS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,g)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",g==e.tabIndex?"active":""]),key:g,onClick:b=>e.changeRegionTab(h,g)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,g)),1)],10,zS))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",LS,[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",xS,[t.createElementVNode("ul",PS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,g)=>(t.openBlock(),t.createElementBlock("li",{key:g,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick:b=>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,RS))),128))],512)])):(t.openBlock(),t.createElementBlock("view",OS,[t.createVNode(d,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",FS,[t.createElementVNode("div",US,[t.createElementVNode("ul",KS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,g)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:g,onClick:b=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(m,{class:"fox-address-select-icon",size:"13px"})]),h.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",jS,[h.name?(t.openBlock(),t.createElementBlock("div",WS,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",YS,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",XS,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,HS))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:o[2]||(o[2]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.createElementVNode("div",QS,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 xr=K(TS,[["render",GS]]),{componentName:ZS,create:JS}=O("barrage"),_S=JS({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const o=new Date().getTime(),l=!!t.useSlots().default,n=t.computed(()=>({[ZS]:!0}));let a=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),d=t.ref(e.top),m=t.ref(0),f=e.speeds,h=t.ref(0);t.onMounted(()=>{g(),l&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(y(),m.value=0,b("hidden")):document.visibilityState==="visible"&&g()})}),t.onUnmounted(()=>{i.value=[],y()});const g=()=>{h.value=a.value.offsetWidth,l&&b("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${h.value}px`),u()},300)},b=k=>{let A=document.getElementsByClassName("slotBody"+o)?.[0]?.children||[];const V=[];A&&Array.from(A).forEach(I=>{k=="init"?(I.style.opacity="0",V.push(I)):(I.classList="",I.style={})}),k=="init"&&(i.value=V)},y=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,k=>{e.danmu.length>0&&(i.value=[...k])});const v=k=>{const S=m.value%i.value.length;!e.loop&&m.value===i.value.length?i.value.splice(i.value.length,0,k):i.value.splice(S,0,k)},u=()=>{y(),s=setTimeout(()=>{p()},e.frequency)},p=()=>{const k=e.loop?m.value%i.value.length:m.value;let S=document.createElement("view");l&&typeof i.value[k]=="object"?(S=i.value[k],S?.classList?.add("fox-barrage__item")):(S.innerHTML=i.value[k],S.classList.add("fox-barrage__item"),r.value.appendChild(S)),t.nextTick(()=>{const A=S.offsetHeight;if(S?.classList?.add("move"),S.style.animationDuration=`${f}ms`,S.style.top=k%c.value*(A+d.value)+20+"px",S.style.opacity="1",!l){const V=S.offsetWidth;S.style.width=V+20+"px"}S.addEventListener("animationend",()=>{l?S.classList.remove("move"):r.value.removeChild(S)}),!(!e.loop&&m.value>=i.value.length-1)&&(m.value++,m.value>=i.value.length&&(m.value=0),S.removeEventListener("animationend",()=>{}),u())})};return{classTime:o,classes:n,danmuList:i,dmBody:a,dmContainer:r,add:v}}});function e0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"dmBody",class:t.normalizeClass(e.classes)},[t.createElementVNode("div",{ref:"dmContainer",class:t.normalizeClass(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["slotBody","slotBody"+e.classTime])},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)],2)],2)}const Pr=K(_S,[["render",e0]]),{componentName:t0,create:o0,scope:n0}=O("signature"),l0=o0({props:{customClass:{type:String,default:""},lineWidth:{type:Number,default:2},strokeStyle:{type:String,default:()=>document.getElementsByTagName("body")[0].className.indexOf("fox-theme-dark")==-1?"#000":"#fff"},type:{type:String,default:"png"},unSupportTpl:{type:String,default:""}},components:{[ze.name]:ze},emits:["start","end","signing","confirm","clear"],setup(e,{emit:o}){const{toLocaleRefs:l}=re.useFoxI18n(n0),n=l(e,["unSupportTpl","reSign","confirmText"]),a=t.ref(null),r=t.ref(null),s=t.computed(()=>({[t0]:!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 p=document.createElement("canvas");return!!(p.getContext&&p.getContext("2d"))},d=()=>{a.value.addEventListener(i.events[0],m,!1)},m=p=>{p.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,o("start"),a.value.addEventListener(i.events[1],f,!1),a.value.addEventListener(i.events[2],h,!1),a.value.addEventListener(i.events[3],g,!1)},f=p=>{p.preventDefault();let k=i.isSupportTouch?p.touches[0]:p;o("signing",k);let S=a.value.getBoundingClientRect(),A=k.clientX-S.left,V=k.clientY-S.top;i.ctx.lineTo(A,V),i.ctx.stroke()},h=p=>{p.preventDefault(),o("end"),a.value.removeEventListener(i.events[1],f,!1),a.value.removeEventListener(i.events[2],h,!1)},g=p=>{p.preventDefault(),a.value.removeEventListener(i.events[1],f,!1),a.value.removeEventListener(i.events[2],h,!1)},b=()=>{a.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),o("clear")},y=()=>{u(a.value)},v=p=>{if(!p)return!0;var k=document.createElement("canvas");return k.width=p.width,k.height=p.height,p?.toDataURL()==k.toDataURL()},u=p=>{let k;switch(e.type){case"png":k=p.toDataURL("image/png");break;case"jpg":k=p.toDataURL("image/jpeg",.8);break}const S=v(p)?"请绘制签名":p,A=v(p)?"":k;o("confirm",S,A)};return t.onMounted(()=>{c()&&(i.ctx=a.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,d())}),{...n,...t.toRefs(i),canvas:a,wrap:r,isCanvasSupported:c,confirm:y,clear:b,classes:s}}}),a0={class:"fox-signature-inner",ref:"wrap"},r0=["height","width"],s0={key:0,class:"fox-signature-unsopport"};function i0(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",a0,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,r0),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",s0,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(s,{class:"fox-signature-btn",type:"default",onClick:o[0]||(o[0]=i=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(s,{class:"fox-signature-btn",type:"primary",onClick:o[1]||(o[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const Rr=K(l0,[["render",i0]]),{componentName:c0,create:u0,scope:d0}=O("time-select"),f0=u0({components:{[ie.name]:ie},props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!0},teleportDisable:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,o)=>{const{t:l}=re.useFoxI18n(d0),n=t.computed(()=>({[c0]:!0})),a=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),s=t.computed(()=>e.currentTime),i=()=>{o.emit("update:visible",!1),o.emit("select",s.value)};return t.provide("currentKey",r),t.provide("currentTime",s),{classes:n,popStyle:a,props:e,close:i,t:l}}}),m0={class:"fox-time-select__title"},p0={class:"fox-time-select__title__fixed"},h0={key:0},g0={class:"fox-time-select__content"},y0={class:"fox-time-select__content__pannel"},v0={class:"fox-time-select__content__detail"};function k0(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{position:"bottom",closeable:"",round:"",teleportDisable:e.teleportDisable,visible:e.visible,style:t.normalizeStyle(e.popStyle),"lock-scroll":e.lockScroll,onClickOverlay:e.close,onClickCloseIcon:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",m0,[t.createElementVNode("view",p0,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",h0,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",g0,[t.createElementVNode("view",y0,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",v0,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Or=K(f0,[["render",k0]]),{componentName:b0,create:S0}=O("time-pannel"),C0=S0({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,o)=>{const l=t.inject("currentKey"),n=t.reactive({currentKey:l}),a=t.computed(()=>({[b0]:!0,"fox-time-pannel--curr":n.currentKey==e.pannelKey})),r=s=>{o.emit("change",s)};return{...t.toRefs(n),classes:a,handlePannel:r}}});function w0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=s=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const Fr=K(C0,[["render",w0]]),{componentName:N0,create:B0}=O("time-detail"),V0=B0({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,o)=>{const l=t.inject("currentKey"),n=t.inject("currentTime"),a=t.reactive({currentKey:l,currentTime:n}),r=t.computed(()=>({[N0]:!0})),s=d=>{let m=a.currentTime.find(f=>f.key==a.currentKey);if(m)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":m.list.filter(f=>f===d).length>0}},i=t.computed(()=>e.times.find(d=>d.key==a.currentKey).list),c=d=>{o.emit("select",d)};return{classes:r,...t.toRefs(a),getClass:s,renderData:i,handleTime:c}}}),A0={class:"fox-time-detail__detail fox-time-detail__detail--moring"},E0={class:"fox-time-detail__detail__list"},T0=["onClick"];function $0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",A0,[t.createElementVNode("view",E0,[(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,T0))),128))])])],2)}const Ur=K(V0,[["render",$0]]),{componentName:Iw,create:D0,scope:I0}=O("sku-header"),q0=D0({props:{goods:{type:Object,default:{}}},emits:[],components:{[Je.name]:Je},setup(e,{emit:o,slots:l}){const{t:n}=re.useFoxI18n(I0);return{getSlots:r=>l[r],t:n}}}),M0={class:"fox-sku-header"},z0=["src"],L0={class:"fox-sku-header-right"},x0={key:3,class:"fox-sku-header-right-extra"};function P0(e,o,l,n,a,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",M0,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,z0),t.createElementVNode("view",L0,[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",x0,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const R0=K(q0,[["render",P0]]),{componentName:qw,create:O0}=O("sku-select"),F0=O0({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:o}){const l=t.ref([]);return t.watch(()=>e.sku,a=>{l.value=[].slice.call(a)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(l.value=[].slice.call(e.sku))}),{skuInfo:l,changeSaleChild:(a,r,s,i)=>{a.checkFlag||a.disable||o("selectSku",{sku:a,skuIndex:r,parentSku:s,parentIndex:i})}}}}),U0={class:"fox-sku-select"},K0={class:"fox-sku-select-item-title"},H0={class:"fox-sku-select-item-skus"},j0=["onClick"];function W0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",U0,[(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",K0,t.toDisplayString(s.name),1),t.createElementVNode("view",H0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:m=>e.changeSaleChild(c,d,s,i),key:c.name},t.toDisplayString(c.name),11,j0))),128))])]))),128))])}const Y0=K(F0,[["render",W0]]),{componentName:Mw,create:X0}=O("sku-stepper"),Q0=X0({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:{[dt.name]:dt},setup(e,{emit:o}){const l=t.ref(e.stepperMin);return t.onMounted(()=>{l.value=e.stepperMin}),{goodsCount:l,add:c=>{o("add",c)},reduce:c=>{o("reduce",c)},overlimit:(c,d)=>{o("overLimit",{action:d,value:parseInt(l.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&Ze(c)=="function"?c():""},changeStepper:c=>{l.value=c,o("changeStepper",c)}}}}),G0={class:"fox-sku-stepper"},Z0={class:"fox-sku-stepper-title"},J0=["innerHTML"],_0={class:"fox-sku-stepper-count"};function eC(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",G0,[t.createElementVNode("view",Z0,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,J0),t.createElementVNode("view",_0,[t.createVNode(s,{modelValue:e.goodsCount,"onUpdate:modelValue":o[0]||(o[0]=i=>e.goodsCount=i),min:e.stepperMin,max:e.stepperMax,onAdd:e.add,onReduce:e.reduce,onOverlimit:e.overlimit,onChange:e.changeStepper},null,8,["modelValue","min","max","onAdd","onReduce","onOverlimit","onChange"])])])}const tC=K(Q0,[["render",eC]]),{componentName:zw,create:oC}=O("sku-operate"),nC=oC({props:{btnOptions:{type:Array,default:()=>["confirm"]},btnExtraText:{type:String,default:""},buyText:{type:String,default:"立即购买"},addCartText:{type:String,default:"加入购物车"},confirmText:{type:String,default:"确定"}},emits:["click","changeSku","changeBuyCount","clickBtnOperate"],setup(e,{emit:o,slots:l}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{o("clickBtnOperate",s)},getSlots:s=>l[s]}}}),lC={key:0,class:"fox-sku-operate"},aC={key:0,class:"fox-sku-operate-desc"},rC={key:1,class:"fox-sku-operate-btn"},sC=["onClick"];function iC(e,o,l,n,a,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",lC,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",aC,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",rC,[(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,sC))),128))]))])):t.createCommentVNode("",!0)}const cC=K(nC,[["render",iC]]),{componentName:Lw,create:uC,scope:dC}=O("sku"),fC=uC({props:{...ot,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:R0,SkuSelect:Y0,SkuStepper:tC,SkuOperate:cC,[ie.name]:ie},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=re.useFoxI18n(dC),a=n(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,v=>{r.value=v}),t.watch(()=>r.value,v=>{v==!1&&y()}),t.onMounted(()=>{});const i=v=>l[v],c=v=>{o("select-sku",v)},d=v=>{s.value=v,o("change-stepper",v)},m=v=>{o("add",v)},f=v=>{o("reduce",v)},h=v=>{o("over-limit",v)},g=v=>{o("click-btn-operate",{type:v,value:s.value})},b=v=>{v=="icon"&&o("click-close-icon"),v=="overlay"&&o("click-overlay"),v=="close"&&o("close"),r.value=!1},y=()=>{o("update:visible",!1)};return{showPopup:r,closePopup:b,selectSku:c,changeStepper:d,stepperOverLimit:h,clickBtnOperate:g,add:m,reduce:f,getSlots:i,...a}}}),mC={class:"fox-sku"},pC={class:"fox-sku-content"};function hC(e,o,l,n,a,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),d=t.resolveComponent("sku-operate"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":o[0]||(o[0]=f=>e.showPopup=f),onClickCloseIcon:o[1]||(o[1]=f=>e.closePopup("icon")),onClickOverlay:o[2]||(o[2]=f=>e.closePopup("overlay")),onClose:o[3]||(o[3]=f=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",mC,[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",pC,[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(d,{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 Kr=K(fC,[["render",hC]]),{create:gC}=O("card"),yC=gC({components:{[Je.name]:Je,[co.name]:co},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:o,slots:l}){return{isHaveSlot:a=>l[a]}}}),vC={class:"fox-card"},kC={class:"fox-card__left"},bC=["src"],SC={class:"fox-card__right"},CC={class:"fox-card__right__title"},wC={key:0,class:"fox-card__right__price"},NC={class:"fox-card__right__other"},BC={class:"fox-card__right__shop"},VC={class:"fox-card__right__shop__name"};function AC(e,o,l,n,a,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",vC,[t.createElementVNode("div",kC,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,bC)]),t.createElementVNode("div",SC,[t.createElementVNode("div",CC,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",wC,[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",NC,[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",BC,[t.createElementVNode("div",VC,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Hr=K(yC,[["render",AC]]),{create:EC,scope:TC}=O("ecard"),$C=EC({components:{[dt.name]:dt},props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:Array,default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"¥"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:o}){const{t:l}=re.useFoxI18n(TC),n=t.ref(null),a=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,g)=>{n.value=g,s.value=e.cardAmountMin,a.value=h.price,o("change",h),o("update:modelValue",h.price)},d=h=>{let b=h.target.value.replace(/[^\d]/g,"");r.value=b,a.value=b,Number(b)>e.cardAmountMax&&(r.value=e.cardAmountMax,a.value=e.cardAmountMax),Number(b)<e.cardAmountMin&&(r.value=e.cardAmountMin,a.value=e.cardAmountMin),o("inputChange",Number(r.value)),o("update:modelValue",Number(r.value))},m=()=>{n.value="input",s.value=e.cardAmountMin,a.value=r.value,o("update:modelValue",r.value),o("inputClick")},f=h=>{s.value=h,o("changeStep",s.value,a.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:f,change:d,inputClick:m,stepValue:s,currentIndex:n,inputValue:r,money:i,t:l}}}),DC={class:"fox-ecard"},IC={class:"fox-ecard__title"},qC={class:"fox-ecard__list"},MC=["onClick"],zC={class:"fox-ecard__list__input--con"},LC=["placeholder"],xC={class:"fox-ecard__list__step"};function PC(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",DC,[t.createElementVNode("view",IC,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",qC,[(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:d=>e.handleClick(i,c)},t.toDisplayString(i.price),11,MC))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:o[2]||(o[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",zC,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":o[0]||(o[0]=i=>e.inputValue=i),onInput:o[1]||(o[1]=(...i)=>e.change&&e.change(...i)),placeholder:e.placeholder||e.t("placeholder")},null,40,LC),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",xC,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(s,{modelValue:e.stepValue,"onUpdate:modelValue":o[3]||(o[3]=i=>e.stepValue=i),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const jr=K($C,[["render",PC]]),{create:RC,scope:OC}=O("address-list-item"),FC=RC({components:{Del:Q.Del,Edit:Q.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:o}){const{t:l}=re.useFoxI18n(OC);return{delClick:s=>{o("delIcon",s,e.item),s.stopPropagation()},editClick:s=>{o("editIcon",s,e.item),s.stopPropagation()},contentsClick:s=>{o("clickItem",s,e.item),s.stopPropagation()},t:l}}}),UC={class:"fox-address-list-item__info"},KC={class:"fox-address-list-item__info-contact"},HC={class:"fox-address-list-item__info-contact-name"},jC={class:"fox-address-list-item__info-contact-tel"},WC={key:0,class:"fox-address-list-item__info-contact-default"},YC={class:"fox-address-list-item__info-handle"},XC={class:"fox-address-list-item__addr"};function QC(e,o,l,n,a,r){const s=t.resolveComponent("Del"),i=t.resolveComponent("Edit");return t.openBlock(),t.createElementBlock("div",{class:"fox-address-list-item",onClick:o[0]||(o[0]=(...c)=>e.contentsClick&&e.contentsClick(...c))},[t.createElementVNode("div",UC,[t.createElementVNode("div",KC,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",HC,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",jC,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",WC,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",YC,[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",XC,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const dl=K(FC,[["render",QC]]),{create:GC}=O("address-list-general"),ZC=GC({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:dl,[ze.name]:ze,[ro.name]:ro},setup(e,{emit:o}){const l=()=>t.h(dl,{item:e.item,onDelIcon(A){s(A)},onEditIcon(A){i(A)},onClickItem(A){c(A)}});let n=null;const a=t.ref(!1),r=t.ref(!1),s=A=>{o("delIcon",A,e.item),A.stopPropagation()},i=A=>{o("editIcon",A,e.item),A.stopPropagation()},c=A=>{a.value||(o("clickItem",A,e.item),A.stopPropagation())},d=A=>{o("longDel",A,e.item),A.stopPropagation()},m=A=>{n=0,r.value=!0,o("longDown",A,e.item)};return{renderCompontent:l,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:d,holddownstart:A=>{n=setTimeout(()=>{m(A)},300)},holddownmove:()=>{clearTimeout(n)},holddownend:()=>{clearTimeout(n)},copyCLick:A=>{o("longCopy",A,e.item),A.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:A=>{o("longSet",A,e.item),A.stopPropagation()},maskClick:A=>{n!=0&&(r.value=!1),A.stopPropagation(),A.preventDefault()},swipeDelClick:A=>{o("swipeDel",A,e.item),A.stopPropagation()},swipestart:()=>{a.value=!1},swipemove:()=>{a.value=!0}}}}),JC={key:0,class:"fox-address-list-general"},_C={class:"fox-address-list-swipe"};function e1(e,o,l,n,a,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(i,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(s,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>[t.createTextVNode("删除")]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",_C,[(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",JC,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchstart:e.holddownstart,onTouchend:e.holddownend,onTouchmove:e.holddownmove},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchstart","onTouchend","onTouchmove"])),e.longPress&&e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list-general__mask",onClick:o[3]||(o[3]=(...c)=>e.maskClick&&e.maskClick(...c))},[t.renderSlot(e.$slots,"longpress-all",{},()=>[t.createElementVNode("div",{class:"fox-address-list-general__mask-copy",onClick:o[0]||(o[0]=(...c)=>e.copyCLick&&e.copyCLick(...c))},"复制地址"),t.createElementVNode("div",{class:"fox-address-list-general__mask-set",onClick:o[1]||(o[1]=(...c)=>e.setDefault&&e.setDefault(...c))},"设置默认"),t.createElementVNode("div",{class:"fox-address-list-general__mask-del",onClick:o[2]||(o[2]=(...c)=>e.delLongClick&&e.delLongClick(...c))},"删除地址")])])):t.createCommentVNode("",!0),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-address-list__mask-bottom",onClick:o[4]||(o[4]=(...c)=>e.hideMaskClick&&e.hideMaskClick(...c))})):t.createCommentVNode("",!0)]))}const t1=K(ZC,[["render",e1]]),{componentName:o1,create:n1,scope:l1}=O("address-list"),a1=n1({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:t1,[ze.name]:ze},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:o}){const{t:l}=re.useFoxI18n(l1),n=t.ref([]),a=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[o1]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(n.value=e.data.map(y=>Tl(a,y,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(y,v)=>{o("delIcon",y,v),y.stopPropagation()},c=(y,v)=>{o("editIcon",y,v),y.stopPropagation()},d=(y,v)=>{o("clickItem",y,v),y.stopPropagation()},m=(y,v)=>{o("longCopy",y,v),y.stopPropagation()},f=(y,v)=>{o("longSet",y,v),y.stopPropagation()},h=(y,v)=>{o("longDel",y,v),y.stopPropagation()},g=(y,v)=>{o("swipeDel",y,v),y.stopPropagation()},b=y=>{o("add",y),y.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:d,clickLongCopy:m,clickLongSet:f,clickLongDel:h,clickSwipeDel:g,addAddress:b,dataArray:n,t:l}}});function r1(e,o,l,n,a,r){const s=t.resolveComponent("general-shell"),i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,d)=>(t.openBlock(),t.createBlock(s,{key:d,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:o[0]||(o[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const Wr=K(a1,[["render",r1]]),{componentName:xw,create:s1}=O("category"),i1=s1({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:o,slots:l}){const n=t.ref(0),a=t.ref(!1);return{getChildList:s=>{n.value=s,o("change",s)},checkIndex:n,categoryLeft:a}}}),c1={class:"fox-category"},u1={class:"fox-category__cateList"},d1={key:0},f1=["onClick"];function m1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",c1,[t.createElementVNode("div",u1,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",d1,[(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,f1)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Yr=K(i1,[["render",m1]]),{componentName:Pw,create:p1}=O("category-pane"),h1=p1({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:o}){return{onChange:n=>{o("onChange",n)}}}}),g1={class:"fox-category-pane"},y1={key:0,class:"fox-category-pane__cateListRight"},v1={class:"fox-category-pane__childTitle"},k1={key:0,class:"fox-category-pane__childItemList"},b1=["onClick"],S1=["src"],C1={class:"fox-category-pane__skuImg"},w1={key:1,class:"fox-category-pane__cateListRight"},N1={class:"fox-category-pane__childTitle"},B1={key:0,class:"fox-category-pane__childItemList"},V1=["onClick"],A1={class:"fox-category-pane__skuName"},E1={key:2,class:"fox-category-pane__selfItemList"},T1=["onClick"];function $1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",g1,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",y1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",v1,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",k1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,S1),t.createElementVNode("div",C1,t.toDisplayString(c?.catName),1)],8,b1))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",w1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",N1,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",B1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("div",A1,t.toDisplayString(c?.catName),1)],8,V1))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",E1,[(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,T1))),128))])):t.createCommentVNode("",!0)])}const Xr=K(h1,[["render",$1]]),{componentName:Rw,create:D1}=O("comment-header"),I1=D1({components:{[lo.name]:lo},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:o}){return{handleClick:()=>{o("handleClick")}}}}),q1={class:"fox-comment-header__user"},M1={class:"fox-comment-header__user-avter"},z1=["src"],L1={class:"fox-comment-header__user-score"},x1={key:0,class:"fox-comment-header__time"};function P1(e,o,l,n,a,r){const s=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:o[1]||(o[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",q1,[t.createElementVNode("view",M1,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,z1)):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",L1,[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":o[0]||(o[0]=i=>e.info.score=i),size:"12",spacing:"5",readonly:"",onChange:e.handleClick},null,8,["modelValue","onChange"])])],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("span",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},t.toDisplayString(e.info.nickName),3),t.renderSlot(e.$slots,"labels")],2))]),e.info.time?(t.openBlock(),t.createElementBlock("view",x1,t.toDisplayString(e.info.time),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.type=="complex"?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__${e.type}-score`])},[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":o[2]||(o[2]=i=>e.info.score=i),size:"12",spacing:"3",readonly:""},null,8,["modelValue"]),t.createElementVNode("i",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-i`])},null,2),t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-size`])},t.toDisplayString(e.info.size),3)],2)):t.createCommentVNode("",!0)])}const R1=K(I1,[["render",P1]]),{componentName:Ow,create:O1}=O("comment-images"),F1=O1({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:Q.Right},emits:["click","clickImages"],setup(e,{emit:o}){const l=t.ref(!1),n=t.ref(1),a=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),a.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),a.value=e.videos.concat(e.images)}),{isShowImage:l,initIndex:n,showImages:(s,i)=>{const{videos:c,images:d}=e,m=s=="img"?i-c.length:i;o("clickImages",{type:s,index:m,value:s=="img"?d[m]:c[m]})},totalImages:a}}}),U1=["onClick"],K1=["src"],H1=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),j1=["onClick"],W1=["src"],Y1={key:0,class:"fox-comment-images__mask"};function X1(e,o,l,n,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:d=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,K1),H1],8,U1))),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:d=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,W1),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",Y1,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,j1)):t.createCommentVNode("",!0)],64))),128))],2)}const Q1=K(F1,[["render",X1]]),{componentName:Fw,create:G1,scope:Z1}=O("comment-bottom"),J1=G1({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:Q.Fabulous,Comment:Q.Comment,MoreX:Q.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:o}){const{t:l}=re.useFoxI18n(Z1),n=t.ref(!1),a=t.ref([]);return t.onMounted(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&a.value.push(c)})}),{showPopver:n,operate:i=>{i=="more"&&(n.value=!n.value),o("clickOperate",i)},mergeOp:a,handleClick:()=>{o("handleClick")},t:l}}}),_1={class:"fox-comment-bottom"},ew={key:0},tw={class:"fox-comment-bottom__cpx"},ow=["onClick"];function nw(e,o,l,n,a,r){const s=t.resolveComponent("Fabulous"),i=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",_1,[t.createElementVNode("view",{onClick:o[0]||(o[0]=(...d)=>e.handleClick&&e.handleClick(...d)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",ew,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",tw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(d,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${d}`]),onClick:f=>e.operate(d)},[d!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[d]),1),d=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),d=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:o[1]||(o[1]=f=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,ow))),128))])])}const lw=K(J1,[["render",nw]]),{componentName:aw,create:rw,scope:sw}=O("comment"),iw=rw({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:R1,CommentImages:Q1,CommentBottom:lw,Right:Q.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:o}){const{t:l}=re.useFoxI18n(sw),n=t.computed(()=>({[aw]:!0})),a=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:n,conEllipsis:a,clickOperate:c=>{o("clickOperate",c)},handleClick:()=>{o("click",e.info)},clickImages:c=>{o("clickImages",c)},t:l}}}),cw=["innerHTML"],uw={class:"fox-comment__follow-title"},dw={class:"fox-comment__follow-com"},fw={key:0,class:"fox-comment__follow-img"};function mw(e,o,l,n,a,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),d=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:o[0]||(o[0]=(...m)=>e.handleClick&&e.handleClick(...m)),innerHTML:e.info.content},null,12,cw),t.createVNode(i,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:o[1]||(o[1]=(...m)=>e.handleClick&&e.handleClick(...m))},[t.createElementVNode("view",uw,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",dw,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",fw,[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(d,{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 Qr=K(iw,[["render",mw]]),pw=[Wl,Yl,Xl,Ql,Zl,Ne,ta,oa,na,la,aa,hn,ca,ga,Va,Aa,bn,Sn,Ea,Cn,wn,Ta,$a,No,Da,Ia,ze,qa,Ma,_e,ie,za,La,xa,Pa,Jt,Ra,Fa,Ua,Ka,Ha,ja,Wa,Ya,Xa,oo,Qa,_t,eo,Ga,Za,Ja,_a,no,er,gn,kn,vn,dt,lo,Vt,tr,nr,lr,ro,ar,rr,sr,so,cr,ur,fr,Nn,qt,pr,hr,io,gr,yr,ao,vr,kr,br,Tt,Sr,Cr,$t,Dt,Je,An,Br,Vr,Ar,co,uo,Er,Tr,$r,Dr,Ir,qr,Mr,zr,Lr,xr,Pr,Rr,Or,Fr,Ur,Kr,Hr,jr,Wr,Yr,Xr,Qr],hw=new Ts(pw,"4.0.0");exports.ActionSheet=ar;exports.Address=xr;exports.AddressList=Wr;exports.Animate=qr;exports.Audio=pr;exports.AudioOperate=hr;exports.Avatar=io;exports.AvatarGroup=gr;exports.BackTop=rr;exports.Badge=Ar;exports.Barrage=Pr;exports.Broadcast=dn;exports.BroadcastKey=ge;exports.Button=ze;exports.Calendar=kn;exports.CalendarItem=Aa;exports.Card=Hr;exports.Cascader=gn;exports.CascaderItem=ga;exports.Category=Yr;exports.CategoryPane=Xr;exports.Cell=qa;exports.CellGroup=Ma;exports.Checkbox=Cn;exports.CheckboxGroup=wn;exports.CheckboxItem=Ta;exports.CircleProgress=vr;exports.Col=xa;exports.Collapse=Tr;exports.CollapseItem=$r;exports.Comment=Qr;exports.Content=Ql;exports.CountDown=Vr;exports.CountUp=Br;exports.DataItemsKey=at;exports.DateItem=Va;exports.DatePicker=vn;exports.DateUtils=_;exports.Dialog=so;exports.Divider=Ra;exports.Domain=go;exports.DomainKey=Be;exports.DomainProvider=Ia;exports.Drag=sr;exports.Ecard=jr;exports.Elevator=oo;exports.Ellipsis=Ir;exports.Empty=br;exports.FixedNav=Ha;exports.FooterBar=Xl;exports.Grid=Fa;exports.GridItem=Ua;exports.Group=Zl;exports.HeaderBar=Yl;exports.Image=za;exports.ImagePreview=An;exports.Indicator=Ga;exports.InfiniteLoading=cr;exports.InputItem=na;exports.InputNumber=dt;exports.Item=Ne;exports.Layout=La;exports.LinkItem=Da;exports.List=yr;exports.Menu=ja;exports.MenuItem=Wa;exports.MoneyItem=la;exports.Navbar=Ka;exports.NoticeBar=kr;exports.Notify=fr;exports.NumberKeyboard=lr;exports.OverLay=_e;exports.Page=Wl;exports.Pagination=Qa;exports.Picker=Vt;exports.PickerItem=ca;exports.Popover=uo;exports.Popup=ie;exports.Price=Je;exports.PriorityPolicy=Gt;exports.Progress=ao;exports.PullRefresh=ur;exports.Radio=bn;exports.RadioGroup=Sn;exports.RadioItem=Ea;exports.Range=no;exports.Rate=lo;exports.Row=Pa;exports.RowItem=ta;exports.SearchBar=er;exports.ShortPassword=tr;exports.SideNavBar=Za;exports.SideNavBarItem=Ja;exports.Signature=Rr;exports.Skeleton=Er;exports.Sku=Kr;exports.SlotItem=oa;exports.Step=Cr;exports.Steps=Sr;exports.Sticky=Jt;exports.SubSideNavBar=_a;exports.Swipe=ro;exports.Swiper=$t;exports.SwiperItem=Dt;exports.Switch=Nn;exports.SwitchItem=$a;exports.TabPane=eo;exports.Tabbar=Ya;exports.TabbarItem=Xa;exports.Table=Dr;exports.Tabs=_t;exports.Tag=co;exports.Textarea=hn;exports.TextareaItem=aa;exports.TimeDetail=Ur;exports.TimePannel=Fr;exports.TimeSelect=Or;exports.Toast=qt;exports.Tour=Lr;exports.TrendArrow=zr;exports.UniqueID=ea;exports.Uploader=nr;exports.ValidateSchema=zl;exports.ValidateSchemaKey=xe;exports.Video=Tt;exports.WaterMark=Mr;exports.cancelRaf=fl;exports.clamp=Le;exports.clearNonNumber=Uo;exports.clone=Fo;exports.compareTo=Ro;exports.createBroadcast=po;exports.createValidateSchema=ho;exports.debounce=wt;exports.debounceRef=ks;exports.decimalLength=Al;exports.default=hw;exports.defineBroadcast=us;exports.defineConfigDomain=Ll;exports.defineDataItem=Pl;exports.defineDomain=fn;exports.defineItem=we;exports.definePageState=Rl;exports.deleteGlobalValidator=ps;exports.disabledProperty=Ce;exports.divide=rn;exports.excludeProps=El;exports.extend=Ge;exports.floatData=Tl;exports.getGlobalValidateCheckEvents=Il;exports.getGlobalValidateResetEvents=Ml;exports.getPageContentAreaHeight=Xt;exports.getPageContentAreaWidth=Qt;exports.getPageFooterAreaHeight=Bt;exports.getPageHeaderAreaHeight=Nt;exports.getRootDomain=it;exports.getScrollTopRoot=un;exports.hasSymbol=kl;exports.hinttext=No;exports.includeProps=ye;exports.indexOf=is;exports.installRules=xl;exports.integerLength=Vl;exports.isArray=fo;exports.isArrayLike=Cl;exports.isBrowser=tt;exports.isDate=Pe;exports.isESModule=ns;exports.isEmptyString=be;exports.isEqual=Re;exports.isFunction=Wt;exports.isHidden=bl;exports.isInnerPage=Cs;exports.isMap=es;exports.isNumberString=Bl;exports.isObject=Te;exports.isPlainObject=Oo;exports.isPromise=cn;exports.isRegExp=Nl;exports.isSet=ts;exports.isString=yl;exports.isSubPage=ws;exports.isSymbol=os;exports.isWindow=Sl;exports.lastIndexOf=cs;exports.makeArray=ss;exports.merge=wl;exports.multiply=pl;exports.negate=hl;exports.nextTick=as;exports.numberFormat=sn;exports.objectToString=vl;exports.once=bs;exports.padZero=Ye;exports.preventDefault=Ko;exports.property=Ve;exports.raf=We;exports.readonlyProperty=$e;exports.setGlobalValidateCheckEvents=hs;exports.setGlobalValidateHandler=fs;exports.setGlobalValidateMessages=ys;exports.setGlobalValidateResetEvents=gs;exports.setGlobalValidator=ms;exports.throttle=Yt;exports.toBoolean=he;exports.toNumber=ue;exports.toPadding=Ie;exports.toPx=le;exports.toPxDesc=se;exports.toTypeString=mo;exports.toValue=qe;exports.typeOf=Ze;exports.unNumberFormat=gl;exports.updatePageState=Ho;exports.useBroadcast=vt;exports.useDomain=Oe;exports.useExpose=Ae;exports.useInnerSize=pn;exports.usePageState=yo;exports.usePosition=Jl;exports.useRect=Se;exports.useSize=mn;exports.useTouch=Fe;exports.valueLength=pe;