@fox-js/foxui 4.0.1-31 → 4.0.1-33

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 Mon Mar 11 2024 00:43:29 GMT+0800 (中国标准时间)
3
- */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),_e=require("@fox-js/validator"),te=require("@fox-js/icons-vue"),ae=require("@fox-js/i18n"),Yt=window,Vs=typeof window<"u";function As(){return typeof Yt<"u"?Yt.requestAnimationFrame||Yt.webkitRequestAnimationFrame||function(e){Yt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function hr(e){Vs?cancelAnimationFrame(e):clearTimeout(e)}const je=As();/*!
2
+ * @fox-js/foxui-base v4.0.0 Mon Mar 18 2024 09:01:27 GMT+0800 (中国标准时间)
3
+ */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),_e=require("@fox-js/validator"),te=require("@fox-js/icons-vue"),ae=require("@fox-js/i18n"),Qt=window,Es=typeof window<"u";function Ds(){return typeof Qt<"u"?Qt.requestAnimationFrame||Qt.webkitRequestAnimationFrame||function(e){Qt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function kr(e){Es?cancelAnimationFrame(e):clearTimeout(e)}const We=Ds();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
- */function no(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]=$n(Se(e),Se(o)),l==1&&(n==1?e=Uo(e):o=Uo(o));let a=gr(e,o);return l?l==2?"-"+Se(a):e.length<a.length?Se(a.substring(1)):"-"+Se(Uo(a)):Se(a)}function Uo(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 gr(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 $n(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 gr(e,o){[e,o]=$n(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 ye=(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))(ye||{});function It(e,o=0,l=ye.HALF_EVEN){if(l===ye.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=It(e,0,l),(n?"-":"")+c+new Array(o+1).join("0")}}if(o==0)return r.length,Aa(a[1],r,n,l)?(n?"-":"")+Ho(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&&Aa(i,s,n,l)&&(s=Ho(s),s.length>o)?(n?"-":"")+Ho(r,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+r+"."+s}function Aa(e,o,l,n){if(!e||e===new Array(e.length+1).join("0")||n===ye.DOWN||!l&&n===ye.FLOOR||l&&n===ye.CEILING)return!1;if(n===ye.UP||l&&n===ye.FLOOR||!l&&n===ye.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 ye.HALF_DOWN:return!1;case ye.HALF_UP:return!0;case ye.HALF_EVEN:default:return parseInt(o[o.length-1])%2==1}}function Ho(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 tn(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=wt(e),o=wt(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=wt(e.replace(".","")),o=wt(o.replace(".","")),e.length<o.length){let m=e;e=o,o=m}if(o=="0")return"0";let s=o.length,i=0,c=[],d=s-1,f="";for(let m=0;m<s;m++)c[m]=e.length-1;for(let m=0;m<2*e.length;m++){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),f=h%10+f,d--}return f=wt(Ts(f,r)),l==1&&(f="-"+f),f}function Ts(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 wt(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 on(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 f=e.length-d+a;e=Se(e.substring(0,f)+"."+e.substring(f))}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=no(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(It(i,l-2))}function nn(e,o){return e=e.toString(),o=o.toString(),o=ln(o),no(e,o)}function ln(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ta(e,o){if(o==0)throw new Error("Cannot divide by 0");e=e.toString(),o=o.toString(),$a(e),$a(o);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),o[0]=="-"&&(o=o.substr(1));let n=nn(e,tn(o,It(on(e,o),0,ye.FLOOR)));return l+n}function $a(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ea(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]=$n(e,o),e.localeCompare(o)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=o[n])return e[n]>o[n]?l?-1:1:l?1:-1;return 0}class re{value;static RoundingModes=ye;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=re.validate(o)}getValue(){return this.value}static getPrettyValue(o,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");o=re.validate(o);let a=o.charAt(0)=="-";a&&(o=o.substring(1));var r=o.indexOf(".");r=r>0?r:o.length;for(var s="",i=r;i>0;)i<l?(l=i,i=0):i-=l,s=o.substring(i,i+l)+(i<r-l&&i>=0?n:"")+s;return(a?"-":"")+s+o.substring(r)}getPrettyValue(o,l){return re.getPrettyValue(this.value,o,l)}static round(o,l=0,n=ye.HALF_EVEN){if(o=re.validate(o),isNaN(l))throw Error("Precision is not a number: "+l);return It(o,l,n)}round(o=0,l=ye.HALF_EVEN){if(isNaN(o))throw Error("Precision is not a number: "+o);return new re(It(this.value,o,l))}static floor(o){return o=re.validate(o),o.indexOf(".")===-1?o:re.round(o,0,ye.FLOOR)}floor(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,ye.FLOOR)}static ceil(o){return o=re.validate(o),o.indexOf(".")===-1?o:re.round(o,0,ye.CEILING)}ceil(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,ye.CEILING)}static add(o,l){return o=re.validate(o),l=re.validate(l),no(o,l)}add(o){return new re(no(this.value,o.getValue()))}static subtract(o,l){return o=re.validate(o),l=re.validate(l),nn(o,l)}subtract(o){return new re(nn(this.value,o.getValue()))}static multiply(o,l){return o=re.validate(o),l=re.validate(l),tn(o,l)}multiply(o){return new re(tn(this.value,o.getValue()))}static divide(o,l,n){return o=re.validate(o),l=re.validate(l),on(o,l,n)}divide(o,l){return new re(on(this.value,o.getValue(),l))}static modulus(o,l){return o=re.validate(o),l=re.validate(l),Ta(o,l)}modulus(o){return new re(Ta(this.value,o.getValue()))}static compareTo(o,l){return o=re.validate(o),l=re.validate(l),Ea(o,l)}compareTo(o){return Ea(this.value,o.getValue())}static negate(o){return o=re.validate(o),ln(o)}negate(){return new re(ln(this.value))}}function yr(e,o){return re.multiply(`${e}`,`${o}`)}function En(e,o,l=8){return re.divide(`${e}`,`${o}`,l)}function an(e,o){return e=`${e}`,o=`${o}`,re.compareTo(e,o)}function vr(e){return re.negate(e)}function mo(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 f;if(n>0){let m="",h=i.split("").reverse();for(let y=0;y<h.length;y++)m+=h[y]+((y+1)%n==0&&y+1!=h.length?a:"");c.length==0?f=`${s}${m.split("").reverse().join("")}`:f=`${s}${m.split("").reverse().join("")}.${c}`}else c.length==0?f=`${s}${i}`:f=`${s}${i}.${c}`;return f}function kr(e){let o=`${e}`,l=o.charAt(0);l=="-"?o=o.substring(1):l="";let n=o.replace(/[^\d\.-]/g,"");return`${l}${n}`}const st=typeof window<"u",Le=je;function br(e){return e==null}const po=Array.isArray,$s=e=>ho(e)==="[object Map]",Es=e=>ho(e)==="[object Set]",Fe=e=>e instanceof Date,lo=e=>typeof e=="function",Sr=e=>typeof e=="string",Ds=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",Dn=e=>Be(e)&&lo(e.then)&&lo(e.catch),Cr=Object.prototype.toString,ho=e=>Cr.call(e),rn=e=>ho(e)==="[object Object]",wr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function xs(e){return e.__esModule||wr&&e[Symbol.toStringTag]==="Module"}const Is=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function nt(...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]=nt(a,d,c)}else c!==void 0&&(o[s]=c)}}return o}function sn(e,o,l=!1){if(!l)nt(!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)&&!rn(s))continue;r=sn(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)&&!rn(s))continue;r=sn(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}}return e}const jo=Is?Promise.resolve():null;function qs(e,...o){jo!==null?o&&o.length>0?jo.then(()=>{e(o)}):jo.then(e):o&&o.length>0?setTimeout(()=>{e(o)}):setTimeout(e)}function pe(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function me(e){return typeof e=="number"?e:Number(e)}const Ms={"[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 lt(e){let l=Object.prototype.toString.call(e);return e==null?String(e):Ms[l]||"object"}function go(e){if(!e)return!0;const{display:o}=window.getComputedStyle(e);return o==="none"}function Nr(e){return e&&typeof e=="object"&&"setInterval"in e}function Br(e){let o=!!e&&"length"in e&&e.length,l=lt(e);return l==="function"||Nr(e)?!1:l==="array"||o===0||typeof o=="number"&&o>0&&o-1 in e}function Vr(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 zs(e,o=[]){let l=o;return e!=null&&(Br(Object(e))?Vr(l,typeof e=="string"?[e]:e):l.push(e)),l}function xe(e,o){if(e==o)return!0;if(e===void 0||o===void 0)return!1;let l=lt(e),n=lt(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(!xe(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(!xe(r,s))return!1}return!0}return!1}function Ar(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ie=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Tr(e){return ie(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ie(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function $r(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 Er(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 Da(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 cn(e,o=!0,l=!0){o?e=Da(e,".",/\./g):e=e.replace(/\./g,""),l?e=Da(e,"-",/-/g):e=e.replace(/-/,"");const n=o?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Ls(e,o){return typeof e=="object"||Array.isArray(e)?o.findIndex(l=>{if(xe(e,l))return!0}):o.indexOf(e)}function Ps(e,o){if(typeof e=="object"||Array.isArray(e)){let l=o.reverse().findIndex(n=>{if(xe(e,n))return!0});return l!==-1&&(l=o.length-1-l),l}return o.lastIndexOf(e)}function ge(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function he(e,...o){const l={};return o.forEach(n=>{for(const a in n)l[a]=e[a]}),l}function xn(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 Dr=(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 un(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&e.stopPropagation()}const Je=(e,o=2)=>{for(e+="";e.length<o;)e="0"+e;return e.toString()},Pe=(e,o,l)=>Math.min(Math.max(e,o),l),In=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,ke=Symbol.for("BroadcastKey");class qn{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="*"):Ar(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 yo(e,o,l,n){const a=new qn(o,e,l);if(n&&typeof n=="object")for(const r in n)a.on(r,n[r]);return a}function Rs(e,o,l){const n=l;if(n[ke])return n[ke];const a=t.inject(ke,null),r=new qn(a,l,e);if(o&&typeof o=="object")for(const s in o)r.on(s,o[s]);return n[ke]=r,t.provide(ke,r),t.onUnmounted(()=>{r.destroy(),n[ke]=void 0}),r}function $t(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ke]??t.inject(ke,null):t.inject(ke,null)}const et=e=>e.default??e;class Fs{error(o,l){const n=l,a=$t(l);a?a.emit({name:"*",maxLevel:1},"setErrorTip",o):typeof n.setErrorTip=="function"&&n.setErrorTip(o)}reset(o){const l=o,n=$t(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(o){const l=o,n=$t(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=$t(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 xr=new Fs;function Os(e){xr=e}function Ks(e,o){et(_e).setValidator(e,o)}function Us(e){et(_e).deleteValidator(e)}let Ir=["blur","clear"];function Hs(e){Ir=e}function qr(){return Ir}let Mr=["focus","change"];function js(e){Mr=e}function zr(){return Mr}function Ws(e){et(_e).messages(e)}function Nt(...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 Xt(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 Lr{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=Xt(Nt(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=Xt(n);const a=Nt(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=xr;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?et(_e).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?et(_e).deleteValidator(o):Reflect.deleteProperty(this.validators,o)}hasValidator(o,l=!1){if(l)return et(_e).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=Nt(this.attrRules,this.rules);o===null?this.rules=[]:Array.isArray(o)?this.rules=Xt(o):this.rules=Xt([o]);const n=Nt(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=Nt(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=et(_e),c=new i(a),d=this.proxy??s;return c.validate(s,{context:d}).then(m=>{if(m.pass)this.success();else{let h="error";Array.isArray(m.errors)&&m.errors.length>0&&(h=m.errors[0].message??h,m.errors=[m.errors[0]],m.errors[0].ref=d),this.error(h)}return m}).catch(m=>{const h=m.message??`${m}`;return this.error(h),m})}}return Promise.resolve({pass:!0})}}function vo(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 Lr(o,l,e)}const xa=Symbol("EventEmitterKey");class Ys{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 ht(e,o){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},o)}}function ao(e,o){let l=0;return function(...n){const a=new Date().getTime();a-l<o||(l=a,Reflect.apply(e,null,[...n]))}}function Xs(e,o){const l=ht((n,a)=>{e=n,a()},o);return t.customRef((n,a)=>({get(){return n(),e},set(r){l(r,a)}}))}function Qs(e){let o=!1;return function(...l){o||(o=!0,Reflect.apply(e,null,[...l]))}}function Mn(e,o,l,n=0,a=!0){let r=o,s=0;if(a){const c=e();if(s++,c||s>l)return}const i=()=>{const c=e();s++,!(c||s>l)&&(r+=n,setTimeout(i,r))};setTimeout(i,r)}const De=Symbol("DomainKey"),ut=Symbol("DataItemsKey");class ko{_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 Gs=new ko;function mt(){return Gs}function Oe(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[De]??t.inject(De,null):t.inject(De,null)}const Wo=Symbol("OriginalDateKey");function zn(e,o,l=[],n){const a=t.getCurrentInstance(),r=a?.proxy;let s=t.inject(De,null);s===null&&(s=mt());const i=e||o.prop||o.name,c=new ko(i);c.parent=s;const d=v=>{r[Wo]||h(v),c.set("modelValue",v)},f=()=>c.getForSelf("modelValue")??null,m=()=>r[Wo]??null,h=v=>{const b={};nt(!0,b,t.toRaw(v)),r[Wo]=b};t.isReactive(o)||typeof o=="function"?t.watch(o,v=>{c.merge(v,l)},{immediate:!0}):c.merge(o,l),o.modelValue&&h(o.modelValue),r[De]=c,t.provide(De,c);let y=null,g=null;if(a!==null){const v=t.inject(ke,null);y=yo(r,v,i,n),c.broadcast=y,r[ke]=y,t.provide(ke,y),r.broadcast=(u,p,...k)=>Reflect.apply(y.emit,y,[u,p,...k]);const b=t.inject(Re,null);g=vo(r,b,{componentName:""}),c.validateSchema=g,r[Re]=g,t.provide(Re,g),r[ut]=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 w=u;k={name:N=>N?w.indexOf(N)!==-1:!1}}else if(u!=null&&typeof u=="object"){const w=u;if(S.ignoreHidden=w.ignoreHidden,Array.isArray(w.include)&&w.include.length>0){const N=w.include;k={name:T=>T?N.indexOf(T)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const N=w.exclude;k={name:T=>T?N.indexOf(T)===-1:!1}}else k={name:"*"}}if(k){const w=y?.emitToChildren(k,"validate",S);w&&Reflect.apply([].push,p,w)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(w=>{let N=[];return w.forEach(T=>{T.pass===!1&&Array.isArray(T.errors)&&(N=[...N,...T.errors])}),N.length>0?{pass:!1,errors:N}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(u,p=!0,k=!1)=>{if(k===!0){Reflect.ownKeys(u).forEach(w=>{let N=String(w);const B=Fr(c,N,{componentName:"",fieldName:N,pureDataValidate:!0},y,g);r[ut].set(N,B);const D=u[N];D&&B.validateSchema.setRule(D)});return}if(p){const S=Reflect.ownKeys(u),w={name:N=>S.includes(N)};y?.emitToChildren(w,"setNameValidateRules",u,!1)}},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:w=>w?S.indexOf(w)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const S=k.exclude;p={name:w=>w?S.indexOf(w)===-1:!1}}else p={name:"*"}}p&&y?.emitToChildren(p,"clearValidate",!1)},r.resetFields=u=>{const p=f();if(!p)return;const k={};if(nt(!0,k,m()??{}),Array.isArray(u))u.forEach(S=>{p[S]=k[S]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(w=>{p[w]=k[w]});else if(u&&Array.isArray(u.exclude)){let S=u.exclude??[];Reflect.ownKeys(k).forEach(w=>{S.includes(w)||(p[w]=k[w])})}else Object.assign(p,k);r.clearValidate(u)},r.setModelValue=(u,p)=>{!p||p===i?d(u):y?.emitToChildren({name:p},"setModelValue",u)},r.getModelValue=()=>f()}return t.onUnmounted(()=>{c.destroy(),r[De]=void 0,r[ut]&&(r[ut].clear(),r[ut]=void 0),y!==null&&(y.destroy(),r[ke]=void 0),g!==null&&(g.destroy(),r[Re]=void 0)}),c}function Pr(e,o,l=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(De,null);r===null&&(r=mt());const s=e||o.prop||o.name,i=new ko(s);return i.parent=r,t.isReactive(o)||typeof o=="function"?t.watch(o,c=>{i.merge(c,l)},{immediate:!0}):i.merge(o,l),a[De]=i,t.provide(De,i),t.onUnmounted(()=>{i.destroy(),a[De]=void 0}),i}function Rr(e,o,l){const a=Oe(e)?.get("rules");if(!a)return;let r=a[l];r&&(Array.isArray(r)||(r=[r]),o.setRule(r))}function we(e,o,l){const a=t.getCurrentInstance()?.proxy,r=o??"",s=t.inject(ke,null),i=yo(a,s,r,l);a[ke]=i,t.provide(ke,i),a.broadcast=(g,v,...b)=>Reflect.apply(i.emit,i,[g,v,...b]);const c=t.inject(Re,null);e.fieldName=e.fieldName??r;const d=vo(a,c,e);a[Re]=d,t.provide(Re,d),Rr(a,d,r),a.validate=(g=null)=>{const v=[];let b=!1,u=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)u=!0,b=!0;else if(g&&typeof g=="object"){const p=g;p.ignoreHidden===!0&&go(a.$el)?u=!1:(Array.isArray(p.include)&&p.include.indexOf(r)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(r),u=!0),b=p.deep??!1}else typeof g=="boolean"&&(b=g),u=!0;if(u){const p=d?.validate();v.push(p)}if(b){let p=null;const k={deep:!1};if(g===!0)p={name:"*"};else if(Array.isArray(g)&&g.length>0){const S=g;p={name:w=>w?S.indexOf(w)!==-1:!1}}else if(g!=null&&typeof g=="object"){const S=g;if(k.ignoreHidden=S.ignoreHidden,Array.isArray(S.include)&&S.include.length>0){const w=S.include;p={name:N=>N?w.indexOf(N)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const w=S.exclude;p={name:N=>N?w.indexOf(N)===-1:!1}}else p={name:"*"}}if(p){const S=i.emitToChildren(p,"validate",k);Reflect.apply([].push,v,S)}}return v.length==1?v[0]:v.length>1?Promise.all(v).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=g=>d?.setRule(g),a.setNameValidateRules=(g,v=!1)=>{const b=g[r];if(b&&d?.setRule(b),v){const u={name:p=>Reflect.ownKeys(g).includes(p)};i.emitToChildren(u,"setNameValidateRules",g,!1)}},a.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(o??"")!==-1)&&d?.clear();let v=null;if(g===!0)v={name:"*"};else if(Array.isArray(g)&&g.length>0){const b=g;v={name:u=>u?b.indexOf(u)!==-1:!1}}else if(g!=null&&typeof g=="object"){const b=g;if(Array.isArray(b.include)&&b.include.length>0){const u=b.include;v={name:p=>p?u.indexOf(p)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const u=b.exclude;v={name:p=>p?u.indexOf(p)===-1:!1}}else v={name:"*"}}v&&i.emitToChildren(v,"clearValidate",!1)};const f=new Ys(a);a[xa]=f;const m=ht((g="validate")=>{g==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:qr()).forEach(g=>{f.on(g,v=>{m("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:zr()).forEach(g=>{f.on(g,v=>{m("reset")})}),t.onUnmounted(()=>{i.destroy(),a[ke]=void 0,d.destroy(),a[Re]=void 0,f.destroy(),a[xa]=void 0}),{broadcast:i,validateSchema:d,emitEvent:(g,...v)=>{Reflect.apply(f.emit,f,[g,...v])},onEvent:(g,v)=>{Reflect.apply(f.on,f,[v])},offEvent:(g,v)=>{Reflect.apply(f.off,f,[v])}}}function Fr(e,o,l,n,a){const r={},s=o??"",i={getValue(){const f=e.getForSelf("modelValue");return f?f[s]:null},isExist(){const f=e.getForSelf("modelValue");return f?Reflect.has(f,s):!1}};l.fieldName=s,l.validateHandler={getValue(f){return i.getValue()}};const c=vo({},a,l);r.validate=(f=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const m=[];let h=!1,y=!1;if(Array.isArray(f)&&f.indexOf(s)!==-1)y=!0,h=!0;else if(f&&typeof f=="object"){const g=f;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),y=!0,h=g.deep??!1}else typeof f=="boolean"&&(h=f),y=!0;if(y){const g=c?.validate();m.push(g)}if(h){let g=null;const v={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const b=f;g={name:u=>u?b.indexOf(u)!==-1:!1}}else if(f!=null&&typeof f=="object"){const b=f;if(Array.isArray(b.include)&&b.include.length>0){const u=b.include;g={name:p=>p?u.indexOf(p)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const u=b.exclude;g={name:p=>p?u.indexOf(p)===-1:!1}}else g={name:"*"}}if(g){const b=d.emitToChildren(g,"validate",v);Reflect.apply([].push,m,b)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(g=>{let v=[];return g.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(v=[...v,...b.errors])}),v.length>0?{pass:!1,errors:v}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=f=>c?.setRule(f),r.setNameValidateRules=f=>{const m=f[s];m&&c?.setRule(m)};const d=yo(null,n,s,r);return{broadcast:d,validateSchema:c}}const fe=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(st){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 We="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 dn(e,o,l={},n=!0,a=-1,r=-1,s=0,i=0){if(e.headerHeight=se(l.headerHeight??o.headerHeight??-1),e.headerPadding=Me(l.headerPadding??o.headerPadding),e.footerHeight=se(l.footerHeight??o.footerHeight??-1),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 Or(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;dn(n,r,o,!0,s,i,c,d);const f=t.reactive(n),m=e.getForParent(We);m&&(n.height=ro(e,m),n.width=so(e,m),t.watch([()=>ro(e,m),()=>so(e,m)],([y,g])=>{f.height=y,f.width=g}));const h=!m;return t.watch([()=>o.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([y,g,v=-1,b=-1,u=0,p=0])=>{dn(f,g,o,h,v,b,u,p)}),e.set(We,f),f}function bo(e){return e.get(We)}function So(e,o){if(o=o??e.get(We),o&&o.headerMounted){const l=o.safeAreaTop==-1?0:o.safeAreaTop;return o.headerAllHeight??o.headerHeight+l}return 0}function Co(e,o){if(o=o??e.get(We),o&&o.footerMounted){const l=o.safeAreaBottom==-1?0:o.safeAreaBottom;return o.footerAllHeight??o.footerHeight+l}return 0}function ro(e,o){if(o=o??e.get(We),o){if(o.contentInnerHeight)return o.contentInnerHeight;const l=So(e,o),n=Co(e,o);return o.height-l-n-(o.contentPadding.top??0)-(o.contentPadding.bottom??0)}return 0}function so(e,o){return o=o??e.get(We),o?o.contentInnerWidth??o.width-(o.contentPadding.left??0)-(o.contentPadding.right??0):0}function Zs(e,o){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[o,e]):!1}function Js(e){return!!e.getForParent(We)}var io=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(io||{});function Yo(e,o){return e==null?!1:typeof o=="function"?o(e):!0}function Ne(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(Yo(c,n))return c}const s=e.value;return Yo(s,n)?s:null}):t.computed(()=>{const r=e.value;return Yo(r,n)?r:a?.get(o)})}function Ae(e){return Ne(e,"readonly",0,function(l){return pe(l)})}function Ce(e){return Ne(e,"disabled",0,function(l){return pe(l)})}function Ee(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 Kr=new Map,co=new Map;let fn=null;function _s(e){fn=e}function Ur(e,o,l){if(l){let n=co.get(l);n||(n=new Map,co.set(l,n)),n.set(e,o)}else Kr.set(e,o)}function Ge(e,o,l){!l&&fn&&(l=fn(e)??void 0);let n=null;if(l){let a=co.get(l);a&&(n=a.get(o))}return n||(n=Kr.get(o)),n}function ei(e,o){for(let l in e){const n=e[l];Ur(l,n,o)}}function ti(e){co.delete(e)}function oi(){return{top:0,left:0,bottom:0,right:0}}function ni(e=0,o=0){if(st){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)};return{rootWidth:l,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:-1,footerHeight:-1}}}class li{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=mt();if(this.initPageLayout(l,a),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=ao(()=>{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=nt({},oi(),o.safeAreaInset),s=ni(n,a),i=nt({},s.pageLayout,o.pageLayout);l=l??mt(),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){_s(o)}setAPI(o,l,n){Ur(o,l,n)}getAPI(o,l,n){return Ge(o,l,n)}batchSetAPI(o,l){ei(o,l)}clearScopeAPI(o){ti(o)}getRootDomain(){return mt()}}function X(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 ai=(e,o)=>{let l=document.body;const n=e.teleport||"body";n!="body"&&(Sr(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={};lo(o.wrapper)?i=o.wrapper(l,a):i=o.wrapper;const c=t.createApp(i,e),d=o.components;return d&&d.forEach(f=>{c.use(f)}),l.appendChild(a),{instance:c.mount(a),unmount:()=>{c.unmount(),l.removeChild(a)}}},Hr=(e,o)=>e?t.h(e,o):"",ue={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},de={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}},jr={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}},Wr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!1},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Yr=[];for(const e in Wr)Yr.push(e);function Te(e,o=null){if(o||(o=t.getCurrentInstance()),o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const ri=Symbol.for("InnerPageScopeKey"),si=(e,o)=>({inheritAttrs:!0,props:{...ue,...jr,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},setup(l,n){const a=zn(l.name,l);if(a){const d=Or(a,l);Te({getPageContentHeight:()=>ro(a,d),getPageContentWidth:()=>so(a,d),getPageHeaderHeight:()=>So(a,d),getPageFooterHeight:()=>Co(a,d)});const f=t.inject(ri,!1);d&&f&&(d.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),i=t.getCurrentInstance(),c=(d,f=!1)=>{const m=i?.proxy;m&&typeof m.setNameValidateRules=="function"&&m.setNameValidateRules(d,!0,f)};return t.watch([()=>l.rules,()=>l.pureDataRules],([d,f],[m,h])=>{if(d&&m){const y=t.toRaw(m),g=t.toRaw(d),v=g?Reflect.ownKeys(g):[];(y?Reflect.ownKeys(y):[]).forEach(u=>{v.includes(u)||(g[u]=[])}),c(g)}if(f&&h){const y=t.toRaw(h),g=t.toRaw(f),v=g?Reflect.ownKeys(g):[];(y?Reflect.ownKeys(y):[]).forEach(u=>{v.includes(u)||(g[u]=[])}),c(g,!0)}},{deep:!0}),t.onMounted(()=>{if(l.rules){const d=t.toRaw(l.rules);c(d)}if(l.pureDataRules){const d=t.toRaw(l.pureDataRules);c(d,!0)}}),{classes:r,styles:s}}}),{componentName:ii,create:ci,scope:VB}=X("page"),ui=ci(si(ii));function di(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 J=(e,o)=>{const l=e.__vccOpts||e;for(const[n,a]of o)l[n]=a;return l},Ln=J(ui,[["render",di]]);function wo(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 fi=(e,o,l,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:l},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const s=Oe(),i=s?bo(s):null;i&&(i.headerMounted=!0);const c=e,d=t.computed(()=>({[c]:!0,[`${c}--border`]:a.border,[`${c}--fixed`]:a.fixed,[`${c}--safe-area-inset-top`]:a.safeAreaInsetTop})),f=t.computed(()=>({[`${c}__inner`]:!0,[`${c}__inner--${a.align}`]:!0})),m=a.height!==null&&a.height!==void 0?se(a.height):null,h=t.computed(()=>{const C={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const V=Me(a.padding??i.headerPadding);return Object.assign(C,V),m&&(i.headerHeight=m),i.headerHeight>0&&(C.height=i.headerHeight),C.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,C.safeAreaTop>0&&(C.top=C.safeAreaTop+(V.top??0),C.height&&C.height>0&&(C.height=C.height+C.safeAreaTop)),C}if(m&&(C.height=m),a.padding){const V=Me(a.padding);Object.assign(C,V)}return C}),y=t.ref(null),g=()=>{if(i&&y.value&&!go(y.value)){if(!n){const C=wo(y.value);i.headerAllHeight=C.height}return i.headerMounted=!0,!0}return!1};let v=null;t.onMounted(()=>{i&&(Mn(g,50,5,50,!0),window.ResizeObserver&&y.value&&(v=new window.ResizeObserver(()=>{g()}),v.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,v&&(v.disconnect(),v=null))});const b=t.computed(()=>{const C={};return h.value.height!==null&&h.value.height!==void 0&&(C.height=`${h.value.height}px`),h.value.top!==null&&h.value.top!==void 0&&(C.paddingTop=`${h.value.top}px`),h.value.left!==null&&h.value.left!==void 0&&(C.paddingLeft=`${h.value.left}px`),h.value.right!==null&&h.value.right!==void 0&&(C.paddingRight=`${h.value.right}px`),h.value.bottom!==null&&h.value.bottom!==void 0&&(C.paddingBottom=`${h.value.bottom}px`),C}),u=t.computed(()=>!(h.value.height!==null&&h.value.height!==void 0&&h.value.height<=0));function p(){r.emit("back")}function k(){r.emit("click-title")}function S(){r.emit("click-right")}function w(){r.emit("click-right-text")}const N=()=>{if(!a.leftShow)return null;const C=[];if(r.slots.left)C.push(r.slots.left());else{if(r.slots.leftIcon){const V=t.h("view",{class:"left-icon",onClick:p},[r.slots.leftIcon()]);C.push(V)}else if(a.leftIcon){const V=t.h("view",{class:"left-icon",onClick:p},[t.h(a.leftIcon)]);C.push(V)}if(a.leftText){const V=t.h("view",{class:"left-text",onClick:p},[a.leftText]);C.push(V)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__left"},C)},T=()=>{if(!a.rightShow)return null;const C=[];if(r.slots.right)C.push(r.slots.right());else{if(a.rightText){const V=t.h("view",{class:"right-text",onClick:w},[a.rightText]);C.push(V)}if(r.slots.rightIcon){const V=t.h("view",{class:"right-icon",onClick:S},[r.slots.rightIcon()]);C.push(V)}else if(a.rightIcon){const V=t.h("view",{class:"right-icon",onClick:S},[t.h(a.rightIcon)]);C.push(V)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__right"},C)},B=()=>{if(!a.titleShow)return null;const C=[],V=r.slots.default?r.slots.default():null;if(V)C.push(V);else{if(a.title){const M=t.h("view",{class:"title-text"},[a.title]);C.push(M)}if(r.slots.titleIcon){const M=t.h("view",{class:"title-icon",onClick:k},[r.slots.titleIcon()]);C.push(M)}else if(a.titleIcon){const M=t.h("view",{class:"title-icon",onClick:k},[t.h(a.titleIcon)]);C.push(M)}}return C.length===0?null:t.h("view",{class:"fox-header-bar__title"},C)},D=()=>{const C=[],V=r.slots.bottom?r.slots.bottom():null;return V&&C.push(V),C.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},C)};return()=>{if(!u.value)return null;const C=[];if(r.slots.all)C.push(r.slots.all());else{const M=[],L=N();L&&M.push(L);const $=B();$&&M.push($);const E=T();if(E&&M.push(E),M.length>0){const A=t.h("view",{class:f.value},M);C.push(A)}const x=D();x&&C.push(x)}if(C.length===0)return null;const V={class:d.value,style:b.value,ref:y};return t.h("view",V,C)}}}),{componentName:mi,create:pi,scope:hi}=X("header-bar"),Rn=pi(fi(mi,hi,te.Left,!1));function gi(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?bo(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?se(n.height):null,d=t.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const v=Me(n.padding??s.footerPadding);return Object.assign(g,v),c&&(s.footerHeight=c),s.footerHeight>0&&(g.height=s.footerHeight),g.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(v.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(c&&(g.height=c),n.padding){const v=Me(n.padding);Object.assign(g,v)}return g}),f=t.ref(null),m=()=>{if(s&&f.value&&!go(f.value)){if(!l){const g=wo(f.value);s.footerAllHeight=g.height}return s.footerMounted=!0,!0}return!1};let h=null;t.onMounted(()=>{s&&(Mn(m,50,5,50,!0),window.ResizeObserver&&(h=new window.ResizeObserver(()=>{m()}),h.observe(f.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,h&&(h.disconnect(),h=null))});const y=t.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=fe(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=fe(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=fe(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=fe(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=fe(d.value.bottom)),g});return()=>{const g=a.slots.default?a.slots.default():[],v={ref:f,class:i.value,style:y.value};return t.h("view",v,g)}}}}const{componentName:yi,create:vi,scope:ki}=X("footer-bar"),Fn=vi(gi(yi,ki,!1));function bi(e,o){return{props:{padding:{type:[Object],required:!1}},setup(l){const n=Oe(),a=t.computed(()=>({[e]:!0})),r=n?bo(n):null,s=t.computed(()=>{const d={};if(n&&r){if(l.padding){const u=Me(l.padding);Object.assign(r.contentPadding,u)}const f=So(n,r),m=Co(n,r);let h="";r.contentHeight?h=`${r.contentHeight}`:h=`${r.height}px`,console.debug("[content]page height:",h),console.debug("[content]header height:",f),console.debug("[content]footer height:",m),console.debug("[content]padding:",r.contentPadding),d.height=h;let y=(r&&r.contentPadding&&r.contentPadding.top)??-1;(y>=0||f>0)&&(y=y<0?0:y,d.paddingTop=`${f+y}px`);let g=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(g>=0||m>0)&&(g=g<0?0:g,d.paddingBottom=`${m+g}px`);const v=(r&&r.contentPadding&&r.contentPadding.left)??-1;v>=0&&(d.paddingLeft=`${v}px`);const b=(r&&r.contentPadding&&r.contentPadding.right)??-1;return b>=0&&(d.paddingRight=`${b}px`),d}if(l.padding){const f=Me(l.padding);f.left&&(d.paddingLeft=`${f.left}px`),f.top&&(d.paddingTop=`${f.top}px`),f.right&&(d.paddingRight=`${f.right}px`),f.bottom&&(d.paddingBottom=`${f.bottom}px`)}return d}),i=t.ref(null),c=ht(()=>{if(r&&i.value){const d=Pn(i.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}},0);return t.onMounted(()=>{c()}),n&&r&&t.watch([()=>s.value,()=>a.value],([])=>{c()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:Si,create:Ci,scope:AB}=X("content"),wi=Ci(bi(Si));function Ni(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 On=J(wi,[["render",Ni]]),gt="GroupStateKey",Xr=Symbol.for("GroupScopeKey");function No(){return t.inject(Xr,!1)}function Bo(e=!0){t.provide(Xr,e)}function Bi(e,o={}){Reflect.ownKeys(o).forEach(n=>{if(typeof n!="string")return;const a=o[n];br(a)||(e[n]=a)})}function Vi(e,o={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Bi(n,o);const a=t.shallowRef(n),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(gt,r),r}function Xo(e,o,l=-1,n=-1,a=!1,r,s,i){const c=e.get(gt);if(!c)return;const d=e.get("groupLayout")??{};l===-1&&(l=d.column??1),n===-1&&(n=d.gutter??0),r||(r=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const f=se(r),m=se(s);i||(i=d.type??"grid");const h=()=>{const y=o===""||o===-1,g=se(o);let v=me(l);const b=se(n);if(!y){let k=(g-(v-1)*b)/v;for(;m!==-1&&k>m;)v++,k=(g-(v-1)*b)/v;for(;f!==-1&&v>1&&k<f;)v--,k=(g-(v-1)*b)/v}let u=!1;const p=c.layout;p.value.width=o,p.value.column!==v&&(p.value.column=v,u=!0),p.value.gutter!==b&&(p.value.gutter=b,u=!0),p.value.type!==i&&(p.value.type=i,u=!0),u&&t.triggerRef(p)};if(a)h();else{const y=++c.passport;setTimeout(()=>{y===c.passport&&h()},50)}}function Vo(e,o=!1){let l;return o?l=e.getForParent(gt):l=e.get(gt),l.layout}function Ao(e,o=!1){let l;return o?l=e.getForParent(gt):l=e.get(gt),l.order}function Ia(e,o=1){if(o==="stretch")return-1;const l=me(o);return l===-1?100:100*l/e}function To(e,o,l=1,n=0,a){const r={};let s=0;a?s=se(a):s=Ia(o.column,l),s>0&&(r.width=`${s}%`);const i=Ia(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 $o(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":`${c+1} / -1`}}let a=me(l);if(a===-1){const c=e.index%o.column;return o.column,c==0?e.index=e.index+o.column:e.index=e.index+(o.column-c)+o.column,{"grid-column":"1 / -1"}}if(a>o.column){const c=e.index%o.column;return o.column,c==0?e.index=e.index+o.column:e.index=e.index+(o.column-c)+o.column,{"grid-column":"1 / -1"}}const r=me(n)%o.column;let s=(e.index+r)%o.column,i=s+a;return i>o.column?(s=0,i=s+a,e.index=e.index+(o.column-s)+a):e.index=e.index+r+a,r>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Qr=Symbol("RollingStateKey");function Ai(e){t.provide(Qr,e)}function Ti(){return t.inject(Qr,null)}function mn(e){let o=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(l.getPropertyValue("padding-top")),r=parseFloat(l.getPropertyValue("padding-bottom"));o=e.clientHeight-a-r}else o=e.offsetHeight;return o}function $i(e){let o=mn(e);if(o<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),o=mn(l),document.body.removeChild(l)}return o}function Ei(e,o,l){if(e<=0)return"1fr";const n=(e-(o-1)*l)/o;return n>0?`${n}px`:"1fr"}const Di={...ue,...jr,...Wr};function xi(e,o,l){return{props:Di,emits:["update:collapse"],setup(n,a){const r=zn(n.name,n,Yr),s=Vi(r,{type:n.type}),i=No();Bo(!0);const c=n.rollingDisplay?Ti():null,d=t.ref(null),f=t.computed(()=>n.rollingDisplay?c&&!c.disabled:!1),m=t.computed(()=>i&&r?Vo(r,!0).value:null),h=t.getCurrentInstance(),y=(O,G=!1)=>{const Q=h?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(O,!0,G)};t.watch([()=>n.rules,()=>n.pureDataRules],([O,G],[Q,ee])=>{if(O&&Q){const _=t.toRaw(Q),oe=t.toRaw(O),le=oe?Reflect.ownKeys(oe):[];(_?Reflect.ownKeys(_):[]).forEach(ve=>{le.includes(ve)||(oe[ve]=[])}),y(oe)}if(G&&ee){const _=t.toRaw(ee),oe=t.toRaw(G),le=oe?Reflect.ownKeys(oe):[];(_?Reflect.ownKeys(_):[]).forEach(ve=>{le.includes(ve)||(oe[ve]=[])}),y(oe,!0)}},{deep:!0});const g=e,v=t.computed(()=>{const O={};if(O.height=E.value,n.width)n.width!=="auto"&&(O.width=fe(n.width));else{const G=i?Ao(r,!0):null;if(m.value&&G){if(m.value.type==="grid"){const Q=$o(G,m.value,n.span,n.offset);Object.assign(O,Q)}else if(m.value.type==="flow"){const Q=To(G,m.value,n.span,n.offset,n.width);Object.assign(O,Q)}}}return O}),b=t.computed(()=>{const O=s.layout.value.type;return O==="grid"||O==="flow"?{[`${g}--${O}`]:!0,[`${g}--${O}-justify-${n.justify}`]:!0,[`${g}--${O}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${O}`]:!0,[`${g}--gutter`]:!0}}),u=t.computed(()=>{if(s.layout.value.type==="grid"){let G="";if(n.columnWidth)G=`repeat(auto-fill, ${n.columnWidth})`;else{const Q=Ei(B.value,s.layout.value.column,s.layout.value.gutter);G=`repeat(${s.layout.value.column}, ${Q})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":G}}}),p=t.toRef(n,"gutter"),k=t.toRef(n,"column"),S=t.computed(()=>i||f.value?!0:pe(n.isWrap)),w=[],N=O=>{w.push(O)},T=()=>{let O=w.length;w.splice(0,O)},B=t.ref(-1),D=O=>{const G=Pn(O).width;G>0&&G!==B.value&&(B.value=G)};Xo(r,B.value,k.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&t.watch([B,k,p],([O,G,Q])=>{s.order.index=0,Xo(r,O,G,Q,!1,n.minItemWidth,n.maxItemWidth,n.type)});const C=t.computed(()=>x.value?n.expandText??"":n.collapseText??""),V=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),M=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!x.value,"is-collapse":x.value})),L=t.ref(),$=t.ref(),E=t.computed(()=>A.value||fe(n.height)||""),x=t.ref(!1),A=t.ref(""),H=t.ref(!1);let R=-1;const Y=(O,G=!0)=>{const Q=L.value;if(Q&&x.value!==O){if(R=R===-1?$i(Q):R,H.value=!0,G)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",O||(A.value="",H.value=!1)},O){let ee=0;n.collapseHeight?ee=n.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(ee=$.value.offsetHeight),A.value=`${R}px`,t.nextTick(()=>{A.value=`${ee}px`})}else A.value=`${R}px`;else if(O){let ee=0;n.collapseHeight?ee=n.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(ee=$.value.offsetHeight),A.value=`${ee}px`}else H.value=!1,A.value=`${R}px`;x.value=O,a.emit("update:collapse",O)}};t.watch(()=>n.collapse,O=>{Y(O)});const U=()=>{P()},P=O=>{O=O??!x.value,Y(O)};Te({toggleCollapse:P,doLayout:()=>{w[0]&&(D(w[0]),Xo(r,B.value,k.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let j=null,q=!0;const F=O=>{if(n.rules){const G=t.toRaw(n.rules);y(G)}if(n.pureDataRules){const G=t.toRaw(n.pureDataRules);y(G,!0)}if(st&&(O&&Y(pe(n.collapse),!1),n.autoLayout&&Array.isArray(w)&&w.length>0)){const G=w[0];D(G),window.ResizeObserver&&(j=new window.ResizeObserver(()=>{D(G)}),j.observe(G))}},I=()=>{j?.disconnect(),j=null},K=!f.value||c?.acquire();K&&(d.value=f.value?!0:null),t.onMounted(()=>{if(K&&(F(q),q=!1),f.value&&c){let O=null,G=c.initialHeight;c.observe(L.value,Q=>{if(Q!==d.value)if(Q)d.value=!0,x.value||(A.value=""),O=setTimeout(()=>{O=null,d.value!==!1&&(F(q),q=!1)},100);else{if(O!==null&&clearTimeout(O),d.value=!1,!x.value)if(q)A.value=c.initialHeight;else{let ee=mn(L.value);ee<=0?A.value=G:(A.value=`${ee}px`,G=A.value)}q||I()}})}}),t.onUnmounted(()=>{j?.disconnect(),c&&c.unobserve(L.value)});const W=(O="right")=>{const G=[];if(C.value){const _={class:V.value},oe=t.h("span",_,[C.value]);G.push(oe)}const Q={class:M.value},ee=l(n.collapseIcon,Q);return ee&&G.push(ee),G.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${O}`]:!0},onClick:U},G):null},Z=(O,G,Q,ee)=>{const _={...b.value};return G===0&&(_[`${g}__first`]=!0),Q>=ee-1&&(_[`${g}__last`]=!0),t.h("div",{ref:N,key:`${G}`,class:_,style:u.value},O)};return()=>{if(f.value&&d.value!==!0){const _=n.tag||"div";return t.h(_,{ref:L,prop:n.name,class:{[`${g}`]:!0,"is-collapse":H.value},style:v.value},[])}s.order.index=0;const O=[];let G=0;if(a.slots.header){const _={key:`${G++}`,ref:$,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},oe=t.h("div",_,[a.slots.header()]);O.push(oe)}else{const _=[],oe=n.collapsePosition==="left";if(oe&&n.showCollapse){const le=W("left");le&&_.push(le)}if(n.title||a.slots.title){if(n.showMark){const le={class:{[`${g}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const $e=t.h("div",le);_.push($e)}if(a.slots.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[a.slots.title()]);_.push(le)}else if(n.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);_.push(le)}}if(a.slots.toolbar&&_.push(a.slots.toolbar()),!oe&&n.showCollapse){const le=W("right");le&&_.push(le)}if(_.length>0){const le={key:`${G++}`,ref:$,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},$e=t.h("div",le,_);O.push($e)}}T();const Q=a.slots.default?a.slots.default():[],ee=s.layout.value.type;if(ee==="grid"){const _=Z(Q,G++,0,Q.length);O.push(_)}else if(ee==="flow"){const _=Z(Q,G++,0,Q.length);O.push(_)}else for(let _=0;_<Q.length;_++){const oe=Q[_],le=Z([oe],G++,_,Q.length);O.push(le)}if(S.value){const _=n.tag||"div";return t.h(_,{ref:L,prop:n.name,class:{[`${g}`]:!0,"is-collapse":H.value},style:v.value},[O])}else return O}}}}const{componentName:Ii,create:qi,scope:Mi}=X("group"),zi=(e=te.RectUp,o={})=>t.h(e,o),Kn=qi(xi(Ii,Mi,zi));function Li(e){return e===window}const Pi=/matrix\((.+)\)/,Gr=e=>{const o=t.unref(e);if(!o)return{x:0,y:0};if(Li(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 f=Pi.exec(d);if(f){let h=f[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 Ri{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 Ri,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 qa=new Fi,Zr={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:Oi,create:Ki}=X("price"),Ui=Ki({props:{...Zr},setup(e){const o=t.computed(()=>({[Oi]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),n=t.computed(()=>ge(e.price)==0?"":mo(e.price,e.decimalLength,!0,me(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}}}),Hi=["innerHTML"],ji=["innerHTML"];function Wi(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,Hi)):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,ji)):t.createCommentVNode("",!0)],2)}const Ye=J(Ui,[["render",Wi]]),{componentName:Qo,create:Yi}=X("hint-text"),Xi=Yi({components:{Price:Ye},props:{...Zr,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,o){const l=t.ref({top:null,right:null,bottom:null,left:null}),n=t.ref({x:0,y:0}),a=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),d=(V,M,L,$,E,x)=>{const A=document.documentElement.clientWidth||document.body.clientWidth,H=document.documentElement.clientHeight||document.body.clientHeight,R=V.split("-");let Y=[];R[0]==="top"?Y=["top","bottom","right","left"]:R[0]==="bottom"?Y=["bottom","top","right","left"]:R[0]==="left"?Y=["left","top","bottom","right"]:R[0]==="right"&&(Y=["right","top","bottom","left"]);const U={top:null,right:null,bottom:null,left:null},P=[];for(let z=0;z<Y.length;z++){const j=Y[z];if(P[0]=j,R[1]&&(P[1]=R[1]),j==="top"){const q=M.y-x-e.arrowSize-e.offset;if(q>=0){U.top=q;let F=0;R[1]==="start"?F=M.x:R[1]==="end"?F=M.x+L-E:F=M.x+L/2-E/2;const I=A-F-E;I<0?(F+=I,m.value=-I):m.value=0,U.left=F<0?0:F;break}}else if(j==="bottom"){const q=M.y+$+e.arrowSize+e.offset;if(q+x<=H){U.top=q;let F=0;R[1]==="start"?F=M.x:R[1]==="end"?F=M.x+L-E:F=M.x+L/2-E/2;const I=A-F-E;I<0?(F+=I,m.value=-I):m.value=0,U.left=F<0?0:F;break}}else if(j==="left"){const q=M.x-E-e.arrowSize-e.offset;if(q>=0){U.left=q;let F=0;R[1]==="start"?F=M.y:R[1]==="end"?F=M.y+$-x:F=M.y+$/2-x/2,U.top=F<0?0:F;break}}else if(j==="right"){const q=M.x+L+e.arrowSize+e.offset;if(q+E<=A){U.left=q;let F=0;R[1]==="start"?F=M.y:R[1]==="end"?F=M.y+$-x:F=M.y+$/2-x/2,U.top=F<0?0:F;break}}}return{bestPlacement:P.join("-"),bestInsetRect:U}},f=(V,M,L=10)=>{if(!st||M===!1||!V)return;n.value=Gr(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const $=c.value.offsetHeight,E=c.value.offsetWidth,{bestPlacement:x,bestInsetRect:A}=d(e.placement,n.value,a.value,r.value,E,$);s.value=x,l.value=A,i.value=!0},m=t.ref(0),h=ht(()=>{f(e.message,e.visible)},10),y=t.ref(e.visible);t.watch(()=>e.visible,V=>{y.value=V});const g=t.computed(()=>y.value&&v.value),v=t.ref(!0),b=ht(V=>{const M=V[0];M&&(v.value=M.isIntersecting)},10),u=new IntersectionObserver(b);t.watch([()=>e.message,()=>e.visible],([V,M])=>{setTimeout(()=>{f(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{f(e.message,e.visible)},0),qa.watch(e.reference,h),u.observe(e.reference)}),t.onBeforeMount(()=>{qa.unwatch(e.reference,h),u.unobserve(e.reference),u.disconnect()});const p=t.computed(()=>{const V={[Qo]:!0};return s.value.startsWith("top")?V["is-top"]=!0:s.value.startsWith("right")?V["is-right"]=!0:s.value.startsWith("bottom")?V["is-bottom"]=!0:s.value.startsWith("right")&&(V["is-right"]=!0),e.size==="small"?V["is-small"]=!0:e.size==="large"&&(V["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(V[`${e.customClass}`]=!0),V}),k=t.computed(()=>{const V={};l.value.top!==null&&(V.top=`${l.value.top}px`),l.value.right!==null&&(V.right=`${l.value.right}px`),l.value.bottom!==null&&(V.bottom=`${l.value.bottom}px`),l.value.left!==null&&(V.left=`${l.value.left}px`),e.autoFit&&(V["min-width"]=`${a.value}px`);const M=document.documentElement.clientWidth||document.body.clientWidth;return V["max-width"]=`${M}px`,i.value&&(V.opacity="1"),e.transition||(V.transition="none"),e.zIndex&&(V["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(V,e.customStyle),V}),S=t.computed(()=>{const V=[`${Qo}__content`];return e.customTextClass&&V.push(e.customTextClass),V}),w=t.computed(()=>{const V={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(V,e.customTextStyle),V}),N=t.computed(()=>({[`${Qo}__arrow`]:!0})),T=t.computed(()=>{const V={};return e.showArrow?(V.width=`${e.arrowSize}px`,V.height=`${e.arrowSize}px`,s.value==="top"?(V.left="50%",V.bottom=`-${e.arrowSize}px`,V.transform=" translate(-50%, 0%)"):s.value==="top-start"?(V.left=`${e.arrowOffset+m.value}px`,V.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(V.right=`${e.arrowOffset-m.value}px`,V.bottom=`-${e.arrowSize}px`):s.value==="right"?(V.left=`-${e.arrowSize}px`,V.top="50%",V.transform=" translate(0%, -50%)"):s.value==="right-start"?(V.left=`-${e.arrowSize}px`,V.top=`${e.arrowOffset}px`):s.value==="right-end"?(V.left=`-${e.arrowSize}px`,V.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(V.left="50%",V.top=`-${e.arrowSize}px`,V.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(V.left=`${e.arrowOffset+m.value}px`,V.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(V.right=`${e.arrowOffset-m.value}px`,V.top=`-${e.arrowSize}px`):s.value==="left"?(V.right=`-${e.arrowSize}px`,V.top="50%",V.transform=" translate(0%, -50%)"):s.value==="left-start"?(V.right=`-${e.arrowSize}px`,V.top=`${e.arrowOffset}px`):s.value==="left-end"&&(V.right=`-${e.arrowSize}px`,V.bottom=`-${e.arrowOffset}px`),V):{display:"none"}}),B=t.computed(()=>g.value&&e.closeOnClick),D=t.computed(()=>{const V={};return e.zIndex&&(V["z-index"]=`${e.zIndex}`),V});return{show:g,tipRef:c,classes:p,styles:k,textClasses:S,textStyles:w,arrowClasses:N,arrowStyles:T,overlayShow:B,overlayStyle:D,onClickOverlay:()=>{y.value=!1,o.emit("update:visible",!1)}}}});function Qi(e,o,l,n,a,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:o[0]||(o[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.message),1)],64))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Jr=J(Xi,[["render",Qi]]);class Un{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 pn={},Gi=new Un,pt=new Map,uo=e=>{if(e){const o=document.getElementById(e);pt.delete(e),o&&o.parentNode?.removeChild(o)}else{for(const o of pt.keys()){const l=document.getElementById(o);l&&l.parentNode?.removeChild(l)}pt.clear()}},Zi=e=>{e.unmount=uo;const o=document.getElementById(e.id);if(o){const l=pt.get(e.id);l?e={...pn,...l,...e}:e={...pn,...e},e.transition=!1;const n=t.createVNode(Jr,e);return t.render(n,o),e.id}},Ji=e=>{e.unmount=uo;let o=e.id??`hinttext_${Gi.get()}`;e={...pn,...e},e.id=o,pt.set(o,e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(Jr,e);return t.render(n,l),document.body.appendChild(l),o},_i=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},ot={show(e,o,l={},n=!0){_i(o);const a=l.id;return a&&pt.has(a)?Zi({...l,message:o,reference:e}):(n&&uo(),Ji({...l,message:o,reference:e}))},hide(e){uo(e)},install(e){e.config.globalProperties.$hintText=ot}},{componentName:Ma,create:ec}=X("item"),tc=ec({inheritAttrs:!0,props:{...ue,...de},emits:["appear","disappear"],setup(e,o){const l=e.prop??o.attrs.name;we({componentName:Ma,validate:!1},l);const n=Oe(),a=No();Bo(!1);const r=t.computed(()=>a&&n?Vo(n,!1).value:null),s=Ma,i=t.ref(null),c=t.computed(()=>{const O={[s]:!0,[`${s}__gutter`]:r.value&&r.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:pe(e.hasBorder)};if(O[e.errorMarkClass]=!!M.value,O[e.warnMarkClass]=!!C.value,O[e.infoMarkClass]=!!B.value,typeof i.value=="function"){const G=i.value(l);O[G]=!0}else if(typeof i.value=="string"){const G=i.value;O[G]=!0}return O}),d=t.ref(null),f=t.computed(()=>{const O={};if(e.width)e.width!=="auto"&&(O.width=fe(e.width));else{const G=a&&n?Ao(n,!1):null;if(r.value&&G){if(r.value.type==="grid"){const Q=$o(G,r.value,e.span,e.offset);Object.assign(O,Q)}else if(r.value.type==="flow"){const Q=To(G,r.value,e.span,e.offset,e.width);Object.assign(O,Q)}}}if(typeof d.value=="function"){const G=d.value(l);G&&Object.assign(O,G)}else if(d.value&&typeof d.value=="object"){const G=d.value;Object.assign(O,G)}return O}),m=t.ref(null),h=t.computed({get:()=>m.value??pe(e.isRequired),set:O=>{m.value=O}}),y=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof o.slots.label=="function"),g=Ne(t.toRef(e,"labelPosition"),"labelPosition",io.Near),v=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),b=t.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${v.value}`]:!0})),u=t.computed(()=>({label:!0,[`label--${v.value}`]:!0})),p=Ne(t.toRef(e,"labelWidth"),"labelWidth",io.Near),k=t.computed(()=>p&&p.value?{width:fe(p.value)}:{}),S=t.computed(()=>({"label--string":!0,"label--required":h.value})),w=t.computed(()=>({content:!0,[e.contentClass]:!0})),N=t.computed(()=>({...e.contentStyle})),T=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Te({setRequired(O){h.value=O},setErrorTip(O){T.errorTip=O},setErrorIcon(O){T.errorIcon=O},setWarnTip(O){T.warnTip=O},setWarnIcon(O){T.warnIcon=O},setInfoTip(O){T.infoTip=O},setInfoIcon(O){T.infoIcon=O},setCustomClassName(O){i.value=O},setCustomStyle(O){d.value=O}});const B=t.computed(()=>e.infoTip||T.infoTip),D=t.computed(()=>e.infoIcon||T.infoIcon),C=t.computed(()=>e.warnTip||T.warnTip),V=t.computed(()=>e.warnIcon||T.warnIcon),M=t.computed(()=>e.errorTip||T.errorTip),L=t.computed(()=>e.errorIcon||T.errorIcon),$=t.computed(()=>M.value?"error":C.value?"warn":B.value?"info":""),E=t.computed(()=>$.value.length>0),x=t.computed(()=>$.value==="error"?M.value:$.value==="warn"?C.value:$.value==="info"?B.value:""),A=t.computed(()=>$.value==="error"?L.value:$.value==="warn"?V.value:$.value==="info"?D.value:null),H=t.computed(()=>{let O={[`${s}__tip`]:!0,[`${s}__tip--${$.value}`]:!0};return $.value==="error"&&e.errorClass?O[`${e.errorClass}`]=!0:$.value==="warn"&&e.warnClass?O[`${e.warnClass}`]=!0:$.value==="info"&&e.infoClass&&(O[`${e.infoClass}`]=!0),O}),R=t.computed(()=>{let O={};return g&&g.value==="top"||!y.value?O["padding-left"]="0px":p&&p.value&&(O["padding-left"]=fe(p.value)),O}),Y=()=>{const O=A.value;return O?typeof O=="function"?t.h("div",{class:"fox-item__tip--icon"},[O()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(O)]):null},U=()=>{const O=x.value;return O?typeof O=="function"?t.h("div",{class:"fox-item__tip--text"},[O()]):t.h("div",{class:"fox-item__tip--text"},[O]):null},P=t.computed(()=>o.slots.fixedPreTip),z=t.computed(()=>({[`${s}__fixed-pre-tip`]:!0})),j=t.computed(()=>o.slots.fixedTip),q=t.computed(()=>({[`${s}__fixed-tip`]:!0})),F=t.ref();let I="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([O,G,Q,ee])=>{F.value&&(O&&!ie(G)?I?ot.show(F.value,G,{...ee,id:I,type:Q},!0):I=ot.show(F.value,G,{...ee,type:Q},!0):ot.hide(I))});let K=null;const W=()=>{K||!F.value||(K=new IntersectionObserver(O=>{let G=!1;for(let Q of O)if(Q.intersectionRatio>0){G=!0,G&&o.emit("appear",Q);break}G||o.emit("disappear")}),K.observe(F.value))},Z=()=>{!K||!F.value||(K.unobserve(F.value),K=null)};return t.watch(()=>pe(e.appearListen),O=>{O?W():Z()}),t.onMounted(()=>{pe(e.appearListen)&&W()}),t.onUnmounted(Z),{classes:c,styles:f,mainClasses:b,hasLabel:y,labelClasses:u,labelStyles:k,labelStringClasses:S,contentClasses:w,contentStyles:N,contentRef:F,hasTip:E,mTip:x,mIcon:A,renderIcon:Y,renderTip:U,tipClasses:H,tipStyles:R,hasFixedTip:j,fixedTipClasses:q,hasFixedPreTip:P,fixedPreTipClasses:z}}}),oc=["prop"];function nc(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2),t.renderSlot(e.$slots,"fixedPreTip")],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon()),{key:0})):t.createCommentVNode("",!0),e.mTip?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderTip()),{key:1})):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,oc)}const be=J(tc,[["render",nc]]);function lc(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,String],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=No();Bo(!1);const c=t.computed(()=>{const d={};if(l.width)l.width!=="auto"&&(d.width=fe(l.width));else if(i&&s){const f=Vo(s,!1),m=Ao(s,!1);if(f.value&&m){if(f.value.type==="grid"){const h=$o(m,f.value,l.span,l.offset);Object.assign(d,h)}else if(f.value.type==="flow"){const h=To(m,f.value,l.span,l.offset,l.width);Object.assign(d,h)}}}return d});return()=>{const d=[];if(n.slots.default){const m=n.slots.default();if(l.divide)for(let h=0;h<m.length;h++){if(h>0){const y=t.h("div",{class:{[`${a}__divide`]:!0}});d.push(y)}d.push(m[h])}else Reflect.apply([].push,d,m)}const f={class:r.value,style:c.value};return t.h("div",f,d)}}}}const{componentName:ac,create:rc,scope:TB}=X("row-item"),Hn=rc(lc(ac));function sc(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=No();Bo(!1);const s=t.computed(()=>r&&a?Vo(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 f={};if(l.width)l.width!=="auto"&&(f.width=fe(l.width));else{const m=r&&a?Ao(a,!1):null;if(s.value&&m){if(s.value.type==="grid"){const h=$o(m,s.value,l.span,l.offset);Object.assign(f,h)}else if(s.value.type==="flow"){const h=To(m,s.value,l.span,l.offset,l.width);Object.assign(f,h)}}}return f});return()=>{const f={class:c.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?t.h("div",f,n.slots.default()):t.h("div",f)}}}}const{componentName:ic,create:cc,scope:$B}=X("slot-item"),jn=cc(sc(ic)),za={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 uc(e,o,l,n){return{props:{...ue,...de,...za},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),{toLocaleRefs:d}=ae.useFoxI18n(o),f=d(a,["placeholder"]),m=t.ref(!1),h=Ee(a,"modelValue"),y=e,g=t.computed(()=>({[y]:!0,[`${y}--disabled`]:s.value,[`${y}--readonly`]:i.value})),v=Ne(t.computed(()=>a.textAlign),"textAlign"),b=t.computed(()=>{const E={};return v.value&&(E["text-align"]=v.value),E}),u=E=>{let A=E.target.value;a.type==="digit"&&(A=cn(A,!0)),a.type==="number"&&(A=cn(A,!1)),a.maxLength&&A.length>Number(a.maxLength)&&(A=A.slice(0,Number(a.maxLength))),h.value=A,c("update:modelValue",A,E),c("change",A,E)};let p=Ee(a,"hintText"),k=t.ref(!1);const S=E=>{let A=E.target.value;m.value=!0,ie(p.value)||(k.value=!0),c("focus",A,E)},w=E=>{setTimeout(()=>{k.value&&(k.value=!1),m.value=!1},0);let A=E.target.value;a.maxLength&&A.length>Number(a.maxLength)&&(A=A.slice(0,Number(a.maxLength))),c("blur",A,E)},N=t.computed(()=>({[`${y}__append`]:!0})),T=t.computed(()=>{const E={};return r.slots.append&&!B.value&&!L.value&&(E.display="none"),E}),B=t.computed(()=>ge(a.unit)>0),D=t.computed(()=>!L.value),C=t.computed(()=>({[`${y}__unit`]:!0,hidden:!D.value})),V=E=>{h.value="",c("update:modelValue","",E),c("change","",E),c("clear","")},M=t.computed(()=>pe(a.clearable)&&!s.value&&!i.value),L=t.computed(()=>{let E=ge(h.value)>0;return pe(a.clearable)&&E&&m.value}),$=t.computed(()=>({action:!0,hidden:!L.value}));return()=>{const E={class:g.value,style:b.value,type:a.type,maxlength:a.maxLength,placeholder:f.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:u,onFocus:S,onBlur:w},x=[],A=t.h("input",E);x.push(A);const H=[];if(M.value){const q={class:["action-icon"]},F=t.h(n,q),I={class:$.value,onClick:V},K=t.h("view",I,{default:()=>[F]});H.push(K)}if(B.value){const q=t.h("view",{class:C.value},[a.unit]);H.push(q)}const R={class:N.value,style:T.value},Y=t.h("view",R,{default:()=>H});x.push(Y);const U={default:()=>x};U.label=r.slots.default,U.prepend=r.slots.prepend,U.append=r.slots.append,U.fixedPreTip=r.slots.fixedPreTip,U.fixedTip=r.slots.fixedTip;const z={...xn(a,za),hintText:p.value,hintVisible:k.value};return t.h(l,z,U)}}}}const{componentName:dc,create:fc,scope:mc}=X("input-item"),Wn=fc(uc(dc,mc,be,te.CircleClose));function La(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 Pa(e,o,l=20){if(typeof o=="string"&&(o=me(o)),o==1||o==-1)return`${e}`;if(o==0)return"0";if(o>0){let n=yr(`${e}`,`${o}`);return La(n)}else{let n=En(`${e}`,vr(`${o}`),20);return La(n)}}function pc(e,o=-1,l=!1,n=3,a=","){return mo(e,o,l,n,a)}function Ra(e,o,l,n,a=!0){if(e=="")return"";if(e=kr(e),o=me(o),o==1)return e;if(n)e=Pa(e,o),l&&(e=="0"&&a?e=`${e}.`.padEnd(me(l)+2,"0"):e=En(e,1,me(l)));else{let r=-1*o;e=Pa(e,r)}return e}function Fa(e,o){let l={maxValid:!0,minValid:!0,message:""};if(o.min!==void 0){let n=pe(o.minInclude),a=an(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=pe(o.maxInclude),a=an(e,o.max);(n&&a==1||!n&&(a==0||a==1))&&(l.maxValid=!1)}return l}const Oa={clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function hc(e,o,l,n){return{props:{...ue,...de,...Oa},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(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),f=Ee(a,"modelValue"),m=t.ref("");t.watch([()=>f.value,()=>a.rates,()=>a.precision],([R,Y,U])=>{if(ie(R)){m.value="";return}const P=Ra(R,Y,U,!1);m.value!==P&&(m.value=P)},{immediate:!0});const h=t.computed(()=>{let R="";return d.value&&(R=m.value),R}),{t:y}=ae.useFoxI18n(o),g=t.computed(()=>{let R=a.placeholder??"";return!d.value&&!ie(m.value)?R=pc(m.value,a.decimalLength,a.autoPadding,a.digits,a.separator):R=ie(R)?y(["placeholder"]):R,R}),v=e,b=t.computed(()=>({[v]:!0,[`${v}--disabled`]:s.value,[`${v}__placeholder`]:m.value.length>0})),u=Ne(t.computed(()=>a.textAlign),"textAlign"),p=t.computed(()=>{const R={};return u.value&&(R["text-align"]=u.value),R}),k=t.ref(""),S=t.computed(()=>{let R=k.value;return ie(R)&&(R=a.errorTip??""),R}),w=t.ref(""),N=t.ref(!1),T=R=>{let U=R.target.value;if(ie(U)){m.value="",f.value="",c("update:modelValue","",R),c("change","",R),pe(a.showTip)&&N.value&&(N.value=!1);return}if(U.length>=2){let P=U;if(P.charAt(0)=="-"&&(P=P.substring(1)),P.length>=2&&P.charAt(0)=="0"&&P.charAt(1)!="."){t.triggerRef(m);return}}if(U!="-"){if(!Tr(U)){t.triggerRef(m);return}if(a.integerLength!=-1&&$r(U)>Number(a.integerLength)){t.triggerRef(m);return}if(a.decimalLength&&a.decimalLength!=-1&&Er(U)>Number(a.decimalLength)){t.triggerRef(m);return}let P=Fa(U,a);if(P.maxValid===!1){k.value=P.message,t.triggerRef(m);return}}else if(a.min!=null&&me(a.min)>=0){t.triggerRef(m);return}w.value=U,pe(a.showTip)&&(N.value=U.length>0),m.value=U,f.value=Ra(U,a.rates,a.precision,!0),c("update:modelValue",f.value,R),c("change",f.value,R)},B=R=>{if(d.value=!0,pe(a.showTip)){let Y=m.value;ie(Y)&&(Y=a.hintText),ie(Y)||(w.value=Y,N.value=!0)}k.value="",c("focus",f.value,R)},D=R=>{if(setTimeout(()=>{d.value=!1,pe(a.showTip)&&N.value===!0&&(N.value=!1)},0),!ie(m.value)){let Y=Fa(m.value,a);if(Y.minValid===!1||Y.maxValid===!1){k.value=Y.message;return}}c("update:modelValue",f.value,R),c("blur",f.value,R)},C=t.computed(()=>({[`${v}__append`]:!0})),V=t.computed(()=>{const R={};return r.slots.append&&!M.value&&!A.value&&(R.display="none"),R}),M=t.computed(()=>ge(a.unit)>0),L=t.computed(()=>!A.value),$=t.computed(()=>({[`${v}__unit`]:!0,hidden:!L.value})),E=R=>{f.value="",c("update:modelValue","",R),c("change","",R),c("clear","")},x=t.computed(()=>pe(a.clearable)&&!s.value&&!i.value),A=t.computed(()=>{let R=ge(f.value)>0;return pe(a.clearable)&&R&&d.value}),H=t.computed(()=>({action:!0,hidden:!A.value}));return()=>{let R={class:b.value,style:p.value,type:"digit",maxlength:a.maxLength,placeholder:g.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:T,onFocus:B,onBlur:D},Y=[],U=t.h("input",R);Y.push(U);let P=[];if(x.value){const W={class:["action-icon"]},Z=t.h(n,W),O={class:H.value,onClick:E},G=t.h("view",O,{default:()=>[Z]});P.push(G)}if(M.value){const W=t.h("view",{class:$.value},[a.unit]);P.push(W)}const z={class:C.value,style:V.value},j=t.h("view",z,{default:()=>P});Y.push(j);const q={default:()=>Y};q.label=r.slots.default,q.prepend=r.slots.prepend,q.append=r.slots.append,q.fixedPreTip=r.slots.fixedPreTip,q.fixedTip=r.slots.fixedTip;let I={...xn(a,Oa),errorTip:S.value,hintText:w.value,hintVisible:N.value,hintType:"number"};return t.h(l,I,q)}}}}const{componentName:gc,create:yc,scope:vc}=X("money-item"),Yn=yc(hc(gc,vc,be,te.CircleClose)),hn={modelValue:{type:[String,Number],default:""},textAlign:{type:String,default:""},limitShow:{type:Boolean,default:!1},maxLength:{type:[String,Number],default:""},rows:{type:[String,Number],default:"2"},placeholder:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autosize:{type:[Boolean,Object],default:!1},autofocus:{type:Boolean,default:!1}},{componentName:kc,create:bc,scope:Sc}=X("textarea"),Cc=bc({props:{...hn},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:o}){let{toLocaleRefs:l}=ae.useFoxI18n(Sc);const n=l(e,["placeholder"]),a=t.ref(),r=t.computed(()=>{const h=kc;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:g,minHeight:v}=e.autosize;g!==void 0&&(y=Math.min(y,g)),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 g=h.target.value;c(g,h),o("blur",{value:g,event:h})}}}}),wc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Nc={key:0,class:"fox-textarea__limit"};function Bc(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,wc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Nc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const Eo=J(Cc,[["render",Bc]]);function Vc(e,o,l,n){return{props:{...ue,...de,...hn},emits:["update:modelValue","change","blur","focus"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=Ee(a,"modelValue"),f=v=>{d.value=v,c("update:modelValue",v,{}),c("change",v,{})};let m=Ee(a,"hintText"),h=t.ref(!1);const y=v=>{ie(m.value)||(h.value=!0),c("focus",d.value,v)},g=v=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",d.value,v)};return()=>{const b={...he(a,hn),disabled:s.value,readonly:i.value,value:d.value,"onUpdate:modelValue":f,onFocus:y,onBlur:g},u=[],p=t.h(n,b);u.push(p);const k={default:()=>u};k.label=r.slots.default,k.prepend=r.slots.prepend,k.append=r.slots.append,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const S=he(a,de,ue);return t.h(l,S,k)}}}}const{componentName:Ac,create:Tc,scope:$c}=X("textarea-item"),Xn=Tc(Vc(Ac,$c,be,Eo));function Ec(e){return e===window}const Ve=e=>{const o=t.unref(e);if(Ec(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}},Xe={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:{}}},_r=2e3;let Ka=_r;const Dc=(e,o)=>({components:o,props:{...Xe},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!==_r&&(Ka=Number(l.zIndex)),n("update:visible",!0),a.zIndex=++Ka,l.destroyOnClose&&(a.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+l.duration*1e3)},f=v=>{n("click-pop",v)},m=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)},g=v=>{n("closed",v)};return t.watch(()=>l.visible,v=>{l.visible?c():d()}),t.watch(()=>l.closeable,v=>{a.closed=v}),{...t.toRefs(a),popStyle:s,transitionName:i,classes:r,onClick:f,onClickCloseIcon:m,onClickOverlay:h,onOpened:y,onClosed:g}}});let Bt=0;const Ua="fox-overflow-hidden",Ha=()=>st?document.body:{classList:[]},xc=e=>[()=>{if(e())try{!Bt&&Ha().classList.add(Ua),Bt++}catch{}},()=>{if(e()&&Bt)try{Bt--,!Bt&&Ha().classList.remove(Ua)}catch{}}],Ic={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:qc,create:Mc}=X("overlay"),zc=Mc({props:{...Ic},emits:["click","update:visible"],setup(e,{emit:o}){const[l,n]=xc(()=>e.lockScroll),a=t.computed(()=>({[qc]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,i=>{i?l():n()}),{classes:a,style:r,onClick:i=>{o("click",i),e.closeOnClickOverlay&&o("update:visible",!1)}}}});function Lc(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 at=J(zc,[["render",Lc]]),{componentName:Pc,create:Rc}=X("popup"),Fc=Rc(Dc(Pc,{FoxOverLay:at,Close:te.Close}));function Oc(e,o,l,n,a,r){const s=t.resolveComponent("FoxOverLay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick: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=J(Fc,[["render",Oc]]),ja=10;function Kc(e,o){return e>o&&e>ja?"horizontal":o>e&&o>ja?"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),f=t.ref(""),m=()=>f.value==="vertical",h=()=>f.value==="horizontal",y=()=>{s.value=0,i.value=0,c.value=0,d.value=0,f.value="",l.value=0};return{move:b=>{const u=b.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,f.value||(f.value=Kc(c.value,d.value))},start:b=>{y(),e.value=b.touches[0].clientX,o.value=b.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:f,isVertical:m,isHorizontal:h}}const es={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}},gn={...Xe,...es,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 ts=36;function Uc(){return ts}function Hc(e){ts=e}function qe(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function yn(e,o){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?o[e.childrenKey]:o.children??null}function jc(e,o,l){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(o[e.childrenKey]=l),o.children=l}function rt(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function Wa(e,o){return typeof e.itemOptions=="function"?e.columnOptions(o):e.columnOptions}let Wc=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=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function Yc(){const e=t.getCurrentInstance();return new Wc(e.proxy)}function Ya(e,o,l){const n=qe(e,o),a=qe(e,l);if(n!==a)return!1;const r=rt(e,o),s=rt(e,l);return r===s}function Xc(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(f=>{if(r==="text")return qe(e,f)===i;if(r==="value"){let m=rt(e,f);return m==null&&(m=qe(e,f)),m===i}else if(r==="item")return Ya(e,f,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(m=>{if(r==="text")return qe(e,m)===c;if(r==="value"){let h=rt(e,m);return h==null&&(h=qe(e,m)),h===c}else if(r==="item")return Ya(e,m,c)});if(d==-1)break;a.push(d);const f=yn(e,s[d]);if(!Array.isArray(f))break;s=f}}return a}function Xa(e,o,l,n){if(l.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<o.length&&s<l.length;s++){const i=l[s];let c=o[s];c<0&&c>=i.length&&(c=0);const d=i[c],f=qe(e,d);if(a.texts.push(f),a.items.push(d),r==="text")a.values.push(f);else if(r==="value"){let m=rt(e,d);m==null&&(m=f),a.values.push(m)}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],f=Object.assign({},d);f.children=null;const m=qe(e,d);if(a.texts.push(m),a.items.push(f),r==="text")a.values.push(m);else if(r==="value"){let h=rt(e,d);h==null&&(h=m),a.values.push(h)}else a.values.push(f);if(!Array.isArray(d.children))break;s=d.children}}return a}function Qa(e){return{text:e,value:e}}const Qc=15,Gc=300,Zc=200,{create:Jc}=X("picker-column");function _c(e){e.stopPropagation()}function eu(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&_c(e)}const tu=Jc({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},...es},emits:["click","change","update:modelValue"],setup(e,{emit:o}){const l=t.computed(()=>({"fox-picker__list":!0})),n=t.computed(()=>({height:`${me(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>=m.currIndex+8||B<=m.currIndex-8,i=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${m.deg})`,top:`${r.value}px`})),c=B=>`transform: rotate3d(1, 0, 0, ${-m.rotation*B}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${m.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${m.scrollDistance+r.value}px, 0)`})),f=t.ref(null),m=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=B=>qe(e,B),g=B=>rt(e,B),v=Ke(),b=()=>{m.transitionEndTrigger&&(m.transitionEndTrigger(),m.transitionEndTrigger=null)},u=(B,D=!1,C=!1)=>{if(m.currIndex=B,D){const V=()=>{m.moving=!1,o("update:modelValue",B),o("change",B)};C?m.transitionEndTrigger=V:V()}},p=(B,D,C)=>{let V=B+m.startDistance;if(D==="end"){const M=-(h.value.length-1)*e.itemHeight;V<M&&(V=M,(!C||C<=0)&&(C=e.swipeDuration)),V>0&&(V=0,(!C||C<=0)&&(C=e.swipeDuration));let L=Math.abs(Math.round(-V/e.itemHeight));const $=-L*e.itemHeight,E=`${(L+1)*m.rotation}deg`,x=C?C>0:!1;u(L,!0,x),k($,D,C,E)}else{let M=(-V/e.itemHeight+1)*m.rotation;const L=(h.value.length+1)*m.rotation,$=0;if(M=Math.min(Math.max(M,$),L),e.threeDimensional&&(M<$||M>L))return;k(V,null,void 0,`${M}deg`)}},k=(B=0,D,C=Zc,V)=>{D==="end"?m.scrollTime=C:m.scrollTime=0,m.deg=V,m.scrollDistance=B},S=(B,D)=>(B=Math.abs(B/D)/.003*(B<0?-1:1),B),w=B=>{e.readonly||(m.startDistance=m.scrollDistance,v.start(B),m.transitionEndTrigger=null)},N=B=>{e.readonly||(m.moving=!0,v.move(B),v.isVertical()&&(m.moving=!0,eu(B,!0)),p(v.deltaY.value,"",0))},T=()=>{if(e.readonly)return;const B=v.deltaY.value,D=v.duration.value;if(D<Gc&&Math.abs(B)>Qc){const V=S(B,D);p(V,"end",e.swipeDuration)}else p(B,"end",0)};return t.watch(()=>e.modelValue,B=>{if(m.currIndex!==B){m.currIndex=B;const D=-B*e.itemHeight;p(D)}}),t.onMounted(()=>{const B=-e.modelValue*e.itemHeight;p(B)}),{classes:l,styles:n,contentClasses:a,source:h,itemText:y,itemValue:g,...t.toRefs(m),roller:f,getItemText:qe,onTouchStart:w,onTouchMove:N,onTouchEnd:T,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:d,stopMomentum:b}}}),ou={key:1,class:"fox-picker__item-tile"};function nu(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",ou,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Ga=J(tu,[["render",nu]]),{create:lu,componentName:au,scope:ru}=X("picker"),su=lu({components:{[Ga.name]:Ga,[ce.name]:ce},props:{...gn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:o}){const{toLocaleRefs:l,t:n}=ae.useFoxI18n(ru),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Uc());t.watch(()=>e.visible,C=>{C&&s.value<=0&&setTimeout(()=>{if(r.value){const V=Ve(r.value);s.value=V.height,Hc(s.value)}},50)});const i=t.computed(()=>({[au]:!0})),c=Yc(),d=t.ref("singleColumn");let f=t.ref([]);t.watch([()=>e.source,()=>e.params],async([C,V])=>{if(C){let M=await c.load("picker",C,V);if(M.length>0){let L=M[0];if(Array.isArray(L)){if(typeof L[0]=="string"){let $=M,E=[];$.forEach(x=>{let A=x.map(H=>Qa(H));E.push(A)}),f.value=E}else f.value=M;d.value="multipleColumn"}else if(typeof L=="string"){let $=M,E=[],x=$.map(A=>Qa(A));E.push(x),f.value=E,d.value="singleColumn"}else{const $=yn(e,L);Array.isArray($)?(d.value="cascade",f.value=[M]):(d.value="singleColumn",f.value=[M])}}else f.value=[]}},{immediate:!0});const m=t.ref([]),h=t.ref(e.modelValue),y=t.ref([]),g=t.ref([]);t.watch([()=>e.modelValue,()=>f.value],([C,V])=>{let M=Xc(e,C,V,d.value);if(!xe(M,g.value)){g.value=M;let L=Xa(e,M,V,d.value);L&&(m.value=L.texts,o("update:text",m.value))}});const v=t.ref(e.visible);t.watch(()=>e.visible,C=>{v.value=C});const b=C=>{let V=Wa(e,C);return Be(V)?V.defaultIndex??0:0},u=C=>{if(e.readonly===!0)return!0;let V=Wa(e,C);return Be(V)?V.readonly??!1:!1},p=(C,V)=>{let M=g.value;M[C]=V;for(let $=0;$<C;$++)M[$]==null&&(M[$]=b($));if(d.value==="cascade")for(let $=C+1;$<S.value.length;$++){let E=b($);$<M.length?M[$]=E:M.push(E)}else for(let $=M.length;$<S.value.length;$++){let E=b($);M.push(E)}g.value=M;let L=Xa(e,M,f.value,d.value);L&&(m.value=L.texts,h.value=L.values,y.value=L.items)},k=C=>C<g.value.length?g.value[C]:b(C),S=t.computed(()=>{if(f.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return f.value;let C=[],V=0,M=f.value[0],L=0;for(;;){let $=M.map(A=>{let H=Object.assign({},A);return jc(e,H,null),H});C.push($),V>=g.value.length?L=0:L=g.value[V],(L<0||L>=M.length)&&(L=0);let E=M[L];const x=yn(e,E);if(!Array.isArray(x))break;M=x,V++}return C}),w=t.computed(()=>me(+e.visibleItemCount-1)/2*s.value);return{...a,pickerLineRef:r,classes:i,columns:S,dataType:d,show:v,itemHeight:s,top:w,isReadonly:u,getIndex:k,change:(C,V)=>{p(C,V)},close:()=>{o("close"),o("update:visible",!1)},confirm:()=>{if(e.readonly===!0){o("update:visible",!1);return}let C=f.value.length-1;for(;C>=0&&!(g.value[C]===null||g.value[C]===void 0);C--);if(C>=0&&p(C,0),d.value==="singleColumn"){let V=h.value.length>0?h.value[0]:"",M=y.value.length>0?y.value[0]:null;e.readonly||(o("update:modelValue",V),o("update:text",m.value),o("change",V,M)),o("confirm",V)}else e.readonly||(o("update:modelValue",h.value),o("update:text",m.value),o("change",h.value,y.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)}}}}),iu={class:"fox-picker__bar"},cu={class:"fox-picker__title"},uu={class:"fox-picker__bar__action"},du={class:"fox-picker__column"};function fu(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",iu,[t.createElementVNode("view",cu,t.toDisplayString(e.title),1),t.createElementVNode("view",uu,[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",du,[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":f=>e.change(d,f),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["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 yt=J(su,[["render",fu]]);function mu(e,o,l,n,a,r,s=!0){return{props:{...ue,...de,...gn,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),f=Ae(t.computed(()=>i.readonly)),{emitEvent:m}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),v=Ee(i,"modelValue"),b=t.ref([]),u=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),p="fox-input-item",k=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),w=t.computed(()=>{const j={};return S.value&&(j["text-align"]=S.value),j}),N=t.ref(!1),T=()=>{N.value=!0},B=j=>{N.value=j},D=j=>{v.value=j,m("update:modelValue",j)},C=(j,q)=>{m("change",j,q)},V=j=>{let F=j.target.value;g.value=!0,m("focus",F,j)},M=j=>{setTimeout(()=>{g.value=!1},0);let F=j.target.value;i.maxLength&&F.length>Number(i.maxLength)&&(F=F.slice(0,Number(i.maxLength))),m("blur",F,j)},L=j=>{b.value=j,Array.isArray(j)&&j.length===0?m("update:text",j[0]):m("update:text",j)},$=t.computed(()=>({[`${p}__append`]:!0})),E=t.computed(()=>ge(i.unit)>0),x=t.computed(()=>ge(i.unit)>0&&!g.value),A=t.computed(()=>({hidden:!x.value})),H=j=>{v.value="",m("update:modelValue","",j),m("change","",j),m("clear","")},R=t.computed(()=>i.clearable&&!d.value&&!f.value),Y=t.computed(()=>ge(v.value)>0&&g.value),U=j=>{Y.value?H(j):T()},P=t.computed(()=>Y.value&&R.value?n:a),z=t.computed(()=>({action:!0}));return()=>{const j={class:k.value,style:w.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:T,onFocus:V,onBlur:M};s&&(j.disabled=!0);const q=[],F=t.h("input",j);q.push(F);const I=[],K={class:["action-icon"]},W=t.h(P.value,K),Z={class:z.value,onClick:U},O=t.h("view",Z,{default:()=>[W]});if(I.push(O),E.value){const ve=t.h("view",{class:A.value},[i.unit]);I.push(ve)}const G={class:$.value},Q=t.h("view",G,{default:()=>I});q.push(Q);const ee={default:()=>q};ee.label=c.slots.default,ee.prepend=c.slots.prepend,ee.append=c.slots.append,ee.fixedPreTip=c.slots.fixedPreTip,ee.fixedTip=c.slots.fixedTip;const _=he(i,gn);_.disabled=!1,_.readonly=d.value||f.value,_.visible=N.value,_["onUpdate:visible"]=B,_.modelValue=v.value,_["onUpdate:modelValue"]=D,_.text=b.value,_["onUpdate:text"]=L,_.onChange=C;const oe=t.h(r,_);ee.hide=()=>[oe];const le=he(i,de,ue);return t.h(l,le,ee)}}}}const{componentName:pu,create:hu,scope:gu}=X("picker-item"),Qn=hu(mu(pu,gu,be,te.CircleClose,te.ArrowRight,yt,!1)),Jt=(e,o,l)=>e.map(n=>{const{value:a="value",text:r="text",children:s="children"}=l??{},{[a]:i,[r]:c,[s]:d,...f}=n,m={loading:!1,...f,level:o?(o&&o.level||0)+1:0,value:i,text:c,children:d,_parent:o};return m.children&&m.children.length&&(m.children=Jt(m.children,m,l)),m}),os=(e,o)=>{let l=0,n;for(;(n=e[l++])&&o(n)!==!0;)n.children&&n.children.length&&os(n.children,o)},yu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},vu=(e,o)=>{const l={...yu,...o||{}},{topId:n,idKey:a,pidKey:r,sortKey:s}=l;let i=[],c={};return e.forEach(d=>{d={...d};const{[a]:f,[r]:m}=d,h=c[m]=c[m]||[];!i.length&&m===n&&(i=h),h.push(d),d.children=c[f]||(c[f]=[])}),s&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((f,m)=>f[s]-m[s])}),c=null,i},ku=/scroll|auto|overlay/i,ns=window;function bu(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function vn(e,o=ns){let l=e;for(;l&&l!==o&&bu(l);){const{overflowY:n}=window.getComputedStyle(l);if(ku.test(n))return l;l=l.parentNode}return o}function ls(e,o=ns){const l=t.ref();return t.onMounted(()=>{e.value&&(l.value=vn(e.value,o))}),l}const{create:Su}=X("sticky"),Cu=Su({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 f=Ve(l),m=n.value,h=Ve(m),y=Ve(d);a.height=f.height;const g=()=>{let b=!1;if(e.position==="top")b=d?r.value>f.top&&y.bottom>0:r.value>f.top;else{const u=document.documentElement.clientHeight;b=d?y.bottom>0&&u-r.value-h.height>y.top:u-r.value<f.bottom}return b},v=()=>{if(d)if(e.position==="top"){const b=y.bottom-r.value-h.height;return b<0?b:0}else{const b=document.documentElement.clientHeight,u=y.bottom-(b-r.value);return u<0?u:0}return 0};a.transform=v(),a.fixed=g()};return t.watch(()=>a.fixed,d=>{o("change",d)}),t.onMounted(()=>{c(),vn(l.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{vn(l.value).removeEventListener("scroll",c)}),{rootRef:l,rootStyle:s,stickyRef:n,stickyStyle:i}}});function wu(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 qt=J(Cu,[["render",wu]]),Nu=(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 f=(h,y)=>{let g=h;switch(e.direction=="horizontal"?(d=h>0?"right":"left",g=Math.abs(g)/r.value.width*100):(d=y>0?"bottom":"top",g=y,g=Math.abs(g)/r.value?.height*100),g>85&&(g=85),d){case"left":case"top":o.isEnd()&&(g=0,i.moving=!1);break;case"right":case"bottom":g=-g,o.isBegin()&&(g=0,i.moving=!1);break}i.offset=g};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,f(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(h.preventDefault(),h.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(h.preventDefault(),h.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,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 Bu{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Vu}=X("tabs"),Au=Vu({components:{[qt.name]:qt,JoySmile:te.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:o,slots:l}){const n=t.ref(null);let a;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=C=>{C.forEach((V,M)=>{let L=V.type;if(L=L.name||L,L=="fox-tab-pane"){let $=new Bu;if(V.props?.title||V.props?.["pane-key"]||V.props?.paneKey){let E=lt(V.props?.["pane-key"]),x=E=="number"||E=="string"?String(V.props?.["pane-key"]):null,A=lt(V.props?.paneKey),H=A=="number"||A=="string"?String(V.props?.paneKey):null;$.title=V.props?.title,$.paneKey=x||H||String(M),$.disabled=V.props?.disabled}r.value.push($)}else{if(V.children==" ")return;Array.isArray(V.children)&&s(V.children)}})},i=t.ref(e.modelValue||0),c=C=>{let V=r.value.findIndex(M=>M.paneKey==C);r.value.length==0||V==-1||(i.value=V)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),f=t.ref(),m=t.ref([]),h=C=>{const V=f.value,M=m.value;if(!V||!M||!M[i.value])return;const L=M[i.value];let $=0;e.direction==="vertical"?$=L.offsetTop-V.offsetTop+10-(V.offsetHeight-L.offsetHeight)/2:$=L.offsetLeft-(V.offsetWidth-L.offsetWidth)/2,y(V,$,C?0:.3,e.direction)},y=(C,V,M,L)=>{let $=0;const E=L==="horizontal"?C.scrollLeft:C.scrollTop,x=M===0?1:Math.round(M*1e3/16);function A(){L==="horizontal"?C.scrollLeft+=(V-E)/x:C.scrollTop+=(V-E)/x,++$<x&&Le(A)}A()},g=(C=l.default?.())=>{r.value=[],C=C?.filter(V=>typeof V.children!="string"),C&&C.length&&s(C),c(e.modelValue),t.nextTick(()=>{h()})},v=C=>{a=C.fixed};t.watch(()=>l.default?.(),C=>{g(C)});const b=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,C=>{if(c(C),h(),a){let V=Ve(n.value).top+b(),M=Math.ceil(V-e.top);window.scrollTo({top:M,behavior:"smooth"})}}),t.onMounted(g),t.onActivated(g);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,V)=>{o("click",C),!(C.disabled||i.value==V)&&(i.value=V,u.updateValue(C))},setTabItemRef:(C,V)=>{m.value[V]=C}},{tabsContentRef:p,touchState:k,touchMethods:S}=Nu(e,u),w=t.computed(()=>{let C=i.value*100;k.moving&&(C+=k.offset);let V={transform:e.direction=="horizontal"?`translate3d(-${C}%, 0, 0)`:`translate3d( 0,-${C}%, 0)`,transitionDuration:k.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(V={}),V}),N=t.computed(()=>({background:e.background})),T=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),B=t.computed(()=>{if(!e.titleGutter)return{};const C=fe(e.titleGutter);return e.direction==="vertical"?{marginTop:C,marginBottom:C}:{marginLeft:C,marginRight:C}}),D=t.computed(()=>l.fixedTitle);return{navRef:f,tabsContentRef:p,titles:r,contentStyle:w,tabsNavStyle:N,titleStyle:B,tabsActiveStyle:T,container:n,getScrollY:d,onStickyScroll:v,...u,...S,hasFixedTitle:D}}}),Tu=["onClick"],$u={key:0,class:"fox-tabs__titles-fixed-item"},Eu=["onClick"],Du={key:0,class:"fox-tabs__titles-fixed-item"};function xu(e,o,l,n,a,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,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:f=>e.tabChange(c,d),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Tu))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",$u,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,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:f=>e.tabChange(c,d),key:c.paneKey,ref_for:!0,ref:f=>e.setTabItemRef(f,d)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Eu))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Du,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:o[0]||(o[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:o[1]||(o[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:o[2]||(o[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:o[3]||(o[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const Mt=J(Au,[["render",xu]]),{create:Iu}=X("tab-pane"),qu=Iu({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 Mu(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 zt=J(qu,[["render",Mu]]);class Za{nodes;config;constructor(o,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=Jt(o,null,this.config)}updateChildren(o,l){l?l.children=Jt(o,l,this.config):this.nodes=Jt(o,null,this.config)}getNodeByValue(o){let l;return os(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:zu,scope:Lu}=X("cascader-pane"),Pu=zu({components:{Loading:te.Loading,Checklist:te.Checklist,[Mt.name]:Mt,[zt.name]:zt},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 Za([],{})),i=t.ref([]),c=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),d=new Map;let f;const m=async()=>{d.clear(),i.value=[],n.value=0,a.value=!1,f=null;let{options:u}=e;l.value.convertConfig&&(u=vu(u,l.value.convertConfig)),s.value=new Za(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 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(w,N)=>{const T=await w;await y(T);const B=T?.children?.find(D=>D.value===N);return B&&p.push(N),Promise.resolve(B)},Promise.resolve(k));await y(S),a.value=!1}}p.length&&u===e.modelValue&&s.value.getPathNodesByValue(p).map((S,w)=>{n.value=w,b.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 k=d.get(u);k||(k=new Promise(w=>{l.value.lazyLoad?.(u,w)}),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)},g=u=>{const p=u.map(k=>k.value);r.value=p,o("change",p,u),o("update:modelValue",p,u)},{t:v}=ae.useFoxI18n(Lu),b={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 w=i.value.map(N=>N.selectedNode);g(w),o("pathChange",w)}return}if(s.value.hasChildren(u,c.value)){const w=u.level+1;if(i.value[n.value].selectedNode=u,i.value=i.value.slice(0,w),i.value.push({nodes:u.children||[],selectedNode:null}),n.value=w,!p){const N=i.value.map(T=>T.selectedNode);o("pathChange",N)}return}f=u,!S&&(await y(u),f===u&&(i.value[n.value].selectedNode=u,b.handleNode(u,p)))}},handleTabClick(u){f=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],()=>{m()},{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,...b}}}),Ru={role:"menu",class:"fox-cascader__pane"},Fu=["aria-checked","aria-disabled","onClick"],Ou={class:"fox-cascader__item__title"},Ku=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Uu(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]=f=>e.tabsCursor=f),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,(f,m)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(f),key:m},{default:t.withCtx(()=>[t.createElementVNode("view",Ru,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(f.nodes,h=>(t.openBlock(),t.createElementBlock("view",{key:h.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(f,h),disabled:h.disabled}]),"aria-checked":e.isSelected(f,h),"aria-disabled":h.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(h,!1)},[t.createElementVNode("view",Ou,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(()=>[Ku]),_:1}))]),_:1},8,["modelValue","onClick"])}const Hu=J(Pu,[["render",Uu]]),{create:ju}=X("cascader"),Wu=ju({components:{FoxCascaderPane:Hu,FoxPopup:ce},props:{...Xe,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit: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}}}),Yu=["innerHTML"];function Xu(e,o,l,n,a,r){const s=t.resolveComponent("FoxCascaderPane"),i=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":o[0]||(o[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,Yu)):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 Do=J(Wu,[["render",Xu]]);function Lt(e,o){const l=e.textKey??"text";return o[l]??""}function Pt(e,o){const l=e.valueKey??"value";return o[l]}function as(e,o){const l=e.childrenKey??"children";return o[l]}function Qt(e,o=[]){const l={texts:[],values:[]};for(let n=0;n<o.length;n++){const a=o[n],r=Lt(e,a),s=Pt(e,a);l.texts.push(r),l.values.push(s??"")}return l}function rs(e,o,l,n,a=[]){if(!l)return;const r=l[n];for(let s=0;s<o.length;s++)if(Lt(e,o[s])===r){const c=Pt(e,o[s])??"",d={[e.textKey]:r,[e.valueKey]:c};a.push(d);const f=as(e,o[s]);Array.isArray(f)&&rs(e,f,l,n+1,a);return}}function ss(e,o,l,n,a=[]){if(!l)return;const r=l[n];for(let s=0;s<o.length;s++)if(Pt(e,o[s])===r){const c=Lt(e,o[s])??"",d={[e.textKey]:c,[e.valueKey]:r};a.push(d);const f=as(e,o[s]);Array.isArray(f)&&ss(e,f,l,n+1,a);return}}function Go(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=Lt(e,o[n]),r=Lt(e,l[n]);if(a!==r)return!1;const s=Pt(e,o[n]),i=Pt(e,l[n]);if(s!==i)return!1}return!0}let Qu=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=Ge(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Be(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Gu(){const e=t.getCurrentInstance();return new Qu(e.proxy)}function Zu(e,o,l,n,a,r,s=!1){return{props:{...ue,...de,modelValue:{type:[Array,String]},pathNodes:{type:[Array]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),f=Ae(t.computed(()=>i.readonly)),{emitEvent:m}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),v=Gu(),b=t.ref([]);t.watch([()=>i.source,()=>i.params],async([F,I])=>{F&&(b.value=await v.load(F,I))},{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([F])=>{if(i.lazy===!0){S.value.length==0&&(u.value=Array.isArray(F)?F:[],k.value=Array.isArray(F)?F:[]);return}if(i.valueType==="item"){let I=F;if(!Go(i,I,S.value)){S.value=I;let K=Qt(i,I);u.value=K.texts,k.value=K.values}}else if(i.valueType==="text"){let I=F,K=[];if(rs(i,b.value,I,0,K),!Go(i,K,S.value)){S.value=K;let W=Qt(i,K);I.value=W.texts,k.value=W.values}}else{let I=[];if(ss(i,b.value,F,0,I),!Go(i,I,S.value)){S.value=I;let K=Qt(i,I);u.value=K.texts,k.value=K.values}}},{immediate:!0});const w="fox-input-item",N=t.computed(()=>({[w]:!0,[`${w}__disabled`]:d.value})),T=Ne(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const F={};return T.value&&(F["text-align"]=T.value),F}),D=t.ref(!1),C=()=>{d.value===!0||f.value===!0||(D.value=!0)},V=F=>{D.value=F},M=(F,I)=>{let K=I.map(Z=>{if(Z==null)return Z;let O={...Z};return Reflect.deleteProperty(O,"text"),O[i.textKey]=Z.text??"",Reflect.deleteProperty(O,"value"),O[i.valueKey]=Z.value??"",O});S.value=K;let W=Qt(i,K);u.value=W.texts,k.value=W.values,i.valueType==="text"?(m("change",u.value,K),m("update:modelValue",u.value)):i.valueType==="item"?(m("change",K,K),m("update:modelValue",K)):(m("change",k.value,K),m("update:modelValue",k.value)),m("update:pathNodes",K)},L=F=>{let I=F.map(K=>{if(K==null)return K;let W={...K};return Reflect.deleteProperty(W,"text"),W[i.textKey]=K.text??"",Reflect.deleteProperty(W,"value"),W[i.valueKey]=K.value??"",W});m("pathChange",I)},$=F=>{g.value=!0,m("focus",k.value,F)},E=F=>{setTimeout(()=>{g.value=!1},0),m("blur",k.value,F)},x=t.computed(()=>({[`${w}__append`]:!0})),A=t.computed(()=>ge(i.unit)>0),H=t.computed(()=>ge(i.unit)>0&&!g.value),R=t.computed(()=>({hidden:!H.value})),Y=F=>{S.value=[],u.value=[],k.value=[],m("update:modelValue",[]),m("change",[],F),m("clear",[]),m("update:pathNodes",[])},U=t.computed(()=>i.clearable&&!d.value&&!f.value),P=t.computed(()=>{let F=k.value&&k.value.length>0;return i.clearable&&F&&g.value}),z=F=>{P.value?Y(F):C()},j=t.computed(()=>P.value&&U.value?n:a),q=t.computed(()=>({action:!0}));return()=>{const F={class:N.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:C,onFocus:$,onBlur:E};s&&(F.disabled=!0);const I=[],K=t.h("input",F);I.push(K);const W=[],Z={class:["action-icon"]},O=t.h(j.value,Z),G={class:q.value,onClick:z},Q=t.h("view",G,{default:()=>[O]});if(W.push(Q),A.value){const Ze=t.h("view",{class:R.value},[i.unit]);W.push(Ze)}const ee={class:x.value},_=t.h("view",ee,{default:()=>W});I.push(_);const oe={default:()=>I};oe.label=c.slots.default,oe.prepend=c.slots.prepend,oe.append=c.slots.append,oe.fixedPreTip=c.slots.fixedPreTip,oe.fixedTip=c.slots.fixedTip;let le={};le.visible=D.value,le["onUpdate:visible"]=V,le.modelValue=k.value,le.onChange=M,le.onPathChange=L,le.options=b.value,le.title=i.title,le.lazy=i.lazy,le.lazyLoad=i.lazyLoad,le.valueKey=i.valueKey,le.textKey=i.textKey,le.childrenKey=i.childrenKey,le.convertConfig=i.convertConfig;const $e=t.h(r,le);oe.hide=()=>[$e];const ve=he(i,de,ue);return t.h(l,ve,oe)}}}}const{componentName:Ju,create:_u,scope:ed}=X("cascader-item"),Gn=_u(Zu(Ju,ed,be,te.CircleClose,te.ArrowRight,Do,!1));var Ue=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function He(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var is={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",f="week",m="month",h="quarter",y="year",g="date",v="Invalid Date",b=/^(\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(L,$,E){var x=String(L);return!x||x.length>=$?L:""+Array($+1-x.length).join(E)+L},S={s:k,z:function(L){var $=-L.utcOffset(),E=Math.abs($),x=Math.floor(E/60),A=E%60;return($<=0?"+":"-")+k(x,2,"0")+":"+k(A,2,"0")},m:function L($,E){if($.date()<E.date())return-L(E,$);var x=12*(E.year()-$.year())+(E.month()-$.month()),A=$.clone().add(x,m),H=E-A<0,R=$.clone().add(x+(H?-1:1),m);return+(-(x+(E-A)/(H?A-R:R-A))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:m,y,w:f,d,D:g,h:c,m:i,s,ms:r,Q:h}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},w="en",N={};N[w]=p;var T=function(L){return L instanceof V},B=function L($,E,x){var A;if(!$)return w;if(typeof $=="string"){var H=$.toLowerCase();N[H]&&(A=H),E&&(N[H]=E,A=H);var R=$.split("-");if(!A&&R.length>1)return L(R[0])}else{var Y=$.name;N[Y]=$,A=Y}return!x&&A&&(w=A),A||!x&&w},D=function(L,$){if(T(L))return L.clone();var E=typeof $=="object"?$:{};return E.date=L,E.args=arguments,new V(E)},C=S;C.l=B,C.i=T,C.w=function(L,$){return D(L,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var V=function(){function L(E){this.$L=B(E.locale,null,!0),this.parse(E)}var $=L.prototype;return $.parse=function(E){this.$d=function(x){var A=x.date,H=x.utc;if(A===null)return new Date(NaN);if(C.u(A))return new Date;if(A instanceof Date)return new Date(A);if(typeof A=="string"&&!/Z$/i.test(A)){var R=A.match(b);if(R){var Y=R[2]-1||0,U=(R[7]||"0").substring(0,3);return H?new Date(Date.UTC(R[1],Y,R[3]||1,R[4]||0,R[5]||0,R[6]||0,U)):new Date(R[1],Y,R[3]||1,R[4]||0,R[5]||0,R[6]||0,U)}}return new Date(A)}(E),this.$x=E.x||{},this.init()},$.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},$.$utils=function(){return C},$.isValid=function(){return this.$d.toString()!==v},$.isSame=function(E,x){var A=D(E);return this.startOf(x)<=A&&A<=this.endOf(x)},$.isAfter=function(E,x){return D(E)<this.startOf(x)},$.isBefore=function(E,x){return this.endOf(x)<D(E)},$.$g=function(E,x,A){return C.u(E)?this[x]:this.set(A,E)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(E,x){var A=this,H=!!C.u(x)||x,R=C.p(E),Y=function(K,W){var Z=C.w(A.$u?Date.UTC(A.$y,W,K):new Date(A.$y,W,K),A);return H?Z:Z.endOf(d)},U=function(K,W){return C.w(A.toDate()[K].apply(A.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(W)),A)},P=this.$W,z=this.$M,j=this.$D,q="set"+(this.$u?"UTC":"");switch(R){case y:return H?Y(1,0):Y(31,11);case m:return H?Y(1,z):Y(0,z+1);case f:var F=this.$locale().weekStart||0,I=(P<F?P+7:P)-F;return Y(H?j-I:j+(6-I),z);case d:case g:return U(q+"Hours",0);case c:return U(q+"Minutes",1);case i:return U(q+"Seconds",2);case s:return U(q+"Milliseconds",3);default:return this.clone()}},$.endOf=function(E){return this.startOf(E,!1)},$.$set=function(E,x){var A,H=C.p(E),R="set"+(this.$u?"UTC":""),Y=(A={},A[d]=R+"Date",A[g]=R+"Date",A[m]=R+"Month",A[y]=R+"FullYear",A[c]=R+"Hours",A[i]=R+"Minutes",A[s]=R+"Seconds",A[r]=R+"Milliseconds",A)[H],U=H===d?this.$D+(x-this.$W):x;if(H===m||H===y){var P=this.clone().set(g,1);P.$d[Y](U),P.init(),this.$d=P.set(g,Math.min(this.$D,P.daysInMonth())).$d}else Y&&this.$d[Y](U);return this.init(),this},$.set=function(E,x){return this.clone().$set(E,x)},$.get=function(E){return this[C.p(E)]()},$.add=function(E,x){var A,H=this;E=Number(E);var R=C.p(x),Y=function(z){var j=D(H);return C.w(j.date(j.date()+Math.round(z*E)),H)};if(R===m)return this.set(m,this.$M+E);if(R===y)return this.set(y,this.$y+E);if(R===d)return Y(1);if(R===f)return Y(7);var U=(A={},A[i]=n,A[c]=a,A[s]=l,A)[R]||1,P=this.$d.getTime()+E*U;return C.w(P,this)},$.subtract=function(E,x){return this.add(-1*E,x)},$.format=function(E){var x=this,A=this.$locale();if(!this.isValid())return A.invalidDate||v;var H=E||"YYYY-MM-DDTHH:mm:ssZ",R=C.z(this),Y=this.$H,U=this.$m,P=this.$M,z=A.weekdays,j=A.months,q=function(W,Z,O,G){return W&&(W[Z]||W(x,H))||O[Z].slice(0,G)},F=function(W){return C.s(Y%12||12,W,"0")},I=A.meridiem||function(W,Z,O){var G=W<12?"AM":"PM";return O?G.toLowerCase():G},K={YY:String(this.$y).slice(-2),YYYY:this.$y,M:P+1,MM:C.s(P+1,2,"0"),MMM:q(A.monthsShort,P,j,3),MMMM:q(j,P),D:this.$D,DD:C.s(this.$D,2,"0"),d:String(this.$W),dd:q(A.weekdaysMin,this.$W,z,2),ddd:q(A.weekdaysShort,this.$W,z,3),dddd:z[this.$W],H:String(Y),HH:C.s(Y,2,"0"),h:F(1),hh:F(2),a:I(Y,U,!0),A:I(Y,U,!1),m:String(U),mm:C.s(U,2,"0"),s:String(this.$s),ss:C.s(this.$s,2,"0"),SSS:C.s(this.$ms,3,"0"),Z:R};return H.replace(u,function(W,Z){return Z||K[W]||R.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(E,x,A){var H,R=C.p(x),Y=D(E),U=(Y.utcOffset()-this.utcOffset())*n,P=this-Y,z=C.m(this,Y);return z=(H={},H[y]=z/12,H[m]=z,H[h]=z/3,H[f]=(P-U)/6048e5,H[d]=(P-U)/864e5,H[c]=P/a,H[i]=P/n,H[s]=P/l,H)[R]||P,A?z:C.a(z)},$.daysInMonth=function(){return this.endOf(m).$D},$.$locale=function(){return N[this.$L]},$.locale=function(E,x){if(!E)return this.$L;var A=this.clone(),H=B(E,x,!0);return H&&(A.$L=H),A},$.clone=function(){return C.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},L}(),M=V.prototype;return D.prototype=M,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",d],["$M",m],["$y",y],["$D",g]].forEach(function(L){M[L[1]]=function($){return this.$g($,L[0],L[1])}}),D.extend=function(L,$){return L.$i||(L($,V,D),L.$i=!0),D},D.locale=B,D.isDayjs=T,D.unix=function(L){return D(1e3*L)},D.en=N[w],D.Ls=N,D.p={},D})})(is);var td=is.exports;const ze=He(td);var cs={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(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(b){this[v]=+b}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var u=b.match(/([+-]|\d\d)/g),p=60*u[1]+(+u[2]||0);return p===0?0:u[0]==="+"?-p:p}(v)}],m=function(v){var b=i[v];return b&&(b.indexOf?b:b.s.concat(b.f))},h=function(v,b){var u,p=i.meridiem;if(p){for(var k=1;k<=24;k+=1)if(v.indexOf(p(k,0,b))>-1){u=k>12;break}}else u=v===(b?"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 b=i.ordinal,u=v.match(/\d+/);if(this.day=u[0],b)for(var p=1;p<=31;p+=1)b(p).replace(/\[|\]/g,"")===v&&(this.day=p)}],M:[r,d("month")],MM:[a,d("month")],MMM:[s,function(v){var b=m("months"),u=(m("monthsShort")||b.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 b=m("months").indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(v){this.year=c(v)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function g(v){var b,u;b=v,u=i&&i.formats;for(var p=(v=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,C,V){var M=V&&V.toUpperCase();return C||u[V]||l[V]||u[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(L,$,E){return $||E.slice(1)})})).match(n),k=p.length,S=0;S<k;S+=1){var w=p[S],N=y[w],T=N&&N[0],B=N&&N[1];p[S]=B?{regex:T,parser:B}:w.replace(/^\[|\]$/g,"")}return function(D){for(var C={},V=0,M=0;V<k;V+=1){var L=p[V];if(typeof L=="string")M+=L.length;else{var $=L.regex,E=L.parser,x=D.slice(M),A=$.exec(x)[0];E.call(C,A),D=D.replace(A,"")}}return function(H){var R=H.afternoon;if(R!==void 0){var Y=H.hours;R?Y<12&&(H.hours+=12):Y===12&&(H.hours=0),delete H.afternoon}}(C),C}}return function(v,b,u){u.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(c=v.parseTwoDigitYear);var p=b.prototype,k=p.parse;p.parse=function(S){var w=S.date,N=S.utc,T=S.args;this.$u=N;var B=T[1];if(typeof B=="string"){var D=T[2]===!0,C=T[3]===!0,V=D||C,M=T[2];C&&(M=T[2]),i=this.$locale(),!D&&M&&(i=u.Ls[M]),this.$d=function(x,A,H){try{if(["x","X"].indexOf(A)>-1)return new Date((A==="X"?1e3:1)*x);var R=g(A)(x),Y=R.year,U=R.month,P=R.day,z=R.hours,j=R.minutes,q=R.seconds,F=R.milliseconds,I=R.zone,K=new Date,W=P||(Y||U?1:K.getDate()),Z=Y||K.getFullYear(),O=0;Y&&!U||(O=U>0?U-1:K.getMonth());var G=z||0,Q=j||0,ee=q||0,_=F||0;return I?new Date(Date.UTC(Z,O,W,G,Q,ee,_+60*I.offset*1e3)):H?new Date(Date.UTC(Z,O,W,G,Q,ee,_)):new Date(Z,O,W,G,Q,ee,_)}catch{return new Date("")}}(w,B,N),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),V&&w!=this.format(B)&&(this.$d=new Date("")),i={}}else if(B instanceof Array)for(var L=B.length,$=1;$<=L;$+=1){T[1]=B[$-1];var E=u.apply(this,T);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}$===L&&(this.$d=new Date(""))}else k.call(this,S)}}})})(cs);var od=cs.exports;const nd=He(od);var us={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 f=this.$utils(),m=(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 f.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return f.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return f.s(String(c.$H===0?24:c.$H),h==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return h}});return s.bind(this)(m)}}})})(us);var ld=us.exports;const ad=He(ld);var ds={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(Ue,function(){return function(l,n,a){var r=n.prototype,s=function(m){return m&&(m.indexOf?m:m.s)},i=function(m,h,y,g,v){var b=m.name?m:m.$locale(),u=s(b[h]),p=s(b[y]),k=u||p.map(function(w){return w.slice(0,g)});if(!v)return k;var S=b.weekStart;return k.map(function(w,N){return k[(N+(S||0))%7]})},c=function(){return a.Ls[a.locale()]},d=function(m,h){return m.formats[h]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,v,b){return v||b.slice(1)})}(m.formats[h.toUpperCase()])},f=function(){var m=this;return{months:function(h){return h?h.format("MMMM"):i(m,"months")},monthsShort:function(h){return h?h.format("MMM"):i(m,"monthsShort","months",3)},firstDayOfWeek:function(){return m.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(m,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(m,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(m,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(m.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return f.bind(this)()},a.localeData=function(){var m=c();return{firstDayOfWeek:function(){return m.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(m,h)},meridiem:m.meridiem,ordinal:m.ordinal}},a.months=function(){return i(c(),"months")},a.monthsShort=function(){return i(c(),"monthsShort","months",3)},a.weekdays=function(m){return i(c(),"weekdays",null,null,m)},a.weekdaysShort=function(m){return i(c(),"weekdaysShort","weekdays",3,m)},a.weekdaysMin=function(m){return i(c(),"weekdaysMin","weekdays",2,m)}}})})(ds);var rd=ds.exports;const sd=He(rd);var fs={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 f=s(this).startOf(n).add(1,n).date(d),m=s(this).endOf(l);if(f.isBefore(m))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)}}})})(fs);var id=fs.exports;const cd=He(id);var ms={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}}})})(ms);var ud=ms.exports;const dd=He(ud);var ps={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")}}})})(ps);var fd=ps.exports;const md=He(fd);var hs={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)}}})})(hs);var pd=hs.exports;const hd=He(pd);var gs={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)}}})})(gs);var gd=gs.exports;const yd=He(gd);ze.extend(sd);ze.extend(ad);ze.extend(nd);ze.extend(cd);ze.extend(dd);ze.extend(md);ze.extend(hd);ze.extend(yd);const ne={format(e,o){return ze(e).format(o)},parser(e,o){return ze(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,f=this.date2Str(new Date(c)),m=this.date2Str(new Date(d));return[f,m]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,d=r+(7-s)*i,f=this.date2Str(new Date(c)),m=this.date2Str(new Date(d));return[f,m]}},formatResultDate:function(e){let o=[...e.split("-")];return o[2]=ne.getNumTwoBit(Number(o[2])),o[3]=`${o[0]}-${o[1]}-${o[2]}`,o[4]=ne.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}},Ja=new Date().getFullYear(),Zn={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"},fo=(e,o,l)=>{let n;if(Fe(o)?n=o:typeof o=="string"&&ge(o)>0?n=ne.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)},kn=(e,o,l)=>{Fe(o)||(o=e.minDate);let n=Math.max(o.getTime(),e.minDate.getTime());return n=Math.min(n,e.maxDate.getTime()),ne.format(new Date(n),l)};let bn={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(Ja-10,0,1),validator:Fe},maxDate:{type:Date,default:()=>new Date(Ja+10,11,31),validator:Fe},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:vd,scope:kd}=X("date-picker"),bd=vd({components:{[yt.name]:yt},props:{...bn},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(kd),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 w=1,N=1,T=0,B=0;u==="max"&&(w=12,N=r(p.getFullYear(),p.getMonth()+1),T=23,B=59);const D=B;return p.getFullYear()===S&&(w=k.getMonth()+1,p.getMonth()+1===w&&(N=k.getDate(),p.getDate()===N&&(T=k.getHours(),p.getHours()===T&&(B=k.getMinutes())))),{[`${u}Year`]:S,[`${u}Month`]:w,[`${u}Date`]:N,[`${u}Hour`]:T,[`${u}Minute`]:B,[`${u}Seconds`]:D}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:u,maxDate:p,maxMonth:k,maxHour:S,maxMinute:w,maxSeconds:N}=s("max",h.value),{minYear:T,minDate:B,minMonth:D,minHour:C,minMinute:V,minSeconds:M}=s("min",h.value);let L=[{type:"year",range:[T,u]},{type:"month",range:[D,k]},{type:"day",range:[B,p]},{type:"hour",range:[C,S]},{type:"minute",range:[V,w]},{type:"seconds",range:[M,N]}];switch(e.type){case"date":L=L.slice(0,3);break;case"datetime":L=L.slice(0,5);break;case"time":L=L.slice(3,6);break;case"year-month":L=L.slice(0,2);break;case"month-day":L=L.slice(1,3);break;case"datehour":L=L.slice(0,4);break;case"hour-minute":L=L.slice(3,5);break}return L}),c=(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}),f=(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,m=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=fo(e,e.modelValue,e.valueFormat):u=fo(e,p,Zn[e.type]):Fe(p)?u=p:u=new Date,!!u&&(!h.value||u.getTime()!==h.value.getTime())){h.value=u;let k=[];i.value.forEach(S=>{let w=f(S.type,u);k.push(w)}),m.value=k}});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==="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}m.value=u};return{columns:d,dateIndexs:m,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 k=kn(e,p,e.valueFormat);o("update:modelValue",k)}else o("update:modelValue",p);o("update:visible",!1),o("confirm",u)},onClear:()=>{o("clear")}}}});function Sd(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 xo=J(bd,[["render",Sd]]);function Cd(e){let o=e.format;if(!o){let l=e.type??"date";o=Zn[l]}return o}function wd(e,o,l,n,a,r,s=!1){return{props:{...ue,...de,...bn,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)),f=Ae(t.computed(()=>i.readonly)),{emitEvent:m}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),b=Ee(i,"modelValue",z=>z==null?null:typeof z=="string"?z.length==0?null:i.valueFormat?fo(i,z,i.valueFormat)??z:fo(i,z,Zn[i.type])??z:Fe(z)?z:null),u=t.computed(()=>{if(!b.value)return"";const z=Cd(i);return kn(i,b.value,z)}),p="fox-input-item",k=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),w=t.computed(()=>{const z={};return S.value&&(z["text-align"]=S.value),z}),N=t.ref(!1),T=()=>{N.value=!0},B=()=>{N.value=!1};c.expose({showPicker:T,hidePicker:B});const D=z=>{N.value=z},C=z=>{if(b.value=z,i.valueFormat){let j=kn(i,z,i.valueFormat);m("update:modelValue",j,{}),m("change",j,{})}else m("update:modelValue",z,{}),m("change",z,{})},V=z=>{let q=z.target.value;g.value=!0,m("focus",q,z)},M=z=>{setTimeout(()=>{g.value=!1},0);let q=z.target.value;i.maxLength&&q.length>Number(i.maxLength)&&(q=q.slice(0,Number(i.maxLength))),m("blur",q,z)},L=t.computed(()=>({[`${p}__append`]:!0})),$=t.computed(()=>ge(i.unit)>0),E=t.computed(()=>ge(i.unit)>0&&!g.value),x=t.computed(()=>({hidden:!E.value})),A=z=>{b.value="",m("update:modelValue","",z),m("change","",z),m("clear",""),B()},H=t.computed(()=>i.clearable&&!d.value&&!f.value),R=t.computed(()=>{let z=ge(b.value)>0;return i.clearable&&z&&g.value}),Y=z=>{R.value?A(z):T()},U=t.computed(()=>R.value&&H.value?n:a),P=t.computed(()=>({action:!0}));return()=>{const z={class:k.value,style:w.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:T,onFocus:V,onBlur:M};s&&(z.disabled=!0);const j=[],q=t.h("input",z);j.push(q);const F=[],I={class:["action-icon"]},K=t.h(U.value,I),W={class:P.value,onClick:Y},Z=t.h("view",W,{default:()=>[K]});if(F.push(Z),$.value){const ve=t.h("view",{class:x.value},[i.unit]);F.push(ve)}const O={class:L.value},G=t.h("view",O,{default:()=>F});j.push(G);const Q={default:()=>j};Q.label=c.slots.default,Q.prepend=c.slots.prepend,Q.append=c.slots.append,Q.fixedPreTip=c.slots.fixedPreTip,Q.fixedTip=c.slots.fixedTip;const ee=he(i,bn);ee.valueFormat=null,ee.disabled=!1,ee.readonly=d.value||f.value,ee.visible=N.value,ee["onUpdate:visible"]=D,ee.modelValue=b.value,ee["onUpdate:modelValue"]=C,ee.onClear=A;const _={};if(c.slots.top){const ve=c.slots.top();_.top=()=>ve}if(c.slots.bottom){const ve=c.slots.bottom();_.default=()=>ve}const oe=t.h(r,ee,_);Q.hide=()=>[oe];const le=he(i,de,ue);return t.h(l,le,Q)}}}}const{create:Nd,componentName:Bd,scope:Vd}=X("date-item"),Jn=Nd(wd(Bd,Vd,be,te.CircleClose,te.Date,xo,!1)),Ad=39,Td=64,{create:$d,scope:Ed}=X("calendar-pane"),Dd=$d({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:ne.getDay(0)},endDate:{type:String,default:ne.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:o,slots:l}){const{toLocaleRefs:n,t:a}=ae.useFoxI18n(Ed),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),f=t.ref(null),m=t.ref(null),h=t.ref(0),y=t.computed(()=>u.monthsData.slice(u.defaultRange[0],u.defaultRange[1])),g=t.computed(()=>l.btn),v=t.computed(()=>l["top-info"]),b=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=I=>I.split("-"),k=I=>ne.isEqual(u.currDate[0],I),S=I=>ne.isEqual(u.currDate[1],I),w=I=>u.currDate?.length>0?u.currDate?.some(K=>ne.isEqual(K,I)):!1,N=(I,K)=>K.curData[0]+"-"+K.curData[1]+"-"+ne.getNumTwoBit(+I.day),T=(I,K)=>{const W=N(I,K),{type:Z}=e;return I.type=="curr"?ne.isEqual(u.currDate,W)||(Z=="range"||Z=="week")&&(k(W)||S(W))||Z=="multiple"&&w(W)?`${u.dayPrefix}--active`:u.propStartDate&&ne.compareDate(W,u.propStartDate)||u.propEndDate&&ne.compareDate(u.propEndDate,W)?`${u.dayPrefix}--disabled`:(Z=="range"||Z=="week")&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&ne.compareDate(u.currDate[0],W)&&ne.compareDate(W,u.currDate[1])?`${u.dayPrefix}--choose`:null:`${u.dayPrefix}--disabled`},B=()=>{const{type:I}=e;if(I=="range"&&u.chooseData.length==2||I!="range"){let K=u.chooseData.slice(0);I=="week"&&(K={weekDate:[C(u.chooseData[0]),C(u.chooseData[1])]}),o("choose",K),e.poppable&&o("update")}},D=(I,K,W=!1)=>{if(T(I,K)!=`${u.dayPrefix}--disabled`){const{type:Z}=e;let[O,G]=K.curData,Q=[...K.curData];if(Q[2]=ne.getNumTwoBit(Number(I.day)),Q[3]=`${Q[0]}-${Q[1]}-${Q[2]}`,Q[4]=ne.getWhatDay(+Q[0],+Q[1],+Q[2]),Z=="multiple")if(u.currDate?.length>0){let ee;u.currDate?.forEach((_,oe)=>{_==Q[3]&&(ee=oe)}),W?u.chooseData.push([...Q]):ee!==void 0?(u.currDate.splice(ee,1),u.chooseData.splice(ee,1)):(u.currDate.push(Q[3]),u.chooseData.push([...Q]))}else u.currDate=[Q[3]],u.chooseData=[[...Q]];else if(Z=="range"){let ee=Object.values(u.currDate).length;ee==2||ee==0?u.currDate=[Q[3]]:ne.compareDate(u.currDate[0],Q[3])?Array.isArray(u.currDate)&&u.currDate.push(Q[3]):Array.isArray(u.currDate)&&u.currDate.unshift(Q[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...Q]]:ne.compareDate(u.chooseData[0][3],Q[3])?u.chooseData=[...u.chooseData,[...Q]]:u.chooseData=[[...Q],...u.chooseData]}else if(Z=="week"){let ee=ne.getWeekDate(O,G,I.day,e.firstDayOfWeek);u.propStartDate&&ne.compareDate(ee[0],u.propStartDate)&&ee.splice(0,1,u.propStartDate),u.propEndDate&&ne.compareDate(u.propEndDate,ee[1])&&ee.splice(1,1,u.propEndDate),u.currDate=ee,u.chooseData=[ne.formatResultDate(ee[0]),ne.formatResultDate(ee[1])]}else u.currDate=Q[3],u.chooseData=[...Q];if(!W){let ee=u.chooseData;Z=="week"&&(ee={weekDate:[C(u.chooseData[0]),C(u.chooseData[1])]}),o("select",ee),(e.isAutoBackFill||!e.poppable)&&B()}}},C=I=>{let[K,W,Z]=I;return{date:I,monthWeekNum:ne.getMonthWeek(K,W,Z,e.firstDayOfWeek),yearWeekNum:ne.getYearWeek(K,W,Z,e.firstDayOfWeek)}},V=I=>{const K=I=="prev"?u.monthsData[0]:u.monthsData[u.monthsData.length-1];let W=parseInt(K.curData[0]),Z=parseInt(K.curData[1].toString().replace(/^0/,""));switch(I){case"prev":Z==1&&(W-=1),Z=Z==1?12:--Z;break;case"next":Z==12&&(W+=1),Z=Z==12?1:++Z;break}return[W+"",ne.getNumTwoBit(Z),ne.getMonthDays(String(W),String(Z))+""]},M=(I,K,W)=>{let{year:Z,month:O}=W;return K=="prev"&&I>=7&&(I-=7),Array.from(Array(I),(G,Q)=>({day:String(Q+1),type:K,year:Z,month:O}))},L=(I,K,W,Z)=>{I=I-e.firstDayOfWeek;let{year:O,month:G}=W;return K=="prev"&&I>=7&&(I-=7),Array.from(Array(Z),(ee,_)=>({day:String(_+1),type:K,year:O,month:G})).slice(Z-I)},$=(I,K)=>{const W=ne.getMonthPreDay(+I[0],+I[1]);let Z=Number(I[1])-1,O=Number(I[0]);Z<=0&&(Z=12,O+=1);const G=ne.getMonthDays(String(I[0]),String(I[1])),Q=ne.getMonthDays(O+"",Z+""),ee={year:I[0],month:I[1]},_={curData:I,title:a("monthTitle",{year:ee.year,month:ee.month}),monthData:[...L(W,"prev",{month:String(Z),year:String(O)},Q),...M(G,"curr",ee)],cssHeight:0,cssScrollHeight:0},oe=_.monthData.length>35?6:5;_.cssHeight=Ad+Td*oe;let le=0;u.monthsData.length>0&&(le=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),_.cssScrollHeight=le,K=="next"?(!u.endData||!ne.compareDate(`${u.endData[0]}-${u.endData[1]}-${ne.getMonthDays(u.endData[0],u.endData[1])}`,`${I[0]}-${I[1]}-${I[2]}`))&&u.monthsData.push(_):!u.startData||!ne.compareDate(`${I[0]}-${I[1]}-${I[2]}`,`${u.startData[0]}-${u.startData[1]}-01`)?u.monthsData.unshift(_):u.unLoadPrev=!0},E=()=>{let I=e.startDate?e.startDate:ne.getDay(0),K=e.endDate?e.endDate:ne.getDay(365);u.propStartDate=I,u.propEndDate=K,u.startData=p(I),u.endData=p(K),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(u.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const W={year:Number(u.startData[0]),month:Number(u.startData[1])},Z={year:Number(u.endData[0]),month:Number(u.endData[1])};let O=Z.month-W.month;Z.year-W.year>0&&(O=O+12*(Z.year-W.year)),O<=0&&(O=1),$(u.startData,"next");let G=1;do $(V("next"),"next");while(G++<O);if(u.monthsNum=O,e.type=="range"&&Array.isArray(u.currDate))u.currDate.length>0&&(I&&ne.compareDate(u.currDate[0],I)&&u.currDate.splice(0,1,I),K&&ne.compareDate(K,u.currDate[1])&&u.currDate.splice(1,1,K),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 Q=[],ee={};u.currDate.forEach(_=>{I&&!ne.compareDate(_,I)&&K&&!ne.compareDate(K,_)&&(Object.hasOwnProperty.call(ee,_)||(Q.push(_),ee[_]=_))}),u.currDate=[...Q],u.defaultData=[...p(Q[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[Q,ee,_]=p(u.currDate[0]),oe=ne.getWeekDate(Q,ee,_,e.firstDayOfWeek);u.currDate=oe,I&&ne.compareDate(u.currDate[0],I)&&u.currDate.splice(0,1,I),K&&ne.compareDate(K,u.currDate[1])&&u.currDate.splice(1,1,K),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]}}else u.currDate&&(I&&ne.compareDate(u.currDate,I)?u.currDate=I:K&&!ne.compareDate(u.currDate,K)&&(u.currDate=K),u.defaultData=[...p(u.currDate)])};Te({scrollToDate:I=>{ne.compareDate(I,u.propStartDate)?I=u.propStartDate:ne.compareDate(I,u.propEndDate)||(I=u.propEndDate);let K=p(I);u.monthsData.forEach((W,Z)=>{if(W.title==a("monthTitle",{year:K[0],month:K[1]})&&c.value){let O=u.monthsData[Z].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let G=0,Q=setInterval(()=>{if(G++,c.value){let ee=O/10;c.value.scrollTop=c.value.scrollTop+ee}G>=10&&(clearInterval(Q),c.value&&(c.value.scrollTop=u.monthsData[Z].cssScrollHeight))},40)}else c.value.scrollTop=u.monthsData[Z].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)},doLayout:()=>{let I=0,K=0;u.defaultData.length>0&&u.monthsData.forEach((O,G)=>{O.title==a("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(I=G),(e.type=="range"||e.type=="week")&&O.title==a("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(K=G)}),R(u.monthsNum,I),u.currentIndex=I,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(D({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),D({day:u.defaultData[5],type:"curr"},u.monthsData[K],!0)):e.type=="week"?D({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(O=>{let G=p(O),Q=u.currentIndex;u.monthsData.forEach((ee,_)=>{ee.title==a("monthTitle",{year:G[0],month:G[1]})&&(Q=_)}),D({day:G[2],type:"curr"},u.monthsData[Q],!0)}):D({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let W=u.monthsData[u.monthsData.length-1],Z=W.cssHeight+W.cssScrollHeight;je(()=>{c?.value&&d?.value&&m?.value&&(h.value=c.value.clientHeight,d.value.style.height=`${Z}px`,c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(Z/(u.monthsNum+1))}});const R=(I,K)=>{I>=3?K>0&&K<I?u.defaultRange=[K-1,K+3]:K==0?u.defaultRange=[K,K+4]:K==I&&(u.defaultRange=[K-2,K+2]):u.defaultRange=[0,I+2];let W=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=W},Y=(I,K)=>(e.type=="range"||e.type=="week")&&I.type=="curr"&&T(I,K)=="fox-calendar__day--active",U=(I,K)=>Y(I,K)&&k(N(I,K)),P=(I,K)=>u.currDate.length>=2&&S(N(I,K))?Y(I,K):!1,z=()=>{if(u.currDate.length>=2)return ne.isEqual(u.currDate[0],u.currDate[1])},j=I=>{const K=`${I.year}-${I.month}-${Number(I.day)<10?"0"+I.day:I.day}`;return ne.isEqual(K,ne.date2Str(new Date))},q=I=>{if(u.monthsData.length<=1)return;const K=I.target.scrollTop;let W=Math.floor(K/u.avgHeight);if(W==0)K>=u.monthsData[W+1].cssScrollHeight&&(W+=1);else if(W>0&&W<u.monthsNum-1)K>=u.monthsData[W+1].cssScrollHeight&&(W+=1),K<u.monthsData[W].cssScrollHeight&&(W-=1);else{const Z=Math.round(K+h.value);Z<u.monthsData[W].cssScrollHeight+u.monthsData[W].cssHeight&&K>u.monthsData[W-1].cssScrollHeight&&(W-=1),W+1<=u.monthsNum&&Z>=u.monthsData[W+1].cssScrollHeight+u.monthsData[W+1].cssHeight&&(W+=1),W>=1&&K<u.monthsData[W-1].cssScrollHeight&&(W-=1)}u.currentIndex!==W&&(u.currentIndex=W,R(u.monthsNum,W)),u.yearMonthTitle=u.monthsData[W].title},F=()=>{u.chooseData.splice(0),u.monthsData.splice(0),E()};return E(),t.watch(()=>e.defaultValue,I=>{I&&e.poppable&&F()}),{weeks:i,compConthsData:y,showTopBtn:g,topInfo:v,bottomInfo:b,rangeTip:z,mothsViewScroll:q,getClass:T,isStartTip:U,isEndTip:P,chooseDay:D,isCurrDay:j,confirm:B,months:c,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:f,viewArea:m}}}),xd={class:"fox-calendar__header"},Id={key:0,class:"fox-calendar__header-title"},qd={key:1,class:"fox-calendar__header-slot"},Md={key:2,class:"fox-calendar__header-subtitle"},zd={class:"fox-calendar__weekdays",ref:"weeksPanel"},Ld={class:"fox-calendar__panel",ref:"monthsPanel"},Pd={class:"fox-calendar__month-title"},Rd={class:"fox-calendar__days"},Fd=["onClick"],Od={class:"fox-calendar__day-value"},Kd={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Ud={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Hd={key:2,class:"fox-calendar__day-tips--curr"},jd={key:4,class:"fox-calendar__day-tip"},Wd={key:0,class:"fox-calendar__footer"};function Yd(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",xd,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Id,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",qd,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Md,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",zd,[(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",Ld,[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",Pd,t.toDisplayString(s.title),1),t.createElementVNode("view",Rd,[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:f=>e.chooseDay(c,s)},[t.createElementVNode("view",Od,[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",Kd,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Ud,[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",Hd,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",jd,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",Wd,[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 _a=J(Dd,[["render",Yd]]),Xd=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Sn={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:Qd}=X("calendar"),Gd=Qd({components:{[_a.name]:_a,[ce.name]:ce},props:{...Sn},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=v=>{i.value?.scrollToDate(v)},d=()=>{i.value?.initPosition()};t.watch(()=>e.visible,v=>{v&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Te({scrollToDate:c,initPosition:d});const f=()=>{o("update:visible",!1)},m=()=>{o("close"),o("update:visible",!1)};return{closePopup:()=>{m()},update:f,close:m,select:v=>{o("select",v)},choose:v=>{m(),o("choose",v)},calendarRef:i,showTopBtn:n,topInfo:a,dayInfo:r,bottomInfo:s}}});function Zd(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 Io=J(Gd,[["render",Zd]]),Zo=(e,o)=>{let l;return Fe(e)?l=e:typeof e=="string"&&ge(e)>0?l=ne.parser(e,o):l=new Date,l},it=(e,o,l)=>(Fe(o)||(o=new Date),ne.format(o,l)),ct=e=>{let o=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,n=`${e.getDate()}`,a=ne.date2Str(e),r=ne.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[o,l,n,a,r]};function Jd(e,o,l,n,{CloseIcon:a,MarkIcon:r},s=!1){return{props:{...ue,...de,...Sn,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)),f=Ae(t.computed(()=>i.readonly)),{emitEvent:m}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),v=t.computed(()=>i.type==="range"),b=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),u=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},p=(q,F="one",I="YYYY-MM-DD")=>{if(Xd(q)){u();return}if(v.value&&Array.isArray(q)&&q.length==2){let K,W;typeof q[0]=="string"?(K=Zo(q[0],I),W=Zo(q[1],I)):(K=q[0],W=q[1]);let Z=ct(K),O=ct(W);(b.startDate===null||b.startDate.getTime()!==K.getTime()||b.endDate?.getTime()!==W.getTime())&&(b.startDate=K,b.startArray=Z,b.endDate=W,b.endArray=O)}else{let K;typeof q=="string"?K=Zo(q,I):K=q;let W=ct(K);(b.startDate===null||b.startDate.getTime()!==K.getTime())&&(b.startDate=K,b.startArray=W)}};p(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,q=>{p(q,i.type,i.valueFormat)});const k=t.computed(()=>{if(b.startDate===null)return"";if(v.value){let q=it(i,b.startDate,i.format),F=it(i,b.endDate,i.format);return`${q} ${i.rangeSeparator} ${F}`}else{let q=it(i,b.startDate,i.format);return i.showWeek&&(q=`${q} ${b.startArray[4]}`),q}}),S=t.computed(()=>{if(b.startDate===null)return null;if(v.value){let q=ne.date2Str(b.startDate),F=ne.date2Str(b.endDate??new Date);return[q,F]}else return ne.date2Str(b.startDate)}),w="fox-input-item",N=t.computed(()=>({[w]:!0,[`${w}__disabled`]:d.value})),T=Ne(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const q={};return T.value&&(q["text-align"]=T.value),q}),D=t.ref(!1),C=()=>{f.value||d.value||(D.value=!0)},V=q=>{D.value=q},M=q=>{if(q){if(v.value&&Array.isArray(q)){let F=q[0],I=me(F[0]),K=me(F[1]),W=me(F[2]),Z=new Date(I,K-1,W),O=q[1];I=me(O[0]),K=me(O[1]),W=me(O[2]);let G=new Date(I,K-1,W);if(b.startDate=Z,b.startArray=ct(Z),b.endDate=G,b.endArray=ct(G),i.valueFormat){let Q=it(i,Z,i.valueFormat),ee=it(i,G,i.valueFormat);m("update:modelValue",[Q,ee],{})}else m("update:modelValue",[Z,G],{})}else{let F=q,I=me(F[0]),K=me(F[1]),W=me(F[2]),Z=new Date(I,K-1,W);if(b.startDate=Z,b.startArray=ct(Z),i.valueFormat){let O=it(i,Z,i.valueFormat);m("update:modelValue",O,{})}else m("update:modelValue",Z,{})}m("change",q,{})}},L=q=>{let I=q.target.value;g.value=!0,m("focus",I,q)},$=q=>{setTimeout(()=>{g.value=!1},0);let I=q.target.value;i.maxLength&&I.length>Number(i.maxLength)&&(I=I.slice(0,Number(i.maxLength))),m("blur",I,q)},E=t.computed(()=>({[`${w}__append`]:!0})),x=t.computed(()=>ge(i.unit)>0),A=t.computed(()=>ge(i.unit)>0&&!g.value),H=t.computed(()=>({hidden:!A.value})),R=q=>{u(),m("update:modelValue",null,q),m("change","",q),m("clear","")},Y=t.computed(()=>i.clearable&&!d.value&&!f.value),U=t.computed(()=>{let q=ge(k.value)>0;return i.clearable&&q&&g.value}),P=q=>{U.value?R(q):C()},z=t.computed(()=>U.value&&Y.value?a:r),j=t.computed(()=>({action:!0}));return()=>{const q={class:N.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:k.value,onClick:C,onFocus:L,onBlur:$};s&&(q.disabled=!0);const F=[],I=t.h("input",q);F.push(I);const K=[],W={class:["action-icon"]},Z=t.h(z.value,W),O={class:j.value,onClick:P},G=t.h("view",O,{default:()=>[Z]});if(K.push(G),x.value){const Ze=t.h("view",{class:H.value},[i.unit]);K.push(Ze)}const Q={class:E.value},ee=t.h("view",Q,{default:()=>K});F.push(ee);const _={default:()=>F};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const oe=he(i,Sn);oe.visible=D.value,oe["onUpdate:visible"]=V,oe["default-value"]=S.value,oe.onChoose=M;const le={};if(c.slots.btn){const Ze=c.slots.btn();le.btn=()=>Ze}c.slots.day&&(le.day=c.slots.day),c.slots.topInfo&&(le.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(le.bottomInfo=c.slots.bottomInfo);const $e=t.h(l,oe,le);_.hide=()=>[$e];const ve=he(i,de,ue);return t.h(n,ve,_)}}}}const{componentName:_d,create:ef,scope:tf}=X("calendar-item"),_n=ef(Jd(_d,tf,Io,be,{CloseIcon:te.CircleClose,MarkIcon:te.Date},!1)),of={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 nf(e,{CheckNormal:o,Checked:l}){return{props:{...of},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),f=()=>{if(i.value){if(r.checkedIcon)return r.checkedIcon();{const v=se(n.iconSize),b=n.checkedIcon??l;return t.h(b,{width:v,height:v,class:c.value})}}else{if(r.icon)return r.icon();{const v=se(n.iconSize),b=n.icon??o;return t.h(b,{width:v,height:v,class:c.value})}}},m=()=>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)},g=d.value==="left";return()=>t.h("view",{class:`${e} ${e}--${n.shape} ${g?`${e}--reverse`:""}`,onClick:y},[n.shape=="button"?h():g?[m(),f()]:[f(),m()]])}}}const{componentName:lf,create:af}=X("radio"),qo=af(nf(lf,{CheckNormal:te.CheckNormal,Checked:te.CheckChecked})),{componentName:er,create:rf}=X("radio-group"),Mo=rf({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{emit:o,slots:l}){const n=a=>o("update:modelValue",a);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:n}),t.watch(()=>e.modelValue,a=>o("change",a)),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),t.h("view",{class:`${er} ${er}--${e.direction}`,style:a},l.default?.())}}});function tr(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(_t(e,r)===l)return a}else if(n==="item"){if(xe(l,r))return a}else if(Et(e,r)===l)return a}return-1}function _t(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function Et(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function sf(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function cf(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let uf=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=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function df(){const e=t.getCurrentInstance();return new uf(e.proxy)}function ff(e){return{text:e,value:e}}const or={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},mf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}};function pf(e,o,l,n,a){return{props:{...ue,...de,...or,...mf,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=Ae(t.computed(()=>r.readonly)),c=Ce(t.computed(()=>r.disabled)),d=Ne(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!c.value||!i.value}},r.prop??s.attrs.name),m=df(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,p])=>{if(u){const k=await m.load("radio",u,p);if(k.length>0)if(typeof k[0]=="string"){const N=k.map(T=>ff(T));h.value=N}else h.value=k}},{immediate:!0});let y=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([u,p])=>{y.value=tr(r,p,u,r.valueType)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;if(y.value===-1)return null;const u=h.value[y.value];return Et(r,u)}),v=u=>{let p=null,k=null;if(h.value.length>0){let S=tr(r,h.value,u,"value");y.value=S,S>=0&&(k=h.value[S],r.valueType==="text"?p=_t(r,k):r.valueType==="item"?p=k:p=Et(r,k))}else p=u;f("update:modelValue",p),f("change",p,k)},b=()=>{let u=null,p=null;if(h.value.length>0&&y.value!==-1){let k=h.value[y.value];r.valueType==="text"?u=_t(r,k):r.valueType==="item"?u=k:u=Et(r,k)}f("update:modelValue",u),f("change",u,p)};if(Te({clear(){y.value!==-1&&(y.value=-1,b())}}),r.source){const u=()=>{const p=[],k=he(r,or);return h.value.forEach((S,w)=>{const N=Et(r,S),T=sf(r,S);let B={...k,label:N,disabled:T};const D=cf(r,S,w);B={...B,...D},c.value&&(B.disabled=!0),i.value&&(B.readonly=!0);const C={};if(s.slots.icon&&(C.icon=s.slots.icon),s.slots.checkedIcon&&(C.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const M=s.slots.text(S);C.default=()=>[M]}else{const M=_t(r,S);C.default=()=>M}let V=t.h(a,B,C);p.push(V)}),p};return()=>{const p=u(),k={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"onUpdate:modelValue":v},S=t.h(n,k,{default:()=>p}),w={default:()=>S};w.label=s.slots.default,w.prepend=s.slots.prepend,w.append=s.slots.append,w.fixedPreTip=s.slots.fixedPreTip,w.fixedTip=s.slots.fixedTip;const N=he(r,de,ue);return t.h(l,N,w)}}else return()=>{const u=s.slots.options?.()??[];return t.h(n,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"update:modelValue":v},{default:()=>u})}}}}const{componentName:hf,create:gf,scope:yf}=X("radio-item"),el=gf(pf(hf,yf,be,Mo,qo)),vf=(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),f=t.computed(()=>d.value?i.value.value.includes(a.label):!!a.modelValue),m=t.computed(()=>d.value?i.position:a.textPosition),h=t.computed(()=>a.disabled?"fox-checkbox__icon--disable":c.partialSelect?"fox-checkbox__icon--indeterminate":f.value?"fox-checkbox__icon":"fox-checkbox__icon--unchecked");let y="";const g=(k,S)=>{y="click",r("update:modelValue",k),r("change",k,S)};t.watch(()=>a.modelValue,k=>{y=="click"?y="":r("change",k)});const v=()=>{if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const k=se(a.iconSize),S=a.indeterminateIcon??n;return t.h(S,{width:k,height:k,class:h.value})}}else if(f.value){if(s.checkedIcon)return s.checkedIcon();{const k=se(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=se(a.iconSize),S=a.icon??o;return t.h(S,{width:k,height:k,class:h.value})}}},b=()=>t.h("view",{class:`${e}__label ${a.disabled?`${e}__label--disabled`:""}`},s.default?.()),u=()=>t.h("view",{class:`${e}__button ${f.value&&`${e}__button--active`} ${a.disabled?`${e}__button--disabled`:""}`},s.default?.()),p=k=>{if(!(a.disabled||a.readonly)){if(f.value&&c.partialSelect){c.partialSelect=!1,g(f.value,s.default?.()[0].children);return}if(g(!f.value,s.default?.()[0].children),d.value){const S=i.value.value,w=i.max.value,{label:N}=a,T=S.indexOf(N);T>-1?S.splice(T,1):T<=-1&&(S.length<w||!w)&&S.push(N),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} ${m.value==="left"?`${e}--reverse`:""}`,onClick:p},[a.shape=="button"?u():[v(),b()]])}}),{componentName:kf,create:bf}=X("checkbox"),zo=bf(vf(kf,{CheckNormal:te.CheckNormal,Checked:te.Checked,Indeterminate:te.CheckDisabled})),{create:Sf,componentName:nr}=X("checkbox-group"),Lo=Sf({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:o,emit:l}){const n=t.reactive({children:[]}),a=d=>{d.proxy&&n.children.push(d.proxy)},r=d=>{d.proxy&&(n.children=n.children.filter(f=>f!==d.proxy))},s=d=>{l("update:modelValue",d),l("change",d)},i=d=>{const f=[];d&&n.children.forEach(m=>{m?.disabled||f.push(m?.label)}),l("update:modelValue",f)},c=()=>{const d=n.children.filter(f=>f?.disabled?!1:!e.modelValue.includes(f.label)).map(f=>f.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}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),t.h("view",{class:`${nr} ${nr}--${e.direction}`,style:d},o.default?.())}}});function lr(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(Cn(e,r)===l)return a}else if(n==="item"){if(xe(l,r))return a}else if(eo(e,r)===l)return a}return-1}function Cn(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function eo(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function Cf(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function wf(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let Nf=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=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function Bf(){const e=t.getCurrentInstance();return new Nf(e.proxy)}function Vf(e){return{text:e,value:e}}const Af={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},ar={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}};function Tf(e,o,l,n,a){return{props:{...Af,...ar,...ue,...de,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)),d=Ne(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!i.value||!c.value}},r.prop??s.attrs.name),m=Bf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,p])=>{if(u){const k=await m.load("checkbox",u,p);if(k.length>0)if(typeof k[0]=="string"){const N=k.map(T=>Vf(T));h.value=N}else h.value=k}},{immediate:!0});const y=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([u,p])=>{const k=[];Array.isArray(u)&&u.forEach(S=>{let w=lr(r,p,S,r.valueType);w!==-1&&k.push(w)}),!xe(k,y.value)&&(y.value=k)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;let u=[];return y.value.forEach(p=>{let k=h.value[p];u.push(eo(r,k))}),u}),v=u=>{let p=[],k=[];if(h.value.length>0){const S=[];Array.isArray(u)&&u.forEach(w=>{let N=lr(r,h.value,w,"value");N!==-1&&S.push(N);const T=h.value[N];k.push(T),r.valueType==="text"?p.push(Cn(r,T)):r.valueType==="item"?p.push(T):p.push(eo(r,T))}),y.value=S}else p=u;f("update:modelValue",p),f("change",p,k)},b=t.ref();if(Te({toggleAll:u=>{b.value.toggleAll(u)},toggleReverse:()=>{b.value.toggleReverse()}}),r.source){const u=()=>{const p=[],k=he(r,ar);return h.value.forEach((S,w)=>{const N=eo(r,S),T=Cf(r,S);let B={...k,label:N,disabled:T};const D=wf(r,S,w);B={...B,...D},i.value&&(B.disabled=!0),c.value&&(B.readonly=!0);const C={};if(s.slots.icon&&(C.icon=s.slots.icon),s.slots.checkedIcon&&(C.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(C.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const M=s.slots.text(S);C.default=()=>[M]}else{const M=Cn(r,S);C.default=()=>M}let V=t.h(a,B,C);p.push(V)}),p};return()=>{const p=u(),k={class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:g.value,"onUpdate:modelValue":v},S=t.h(n,k,{default:()=>p}),w={default:()=>S};w.label=s.slots.default,w.prepend=s.slots.prepend,w.append=s.slots.append,w.fixedPreTip=s.slots.fixedPreTip,w.fixedTip=s.slots.fixedTip;const N=he(r,de,ue);return t.h(l,N,w)}}else return()=>{const u=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"onUpdate:modelValue":v},{default:()=>u})}}}}const{componentName:$f,create:Ef,scope:Df}=X("checkbox-item"),tl=Ef(Tf($f,Df,be,Lo,zo)),wn={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:xf,create:If}=X("switch"),qf=If({components:{Loading1:te.Loading1},props:{...wn},emits:["change","update:modelValue","update:loading"],setup(e,{emit:o}){const l=t.computed(()=>e.modelValue===e.activeValue),n=t.computed(()=>{const i=xf;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}}}),Mf={class:"fox-switch-button"};function zf(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",Mf,[e.loading?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(s,{name:"loading",color:e.activeColor},null,8,["color"])]):t.createCommentVNode("",!0),e.activeText?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label open"},t.toDisplayString(e.activeText),513),[[t.vShow,e.isActive]]),t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label close"},t.toDisplayString(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):t.createCommentVNode("",!0)])],6)}const Po=J(qf,[["render",zf]]);function Lf(e,o,l,n){return{props:{...ue,...de,...wn},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,f=Ee(a,"modelValue"),m=h=>{f.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const y={...he(a,wn),disabled:s.value,readonly:i.value,value:f.value,"onUpdate:modelValue":m},g=[],v=t.h(n,y);g.push(v);const b={default:()=>g};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const u=he(a,de,ue);return u["content-class"]=d,t.h(l,u,b)}}}}const{componentName:Pf,create:Rf,scope:Ff}=X("switch-item"),ol=Rf(Lf(Pf,Ff,be,Po));function Of(e,o,l,n){return{props:{...ue,...de,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur"],setup(a,r){const{emitEvent:s}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},a.prop??r.attrs.name),{toLocaleRefs:i}=ae.useFoxI18n(o),c=i(a,["placeholder"]),d=Ce(t.computed(()=>a.disabled)),f=Ae(t.computed(()=>a.readonly)),m=Ee(a,"modelValue"),h=t.computed(()=>({[`${e}`]:!0})),y=t.computed(()=>({[`${e}__main`]:!0,[`${e}__disabled`]:d.value,[`${e}__placeholder`]:!d.value&&ie(m.value)})),g=Ne(t.computed(()=>a.textAlign),"textAlign"),v=t.computed(()=>{const M={};return g.value&&(M["text-align"]=g.value),M}),b=t.computed(()=>!ie(a.modelValue)||r.slots.main?!0:!!ie(a.desc)),u=t.computed(()=>ie(m.value)?c.placeholder.value:m.value),p=t.computed(()=>!ie(a.desc)||r.slots.sub),k=t.computed(()=>({[`${e}__sub`]:!0})),S=t.computed(()=>{const M={};return g.value&&(M["text-align"]=g.value),M}),w=()=>{s("focus",m.value)},N=()=>{s("blur",m.value)},T=t.computed(()=>({[`${e}__append`]:!0})),B=t.computed(()=>ge(a.unit)>0),D=M=>{d.value==!0||f.value==!0||s("click")},C=t.computed(()=>a.icon??l),V=t.computed(()=>({action:!0}));return()=>{const M=[];if(typeof r.slots.content=="function"){const z=r.slots.content();M.push(z)}else{const z=[];if(b.value){const F={tabIndex:0,class:y.value,style:v.value,onFocus:w,onBlur:N,onClick:D};let I=null;r.slots.main?I=t.h("view",F,[r.slots.main(u.value)]):I=t.h("view",F,[u.value]),z.push(I)}if(p.value){const F={tabIndex:0,class:k.value,style:S.value,onFocus:w,onBlur:N,onClick:D};let I=null;r.slots.sub?I=t.h("view",F,[r.slots.sub(a.desc)]):I=t.h("view",F,[a.desc]),z.push(I)}const j={class:h.value},q=t.h("view",j,z);M.push(q)}const L=[],$=se(a.iconSize);let E=r.slots.icon;if(!E){const z={width:$,height:$,class:["action-icon"]};E=t.h(C.value,z)}const x={class:V.value,onClick:D},A=t.h("view",x,{default:()=>[E]});if(L.push(A),B.value){const z=t.h("view",{},[a.unit]);L.push(z)}const H={class:T.value},R=t.h("view",H,{default:()=>L});M.push(R);const Y={default:()=>M};Y.label=r.slots.default,Y.prepend=r.slots.prepend,Y.append=r.slots.append,Y.fixedPreTip=r.slots.fixedPreTip,Y.fixedTip=r.slots.fixedTip;const U=he(a,de,ue);return t.h(n,U,Y)}}}}const{componentName:Kf,create:Uf,scope:Hf}=X("link-item"),nl=Uf(Of(Kf,Hf,te.ArrowRight,be)),Nn={count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object},size:{type:[String,Number],default:void 0},activeColor:{type:String,default:""},voidColor:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:void 0}},{create:jf,componentName:Wf}=X("rate"),Yf=jf({props:{...Nn},emits:["update:modelValue","change"],setup(e,{emit:o,slots:l}){const n=t.ref([]),a=t.computed(()=>({[Wf]:!0})),r=y=>{o("update:modelValue",y),o("change",y)},s=(y,g)=>{if(e.disabled||e.readonly)return;let v=0;g===1&&e.modelValue===g||(v=g,e.allowHalf&&y==2&&(v-=.5)),r(v)},i=(y,g,v)=>{let b=0;for(let u=g.value.length-1;u>=0;u--){const p=g.value[u];if(y>p.offsetLeft){v?b=u+(y>p.offsetLeft+p.clientWidth/2?1:.5):b=u+1;break}}return b},c=Ke(),d={onTouchStart(y){!e.touchable||e.readonly||c.start(y)},onTouchMove(y){e.touchable&&(c.move(y),c.isHorizontal()&&n.value&&(y.preventDefault(),r(i(c.moveX.value,n,e.allowHalf))))}},f=Math.random().toString(36).slice(-8),m=t.computed(()=>e.customIcon??te.StarFillN);return{classes:a,...d,onClick:s,toPxDesc:fe,renderIcon:(y,g)=>t.h(y,g),rateRefs:n,refRandomId:f,slots:l,customIcon:m}}}),Xf=["id"],Qf={class:"fox-rate-item__icon--full"},Gf={key:0,class:"fox-rate-item__icon--half"},Zf={key:1,class:"fox-rate-item__icon--half"};function Jf(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",Qf,[(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",Gf,[(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",Zf,[(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,Xf))),128))],34)}const vt=J(Yf,[["render",Jf]]);function _f(e,o,l,n){return{props:{...ue,...de,...Nn},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,f=Ee(a,"modelValue"),m=h=>{f.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const y={...he(a,Nn),disabled:s.value,readonly:i.value,value:f.value,"onUpdate:modelValue":m},g=[],v=t.h(n,y);g.push(v);const b={default:()=>g};if(r.slots.default){const k=r.slots.default();b.label=()=>k}const u=he(a,de,ue);return u["content-class"]=d,t.h(l,u,b)}}}}const{componentName:em,create:tm,scope:om}=X("rate-item"),ll=tm(_f(em,om,be,vt)),Bn={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0}};function nm(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(to(e,r)===l)return a}else if(n==="item"){if(xe(l,r))return a}else if(ys(e,r)===l)return a}return-1}function to(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function rr(e,o){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?o[e.subTextKey]:o.text}function ys(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function lm(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function am(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let rm=class{proxy;constructor(o){this.proxy=o}async load(o,l,n,a,r,s,i){if(Array.isArray(l)){let d=l;typeof i=="function"&&(d=d.filter(i));let f=(n-1)*a,m=f+a;m>d.length&&(m=d.length);const h=d.slice(f,m);return{totalSize:d.length,page:h}}if(typeof l=="function")return await Reflect.apply(l,null,[n,a,r,s]);const c=Ge(this.proxy,o);return c===null?(console.error(`${o} component not found api function`),{totalSize:0,page:[]}):(Be(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[l,n,a,r]))}};function sm(){const e=t.getCurrentInstance();return new rm(e.proxy)}const{componentName:im,create:cm,scope:um}=X("infinite-loading"),dm=cm({props:{modelValue:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!0},threshold:{type:Number,default:200},loadText:{type:String},loadMoreText:{type:String},useCapture:{type:Boolean,default:!1}},emits:["scroll-change","load-more","update:modelValue"],components:{Loading:te.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(um),a=n(e,["pullText","loadText","loadMoreText"]),r=t.ref(),s=ls(r),i=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[im]:!0})),d=v=>v?v.offsetTop+d(v.offsetParent):0,f=()=>{let v=0,b=0,u="down";if(s.value==window){const p=In();r.value&&(v=d(r.value)+r.value.offsetHeight-p-window.innerHeight),b=p}else{const{scrollHeight:p,clientHeight:k,scrollTop:S}=s.value;v=p-k-S,b=S}return i.beforeScrollTop>b?u="up":u="down",i.beforeScrollTop=b,o("scroll-change",b),v<=e.threshold&&u=="down"},m=()=>{je(()=>{if(!f()||!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",m,e.useCapture)},y=()=>{s.value&&s.value.removeEventListener("scroll",m,e.useCapture)};t.onMounted(()=>{h()}),t.onUnmounted(()=>{y()});const g=t.ref(!1);return t.onActivated(()=>{g.value&&(g.value=!1,h())}),t.onDeactivated(()=>{g.value=!0,y()}),t.watch(()=>e.modelValue,v=>{v||(i.isInfiniting=!1)}),{classes:c,scroller:r,...t.toRefs(i),slots:l,...a}}}),fm={class:"fox-infinite__container"},mm={class:"fox-infinite__bottom"},pm={key:0,class:"fox-infinite__bottom-box"},hm={class:"fox-infinite__bottom-box__text"},gm={class:"fox-infinite__bottom-tips"};function ym(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",fm,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",mm,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",pm,[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",hm,t.toDisplayString(e.loadText),1)])])):e.hasMore?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"finished",{key:1},()=>[t.createElementVNode("view",gm,t.toDisplayString(e.loadMoreText),1)])])],2)}const Ro=J(dm,[["render",ym]]),{componentName:vm,create:km}=X("button"),bm=km({components:{Loading:te.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o,slots:l}){const{type:n,size:a,shape:r,disabled:s,loading:i,color:c,plain:d,block:f}=t.toRefs(e),m=g=>{!i.value&&!s.value&&o("click",g)},h=t.computed(()=>{const g=vm;return{[g]:!0,[`${g}--${n.value}`]:n.value,[`${g}--${a.value}`]:a.value,[`${g}--${r.value}`]:r.value,[`${g}--plain`]:d.value,[`${g}--block`]:f.value,[`${g}--disabled`]:s.value,[`${g}--loading`]:i.value}}),y=t.computed(()=>{const g={};return c?.value&&(d.value?(g.color=c.value,g.background="#fff",c.value?.includes("gradient")||(g.borderColor=c.value)):(g.color="#fff",g.background=c.value)),g});return{handleClick:m,classes:h,getStyle:y}}}),Sm={class:"fox-button__wrap"};function Cm(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",Sm,[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 Ie=J(bm,[["render",Cm]]),{create:wm,scope:Nm}=X("searchbar"),Bm=wm({props:{modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object,default:()=>te.CircleClose},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},emits:["change","update:modelValue","blur","focus","clear","search","click-input","click-left-icon","click-right-icon"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(Nm),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)},f=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)},m=p=>{o("update:modelValue","",p),o("change","",p),o("clear","")},h=()=>{o("search",e.modelValue)},y=p=>{o("click-input",p)},g=p=>{o("click-left-icon",e.modelValue,p)},v=p=>{o("click-right-icon",e.modelValue,p)},b=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:f,handleClear:m,handleSubmit:h,searchbarStyle:r,inputSearchbarStyle:s,focusCss:c,clickInput:y,leftIconClick:g,rightIconClick:v,styleSearchbar:b}}}),Vm={key:0,class:"fox-searchbar__search-label"},Am={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},Tm=["type","maxlength","placeholder","value","disabled","readonly"],$m={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-search-icon"},Em={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function Dm(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",Vm,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",Am,[t.renderSlot(e.$slots,"leftout")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__search-input",e.shape]),style:t.normalizeStyle({...e.inputSearchbarStyle,...e.focusCss})},[e.$slots.leftin?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-searchbar__search-icon fox-searchbar__iptleft-search-icon",onClick: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,Tm)],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",$m,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],2)],6),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",Em,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const Fo=J(Bm,[["render",Dm]]);function xm(e,o,l){return{props:{...Bn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(n,{emit:a,slots:r}){const{toLocaleRefs:s}=ae.useFoxI18n(o),i=s(n,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),c=sm(),d=t.ref([]),f=t.ref(1),m=t.ref(""),h=t.shallowRef(null),y=t.computed(()=>{const U={};return n.params&&Object.assign(U,n.params),ie(m.value)||(U[`${n.searchKey}`]=m.value),h.value&&Object.assign(U,h.value),U});let g=!0;const v=async(U,P,z)=>{try{let j=null;ie(m.value)||(j=F=>{const I=to(n,F);if(typeof I=="string"&&I.includes(m.value))return!0;const K=rr(n,F);return!!(typeof K=="string"&&K.includes(m.value))});const q=await c.load("actionsheet",U,P,z,y.value,g,j??void 0);g=!1,Array.isArray(q)?(d.value=q,L.value=!1,f.value=1):q.page.length===0?L.value=!1:(Reflect.apply([].push,d.value,q.page),d.value.length>=q.totalSize?L.value=!1:f.value=d.value.length/n.pageSize),M.value=!1}catch(j){console.error("[FoxUI] Load ActionSheet Data Fail",j),d.value=[]}setTimeout(()=>{a("loaded-data")},250)};t.watch([()=>n.source,()=>n.pageSize,()=>n.params],async([U,P,z])=>{n.source&&v(n.source,f.value,P)},{immediate:!0});const b=t.computed(()=>!n.multiple&&n.isAutoBackFill),u=t.ref([]);let p=null;const k=t.ref(n.visible);t.watch(()=>n.visible,U=>{k.value!==U&&(k.value=U),U?p=[...u.value]:p=null});const S=(U,P)=>{const z=[];return Array.isArray(U)||(U=[U]),U.forEach(j=>{let q=nm(n,P,j,n.valueType);q!==-1&&z.push(q)}),xe(z,u.value)?!1:(u.value=z,!0)};t.watch([()=>n.modelValue,()=>d.value],([U,P],[z,j])=>{S(U,P)&&w()},{deep:!0});const w=()=>{const U=[],P=[],z=[];for(let j of u.value){const q=d.value[j];P.push(q);const F=to(n,q);if(z.push(F),n.valueType==="item")U.push(q);else if(n.valueType==="text")U.push(F);else{const I=ys(n,q);U.push(I)}}n.multiple?(a("update:modelValue",U),a("update:text",z),a("change",U,P)):(a("update:modelValue",U[0]??null),a("update:text",z[0]??null),a("change",U[0],P[0]??null))},N=()=>{p&&(u.value=p)},T=U=>{const P=u.value.indexOf(U);n.multiple?P===-1?u.value.push(U):u.value.splice(P,1):P===-1?u.value=[U]:u.value=[],(b.value||!n.poppable&&!n.showFooter)&&(w(),B(!1))},B=U=>{k.value=U,a("update:visible",U)},D=()=>{N(),B(!1)},C=()=>{B(!1),w()},V=()=>{d.value=[],f.value=1,n.source&&v(n.source,f.value,n.pageSize)},M=t.ref(!1),L=t.ref(!0),$=async()=>{if(!n.source){M.value=!1;return}await v(n.source,f.value,n.pageSize)};t.watch(()=>m.value,(U,P)=>{ie(U)&&!ie(P)&&$()});const E=()=>{let U=i.title.value??"";r.title&&(U=r.title());const P=t.h("view",{class:["fox-actionsheet__header-title"]},[U]),z=t.h(te.Close,{class:["fox-actionsheet__header-icon"],onClick:D});return t.h("view",{class:["fox-actionsheet__header"]},[P,z])},x=()=>{let U=null;if(r.search)U=r.search();else{const P={onSearch:V,placeholder:i.seachPlaceholder.value,disabled:n.disabled,modelValue:m.value,"onUpdate:modelValue":z=>{m.value=z}};U=t.h(Fo,P,{leftin:()=>t.h(te.Search2)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[U])},A=(U,P,z,j,q)=>{if(r.optionLabel)return r.optionLabel({text:U,checked:P,disabled:z,subText:j,item:q});const F=[],I=t.h("view",{class:"fox-actionsheet__list-item-text"},[U]);if(F.push(I),j){const K=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[j]);F.push(K)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},F)},H=(U,P,z,j)=>{if(r.optionIcon)return r.optionIcon({checked:U,disabled:P,iconSize:z,item:j});if(U){if(r.checkedIcon)return r.checkedIcon({disabled:P,item:j});{const q=n.checkedIcon??te.Checked;return t.h(q,{width:z,height:z,class:["fox-actionsheet__list-item-icon"]})}}else{if(r.icon)return r.icon({disabled:P,item:j});{const q=n.icon??te.CheckNormal;return t.h(q,{width:z,height:z,class:["fox-actionsheet__list-item-icon"]})}}},R=()=>{const U=[];for(let P=0;P<d.value.length;P++){const z=d.value[P],j=to(n,z),q=rr(n,z),F=["fox-actionsheet__list-item"],I={};let K=lm(n,z),W=n.iconSize?se(n.iconSize):null;const Z=am(n,z,P);Z&&(K=K||Z.disabled,Z.class&&F.push(Z.class),Z.style&&Object.assign(I,Z.style)),K=!!(n.disabled||K);const O=u.value.includes(P);K&&F.push("is-disabled"),O&&F.push("is-checked");const G={class:F,style:I,key:`${P}`,onClick:()=>{K||T(P)}};let Q=[];if(r.option)Q.push(r.option({item:z,checked:O,disabled:K}));else{const _=A(j,O,K,q,z);Q.push(_);const oe=H(O,K,W,z);Q.push(oe)}const ee=t.h("view",G,Q);U.push(ee)}return U},Y=()=>{let U=[];if(r.buttons)U=r.buttons();else{const z=t.h(Ie,{type:"primary",block:"block",onClick:C,disabled:n.disabled},{default:()=>i.confirmText.value});U.push(z)}return t.h("view",{class:"fox-actionsheet__footer"},[U])};return Te({search:async(U=null,P=!0)=>{h.value=U&&t.toRaw(U),t.triggerRef(h),P&&(d.value=[],f.value=1),t.nextTick(()=>{$()})},clear:()=>{d.value=[],f.value=1},confirm:()=>{C()},cancel:()=>{D()}}),()=>{const U=[];if(n.showHeader){const W=E();U.push(W)}if(n.showSearchbar){const W=x();U.push(W)}let P=null;if(r.content)P=r.content();else{const W=R(),Z={hasMore:L.value,loadText:i.loadText.value,loadMoreText:i.loadMoreText.value,modelValue:M.value,"onUpdate:modelValue":O=>{M.value=O},onLoadMore:$};P=t.h(Ro,Z,{default:()=>W})}const z={};n.optionsHeight&&(z.height=n.optionsHeight);const j={"fox-actionsheet__list":!0};n.poppable||(j["fox-actionsheet__list--inner"]=!0);const q=t.h("view",{class:j,style:z},[P]);if(U.push(q),n.showFooter&&!b.value){const W=Y();U.push(W)}const F=t.h("view",{class:"fox-actionsheet"},U);if(!n.poppable)return F;const I=["fox-actionsheet__popup"];n.popClass&&I.push(n.popClass);const K={popClass:I.join(" "),visible:k.value,closeable:!1,"onUpdate:visible":B,position:n.position,round:"round",onClickOverlay:D,closeOnClickOverlay:n.closeOnClickOverlay};return t.h(ce,K,{default:()=>F})}}}}const{componentName:Im,create:qm,scope:Mm}=X("actionsheet-pane"),Oo=qm(xm(Im,Mm)),zm={type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Lm(e,o,l,n,a,r,s){return{props:{...ue,...de,...zm,...Bn},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),f=Ae(t.computed(()=>i.readonly)),{emitEvent:m}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!f.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),v=Ee(i,"modelValue"),b=t.ref(""),u=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),p="fox-input-item",k=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),w=t.computed(()=>{const q={};return S.value&&(q["text-align"]=S.value),q}),N=t.ref(!1),T=()=>{N.value=!0},B=q=>{N.value=q},D=q=>{v.value=q,m("update:modelValue",q)},C=(q,F)=>{m("change",q,F)},V=q=>{let I=q.target.value;g.value=!0,m("focus",I,q)},M=q=>{setTimeout(()=>{g.value=!1},0);let I=q.target.value;i.maxLength&&I.length>Number(i.maxLength)&&(I=I.slice(0,Number(i.maxLength))),m("blur",I,q)},L=q=>{b.value=q,m("update:text",q)},$=t.computed(()=>({[`${p}__append`]:!0})),E=t.computed(()=>ge(i.unit)>0),x=t.computed(()=>ge(i.unit)>0&&!g.value),A=t.computed(()=>({hidden:!x.value})),H=q=>{v.value="",m("update:modelValue","",q),m("change","",q),m("clear","")},R=t.computed(()=>i.clearable&&!d.value&&!f.value),Y=t.computed(()=>ge(v.value)>0&&g.value),U=q=>{Y.value?H(q):T()},P=t.computed(()=>Y.value&&R.value?n:a),z=t.computed(()=>({action:!0})),j=t.ref(null);return Te({search:q=>{j.value&&j.value.search(q)},clear:()=>{j.value&&j.value.clear},confirm:q=>{j.value&&j.value.confirm()},cancel:()=>{j.value&&j.value.cancel()}}),()=>{const q={class:k.value,style:w.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:T,onFocus:V,onBlur:M};s&&(q.disabled=!0);const F=[],I=t.h("input",q);F.push(I);const K=[],W={class:["action-icon"]},Z=t.h(P.value,W),O={class:z.value,onClick:U},G=t.h("view",O,{default:()=>[Z]});if(K.push(G),E.value){const Ze=t.h("view",{class:A.value},[i.unit]);K.push(Ze)}const Q={class:$.value},ee=t.h("view",Q,{default:()=>K});F.push(ee);const _={default:()=>F};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const oe=he(i,Bn);oe.ref=j,oe.class=i.actionsheetProps,oe.disabled=d.value||f.value,oe.visible=N.value,oe["onUpdate:visible"]=B,oe.modelValue=v.value,oe["onUpdate:modelValue"]=D,oe.text=b.value,oe["onUpdate:text"]=L,oe.onChange=C,oe.poppable=!0;const le={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},$e=t.h(r,oe,le);_.hide=()=>[$e];const ve=he(i,de,ue);return t.h(l,ve,_)}}}}const{componentName:Pm,create:Rm,scope:Fm}=X("actionsheet-item"),al=Rm(Lm(Pm,Fm,be,te.CircleClose,te.ArrowRight,Oo)),Vn={modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{componentName:Om,create:Km}=X("input-number"),Um=Km({components:{Minus:te.Minus,Plus:te.Plus},props:{...Vn},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:o}){const l=t.computed(()=>{const y=Om;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),n=y=>Number(y).toFixed(Number(e.decimalPlaces)),a=y=>{const g=y.target;o("update:modelValue",g.valueAsNumber,y)},r=(y,g)=>{let v=n(y);o("update:modelValue",v,g),o("change",v,g)},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 g=Number(e.modelValue)-Number(e.step);r(g,y)}else o("overlimit",y,"reduce")},d=y=>{if(o("add",y),s()){let g=Number(e.modelValue)+Number(e.step);r(g,y)}else o("overlimit",y,"add")},f=y=>{e.disabled||e.readonly||o("focus",y)},m=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 g=Number(y);return g<Number(e.min)?g=Number(e.min):g>Number(e.max)&&(g=Number(e.max)),g};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const y=h(e.modelValue);y!==Number(e.modelValue)&&r(y,{})}),{classes:l,change:a,blur:m,focus:f,add:d,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:fe}}}),Hm=["min","max","disabled","readonly","value"];function jm(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,Hm),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 Qe=J(Um,[["render",jm]]);function Wm(e,o,l,n){return{props:{...ue,...de,...Vn},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,f=Ee(a,"modelValue"),m=h=>{f.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const h={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},g={...he(a,Vn),disabled:s.value,readonly:i.value,value:f.value,"onUpdate:modelValue":m},v=t.h(n,g,h),b=[];b.push(v);const u={default:()=>b};u.label=r.slots.default,u.fixedPreTip=r.slots.fixedPreTip,u.fixedTip=r.slots.fixedTip;const p=he(a,de,ue);return p["content-class"]=d,t.h(l,p,u)}}}}const{componentName:Ym,create:Xm,scope:Qm}=X("inputnumber-item"),rl=Xm(Wm(Ym,Qm,be,Qe)),{create:Gm,componentName:Gt,scope:MB}=X("tabs-bar"),Zm=Gm({components:{MoreH:te.MoreH},props:{modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{slots:o,emit:l}){const n=t.computed(()=>{const x={};return x[`${Gt}`]=!0,x}),a=t.computed(()=>{const x={};return x[`${Gt}__titles`]=!0,x[`${e.direction}`]=!0,e.align==="left"&&(x.left=!0),e.scroll===!0&&(x.scrollable=!0),e.shape&&(x[`${e.shape}`]=!0),x}),r=t.computed(()=>({})),s=t.computed(()=>{if(!e.gutter)return 0;const x=se(e.gutter);return x<=0?0:x}),i=t.ref(e.modelValue);t.watch(()=>e.modelValue,x=>{i.value!==x&&(i.value=x,E(!1))});const c=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),d=t.ref(),f=t.ref(!1),m=()=>{const x=!f.value;h(x)},h=x=>{const A=x;A?(f.value=A,setTimeout(()=>{c.value["fox-tabs-bar__popup--show"]=!0,c.value["fox-tabs-bar__popup--hide"]=!1},0)):(c.value["fox-tabs-bar__popup--show"]=!1,c.value["fox-tabs-bar__popup--hide"]=!0,d.value?d.value.addEventListener("transitionend",()=>{f.value=!1},{once:!0}):setTimeout(()=>{f.value=!1},0))},y=t.ref(),g=t.ref([]),v=(x,A)=>{g.value[A]=x},b=x=>A=>{v(A,x)},u=(x,A)=>{const H=y.value,R=g.value;if(!H||!R||!R[x])return;const Y=R[x];let U=0;e.direction==="vertical"?U=Y.offsetTop-(H.offsetHeight-Y.offsetHeight)/2:U=Y.offsetLeft-(H.offsetWidth-Y.offsetWidth)/2,p(H,U,A?0:.3,e.direction)},p=(x,A,H,R)=>{let Y=0;const U=R==="horizontal"?x.scrollLeft:x.scrollTop,P=H===0?1:Math.round(H*1e3/16);function z(){R==="horizontal"?x.scrollLeft+=(A-U)/P:x.scrollTop+=(A-U)/P,++Y<P&&Le(z)}z()},k=x=>x[e.textKey],S=x=>x[e.valueKey],w=x=>x[e.visibleKey],N=x=>x[e.disabledKey],T=(x,A)=>{const H=e.itemOptions;return typeof H=="function"?H(x,A):H||null},B=(x,A)=>{const H=S(x),R={};R[`${Gt}__titles-item`]=!0,R.disabled=N(x),R.active=H===i.value,e.shape&&(R[`${e.shape}`]=!0),e.ellipsis&&(R.ellipsis=!0);const Y=T(x,A);return Y&&(Y.class&&(R[`${Y.class}`]=!0),Y.disabled===!0&&(R.disabled=Y.disabled)),R},D=(x,A)=>{const H={};if(s.value>0){const Y=Math.abs(s.value/2);e.direction==="vertical"?(H["margin-top"]=`${Y}px`,H["margin-bottom"]=`${Y}px`):(H["margin-left"]=`${Y}px`,H["margin-right"]=`${Y}px`)}const R=T(x,A);return R&&R.style&&Object.assign(H,R.style),H},C=(x,A)=>`${S(x)??A}`,V=(x,A)=>{const H=S(x),R={};R[`${Gt}__popup-item`]=!0,R.disabled=N(x),R.active=H===i.value,e.shape&&(R[`${e.shape}`]=!0);const Y=T(x,A);return Y&&Y.disabled===!0&&(R.disabled=Y.disabled),R},M=t.computed(()=>(e.data??[]).filter(A=>w(A)!==!1)),L=(x,A)=>{const H=S(x);i.value=H,e.scroll&&u(A,!1),l("update:modelValue",H),l("change",x,A)},$=(x,A)=>{L(x,A),h(!1)},E=x=>{if(!Array.isArray(e.data)||!e.scroll)return;const A=e.data.findIndex(H=>S(H)===i.value);A!==-1&&u(A,x)};return t.watch(()=>e.data,()=>{setTimeout(E,0)}),t.onMounted(()=>{E(!0)}),{classes:n,titlesClasses:a,titlesStyles:r,itemClasses:B,itemStyles:D,itemKey:C,popupItemClasses:V,filterTabItems:M,getItemText:k,getItemValue:S,onTabChange:L,titlesRef:y,createItemRefs:b,togglePopupVisible:m,onQuickNavigate:$,popupClasses:c,popupVisible:f,popupRef:d}}}),Jm={class:"fox-tabs-bar"},_m=["onClick"],ep={class:"fox-tabs-bar__titles-item-text"},tp=t.createElementVNode("view",{class:"fox-tabs-bar__titles-item-line"},null,-1),op=["onClick"];function np(e,o,l,n,a,r){const s=t.resolveComponent("MoreH");return t.openBlock(),t.createElementBlock("view",Jm,[t.createElementVNode("view",{ref:"titlesRef",class:t.normalizeClass(e.titlesClasses),style:t.normalizeStyle(e.titlesStyles)},[t.renderSlot(e.$slots,"default",{},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filterTabItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:e.createItemRefs(c),class:t.normalizeClass(e.itemClasses(i,c)),style:t.normalizeStyle(e.itemStyles(i,c)),key:e.itemKey(i),onClick:d=>e.onTabChange(i,c)},[t.renderSlot(e.$slots,"item",{item:i,index:c},()=>[t.createElementVNode("view",ep,t.toDisplayString(e.getItemText(i)),1),tp])],14,_m))),128))])],6),e.showQuickNavigation?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs-bar__navigation",onClick:o[0]||(o[0]=(...i)=>e.togglePopupVisible&&e.togglePopupVisible(...i))},[t.renderSlot(e.$slots,"navigation",{},()=>[t.createVNode(s)])])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("view",{ref:"popupRef",class:t.normalizeClass(e.popupClasses)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filterTabItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.popupItemClasses(i,c)),key:e.itemKey(i),onClick:d=>e.onQuickNavigate(i,c)},[t.renderSlot(e.$slots,"popup-item",{item:i,index:c},()=>[t.createTextVNode(t.toDisplayString(e.getItemText(i)),1)])],10,op))),128))],2),[[t.vShow,e.popupVisible]])])}const sl=J(Zm,[["render",np]]),vs=Symbol("TabsStatesKey"),{create:lp}=X("tabs-container"),ap=lp({props:{modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"}},emits:["update:modelValue","change"],setup(e,{emit:o}){const l=t.shallowRef([]),n={current:t.ref(e.modelValue??""),direction:t.ref(e.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:f=>{const m={name:f};n.current.value===f&&(m.loaded=!0),l.value.push(m),t.triggerRef(l)},remove:f=>{const m=l.value.findIndex(h=>h.name===f);m!==-1&&l.value.splice(m,1)},isLoaded:f=>{const m=l.value.findIndex(h=>h.name===f);return m!==-1?n.current.value?l.value[m].loaded??!1:m===0:!1}};t.provide(vs,n);const a=f=>{const m=l.value.findIndex(h=>h.name===f);m!==-1&&(l.value[m].loaded=!0,t.triggerRef(l))};t.watch([()=>e.modelValue,()=>e.direction],([f,m])=>{n.current.value!==f&&(n.current.value=f??"",a(f??"")),n.direction.value!==m&&(n.direction.value=m)});const r=t.ref(null),s=t.ref(null),i=t.computed(()=>({"fox-tabs-container":!0,[`${e.direction}`]:!0})),c=t.computed(()=>{const f={},m=l.value.length;if(m<=0)return f;const h=l.value.findIndex(y=>y.name===n.current.value);return n.direction.value==="vertical"?n.tabHeight.value>0&&(f.height=`${m*n.tabHeight.value}px`,h!==-1&&(f.transform=`translate(0, -${h*n.tabHeight.value}px)`)):n.tabWidth.value>0&&(f.width=`${m*n.tabWidth.value}px`,h!==-1&&(f.transform=`translate(-${h*n.tabWidth.value}px, 0)`)),f});let d=null;return t.onMounted(()=>{if(!r.value)return;const f=()=>{const m=wo(r.value);n.tabWidth.value=m.width,n.tabHeight.value=m.height};window.ResizeObserver&&(d=new window.ResizeObserver(f),d.observe(r.value)),f()}),t.onBeforeUnmount(()=>{d&&(d.disconnect(),d=null)}),{tabsRef:r,panesRef:s,classes:i,panesStyles:c}}});function rp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"tabsRef"},[t.createElementVNode("view",{class:"fox-tabs-container__panes",style:t.normalizeStyle(e.panesStyles),ref:"panesRef"},[t.renderSlot(e.$slots,"default")],4)],2)}const il=J(ap,[["render",rp]]),{create:sp}=X("tabs-pane"),ip=sp({components:{Loading:te.Loading},props:{paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null}},setup(e,{emit:o}){const l=t.inject(vs);t.onMounted(()=>{l.add(e.paneKey)}),t.onBeforeUnmount(()=>{l.remove(e.paneKey)});const n=t.computed(()=>{const r={};return l.direction.value==="vertical"&&l.tabHeight.value>0?r.height=`${l.tabHeight.value}px`:l.tabWidth.value>0&&(r.width=`${l.tabWidth.value}px`),r}),a=t.computed(()=>e.loaded!=null?pe(e.loaded):l.isLoaded(e.paneKey));return{styles:n,isLoaded:a}}}),cp={class:"fox-tabs-pane__empty"},up=t.createElementVNode("view",{class:"fox-tabs-pane__empty-text"},"loading",-1);function dp(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:"fox-tabs-pane",style:t.normalizeStyle(e.styles)},[e.isLoaded?t.renderSlot(e.$slots,"default",{key:0}):t.renderSlot(e.$slots,"empty",{key:1},()=>[t.createElementVNode("view",cp,[t.createVNode(s,{class:"fox-tabs-pane__empty-icon"}),up])])],4)}const cl=J(ip,[["render",dp]]),fp={direction:{type:[String],default:"horizontal"},mode:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function mp(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function sr(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function ir(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function pp(e,o){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?o[e.visibleKey]:o.visible??null}function Jo(e,o){return typeof e.statusKey=="string"&&e.statusKey.length>0?o[e.statusKey]:o.statusKey??null}function _o(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let hp=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[n]);const a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await Reflect.apply(a,null,[l,n]))}};function gp(){const e=t.getCurrentInstance();return new hp(e.proxy)}function yp(e,o,l,n){return{props:{...fp},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:s}){const i=e,c=gp(),d=t.ref([]),f=t.computed(()=>d.value.filter(P=>pp(a,P)!==!1)),m=t.ref(-1),h=()=>{const P=a.modelValue,z=f.value.findIndex(j=>sr(a,j)===P);m.value!==z&&(m.value=z,a.scroll&&Y(z,!1))};t.watch([()=>a.modelValue,f],()=>{h()});const y=P=>m.value===P,g=P=>{if(P<0&&P>=f.value.length)return!1;const z=f.value[P],q=(_o(a,z,P)??{}).status??Jo(a,z);return y(P)||q},v=t.computed(()=>{const P={[i]:!0};return a.mode?P[`is-${a.mode}`]=!0:a.direction&&(P[`is-${a.direction}`]=!0),a.scroll&&(P["is-scroll"]=!0),P}),b=t.computed(()=>({})),u=(P,z,j,q)=>{const F={[`${i}__step`]:!0};return q&&(F[`${q}`]=!0),P===m.value?F["is-active"]=!0:z==="done"?F["is-done"]=!0:z==="error"?F["is-error"]=!0:z==="half"?F["is-half"]=!0:j?F["is-disabled"]=!0:F["is-normal"]=!0,F},p=(P,z={})=>{const j={...z};return P===f.value.length-1?j.flex="0 0 auto":a.step?a.direction==="vertical"?j.height=a.step:j.width=a.step:j.flex="1 1 100%",j},k=(P,z)=>{let j={};if(z<f.value.length-1){const q=z+1;g(z)&&g(q)?a.direction==="vertical"?j.height="100%":j.width="100%":j.opacity="0"}return j},S=P=>f.value.length-1===P,w=(P,z)=>{debugger;if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&z>m.value||m.value===z)return;const j=m.value,q=z;m.value=z,a.scroll&&Y(z,!1);const F=sr(a,P);s("update:modelValue",F);const I={fromIndex:j,currentIndex:q,item:P,items:f.value,clickNavigatePolicy:a.clickNavigatePolicy};s("change",F,I)},N=t.ref(!0),T=async(P,z)=>{try{const j=await c.load("stesbar",P,z);Array.isArray(j)&&(d.value=j),N.value=!1}catch(j){console.error("[FoxUI] Load StepsBar Data Fail",j),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([P,z])=>{P&&T(P,z)},{immediate:!0});const B=(P,z,j,q)=>{let F=null;if(r.icon)F=r.icon({item:P,index:z,status:j});else if(j==="done"){const K={};a.iconSize&&(K.width=a.iconSize,K.height=a.iconSize);const W=a.icon??l;F=t.h(W,K)}else F=t.h("span",{},[`${z+1}`]);const I={class:"fox-steps-bar__icon",onClick:()=>{q||w(P,z)}};return t.h("view",I,[F])},D=(P,z,j)=>{const q=t.h("i",{class:"fox-steps-bar__line-inner",style:k(P,z)});return t.h("view",{class:"fox-steps-bar__line"},[q])},C=()=>{let P=null;if(r.markIcon)P=r.markIcon();else{const j={};a.iconSize&&(j.width=a.markIconSize,j.height=a.markIconSize);const q=a.markIcon??n;P=t.h(q,j)}return t.h("view",{class:"fox-steps-bar__mark"},[P])},V=(P,z,j,q)=>{const F=[];if(!S(z)){const W=D(P,z);F.push(W)}const I=B(P,z,j,q);F.push(I);const K={class:"fox-steps-bar__head"};return t.h("view",K,F)},M=(P,z,j,q)=>{let F=null;r.main?F=r.main({item:P,index:z,status:j}):F=mp(a,P);const I={class:"fox-steps-bar__main",onClick:()=>{q||w(P,z)}};return t.h("view",I,[F])},L=(P,z,j)=>{let q=null;if(r.sub){q=r.sub({item:P,index:z,status:j});const F={class:"fox-steps-bar__sub"};return t.h("view",F,[q])}return null},$=(P,z)=>{const j=_o(a,P,z)??{},q=j.status??Jo(a,P);let F=ir(a,P);j.disabled===!0&&(F=!0),a.disabled===!0&&(F=!0);const I=[],K=B(P,z,q,F);K&&I.push(K);const W=M(P,z,q,F);W&&I.push(W);const Z=D(P,z);Z&&I.push(Z);const O=t.h("view",{class:"fox-steps-bar__head"},I),G=j.class,Q=j.style??{},ee={ref:R(z),class:u(z,q,F,G),style:p(z,Q)};return t.h("view",ee,[O])},E=(P,z)=>{const j=_o(a,P,z)??{},q=j.status??Jo(a,P);let F=ir(a,P);j.disabled===!0&&(F=!0),a.disabled===!0&&(F=!0);const I=[],K=a.layout;for(let G of K)if(G==="head"){const Q=V(P,z,q,F);I.push(Q)}else if(G==="main"){const Q=M(P,z,q,F);I.push(Q)}else if(G==="sub"){const Q=L(P,z,q);I.push(Q)}else if(G==="mark"){const Q=C();I.push(Q)}const W=j.class,Z=j.style??{},O={ref:R(z),class:u(z,q,F,W),style:p(z,Z)};return t.h("view",O,I)},x=t.ref(),A=t.ref([]),H=(P,z)=>{A.value[z]=P},R=P=>z=>{H(z,P)},Y=(P,z)=>{const j=x.value,q=A.value;if(!j||!q||!q[P])return;const F=q[P];let I=0;a.direction==="vertical"?I=F.offsetTop-(j.offsetHeight-F.offsetHeight)/2:I=F.offsetLeft-(j.offsetWidth-F.offsetWidth)/2,U(j,I,z?0:.3,a.direction)},U=(P,z,j,q)=>{let F=0;const I=q==="horizontal"?P.scrollLeft:P.scrollTop,K=j===0?1:Math.round(j*1e3/16);function W(){q==="horizontal"?P.scrollLeft+=(z-I)/K:P.scrollTop+=(z-I)/K,++F<K&&Le(W)}W()};return()=>{const P=[];if(a.mode==="simple")for(let j=0;j<f.value.length;j++){const q=f.value[j],F=$(q,j);P.push(F)}else for(let j=0;j<f.value.length;j++){const q=f.value[j],F=E(q,j);P.push(F)}const z={ref:x,class:v.value,style:b.value};return t.h("view",z,P)}}}}const{componentName:vp,create:kp,scope:bp}=X("steps-bar"),ul=kp(yp(vp,bp,te.Checklist,te.ArrowRight)),cr=10;function Sp(e,o){return e>o&&e>cr?"horizontal":o>e&&o>cr?"vertical":""}function Cp(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},o=()=>e.direction==="vertical",l=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Sp(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:n,isVertical:o,isHorizontal:l,state:e}}function wp(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Np(e){e.stopPropagation()}function Bp(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&Np(e)}class Vp{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(o,l){this.startMove=o,this.updateMove=l,this.isTouch=wp()}open(o){Array.isArray(o)||(o=[o]),this.els=o;const l=Cp(),n=(a,r,s,i)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(l.start(a),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(l.move(a),Bp(a,!0),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(o=>{this.touchstart&&o.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Ap(e,o){return new Vp(e,o)}const Tp={top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},draggable:{type:[Boolean]}},$p=(e,o,l,n=!1)=>({props:{...Tp},emits:["click"],setup(a,{slots:r,emit:s}){const i=t.reactive({top:a.top,right:a.right,bottom:a.bottom,left:a.left}),c=t.computed(()=>({[`${e}`]:!0})),d=t.computed(()=>{const p={};return ie(i.top)||(p.top=i.top),ie(i.right)||(p.right=i.right),ie(i.bottom)||(p.bottom=i.bottom),ie(i.left)||(p.left=i.left),ie(a.width)||(p.width=a.width),ie(a.height)||(p.height=a.height),ie(a.color)||(p.color=a.color),ie(a.background)||(p.background=a.background),p}),f=t.computed(()=>({[`${e}__icon`]:!0})),m=()=>{s("click")},h=t.ref(null),y=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},g={x:0,y:0},u=Ap(p=>{if(!h.value)return;const k=h.value;y(),i.left=k.offsetLeft,i.top=k.offsetTop,k.style.left=`${i.left}px`,k.style.top=`${i.top}px`,k.style.right=null,k.style.bottom=null,g.x=i.left,g.y=i.top},p=>{if(!h.value)return;const k=h.value;y(),i.left=g.x+p.x,i.top=g.y+p.y,k.style.left=`${i.left}px`,k.style.top=`${i.top}px`});return t.onMounted(()=>{if(a.draggable&&h.value){const p=[h.value];u.open(p)}}),t.onBeforeUnmount(()=>{a.draggable&&h.value&&u.close()}),()=>{let p=[];const k=typeof r.default=="function"?r.default():[];if(k&&k.length>0)p=k;else{const w=t.h(l,{class:f.value});p.push(w)}const S={ref:w=>{h.value=w},class:c.value,style:d.value,onClick:m};return t.h("view",S,p)}}}),{componentName:Ep,create:Dp,scope:xp}=X("floating-button"),dl=Dp($p(Ep,xp,te.Uploader,!1)),Ip={width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},qp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Mp(e,o,l){return{props:{...Ip},setup(n,{attrs:a,slots:r}){const{toLocaleRefs:s}=ae.useFoxI18n(o),i=s(n,["confirmText","cancelText"]),c=e,d=t.ref(!0),f=S=>{d.value=S},m=S=>{if(typeof n.unmount=="function")try{n.unmount()}catch(w){console.error(w)}if(typeof n.callback=="function")try{n.callback(S)}catch(w){console.error(w)}},h=()=>{m("confirm")},y=()=>{m("cancel")},g=()=>{m("close")},v=(S,w)=>qp(S)?(w.src=S,t.h("img",w)):typeof S=="string"?(Array.isArray(w.class)?w.class.push(S):w.class&&typeof w.class=="object"?w[`${S}`]=!0:typeof w.class=="string"?w.class=`${w.class}, ${S}`:w.class=S,t.h(n.tag,w)):t.h(S,w),b=()=>{const S=[];if(n.icon){const N={class:[`${c}__header-icon`]},T=v(n.icon,N);S.push(T)}if(n.title){const N=t.h("view",{class:`${c}__header-title`},[n.title]);S.push(N)}if(n.showClose&&n.closeIcon){const N={class:[`${c}__header-close-icon`],onClick:g},T=v(n.closeIcon,N);S.push(T)}const w={class:[`${c}__header`]};return t.h("view",w,S)},u=(S,w)=>{const N=[];if(w){const B={class:`${c}__group-title`},D=t.h("view",B,[w]);N.push(D)}if(S){const B=[];Array.isArray(S)||(S=[S]);for(let D of S){const C={class:`${c}__group-row`,innerHTML:D},V=t.h("view",C);B.push(V)}if(B.length>0){const D={class:`${c}__group-rows`},C=t.h("view",D,B);N.push(C)}}if(N.length===0)return null;const T={class:`${c}__group`};return t.h("view",T,N)},p=()=>{const S=[];if(typeof n.message=="string")S.push(n.message);else if(Array.isArray(n.message))for(let N of n.message)if(typeof N=="string"){const T=u(N);S.push(T)}else{const T=u(N.content,N.title);S.push(T)}else if(typeof n.message=="function"){const N=n.message();S.push(N)}else{const N=n.message;S.push(N)}const w={class:`${c}__body`};return t.h("view",w,S)},k=()=>{const S=[];if(n.showCancelButton){const N={class:[`${c}__footer-button`],style:{},onClick:y};n.cancelButtonClass&&N.class.push(n.cancelButtonClass),n.cancleButtonStyle&&typeof n.cancleButtonStyle=="object"&&Object.assign(N.style,n.cancleButtonStyle);const T=t.h("button",N,[n.cancelButtonText??i.cancelText.value]);S.push(T)}if(n.showConfirmButton){const N={class:[`${c}__footer-button`],style:{},onClick:h};n.confirmButtonClass&&N.class.push(n.confirmButtonClass),n.confirmButtonStyle&&typeof n.confirmButtonStyle=="object"&&Object.assign(N.style,n.confirmButtonStyle);const T=t.h("button",N,[n.confirmButtonText??i.confirmText.value]);S.push(T)}if(S.length===0)return null;const w={class:`${c}__footer`};return t.h("view",w,S)};return()=>{const S=[],w=b();w&&S.push(w);const N=p();N&&S.push(N);const T=k();T&&S.push(T);const B={class:{[`${c}`]:!0,[`${c}--${n.type||"info"}`]:!0}},D=t.h("view",B,S),C=[`${c}__popup`];n.popClass&&C.push(n.popClass);const V={};n.width&&(V.width=typeof n.width=="number"?`${n.width}px`:n.width),n.height&&(V.height=typeof n.height=="number"?`${n.height}px`:n.height);const M={popClass:C.join(" "),style:V,visible:d.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":f,position:n.position,round:"round",onClickOverlay:g,closeOnClickOverlay:n.closeOnClickOverlay};return t.h(l,M,{default:()=>D})}}}}const{componentName:zp,create:Lp,scope:Pp}=X("messagebox"),Rp=Lp(Mp(zp,Pp,ce)),Fp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M82.5121%201.93968L81.7498%206.07825C81.6498%206.6214%2081.1284%206.98064%2080.5853%206.8806C80.4326%206.85251%2080.2886%206.78925%2080.1646%206.69578L77.1586%204.43061C76.7175%204.09823%2076.6294%203.47123%2076.9618%203.03016C77.0552%202.90617%2077.1762%202.80562%2077.3153%202.73655L81.0834%200.863097C81.5779%200.617235%2082.1782%200.818843%2082.4241%201.31339C82.5204%201.50712%2082.5512%201.72688%2082.5121%201.93968Z'%20fill='%23FFD1C9'%20%3e%3c/path%3e%3cpath%20d='M3.08218%20102.2L6.53454%2094.2358C6.75419%2093.7291%207.34251%2093.4968%207.84925%2093.7164C7.99216%2093.7778%208.11815%2093.872%208.21791%2093.9909L13.2085%2099.9384C13.5635%20100.361%2013.5081%20100.992%2013.0852%20101.347C12.9665%20101.447%2012.8261%20101.518%2012.675%20101.554L4.23203%20103.571C3.69484%20103.699%203.15538%20103.367%203.02699%20102.83C2.97674%20102.62%202.99607%20102.399%203.08218%20102.2Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23FF5959'%20%3e%3c/circle%3e%3cpath%20d='M59.935%2049.6213C61.3827%2051.069%2061.3827%2053.4162%2059.935%2054.864L45.935%2068.864C44.4873%2070.3117%2042.1401%2070.3117%2040.6924%2068.864C39.2447%2067.4162%2039.2447%2065.069%2040.6924%2063.6213L54.6924%2049.6213C56.1401%2048.1736%2058.4873%2048.1736%2059.935%2049.6213Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3cpath%20d='M40.6924%2049.6213C39.2447%2051.069%2039.2447%2053.4162%2040.6924%2054.864L54.6924%2068.864C56.1401%2070.3117%2058.4873%2070.3117%2059.935%2068.864C61.3827%2067.4162%2061.3827%2065.069%2059.935%2063.6213L45.935%2049.6213C44.4873%2048.1736%2042.1401%2048.1736%2040.6924%2049.6213Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%23FFD1C9'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L102%20110L102%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Op="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cpath%20d='M8%2087L8%2095C8%2095.5523%207.55228%2096%207%2096C6.44772%2096%206%2095.5523%206%2095L6%2087L2%2087C1.44772%2087%201%2086.5523%201%2086C1%2085.4477%201.44772%2085%202%2085L6%2085L6%2082C6%2081.4477%206.44772%2081%207%2081C7.55228%2081%208%2081.4477%208%2082L8%2085L12%2085C12.5523%2085%2013%2085.4477%2013%2086C13%2086.5523%2012.5523%2087%2012%2087L8%2087Z'%20fill-rule='evenodd'%20fill='%2396CEFF'%20%3e%3c/path%3e%3cpath%20d='M89%205L89%2010C89%2010.5523%2088.5523%2011%2088%2011C87.4477%2011%2087%2010.5523%2087%2010L87%205L85%205C84.4477%205%2084%204.55228%2084%204C84%203.44772%2084.4477%203%2085%203L87%203L87%201C87%200.447715%2087.4477%200%2088%200C88.5523%200%2089%200.447715%2089%201L89%203L91%203C91.5523%203%2092%203.44772%2092%204C92%204.55228%2091.5523%205%2091%205L89%205Z'%20fill-rule='evenodd'%20fill='%23BDE2FF'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23237FFA'%20%3e%3c/circle%3e%3crect%20x='47.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%2396CEFF'%20%3e%3c/rect%3e%3crect%20x='47.5'%20y='66'%20width='7'%20height='7'%20rx='4'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3c/svg%3e",Kp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='105'%20viewBox='0%200%20102%20105'%20fill='none'%3e%3cpath%20d='M7%2076C7.55228%2076%208%2076.4477%208%2077L7.999%2079.999L12%2080C12.5523%2080%2013%2080.4477%2013%2081C13%2081.5523%2012.5523%2082%2012%2082L7.999%2081.999L8%2090C8%2090.5523%207.55228%2091%207%2091C6.44772%2091%206%2090.5523%206%2090L5.999%2081.999L2%2082C1.44772%2082%201%2081.5523%201%2081C1%2080.4477%201.44772%2080%202%2080L5.999%2079.999L6%2077C6%2076.4477%206.44772%2076%207%2076Z'%20fill='%2338D677'%20%3e%3c/path%3e%3cpath%20d='M75%201.72421e-32C75.5523%20-1.01453e-16%2076%200.447715%2076%201L76%202.999L78%203C78.5523%203%2079%203.44772%2079%204C79%204.55228%2078.5523%205%2078%205L76%204.999L76%2010C76%2010.5523%2075.5523%2011%2075%2011C74.4477%2011%2074%2010.5523%2074%2010L74%204.999L72%205C71.4477%205%2071%204.55228%2071%204C71%203.44772%2071.4477%203%2072%203L74%202.999L74%201C74%200.447715%2074.4477%201.01453e-16%2075%201.72421e-32Z'%20fill='%238BF0AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='54'%20r='28'%20fill='%2338D677'%20%3e%3c/circle%3e%3cpath%20d='M36.8787%2051.8786C38.3265%2050.4309%2040.6736%2050.4309%2042.1213%2051.8786L50.1214%2059.8786C51.5691%2061.3263%2051.5691%2063.6735%2050.1214%2065.1212C48.6737%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212L36.8787%2057.1212C35.431%2055.6735%2035.431%2053.3263%2036.8787%2051.8786Z'%20fill='%23B3F2C6'%20%3e%3c/path%3e%3cpath%20d='M64.1214%2045.8786C65.5691%2047.3263%2065.5691%2049.6735%2064.1214%2051.1212L50.1213%2065.1212C48.6736%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212C43.431%2063.6735%2043.431%2061.3263%2044.8787%2059.8786L58.8788%2045.8786C60.3265%2044.4309%2062.6737%2044.4309%2064.1214%2045.8786Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='14.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='101.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='25'%20r='7'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3c/svg%3e",Up="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='101'%20height='110'%20viewBox='0%200%20101%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M81.512%201.93968L80.7498%206.07825C80.6498%206.6214%2080.1284%206.98064%2079.5852%206.8806C79.4326%206.85251%2079.2886%206.78925%2079.1645%206.69578L76.1585%204.43061C75.7175%204.09823%2075.6293%203.47123%2075.9617%203.03016C76.0552%202.90617%2076.1761%202.80562%2076.3152%202.73655L80.0833%200.863097C80.5779%200.617235%2081.1781%200.818843%2081.424%201.31339C81.5203%201.50712%2081.5512%201.72688%2081.512%201.93968Z'%20fill='%23FEFAE0'%20%3e%3c/path%3e%3cpath%20d='M2.08224%20102.2L5.5346%2094.2358C5.75425%2093.7291%206.34257%2093.4968%206.84931%2093.7164C6.99222%2093.7778%207.11822%2093.872%207.21798%2093.9909L12.2086%2099.9384C12.5636%20100.361%2012.5082%20100.992%2012.0853%20101.347C11.9666%20101.447%2011.8261%20101.518%2011.675%20101.554L3.23209%20103.571C2.6949%20103.699%202.15544%20103.367%202.02705%20102.83C1.97681%20102.62%201.99613%20102.399%202.08224%20102.2Z'%20fill='%23FEE789'%20%3e%3c/path%3e%3ccircle%20cx='50'%20cy='59'%20r='28'%20fill='%23FAB007'%20%3e%3c/circle%3e%3crect%20x='46.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%23FEE789'%20%3e%3c/rect%3e%3crect%20x='46.5'%20y='66'%20width='7'%20height='7'%20rx='3.5'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='84.5'%20cy='106.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='94'%20cy='30'%20r='7'%20fill='%23FEE789'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L101%20110L101%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Hp=new Un,jp={showCancelButton:!0,cancelButtonText:"取消",showConfirmButton:!0,confirmButtonText:"确认"},Wp=e=>{let o=document.body,l=e.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):l&&(o=e.teleport));const n=document.createElement("view"),a=`messagebox-${Hp.get()}`;n.id=a,e.unmount=()=>{const s=document.querySelector(`#${a}`);s&&s.parentNode?.removeChild(s)};const r=t.createVNode(Rp,e);o.appendChild(n),t.render(r,n)},tt={show:(e,o,l,n)=>{const a={...jp};o&&!Array.isArray(o)&&typeof o=="object"?Object.assign(a,o):(o&&(a.message=o),l&&typeof l=="object"?Object.assign(a,l):(typeof l=="string"&&(a.title=l),n&&typeof n=="object"?Object.assign(a,n):typeof n=="string"&&(a.type=n)));const r=a.type??"info";return a.icon||(r==="success"?a.icon=Kp:r==="warning"?a.icon=Up:r==="error"?a.icon=Fp:a.icon=Op),e==="alert"?(a.showCancelButton=!1,a.showConfirmButton=!0):e==="confirm"&&(a.showCancelButton=!0,a.showConfirmButton=!0),a.showClose&&!a.closeIcon&&(a.closeIcon=te.Close),new Promise((s,i)=>{const c=a.callback;a.callback=d=>{if(typeof c=="function")try{c(d)}catch(f){console.error(f)}s({action:d})},Wp(a)})},alert:(e,o,l)=>tt.show("alert",e,o,l),confirm:(e,o,l)=>tt.show("confirm",e,o,l),install(e){e.config.globalProperties.$alert=tt.alert,e.config.globalProperties.$confirm=tt.confirm}};function Yp(e,o){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const n=l.getBoundingClientRect().width;if(n>0){o(n);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const a=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),o(a)},500)}const Xp={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function Qp(e,o,l=!1){return{props:{...Xp},emits:["click"],setup(n,a){const r=t.ref(!0),s=t.ref(null),i=t.computed(()=>{const y={[`${e}`]:!0,"is-truncated":n.truncated};return n.type&&(y[`${e}--${n.type??"default"}`]=!0),n.size&&(y[`${e}--${n.size}`]=!0),y}),c=t.computed(()=>{const y={},g=n.textColor??n.color;return g&&(y.color=g),y}),d=y=>{if(y&&pe(n.showOverflowTooltip)){const g=y.clientWidth;Yp(y,v=>{r.value=v<=g})}};let f=null;t.onMounted(()=>{if(!pe(n.showOverflowTooltip))return;const y=s.value;d(y),y&&window.ResizeObserver&&(f=new window.ResizeObserver(()=>{d(y)}),f.observe(y))}),t.onUnmounted(()=>{f?.disconnect()});const m=(y,g)=>{let v=null;if(typeof n.highlightFilter=="string"&&n.highlightFilter.length>0){const b=n.highlightFilter;if(y.indexOf(b)!==-1){const p=y.replace(new RegExp(b,"g"),`<span>${b}</span>`);g.innerHTML=p,g.class["is-highlight"]=!0,v=t.h(n.tag,g)}}else if(typeof n.highlightFilter=="function"){const b=n.highlightFilter(y);b&&(g.innerHTML=b,g.class["is-highlight"]=!0,v=t.h(n.tag,g))}return v},h=y=>{a.emit("click",y)};return()=>{const y={onClick:h,class:i.value,style:c.value,ref:s};let g=null;if(pe(n.numberFormat)&&typeof a.slots.default=="function"){const p=a.slots.default();if(Array.isArray(p)&&p.length===1){const k=p[0].type.toString();if(k==="Symbol(Text)"||k==="Symbol(v-txt)"){const S=me(n.digits),w=me(n.decimalLength),N=pe(n.autoPadding);let T=`${p[0].children}`,B=T.split("").reverse().join("");B=mo(B,w,N,S,n.separator),T=B.split("").reverse().join(""),n.highlightFilter!==void 0&&(g=m(T,y)),g||(y.innerHTML=T,g=t.h(n.tag,y))}}}else{if(n.highlightFilter!==void 0&&typeof a.slots.default=="function"){const p=a.slots.default();if(Array.isArray(p)&&p.length===1){const k=p[0].type.toString();if(k==="Symbol(Text)"||k==="Symbol(v-txt)"){const S=`${p[0].children}`;g=m(S,y),g||(y.innerHTML=S,g=t.h(n.tag,y))}}}g||(g=t.h(n.tag,y,{default:a.slots.default}))}if(!n.mark&&!n.icon&&!a.slots.mark)return g;let b=null;if(n.icon){const p={[`${e}__mark-wrap`]:!0};n.type&&(p[`${e}__mark-wrap--${n.type}`]=!0);const k={},S=n.color;S&&(k.color=S);const w={class:p,style:k};b=t.h("view",w,t.h(n.icon))}else if(a.slots.mark){const p={[`${e}__mark-wrap`]:!0};n.type&&(p[`${e}__mark-wrap--${n.type}`]=!0);const k={},S=n.color;S&&(k.color=S);const w={class:p,style:k};b=t.h("view",w,{default:a.slots.mark})}else{const p={[`${e}__mark`]:!0};n.type&&(p[`${e}__mark--${n.type??"default"}`]=!0);const k={},S=n.color;S&&(k["background-color"]=S);const w={class:p,style:k};b=t.h("view",w)}const u={class:{"fox-text__wrap":!0,"text-left":n.textPosition==="left","text-right":n.textPosition==="right"}};return t.h("view",u,[b,g])}}}}const{componentName:Gp,create:Zp,scope:Jp}=X("text"),fl=Zp(Qp(Gp,Jp,!1));function _p(e,o,l,n,a){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=o[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[a]){let c=o;for(let d=0;c&&d<r.length;d++){let f=r[d],m=c.find(h=>h[n]===f);if(!m)break;s.push(m[l])}return s}if(Array.isArray(i))for(let c=0;c<o.length&&c<r.length;c++){let d=o[c],f=r[c];const m=d.find(h=>h[n]===f);if(!m)break;s.push(m[l])}else{let c=o;for(let d=0;c&&d<r.length;d++){let f=r[d],m=c.find(h=>h[n]===f);if(!m)break;s.push(m[l]),c=m[a]}}return s}class eh{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=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}}function th(){const e=t.getCurrentInstance();return new eh(e.proxy)}const oh={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function nh(e,o,l=!1){return{props:{...oh},setup(n,{attrs:a,slots:r}){const s=th(),i=t.ref([]);t.watch([()=>n.source,()=>n.params],async([f,m])=>{i.value=await s.load(n.sourceType,f,m)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let f=_p(n.modelValue,i.value,n.textKey,n.valueKey,n.childrenKey);return f.length==0?n.emptyText??"":f.length===1?n.optionType=="item"?`${n.modelValue}${n.separator}${f[0]}`:f[0]:f.join(n.separator)}),d=n.resolveTag?t.resolveComponent(n.tag):n.tag;return()=>{const f={...a};return r.default?r.default({text:c.value,value:n.modelValue}):n.resolveTag?n.emptyText!==void 0&&n.emptyText===c.value?t.h(n.emptyTag??"span",{...a,class:n.emptyClass},c.value):t.h(d,f,{default:()=>c.value}):t.h(d,f,c.value)}}}}const{componentName:lh,create:ah,scope:rh}=X("mapping"),ml=ah(nh(lh,rh,!1));function sh(e,o){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return Pr(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:LB,create:ih,scope:PB}=X("domain-provider"),pl=ih(sh()),ch={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function uh(e,o){return{inheritAttrs:!1,props:ch,setup(l,{slots:n}){if(st&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const s=(h,y)=>{if(f===null){r.set(h,{visible:null,callback:y});return}a.has(h)&&f.unobserve(h),a.set(h,{visible:null,callback:y}),f.observe(h)},i=h=>{if(f===null){r.delete(h);return}a.has(h)&&(a.delete(h),f.unobserve(h))};let c=l.initialVisibleObserverSize;Ai({acquire:()=>{const h=c>0;return c--,h},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:s,unobserve:i});let f=null;const m=(h,y,g)=>{f=new IntersectionObserver(v=>{for(let b of v){let u=!1;b.intersectionRatio>0&&(u=!0);const p=a.get(b.target);if(p)try{if(l.loadPolicy==="lazy"&&!u&&p.visible!==null)return;p.visible=u,p.callback(u)}catch(k){console.error(k)}}},{root:h,rootMargin:y,threshold:g}),r.forEach((v,b)=>{a.set(b,v),f?.observe(b)}),r.clear()};t.watch([()=>l.root,()=>l.disabled],([h,y])=>{if(y||!h||f)return;let g=null;typeof h=="string"?g=document.querySelector(h):g=h,g&&m(g,l.rootMargin,l.threshold)},{immediate:!0}),t.onUnmounted(()=>{f&&(f.disconnect(),f=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:RB,create:dh,scope:FB}=X("rolling-provider"),hl=dh(uh()),{componentName:fh,create:mh}=X("cell"),ph=mh({components:{Right:te.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:o}){const l=t.computed(()=>{const r=fh;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),n=t.computed(()=>({borderRadius:fe(e.roundRadius)}));return{handleClick:r=>{o("click",r)},classes:l,baseStyle:n}}}),hh={key:0,class:"fox-cell__icon"},gh={key:1,class:"fox-cell__title"},yh={class:"title"},vh={class:"fox-cell__title-desc"};function kh(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",hh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",gh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",yh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",vh,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 gl=J(ph,[["render",kh]]),{componentName:bh,create:Sh}=X("cell-group"),Ch=Sh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[bh]:!0}))}}}),wh={key:1,class:"fox-cell-group__title"},Nh={key:3,class:"fox-cell-group__desc"},Bh={class:"fox-cell-group__wrap"};function Vh(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",wh,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",Nh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Bh,[t.renderSlot(e.$slots,"default")])],2)}const yl=J(Ch,[["render",Vh]]),{componentName:Ah,create:Th}=X("image"),$h=Th({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:te.Image,ImageError:te.ImageError},emits:["click","load","error"],setup(e,{emit:o}){const l=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),n=t.computed(()=>{const y=Ah;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(g=>{g.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=fe(e.width)),e.height&&(y.height=fe(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=fe(e.radius)),y}),d=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,y=>{l.isError=!1,l.loading=!0});const f=()=>{l.loading=!1,o("load")},m=()=>{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:m,load:f,show:r,imgRef:s}}}),Eh=["src","date-src","alt"],Dh={key:0,class:"fox-img-loading"},xh={key:1,class:"fox-img-error"};function Ih(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,Eh),e.loading?(t.openBlock(),t.createElementBlock("div",Dh,[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",xh,[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 vl=J($h,[["render",Ih]]),{create:qh}=X("layout"),kl=qh({}),{componentName:Mh,create:zh}=X("col"),Lh=zh({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const o=Mh,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 Ph(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 bl=J(Lh,[["render",Ph]]),{componentName:Rh,create:Fh}=X("row"),Oh=Fh({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=Rh;t.provide("gutter",e.gutter);const l=(a,r)=>a?r?`fox-row-${a}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
5
+ */function lo(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]=Dn(Se(e),Se(o)),l==1&&(n==1?e=jo(e):o=jo(o));let a=br(e,o);return l?l==2?"-"+Se(a):e.length<a.length?Se(a.substring(1)):"-"+Se(jo(a)):Se(a)}function jo(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 br(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 Dn(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 br(e,o){[e,o]=Dn(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 ye=(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))(ye||{});function qt(e,o=0,l=ye.HALF_EVEN){if(l===ye.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=qt(e,0,l),(n?"-":"")+c+new Array(o+1).join("0")}}if(o==0)return r.length,$a(a[1],r,n,l)?(n?"-":"")+Wo(r):(n?"-":"")+r;if(a[1]){if(a[1].length<o)return(n?"-":"")+r+"."+a[1]+new Array(o-a[1].length+1).join("0")}else return(n?"-":"")+r+"."+new Array(o+1).join("0");s=a[1].substring(0,o);let i=a[1].substring(o);return i&&$a(i,s,n,l)&&(s=Wo(s),s.length>o)?(n?"-":"")+Wo(r,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+r+"."+s}function $a(e,o,l,n){if(!e||e===new Array(e.length+1).join("0")||n===ye.DOWN||!l&&n===ye.FLOOR||l&&n===ye.CEILING)return!1;if(n===ye.UP||l&&n===ye.FLOOR||!l&&n===ye.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 ye.HALF_DOWN:return!1;case ye.HALF_UP:return!0;case ye.HALF_EVEN:default:return parseInt(o[o.length-1])%2==1}}function Wo(e,o=0){o||(o=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let a=l;a>=0;a--){let r=parseInt(e[a])+o;r==10?(o=1,r=0):o=0,n+=r}return o&&(n+=o),n.split("").reverse().join("")}function nn(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=wt(e),o=wt(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=wt(e.replace(".","")),o=wt(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=wt(xs(m,r)),l==1&&(m="-"+m),m}function xs(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 wt(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 ln(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=lo(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(qt(i,l-2))}function an(e,o){return e=e.toString(),o=o.toString(),o=rn(o),lo(e,o)}function rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ta(e,o){if(o==0)throw new Error("Cannot divide by 0");e=e.toString(),o=o.toString(),Ea(e),Ea(o);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),o[0]=="-"&&(o=o.substr(1));let n=an(e,nn(o,qt(ln(e,o),0,ye.FLOOR)));return l+n}function Ea(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Da(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]=Dn(e,o),e.localeCompare(o)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=o[n])return e[n]>o[n]?l?-1:1:l?1:-1;return 0}class re{value;static RoundingModes=ye;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=re.validate(o)}getValue(){return this.value}static getPrettyValue(o,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");o=re.validate(o);let a=o.charAt(0)=="-";a&&(o=o.substring(1));var r=o.indexOf(".");r=r>0?r:o.length;for(var s="",i=r;i>0;)i<l?(l=i,i=0):i-=l,s=o.substring(i,i+l)+(i<r-l&&i>=0?n:"")+s;return(a?"-":"")+s+o.substring(r)}getPrettyValue(o,l){return re.getPrettyValue(this.value,o,l)}static round(o,l=0,n=ye.HALF_EVEN){if(o=re.validate(o),isNaN(l))throw Error("Precision is not a number: "+l);return qt(o,l,n)}round(o=0,l=ye.HALF_EVEN){if(isNaN(o))throw Error("Precision is not a number: "+o);return new re(qt(this.value,o,l))}static floor(o){return o=re.validate(o),o.indexOf(".")===-1?o:re.round(o,0,ye.FLOOR)}floor(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,ye.FLOOR)}static ceil(o){return o=re.validate(o),o.indexOf(".")===-1?o:re.round(o,0,ye.CEILING)}ceil(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,ye.CEILING)}static add(o,l){return o=re.validate(o),l=re.validate(l),lo(o,l)}add(o){return new re(lo(this.value,o.getValue()))}static subtract(o,l){return o=re.validate(o),l=re.validate(l),an(o,l)}subtract(o){return new re(an(this.value,o.getValue()))}static multiply(o,l){return o=re.validate(o),l=re.validate(l),nn(o,l)}multiply(o){return new re(nn(this.value,o.getValue()))}static divide(o,l,n){return o=re.validate(o),l=re.validate(l),ln(o,l,n)}divide(o,l){return new re(ln(this.value,o.getValue(),l))}static modulus(o,l){return o=re.validate(o),l=re.validate(l),Ta(o,l)}modulus(o){return new re(Ta(this.value,o.getValue()))}static compareTo(o,l){return o=re.validate(o),l=re.validate(l),Da(o,l)}compareTo(o){return Da(this.value,o.getValue())}static negate(o){return o=re.validate(o),rn(o)}negate(){return new re(rn(this.value))}}function Sr(e,o){return re.multiply(`${e}`,`${o}`)}function xn(e,o,l=8){return re.divide(`${e}`,`${o}`,l)}function sn(e,o){return e=`${e}`,o=`${o}`,re.compareTo(e,o)}function Cr(e){return re.negate(e)}function po(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 wr(e){let o=`${e}`,l=o.charAt(0);l=="-"?o=o.substring(1):l="";let n=o.replace(/[^\d\.-]/g,"");return`${l}${n}`}const st=typeof window<"u",Le=We;function Nr(e){return e==null}const ho=Array.isArray,Is=e=>go(e)==="[object Map]",qs=e=>go(e)==="[object Set]",Oe=e=>e instanceof Date,ao=e=>typeof e=="function",Br=e=>typeof e=="string",Ms=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",Mt=e=>Be(e)&&ao(e.then)&&ao(e.catch),Vr=Object.prototype.toString,go=e=>Vr.call(e),cn=e=>go(e)==="[object Object]",Ar=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function zs(e){return e.__esModule||Ar&&e[Symbol.toStringTag]==="Module"}const Ps=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function nt(...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]=nt(a,d,c)}else c!==void 0&&(o[s]=c)}}return o}function un(e,o,l=!1){if(!l)nt(!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)&&!cn(s))continue;r=un(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)&&!cn(s))continue;r=un(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}}return e}const Yo=Ps?Promise.resolve():null;function Ls(e,...o){Yo!==null?o&&o.length>0?Yo.then(()=>{e(o)}):Yo.then(e):o&&o.length>0?setTimeout(()=>{e(o)}):setTimeout(e)}function me(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function fe(e){return typeof e=="number"?e:Number(e)}const Fs={"[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 lt(e){let l=Object.prototype.toString.call(e);return e==null?String(e):Fs[l]||"object"}function yo(e){if(!e)return!0;const{display:o}=window.getComputedStyle(e);return o==="none"}function $r(e){return e&&typeof e=="object"&&"setInterval"in e}function Tr(e){let o=!!e&&"length"in e&&e.length,l=lt(e);return l==="function"||$r(e)?!1:l==="array"||o===0||typeof o=="number"&&o>0&&o-1 in e}function Er(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 Rs(e,o=[]){let l=o;return e!=null&&(Tr(Object(e))?Er(l,typeof e=="string"?[e]:e):l.push(e)),l}function xe(e,o){if(e==o)return!0;if(e===void 0||o===void 0)return!1;let l=lt(e),n=lt(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(!xe(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(!xe(r,s))return!1}return!0}return!1}function Dr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ce=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function xr(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 Ir(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 qr(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 xa(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 dn(e,o=!0,l=!0){o?e=xa(e,".",/\./g):e=e.replace(/\./g,""),l?e=xa(e,"-",/-/g):e=e.replace(/-/,"");const n=o?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Os(e,o){return typeof e=="object"||Array.isArray(e)?o.findIndex(l=>{if(xe(e,l))return!0}):o.indexOf(e)}function Ks(e,o){if(typeof e=="object"||Array.isArray(e)){let l=o.reverse().findIndex(n=>{if(xe(e,n))return!0});return l!==-1&&(l=o.length-1-l),l}return o.lastIndexOf(e)}function ge(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function he(e,...o){const l={};return o.forEach(n=>{for(const a in n)l[a]=e[a]}),l}function In(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 Mr=(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 fn(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&e.stopPropagation()}const Je=(e,o=2)=>{for(e+="";e.length<o;)e="0"+e;return e.toString()},Fe=(e,o,l)=>Math.min(Math.max(e,o),l),qn=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,ke=Symbol.for("BroadcastKey");class Mn{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="*"):Dr(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 vo(e,o,l,n){const a=new Mn(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[ke])return n[ke];const a=t.inject(ke,null),r=new Mn(a,l,e);if(o&&typeof o=="object")for(const s in o)r.on(s,o[s]);return n[ke]=r,t.provide(ke,r),t.onUnmounted(()=>{r.destroy(),n[ke]=void 0}),r}function Et(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ke]??t.inject(ke,null):t.inject(ke,null)}const et=e=>e.default??e;class Hs{error(o,l){const n=l,a=Et(l);a?a.emit({name:"*",maxLevel:1},"setErrorTip",o):typeof n.setErrorTip=="function"&&n.setErrorTip(o)}reset(o){const l=o,n=Et(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(o){const l=o,n=Et(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=Et(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 zr=new Hs;function js(e){zr=e}function Ws(e,o){et(_e).setValidator(e,o)}function Ys(e){et(_e).deleteValidator(e)}let Pr=["blur","clear"];function Xs(e){Pr=e}function Lr(){return Pr}let Fr=["focus","change"];function Qs(e){Fr=e}function Rr(){return Fr}function Gs(e){et(_e).messages(e)}function Nt(...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 Gt(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 Or{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=Gt(Nt(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=Gt(n);const a=Nt(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=zr;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?et(_e).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?et(_e).deleteValidator(o):Reflect.deleteProperty(this.validators,o)}hasValidator(o,l=!1){if(l)return et(_e).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=Nt(this.attrRules,this.rules);o===null?this.rules=[]:Array.isArray(o)?this.rules=Gt(o):this.rules=Gt([o]);const n=Nt(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=Nt(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=et(_e),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 ko(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 Or(o,l,e)}const Ia=Symbol("EventEmitterKey");class Zs{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 ht(e,o){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},o)}}function ro(e,o){let l=0;return function(...n){const a=new Date().getTime();a-l<o||(l=a,Reflect.apply(e,null,[...n]))}}function Js(e,o){const l=ht((n,a)=>{e=n,a()},o);return t.customRef((n,a)=>({get(){return n(),e},set(r){l(r,a)}}))}function _s(e){let o=!1;return function(...l){o||(o=!0,Reflect.apply(e,null,[...l]))}}function zn(e,o,l,n=0,a=!0){let r=o,s=0;if(a){const c=e();if(s++,c||s>l)return}const i=()=>{const c=e();s++,!(c||s>l)&&(r+=n,setTimeout(i,r))};setTimeout(i,r)}const De=Symbol("DomainKey"),ut=Symbol("DataItemsKey");class bo{_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 ei=new bo;function mt(){return ei}function Ke(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[De]??t.inject(De,null):t.inject(De,null)}const Xo=Symbol("OriginalDateKey");function Pn(e,o,l=[],n){const a=t.getCurrentInstance(),r=a?.proxy;let s=t.inject(De,null);s===null&&(s=mt());const i=e||o.prop||o.name,c=new bo(i);c.parent=s;const d=k=>{r[Xo]||h(k),c.set("modelValue",k)},m=()=>c.getForSelf("modelValue")??null,f=()=>r[Xo]??null,h=k=>{const v={};nt(!0,v,t.toRaw(k)),r[Xo]=v};t.isReactive(o)||typeof o=="function"?t.watch(o,k=>{c.merge(k,l)},{immediate:!0}):c.merge(o,l),o.modelValue&&h(o.modelValue),r[De]=c,t.provide(De,c);let y=null,g=null;if(a!==null){const k=t.inject(ke,null);y=vo(r,k,i,n),c.broadcast=y,r[ke]=y,t.provide(ke,y),r.broadcast=(u,p,...b)=>Reflect.apply(y.emit,y,[u,p,...b]);const v=t.inject(Re,null);g=ko(r,v,{componentName:""}),c.validateSchema=g,r[Re]=g,t.provide(Re,g),r[ut]=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 N=u;b={name:C=>C?N.indexOf(C)!==-1:!1}}else if(u!=null&&typeof u=="object"){const N=u;if(S.ignoreHidden=N.ignoreHidden,Array.isArray(N.include)&&N.include.length>0){const C=N.include;b={name:V=>V?C.indexOf(V)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const C=N.exclude;b={name:V=>V?C.indexOf(V)===-1:!1}}else b={name:"*"}}if(b){const N=y?.emitToChildren(b,"validate",S);N&&Reflect.apply([].push,p,N)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(N=>{let C=[];return N.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(C=[...C,...V.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(u,p=!0,b=!1)=>{if(b===!0){Reflect.ownKeys(u).forEach(N=>{let C=String(N);const B=Hr(c,C,{componentName:"",fieldName:C,pureDataValidate:!0},y,g);r[ut].set(C,B);const I=u[C];I&&B.validateSchema.setRule(I)});return}if(p){const S=Reflect.ownKeys(u),N={name:C=>S.includes(C)};y?.emitToChildren(N,"setNameValidateRules",u,!1)}},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:N=>N?S.indexOf(N)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const S=b.exclude;p={name:N=>N?S.indexOf(N)===-1:!1}}else p={name:"*"}}p&&y?.emitToChildren(p,"clearValidate",!1)},r.resetFields=u=>{const p=m();if(!p)return;const b={};if(nt(!0,b,f()??{}),Array.isArray(u))u.forEach(S=>{p[S]=b[S]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(N=>{p[N]=b[N]});else if(u&&Array.isArray(u.exclude)){let S=u.exclude??[];Reflect.ownKeys(b).forEach(N=>{S.includes(N)||(p[N]=b[N])})}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[De]=void 0,r[ut]&&(r[ut].clear(),r[ut]=void 0),y!==null&&(y.destroy(),r[ke]=void 0),g!==null&&(g.destroy(),r[Re]=void 0)}),c}function Kr(e,o,l=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(De,null);r===null&&(r=mt());const s=e||o.prop||o.name,i=new bo(s);return i.parent=r,t.isReactive(o)||typeof o=="function"?t.watch(o,c=>{i.merge(c,l)},{immediate:!0}):i.merge(o,l),a[De]=i,t.provide(De,i),t.onUnmounted(()=>{i.destroy(),a[De]=void 0}),i}function Ur(e,o,l){const a=Ke(e)?.get("rules");if(!a)return;let r=a[l];r&&(Array.isArray(r)||(r=[r]),o.setRule(r))}function we(e,o,l){const a=t.getCurrentInstance()?.proxy,r=o??"",s=t.inject(ke,null),i=vo(a,s,r,l);a[ke]=i,t.provide(ke,i),a.broadcast=(g,k,...v)=>Reflect.apply(i.emit,i,[g,k,...v]);const c=t.inject(Re,null);e.fieldName=e.fieldName??r;const d=ko(a,c,e);a[Re]=d,t.provide(Re,d),Ur(a,d,r),a.validate=(g=null)=>{const k=[];let v=!1,u=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)u=!0,v=!0;else if(g&&typeof g=="object"){const p=g;p.ignoreHidden===!0&&yo(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 g=="boolean"&&(v=g),u=!0;if(u){const p=d?.validate();k.push(p)}if(v){let p=null;const b={deep:!1};if(g===!0)p={name:"*"};else if(Array.isArray(g)&&g.length>0){const S=g;p={name:N=>N?S.indexOf(N)!==-1:!1}}else if(g!=null&&typeof g=="object"){const S=g;if(b.ignoreHidden=S.ignoreHidden,Array.isArray(S.include)&&S.include.length>0){const N=S.include;p={name:C=>C?N.indexOf(C)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const N=S.exclude;p={name:C=>C?N.indexOf(C)===-1:!1}}else p={name:"*"}}if(p){const S=i.emitToChildren(p,"validate",b);Reflect.apply([].push,k,S)}}return k.length==1?k[0]:k.length>1?Promise.all(k).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=g=>d?.setRule(g),a.setNameValidateRules=(g,k=!1)=>{const v=g[r];if(v&&d?.setRule(v),k){const u={name:p=>Reflect.ownKeys(g).includes(p)};i.emitToChildren(u,"setNameValidateRules",g,!1)}},a.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(o??"")!==-1)&&d?.clear();let k=null;if(g===!0)k={name:"*"};else if(Array.isArray(g)&&g.length>0){const v=g;k={name:u=>u?v.indexOf(u)!==-1:!1}}else if(g!=null&&typeof g=="object"){const v=g;if(Array.isArray(v.include)&&v.include.length>0){const u=v.include;k={name:p=>p?u.indexOf(p)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const u=v.exclude;k={name:p=>p?u.indexOf(p)===-1:!1}}else k={name:"*"}}k&&i.emitToChildren(k,"clearValidate",!1)};const m=new Zs(a);a[Ia]=m;const f=ht((g="validate")=>{g==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Lr()).forEach(g=>{m.on(g,k=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Rr()).forEach(g=>{m.on(g,k=>{f("reset")})}),t.onUnmounted(()=>{i.destroy(),a[ke]=void 0,d.destroy(),a[Re]=void 0,m.destroy(),a[Ia]=void 0}),{broadcast:i,validateSchema:d,emitEvent:(g,...k)=>{Reflect.apply(m.emit,m,[g,...k])},onEvent:(g,k)=>{Reflect.apply(m.on,m,[k])},offEvent:(g,k)=>{Reflect.apply(m.off,m,[k])}}}function Hr(e,o,l,n,a){const r={},s=o??"",i={getValue(){const m=e.getForSelf("modelValue");return m?m[s]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,s):!1}};l.fieldName=s,l.validateHandler={getValue(m){return i.getValue()}};const c=ko({},a,l);r.validate=(m=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const f=[];let h=!1,y=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)y=!0,h=!0;else if(m&&typeof m=="object"){const g=m;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),y=!0,h=g.deep??!1}else typeof m=="boolean"&&(h=m),y=!0;if(y){const g=c?.validate();f.push(g)}if(h){let g=null;const k={deep:!1};if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const v=m;g={name:u=>u?v.indexOf(u)!==-1:!1}}else if(m!=null&&typeof m=="object"){const v=m;if(Array.isArray(v.include)&&v.include.length>0){const u=v.include;g={name:p=>p?u.indexOf(p)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const u=v.exclude;g={name:p=>p?u.indexOf(p)===-1:!1}}else g={name:"*"}}if(g){const v=d.emitToChildren(g,"validate",k);Reflect.apply([].push,f,v)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(g=>{let k=[];return g.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=m=>c?.setRule(m),r.setNameValidateRules=m=>{const f=m[s];f&&c?.setRule(f)};const d=vo(null,n,s,r);return{broadcast:d,validateSchema:c}}const pe=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(st){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 Ye="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 mn(e,o,l={},n=!0,a=-1,r=-1,s=0,i=0){if(e.headerHeight=se(l.headerHeight??o.headerHeight??-1),e.headerPadding=Me(l.headerPadding??o.headerPadding),e.footerHeight=se(l.footerHeight??o.footerHeight??-1),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 jr(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;mn(n,r,o,!0,s,i,c,d);const m=t.reactive(n),f=e.getForParent(Ye);f&&(n.height=so(e,f),n.width=io(e,f),t.watch([()=>so(e,f),()=>io(e,f)],([y,g])=>{m.height=y,m.width=g}));const h=!f;return t.watch([()=>o.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([y,g,k=-1,v=-1,u=0,p=0])=>{mn(m,g,o,h,k,v,u,p)}),e.set(Ye,m),m}function So(e){return e.get(Ye)}function Co(e,o){if(o=o??e.get(Ye),o&&o.headerMounted){const l=o.safeAreaTop==-1?0:o.safeAreaTop;return o.headerAllHeight??o.headerHeight+l}return 0}function wo(e,o){if(o=o??e.get(Ye),o&&o.footerMounted){const l=o.safeAreaBottom==-1?0:o.safeAreaBottom;return o.footerAllHeight??o.footerHeight+l}return 0}function so(e,o){if(o=o??e.get(Ye),o){if(o.contentInnerHeight)return o.contentInnerHeight;const l=Co(e,o),n=wo(e,o);return o.height-l-n-(o.contentPadding.top??0)-(o.contentPadding.bottom??0)}return 0}function io(e,o){return o=o??e.get(Ye),o?o.contentInnerWidth??o.width-(o.contentPadding.left??0)-(o.contentPadding.right??0):0}function ti(e,o){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[o,e]):!1}function oi(e){return!!e.getForParent(Ye)}var co=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(co||{});function Qo(e,o){return e==null?!1:typeof o=="function"?o(e):!0}function Ne(e,o,l=1,n){const a=Ke();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(Qo(c,n))return c}const s=e.value;return Qo(s,n)?s:null}):t.computed(()=>{const r=e.value;return Qo(r,n)?r:a?.get(o)})}function Ae(e){return Ne(e,"readonly",0,function(l){return me(l)})}function Ce(e){return Ne(e,"disabled",0,function(l){return me(l)})}function Ee(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 Wr=new Map,uo=new Map;let pn=null;function ni(e){pn=e}function Yr(e,o,l){if(l){let n=uo.get(l);n||(n=new Map,uo.set(l,n)),n.set(e,o)}else Wr.set(e,o)}function Ge(e,o,l){!l&&pn&&(l=pn(e)??void 0);let n=null;if(l){let a=uo.get(l);a&&(n=a.get(o))}return n||(n=Wr.get(o)),n}function li(e,o){for(let l in e){const n=e[l];Yr(l,n,o)}}function ai(e){uo.delete(e)}function ri(){return{top:0,left:0,bottom:0,right:0}}function si(e=0,o=0){if(st){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)};return{rootWidth:l,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:-1,footerHeight:-1}}}class ii{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=mt();if(this.initPageLayout(l,a),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=ro(()=>{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=nt({},ri(),o.safeAreaInset),s=si(n,a),i=nt({},s.pageLayout,o.pageLayout);l=l??mt(),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){ni(o)}setAPI(o,l,n){Yr(o,l,n)}getAPI(o,l,n){return Ge(o,l,n)}batchSetAPI(o,l){li(o,l)}clearScopeAPI(o){ai(o)}getRootDomain(){return mt()}}function Y(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 ci=(e,o)=>{let l=document.body;const n=e.teleport||"body";n!="body"&&(Br(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={};ao(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)}}},Xr=(e,o)=>e?t.h(e,o):"",ue={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},de={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}},Qr={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}},Gr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!1},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Zr=[];for(const e in Gr)Zr.push(e);function $e(e,o=null){if(o||(o=t.getCurrentInstance()),o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const ui=Symbol.for("InnerPageScopeKey"),di=(e,o)=>({inheritAttrs:!0,props:{...ue,...Qr,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},setup(l,n){const a=Pn(l.name,l),r=t.inject(ui,!1);if(a){const m=jr(a,l);$e({getPageContentHeight:()=>so(a,m),getPageContentWidth:()=>io(a,m),getPageHeaderHeight:()=>Co(a,m),getPageFooterHeight:()=>wo(a,m)}),m&&r&&(m.contentHeight="100%")}const s=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),c=t.getCurrentInstance(),d=(m,f=!1)=>{const h=c?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(m,!0,f)};return t.watch([()=>l.rules,()=>l.pureDataRules],([m,f],[h,y])=>{if(m&&h){const g=t.toRaw(h),k=t.toRaw(m),v=k?Reflect.ownKeys(k):[];(g?Reflect.ownKeys(g):[]).forEach(p=>{v.includes(p)||(k[p]=[])}),d(k)}if(f&&y){const g=t.toRaw(y),k=t.toRaw(f),v=k?Reflect.ownKeys(k):[];(g?Reflect.ownKeys(g):[]).forEach(p=>{v.includes(p)||(k[p]=[])}),d(k,!0)}},{deep:!0}),t.onMounted(()=>{if(l.rules){const m=t.toRaw(l.rules);d(m)}if(l.pureDataRules){const m=t.toRaw(l.pureDataRules);d(m,!0)}}),{classes:s,styles:i}}}),{componentName:fi,create:mi,scope:jB}=Y("page"),pi=mi(di(fi));function hi(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 J=(e,o)=>{const l=e.__vccOpts||e;for(const[n,a]of o)l[n]=a;return l},Ln=J(pi,[["render",hi]]);function No(e){const o=t.unref(e);return{width:o.offsetWidth,height:o.offsetHeight}}function Fn(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 gi=Symbol.for("InnerPageScopeKey"),yi=(e,o,l,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:l},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const s=Ke(),i=s?So(s):null,c=t.inject(gi,!1),d=e,m=t.computed(()=>{const w={[d]:!0,[`${d}--border`]:a.border,[`${d}--fixed`]:a.fixed};return c||(w[`${d}--safe-area-inset-top`]=a.safeAreaInsetTop),w}),f=t.computed(()=>({[`${d}__inner`]:!0,[`${d}__inner--${a.align}`]:!0})),h=a.height!==null&&a.height!==void 0?se(a.height):null,y=t.computed(()=>{const w={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const P=Me(a.padding??i.headerPadding);return Object.assign(w,P),h&&(i.headerHeight=h),i.headerHeight>0&&(w.height=i.headerHeight),w.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,w.safeAreaTop>0&&(w.top=w.safeAreaTop+(P.top??0),w.height&&w.height>0&&(w.height=w.height+w.safeAreaTop)),w}if(h&&(w.height=h),a.padding){const P=Me(a.padding);Object.assign(w,P)}return w}),g=t.ref(null),k=()=>{if(i&&g.value&&!yo(g.value)){if(!n){const w=No(g.value);i.headerAllHeight=w.height}return i.headerMounted=!0,!0}return!1};let v=null;t.onMounted(()=>{i&&(zn(k,50,5,50,!0),window.ResizeObserver&&g.value&&(v=new window.ResizeObserver(()=>{k()}),v.observe(g.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,v&&(v.disconnect(),v=null))});const u=t.computed(()=>{const w={};return y.value.height!==null&&y.value.height!==void 0&&(w.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(w.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(w.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(w.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(w.paddingBottom=`${y.value.bottom}px`),w}),p=t.computed(()=>!(y.value.height!==null&&y.value.height!==void 0&&y.value.height<=0));function b(){r.emit("back")}function S(){r.emit("click-title")}function N(){r.emit("click-right")}function C(){r.emit("click-right-text")}const V=()=>{if(!a.leftShow)return null;const w=[];if(r.slots.left)w.push(r.slots.left());else{if(r.slots.leftIcon){const P=t.h("view",{class:"left-icon",onClick:b},[r.slots.leftIcon()]);w.push(P)}else if(a.leftIcon){const P=t.h("view",{class:"left-icon",onClick:b},[t.h(a.leftIcon)]);w.push(P)}if(a.leftText){const P=t.h("view",{class:"left-text",onClick:b},[a.leftText]);w.push(P)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__left"},w)},B=()=>{if(!a.rightShow)return null;const w=[];if(r.slots.right)w.push(r.slots.right());else{if(a.rightText){const P=t.h("view",{class:"right-text",onClick:C},[a.rightText]);w.push(P)}if(r.slots.rightIcon){const P=t.h("view",{class:"right-icon",onClick:N},[r.slots.rightIcon()]);w.push(P)}else if(a.rightIcon){const P=t.h("view",{class:"right-icon",onClick:N},[t.h(a.rightIcon)]);w.push(P)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__right"},w)},I=()=>{if(!a.titleShow)return null;const w=[],P=r.slots.default?r.slots.default():null;if(P)w.push(P);else{if(a.title){const F=t.h("view",{class:"title-text"},[a.title]);w.push(F)}if(r.slots.titleIcon){const F=t.h("view",{class:"title-icon",onClick:S},[r.slots.titleIcon()]);w.push(F)}else if(a.titleIcon){const F=t.h("view",{class:"title-icon",onClick:S},[t.h(a.titleIcon)]);w.push(F)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__title"},w)},A=()=>{const w=[],P=r.slots.bottom?r.slots.bottom():null;return P&&w.push(P),w.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},w)};return()=>{if(!p.value)return null;const w=[];if(r.slots.all)w.push(r.slots.all());else{const F=[],E=V();E&&F.push(E);const x=I();x&&F.push(x);const U=B();if(U&&F.push(U),F.length>0){const W=t.h("view",{class:f.value},F);w.push(W)}const D=A();D&&w.push(D)}if(w.length===0)return null;const P={class:m.value,style:u.value,ref:g};return t.h("view",P,w)}}}),{componentName:vi,create:ki,scope:bi}=Y("header-bar"),Rn=ki(yi(vi,bi,te.Left,!1)),Si=Symbol.for("InnerPageScopeKey");function Ci(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=Ke(),s=r?So(r):null,i=t.inject(Si,!1),c=e,d=t.computed(()=>{const v={[c]:!0,[`${c}--${n.align}`]:!0,[`${c}--border`]:n.border,[`${c}--fixed`]:n.fixed};return i||(v[`${c}--safe-area-inset-bottom`]=n.safeAreaInsetBottom),v}),m=n.height!==null&&n.height!==void 0?se(n.height):null,f=t.computed(()=>{const v={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const u=Me(n.padding??s.footerPadding);return Object.assign(v,u),m&&(s.footerHeight=m),s.footerHeight>0&&(v.height=s.footerHeight),v.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,v.safeAreaBottom>0&&(v.bottom=v.safeAreaBottom+(u.bottom??0),v.height&&v.height>0&&(v.height=v.height+v.safeAreaBottom)),v}if(m&&(v.height=m),n.padding){const u=Me(n.padding);Object.assign(v,u)}return v}),h=t.ref(null),y=()=>{if(s&&h.value&&!yo(h.value)){if(!l){const v=No(h.value);s.footerAllHeight=v.height}return s.footerMounted=!0,!0}return!1};let g=null;t.onMounted(()=>{s&&(zn(y,50,5,50,!0),window.ResizeObserver&&(g=new window.ResizeObserver(()=>{y()}),g.observe(h.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,g&&(g.disconnect(),g=null))});const k=t.computed(()=>{const v={};return f.value.height!==null&&f.value.height!==void 0&&(v.height=pe(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(v.paddingTop=pe(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(v.paddingLeft=pe(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(v.paddingRight=pe(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(v.paddingBottom=pe(f.value.bottom)),v});return()=>{const v=a.slots.default?a.slots.default():[],u={ref:h,class:d.value,style:k.value};return t.h("view",u,v)}}}}const{componentName:wi,create:Ni,scope:Bi}=Y("footer-bar"),On=Ni(Ci(wi,Bi,!1));function Vi(e,o){return{props:{padding:{type:[Object],required:!1}},setup(l){const n=Ke(),a=t.computed(()=>({[e]:!0})),r=n?So(n):null,s=t.computed(()=>{const d={};if(n&&r){if(l.padding){const u=Me(l.padding);Object.assign(r.contentPadding,u)}const m=Co(n,r),f=wo(n,r);let h="";r.contentHeight?h=`${r.contentHeight}`:h=`${r.height}px`,console.debug("[content]page height:",h),console.debug("[content]header height:",m),console.debug("[content]footer height:",f),console.debug("[content]padding:",r.contentPadding),d.height=h;let y=(r&&r.contentPadding&&r.contentPadding.top)??-1;(y>=0||m>0)&&(y=y<0?0:y,d.paddingTop=`${m+y}px`);let g=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(g>=0||f>0)&&(g=g<0?0:g,d.paddingBottom=`${f+g}px`);const k=(r&&r.contentPadding&&r.contentPadding.left)??-1;k>=0&&(d.paddingLeft=`${k}px`);const v=(r&&r.contentPadding&&r.contentPadding.right)??-1;return v>=0&&(d.paddingRight=`${v}px`),d}if(l.padding){const m=Me(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=ht(()=>{if(r&&i.value){const d=Fn(i.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}},0);return t.onMounted(()=>{c()}),n&&r&&t.watch([()=>s.value,()=>a.value],([])=>{c()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:Ai,create:$i,scope:WB}=Y("content"),Ti=$i(Vi(Ai));function Ei(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 Kn=J(Ti,[["render",Ei]]),gt="GroupStateKey",Jr=Symbol.for("GroupScopeKey");function Bo(){return t.inject(Jr,!1)}function Vo(e=!0){t.provide(Jr,e)}function Di(e,o={}){Reflect.ownKeys(o).forEach(n=>{if(typeof n!="string")return;const a=o[n];Nr(a)||(e[n]=a)})}function xi(e,o={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Di(n,o);const a=t.shallowRef(n),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(gt,r),r}function Go(e,o,l=-1,n=-1,a=!1,r,s,i){const c=e.get(gt);if(!c)return;const d=e.get("groupLayout")??{};l===-1&&(l=d.column??1),n===-1&&(n=d.gutter??0),r||(r=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const m=se(r),f=se(s);i||(i=d.type??"grid");const h=()=>{const y=o===""||o===-1,g=se(o);let k=fe(l);const v=se(n);if(!y){let b=(g-(k-1)*v)/k;for(;f!==-1&&b>f;)k++,b=(g-(k-1)*v)/k;for(;m!==-1&&k>1&&b<m;)k--,b=(g-(k-1)*v)/k}let u=!1;const p=c.layout;p.value.width=o,p.value.column!==k&&(p.value.column=k,u=!0),p.value.gutter!==v&&(p.value.gutter=v,u=!0),p.value.type!==i&&(p.value.type=i,u=!0),u&&t.triggerRef(p)};if(a)h();else{const y=++c.passport;setTimeout(()=>{y===c.passport&&h()},50)}}function Ao(e,o=!1){let l;return o?l=e.getForParent(gt):l=e.get(gt),l.layout}function $o(e,o=!1){let l;return o?l=e.getForParent(gt):l=e.get(gt),l.order}function qa(e,o=1){if(o==="stretch")return-1;const l=fe(o);return l===-1?100:100*l/e}function To(e,o,l=1,n=0,a){const r={};let s=0;a?s=se(a):s=qa(o.column,l),s>0&&(r.width=`${s}%`);const i=qa(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 Eo(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":`${c+1} / -1`}}let a=fe(l);if(a===-1){const c=e.index%o.column;return o.column,c==0?e.index=e.index+o.column:e.index=e.index+(o.column-c)+o.column,{"grid-column":"1 / -1"}}if(a>o.column){const c=e.index%o.column;return o.column,c==0?e.index=e.index+o.column:e.index=e.index+(o.column-c)+o.column,{"grid-column":"1 / -1"}}const r=fe(n)%o.column;let s=(e.index+r)%o.column,i=s+a;return i>o.column?(s=0,i=s+a,e.index=e.index+(o.column-s)+a):e.index=e.index+r+a,r>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const _r=Symbol("RollingStateKey");function Ii(e){t.provide(_r,e)}function qi(){return t.inject(_r,null)}function hn(e){let o=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(l.getPropertyValue("padding-top")),r=parseFloat(l.getPropertyValue("padding-bottom"));o=e.clientHeight-a-r}else o=e.offsetHeight;return o}function Mi(e){let o=hn(e);if(o<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),o=hn(l),document.body.removeChild(l)}return o}function zi(e,o,l){if(e<=0)return"1fr";const n=(e-(o-1)*l)/o;return n>0?`${n}px`:"1fr"}const Pi={...ue,...Qr,...Gr};function Li(e,o,l){return{props:Pi,emits:["update:collapse"],setup(n,a){const r=Pn(n.name,n,Zr),s=xi(r,{type:n.type}),i=Bo();Vo(!0);const c=n.rollingDisplay?qi():null,d=t.ref(null),m=t.computed(()=>n.rollingDisplay?c&&!c.disabled:!1),f=t.computed(()=>i&&r?Ao(r,!0).value:null),h=t.getCurrentInstance(),y=(O,X=!1)=>{const Q=h?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(O,!0,X)};t.watch([()=>n.rules,()=>n.pureDataRules],([O,X],[Q,ee])=>{if(O&&Q){const _=t.toRaw(Q),oe=t.toRaw(O),le=oe?Reflect.ownKeys(oe):[];(_?Reflect.ownKeys(_):[]).forEach(ve=>{le.includes(ve)||(oe[ve]=[])}),y(oe)}if(X&&ee){const _=t.toRaw(ee),oe=t.toRaw(X),le=oe?Reflect.ownKeys(oe):[];(_?Reflect.ownKeys(_):[]).forEach(ve=>{le.includes(ve)||(oe[ve]=[])}),y(oe,!0)}},{deep:!0});const g=e,k=t.computed(()=>{const O={};if(O.height=x.value,n.width)n.width!=="auto"&&(O.width=pe(n.width));else{const X=i?$o(r,!0):null;if(f.value&&X){if(f.value.type==="grid"){const Q=Eo(X,f.value,n.span,n.offset);Object.assign(O,Q)}else if(f.value.type==="flow"){const Q=To(X,f.value,n.span,n.offset,n.width);Object.assign(O,Q)}}}return O}),v=t.computed(()=>{const O=s.layout.value.type;return O==="grid"||O==="flow"?{[`${g}--${O}`]:!0,[`${g}--${O}-justify-${n.justify}`]:!0,[`${g}--${O}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${O}`]:!0,[`${g}--gutter`]:!0}}),u=t.computed(()=>{if(s.layout.value.type==="grid"){let X="";if(n.columnWidth)X=`repeat(auto-fill, ${n.columnWidth})`;else{const Q=zi(B.value,s.layout.value.column,s.layout.value.gutter);X=`repeat(${s.layout.value.column}, ${Q})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":X}}}),p=t.toRef(n,"gutter"),b=t.toRef(n,"column"),S=t.computed(()=>i||m.value?!0:me(n.isWrap)),N=[],C=O=>{N.push(O)},V=()=>{let O=N.length;N.splice(0,O)},B=t.ref(-1),I=O=>{const X=Fn(O).width;X>0&&X!==B.value&&(B.value=X)};Go(r,B.value,b.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&t.watch([B,b,p],([O,X,Q])=>{s.order.index=0,Go(r,O,X,Q,!1,n.minItemWidth,n.maxItemWidth,n.type)});const A=t.computed(()=>U.value?n.expandText??"":n.collapseText??""),w=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),P=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),F=t.ref(),E=t.ref(),x=t.computed(()=>D.value||pe(n.height)||""),U=t.ref(!1),D=t.ref(""),W=t.ref(!1);let H=-1;const G=(O,X=!0)=>{const Q=F.value;if(Q&&U.value!==O){if(H=H===-1?Mi(Q):H,W.value=!0,X)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",O||(D.value="",W.value=!1)},O){let ee=0;n.collapseHeight?ee=n.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(ee=E.value.offsetHeight),D.value=`${H}px`,t.nextTick(()=>{D.value=`${ee}px`})}else D.value=`${H}px`;else if(O){let ee=0;n.collapseHeight?ee=n.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(ee=E.value.offsetHeight),D.value=`${ee}px`}else W.value=!1,D.value=`${H}px`;U.value=O,a.emit("update:collapse",O)}};t.watch(()=>n.collapse,O=>{G(O)});const R=()=>{$()},$=O=>{O=O??!U.value,G(O)};$e({toggleCollapse:$,doLayout:()=>{N[0]&&(I(N[0]),Go(r,B.value,b.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let z=null,M=!0;const L=O=>{if(n.rules){const X=t.toRaw(n.rules);y(X)}if(n.pureDataRules){const X=t.toRaw(n.pureDataRules);y(X,!0)}if(st&&(O&&G(me(n.collapse),!1),n.autoLayout&&Array.isArray(N)&&N.length>0)){const X=N[0];I(X),window.ResizeObserver&&(z=new window.ResizeObserver(()=>{I(X)}),z.observe(X))}},q=()=>{z?.disconnect(),z=null},K=!m.value||c?.acquire();K&&(d.value=m.value?!0:null),t.onMounted(()=>{if(K&&(L(M),M=!1),m.value&&c){let O=null,X=c.initialHeight;c.observe(F.value,Q=>{if(Q!==d.value)if(Q)d.value=!0,U.value||(D.value=""),O=setTimeout(()=>{O=null,d.value!==!1&&(L(M),M=!1)},100);else{if(O!==null&&clearTimeout(O),d.value=!1,!U.value)if(M)D.value=c.initialHeight;else{let ee=hn(F.value);ee<=0?D.value=X:(D.value=`${ee}px`,X=D.value)}M||q()}})}}),t.onUnmounted(()=>{z?.disconnect(),c&&c.unobserve(F.value)});const j=(O="right")=>{const X=[];if(A.value){const _={class:w.value},oe=t.h("span",_,[A.value]);X.push(oe)}const Q={class:P.value},ee=l(n.collapseIcon,Q);return ee&&X.push(ee),X.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${O}`]:!0},onClick:R},X):null},Z=(O,X,Q,ee)=>{const _={...v.value};return X===0&&(_[`${g}__first`]=!0),Q>=ee-1&&(_[`${g}__last`]=!0),t.h("div",{ref:C,key:`${X}`,class:_,style:u.value},O)};return()=>{if(m.value&&d.value!==!0){const _=n.tag||"div";return t.h(_,{ref:F,prop:n.name,class:{[`${g}`]:!0,"is-collapse":W.value},style:k.value},[])}s.order.index=0;const O=[];let X=0;if(a.slots.header){const _={key:`${X++}`,ref:E,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},oe=t.h("div",_,[a.slots.header()]);O.push(oe)}else{const _=[],oe=n.collapsePosition==="left";if(oe&&n.showCollapse){const le=j("left");le&&_.push(le)}if(n.title||a.slots.title){if(n.showMark){const le={class:{[`${g}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const Te=t.h("div",le);_.push(Te)}if(a.slots.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[a.slots.title()]);_.push(le)}else if(n.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);_.push(le)}}if(a.slots.toolbar&&_.push(a.slots.toolbar()),!oe&&n.showCollapse){const le=j("right");le&&_.push(le)}if(_.length>0){const le={key:`${X++}`,ref:E,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},Te=t.h("div",le,_);O.push(Te)}}V();const Q=a.slots.default?a.slots.default():[],ee=s.layout.value.type;if(ee==="grid"){const _=Z(Q,X++,0,Q.length);O.push(_)}else if(ee==="flow"){const _=Z(Q,X++,0,Q.length);O.push(_)}else for(let _=0;_<Q.length;_++){const oe=Q[_],le=Z([oe],X++,_,Q.length);O.push(le)}if(S.value){const _=n.tag||"div";return t.h(_,{ref:F,prop:n.name,class:{[`${g}`]:!0,"is-collapse":W.value},style:k.value},[O])}else return O}}}}const{componentName:Fi,create:Ri,scope:Oi}=Y("group"),Ki=(e=te.RectUp,o={})=>t.h(e,o),Un=Ri(Li(Fi,Oi,Ki));function Ui(e){return e===window}const Hi=/matrix\((.+)\)/,es=e=>{const o=t.unref(e);if(!o)return{x:0,y:0};if(Ui(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=Hi.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 ji{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 Wi{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 ji,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 Ma=new Wi,ts={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:Yi,create:Xi}=Y("price"),Qi=Xi({props:{...ts},setup(e){const o=t.computed(()=>({[Yi]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),n=t.computed(()=>ge(e.price)==0?"":po(e.price,e.decimalLength,!0,fe(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"],Zi=["innerHTML"];function Ji(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,Zi)):t.createCommentVNode("",!0)],2)}const Xe=J(Qi,[["render",Ji]]),{componentName:Zo,create:_i}=Y("hint-text"),ec=_i({components:{Price:Xe},props:{...ts,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,o){const l=t.ref({top:null,right:null,bottom:null,left:null}),n=t.ref({x:0,y:0}),a=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),d=(w,P,F,E,x,U)=>{const D=document.documentElement.clientWidth||document.body.clientWidth,W=document.documentElement.clientHeight||document.body.clientHeight,H=w.split("-");let G=[];H[0]==="top"?G=["top","bottom","right","left"]:H[0]==="bottom"?G=["bottom","top","right","left"]:H[0]==="left"?G=["left","top","bottom","right"]:H[0]==="right"&&(G=["right","top","bottom","left"]);const R={top:null,right:null,bottom:null,left:null},$=[];for(let T=0;T<G.length;T++){const z=G[T];if($[0]=z,H[1]&&($[1]=H[1]),z==="top"){const M=P.y-U-e.arrowSize-e.offset;if(M>=0){R.top=M;let L=0;H[1]==="start"?L=P.x:H[1]==="end"?L=P.x+F-x:L=P.x+F/2-x/2;const q=D-L-x;q<0?(L+=q,f.value=-q):f.value=0,R.left=L<0?0:L;break}}else if(z==="bottom"){const M=P.y+E+e.arrowSize+e.offset;if(M+U<=W){R.top=M;let L=0;H[1]==="start"?L=P.x:H[1]==="end"?L=P.x+F-x:L=P.x+F/2-x/2;const q=D-L-x;q<0?(L+=q,f.value=-q):f.value=0,R.left=L<0?0:L;break}}else if(z==="left"){const M=P.x-x-e.arrowSize-e.offset;if(M>=0){R.left=M;let L=0;H[1]==="start"?L=P.y:H[1]==="end"?L=P.y+E-U:L=P.y+E/2-U/2,R.top=L<0?0:L;break}}else if(z==="right"){const M=P.x+F+e.arrowSize+e.offset;if(M+x<=D){R.left=M;let L=0;H[1]==="start"?L=P.y:H[1]==="end"?L=P.y+E-U:L=P.y+E/2-U/2,R.top=L<0?0:L;break}}}return{bestPlacement:$.join("-"),bestInsetRect:R}},m=(w,P,F=10)=>{if(!st||P===!1||!w)return;n.value=es(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const E=c.value.offsetHeight,x=c.value.offsetWidth,{bestPlacement:U,bestInsetRect:D}=d(e.placement,n.value,a.value,r.value,x,E);s.value=U,l.value=D,i.value=!0},f=t.ref(0),h=ht(()=>{m(e.message,e.visible)},10),y=t.ref(e.visible);t.watch(()=>e.visible,w=>{y.value=w});const g=t.computed(()=>y.value&&k.value),k=t.ref(!0),v=ht(w=>{const P=w[0];P&&(k.value=P.isIntersecting)},10),u=new IntersectionObserver(v);t.watch([()=>e.message,()=>e.visible],([w,P])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{m(e.message,e.visible)},0),Ma.watch(e.reference,h),u.observe(e.reference)}),t.onBeforeMount(()=>{Ma.unwatch(e.reference,h),u.unobserve(e.reference),u.disconnect()});const p=t.computed(()=>{const w={[Zo]:!0};return s.value.startsWith("top")?w["is-top"]=!0:s.value.startsWith("right")?w["is-right"]=!0:s.value.startsWith("bottom")?w["is-bottom"]=!0:s.value.startsWith("right")&&(w["is-right"]=!0),e.size==="small"?w["is-small"]=!0:e.size==="large"&&(w["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(w[`${e.customClass}`]=!0),w}),b=t.computed(()=>{const w={};l.value.top!==null&&(w.top=`${l.value.top}px`),l.value.right!==null&&(w.right=`${l.value.right}px`),l.value.bottom!==null&&(w.bottom=`${l.value.bottom}px`),l.value.left!==null&&(w.left=`${l.value.left}px`),e.autoFit&&(w["min-width"]=`${a.value}px`);const P=document.documentElement.clientWidth||document.body.clientWidth;return w["max-width"]=`${P}px`,i.value&&(w.opacity="1"),e.transition||(w.transition="none"),e.zIndex&&(w["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(w,e.customStyle),w}),S=t.computed(()=>{const w=[`${Zo}__content`];return e.customTextClass&&w.push(e.customTextClass),w}),N=t.computed(()=>{const w={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(w,e.customTextStyle),w}),C=t.computed(()=>({[`${Zo}__arrow`]:!0})),V=t.computed(()=>{const w={};return e.showArrow?(w.width=`${e.arrowSize}px`,w.height=`${e.arrowSize}px`,s.value==="top"?(w.left="50%",w.bottom=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):s.value==="top-start"?(w.left=`${e.arrowOffset+f.value}px`,w.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(w.right=`${e.arrowOffset-f.value}px`,w.bottom=`-${e.arrowSize}px`):s.value==="right"?(w.left=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):s.value==="right-start"?(w.left=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):s.value==="right-end"?(w.left=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(w.left="50%",w.top=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(w.left=`${e.arrowOffset+f.value}px`,w.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(w.right=`${e.arrowOffset-f.value}px`,w.top=`-${e.arrowSize}px`):s.value==="left"?(w.right=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):s.value==="left-start"?(w.right=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):s.value==="left-end"&&(w.right=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`),w):{display:"none"}}),B=t.computed(()=>g.value&&e.closeOnClick),I=t.computed(()=>{const w={};return e.zIndex&&(w["z-index"]=`${e.zIndex}`),w});return{show:g,tipRef:c,classes:p,styles:b,textClasses:S,textStyles:N,arrowClasses:C,arrowStyles:V,overlayShow:B,overlayStyle:I,onClickOverlay:()=>{y.value=!1,o.emit("update:visible",!1)}}}});function tc(e,o,l,n,a,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:o[0]||(o[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.message),1)],64))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const os=J(ec,[["render",tc]]);class Do{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 gn={},oc=new Do,pt=new Map,fo=e=>{if(e){const o=document.getElementById(e);pt.delete(e),o&&o.parentNode?.removeChild(o)}else{for(const o of pt.keys()){const l=document.getElementById(o);l&&l.parentNode?.removeChild(l)}pt.clear()}},nc=e=>{e.unmount=fo;const o=document.getElementById(e.id);if(o){const l=pt.get(e.id);l?e={...gn,...l,...e}:e={...gn,...e},e.transition=!1;const n=t.createVNode(os,e);return t.render(n,o),e.id}},lc=e=>{e.unmount=fo;let o=e.id??`hinttext_${oc.get()}`;e={...gn,...e},e.id=o,pt.set(o,e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(os,e);return t.render(n,l),document.body.appendChild(l),o},ac=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},ot={show(e,o,l={},n=!0){ac(o);const a=l.id;return a&&pt.has(a)?nc({...l,message:o,reference:e}):(n&&fo(),lc({...l,message:o,reference:e}))},hide(e){fo(e)},install(e){e.config.globalProperties.$hintText=ot}},{componentName:za,create:rc}=Y("item"),sc=rc({inheritAttrs:!0,props:{...ue,...de},emits:["appear","disappear"],setup(e,o){const l=e.prop??o.attrs.name;we({componentName:za,validate:!1},l);const n=Ke(),a=Bo();Vo(!1);const r=t.computed(()=>a&&n?Ao(n,!1).value:null),s=za,i=t.ref(null),c=t.computed(()=>{const O={[s]:!0,[`${s}__gutter`]:r.value&&r.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:me(e.hasBorder)};if(O[e.errorMarkClass]=!!P.value,O[e.warnMarkClass]=!!A.value,O[e.infoMarkClass]=!!B.value,typeof i.value=="function"){const X=i.value(l);O[X]=!0}else if(typeof i.value=="string"){const X=i.value;O[X]=!0}return O}),d=t.ref(null),m=t.computed(()=>{const O={};if(e.width)e.width!=="auto"&&(O.width=pe(e.width));else{const X=a&&n?$o(n,!1):null;if(r.value&&X){if(r.value.type==="grid"){const Q=Eo(X,r.value,e.span,e.offset);Object.assign(O,Q)}else if(r.value.type==="flow"){const Q=To(X,r.value,e.span,e.offset,e.width);Object.assign(O,Q)}}}if(typeof d.value=="function"){const X=d.value(l);X&&Object.assign(O,X)}else if(d.value&&typeof d.value=="object"){const X=d.value;Object.assign(O,X)}return O}),f=t.ref(null),h=t.computed({get:()=>f.value??me(e.isRequired),set:O=>{f.value=O}}),y=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof o.slots.label=="function"),g=Ne(t.toRef(e,"labelPosition"),"labelPosition",co.Near),k=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),v=t.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${k.value}`]:!0})),u=t.computed(()=>({label:!0,[`label--${k.value}`]:!0})),p=Ne(t.toRef(e,"labelWidth"),"labelWidth",co.Near),b=t.computed(()=>p&&p.value?{width:pe(p.value)}:{}),S=t.computed(()=>({"label--string":!0,"label--required":h.value})),N=t.computed(()=>({content:!0,[e.contentClass]:!0})),C=t.computed(()=>({...e.contentStyle})),V=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(O){h.value=O},setErrorTip(O){V.errorTip=O},setErrorIcon(O){V.errorIcon=O},setWarnTip(O){V.warnTip=O},setWarnIcon(O){V.warnIcon=O},setInfoTip(O){V.infoTip=O},setInfoIcon(O){V.infoIcon=O},setCustomClassName(O){i.value=O},setCustomStyle(O){d.value=O}});const B=t.computed(()=>e.infoTip||V.infoTip),I=t.computed(()=>e.infoIcon||V.infoIcon),A=t.computed(()=>e.warnTip||V.warnTip),w=t.computed(()=>e.warnIcon||V.warnIcon),P=t.computed(()=>e.errorTip||V.errorTip),F=t.computed(()=>e.errorIcon||V.errorIcon),E=t.computed(()=>P.value?"error":A.value?"warn":B.value?"info":""),x=t.computed(()=>E.value.length>0),U=t.computed(()=>E.value==="error"?P.value:E.value==="warn"?A.value:E.value==="info"?B.value:""),D=t.computed(()=>E.value==="error"?F.value:E.value==="warn"?w.value:E.value==="info"?I.value:null),W=t.computed(()=>{let O={[`${s}__tip`]:!0,[`${s}__tip--${E.value}`]:!0};return E.value==="error"&&e.errorClass?O[`${e.errorClass}`]=!0:E.value==="warn"&&e.warnClass?O[`${e.warnClass}`]=!0:E.value==="info"&&e.infoClass&&(O[`${e.infoClass}`]=!0),O}),H=t.computed(()=>{let O={};return g&&g.value==="top"||!y.value?O["padding-left"]="0px":p&&p.value&&(O["padding-left"]=pe(p.value)),O}),G=()=>{const O=D.value;return O?typeof O=="function"?t.h("div",{class:"fox-item__tip--icon"},[O()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(O)]):null},R=()=>{const O=U.value;return O?typeof O=="function"?t.h("div",{class:"fox-item__tip--text"},[O()]):t.h("div",{class:"fox-item__tip--text"},[O]):null},$=t.computed(()=>o.slots.fixedPreTip),T=t.computed(()=>({[`${s}__fixed-pre-tip`]:!0})),z=t.computed(()=>o.slots.fixedTip),M=t.computed(()=>({[`${s}__fixed-tip`]:!0})),L=t.ref();let q="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([O,X,Q,ee])=>{L.value&&(O&&!ce(X)?q?ot.show(L.value,X,{...ee,id:q,type:Q},!0):q=ot.show(L.value,X,{...ee,type:Q},!0):ot.hide(q))});let K=null;const j=()=>{K||!L.value||(K=new IntersectionObserver(O=>{let X=!1;for(let Q of O)if(Q.intersectionRatio>0){X=!0,X&&o.emit("appear",Q);break}X||o.emit("disappear")}),K.observe(L.value))},Z=()=>{!K||!L.value||(K.unobserve(L.value),K=null)};return t.watch(()=>me(e.appearListen),O=>{O?j():Z()}),t.onMounted(()=>{me(e.appearListen)&&j()}),t.onUnmounted(Z),{classes:c,styles:m,mainClasses:v,hasLabel:y,labelClasses:u,labelStyles:b,labelStringClasses:S,contentClasses:N,contentStyles:C,contentRef:L,hasTip:x,mTip:U,mIcon:D,renderIcon:G,renderTip:R,tipClasses:W,tipStyles:H,hasFixedTip:z,fixedTipClasses:M,hasFixedPreTip:$,fixedPreTipClasses:T}}}),ic=["prop"];function cc(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2),t.renderSlot(e.$slots,"fixedPreTip")],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon()),{key:0})):t.createCommentVNode("",!0),e.mTip?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderTip()),{key:1})):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,ic)}const be=J(sc,[["render",cc]]);function uc(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,String],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=Ke(),i=Bo();Vo(!1);const c=t.computed(()=>{const d={};if(l.width)l.width!=="auto"&&(d.width=pe(l.width));else if(i&&s){const m=Ao(s,!1),f=$o(s,!1);if(m.value&&f){if(m.value.type==="grid"){const h=Eo(f,m.value,l.span,l.offset);Object.assign(d,h)}else if(m.value.type==="flow"){const h=To(f,m.value,l.span,l.offset,l.width);Object.assign(d,h)}}}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 y=t.h("div",{class:{[`${a}__divide`]:!0}});d.push(y)}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:dc,create:fc,scope:YB}=Y("row-item"),Hn=fc(uc(dc));function mc(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=Ke(),r=Bo();Vo(!1);const s=t.computed(()=>r&&a?Ao(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(l.width)l.width!=="auto"&&(m.width=pe(l.width));else{const f=r&&a?$o(a,!1):null;if(s.value&&f){if(s.value.type==="grid"){const h=Eo(f,s.value,l.span,l.offset);Object.assign(m,h)}else if(s.value.type==="flow"){const h=To(f,s.value,l.span,l.offset,l.width);Object.assign(m,h)}}}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:pc,create:hc,scope:XB}=Y("slot-item"),jn=hc(mc(pc)),Pa={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 gc(e,o,l,n){return{props:{...ue,...de,...Pa},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),{toLocaleRefs:d}=ae.useFoxI18n(o),m=d(a,["placeholder"]),f=t.ref(!1),h=Ee(a,"modelValue"),y=e,g=t.computed(()=>({[y]:!0,[`${y}--disabled`]:s.value,[`${y}--readonly`]:i.value})),k=Ne(t.computed(()=>a.textAlign),"textAlign"),v=t.computed(()=>{const x={};return k.value&&(x["text-align"]=k.value),x}),u=x=>{let D=x.target.value;a.type==="digit"&&(D=dn(D,!0)),a.type==="number"&&(D=dn(D,!1)),a.maxLength&&D.length>Number(a.maxLength)&&(D=D.slice(0,Number(a.maxLength))),h.value=D,c("update:modelValue",D,x),c("change",D,x)};let p=Ee(a,"hintText"),b=t.ref(!1);const S=x=>{let D=x.target.value;f.value=!0,ce(p.value)||(b.value=!0),c("focus",D,x)},N=x=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let D=x.target.value;a.maxLength&&D.length>Number(a.maxLength)&&(D=D.slice(0,Number(a.maxLength))),c("blur",D,x)},C=t.computed(()=>({[`${y}__append`]:!0})),V=t.computed(()=>{const x={};return r.slots.append&&!B.value&&!F.value&&(x.display="none"),x}),B=t.computed(()=>ge(a.unit)>0),I=t.computed(()=>!F.value),A=t.computed(()=>({[`${y}__unit`]:!0,hidden:!I.value})),w=x=>{h.value="",c("update:modelValue","",x),c("change","",x),c("clear","")},P=t.computed(()=>me(a.clearable)&&!s.value&&!i.value),F=t.computed(()=>{let x=ge(h.value)>0;return me(a.clearable)&&x&&f.value}),E=t.computed(()=>({action:!0,hidden:!F.value}));return()=>{const x={class:g.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:N},U=[],D=t.h("input",x);U.push(D);const W=[];if(P.value){const M={class:["action-icon"]},L=t.h(n,M),q={class:E.value,onClick:w},K=t.h("view",q,{default:()=>[L]});W.push(K)}if(B.value){const M=t.h("view",{class:A.value},[a.unit]);W.push(M)}const H={class:C.value,style:V.value},G=t.h("view",H,{default:()=>W});U.push(G);const R={default:()=>U};R.label=r.slots.default,R.prepend=r.slots.prepend,R.append=r.slots.append,R.fixedPreTip=r.slots.fixedPreTip,R.fixedTip=r.slots.fixedTip;const T={...In(a,Pa),hintText:p.value,hintVisible:b.value};return t.h(l,T,R)}}}}const{componentName:yc,create:vc,scope:kc}=Y("input-item"),Wn=vc(gc(yc,kc,be,te.CircleClose));function La(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 Fa(e,o,l=20){if(typeof o=="string"&&(o=fe(o)),o==1||o==-1)return`${e}`;if(o==0)return"0";if(o>0){let n=Sr(`${e}`,`${o}`);return La(n)}else{let n=xn(`${e}`,Cr(`${o}`),20);return La(n)}}function bc(e,o=-1,l=!1,n=3,a=","){return po(e,o,l,n,a)}function Ra(e,o,l,n,a=!0){if(e=="")return"";if(e=wr(e),o=fe(o),o==1)return e;if(n)e=Fa(e,o),l&&(e=="0"&&a?e=`${e}.`.padEnd(fe(l)+2,"0"):e=xn(e,1,fe(l)));else{let r=-1*o;e=Fa(e,r)}return e}function Oa(e,o){let l={maxValid:!0,minValid:!0,message:""};if(o.min!==void 0){let n=me(o.minInclude),a=sn(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=me(o.maxInclude),a=sn(e,o.max);(n&&a==1||!n&&(a==0||a==1))&&(l.maxValid=!1)}return l}const Ka={clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Sc(e,o,l,n){return{props:{...ue,...de,...Ka},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(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=Ee(a,"modelValue"),f=t.ref("");t.watch([()=>m.value,()=>a.rates,()=>a.precision],([H,G,R])=>{if(ce(H)){f.value="";return}const $=Ra(H,G,R,!1);f.value!==$&&(f.value=$)},{immediate:!0});const h=t.computed(()=>{let H="";return d.value&&(H=f.value),H}),{t:y}=ae.useFoxI18n(o),g=t.computed(()=>{let H=a.placeholder??"";return!d.value&&!ce(f.value)?H=bc(f.value,a.decimalLength,a.autoPadding,a.digits,a.separator):H=ce(H)?y(["placeholder"]):H,H}),k=e,v=t.computed(()=>({[k]:!0,[`${k}--disabled`]:s.value,[`${k}__placeholder`]:f.value.length>0})),u=Ne(t.computed(()=>a.textAlign),"textAlign"),p=t.computed(()=>{const H={};return u.value&&(H["text-align"]=u.value),H}),b=t.ref(""),S=t.computed(()=>{let H=b.value;return ce(H)&&(H=a.errorTip??""),H}),N=t.ref(""),C=t.ref(!1),V=H=>{let R=H.target.value;if(ce(R)){f.value="",m.value="",c("update:modelValue","",H),c("change","",H),me(a.showTip)&&C.value&&(C.value=!1);return}if(R.length>=2){let $=R;if($.charAt(0)=="-"&&($=$.substring(1)),$.length>=2&&$.charAt(0)=="0"&&$.charAt(1)!="."){t.triggerRef(f);return}}if(R!="-"){if(!xr(R)){t.triggerRef(f);return}if(a.integerLength!=-1&&Ir(R)>Number(a.integerLength)){t.triggerRef(f);return}if(a.decimalLength&&a.decimalLength!=-1&&qr(R)>Number(a.decimalLength)){t.triggerRef(f);return}let $=Oa(R,a);if($.maxValid===!1){b.value=$.message,t.triggerRef(f);return}}else if(a.min!=null&&fe(a.min)>=0){t.triggerRef(f);return}N.value=R,me(a.showTip)&&(C.value=R.length>0),f.value=R,m.value=Ra(R,a.rates,a.precision,!0),c("update:modelValue",m.value,H),c("change",m.value,H)},B=H=>{if(d.value=!0,me(a.showTip)){let G=f.value;ce(G)&&(G=a.hintText),ce(G)||(N.value=G,C.value=!0)}b.value="",c("focus",m.value,H)},I=H=>{if(setTimeout(()=>{d.value=!1,me(a.showTip)&&C.value===!0&&(C.value=!1)},0),!ce(f.value)){let G=Oa(f.value,a);if(G.minValid===!1||G.maxValid===!1){b.value=G.message;return}}c("update:modelValue",m.value,H),c("blur",m.value,H)},A=t.computed(()=>({[`${k}__append`]:!0})),w=t.computed(()=>{const H={};return r.slots.append&&!P.value&&!D.value&&(H.display="none"),H}),P=t.computed(()=>ge(a.unit)>0),F=t.computed(()=>!D.value),E=t.computed(()=>({[`${k}__unit`]:!0,hidden:!F.value})),x=H=>{m.value="",c("update:modelValue","",H),c("change","",H),c("clear","")},U=t.computed(()=>me(a.clearable)&&!s.value&&!i.value),D=t.computed(()=>{let H=ge(m.value)>0;return me(a.clearable)&&H&&d.value}),W=t.computed(()=>({action:!0,hidden:!D.value}));return()=>{let H={class:v.value,style:p.value,type:"digit",maxlength:a.maxLength,placeholder:g.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:V,onFocus:B,onBlur:I},G=[],R=t.h("input",H);G.push(R);let $=[];if(U.value){const j={class:["action-icon"]},Z=t.h(n,j),O={class:W.value,onClick:x},X=t.h("view",O,{default:()=>[Z]});$.push(X)}if(P.value){const j=t.h("view",{class:E.value},[a.unit]);$.push(j)}const T={class:A.value,style:w.value},z=t.h("view",T,{default:()=>$});G.push(z);const M={default:()=>G};M.label=r.slots.default,M.prepend=r.slots.prepend,M.append=r.slots.append,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;let q={...In(a,Ka),errorTip:S.value,hintText:N.value,hintVisible:C.value,hintType:"number"};return t.h(l,q,M)}}}}const{componentName:Cc,create:wc,scope:Nc}=Y("money-item"),Yn=wc(Sc(Cc,Nc,be,te.CircleClose)),yn={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:Bc,create:Vc,scope:Ac}=Y("textarea"),$c=Vc({props:{...yn},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:o}){let{toLocaleRefs:l}=ae.useFoxI18n(Ac);const n=l(e,["placeholder"]),a=t.ref(),r=t.computed(()=>{const h=Bc;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:g,minHeight:k}=e.autosize;g!==void 0&&(y=Math.min(y,g)),k!==void 0&&(y=Math.max(y,k))}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 g=h.target.value;c(g,h),o("blur",{value:g,event:h})}}}}),Tc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Ec={key:0,class:"fox-textarea__limit"};function Dc(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,Tc),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 xo=J($c,[["render",Dc]]);function xc(e,o,l,n){return{props:{...ue,...de,...yn},emits:["update:modelValue","change","blur","focus"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=Ee(a,"modelValue"),m=k=>{d.value=k,c("update:modelValue",k,{}),c("change",k,{})};let f=Ee(a,"hintText"),h=t.ref(!1);const y=k=>{ce(f.value)||(h.value=!0),c("focus",d.value,k)},g=k=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",d.value,k)};return()=>{const v={...he(a,yn),disabled:s.value,readonly:i.value,value:d.value,"onUpdate:modelValue":m,onFocus:y,onBlur:g},u=[],p=t.h(n,v);u.push(p);const b={default:()=>u};b.label=r.slots.default,b.prepend=r.slots.prepend,b.append=r.slots.append,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const S=he(a,de,ue);return t.h(l,S,b)}}}}const{componentName:Ic,create:qc,scope:Mc}=Y("textarea-item"),Xn=qc(xc(Ic,Mc,be,xo));function zc(e){return e===window}const Ve=e=>{const o=t.unref(e);if(zc(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}},ze={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:{}}},ns=2e3;let Ua=ns;const Pc=(e,o)=>({components:o,props:{...ze},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!==ns&&(Ua=Number(l.zIndex)),n("update:visible",!0),a.zIndex=++Ua,l.destroyOnClose&&(a.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+l.duration*1e3)},m=k=>{n("click-pop",k)},f=k=>{k.stopPropagation(),n("click-close-icon",k),n("update:visible",!1)},h=k=>{n("click-overlay",k),l.closeOnClickOverlay&&n("update:visible",!1)},y=k=>{n("opend",k)},g=k=>{n("closed",k)};return t.watch(()=>l.visible,k=>{l.visible?c():d()}),t.watch(()=>l.closeable,k=>{a.closed=k}),{...t.toRefs(a),popStyle:s,transitionName:i,classes:r,onClick:m,onClickCloseIcon:f,onClickOverlay:h,onOpened:y,onClosed:g}}});let Bt=0;const Ha="fox-overflow-hidden",ja=()=>st?document.body:{classList:[]},Lc=e=>[()=>{if(e())try{!Bt&&ja().classList.add(Ha),Bt++}catch{}},()=>{if(e()&&Bt)try{Bt--,!Bt&&ja().classList.remove(Ha)}catch{}}],Fc={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:Rc,create:Oc}=Y("overlay"),Kc=Oc({props:{...Fc},emits:["click","update:visible"],setup(e,{emit:o}){const[l,n]=Lc(()=>e.lockScroll),a=t.computed(()=>({[Rc]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,i=>{i?l():n()}),{classes:a,style:r,onClick:i=>{o("click",i),e.closeOnClickOverlay&&o("update:visible",!1)}}}});function Uc(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 at=J(Kc,[["render",Uc]]),{componentName:Hc,create:jc}=Y("popup"),Wc=jc(Pc(Hc,{FoxOverLay:at,Close:te.Close}));function Yc(e,o,l,n,a,r){const s=t.resolveComponent("FoxOverLay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick: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=J(Wc,[["render",Yc]]),Wa=10;function Xc(e,o){return e>o&&e>Wa?"horizontal":o>e&&o>Wa?"vertical":""}function Ue(){const e=t.ref(0),o=t.ref(0),l=t.ref(0),n=t.ref(0),a=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),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: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=Xc(c.value,d.value))},start:v=>{y(),e.value=v.touches[0].clientX,o.value=v.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 ls={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}},vn={...ze,...ls,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String}};let as=36;function Qc(){return as}function Gc(e){as=e}function qe(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function kn(e,o){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?o[e.childrenKey]:o.children??null}function Zc(e,o,l){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(o[e.childrenKey]=l),o.children=l}function rt(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function Ya(e,o){return typeof e.itemOptions=="function"?e.columnOptions(o):e.columnOptions}let Jc=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=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function _c(){const e=t.getCurrentInstance();return new Jc(e.proxy)}function Xa(e,o,l){const n=qe(e,o),a=qe(e,l);if(n!==a)return!1;const r=rt(e,o),s=rt(e,l);return r===s}function eu(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=rt(e,m);return f==null&&(f=qe(e,m)),f===i}else if(r==="item")return Xa(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=rt(e,f);return h==null&&(h=qe(e,f)),h===c}else if(r==="item")return Xa(e,f,c)});if(d==-1)break;a.push(d);const m=kn(e,s[d]);if(!Array.isArray(m))break;s=m}}return a}function Qa(e,o,l,n){if(l.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<o.length&&s<l.length;s++){const i=l[s];let c=o[s];c<0&&c>=i.length&&(c=0);const d=i[c],m=qe(e,d);if(a.texts.push(m),a.items.push(d),r==="text")a.values.push(m);else if(r==="value"){let f=rt(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=Object.assign({},d);m.children=null;const f=qe(e,d);if(a.texts.push(f),a.items.push(m),r==="text")a.values.push(f);else if(r==="value"){let h=rt(e,d);h==null&&(h=f),a.values.push(h)}else a.values.push(m);if(!Array.isArray(d.children))break;s=d.children}}return a}function Ga(e){return{text:e,value:e}}const tu=15,ou=300,nu=200,{create:lu}=Y("picker-column");function au(e){e.stopPropagation()}function ru(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&au(e)}const su=lu({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},...ls},emits:["click","change","update:modelValue"],setup(e,{emit:o}){const l=t.computed(()=>({"fox-picker__list":!0})),n=t.computed(()=>({height:`${fe(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"),y=B=>qe(e,B),g=B=>rt(e,B),k=Ue(),v=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},u=(B,I=!1,A=!1)=>{if(f.currIndex=B,I){const w=()=>{f.moving=!1,o("update:modelValue",B),o("change",B)};A?f.transitionEndTrigger=w:w()}},p=(B,I,A)=>{let w=B+f.startDistance;if(I==="end"){const P=-(h.value.length-1)*e.itemHeight;w<P&&(w=P,(!A||A<=0)&&(A=e.swipeDuration)),w>0&&(w=0,(!A||A<=0)&&(A=e.swipeDuration));let F=Math.abs(Math.round(-w/e.itemHeight));const E=-F*e.itemHeight,x=`${(F+1)*f.rotation}deg`,U=A?A>0:!1;u(F,!0,U),b(E,I,A,x)}else{let P=(-w/e.itemHeight+1)*f.rotation;const F=(h.value.length+1)*f.rotation,E=0;if(P=Math.min(Math.max(P,E),F),e.threeDimensional&&(P<E||P>F))return;b(w,null,void 0,`${P}deg`)}},b=(B=0,I,A=nu,w)=>{I==="end"?f.scrollTime=A:f.scrollTime=0,f.deg=w,f.scrollDistance=B},S=(B,I)=>(B=Math.abs(B/I)/.003*(B<0?-1:1),B),N=B=>{e.readonly||(f.startDistance=f.scrollDistance,k.start(B),f.transitionEndTrigger=null)},C=B=>{e.readonly||(f.moving=!0,k.move(B),k.isVertical()&&(f.moving=!0,ru(B,!0)),p(k.deltaY.value,"",0))},V=()=>{if(e.readonly)return;const B=k.deltaY.value,I=k.duration.value;if(I<ou&&Math.abs(B)>tu){const w=S(B,I);p(w,"end",e.swipeDuration)}else p(B,"end",0)};return t.watch(()=>e.modelValue,B=>{if(f.currIndex!==B){f.currIndex=B;const I=-B*e.itemHeight;p(I)}}),t.onMounted(()=>{const B=-e.modelValue*e.itemHeight;p(B)}),{classes:l,styles:n,contentClasses:a,source:h,itemText:y,itemValue:g,...t.toRefs(f),roller:m,getItemText:qe,onTouchStart:N,onTouchMove:C,onTouchEnd:V,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:d,stopMomentum:v}}}),iu={key:1,class:"fox-picker__item-tile"};function cu(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",iu,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Za=J(su,[["render",cu]]),{create:uu,componentName:du,scope:fu}=Y("picker"),mu=uu({components:{[Za.name]:Za,[ie.name]:ie},props:{...vn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:o}){const{toLocaleRefs:l,t:n}=ae.useFoxI18n(fu),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Qc());t.watch(()=>e.visible,A=>{A&&s.value<=0&&setTimeout(()=>{if(r.value){const w=Ve(r.value);s.value=w.height,Gc(s.value)}},50)});const i=t.computed(()=>({[du]:!0})),c=_c(),d=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([A,w])=>{if(A){let P=await c.load("picker",A,w);if(P.length>0){let F=P[0];if(Array.isArray(F)){if(typeof F[0]=="string"){let E=P,x=[];E.forEach(U=>{let D=U.map(W=>Ga(W));x.push(D)}),m.value=x}else m.value=P;d.value="multipleColumn"}else if(typeof F=="string"){let E=P,x=[],U=E.map(D=>Ga(D));x.push(U),m.value=x,d.value="singleColumn"}else{const E=kn(e,F);Array.isArray(E)?(d.value="cascade",m.value=[P]):(d.value="singleColumn",m.value=[P])}}else m.value=[]}},{immediate:!0});const f=t.ref([]),h=t.ref(e.modelValue),y=t.ref([]),g=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([A,w])=>{let P=eu(e,A,w,d.value);if(!xe(P,g.value)){g.value=P;let F=Qa(e,P,w,d.value);F&&(f.value=F.texts,o("update:text",f.value))}});const k=t.ref(e.visible);t.watch(()=>e.visible,A=>{k.value=A});const v=A=>{let w=Ya(e,A);return Be(w)?w.defaultIndex??0:0},u=A=>{if(e.readonly===!0)return!0;let w=Ya(e,A);return Be(w)?w.readonly??!1:!1},p=(A,w)=>{let P=g.value;P[A]=w;for(let E=0;E<A;E++)P[E]==null&&(P[E]=v(E));if(d.value==="cascade")for(let E=A+1;E<S.value.length;E++){let x=v(E);E<P.length?P[E]=x:P.push(x)}else for(let E=P.length;E<S.value.length;E++){let x=v(E);P.push(x)}g.value=P;let F=Qa(e,P,m.value,d.value);F&&(f.value=F.texts,h.value=F.values,y.value=F.items)},b=A=>A<g.value.length?g.value[A]:v(A),S=t.computed(()=>{if(m.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return m.value;let A=[],w=0,P=m.value[0],F=0;for(;;){let E=P.map(D=>{let W=Object.assign({},D);return Zc(e,W,null),W});A.push(E),w>=g.value.length?F=0:F=g.value[w],(F<0||F>=P.length)&&(F=0);let x=P[F];const U=kn(e,x);if(!Array.isArray(U))break;P=U,w++}return A}),N=t.computed(()=>fe(+e.visibleItemCount-1)/2*s.value);return{...a,pickerLineRef:r,classes:i,columns:S,dataType:d,show:k,itemHeight:s,top:N,isReadonly:u,getIndex:b,change:(A,w)=>{p(A,w)},close:()=>{o("close"),o("update:visible",!1)},confirm:()=>{if(e.readonly===!0){o("update:visible",!1);return}let A=m.value.length-1;for(;A>=0&&!(g.value[A]===null||g.value[A]===void 0);A--);if(A>=0&&p(A,0),d.value==="singleColumn"){let w=h.value.length>0?h.value[0]:"",P=y.value.length>0?y.value[0]:null;e.readonly||(o("update:modelValue",w),o("update:text",f.value),o("change",w,P)),o("confirm",w)}else e.readonly||(o("update:modelValue",h.value),o("update:text",f.value),o("change",h.value,y.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)}}}}),pu={class:"fox-picker__bar"},hu={class:"fox-picker__title"},gu={class:"fox-picker__bar__action"},yu={class:"fox-picker__column"};function vu(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",pu,[t.createElementVNode("view",hu,t.toDisplayString(e.title),1),t.createElementVNode("view",gu,[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",yu,[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 yt=J(mu,[["render",vu]]);function ku(e,o,l,n,a,r,s=!0){return{props:{...ue,...de,...vn,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=Ae(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}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),k=Ee(i,"modelValue"),v=t.ref([]),u=t.computed(()=>Array.isArray(v.value)?v.value.join(i.separator):v.value),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const z={};return S.value&&(z["text-align"]=S.value),z}),C=t.ref(!1),V=()=>{C.value=!0},B=z=>{C.value=z},I=z=>{k.value=z,f("update:modelValue",z)},A=(z,M)=>{f("change",z,M)},w=z=>{let L=z.target.value;g.value=!0,f("focus",L,z)},P=z=>{setTimeout(()=>{g.value=!1},0);let L=z.target.value;i.maxLength&&L.length>Number(i.maxLength)&&(L=L.slice(0,Number(i.maxLength))),f("blur",L,z)},F=z=>{v.value=z,Array.isArray(z)&&z.length===0?f("update:text",z[0]):f("update:text",z)},E=t.computed(()=>({[`${p}__append`]:!0})),x=t.computed(()=>ge(i.unit)>0),U=t.computed(()=>ge(i.unit)>0&&!g.value),D=t.computed(()=>({hidden:!U.value})),W=z=>{k.value="",f("update:modelValue","",z),f("change","",z),f("clear","")},H=t.computed(()=>i.clearable&&!d.value&&!m.value),G=t.computed(()=>ge(k.value)>0&&g.value),R=z=>{G.value?W(z):V()},$=t.computed(()=>G.value&&H.value?n:a),T=t.computed(()=>({action:!0}));return()=>{const z={class:b.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:V,onFocus:w,onBlur:P};s&&(z.disabled=!0);const M=[],L=t.h("input",z);M.push(L);const q=[],K={class:["action-icon"]},j=t.h($.value,K),Z={class:T.value,onClick:R},O=t.h("view",Z,{default:()=>[j]});if(q.push(O),x.value){const ve=t.h("view",{class:D.value},[i.unit]);q.push(ve)}const X={class:E.value},Q=t.h("view",X,{default:()=>q});M.push(Q);const ee={default:()=>M};ee.label=c.slots.default,ee.prepend=c.slots.prepend,ee.append=c.slots.append,ee.fixedPreTip=c.slots.fixedPreTip,ee.fixedTip=c.slots.fixedTip;const _=he(i,vn);_.disabled=!1,_.readonly=d.value||m.value,_.visible=C.value,_["onUpdate:visible"]=B,_.modelValue=k.value,_["onUpdate:modelValue"]=I,_.text=v.value,_["onUpdate:text"]=F,_.onChange=A;const oe=t.h(r,_);ee.hide=()=>[oe];const le=he(i,de,ue);return t.h(l,le,ee)}}}}const{componentName:bu,create:Su,scope:Cu}=Y("picker-item"),Qn=Su(ku(bu,Cu,be,te.CircleClose,te.ArrowRight,yt,!1)),_t=(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=_t(f.children,f,l)),f}),rs=(e,o)=>{let l=0,n;for(;(n=e[l++])&&o(n)!==!0;)n.children&&n.children.length&&rs(n.children,o)},wu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Nu=(e,o)=>{const l={...wu,...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},Bu=/scroll|auto|overlay/i,ss=window;function Vu(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function bn(e,o=ss){let l=e;for(;l&&l!==o&&Vu(l);){const{overflowY:n}=window.getComputedStyle(l);if(Bu.test(n))return l;l=l.parentNode}return o}function is(e,o=ss){const l=t.ref();return t.onMounted(()=>{e.value&&(l.value=bn(e.value,o))}),l}const{create:Au}=Y("sticky"),$u=Au({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 g=()=>{let v=!1;if(e.position==="top")v=d?r.value>m.top&&y.bottom>0:r.value>m.top;else{const u=document.documentElement.clientHeight;v=d?y.bottom>0&&u-r.value-h.height>y.top:u-r.value<m.bottom}return v},k=()=>{if(d)if(e.position==="top"){const v=y.bottom-r.value-h.height;return v<0?v:0}else{const v=document.documentElement.clientHeight,u=y.bottom-(v-r.value);return u<0?u:0}return 0};a.transform=k(),a.fixed=g()};return t.watch(()=>a.fixed,d=>{o("change",d)}),t.onMounted(()=>{c(),bn(l.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{bn(l.value).removeEventListener("scroll",c)}),{rootRef:l,rootStyle:s,stickyRef:n,stickyStyle:i}}});function Tu(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 zt=J($u,[["render",Tu]]),Eu=(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=Ue();let d="";const m=(h,y)=>{let g=h;switch(e.direction=="horizontal"?(d=h>0?"right":"left",g=Math.abs(g)/r.value.width*100):(d=y>0?"bottom":"top",g=y,g=Math.abs(g)/r.value?.height*100),g>85&&(g=85),d){case"left":case"top":o.isEnd()&&(g=0,i.moving=!1);break;case"right":case"bottom":g=-g,o.isBegin()&&(g=0,i.moving=!1);break}i.offset=g};return{touchMethods:{onTouchStart(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 Du{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:xu}=Y("tabs"),Iu=xu({components:{[zt.name]:zt,JoySmile:te.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:o,slots:l}){const n=t.ref(null);let a;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=A=>{A.forEach((w,P)=>{let F=w.type;if(F=F.name||F,F=="fox-tab-pane"){let E=new Du;if(w.props?.title||w.props?.["pane-key"]||w.props?.paneKey){let x=lt(w.props?.["pane-key"]),U=x=="number"||x=="string"?String(w.props?.["pane-key"]):null,D=lt(w.props?.paneKey),W=D=="number"||D=="string"?String(w.props?.paneKey):null;E.title=w.props?.title,E.paneKey=U||W||String(P),E.disabled=w.props?.disabled}r.value.push(E)}else{if(w.children==" ")return;Array.isArray(w.children)&&s(w.children)}})},i=t.ref(e.modelValue||0),c=A=>{let w=r.value.findIndex(P=>P.paneKey==A);r.value.length==0||w==-1||(i.value=w)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),f=t.ref([]),h=A=>{const w=m.value,P=f.value;if(!w||!P||!P[i.value])return;const F=P[i.value];let E=0;e.direction==="vertical"?E=F.offsetTop-w.offsetTop+10-(w.offsetHeight-F.offsetHeight)/2:E=F.offsetLeft-(w.offsetWidth-F.offsetWidth)/2,y(w,E,A?0:.3,e.direction)},y=(A,w,P,F)=>{let E=0;const x=F==="horizontal"?A.scrollLeft:A.scrollTop,U=P===0?1:Math.round(P*1e3/16);function D(){F==="horizontal"?A.scrollLeft+=(w-x)/U:A.scrollTop+=(w-x)/U,++E<U&&Le(D)}D()},g=(A=l.default?.())=>{r.value=[],A=A?.filter(w=>typeof w.children!="string"),A&&A.length&&s(A),c(e.modelValue),t.nextTick(()=>{h()})},k=A=>{a=A.fixed};t.watch(()=>l.default?.(),A=>{g(A)});const v=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,A=>{if(c(A),h(),a){let w=Ve(n.value).top+v(),P=Math.ceil(w-e.top);window.scrollTo({top:P,behavior:"smooth"})}}),t.onMounted(g),t.onActivated(g);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:A=>{o("update:modelValue",A.paneKey),o("change",A)},tabChange:(A,w)=>{o("click",A),!(A.disabled||i.value==w)&&(i.value=w,u.updateValue(A))},setTabItemRef:(A,w)=>{f.value[w]=A}},{tabsContentRef:p,touchState:b,touchMethods:S}=Eu(e,u),N=t.computed(()=>{let A=i.value*100;b.moving&&(A+=b.offset);let w={transform:e.direction=="horizontal"?`translate3d(-${A}%, 0, 0)`:`translate3d( 0,-${A}%, 0)`,transitionDuration:b.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(w={}),w}),C=t.computed(()=>({background:e.background})),V=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),B=t.computed(()=>{if(!e.titleGutter)return{};const A=pe(e.titleGutter);return e.direction==="vertical"?{marginTop:A,marginBottom:A}:{marginLeft:A,marginRight:A}}),I=t.computed(()=>l.fixedTitle);return{navRef:m,tabsContentRef:p,titles:r,contentStyle:N,tabsNavStyle:C,titleStyle:B,tabsActiveStyle:V,container:n,getScrollY:d,onStickyScroll:k,...u,...S,hasFixedTitle:I}}}),qu=["onClick"],Mu={key:0,class:"fox-tabs__titles-fixed-item"},zu=["onClick"],Pu={key:0,class:"fox-tabs__titles-fixed-item"};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(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,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},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,qu))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Mu,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,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)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,zu))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Pu,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:o[0]||(o[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:o[1]||(o[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:o[2]||(o[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:o[3]||(o[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const Pt=J(Iu,[["render",Lu]]),{create:Fu}=Y("tab-pane"),Ru=Fu({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 Ou(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 Lt=J(Ru,[["render",Ou]]);class Ja{nodes;config;constructor(o,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=_t(o,null,this.config)}updateChildren(o,l){l?l.children=_t(o,l,this.config):this.nodes=_t(o,null,this.config)}getNodeByValue(o){let l;return rs(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:Ku,scope:Uu}=Y("cascader-pane"),Hu=Ku({components:{Loading:te.Loading,Checklist:te.Checklist,[Pt.name]:Pt,[Lt.name]:Lt},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 Ja([],{})),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=Nu(u,l.value.convertConfig)),s.value=new Ja(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(N,C)=>{const V=await N;await y(V);const B=V?.children?.find(I=>I.value===C);return B&&p.push(C),Promise.resolve(B)},Promise.resolve(b));await y(S),a.value=!1}}p.length&&u===e.modelValue&&s.value.getPathNodesByValue(p).map((S,N)=>{n.value=N,v.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(N=>{l.value.lazyLoad?.(u,N)}),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)},g=u=>{const p=u.map(b=>b.value);r.value=p,o("change",p,u),o("update:modelValue",p,u)},{t:k}=ae.useFoxI18n(Uu),v={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 N=i.value.map(C=>C.selectedNode);g(N),o("pathChange",N)}return}if(s.value.hasChildren(u,c.value)){const N=u.level+1;if(i.value[n.value].selectedNode=u,i.value=i.value.slice(0,N),i.value.push({nodes:u.children||[],selectedNode:null}),n.value=N,!p){const C=i.value.map(V=>V.selectedNode);o("pathChange",C)}return}m=u,!S&&(await y(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:k("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}}}),ju={role:"menu",class:"fox-cascader__pane"},Wu=["aria-checked","aria-disabled","onClick"],Yu={class:"fox-cascader__item__title"},Xu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Qu(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",ju,[(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",Yu,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,Wu))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Xu]),_:1}))]),_:1},8,["modelValue","onClick"])}const Gu=J(Hu,[["render",Qu]]),{create:Zu}=Y("cascader"),Ju=Zu({components:{FoxCascaderPane:Gu,FoxPopup:ie},props:{...ze,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit: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}}}),_u=["innerHTML"];function ed(e,o,l,n,a,r){const s=t.resolveComponent("FoxCascaderPane"),i=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":o[0]||(o[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,_u)):t.createCommentVNode("",!0),t.createVNode(s,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["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 Io=J(Ju,[["render",ed]]);function Ft(e,o){const l=e.textKey??"text";return o[l]??""}function Rt(e,o){const l=e.valueKey??"value";return o[l]}function cs(e,o){const l=e.childrenKey??"children";return o[l]}function Zt(e,o=[]){const l={texts:[],values:[]};for(let n=0;n<o.length;n++){const a=o[n],r=Ft(e,a),s=Rt(e,a);l.texts.push(r),l.values.push(s??"")}return l}function us(e,o,l,n,a=[]){if(!l)return;const r=l[n];for(let s=0;s<o.length;s++)if(Ft(e,o[s])===r){const c=Rt(e,o[s])??"",d={[e.textKey]:r,[e.valueKey]:c};a.push(d);const m=cs(e,o[s]);Array.isArray(m)&&us(e,m,l,n+1,a);return}}function ds(e,o,l,n,a=[]){if(!l)return;const r=l[n];for(let s=0;s<o.length;s++)if(Rt(e,o[s])===r){const c=Ft(e,o[s])??"",d={[e.textKey]:c,[e.valueKey]:r};a.push(d);const m=cs(e,o[s]);Array.isArray(m)&&ds(e,m,l,n+1,a);return}}function Jo(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=Ft(e,o[n]),r=Ft(e,l[n]);if(a!==r)return!1;const s=Rt(e,o[n]),i=Rt(e,l[n]);if(s!==i)return!1}return!0}let td=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=Ge(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Be(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function od(){const e=t.getCurrentInstance();return new td(e.proxy)}function nd(e,o,l,n,a,r,s=!1){return{props:{...ue,...de,modelValue:{type:[Array,String]},pathNodes:{type:[Array]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=Ae(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}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),k=od(),v=t.ref([]);t.watch([()=>i.source,()=>i.params],async([L,q])=>{L&&(v.value=await k.load(L,q))},{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([L])=>{if(i.lazy===!0){S.value.length==0&&(u.value=Array.isArray(L)?L:[],b.value=Array.isArray(L)?L:[]);return}if(i.valueType==="item"){let q=L;if(!Jo(i,q,S.value)){S.value=q;let K=Zt(i,q);u.value=K.texts,b.value=K.values}}else if(i.valueType==="text"){let q=L,K=[];if(us(i,v.value,q,0,K),!Jo(i,K,S.value)){S.value=K;let j=Zt(i,K);q.value=j.texts,b.value=j.values}}else{let q=[];if(ds(i,v.value,L,0,q),!Jo(i,q,S.value)){S.value=q;let K=Zt(i,q);u.value=K.texts,b.value=K.values}}},{immediate:!0});const N="fox-input-item",C=t.computed(()=>({[N]:!0,[`${N}__disabled`]:d.value})),V=Ne(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const L={};return V.value&&(L["text-align"]=V.value),L}),I=t.ref(!1),A=()=>{d.value===!0||m.value===!0||(I.value=!0)},w=L=>{I.value=L},P=(L,q)=>{let K=q.map(Z=>{if(Z==null)return Z;let O={...Z};return Reflect.deleteProperty(O,"text"),O[i.textKey]=Z.text??"",Reflect.deleteProperty(O,"value"),O[i.valueKey]=Z.value??"",O});S.value=K;let j=Zt(i,K);u.value=j.texts,b.value=j.values,i.valueType==="text"?(f("change",u.value,K),f("update:modelValue",u.value)):i.valueType==="item"?(f("change",K,K),f("update:modelValue",K)):(f("change",b.value,K),f("update:modelValue",b.value)),f("update:pathNodes",K)},F=L=>{let q=L.map(K=>{if(K==null)return K;let j={...K};return Reflect.deleteProperty(j,"text"),j[i.textKey]=K.text??"",Reflect.deleteProperty(j,"value"),j[i.valueKey]=K.value??"",j});f("pathChange",q)},E=L=>{g.value=!0,f("focus",b.value,L)},x=L=>{setTimeout(()=>{g.value=!1},0),f("blur",b.value,L)},U=t.computed(()=>({[`${N}__append`]:!0})),D=t.computed(()=>ge(i.unit)>0),W=t.computed(()=>ge(i.unit)>0&&!g.value),H=t.computed(()=>({hidden:!W.value})),G=L=>{S.value=[],u.value=[],b.value=[],f("update:modelValue",[]),f("change",[],L),f("clear",[]),f("update:pathNodes",[])},R=t.computed(()=>i.clearable&&!d.value&&!m.value),$=t.computed(()=>{let L=b.value&&b.value.length>0;return i.clearable&&L&&g.value}),T=L=>{$.value?G(L):A()},z=t.computed(()=>$.value&&R.value?n:a),M=t.computed(()=>({action:!0}));return()=>{const L={class:C.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:A,onFocus:E,onBlur:x};s&&(L.disabled=!0);const q=[],K=t.h("input",L);q.push(K);const j=[],Z={class:["action-icon"]},O=t.h(z.value,Z),X={class:M.value,onClick:T},Q=t.h("view",X,{default:()=>[O]});if(j.push(Q),D.value){const Ze=t.h("view",{class:H.value},[i.unit]);j.push(Ze)}const ee={class:U.value},_=t.h("view",ee,{default:()=>j});q.push(_);const oe={default:()=>q};oe.label=c.slots.default,oe.prepend=c.slots.prepend,oe.append=c.slots.append,oe.fixedPreTip=c.slots.fixedPreTip,oe.fixedTip=c.slots.fixedTip;let le={};le.visible=I.value,le["onUpdate:visible"]=w,le.modelValue=b.value,le.onChange=P,le.onPathChange=F,le.options=v.value,le.title=i.title,le.lazy=i.lazy,le.lazyLoad=i.lazyLoad,le.valueKey=i.valueKey,le.textKey=i.textKey,le.childrenKey=i.childrenKey,le.convertConfig=i.convertConfig;const Te=t.h(r,le);oe.hide=()=>[Te];const ve=he(i,de,ue);return t.h(l,ve,oe)}}}}const{componentName:ld,create:ad,scope:rd}=Y("cascader-item"),Gn=ad(nd(ld,rd,be,te.CircleClose,te.ArrowRight,Io,!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 fs={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",g="date",k="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("_")},b=function(F,E,x){var U=String(F);return!U||U.length>=E?F:""+Array(E+1-U.length).join(x)+F},S={s:b,z:function(F){var E=-F.utcOffset(),x=Math.abs(E),U=Math.floor(x/60),D=x%60;return(E<=0?"+":"-")+b(U,2,"0")+":"+b(D,2,"0")},m:function F(E,x){if(E.date()<x.date())return-F(x,E);var U=12*(x.year()-E.year())+(x.month()-E.month()),D=E.clone().add(U,f),W=x-D<0,H=E.clone().add(U+(W?-1:1),f);return+(-(U+(x-D)/(W?D-H:H-D))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:f,y,w:m,d,D:g,h:c,m:i,s,ms:r,Q:h}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},N="en",C={};C[N]=p;var V=function(F){return F instanceof w},B=function F(E,x,U){var D;if(!E)return N;if(typeof E=="string"){var W=E.toLowerCase();C[W]&&(D=W),x&&(C[W]=x,D=W);var H=E.split("-");if(!D&&H.length>1)return F(H[0])}else{var G=E.name;C[G]=E,D=G}return!U&&D&&(N=D),D||!U&&N},I=function(F,E){if(V(F))return F.clone();var x=typeof E=="object"?E:{};return x.date=F,x.args=arguments,new w(x)},A=S;A.l=B,A.i=V,A.w=function(F,E){return I(F,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var w=function(){function F(x){this.$L=B(x.locale,null,!0),this.parse(x)}var E=F.prototype;return E.parse=function(x){this.$d=function(U){var D=U.date,W=U.utc;if(D===null)return new Date(NaN);if(A.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var H=D.match(v);if(H){var G=H[2]-1||0,R=(H[7]||"0").substring(0,3);return W?new Date(Date.UTC(H[1],G,H[3]||1,H[4]||0,H[5]||0,H[6]||0,R)):new Date(H[1],G,H[3]||1,H[4]||0,H[5]||0,H[6]||0,R)}}return new Date(D)}(x),this.$x=x.x||{},this.init()},E.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},E.$utils=function(){return A},E.isValid=function(){return this.$d.toString()!==k},E.isSame=function(x,U){var D=I(x);return this.startOf(U)<=D&&D<=this.endOf(U)},E.isAfter=function(x,U){return I(x)<this.startOf(U)},E.isBefore=function(x,U){return this.endOf(U)<I(x)},E.$g=function(x,U,D){return A.u(x)?this[U]:this.set(D,x)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(x,U){var D=this,W=!!A.u(U)||U,H=A.p(x),G=function(K,j){var Z=A.w(D.$u?Date.UTC(D.$y,j,K):new Date(D.$y,j,K),D);return W?Z:Z.endOf(d)},R=function(K,j){return A.w(D.toDate()[K].apply(D.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(j)),D)},$=this.$W,T=this.$M,z=this.$D,M="set"+(this.$u?"UTC":"");switch(H){case y:return W?G(1,0):G(31,11);case f:return W?G(1,T):G(0,T+1);case m:var L=this.$locale().weekStart||0,q=($<L?$+7:$)-L;return G(W?z-q:z+(6-q),T);case d:case g:return R(M+"Hours",0);case c:return R(M+"Minutes",1);case i:return R(M+"Seconds",2);case s:return R(M+"Milliseconds",3);default:return this.clone()}},E.endOf=function(x){return this.startOf(x,!1)},E.$set=function(x,U){var D,W=A.p(x),H="set"+(this.$u?"UTC":""),G=(D={},D[d]=H+"Date",D[g]=H+"Date",D[f]=H+"Month",D[y]=H+"FullYear",D[c]=H+"Hours",D[i]=H+"Minutes",D[s]=H+"Seconds",D[r]=H+"Milliseconds",D)[W],R=W===d?this.$D+(U-this.$W):U;if(W===f||W===y){var $=this.clone().set(g,1);$.$d[G](R),$.init(),this.$d=$.set(g,Math.min(this.$D,$.daysInMonth())).$d}else G&&this.$d[G](R);return this.init(),this},E.set=function(x,U){return this.clone().$set(x,U)},E.get=function(x){return this[A.p(x)]()},E.add=function(x,U){var D,W=this;x=Number(x);var H=A.p(U),G=function(T){var z=I(W);return A.w(z.date(z.date()+Math.round(T*x)),W)};if(H===f)return this.set(f,this.$M+x);if(H===y)return this.set(y,this.$y+x);if(H===d)return G(1);if(H===m)return G(7);var R=(D={},D[i]=n,D[c]=a,D[s]=l,D)[H]||1,$=this.$d.getTime()+x*R;return A.w($,this)},E.subtract=function(x,U){return this.add(-1*x,U)},E.format=function(x){var U=this,D=this.$locale();if(!this.isValid())return D.invalidDate||k;var W=x||"YYYY-MM-DDTHH:mm:ssZ",H=A.z(this),G=this.$H,R=this.$m,$=this.$M,T=D.weekdays,z=D.months,M=function(j,Z,O,X){return j&&(j[Z]||j(U,W))||O[Z].slice(0,X)},L=function(j){return A.s(G%12||12,j,"0")},q=D.meridiem||function(j,Z,O){var X=j<12?"AM":"PM";return O?X.toLowerCase():X},K={YY:String(this.$y).slice(-2),YYYY:this.$y,M:$+1,MM:A.s($+1,2,"0"),MMM:M(D.monthsShort,$,z,3),MMMM:M(z,$),D:this.$D,DD:A.s(this.$D,2,"0"),d:String(this.$W),dd:M(D.weekdaysMin,this.$W,T,2),ddd:M(D.weekdaysShort,this.$W,T,3),dddd:T[this.$W],H:String(G),HH:A.s(G,2,"0"),h:L(1),hh:L(2),a:q(G,R,!0),A:q(G,R,!1),m:String(R),mm:A.s(R,2,"0"),s:String(this.$s),ss:A.s(this.$s,2,"0"),SSS:A.s(this.$ms,3,"0"),Z:H};return W.replace(u,function(j,Z){return Z||K[j]||H.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(x,U,D){var W,H=A.p(U),G=I(x),R=(G.utcOffset()-this.utcOffset())*n,$=this-G,T=A.m(this,G);return T=(W={},W[y]=T/12,W[f]=T,W[h]=T/3,W[m]=($-R)/6048e5,W[d]=($-R)/864e5,W[c]=$/a,W[i]=$/n,W[s]=$/l,W)[H]||$,D?T:A.a(T)},E.daysInMonth=function(){return this.endOf(f).$D},E.$locale=function(){return C[this.$L]},E.locale=function(x,U){if(!x)return this.$L;var D=this.clone(),W=B(x,U,!0);return W&&(D.$L=W),D},E.clone=function(){return A.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},F}(),P=w.prototype;return I.prototype=P,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",d],["$M",f],["$y",y],["$D",g]].forEach(function(F){P[F[1]]=function(E){return this.$g(E,F[0],F[1])}}),I.extend=function(F,E){return F.$i||(F(E,w,I),F.$i=!0),I},I.locale=B,I.isDayjs=V,I.unix=function(F){return I(1e3*F)},I.en=C[N],I.Ls=C,I.p={},I})})(fs);var sd=fs.exports;const Pe=je(sd);var ms={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(k){return(k=+k)+(k>68?1900:2e3)},d=function(k){return function(v){this[k]=+v}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(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}(k)}],f=function(k){var v=i[k];return v&&(v.indexOf?v:v.s.concat(v.f))},h=function(k,v){var u,p=i.meridiem;if(p){for(var b=1;b<=24;b+=1)if(k.indexOf(p(b,0,v))>-1){u=b>12;break}}else u=k===(v?"pm":"PM");return u},y={A:[s,function(k){this.afternoon=h(k,!1)}],a:[s,function(k){this.afternoon=h(k,!0)}],S:[/\d/,function(k){this.milliseconds=100*+k}],SS:[a,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],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(k){var v=i.ordinal,u=k.match(/\d+/);if(this.day=u[0],v)for(var p=1;p<=31;p+=1)v(p).replace(/\[|\]/g,"")===k&&(this.day=p)}],M:[r,d("month")],MM:[a,d("month")],MMM:[s,function(k){var v=f("months"),u=(f("monthsShort")||v.map(function(p){return p.slice(0,3)})).indexOf(k)+1;if(u<1)throw new Error;this.month=u%12||u}],MMMM:[s,function(k){var v=f("months").indexOf(k)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(k){this.year=c(k)}],YYYY:[/\d{4}/,d("year")],Z:m,ZZ:m};function g(k){var v,u;v=k,u=i&&i.formats;for(var p=(k=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,A,w){var P=w&&w.toUpperCase();return A||u[w]||l[w]||u[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,E,x){return E||x.slice(1)})})).match(n),b=p.length,S=0;S<b;S+=1){var N=p[S],C=y[N],V=C&&C[0],B=C&&C[1];p[S]=B?{regex:V,parser:B}:N.replace(/^\[|\]$/g,"")}return function(I){for(var A={},w=0,P=0;w<b;w+=1){var F=p[w];if(typeof F=="string")P+=F.length;else{var E=F.regex,x=F.parser,U=I.slice(P),D=E.exec(U)[0];x.call(A,D),I=I.replace(D,"")}}return function(W){var H=W.afternoon;if(H!==void 0){var G=W.hours;H?G<12&&(W.hours+=12):G===12&&(W.hours=0),delete W.afternoon}}(A),A}}return function(k,v,u){u.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(c=k.parseTwoDigitYear);var p=v.prototype,b=p.parse;p.parse=function(S){var N=S.date,C=S.utc,V=S.args;this.$u=C;var B=V[1];if(typeof B=="string"){var I=V[2]===!0,A=V[3]===!0,w=I||A,P=V[2];A&&(P=V[2]),i=this.$locale(),!I&&P&&(i=u.Ls[P]),this.$d=function(U,D,W){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*U);var H=g(D)(U),G=H.year,R=H.month,$=H.day,T=H.hours,z=H.minutes,M=H.seconds,L=H.milliseconds,q=H.zone,K=new Date,j=$||(G||R?1:K.getDate()),Z=G||K.getFullYear(),O=0;G&&!R||(O=R>0?R-1:K.getMonth());var X=T||0,Q=z||0,ee=M||0,_=L||0;return q?new Date(Date.UTC(Z,O,j,X,Q,ee,_+60*q.offset*1e3)):W?new Date(Date.UTC(Z,O,j,X,Q,ee,_)):new Date(Z,O,j,X,Q,ee,_)}catch{return new Date("")}}(N,B,C),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),w&&N!=this.format(B)&&(this.$d=new Date("")),i={}}else if(B instanceof Array)for(var F=B.length,E=1;E<=F;E+=1){V[1]=B[E-1];var x=u.apply(this,V);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}E===F&&(this.$d=new Date(""))}else b.call(this,S)}}})})(ms);var id=ms.exports;const cd=je(id);var ps={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)}}})})(ps);var ud=ps.exports;const dd=je(ud);var hs={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,g,k){var v=f.name?f:f.$locale(),u=s(v[h]),p=s(v[y]),b=u||p.map(function(N){return N.slice(0,g)});if(!k)return b;var S=v.weekStart;return b.map(function(N,C){return b[(C+(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(g,k,v){return k||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)}}})})(hs);var fd=hs.exports;const md=je(fd);var gs={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)}}})})(gs);var pd=gs.exports;const hd=je(pd);var ys={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}}})})(ys);var gd=ys.exports;const yd=je(gd);var vs={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")}}})})(vs);var vd=vs.exports;const kd=je(vd);var ks={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)}}})})(ks);var bd=ks.exports;const Sd=je(bd);var bs={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)}}})})(bs);var Cd=bs.exports;const wd=je(Cd);Pe.extend(md);Pe.extend(dd);Pe.extend(cd);Pe.extend(hd);Pe.extend(yd);Pe.extend(kd);Pe.extend(Sd);Pe.extend(wd);const ne={format(e,o){return Pe(e).format(o)},parser(e,o){return Pe(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]=ne.getNumTwoBit(Number(o[2])),o[3]=`${o[0]}-${o[1]}-${o[2]}`,o[4]=ne.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}},_a=new Date().getFullYear(),Zn={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"},mo=(e,o,l)=>{let n;if(Oe(o)?n=o:typeof o=="string"&&ge(o)>0?n=ne.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)},Sn=(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()),ne.format(new Date(n),l)};let Cn={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(_a-10,0,1),validator:Oe},maxDate:{type:Date,default:()=>new Date(_a+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:Nd,scope:Bd}=Y("date-picker"),Vd=Nd({components:{[yt.name]:yt},props:{...Cn},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(Bd),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 N=1,C=1,V=0,B=0;u==="max"&&(N=12,C=r(p.getFullYear(),p.getMonth()+1),V=23,B=59);const I=B;return p.getFullYear()===S&&(N=b.getMonth()+1,p.getMonth()+1===N&&(C=b.getDate(),p.getDate()===C&&(V=b.getHours(),p.getHours()===V&&(B=b.getMinutes())))),{[`${u}Year`]:S,[`${u}Month`]:N,[`${u}Date`]:C,[`${u}Hour`]:V,[`${u}Minute`]:B,[`${u}Seconds`]:I}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:u,maxDate:p,maxMonth:b,maxHour:S,maxMinute:N,maxSeconds:C}=s("max",h.value),{minYear:V,minDate:B,minMonth:I,minHour:A,minMinute:w,minSeconds:P}=s("min",h.value);let F=[{type:"year",range:[V,u]},{type:"month",range:[I,b]},{type:"day",range:[B,p]},{type:"hour",range:[A,S]},{type:"minute",range:[w,N]},{type:"seconds",range:[P,C]}];switch(e.type){case"date":F=F.slice(0,3);break;case"datetime":F=F.slice(0,5);break;case"time":F=F.slice(3,6);break;case"year-month":F=F.slice(0,2);break;case"month-day":F=F.slice(1,3);break;case"datehour":F=F.slice(0,4);break;case"hour-minute":F=F.slice(3,5);break}return F}),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=mo(e,e.modelValue,e.valueFormat):u=mo(e,p,Zn[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 N=m(S.type,u);b.push(N)}),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==="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==="year-month"){let p=u,b=new Date(p[0],p[1]-1);h.value=b}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}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,b=h.value??new Date,S=new Date(b.getFullYear(),b.getMonth(),b.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=>{y(u),a.value=!1;let p=h.value??new Date;if(e.valueFormat){let b=Sn(e,p,e.valueFormat);o("update:modelValue",b)}else o("update:modelValue",p);o("update:visible",!1),o("confirm",u)},onClear:()=>{o("clear")}}}});function Ad(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 qo=J(Vd,[["render",Ad]]);function $d(e){let o=e.format;if(!o){let l=e.type??"date";o=Zn[l]}return o}function Td(e,o,l,n,a,r,s=!1){return{props:{...ue,...de,...Cn,format:{type:String},placeholder:{type:String},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=Ae(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}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),v=Ee(i,"modelValue",T=>T==null?null:typeof T=="string"?T.length==0?null:i.valueFormat?mo(i,T,i.valueFormat)??T:mo(i,T,Zn[i.type])??T:Oe(T)?T:null),u=t.computed(()=>{if(!v.value)return"";const T=$d(i);return Sn(i,v.value,T)}),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const T={};return S.value&&(T["text-align"]=S.value),T}),C=t.ref(!1),V=()=>{C.value=!0},B=()=>{C.value=!1};c.expose({showPicker:V,hidePicker:B});const I=T=>{C.value=T},A=T=>{if(v.value=T,i.valueFormat){let z=Sn(i,T,i.valueFormat);f("update:modelValue",z,{}),f("change",z,{})}else f("update:modelValue",T,{}),f("change",T,{})},w=T=>{let M=T.target.value;g.value=!0,f("focus",M,T)},P=T=>{setTimeout(()=>{g.value=!1},0);let M=T.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),f("blur",M,T)},F=t.computed(()=>({[`${p}__append`]:!0})),E=t.computed(()=>ge(i.unit)>0),x=t.computed(()=>ge(i.unit)>0&&!g.value),U=t.computed(()=>({hidden:!x.value})),D=T=>{v.value="",f("update:modelValue","",T),f("change","",T),f("clear",""),B()},W=t.computed(()=>i.clearable&&!d.value&&!m.value),H=t.computed(()=>{let T=ge(v.value)>0;return i.clearable&&T&&g.value}),G=T=>{H.value?D(T):V()},R=t.computed(()=>H.value&&W.value?n:a),$=t.computed(()=>({action:!0}));return()=>{const T={class:b.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:V,onFocus:w,onBlur:P};s&&(T.disabled=!0);const z=[],M=t.h("input",T);z.push(M);const L=[],q={class:["action-icon"]},K=t.h(R.value,q),j={class:$.value,onClick:G},Z=t.h("view",j,{default:()=>[K]});if(L.push(Z),E.value){const ve=t.h("view",{class:U.value},[i.unit]);L.push(ve)}const O={class:F.value},X=t.h("view",O,{default:()=>L});z.push(X);const Q={default:()=>z};Q.label=c.slots.default,Q.prepend=c.slots.prepend,Q.append=c.slots.append,Q.fixedPreTip=c.slots.fixedPreTip,Q.fixedTip=c.slots.fixedTip;const ee=he(i,Cn);ee.valueFormat=null,ee.disabled=!1,ee.readonly=d.value||m.value,ee.visible=C.value,ee["onUpdate:visible"]=I,ee.modelValue=v.value,ee["onUpdate:modelValue"]=A,ee.onClear=D;const _={};if(c.slots.top){const ve=c.slots.top();_.top=()=>ve}if(c.slots.bottom){const ve=c.slots.bottom();_.default=()=>ve}const oe=t.h(r,ee,_);Q.hide=()=>[oe];const le=he(i,de,ue);return t.h(l,le,Q)}}}}const{create:Ed,componentName:Dd,scope:xd}=Y("date-item"),Jn=Ed(Td(Dd,xd,be,te.CircleClose,te.Date,qo,!1)),Id=39,qd=64,{create:Md,scope:zd}=Y("calendar-pane"),Pd=Md({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:ne.getDay(0)},endDate:{type:String,default:ne.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:o,slots:l}){const{toLocaleRefs:n,t:a}=ae.useFoxI18n(zd),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])),g=t.computed(()=>l.btn),k=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=q=>q.split("-"),b=q=>ne.isEqual(u.currDate[0],q),S=q=>ne.isEqual(u.currDate[1],q),N=q=>u.currDate?.length>0?u.currDate?.some(K=>ne.isEqual(K,q)):!1,C=(q,K)=>K.curData[0]+"-"+K.curData[1]+"-"+ne.getNumTwoBit(+q.day),V=(q,K)=>{const j=C(q,K),{type:Z}=e;return q.type=="curr"?ne.isEqual(u.currDate,j)||(Z=="range"||Z=="week")&&(b(j)||S(j))||Z=="multiple"&&N(j)?`${u.dayPrefix}--active`:u.propStartDate&&ne.compareDate(j,u.propStartDate)||u.propEndDate&&ne.compareDate(u.propEndDate,j)?`${u.dayPrefix}--disabled`:(Z=="range"||Z=="week")&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&ne.compareDate(u.currDate[0],j)&&ne.compareDate(j,u.currDate[1])?`${u.dayPrefix}--choose`:null:`${u.dayPrefix}--disabled`},B=()=>{const{type:q}=e;if(q=="range"&&u.chooseData.length==2||q!="range"){let K=u.chooseData.slice(0);q=="week"&&(K={weekDate:[A(u.chooseData[0]),A(u.chooseData[1])]}),o("choose",K),e.poppable&&o("update")}},I=(q,K,j=!1)=>{if(V(q,K)!=`${u.dayPrefix}--disabled`){const{type:Z}=e;let[O,X]=K.curData,Q=[...K.curData];if(Q[2]=ne.getNumTwoBit(Number(q.day)),Q[3]=`${Q[0]}-${Q[1]}-${Q[2]}`,Q[4]=ne.getWhatDay(+Q[0],+Q[1],+Q[2]),Z=="multiple")if(u.currDate?.length>0){let ee;u.currDate?.forEach((_,oe)=>{_==Q[3]&&(ee=oe)}),j?u.chooseData.push([...Q]):ee!==void 0?(u.currDate.splice(ee,1),u.chooseData.splice(ee,1)):(u.currDate.push(Q[3]),u.chooseData.push([...Q]))}else u.currDate=[Q[3]],u.chooseData=[[...Q]];else if(Z=="range"){let ee=Object.values(u.currDate).length;ee==2||ee==0?u.currDate=[Q[3]]:ne.compareDate(u.currDate[0],Q[3])?Array.isArray(u.currDate)&&u.currDate.push(Q[3]):Array.isArray(u.currDate)&&u.currDate.unshift(Q[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...Q]]:ne.compareDate(u.chooseData[0][3],Q[3])?u.chooseData=[...u.chooseData,[...Q]]:u.chooseData=[[...Q],...u.chooseData]}else if(Z=="week"){let ee=ne.getWeekDate(O,X,q.day,e.firstDayOfWeek);u.propStartDate&&ne.compareDate(ee[0],u.propStartDate)&&ee.splice(0,1,u.propStartDate),u.propEndDate&&ne.compareDate(u.propEndDate,ee[1])&&ee.splice(1,1,u.propEndDate),u.currDate=ee,u.chooseData=[ne.formatResultDate(ee[0]),ne.formatResultDate(ee[1])]}else u.currDate=Q[3],u.chooseData=[...Q];if(!j){let ee=u.chooseData;Z=="week"&&(ee={weekDate:[A(u.chooseData[0]),A(u.chooseData[1])]}),o("select",ee),(e.isAutoBackFill||!e.poppable)&&B()}}},A=q=>{let[K,j,Z]=q;return{date:q,monthWeekNum:ne.getMonthWeek(K,j,Z,e.firstDayOfWeek),yearWeekNum:ne.getYearWeek(K,j,Z,e.firstDayOfWeek)}},w=q=>{const K=q=="prev"?u.monthsData[0]:u.monthsData[u.monthsData.length-1];let j=parseInt(K.curData[0]),Z=parseInt(K.curData[1].toString().replace(/^0/,""));switch(q){case"prev":Z==1&&(j-=1),Z=Z==1?12:--Z;break;case"next":Z==12&&(j+=1),Z=Z==12?1:++Z;break}return[j+"",ne.getNumTwoBit(Z),ne.getMonthDays(String(j),String(Z))+""]},P=(q,K,j)=>{let{year:Z,month:O}=j;return K=="prev"&&q>=7&&(q-=7),Array.from(Array(q),(X,Q)=>({day:String(Q+1),type:K,year:Z,month:O}))},F=(q,K,j,Z)=>{q=q-e.firstDayOfWeek;let{year:O,month:X}=j;return K=="prev"&&q>=7&&(q-=7),Array.from(Array(Z),(ee,_)=>({day:String(_+1),type:K,year:O,month:X})).slice(Z-q)},E=(q,K)=>{const j=ne.getMonthPreDay(+q[0],+q[1]);let Z=Number(q[1])-1,O=Number(q[0]);Z<=0&&(Z=12,O+=1);const X=ne.getMonthDays(String(q[0]),String(q[1])),Q=ne.getMonthDays(O+"",Z+""),ee={year:q[0],month:q[1]},_={curData:q,title:a("monthTitle",{year:ee.year,month:ee.month}),monthData:[...F(j,"prev",{month:String(Z),year:String(O)},Q),...P(X,"curr",ee)],cssHeight:0,cssScrollHeight:0},oe=_.monthData.length>35?6:5;_.cssHeight=Id+qd*oe;let le=0;u.monthsData.length>0&&(le=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),_.cssScrollHeight=le,K=="next"?(!u.endData||!ne.compareDate(`${u.endData[0]}-${u.endData[1]}-${ne.getMonthDays(u.endData[0],u.endData[1])}`,`${q[0]}-${q[1]}-${q[2]}`))&&u.monthsData.push(_):!u.startData||!ne.compareDate(`${q[0]}-${q[1]}-${q[2]}`,`${u.startData[0]}-${u.startData[1]}-01`)?u.monthsData.unshift(_):u.unLoadPrev=!0},x=()=>{let q=e.startDate?e.startDate:ne.getDay(0),K=e.endDate?e.endDate:ne.getDay(365);u.propStartDate=q,u.propEndDate=K,u.startData=p(q),u.endData=p(K),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(u.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const j={year:Number(u.startData[0]),month:Number(u.startData[1])},Z={year:Number(u.endData[0]),month:Number(u.endData[1])};let O=Z.month-j.month;Z.year-j.year>0&&(O=O+12*(Z.year-j.year)),O<=0&&(O=1),E(u.startData,"next");let X=1;do E(w("next"),"next");while(X++<O);if(u.monthsNum=O,e.type=="range"&&Array.isArray(u.currDate))u.currDate.length>0&&(q&&ne.compareDate(u.currDate[0],q)&&u.currDate.splice(0,1,q),K&&ne.compareDate(K,u.currDate[1])&&u.currDate.splice(1,1,K),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 Q=[],ee={};u.currDate.forEach(_=>{q&&!ne.compareDate(_,q)&&K&&!ne.compareDate(K,_)&&(Object.hasOwnProperty.call(ee,_)||(Q.push(_),ee[_]=_))}),u.currDate=[...Q],u.defaultData=[...p(Q[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[Q,ee,_]=p(u.currDate[0]),oe=ne.getWeekDate(Q,ee,_,e.firstDayOfWeek);u.currDate=oe,q&&ne.compareDate(u.currDate[0],q)&&u.currDate.splice(0,1,q),K&&ne.compareDate(K,u.currDate[1])&&u.currDate.splice(1,1,K),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]}}else u.currDate&&(q&&ne.compareDate(u.currDate,q)?u.currDate=q:K&&!ne.compareDate(u.currDate,K)&&(u.currDate=K),u.defaultData=[...p(u.currDate)])};$e({scrollToDate:q=>{ne.compareDate(q,u.propStartDate)?q=u.propStartDate:ne.compareDate(q,u.propEndDate)||(q=u.propEndDate);let K=p(q);u.monthsData.forEach((j,Z)=>{if(j.title==a("monthTitle",{year:K[0],month:K[1]})&&c.value){let O=u.monthsData[Z].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let X=0,Q=setInterval(()=>{if(X++,c.value){let ee=O/10;c.value.scrollTop=c.value.scrollTop+ee}X>=10&&(clearInterval(Q),c.value&&(c.value.scrollTop=u.monthsData[Z].cssScrollHeight))},40)}else c.value.scrollTop=u.monthsData[Z].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)},doLayout:()=>{let q=0,K=0;u.defaultData.length>0&&u.monthsData.forEach((O,X)=>{O.title==a("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(q=X),(e.type=="range"||e.type=="week")&&O.title==a("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(K=X)}),H(u.monthsNum,q),u.currentIndex=q,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(I({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),I({day:u.defaultData[5],type:"curr"},u.monthsData[K],!0)):e.type=="week"?I({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(O=>{let X=p(O),Q=u.currentIndex;u.monthsData.forEach((ee,_)=>{ee.title==a("monthTitle",{year:X[0],month:X[1]})&&(Q=_)}),I({day:X[2],type:"curr"},u.monthsData[Q],!0)}):I({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let j=u.monthsData[u.monthsData.length-1],Z=j.cssHeight+j.cssScrollHeight;We(()=>{c?.value&&d?.value&&f?.value&&(h.value=c.value.clientHeight,d.value.style.height=`${Z}px`,c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(Z/(u.monthsNum+1))}});const H=(q,K)=>{q>=3?K>0&&K<q?u.defaultRange=[K-1,K+3]:K==0?u.defaultRange=[K,K+4]:K==q&&(u.defaultRange=[K-2,K+2]):u.defaultRange=[0,q+2];let j=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=j},G=(q,K)=>(e.type=="range"||e.type=="week")&&q.type=="curr"&&V(q,K)=="fox-calendar__day--active",R=(q,K)=>G(q,K)&&b(C(q,K)),$=(q,K)=>u.currDate.length>=2&&S(C(q,K))?G(q,K):!1,T=()=>{if(u.currDate.length>=2)return ne.isEqual(u.currDate[0],u.currDate[1])},z=q=>{const K=`${q.year}-${q.month}-${Number(q.day)<10?"0"+q.day:q.day}`;return ne.isEqual(K,ne.date2Str(new Date))},M=q=>{if(u.monthsData.length<=1)return;const K=q.target.scrollTop;let j=Math.floor(K/u.avgHeight);if(j==0)K>=u.monthsData[j+1].cssScrollHeight&&(j+=1);else if(j>0&&j<u.monthsNum-1)K>=u.monthsData[j+1].cssScrollHeight&&(j+=1),K<u.monthsData[j].cssScrollHeight&&(j-=1);else{const Z=Math.round(K+h.value);Z<u.monthsData[j].cssScrollHeight+u.monthsData[j].cssHeight&&K>u.monthsData[j-1].cssScrollHeight&&(j-=1),j+1<=u.monthsNum&&Z>=u.monthsData[j+1].cssScrollHeight+u.monthsData[j+1].cssHeight&&(j+=1),j>=1&&K<u.monthsData[j-1].cssScrollHeight&&(j-=1)}u.currentIndex!==j&&(u.currentIndex=j,H(u.monthsNum,j)),u.yearMonthTitle=u.monthsData[j].title},L=()=>{u.chooseData.splice(0),u.monthsData.splice(0),x()};return x(),t.watch(()=>e.defaultValue,q=>{q&&e.poppable&&L()}),{weeks:i,compConthsData:y,showTopBtn:g,topInfo:k,bottomInfo:v,rangeTip:T,mothsViewScroll:M,getClass:V,isStartTip:R,isEndTip:$,chooseDay:I,isCurrDay:z,confirm:B,months:c,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:m,viewArea:f}}}),Ld={class:"fox-calendar__header"},Fd={key:0,class:"fox-calendar__header-title"},Rd={key:1,class:"fox-calendar__header-slot"},Od={key:2,class:"fox-calendar__header-subtitle"},Kd={class:"fox-calendar__weekdays",ref:"weeksPanel"},Ud={class:"fox-calendar__panel",ref:"monthsPanel"},Hd={class:"fox-calendar__month-title"},jd={class:"fox-calendar__days"},Wd=["onClick"],Yd={class:"fox-calendar__day-value"},Xd={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Qd={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Gd={key:2,class:"fox-calendar__day-tips--curr"},Zd={key:4,class:"fox-calendar__day-tip"},Jd={key:0,class:"fox-calendar__footer"};function _d(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",Fd,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",Od,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Kd,[(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",Ud,[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",Hd,t.toDisplayString(s.title),1),t.createElementVNode("view",jd,[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",Yd,[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",Xd,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Qd,[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",Zd,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,Wd))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Jd,[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 er=J(Pd,[["render",_d]]),ef=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),wn={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:tf}=Y("calendar"),of=tf({components:{[er.name]:er,[ie.name]:ie},props:{...wn},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=k=>{i.value?.scrollToDate(k)},d=()=>{i.value?.initPosition()};t.watch(()=>e.visible,k=>{k&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),$e({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:k=>{o("select",k)},choose:k=>{f(),o("choose",k)},calendarRef:i,showTopBtn:n,topInfo:a,dayInfo:r,bottomInfo:s}}});function nf(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 Mo=J(of,[["render",nf]]),_o=(e,o)=>{let l;return Oe(e)?l=e:typeof e=="string"&&ge(e)>0?l=ne.parser(e,o):l=new Date,l},it=(e,o,l)=>(Oe(o)||(o=new Date),ne.format(o,l)),ct=e=>{let o=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,n=`${e.getDate()}`,a=ne.date2Str(e),r=ne.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[o,l,n,a,r]};function lf(e,o,l,n,{CloseIcon:a,MarkIcon:r},s=!1){return{props:{...ue,...de,...wn,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=Ae(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}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),k=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=(M,L="one",q="YYYY-MM-DD")=>{if(ef(M)){u();return}if(k.value&&Array.isArray(M)&&M.length==2){let K,j;typeof M[0]=="string"?(K=_o(M[0],q),j=_o(M[1],q)):(K=M[0],j=M[1]);let Z=ct(K),O=ct(j);(v.startDate===null||v.startDate.getTime()!==K.getTime()||v.endDate?.getTime()!==j.getTime())&&(v.startDate=K,v.startArray=Z,v.endDate=j,v.endArray=O)}else{let K;typeof M=="string"?K=_o(M,q):K=M;let j=ct(K);(v.startDate===null||v.startDate.getTime()!==K.getTime())&&(v.startDate=K,v.startArray=j)}};p(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,M=>{p(M,i.type,i.valueFormat)});const b=t.computed(()=>{if(v.startDate===null)return"";if(k.value){let M=it(i,v.startDate,i.format),L=it(i,v.endDate,i.format);return`${M} ${i.rangeSeparator} ${L}`}else{let M=it(i,v.startDate,i.format);return i.showWeek&&(M=`${M} ${v.startArray[4]}`),M}}),S=t.computed(()=>{if(v.startDate===null)return null;if(k.value){let M=ne.date2Str(v.startDate),L=ne.date2Str(v.endDate??new Date);return[M,L]}else return ne.date2Str(v.startDate)}),N="fox-input-item",C=t.computed(()=>({[N]:!0,[`${N}__disabled`]:d.value})),V=Ne(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const M={};return V.value&&(M["text-align"]=V.value),M}),I=t.ref(!1),A=()=>{m.value||d.value||(I.value=!0)},w=M=>{I.value=M},P=M=>{if(M){if(k.value&&Array.isArray(M)){let L=M[0],q=fe(L[0]),K=fe(L[1]),j=fe(L[2]),Z=new Date(q,K-1,j),O=M[1];q=fe(O[0]),K=fe(O[1]),j=fe(O[2]);let X=new Date(q,K-1,j);if(v.startDate=Z,v.startArray=ct(Z),v.endDate=X,v.endArray=ct(X),i.valueFormat){let Q=it(i,Z,i.valueFormat),ee=it(i,X,i.valueFormat);f("update:modelValue",[Q,ee],{})}else f("update:modelValue",[Z,X],{})}else{let L=M,q=fe(L[0]),K=fe(L[1]),j=fe(L[2]),Z=new Date(q,K-1,j);if(v.startDate=Z,v.startArray=ct(Z),i.valueFormat){let O=it(i,Z,i.valueFormat);f("update:modelValue",O,{})}else f("update:modelValue",Z,{})}f("change",M,{})}},F=M=>{let q=M.target.value;g.value=!0,f("focus",q,M)},E=M=>{setTimeout(()=>{g.value=!1},0);let q=M.target.value;i.maxLength&&q.length>Number(i.maxLength)&&(q=q.slice(0,Number(i.maxLength))),f("blur",q,M)},x=t.computed(()=>({[`${N}__append`]:!0})),U=t.computed(()=>ge(i.unit)>0),D=t.computed(()=>ge(i.unit)>0&&!g.value),W=t.computed(()=>({hidden:!D.value})),H=M=>{u(),f("update:modelValue",null,M),f("change","",M),f("clear","")},G=t.computed(()=>i.clearable&&!d.value&&!m.value),R=t.computed(()=>{let M=ge(b.value)>0;return i.clearable&&M&&g.value}),$=M=>{R.value?H(M):A()},T=t.computed(()=>R.value&&G.value?a:r),z=t.computed(()=>({action:!0}));return()=>{const M={class:C.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:A,onFocus:F,onBlur:E};s&&(M.disabled=!0);const L=[],q=t.h("input",M);L.push(q);const K=[],j={class:["action-icon"]},Z=t.h(T.value,j),O={class:z.value,onClick:$},X=t.h("view",O,{default:()=>[Z]});if(K.push(X),U.value){const Ze=t.h("view",{class:W.value},[i.unit]);K.push(Ze)}const Q={class:x.value},ee=t.h("view",Q,{default:()=>K});L.push(ee);const _={default:()=>L};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const oe=he(i,wn);oe.visible=I.value,oe["onUpdate:visible"]=w,oe["default-value"]=S.value,oe.onChoose=P;const le={};if(c.slots.btn){const Ze=c.slots.btn();le.btn=()=>Ze}c.slots.day&&(le.day=c.slots.day),c.slots.topInfo&&(le.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(le.bottomInfo=c.slots.bottomInfo);const Te=t.h(l,oe,le);_.hide=()=>[Te];const ve=he(i,de,ue);return t.h(n,ve,_)}}}}const{componentName:af,create:rf,scope:sf}=Y("calendar-item"),_n=rf(lf(af,sf,Mo,be,{CloseIcon:te.CircleClose,MarkIcon:te.Date},!1)),cf={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 uf(e,{CheckNormal:o,Checked:l}){return{props:{...cf},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 k=se(n.iconSize),v=n.checkedIcon??l;return t.h(v,{width:k,height:k,class:c.value})}}else{if(r.icon)return r.icon();{const k=se(n.iconSize),v=n.icon??o;return t.h(v,{width:k,height:k,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)},g=d.value==="left";return()=>t.h("view",{class:`${e} ${e}--${n.shape} ${g?`${e}--reverse`:""}`,onClick:y},[n.shape=="button"?h():g?[f(),m()]:[m(),f()]])}}}const{componentName:df,create:ff}=Y("radio"),zo=ff(uf(df,{CheckNormal:te.CheckNormal,Checked:te.CheckChecked})),{componentName:tr,create:mf}=Y("radio-group"),Po=mf({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{emit:o,slots:l}){const n=a=>o("update:modelValue",a);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:n}),t.watch(()=>e.modelValue,a=>o("change",a)),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),t.h("view",{class:`${tr} ${tr}--${e.direction}`,style:a},l.default?.())}}});function or(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(eo(e,r)===l)return a}else if(n==="item"){if(xe(l,r))return a}else if(Dt(e,r)===l)return a}return-1}function eo(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function Dt(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function pf(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function hf(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let gf=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=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function yf(){const e=t.getCurrentInstance();return new gf(e.proxy)}function vf(e){return{text:e,value:e}}const nr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},kf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}};function bf(e,o,l,n,a){return{props:{...ue,...de,...nr,...kf,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Boolean,Object],default:""}},emits:["change","update:modelValue"],setup(r,s){const i=Ae(t.computed(()=>r.readonly)),c=Ce(t.computed(()=>r.disabled)),d=Ne(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!c.value||!i.value}},r.prop??s.attrs.name),f=yf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,p])=>{if(u){const b=await f.load("radio",u,p);if(b.length>0)if(typeof b[0]=="string"){const C=b.map(V=>vf(V));h.value=C}else h.value=b}},{immediate:!0});let y=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([u,p])=>{y.value=or(r,p,u,r.valueType)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;if(y.value===-1)return null;const u=h.value[y.value];return Dt(r,u)}),k=u=>{let p=null,b=null;if(h.value.length>0){let S=or(r,h.value,u,"value");y.value=S,S>=0&&(b=h.value[S],r.valueType==="text"?p=eo(r,b):r.valueType==="item"?p=b:p=Dt(r,b))}else p=u;m("update:modelValue",p),m("change",p,b)},v=()=>{let u=null,p=null;if(h.value.length>0&&y.value!==-1){let b=h.value[y.value];r.valueType==="text"?u=eo(r,b):r.valueType==="item"?u=b:u=Dt(r,b)}m("update:modelValue",u),m("change",u,p)};if($e({clear(){y.value!==-1&&(y.value=-1,v())}}),r.source){const u=()=>{const p=[],b=he(r,nr);return h.value.forEach((S,N)=>{const C=Dt(r,S),V=pf(r,S);let B={...b,label:C,disabled:V};const I=hf(r,S,N);B={...B,...I},c.value&&(B.disabled=!0),i.value&&(B.readonly=!0);const A={};if(s.slots.icon&&(A.icon=s.slots.icon),s.slots.checkedIcon&&(A.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const P=s.slots.text(S);A.default=()=>[P]}else{const P=eo(r,S);A.default=()=>P}let w=t.h(a,B,A);p.push(w)}),p};return()=>{const p=u(),b={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"onUpdate:modelValue":k},S=t.h(n,b,{default:()=>p}),N={default:()=>S};N.label=s.slots.default,N.prepend=s.slots.prepend,N.append=s.slots.append,N.fixedPreTip=s.slots.fixedPreTip,N.fixedTip=s.slots.fixedTip;const C=he(r,de,ue);return t.h(l,C,N)}}else return()=>{const u=s.slots.options?.()??[];return t.h(n,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"update:modelValue":k},{default:()=>u})}}}}const{componentName:Sf,create:Cf,scope:wf}=Y("radio-item"),el=Cf(bf(Sf,wf,be,Po,zo)),Nf=(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 g=(b,S)=>{y="click",r("update:modelValue",b),r("change",b,S)};t.watch(()=>a.modelValue,b=>{y=="click"?y="":r("change",b)});const k=()=>{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})}}},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=b=>{if(!(a.disabled||a.readonly)){if(m.value&&c.partialSelect){c.partialSelect=!1,g(m.value,s.default?.()[0].children);return}if(g(!m.value,s.default?.()[0].children),d.value){const S=i.value.value,N=i.max.value,{label:C}=a,V=S.indexOf(C);V>-1?S.splice(V,1):V<=-1&&(S.length<N||!N)&&S.push(C),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():[k(),v()]])}}),{componentName:Bf,create:Vf}=Y("checkbox"),Lo=Vf(Nf(Bf,{CheckNormal:te.CheckNormal,Checked:te.Checked,Indeterminate:te.CheckDisabled})),{create:Af,componentName:lr}=Y("checkbox-group"),Fo=Af({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:o,emit:l}){const n=t.reactive({children:[]}),a=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)}),$e({toggleAll:i,toggleReverse:c}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),t.h("view",{class:`${lr} ${lr}--${e.direction}`,style:d},o.default?.())}}});function ar(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(Nn(e,r)===l)return a}else if(n==="item"){if(xe(l,r))return a}else if(to(e,r)===l)return a}return-1}function Nn(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function to(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function $f(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function Tf(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let Ef=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);let a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function Df(){const e=t.getCurrentInstance();return new Ef(e.proxy)}function xf(e){return{text:e,value:e}}const If={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},rr={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}};function qf(e,o,l,n,a){return{props:{...If,...rr,...ue,...de,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)),d=Ne(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!i.value||!c.value}},r.prop??s.attrs.name),f=Df(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,p])=>{if(u){const b=await f.load("checkbox",u,p);if(b.length>0)if(typeof b[0]=="string"){const C=b.map(V=>xf(V));h.value=C}else h.value=b}},{immediate:!0});const y=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([u,p])=>{const b=[];Array.isArray(u)&&u.forEach(S=>{let N=ar(r,p,S,r.valueType);N!==-1&&b.push(N)}),!xe(b,y.value)&&(y.value=b)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;let u=[];return y.value.forEach(p=>{let b=h.value[p];u.push(to(r,b))}),u}),k=u=>{let p=[],b=[];if(h.value.length>0){const S=[];Array.isArray(u)&&u.forEach(N=>{let C=ar(r,h.value,N,"value");C!==-1&&S.push(C);const V=h.value[C];b.push(V),r.valueType==="text"?p.push(Nn(r,V)):r.valueType==="item"?p.push(V):p.push(to(r,V))}),y.value=S}else p=u;m("update:modelValue",p),m("change",p,b)},v=t.ref();if($e({toggleAll:u=>{v.value.toggleAll(u)},toggleReverse:()=>{v.value.toggleReverse()}}),r.source){const u=()=>{const p=[],b=he(r,rr);return h.value.forEach((S,N)=>{const C=to(r,S),V=$f(r,S);let B={...b,label:C,disabled:V};const I=Tf(r,S,N);B={...B,...I},i.value&&(B.disabled=!0),c.value&&(B.readonly=!0);const A={};if(s.slots.icon&&(A.icon=s.slots.icon),s.slots.checkedIcon&&(A.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(A.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const P=s.slots.text(S);A.default=()=>[P]}else{const P=Nn(r,S);A.default=()=>P}let w=t.h(a,B,A);p.push(w)}),p};return()=>{const p=u(),b={class:`${e}`,ref:v,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:g.value,"onUpdate:modelValue":k},S=t.h(n,b,{default:()=>p}),N={default:()=>S};N.label=s.slots.default,N.prepend=s.slots.prepend,N.append=s.slots.append,N.fixedPreTip=s.slots.fixedPreTip,N.fixedTip=s.slots.fixedTip;const C=he(r,de,ue);return t.h(l,C,N)}}else return()=>{const u=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:v,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"onUpdate:modelValue":k},{default:()=>u})}}}}const{componentName:Mf,create:zf,scope:Pf}=Y("checkbox-item"),tl=zf(qf(Mf,Pf,be,Fo,Lo)),Bn={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:Lf,create:Ff}=Y("switch"),Rf=Ff({components:{Loading1:te.Loading1},props:{...Bn},emits:["change","update:modelValue","update:loading"],setup(e,{emit:o}){const l=t.computed(()=>e.modelValue===e.activeValue),n=t.computed(()=>{const i=Lf;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}}}),Of={class:"fox-switch-button"};function Kf(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",Of,[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 Ro=J(Rf,[["render",Kf]]);function Uf(e,o,l,n){return{props:{...ue,...de,...Bn},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,m=Ee(a,"modelValue"),f=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const y={...he(a,Bn),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},g=[],k=t.h(n,y);g.push(k);const v={default:()=>g};v.label=r.slots.default,v.fixedPreTip=r.slots.fixedPreTip,v.fixedTip=r.slots.fixedTip;const u=he(a,de,ue);return u["content-class"]=d,t.h(l,u,v)}}}}const{componentName:Hf,create:jf,scope:Wf}=Y("switch-item"),ol=jf(Uf(Hf,Wf,be,Ro));function Yf(e,o,l,n){return{props:{...ue,...de,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur"],setup(a,r){const{emitEvent:s}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},a.prop??r.attrs.name),{toLocaleRefs:i}=ae.useFoxI18n(o),c=i(a,["placeholder"]),d=Ce(t.computed(()=>a.disabled)),m=Ae(t.computed(()=>a.readonly)),f=Ee(a,"modelValue"),h=t.computed(()=>({[`${e}`]:!0})),y=t.computed(()=>({[`${e}__main`]:!0,[`${e}__disabled`]:d.value,[`${e}__placeholder`]:!d.value&&ce(f.value)})),g=Ne(t.computed(()=>a.textAlign),"textAlign"),k=t.computed(()=>{const P={};return g.value&&(P["text-align"]=g.value),P}),v=t.computed(()=>!ce(a.modelValue)||r.slots.main?!0:!!ce(a.desc)),u=t.computed(()=>ce(f.value)?c.placeholder.value:f.value),p=t.computed(()=>!ce(a.desc)||r.slots.sub),b=t.computed(()=>({[`${e}__sub`]:!0})),S=t.computed(()=>{const P={};return g.value&&(P["text-align"]=g.value),P}),N=()=>{s("focus",f.value)},C=()=>{s("blur",f.value)},V=t.computed(()=>({[`${e}__append`]:!0})),B=t.computed(()=>ge(a.unit)>0),I=P=>{d.value==!0||m.value==!0||s("click")},A=t.computed(()=>a.icon??l),w=t.computed(()=>({action:!0}));return()=>{const P=[];if(typeof r.slots.content=="function"){const T=r.slots.content();P.push(T)}else{const T=[];if(v.value){const L={tabIndex:0,class:y.value,style:k.value,onFocus:N,onBlur:C,onClick:I};let q=null;r.slots.main?q=t.h("view",L,[r.slots.main(u.value)]):q=t.h("view",L,[u.value]),T.push(q)}if(p.value){const L={tabIndex:0,class:b.value,style:S.value,onFocus:N,onBlur:C,onClick:I};let q=null;r.slots.sub?q=t.h("view",L,[r.slots.sub(a.desc)]):q=t.h("view",L,[a.desc]),T.push(q)}const z={class:h.value},M=t.h("view",z,T);P.push(M)}const F=[],E=se(a.iconSize);let x=r.slots.icon;if(!x){const T={width:E,height:E,class:["action-icon"]};x=t.h(A.value,T)}const U={class:w.value,onClick:I},D=t.h("view",U,{default:()=>[x]});if(F.push(D),B.value){const T=t.h("view",{},[a.unit]);F.push(T)}const W={class:V.value},H=t.h("view",W,{default:()=>F});P.push(H);const G={default:()=>P};G.label=r.slots.default,G.prepend=r.slots.prepend,G.append=r.slots.append,G.fixedPreTip=r.slots.fixedPreTip,G.fixedTip=r.slots.fixedTip;const R=he(a,de,ue);return t.h(n,R,G)}}}}const{componentName:Xf,create:Qf,scope:Gf}=Y("link-item"),nl=Qf(Yf(Xf,Gf,te.ArrowRight,be)),Vn={count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object},size:{type:[String,Number],default:void 0},activeColor:{type:String,default:""},voidColor:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:void 0}},{create:Zf,componentName:Jf}=Y("rate"),_f=Zf({props:{...Vn},emits:["update:modelValue","change"],setup(e,{emit:o,slots:l}){const n=t.ref([]),a=t.computed(()=>({[Jf]:!0})),r=y=>{o("update:modelValue",y),o("change",y)},s=(y,g)=>{if(e.disabled||e.readonly)return;let k=0;g===1&&e.modelValue===g||(k=g,e.allowHalf&&y==2&&(k-=.5)),r(k)},i=(y,g,k)=>{let v=0;for(let u=g.value.length-1;u>=0;u--){const p=g.value[u];if(y>p.offsetLeft){k?v=u+(y>p.offsetLeft+p.clientWidth/2?1:.5):v=u+1;break}}return v},c=Ue(),d={onTouchStart(y){!e.touchable||e.readonly||c.start(y)},onTouchMove(y){e.touchable&&(c.move(y),c.isHorizontal()&&n.value&&(y.preventDefault(),r(i(c.moveX.value,n,e.allowHalf))))}},m=Math.random().toString(36).slice(-8),f=t.computed(()=>e.customIcon??te.StarFillN);return{classes:a,...d,onClick:s,toPxDesc:pe,renderIcon:(y,g)=>t.h(y,g),rateRefs:n,refRandomId:m,slots:l,customIcon:f}}}),em=["id"],tm={class:"fox-rate-item__icon--full"},om={key:0,class:"fox-rate-item__icon--half"},nm={key:1,class:"fox-rate-item__icon--half"};function lm(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",tm,[(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",om,[(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",nm,[(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,em))),128))],34)}const vt=J(_f,[["render",lm]]);function am(e,o,l,n){return{props:{...ue,...de,...Vn},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,m=Ee(a,"modelValue"),f=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const y={...he(a,Vn),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},g=[],k=t.h(n,y);g.push(k);const v={default:()=>g};if(r.slots.default){const b=r.slots.default();v.label=()=>b}const u=he(a,de,ue);return u["content-class"]=d,t.h(l,u,v)}}}}const{componentName:rm,create:sm,scope:im}=Y("rate-item"),ll=sm(am(rm,im,be,vt)),An={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeClose:{type:Function}};function cm(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(oo(e,r)===l)return a}else if(n==="item"){if(xe(l,r))return a}else if(Ss(e,r)===l)return a}return-1}function oo(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function sr(e,o){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?o[e.subTextKey]:o.text}function Ss(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function um(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function dm(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let fm=class{proxy;constructor(o){this.proxy=o}async load(o,l,n,a,r,s,i){if(Array.isArray(l)){let d=l;typeof i=="function"&&(d=d.filter(i));let m=(n-1)*a,f=m+a;f>d.length&&(f=d.length);const h=d.slice(m,f);return{totalSize:d.length,page:h}}if(typeof l=="function")return await Reflect.apply(l,null,[n,a,r,s]);const c=Ge(this.proxy,o);return c===null?(console.error(`${o} component not found api function`),{totalSize:0,page:[]}):(Be(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[l,n,a,r]))}};function mm(){const e=t.getCurrentInstance();return new fm(e.proxy)}const{componentName:pm,create:hm,scope:gm}=Y("infinite-loading"),ym=hm({props:{modelValue:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!0},threshold:{type:Number,default:200},loadText:{type:String},loadMoreText:{type:String},useCapture:{type:Boolean,default:!1}},emits:["scroll-change","load-more","update:modelValue"],components:{Loading:te.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(gm),a=n(e,["pullText","loadText","loadMoreText"]),r=t.ref(),s=is(r),i=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[pm]:!0})),d=k=>k?k.offsetTop+d(k.offsetParent):0,m=()=>{let k=0,v=0,u="down";if(s.value==window){const p=qn();r.value&&(k=d(r.value)+r.value.offsetHeight-p-window.innerHeight),v=p}else{const{scrollHeight:p,clientHeight:b,scrollTop:S}=s.value;k=p-b-S,v=S}return i.beforeScrollTop>v?u="up":u="down",i.beforeScrollTop=v,o("scroll-change",v),k<=e.threshold&&u=="down"},f=()=>{We(()=>{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 g=t.ref(!1);return t.onActivated(()=>{g.value&&(g.value=!1,h())}),t.onDeactivated(()=>{g.value=!0,y()}),t.watch(()=>e.modelValue,k=>{k||(i.isInfiniting=!1)}),{classes:c,scroller:r,...t.toRefs(i),slots:l,...a}}}),vm={class:"fox-infinite__container"},km={class:"fox-infinite__bottom"},bm={key:0,class:"fox-infinite__bottom-box"},Sm={class:"fox-infinite__bottom-box__text"},Cm={class:"fox-infinite__bottom-tips"};function wm(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",vm,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",km,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",bm,[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",Sm,t.toDisplayString(e.loadText),1)])])):e.hasMore?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"finished",{key:1},()=>[t.createElementVNode("view",Cm,t.toDisplayString(e.loadMoreText),1)])])],2)}const Oo=J(ym,[["render",wm]]),{componentName:Nm,create:Bm}=Y("button"),Vm=Bm({components:{Loading:te.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o,slots:l}){const{type:n,size:a,shape:r,disabled:s,loading:i,color:c,plain:d,block:m}=t.toRefs(e),f=g=>{!i.value&&!s.value&&o("click",g)},h=t.computed(()=>{const g=Nm;return{[g]:!0,[`${g}--${n.value}`]:n.value,[`${g}--${a.value}`]:a.value,[`${g}--${r.value}`]:r.value,[`${g}--plain`]:d.value,[`${g}--block`]:m.value,[`${g}--disabled`]:s.value,[`${g}--loading`]:i.value}}),y=t.computed(()=>{const g={};return c?.value&&(d.value?(g.color=c.value,g.background="#fff",c.value?.includes("gradient")||(g.borderColor=c.value)):(g.color="#fff",g.background=c.value)),g});return{handleClick:f,classes:h,getStyle:y}}}),Am={class:"fox-button__wrap"};function $m(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",Am,[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 Ie=J(Vm,[["render",$m]]),{create:Tm,scope:Em}=Y("searchbar"),Dm=Tm({props:{modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object,default:()=>te.CircleClose},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},emits:["change","update:modelValue","blur","focus","clear","search","click-input","click-left-icon","click-right-icon"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(Em),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)},g=p=>{o("click-left-icon",e.modelValue,p)},k=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:y,leftIconClick:g,rightIconClick:k,styleSearchbar:v}}}),xm={key:0,class:"fox-searchbar__search-label"},Im={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},qm=["type","maxlength","placeholder","value","disabled","readonly"],Mm={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-search-icon"},zm={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function Pm(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",xm,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",Im,[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,qm)],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",Mm,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],2)],6),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",zm,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const Ko=J(Dm,[["render",Pm]]);function Lm(e,o,l){return{props:{...An},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(n,{emit:a,slots:r}){const{toLocaleRefs:s}=ae.useFoxI18n(o),i=s(n,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),c=mm(),d=t.ref([]),m=t.ref(0),f=t.ref(""),h=t.shallowRef(null),y=t.computed(()=>{const $={};return n.params&&Object.assign($,n.params),ce(f.value)||($[`${n.searchKey}`]=f.value),h.value&&Object.assign($,h.value),$});let g=!0;const k=async($,T,z)=>{try{if(u.value===!1)return;let M=null;ce(f.value)||(M=q=>{const K=oo(n,q);if(typeof K=="string"&&K.includes(f.value))return!0;const j=sr(n,q);return!!(typeof j=="string"&&j.includes(f.value))});const L=await c.load("actionsheet",$,T,z,y.value,g,M??void 0);g=!1,Array.isArray(L)?(d.value=L,m.value=1,u.value=!1):!Array.isArray(L.page)||L.page.length===0?(console.warn("[FoxUI] can not load more data"),u.value=!1):(Reflect.apply([].push,d.value,L.page),m.value=Math.ceil(d.value.length/n.pageSize),(L.totalSize&&d.value.length>=L.totalSize||z<L.page.length)&&(u.value=!1)),v.value=!1}catch(M){console.error("[FoxUI] ActionSheet load more data fail",M),u.value=!0,m.value=0,d.value=[]}setTimeout(()=>{a("loaded-data")},250)},v=t.ref(!1),u=t.ref(!0),p=async()=>{if(!n.source){v.value=!1;return}await k(n.source,m.value+1,n.pageSize)};t.watch(()=>f.value,($,T)=>{ce($)&&!ce(T)&&p()}),t.watch([()=>n.source,()=>n.pageSize,()=>n.params],async([$,T,z])=>{n.source&&p()},{immediate:!0});const b=t.computed(()=>!n.multiple&&n.isAutoBackFill),S=t.ref([]);let N=null;const C=t.ref(n.visible);t.watch(()=>n.visible,$=>{C.value!==$&&(C.value=$),$?N=[...S.value]:N=null});const V=($,T)=>{const z=[];return Array.isArray($)||($=[$]),$.forEach(M=>{let L=cm(n,T,M,n.valueType);L!==-1&&z.push(L)}),xe(z,S.value)?!1:(S.value=z,!0)};t.watch([()=>n.modelValue,()=>d.value],([$,T],[z,M])=>{if(V($,T)){const q=B();I(q)}},{deep:!0});const B=()=>{const $=[],T=[],z=[];for(let K of S.value){const j=d.value[K];T.push(j);const Z=oo(n,j);if(z.push(Z),n.valueType==="item")$.push(j);else if(n.valueType==="text")$.push(Z);else{const O=Ss(n,j);$.push(O)}}let M=null,L=null,q=null;return n.multiple?(M=$,L=z,q=T):(M=$[0]??null,L=z[0]??null,q=T[0]??null),{value:M,text:L,item:q}},I=$=>{a("update:modelValue",$.value),a("update:text",$.text),a("change",$.value,$.item,$.text)},A=()=>{N&&(S.value=N)},w=$=>{const T=S.value.indexOf($);n.multiple?T===-1?S.value.push($):S.value.splice(T,1):T===-1?S.value=[$]:S.value=[],(b.value||!n.poppable&&!n.showFooter)&&E()},P=$=>{C.value=$,a("update:visible",$)},F=()=>{const $=()=>{A(),P(!1)};if(typeof n.beforeClose=="function"){const T=n.beforeClose("close");Mt(T)?T.then(z=>{z!==!1&&$()}).catch(()=>{$()}):T!==!1&&$()}else $()},E=()=>{const $=B(),T=()=>{I($),P(!1)};if(typeof n.beforeClose=="function"){const z=n.beforeClose("confirm",$.value,$.item,$.text);Mt(z)?z.then(M=>{M!==!1&&T()}).catch(()=>{T()}):z!==!1&&T()}else T()},x=()=>{u.value=!0,m.value=0,d.value=[],n.source&&p()},U=()=>{let $=i.title.value??"";r.title&&($=r.title());const T=t.h("view",{class:["fox-actionsheet__header-title"]},[$]),z=t.h(te.Close,{class:["fox-actionsheet__header-icon"],onClick:F});return t.h("view",{class:["fox-actionsheet__header"]},[T,z])},D=()=>{let $=null;if(r.search)$=r.search();else{const T={onSearch:x,placeholder:i.seachPlaceholder.value,disabled:n.disabled,modelValue:f.value,"onUpdate:modelValue":z=>{f.value=z}};$=t.h(Ko,T,{leftin:()=>t.h(te.Search2)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[$])},W=($,T,z,M,L)=>{if(r.optionLabel)return r.optionLabel({text:$,checked:T,disabled:z,subText:M,item:L});const q=[],K=t.h("view",{class:"fox-actionsheet__list-item-text"},[$]);if(q.push(K),M){const j=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[M]);q.push(j)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},q)},H=($,T,z,M)=>{if(r.optionIcon)return r.optionIcon({checked:$,disabled:T,iconSize:z,item:M});if($){if(r.checkedIcon)return r.checkedIcon({disabled:T,item:M});{const L=n.checkedIcon??te.Checked;return t.h(L,{width:z,height:z,class:["fox-actionsheet__list-item-icon"]})}}else{if(r.icon)return r.icon({disabled:T,item:M});{const L=n.icon??te.CheckNormal;return t.h(L,{width:z,height:z,class:["fox-actionsheet__list-item-icon"]})}}},G=()=>{const $=[];for(let T=0;T<d.value.length;T++){const z=d.value[T],M=oo(n,z),L=sr(n,z),q=["fox-actionsheet__list-item"],K={};let j=um(n,z),Z=n.iconSize?se(n.iconSize):null;const O=dm(n,z,T);O&&(j=j||O.disabled,O.class&&q.push(O.class),O.style&&Object.assign(K,O.style)),j=!!(n.disabled||j);const X=S.value.includes(T);j&&q.push("is-disabled"),X&&q.push("is-checked");const Q={class:q,style:K,key:`${T}`,onClick:()=>{j||w(T)}};let ee=[];if(r.option)ee.push(r.option({item:z,checked:X,disabled:j}));else{const oe=W(M,X,j,L,z);ee.push(oe);const le=H(X,j,Z,z);ee.push(le)}const _=t.h("view",Q,ee);$.push(_)}return $},R=()=>{let $=[];if(r.buttons)$=r.buttons();else{const z=t.h(Ie,{type:"primary",block:"block",onClick:E,disabled:n.disabled},{default:()=>i.confirmText.value});$.push(z)}return t.h("view",{class:"fox-actionsheet__footer"},[$])};return $e({search:async($=null,T=!0)=>{h.value=$&&t.toRaw($),t.triggerRef(h),T&&(u.value=!0,m.value=0,d.value=[]),t.nextTick(()=>{p()})},clear:()=>{u.value=!0,m.value=0,d.value=[]},confirm:()=>{E()},cancel:()=>{F()}}),()=>{const $=[];if(n.showHeader){const Z=U();$.push(Z)}if(n.showSearchbar){const Z=D();$.push(Z)}let T=null;if(r.content)T=r.content();else{const Z=G(),O={hasMore:u.value,loadText:i.loadText.value,loadMoreText:i.loadMoreText.value,modelValue:v.value,"onUpdate:modelValue":X=>{v.value=X},onLoadMore:p};T=t.h(Oo,O,{default:()=>Z})}const z={};n.optionsHeight&&(z.height=n.optionsHeight);const M={"fox-actionsheet__list":!0};n.poppable||(M["fox-actionsheet__list--inner"]=!0);const L=t.h("view",{class:M,style:z},[T]);if($.push(L),n.showFooter&&!b.value){const Z=R();$.push(Z)}const q=t.h("view",{class:"fox-actionsheet"},$);if(!n.poppable)return q;const K=["fox-actionsheet__popup"];n.popClass&&K.push(n.popClass);const j={popClass:K.join(" "),visible:C.value,closeable:!1,"onUpdate:visible":P,position:n.position,round:"round",onClickOverlay:F,closeOnClickOverlay:n.closeOnClickOverlay};return t.h(ie,j,{default:()=>q})}}}}const{componentName:Fm,create:Rm,scope:Om}=Y("actionsheet-pane"),Uo=Rm(Lm(Fm,Om)),Km={type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Um(e,o,l,n,a,r,s){return{props:{...ue,...de,...Km,...An},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=Ae(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}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),k=Ee(i,"modelValue"),v=t.ref(""),u=t.computed(()=>Array.isArray(v.value)?v.value.join(i.separator):v.value),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const M={};return S.value&&(M["text-align"]=S.value),M}),C=t.ref(!1),V=()=>{C.value=!0},B=M=>{C.value=M},I=M=>{k.value=M,f("update:modelValue",M)},A=(M,L)=>{f("change",M,L)},w=M=>{let q=M.target.value;g.value=!0,f("focus",q,M)},P=M=>{setTimeout(()=>{g.value=!1},0);let q=M.target.value;i.maxLength&&q.length>Number(i.maxLength)&&(q=q.slice(0,Number(i.maxLength))),f("blur",q,M)},F=M=>{v.value=M,f("update:text",M)},E=t.computed(()=>({[`${p}__append`]:!0})),x=t.computed(()=>ge(i.unit)>0),U=t.computed(()=>ge(i.unit)>0&&!g.value),D=t.computed(()=>({hidden:!U.value})),W=M=>{k.value="",f("update:modelValue","",M),f("change","",M),f("clear","")},H=t.computed(()=>i.clearable&&!d.value&&!m.value),G=t.computed(()=>ge(k.value)>0&&g.value),R=M=>{G.value?W(M):V()},$=t.computed(()=>G.value&&H.value?n:a),T=t.computed(()=>({action:!0})),z=t.ref(null);return $e({search:M=>{z.value&&z.value.search(M)},clear:()=>{z.value&&z.value.clear},confirm:M=>{z.value&&z.value.confirm()},cancel:()=>{z.value&&z.value.cancel()}}),()=>{const M={class:b.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:V,onFocus:w,onBlur:P};s&&(M.disabled=!0);const L=[],q=t.h("input",M);L.push(q);const K=[],j={class:["action-icon"]},Z=t.h($.value,j),O={class:T.value,onClick:R},X=t.h("view",O,{default:()=>[Z]});if(K.push(X),x.value){const Ze=t.h("view",{class:D.value},[i.unit]);K.push(Ze)}const Q={class:E.value},ee=t.h("view",Q,{default:()=>K});L.push(ee);const _={default:()=>L};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const oe=he(i,An);oe.ref=z,oe.class=i.actionsheetProps,oe.disabled=d.value||m.value,oe.visible=C.value,oe["onUpdate:visible"]=B,oe.modelValue=k.value,oe["onUpdate:modelValue"]=I,oe.text=v.value,oe["onUpdate:text"]=F,oe.onChange=A,oe.poppable=!0;const le={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},Te=t.h(r,oe,le);_.hide=()=>[Te];const ve=he(i,de,ue);return t.h(l,ve,_)}}}}const{componentName:Hm,create:jm,scope:Wm}=Y("actionsheet-item"),al=jm(Um(Hm,Wm,be,te.CircleClose,te.ArrowRight,Uo)),$n={modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{componentName:Ym,create:Xm}=Y("input-number"),Qm=Xm({components:{Minus:te.Minus,Plus:te.Plus},props:{...$n},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:o}){const l=t.computed(()=>{const y=Ym;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),n=y=>Number(y).toFixed(Number(e.decimalPlaces)),a=y=>{const g=y.target;o("update:modelValue",g.valueAsNumber,y)},r=(y,g)=>{let k=n(y);o("update:modelValue",k,g),o("change",k,g)},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 g=Number(e.modelValue)-Number(e.step);r(g,y)}else o("overlimit",y,"reduce")},d=y=>{if(o("add",y),s()){let g=Number(e.modelValue)+Number(e.step);r(g,y)}else o("overlimit",y,"add")},m=y=>{e.disabled||e.readonly||o("focus",y)},f=y=>{if(e.disabled||e.readonly)return;let k=y.target.valueAsNumber;k<Number(e.min)?k=Number(e.min):k>Number(e.max)&&(k=Number(e.max)),r(k,y),o("blur",y)},h=y=>{let g=Number(y);return g<Number(e.min)?g=Number(e.min):g>Number(e.max)&&(g=Number(e.max)),g};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const 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:pe}}}),Gm=["min","max","disabled","readonly","value"];function Zm(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,Gm),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 Qe=J(Qm,[["render",Zm]]);function Jm(e,o,l,n){return{props:{...ue,...de,...$n},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,m=Ee(a,"modelValue"),f=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const h={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},g={...he(a,$n),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},k=t.h(n,g,h),v=[];v.push(k);const u={default:()=>v};u.label=r.slots.default,u.fixedPreTip=r.slots.fixedPreTip,u.fixedTip=r.slots.fixedTip;const p=he(a,de,ue);return p["content-class"]=d,t.h(l,p,u)}}}}const{componentName:_m,create:ep,scope:tp}=Y("inputnumber-item"),rl=ep(Jm(_m,tp,be,Qe)),op={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1}},ir=(e,o)=>o[e.textKey],Vt=(e,o)=>o[e.valueKey],np=(e,o)=>o[e.visibleKey],cr=(e,o)=>o[e.disabledKey],lp=(e,o)=>{const l=o[e.doitKey];return me(l)},ap=(e,o)=>{const l=o[e.numKey];return l==null?null:fe(o[l])},ur=(e,o,l)=>{const n=e.itemOptions;return typeof n=="function"?n(o,l):n||null};function rp(e,o,l,n=!1){return{props:{...op},emits:["update:modelValue","change"],setup(a,{slots:r,emit:s}){t.computed(()=>{const R={};return R[`${e}`]=!0,R});const i=t.computed(()=>{const R={};return R[`${e}__titles`]=!0,R[`${a.direction}`]=!0,a.align==="left"&&(R.left=!0),a.scroll===!0&&(R.scrollable=!0),a.shape&&(R[`${a.shape}`]=!0),R}),c=t.computed(()=>({})),d=t.computed(()=>{if(!a.gutter)return 0;const R=se(a.gutter);return R<=0?0:R}),m=t.ref(a.modelValue);t.watch(()=>a.modelValue,R=>{m.value!==R&&(m.value=R,U(!1))});const f=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),h=t.computed(()=>{const R={};return g.value||(R.display="none"),R}),y=t.ref(),g=t.ref(!1),k=()=>{const R=!g.value;v(R)},v=R=>{const $=R;$?(g.value=$,setTimeout(()=>{f.value["fox-tabs-bar__popup--show"]=!0,f.value["fox-tabs-bar__popup--hide"]=!1},0)):(f.value["fox-tabs-bar__popup--show"]=!1,f.value["fox-tabs-bar__popup--hide"]=!0,y.value?y.value.addEventListener("transitionend",()=>{g.value=!1},{once:!0}):setTimeout(()=>{g.value=!1},0))},u=t.ref(),p=t.ref([]),b=(R,$)=>{p.value[$]=R},S=R=>$=>{b($,R)},N=(R,$)=>{const T=u.value,z=p.value;if(!T||!z||!z[R])return;const M=z[R];let L=0;a.direction==="vertical"?L=M.offsetTop-(T.offsetHeight-M.offsetHeight)/2:L=M.offsetLeft-(T.offsetWidth-M.offsetWidth)/2,C(T,L,$?0:.3,a.direction)},C=(R,$,T,z)=>{let M=0;const L=z==="horizontal"?R.scrollLeft:R.scrollTop,q=T===0?1:Math.round(T*1e3/16);function K(){z==="horizontal"?R.scrollLeft+=($-L)/q:R.scrollTop+=($-L)/q,++M<q&&Le(K)}K()},V=(R,$)=>{const T=Vt(a,R),z={};return z[`${e}__titles-item`]=!0,z.disabled=cr(a,R),z.active=T===m.value,a.shape&&(z[`${a.shape}`]=!0),a.ellipsis&&(z.ellipsis=!0),$&&($.class&&(z[`${$.class}`]=!0),$.disabled===!0&&(z.disabled=$.disabled)),z},B=(R,$)=>{const T={};if(d.value>0){const z=Math.abs(d.value/2);a.direction==="vertical"?(T["margin-top"]=`${z}px`,T["margin-bottom"]=`${z}px`):(T["margin-left"]=`${z}px`,T["margin-right"]=`${z}px`)}return $&&$.style&&Object.assign(T,$.style),T},I=(R,$)=>`${Vt(a,R)??$}`,A=(R,$)=>{const T=Vt(a,R),z={};z[`${e}__popup-item`]=!0,z.disabled=cr(a,R),z.active=T===m.value,a.shape&&(z[`${a.shape}`]=!0);const M=ur(a,R,$);return M&&M.disabled===!0&&(z.disabled=M.disabled),z},w=t.computed(()=>(a.data??[]).filter($=>np(a,$)!==!1)),P=(R,$)=>{const T=Vt(a,R);m.value=T,a.scroll&&N($,!1),s("update:modelValue",T),s("change",R,$)},F=(R,$)=>function(){P(R,$)},E=(R,$)=>{P(R,$),v(!1)},x=(R,$)=>function(){E(R,$)},U=R=>{if(!Array.isArray(a.data)||!a.scroll)return;const $=a.data.findIndex(T=>Vt(a,T)===m.value);$!==-1&&N($,R)};t.watch(()=>a.data,()=>{setTimeout(U,0)}),t.onMounted(()=>{U(!0)});const D=(R,$)=>{if(r.item)return r.item({item:R,index:$});const T=ur(a,R,$),z=[];if(r.text){const K=r.text({item:R,index:$});z.push(K)}else{const K=[];if(T?.doit===!0||lp(a,R)){const X={class:[`${e}__titles-item-tip`,"doit"]},Q=t.h("view",X);K.push(Q)}const j=T?.num??ap(a,R);if(j){let X="";const Q=fe(j);Q>=100?X="99+":X=`${Q}`;const ee={class:[`${e}__titles-item-tip`,"num"]},_=t.h("view",ee,[X]);K.push(_)}const Z={class:`${e}__titles-item-text`};K.push(ir(a,R));const O=t.h("view",Z,K);z.push(O)}const M={class:`${e}__titles-item-line`},L=t.h("view",M);z.push(L);const q={ref:S($),class:V(R,T),style:B(R,T),key:I(R,$),onClick:F(R,$)};return t.h("view",q,z)},W=()=>{const R=r.default?r.default():[];if(R.length===0)for(let T=0;T<w.value.length;T++){const z=w.value[T],M=D(z,T);R.push(M)}const $={ref:u,class:i.value,style:c.value};return t.h("view",$,R)},H=()=>{let R=null;r.navigation?R=r.navigation():R=t.h(l);const $={class:`${e}__navigation`,onClick:k};return t.h("view",$,[R])},G=()=>{const R=[];for(let T=0;T<w.value.length;T++){const z=w.value[T];let M=null;r.popupItem?M=r.popupItem({item:z,index:T}):M=ir(a,z);const L={class:A(z,T),key:I(z,T),onClick:x(z,T)},q=t.h("view",L,[M]);R.push(q)}const $={class:f.value,style:h.value};return t.h("view",$,R)};return()=>{const R=[],$=W();if(R.push($),a.showQuickNavigation){const z=H();R.push(z);const M=G();R.push(M)}const T={class:`${e}`};return t.h("view",T,R)}}}}const{create:sp,componentName:ip,scope:cp}=Y("tabs-bar"),sl=sp(rp(ip,cp,te.MoreH,!1)),Cs=Symbol("TabsStatesKey"),{create:up}=Y("tabs-container"),dp=up({props:{modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"}},emits:["update:modelValue","change"],setup(e,{emit:o}){const l=t.shallowRef([]),n={current:t.ref(e.modelValue??""),direction:t.ref(e.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:m=>{const f={name:m};n.current.value===m&&(f.loaded=!0),l.value.push(f),t.triggerRef(l)},remove:m=>{const f=l.value.findIndex(h=>h.name===m);f!==-1&&l.value.splice(f,1)},isLoaded:m=>{const f=l.value.findIndex(h=>h.name===m);return f!==-1?n.current.value?l.value[f].loaded??!1:f===0:!1}};t.provide(Cs,n);const a=m=>{const f=l.value.findIndex(h=>h.name===m);f!==-1&&(l.value[f].loaded=!0,t.triggerRef(l))};t.watch([()=>e.modelValue,()=>e.direction],([m,f])=>{n.current.value!==m&&(n.current.value=m??"",a(m??"")),n.direction.value!==f&&(n.direction.value=f)});const r=t.ref(null),s=t.ref(null),i=t.computed(()=>({"fox-tabs-container":!0,[`${e.direction}`]:!0})),c=t.computed(()=>{const m={},f=l.value.length;if(f<=0)return m;const h=l.value.findIndex(y=>y.name===n.current.value);return n.direction.value==="vertical"?n.tabHeight.value>0&&(m.height=`${f*n.tabHeight.value}px`,h!==-1&&(m.transform=`translate(0, -${h*n.tabHeight.value}px)`)):n.tabWidth.value>0&&(m.width=`${f*n.tabWidth.value}px`,h!==-1&&(m.transform=`translate(-${h*n.tabWidth.value}px, 0)`)),m});let d=null;return t.onMounted(()=>{if(!r.value)return;const m=()=>{const f=No(r.value);n.tabWidth.value=f.width,n.tabHeight.value=f.height};window.ResizeObserver&&(d=new window.ResizeObserver(m),d.observe(r.value)),m()}),t.onBeforeUnmount(()=>{d&&(d.disconnect(),d=null)}),{tabsRef:r,panesRef:s,classes:i,panesStyles:c}}});function fp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"tabsRef"},[t.createElementVNode("view",{class:"fox-tabs-container__panes",style:t.normalizeStyle(e.panesStyles),ref:"panesRef"},[t.renderSlot(e.$slots,"default")],4)],2)}const il=J(dp,[["render",fp]]),{create:mp}=Y("tabs-pane"),pp=mp({components:{Loading:te.Loading},props:{paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null}},setup(e,{emit:o}){const l=t.inject(Cs);t.onMounted(()=>{l.add(e.paneKey)}),t.onBeforeUnmount(()=>{l.remove(e.paneKey)});const n=t.computed(()=>{const r={};return l.direction.value==="vertical"&&l.tabHeight.value>0?r.height=`${l.tabHeight.value}px`:l.tabWidth.value>0&&(r.width=`${l.tabWidth.value}px`),r}),a=t.computed(()=>e.loaded!=null?me(e.loaded):l.isLoaded(e.paneKey));return{styles:n,isLoaded:a}}}),hp={class:"fox-tabs-pane__empty"},gp=t.createElementVNode("view",{class:"fox-tabs-pane__empty-text"},"loading",-1);function yp(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:"fox-tabs-pane",style:t.normalizeStyle(e.styles)},[e.isLoaded?t.renderSlot(e.$slots,"default",{key:0}):t.renderSlot(e.$slots,"empty",{key:1},()=>[t.createElementVNode("view",hp,[t.createVNode(s,{class:"fox-tabs-pane__empty-icon"}),gp])])],4)}const cl=J(pp,[["render",yp]]),vp={direction:{type:[String],default:"horizontal"},mode:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function kp(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function dr(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function fr(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function bp(e,o){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?o[e.visibleKey]:o.visible??null}function en(e,o){return typeof e.statusKey=="string"&&e.statusKey.length>0?o[e.statusKey]:o.statusKey??null}function tn(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let Sp=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[n]);const a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await Reflect.apply(a,null,[l,n]))}};function Cp(){const e=t.getCurrentInstance();return new Sp(e.proxy)}function wp(e,o,l,n){return{props:{...vp},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:s}){const i=e,c=Cp(),d=t.ref([]),m=t.computed(()=>d.value.filter($=>bp(a,$)!==!1)),f=t.ref(-1),h=()=>{const $=a.modelValue,T=m.value.findIndex(z=>dr(a,z)===$);f.value!==T&&(f.value=T,a.scroll&&G(T,!1))};t.watch([()=>a.modelValue,m],()=>{h()});const y=$=>f.value===$,g=$=>{if($<0&&$>=m.value.length)return!1;const T=m.value[$],M=(tn(a,T,$)??{}).status??en(a,T);return y($)||M},k=t.computed(()=>{const $={[i]:!0};return a.mode?$[`is-${a.mode}`]=!0:a.direction&&($[`is-${a.direction}`]=!0),a.scroll&&($["is-scroll"]=!0),$}),v=t.computed(()=>({})),u=($,T,z,M)=>{const L={[`${i}__step`]:!0};return M&&(L[`${M}`]=!0),$===f.value?L["is-active"]=!0:T==="done"?L["is-done"]=!0:T==="error"?L["is-error"]=!0:T==="half"?L["is-half"]=!0:z?L["is-disabled"]=!0:L["is-normal"]=!0,L},p=($,T={})=>{const z={...T};return $===m.value.length-1?z.flex="0 0 auto":a.step?a.direction==="vertical"?z.height=a.step:z.width=a.step:z.flex="1 1 100%",z},b=($,T)=>{let z={};if(T<m.value.length-1){const M=T+1;g(T)&&g(M)?a.direction==="vertical"?z.height="100%":z.width="100%":z.opacity="0"}return z},S=$=>m.value.length-1===$,N=($,T)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&T>f.value||f.value===T)return;const z=f.value,M=T;f.value=T,a.scroll&&G(T,!1);const L=dr(a,$);s("update:modelValue",L);const q={fromIndex:z,currentIndex:M,item:$,items:m.value,clickNavigatePolicy:a.clickNavigatePolicy};s("change",L,q)},C=t.ref(!0),V=async($,T)=>{try{const z=await c.load("stesbar",$,T);Array.isArray(z)&&(d.value=z),C.value=!1}catch(z){console.error("[FoxUI] Load StepsBar Data Fail",z),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([$,T])=>{$&&V($,T)},{immediate:!0});const B=($,T,z,M)=>{let L=null;if(r.icon)L=r.icon({item:$,index:T,status:z});else if(z==="done"){const K={};a.iconSize&&(K.width=a.iconSize,K.height=a.iconSize);const j=a.icon??l;L=t.h(j,K)}else L=t.h("span",{},[`${T+1}`]);const q={class:"fox-steps-bar__icon",onClick:()=>{M||N($,T)}};return t.h("view",q,[L])},I=($,T,z)=>{const M=t.h("i",{class:"fox-steps-bar__line-inner",style:b($,T)});return t.h("view",{class:"fox-steps-bar__line"},[M])},A=()=>{let $=null;if(r.markIcon)$=r.markIcon();else{const z={};a.iconSize&&(z.width=a.markIconSize,z.height=a.markIconSize);const M=a.markIcon??n;$=t.h(M,z)}return t.h("view",{class:"fox-steps-bar__mark"},[$])},w=($,T,z,M)=>{const L=[];if(!S(T)){const j=I($,T);L.push(j)}const q=B($,T,z,M);L.push(q);const K={class:"fox-steps-bar__head"};return t.h("view",K,L)},P=($,T,z,M)=>{let L=null;r.main?L=r.main({item:$,index:T,status:z}):L=kp(a,$);const q={class:"fox-steps-bar__main",onClick:()=>{M||N($,T)}};return t.h("view",q,[L])},F=($,T,z)=>{let M=null;if(r.sub){M=r.sub({item:$,index:T,status:z});const L={class:"fox-steps-bar__sub"};return t.h("view",L,[M])}return null},E=($,T)=>{const z=tn(a,$,T)??{},M=z.status??en(a,$);let L=fr(a,$);z.disabled===!0&&(L=!0),a.disabled===!0&&(L=!0);const q=[],K=B($,T,M,L);K&&q.push(K);const j=P($,T,M,L);j&&q.push(j);const Z=I($,T);Z&&q.push(Z);const O=t.h("view",{class:"fox-steps-bar__head"},q),X=z.class,Q=z.style??{},ee={ref:H(T),class:u(T,M,L,X),style:p(T,Q)};return t.h("view",ee,[O])},x=($,T)=>{const z=tn(a,$,T)??{},M=z.status??en(a,$);let L=fr(a,$);z.disabled===!0&&(L=!0),a.disabled===!0&&(L=!0);const q=[],K=a.layout;for(let X of K)if(X==="head"){const Q=w($,T,M,L);q.push(Q)}else if(X==="main"){const Q=P($,T,M,L);q.push(Q)}else if(X==="sub"){const Q=F($,T,M);q.push(Q)}else if(X==="mark"){const Q=A();q.push(Q)}const j=z.class,Z=z.style??{},O={ref:H(T),class:u(T,M,L,j),style:p(T,Z)};return t.h("view",O,q)},U=t.ref(),D=t.ref([]),W=($,T)=>{D.value[T]=$},H=$=>T=>{W(T,$)},G=($,T)=>{const z=U.value,M=D.value;if(!z||!M||!M[$])return;const L=M[$];let q=0;a.direction==="vertical"?q=L.offsetTop-(z.offsetHeight-L.offsetHeight)/2:q=L.offsetLeft-(z.offsetWidth-L.offsetWidth)/2,R(z,q,T?0:.3,a.direction)},R=($,T,z,M)=>{let L=0;const q=M==="horizontal"?$.scrollLeft:$.scrollTop,K=z===0?1:Math.round(z*1e3/16);function j(){M==="horizontal"?$.scrollLeft+=(T-q)/K:$.scrollTop+=(T-q)/K,++L<K&&Le(j)}j()};return()=>{const $=[];if(a.mode==="simple")for(let z=0;z<m.value.length;z++){const M=m.value[z],L=E(M,z);$.push(L)}else for(let z=0;z<m.value.length;z++){const M=m.value[z],L=x(M,z);$.push(L)}const T={ref:U,class:k.value,style:v.value};return t.h("view",T,$)}}}}const{componentName:Np,create:Bp,scope:Vp}=Y("steps-bar"),ul=Bp(wp(Np,Vp,te.Checklist,te.ArrowRight)),mr=10;function Ap(e,o){return e>o&&e>mr?"horizontal":o>e&&o>mr?"vertical":""}function $p(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},o=()=>e.direction==="vertical",l=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Ap(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:n,isVertical:o,isHorizontal:l,state:e}}function Tp(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Ep(e){e.stopPropagation()}function Dp(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&Ep(e)}class xp{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(o,l){this.startMove=o,this.updateMove=l,this.isTouch=Tp()}open(o){Array.isArray(o)||(o=[o]),this.els=o;const l=$p(),n=(a,r,s,i)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(l.start(a),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(l.move(a),Dp(a,!0),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(o=>{this.touchstart&&o.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Ip(e,o){return new xp(e,o)}const qp={top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},draggable:{type:[Boolean]}},Mp=(e,o,l,n=!1)=>({props:{...qp},emits:["click"],setup(a,{slots:r,emit:s}){const i=t.reactive({top:a.top,right:a.right,bottom:a.bottom,left:a.left}),c=t.computed(()=>({[`${e}`]:!0})),d=t.computed(()=>{const p={};return ce(i.top)||(p.top=i.top),ce(i.right)||(p.right=i.right),ce(i.bottom)||(p.bottom=i.bottom),ce(i.left)||(p.left=i.left),ce(a.width)||(p.width=a.width),ce(a.height)||(p.height=a.height),ce(a.color)||(p.color=a.color),ce(a.background)||(p.background=a.background),p}),m=t.computed(()=>({[`${e}__icon`]:!0})),f=()=>{s("click")},h=t.ref(null),y=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},g={x:0,y:0},u=Ip(p=>{if(!h.value)return;const b=h.value;y(),i.left=b.offsetLeft,i.top=b.offsetTop,b.style.left=`${i.left}px`,b.style.top=`${i.top}px`,b.style.right=null,b.style.bottom=null,g.x=i.left,g.y=i.top},p=>{if(!h.value)return;const b=h.value;y(),i.left=g.x+p.x,i.top=g.y+p.y,b.style.left=`${i.left}px`,b.style.top=`${i.top}px`});return t.onMounted(()=>{if(a.draggable&&h.value){const p=[h.value];u.open(p)}}),t.onBeforeUnmount(()=>{a.draggable&&h.value&&u.close()}),()=>{let p=[];const b=typeof r.default=="function"?r.default():[];if(b&&b.length>0)p=b;else{const N=t.h(l,{class:m.value});p.push(N)}const S={ref:N=>{h.value=N},class:c.value,style:d.value,onClick:f};return t.h("view",S,p)}}}),{componentName:zp,create:Pp,scope:Lp}=Y("floating-button"),dl=Pp(Mp(zp,Lp,te.Uploader,!1)),Fp={width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},Rp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Op(e,o,l){return{props:{...Fp},setup(n,{attrs:a,slots:r}){const{toLocaleRefs:s}=ae.useFoxI18n(o),i=s(n,["confirmText","cancelText"]),c=e,d=t.ref(!0),m=S=>{d.value=S},f=S=>{if(typeof n.unmount=="function")try{n.unmount()}catch(N){console.error(N)}if(typeof n.callback=="function")try{n.callback(S)}catch(N){console.error(N)}},h=()=>{f("confirm")},y=()=>{f("cancel")},g=()=>{f("close")},k=(S,N)=>Rp(S)?(N.src=S,t.h("img",N)):typeof S=="string"?(Array.isArray(N.class)?N.class.push(S):N.class&&typeof N.class=="object"?N[`${S}`]=!0:typeof N.class=="string"?N.class=`${N.class}, ${S}`:N.class=S,t.h(n.tag,N)):t.h(S,N),v=()=>{const S=[];if(n.icon){const C={class:[`${c}__header-icon`]},V=k(n.icon,C);S.push(V)}if(n.title){const C=t.h("view",{class:`${c}__header-title`},[n.title]);S.push(C)}if(n.showClose&&n.closeIcon){const C={class:[`${c}__header-close-icon`],onClick:g},V=k(n.closeIcon,C);S.push(V)}const N={class:[`${c}__header`]};return t.h("view",N,S)},u=(S,N)=>{const C=[];if(N){const B={class:`${c}__group-title`},I=t.h("view",B,[N]);C.push(I)}if(S){const B=[];Array.isArray(S)||(S=[S]);for(let I of S){const A={class:`${c}__group-row`,innerHTML:I},w=t.h("view",A);B.push(w)}if(B.length>0){const I={class:`${c}__group-rows`},A=t.h("view",I,B);C.push(A)}}if(C.length===0)return null;const V={class:`${c}__group`};return t.h("view",V,C)},p=()=>{const S=[];if(typeof n.message=="string")S.push(n.message);else if(Array.isArray(n.message))for(let C of n.message)if(typeof C=="string"){const V=u(C);S.push(V)}else{const V=u(C.content,C.title);S.push(V)}else if(typeof n.message=="function"){const C=n.message();S.push(C)}else{const C=n.message;S.push(C)}const N={class:`${c}__body`};return t.h("view",N,S)},b=()=>{const S=[];if(n.showCancelButton){const C={class:[`${c}__footer-button`],style:{},onClick:y};n.cancelButtonClass&&C.class.push(n.cancelButtonClass),n.cancleButtonStyle&&typeof n.cancleButtonStyle=="object"&&Object.assign(C.style,n.cancleButtonStyle);const V=t.h("button",C,[n.cancelButtonText??i.cancelText.value]);S.push(V)}if(n.showConfirmButton){const C={class:[`${c}__footer-button`],style:{},onClick:h};n.confirmButtonClass&&C.class.push(n.confirmButtonClass),n.confirmButtonStyle&&typeof n.confirmButtonStyle=="object"&&Object.assign(C.style,n.confirmButtonStyle);const V=t.h("button",C,[n.confirmButtonText??i.confirmText.value]);S.push(V)}if(S.length===0)return null;const N={class:`${c}__footer`};return t.h("view",N,S)};return()=>{const S=[],N=v();N&&S.push(N);const C=p();C&&S.push(C);const V=b();V&&S.push(V);const B={class:{[`${c}`]:!0,[`${c}--${n.type||"info"}`]:!0}},I=t.h("view",B,S),A=[`${c}__popup`];n.popClass&&A.push(n.popClass);const w={};n.width&&(w.width=typeof n.width=="number"?`${n.width}px`:n.width),n.height&&(w.height=typeof n.height=="number"?`${n.height}px`:n.height);const P={popClass:A.join(" "),style:w,visible:d.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":m,position:n.position,round:"round",onClickOverlay:g,closeOnClickOverlay:n.closeOnClickOverlay};return t.h(l,P,{default:()=>I})}}}}const{componentName:Kp,create:Up,scope:Hp}=Y("messagebox"),jp=Up(Op(Kp,Hp,ie)),Wp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M82.5121%201.93968L81.7498%206.07825C81.6498%206.6214%2081.1284%206.98064%2080.5853%206.8806C80.4326%206.85251%2080.2886%206.78925%2080.1646%206.69578L77.1586%204.43061C76.7175%204.09823%2076.6294%203.47123%2076.9618%203.03016C77.0552%202.90617%2077.1762%202.80562%2077.3153%202.73655L81.0834%200.863097C81.5779%200.617235%2082.1782%200.818843%2082.4241%201.31339C82.5204%201.50712%2082.5512%201.72688%2082.5121%201.93968Z'%20fill='%23FFD1C9'%20%3e%3c/path%3e%3cpath%20d='M3.08218%20102.2L6.53454%2094.2358C6.75419%2093.7291%207.34251%2093.4968%207.84925%2093.7164C7.99216%2093.7778%208.11815%2093.872%208.21791%2093.9909L13.2085%2099.9384C13.5635%20100.361%2013.5081%20100.992%2013.0852%20101.347C12.9665%20101.447%2012.8261%20101.518%2012.675%20101.554L4.23203%20103.571C3.69484%20103.699%203.15538%20103.367%203.02699%20102.83C2.97674%20102.62%202.99607%20102.399%203.08218%20102.2Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23FF5959'%20%3e%3c/circle%3e%3cpath%20d='M59.935%2049.6213C61.3827%2051.069%2061.3827%2053.4162%2059.935%2054.864L45.935%2068.864C44.4873%2070.3117%2042.1401%2070.3117%2040.6924%2068.864C39.2447%2067.4162%2039.2447%2065.069%2040.6924%2063.6213L54.6924%2049.6213C56.1401%2048.1736%2058.4873%2048.1736%2059.935%2049.6213Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3cpath%20d='M40.6924%2049.6213C39.2447%2051.069%2039.2447%2053.4162%2040.6924%2054.864L54.6924%2068.864C56.1401%2070.3117%2058.4873%2070.3117%2059.935%2068.864C61.3827%2067.4162%2061.3827%2065.069%2059.935%2063.6213L45.935%2049.6213C44.4873%2048.1736%2042.1401%2048.1736%2040.6924%2049.6213Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%23FFD1C9'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L102%20110L102%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Yp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cpath%20d='M8%2087L8%2095C8%2095.5523%207.55228%2096%207%2096C6.44772%2096%206%2095.5523%206%2095L6%2087L2%2087C1.44772%2087%201%2086.5523%201%2086C1%2085.4477%201.44772%2085%202%2085L6%2085L6%2082C6%2081.4477%206.44772%2081%207%2081C7.55228%2081%208%2081.4477%208%2082L8%2085L12%2085C12.5523%2085%2013%2085.4477%2013%2086C13%2086.5523%2012.5523%2087%2012%2087L8%2087Z'%20fill-rule='evenodd'%20fill='%2396CEFF'%20%3e%3c/path%3e%3cpath%20d='M89%205L89%2010C89%2010.5523%2088.5523%2011%2088%2011C87.4477%2011%2087%2010.5523%2087%2010L87%205L85%205C84.4477%205%2084%204.55228%2084%204C84%203.44772%2084.4477%203%2085%203L87%203L87%201C87%200.447715%2087.4477%200%2088%200C88.5523%200%2089%200.447715%2089%201L89%203L91%203C91.5523%203%2092%203.44772%2092%204C92%204.55228%2091.5523%205%2091%205L89%205Z'%20fill-rule='evenodd'%20fill='%23BDE2FF'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23237FFA'%20%3e%3c/circle%3e%3crect%20x='47.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%2396CEFF'%20%3e%3c/rect%3e%3crect%20x='47.5'%20y='66'%20width='7'%20height='7'%20rx='4'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3c/svg%3e",Xp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='105'%20viewBox='0%200%20102%20105'%20fill='none'%3e%3cpath%20d='M7%2076C7.55228%2076%208%2076.4477%208%2077L7.999%2079.999L12%2080C12.5523%2080%2013%2080.4477%2013%2081C13%2081.5523%2012.5523%2082%2012%2082L7.999%2081.999L8%2090C8%2090.5523%207.55228%2091%207%2091C6.44772%2091%206%2090.5523%206%2090L5.999%2081.999L2%2082C1.44772%2082%201%2081.5523%201%2081C1%2080.4477%201.44772%2080%202%2080L5.999%2079.999L6%2077C6%2076.4477%206.44772%2076%207%2076Z'%20fill='%2338D677'%20%3e%3c/path%3e%3cpath%20d='M75%201.72421e-32C75.5523%20-1.01453e-16%2076%200.447715%2076%201L76%202.999L78%203C78.5523%203%2079%203.44772%2079%204C79%204.55228%2078.5523%205%2078%205L76%204.999L76%2010C76%2010.5523%2075.5523%2011%2075%2011C74.4477%2011%2074%2010.5523%2074%2010L74%204.999L72%205C71.4477%205%2071%204.55228%2071%204C71%203.44772%2071.4477%203%2072%203L74%202.999L74%201C74%200.447715%2074.4477%201.01453e-16%2075%201.72421e-32Z'%20fill='%238BF0AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='54'%20r='28'%20fill='%2338D677'%20%3e%3c/circle%3e%3cpath%20d='M36.8787%2051.8786C38.3265%2050.4309%2040.6736%2050.4309%2042.1213%2051.8786L50.1214%2059.8786C51.5691%2061.3263%2051.5691%2063.6735%2050.1214%2065.1212C48.6737%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212L36.8787%2057.1212C35.431%2055.6735%2035.431%2053.3263%2036.8787%2051.8786Z'%20fill='%23B3F2C6'%20%3e%3c/path%3e%3cpath%20d='M64.1214%2045.8786C65.5691%2047.3263%2065.5691%2049.6735%2064.1214%2051.1212L50.1213%2065.1212C48.6736%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212C43.431%2063.6735%2043.431%2061.3263%2044.8787%2059.8786L58.8788%2045.8786C60.3265%2044.4309%2062.6737%2044.4309%2064.1214%2045.8786Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='14.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='101.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='25'%20r='7'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3c/svg%3e",Qp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='101'%20height='110'%20viewBox='0%200%20101%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M81.512%201.93968L80.7498%206.07825C80.6498%206.6214%2080.1284%206.98064%2079.5852%206.8806C79.4326%206.85251%2079.2886%206.78925%2079.1645%206.69578L76.1585%204.43061C75.7175%204.09823%2075.6293%203.47123%2075.9617%203.03016C76.0552%202.90617%2076.1761%202.80562%2076.3152%202.73655L80.0833%200.863097C80.5779%200.617235%2081.1781%200.818843%2081.424%201.31339C81.5203%201.50712%2081.5512%201.72688%2081.512%201.93968Z'%20fill='%23FEFAE0'%20%3e%3c/path%3e%3cpath%20d='M2.08224%20102.2L5.5346%2094.2358C5.75425%2093.7291%206.34257%2093.4968%206.84931%2093.7164C6.99222%2093.7778%207.11822%2093.872%207.21798%2093.9909L12.2086%2099.9384C12.5636%20100.361%2012.5082%20100.992%2012.0853%20101.347C11.9666%20101.447%2011.8261%20101.518%2011.675%20101.554L3.23209%20103.571C2.6949%20103.699%202.15544%20103.367%202.02705%20102.83C1.97681%20102.62%201.99613%20102.399%202.08224%20102.2Z'%20fill='%23FEE789'%20%3e%3c/path%3e%3ccircle%20cx='50'%20cy='59'%20r='28'%20fill='%23FAB007'%20%3e%3c/circle%3e%3crect%20x='46.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%23FEE789'%20%3e%3c/rect%3e%3crect%20x='46.5'%20y='66'%20width='7'%20height='7'%20rx='3.5'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='84.5'%20cy='106.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='94'%20cy='30'%20r='7'%20fill='%23FEE789'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L101%20110L101%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Gp=new Do,Zp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Jp=e=>{let o=document.body,l=e.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):l&&(o=e.teleport));const n=document.createElement("view"),a=`messagebox-${Gp.get()}`;n.id=a,n.classList.add("fox-messagebox__root"),e.zIndex&&(n.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const s=document.querySelector(`#${a}`);s&&s.parentNode?.removeChild(s)};const r=t.createVNode(jp,e);o.appendChild(n),t.render(r,n)},tt={show:(e,o,l,n)=>{const a={...Zp};o&&!Array.isArray(o)&&typeof o=="object"?Object.assign(a,o):(o&&(a.message=o),l&&typeof l=="object"?Object.assign(a,l):(typeof l=="string"&&(a.title=l),n&&typeof n=="object"?Object.assign(a,n):typeof n=="string"&&(a.type=n)));const r=a.type??"info";return a.icon||(r==="success"?a.icon=Xp:r==="warning"?a.icon=Qp:r==="error"?a.icon=Wp:a.icon=Yp),e==="alert"?(a.showCancelButton=!1,a.showConfirmButton=!0):e==="confirm"&&(a.showCancelButton=!0,a.showConfirmButton=!0),a.showClose&&!a.closeIcon&&(a.closeIcon=te.Close),new Promise((s,i)=>{const c=a.callback;a.callback=d=>{if(typeof c=="function")try{c(d)}catch(m){console.error(m)}s({action:d})},Jp(a)})},alert:(e,o,l)=>tt.show("alert",e,o,l),confirm:(e,o,l)=>tt.show("confirm",e,o,l),install(e){e.config.globalProperties.$alert=tt.alert,e.config.globalProperties.$confirm=tt.confirm}},_p=(e,o,l)=>{o=o??{bubbles:!1,cancelable:!1,detail:void 0};const n=document.createEvent("Events");let a=!0,r=!0;for(let i in o)i==="bubbles"?a=!!o[i]:i==="cancelable"?r=!!o[i]:n[i]=o[i];n.initEvent(e,a,r),(l??document).dispatchEvent(n)},eh=new Do,th=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),oh=e=>`${e}-${eh.get()}`,nh=Symbol.for("InnerPageScopeKey"),lh=Symbol.for("PageWrapperKey"),ah="FoxLeave",rh="FoxLeaveEnd",sh={width:{type:[String,Number]},height:{type:[String,Number]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!0},showDelay:{type:Number,default:10},showClose:{type:Boolean,default:!0},closeIcon:{type:Object},showHeader:{type:Boolean,default:!1},popClass:{type:String},popStyle:{type:Object},position:{type:String,default:"center"},mode:{type:String}};function ih(e,o,l,n){return{props:{...ze,...sh},emits:["update:visible"],setup(a,{attrs:r,slots:s,emit:i}){t.provide(nh,!0);const c={};t.provide(lh,c);const d=C=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),m=()=>{d()},f=e,h=C=>{y.value=C,i("update:visible",C)},y=t.ref(!1),g=(C,V)=>th(C)?(V.src=C,t.h("img",V)):typeof C=="string"?(Array.isArray(V.class)?V.class.push(C):V.class&&typeof V.class=="object"?V[`${C}`]=!0:typeof V.class=="string"?V.class=`${V.class}, ${C}`:V.class=C,t.h(a.tag,V)):t.h(C,V),k=()=>{if(!a.showHeader)return null;const C=[];if(s.header){const B=s.header();C.push(B)}else if(a.title){const B=t.h("view",{class:`${f}__header-title`},[a.title]);C.push(B)}if(C.length===0)return null;const V={class:[`${f}__header`]};return t.h("view",V,C)},v=()=>{if(!a.showClose)return null;const C={class:[`${f}__close-icon`],onClick:m},V=a.closeIcon??n;return g(V,C)};let u=null;const p=C=>{_p(rh,{},u)},b=oh(e),S=()=>{h(!0)},N=()=>{if(!u)return;const C=u.querySelector(".fox-overlay");C&&(C.classList.add("overlay-fade-leave-active"),C.classList.add("overlay-fade-leave-to"));const V=u.querySelector(".fox-popup");V&&(V.classList.add(`fox-popup-slide-${a.position}-leave-active`),V.classList.add(`fox-popup-slide-${a.position}-leave-to`),V.addEventListener("animationend",p,{once:!0}),V.addEventListener("transitionend",p,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{u=document.querySelector(`.${b}`),u?.addEventListener(ah,N,{once:!0}),S()}),()=>{const C=[],V=k();V&&C.push(V);const B=v();B&&C.push(B);const I=s.default?s.default():[];Reflect.apply([].push,C,I);const A={[`${f}`]:!0};a.mode&&(A[`${f}--${a.mode}`]=!0);const w={class:A},P=t.h("view",w,C),F=[`${f}__popup`,b];a.popClass&&F.push(a.popClass),a.position&&F.push(`${f}__popup--${a.position}`);const E={};a.width&&(E.width=typeof a.width=="number"?`${a.width}px`:a.width),a.height&&(E.height=typeof a.height=="number"?`${a.height}px`:a.height);const U={...he(a,ze),popClass:F.join(" "),style:E,visible:y.value,teleportDisable:!0,closeable:!1,position:a.position,closeOnClickOverlay:a.closeOnClickOverlay,onClickOverlay:m,"onUpdate:visible":h},D=t.h(l,U,{default:()=>P});return t.h("div",{class:[`${f}__root`,b]},[D])}}}}const{componentName:ch,create:uh,scope:dh}=Y("popup-wrapper"),fl=uh(ih(ch,dh,ie,te.Close));function fh(e,o){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const n=l.getBoundingClientRect().width;if(n>0){o(n);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const a=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),o(a)},500)}const mh={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function ph(e,o,l=!1){return{props:{...mh},emits:["click"],setup(n,a){const r=t.ref(!0),s=t.ref(null),i=t.computed(()=>{const y={[`${e}`]:!0,"is-truncated":n.truncated};return n.type&&(y[`${e}--${n.type??"default"}`]=!0),n.size&&(y[`${e}--${n.size}`]=!0),y}),c=t.computed(()=>{const y={},g=n.textColor??n.color;return g&&(y.color=g),y}),d=y=>{if(y&&me(n.showOverflowTooltip)){const g=y.clientWidth;fh(y,k=>{r.value=k<=g})}};let m=null;t.onMounted(()=>{if(!me(n.showOverflowTooltip))return;const y=s.value;d(y),y&&window.ResizeObserver&&(m=new window.ResizeObserver(()=>{d(y)}),m.observe(y))}),t.onUnmounted(()=>{m?.disconnect()});const f=(y,g)=>{let k=null;if(typeof n.highlightFilter=="string"&&n.highlightFilter.length>0){const v=n.highlightFilter;if(y.indexOf(v)!==-1){const p=y.replace(new RegExp(v,"g"),`<span>${v}</span>`);g.innerHTML=p,g.class["is-highlight"]=!0,k=t.h(n.tag,g)}}else if(typeof n.highlightFilter=="function"){const v=n.highlightFilter(y);v&&(g.innerHTML=v,g.class["is-highlight"]=!0,k=t.h(n.tag,g))}return k},h=y=>{a.emit("click",y)};return()=>{const y={onClick:h,class:i.value,style:c.value,ref:s};let g=null;if(me(n.numberFormat)&&typeof a.slots.default=="function"){const p=a.slots.default();if(Array.isArray(p)&&p.length===1){const b=p[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const S=fe(n.digits),N=fe(n.decimalLength),C=me(n.autoPadding);let V=`${p[0].children}`,B=V.split("").reverse().join("");B=po(B,N,C,S,n.separator),V=B.split("").reverse().join(""),n.highlightFilter!==void 0&&(g=f(V,y)),g||(y.innerHTML=V,g=t.h(n.tag,y))}}}else{if(n.highlightFilter!==void 0&&typeof a.slots.default=="function"){const p=a.slots.default();if(Array.isArray(p)&&p.length===1){const b=p[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const S=`${p[0].children}`;g=f(S,y),g||(y.innerHTML=S,g=t.h(n.tag,y))}}}g||(g=t.h(n.tag,y,{default:a.slots.default}))}if(!n.mark&&!n.icon&&!a.slots.mark)return g;let v=null;if(n.icon){const p={[`${e}__mark-wrap`]:!0};n.type&&(p[`${e}__mark-wrap--${n.type}`]=!0);const b={},S=n.color;S&&(b.color=S);const N={class:p,style:b};v=t.h("view",N,t.h(n.icon))}else if(a.slots.mark){const p={[`${e}__mark-wrap`]:!0};n.type&&(p[`${e}__mark-wrap--${n.type}`]=!0);const b={},S=n.color;S&&(b.color=S);const N={class:p,style:b};v=t.h("view",N,{default:a.slots.mark})}else{const p={[`${e}__mark`]:!0};n.type&&(p[`${e}__mark--${n.type??"default"}`]=!0);const b={},S=n.color;S&&(b["background-color"]=S);const N={class:p,style:b};v=t.h("view",N)}const u={class:{"fox-text__wrap":!0,"text-left":n.textPosition==="left","text-right":n.textPosition==="right"}};return t.h("view",u,[v,g])}}}}const{componentName:hh,create:gh,scope:yh}=Y("text"),ml=gh(ph(hh,yh,!1));function vh(e,o,l,n,a){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=o[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[a]){let c=o;for(let d=0;c&&d<r.length;d++){let m=r[d],f=c.find(h=>h[n]===m);if(!f)break;s.push(f[l])}return s}if(Array.isArray(i))for(let c=0;c<o.length&&c<r.length;c++){let d=o[c],m=r[c];const f=d.find(h=>h[n]===m);if(!f)break;s.push(f[l])}else{let c=o;for(let d=0;c&&d<r.length;d++){let m=r[d],f=c.find(h=>h[n]===m);if(!f)break;s.push(f[l]),c=f[a]}}return s}class kh{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=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}}function bh(){const e=t.getCurrentInstance();return new kh(e.proxy)}const Sh={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Ch(e,o,l=!1){return{props:{...Sh},setup(n,{attrs:a,slots:r}){const s=bh(),i=t.ref([]);t.watch([()=>n.source,()=>n.params],async([m,f])=>{i.value=await s.load(n.sourceType,m,f)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let m=vh(n.modelValue,i.value,n.textKey,n.valueKey,n.childrenKey);return m.length==0?n.emptyText??"":m.length===1?n.optionType=="item"?`${n.modelValue}${n.separator}${m[0]}`:m[0]:m.join(n.separator)}),d=n.resolveTag?t.resolveComponent(n.tag):n.tag;return()=>{const m={...a};return r.default?r.default({text:c.value,value:n.modelValue}):n.resolveTag?n.emptyText!==void 0&&n.emptyText===c.value?t.h(n.emptyTag??"span",{...a,class:n.emptyClass},c.value):t.h(d,m,{default:()=>c.value}):t.h(d,m,c.value)}}}}const{componentName:wh,create:Nh,scope:Bh}=Y("mapping"),pl=Nh(Ch(wh,Bh,!1));function Vh(e,o){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return Kr(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:t2,create:Ah,scope:o2}=Y("domain-provider"),hl=Ah(Vh()),$h={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function Th(e,o){return{inheritAttrs:!1,props:$h,setup(l,{slots:n}){if(st&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const s=(h,y)=>{if(m===null){r.set(h,{visible:null,callback:y});return}a.has(h)&&m.unobserve(h),a.set(h,{visible:null,callback:y}),m.observe(h)},i=h=>{if(m===null){r.delete(h);return}a.has(h)&&(a.delete(h),m.unobserve(h))};let c=l.initialVisibleObserverSize;Ii({acquire:()=>{const h=c>0;return c--,h},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:s,unobserve:i});let m=null;const f=(h,y,g)=>{m=new IntersectionObserver(k=>{for(let v of k){let u=!1;v.intersectionRatio>0&&(u=!0);const p=a.get(v.target);if(p)try{if(l.loadPolicy==="lazy"&&!u&&p.visible!==null)return;p.visible=u,p.callback(u)}catch(b){console.error(b)}}},{root:h,rootMargin:y,threshold:g}),r.forEach((k,v)=>{a.set(v,k),m?.observe(v)}),r.clear()};t.watch([()=>l.root,()=>l.disabled],([h,y])=>{if(y||!h||m)return;let g=null;typeof h=="string"?g=document.querySelector(h):g=h,g&&f(g,l.rootMargin,l.threshold)},{immediate:!0}),t.onUnmounted(()=>{m&&(m.disconnect(),m=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:n2,create:Eh,scope:l2}=Y("rolling-provider"),gl=Eh(Th()),{componentName:Dh,create:xh}=Y("cell"),Ih=xh({components:{Right:te.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:o}){const l=t.computed(()=>{const r=Dh;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),n=t.computed(()=>({borderRadius:pe(e.roundRadius)}));return{handleClick:r=>{o("click",r)},classes:l,baseStyle:n}}}),qh={key:0,class:"fox-cell__icon"},Mh={key:1,class:"fox-cell__title"},zh={class:"title"},Ph={class:"fox-cell__title-desc"};function Lh(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",qh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Mh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",zh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Ph,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 yl=J(Ih,[["render",Lh]]),{componentName:Fh,create:Rh}=Y("cell-group"),Oh=Rh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Fh]:!0}))}}}),Kh={key:1,class:"fox-cell-group__title"},Uh={key:3,class:"fox-cell-group__desc"},Hh={class:"fox-cell-group__wrap"};function jh(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",Kh,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.$slots.desc?t.renderSlot(e.$slots,"desc",{key:2}):e.desc?(t.openBlock(),t.createElementBlock("view",Uh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Hh,[t.renderSlot(e.$slots,"default")])],2)}const vl=J(Oh,[["render",jh]]),{componentName:Wh,create:Yh}=Y("image"),Xh=Yh({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:te.Image,ImageError:te.ImageError},emits:["click","load","error"],setup(e,{emit:o}){const l=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),n=t.computed(()=>{const y=Wh;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(g=>{g.forEach(k=>{k.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=pe(e.width)),e.height&&(y.height=pe(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=pe(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}}}),Qh=["src","date-src","alt"],Gh={key:0,class:"fox-img-loading"},Zh={key:1,class:"fox-img-error"};function Jh(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,Qh),e.loading?(t.openBlock(),t.createElementBlock("div",Gh,[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",Zh,[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 kl=J(Xh,[["render",Jh]]),{create:_h}=Y("layout"),bl=_h({}),{componentName:eg,create:tg}=Y("col"),og=tg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const o=eg,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 ng(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 Sl=J(og,[["render",ng]]),{componentName:lg,create:ag}=Y("row"),rg=ag({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const o=lg;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 Kh(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Sl=J(Oh,[["render",Kh]]),{componentName:Uh,create:Hh}=X("divider"),jh=Hh({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=Uh;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 Wh(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 Cl=J(jh,[["render",Wh]]);function Yh(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 Xh(e,o,l){const n=Yh(e.subTree.children,l);o.sort((a,r)=>n.indexOf(a.vnode)-n.indexOf(r.vnode))}function Qh(e,o){const l=t.shallowReactive([]),n=t.getCurrentInstance(),a=i=>{i.proxy&&(l.push(t.markRaw(i)),Xh(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:ur}=X("grid"),ks=Symbol("grid"),Gh={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}},Zh={props:Gh,setup(e,{slots:o}){Qh(ks,`${ur}-item`)({props:e});const l=t.computed(()=>{const a=ur;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),n=t.computed(()=>{const a={};return e.gutter&&(a.paddingLeft=fe(e.gutter)),a});return()=>t.h("view",{class:l.value,style:n.value},o.default?.())}},{create:Jh}=X("grid"),wl=Jh(Zh);function _h(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:eg,componentName:dr}=X("grid-item"),tg=eg({props:{text:{type:String}},emits:["click"],setup(e,{emit:o}){const l=_h(ks);if(!l.parent)return{};const n=l.index,a=l.parent.props,r=t.computed(()=>({[dr]:!0})),s=t.computed(()=>{const d={flexBasis:`${100/+a.columnNum}%`};return a.square?d.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(d.paddingRight=fe(a.gutter),n.value>=a.columnNum&&(d.marginTop=fe(a.gutter))),d}),i=t.computed(()=>{const d=`${dr}__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)}}}}),og={class:"fox-grid-item__text"};function ng(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",og,[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 Nl=J(tg,[["render",ng]]),{componentName:lg,create:ag}=X("navbar"),rg=ag({components:{Left:te.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:o}){const{border:l,fixed:n,safeAreaInsetTop:a,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let d=t.ref();const f=t.computed(()=>{const b=lg;return{[b]:!0,[`${b}--border`]:l.value,[`${b}--fixed`]:n.value,[`${b}--safe-area-inset-top`]:a.value}}),m=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 g(){o("on-click-icon")}function v(){o("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:f,styles:m,handleLeft:h,handleCenter:y,handleCenterIcon:g,handleRight:v}}}),sg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},ig={key:1,class:"fox-navbar__text"},cg={class:"fox-navbar__title"},ug={key:0,class:"fox-navbar__text"},dg={key:1,class:"fox-navbar__text"},fg={class:"fox-navbar__title"},mg={key:0,class:"fox-navbar__text"};function pg(e,o,l,n,a,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",sg,[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",ig,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",cg,[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",ug,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",dg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",fg,[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",mg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Bl=J(rg,[["render",pg]]),hg=(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}=ae.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:(m=!n.visible)=>{a("update:visible",m)},selected:(m,h)=>{a("selected",{item:m,event:h}),c.value=m.id},current:c}}}),{componentName:gg,create:yg,scope:vg}=X("fixednav"),kg=yg(hg(gg,vg,{[at.name]:at,Left:te.Left})),bg={class:"fox-fixednav__list"},Sg=["onClick"],Cg=["src"],wg={class:"span"},Ng={key:0,class:"b"},Bg={class:"text"};function Vg(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",bg,[(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:f=>e.selected(c,f),key:c.id||d},[t.createElementVNode("img",{src:c.icon},null,8,Cg),t.createElementVNode("view",wg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Ng,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Sg))),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",Bg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Vl=J(kg,[["render",Vg]]),{componentName:Ag,create:Tg}=X("menu"),$g=Tg({components:{ArrowUp2:te.ArrowUp2,ArrowDown2:te.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:o,slots:l}){const n=t.ref(),a=t.ref(0),r=t.ref(!1),s=()=>{const b=t.reactive([]),u=t.reactive([]);return{children:b,linkChildren:k=>{const S=N=>{N.proxy&&(u.push(N),b.push(N.proxy))},w=N=>{if(N.proxy){let T=u.indexOf(N);T>-1&&u.splice(T,1);let B=b.indexOf(N.proxy);T>-1&&b.splice(B,1)}};t.provide("menuParent",Object.assign({removeLink:w,link:S,children:b,internalChildren:u},k))}}},{children:i,linkChildren:c}=s(),d=t.computed(()=>i.some(b=>b.state.showWrapper)),f=t.computed(()=>({[Ag]:!0,"scroll-fixed":r.value})),m=()=>{if(n.value){const b=Ve(n);e.direction==="down"?a.value=b.bottom:a.value=window.innerHeight-b.top}};c({props:e,offset:a});const h=b=>{i.forEach((u,p)=>{p===b?(m(),u.toggle()):u.state.showPopup&&u.toggle(!1,{immediate:!0})})},y=b=>Math.max(0,"scrollTop"in b?b.scrollTop:b.pageYOffset),g=()=>{const{scrollFixed:b}=e,u=y(window);r.value=u>(typeof b=="boolean"?30:Number(b))},v=b=>{let u="";const{titleClass:p}=e;return b&&(u+="active"),p&&(u+=` ${p}`),u};return t.onMounted(()=>{const{scrollFixed:b}=e;b&&window.addEventListener("scroll",g)}),t.onUnmounted(()=>{const{scrollFixed:b}=e;b&&window.removeEventListener("scroll",g)}),{toggleItem:h,children:i,opened:d,classes:f,barRef:n,getClasses:v}}}),Eg=["onClick"],Dg={class:"fox-menu__title-text"},xg={class:"fox-menu__title-icon"};function Ig(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:f=>!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",Dg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",xg,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Eg))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Al=J($g,[["render",Ig]]),{componentName:qg,create:Mg}=X("menu-item"),zg=Mg({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[ce.name]:ce,Check:te.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit: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 g=t.getCurrentInstance(),{link:v,removeLink:b}=y;return v(g),t.onUnmounted(()=>{b(g)}),{parent:y}}},{parent:r}=a(),s=t.computed(()=>({[qg]:!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(g=>g.value===e.modelValue);return y?y.text:""},state:n,parent:r,toggle:(y=!n.showPopup,g={})=>{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")}}}}),Lg={class:"fox-menu-item__content fox-menu-item__overflow"},Pg=["onClick"];function Rg(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",Lg,[(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:f=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps(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,Pg))),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 Tl=J(zg,[["render",Rg]]),{create:Fg}=X("tabbar"),Og=Fg({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 Kg(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 $l=J(Og,[["render",Kg]]),{create:Ug}=X("tabbar-item"),Hg=Ug({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 f=l.children.length;n.index=f;let m=Object.assign(d.proxy,{index:f});l.children.push(m)}})(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}}}),jg={class:"fox-tabbar-item_icon-box"},Wg={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Yg={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Xg={key:1,class:"fox-tabbar-item_icon-box_dot"},Qg={key:2},Gg={key:0};function Zg(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",jg,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",Wg,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",Yg,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",Xg)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",Qg,[(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",Gg,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const El=J(Hg,[["render",Zg]]),{componentName:Jg,create:_g}=X("elevator"),ey=_g({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(()=>({[Jg]:!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)}},f=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]))},m=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,f(+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,f(n.codeIndex)},y=()=>{n.scrollStart=!1},g=(u,p)=>{o.emit("click-item",u,p),n.currentData=p,n.currentKey=u},v=u=>{o.emit("click-index",u)},b=u=>{let k=u.target.scrollTop;const S=n.listHeight;n.scrollY=k;for(let w=0;w<S.length-1;w++){let N=S[w],T=S[w+1];if(n.scrollY>=N&&n.scrollY<T){n.currentIndex=w,n.diff=T-n.scrollY;return}}n.currentIndex=S.length-2};return t.onMounted(()=>{l.value.addEventListener("scroll",b)}),Te({scrollTo:f}),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:m,touchMove:h,touchEnd:y,handleClickItem:g,handleClickIndex:v}}}),ty={class:"fox-elevator__list__item__code"},oy=["onClick"],ny=["innerHTML"],ly={class:"fox-elevator__fixed-title"},ay={class:"fox-elevator__bars__inner"},ry=["data-index","onClick"];function sy(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",ty,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,ny))],10,oy))),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",ly,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",ay,[(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,ry))),128))])],32)],2)}const Rt=J(ey,[["render",sy]]),{componentName:OB,create:iy,scope:cy}=X("pagination"),uy=iy({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}=ae.useFoxI18n(cy),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:g}=t.toRefs(e),v=+h.value||Math.ceil(+y.value/+g.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))},f=(h,y,g=!1)=>({number:h,text:y,active:g}),m=t.computed(()=>{if(r.value=="simple")return;let h=[];const y=c.value,g=+s.value;let v=1,b=y;const u=y>g;u&&(v=Math.max(a.value-Math.floor(g/2),1),b=v+g-1,b>y&&(b=y,v=b-g+1));for(var p=v;p<=b;p++){const k=f(p,p,a.value==p);h.push(k)}if(u&&g>0&&i.value){if(v>1){const k=f(v-1,"...");h.unshift(k)}if(b<y){const k=f(b+1,"...");h.push(k)}}return h});return t.watchEffect(()=>{d(a.value,!1)}),{...n,modelValue:a,select:d,countRef:c,mode:r,pages:m,forceEllipses:i}}}),dy={class:"fox-pagination"},fy={key:0,class:"fox-pagination-contain"},my=["onClick"],py={key:1,class:"fox-pagination-contain"},hy={class:"fox-pagination-simple"};function gy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",dy,[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",fy,[(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,my))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",py,[t.createElementVNode("view",hy,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 Dl=J(uy,[["render",gy]]),{componentName:fr,create:yy}=X("indicator"),vy=yy({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:o,align:l}=t.toRefs(e);return{classes:t.computed(()=>{const a=fr;return{[a]:!0,[`${a}--block`]:o.value,[`${a}--align__${l.value}`]:o.value&&l.value}}),componentName:fr,padZero:Je}}});function ky(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 xl=J(vy,[["render",ky]]),{componentName:by,create:Sy}=X("side-navbar"),Cy=Sy({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(()=>({[by]:!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}}}),wy={class:"fox-side-navbar__content"},Ny={class:"fox-side-navbar__content__list",ref:"list"};function By(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",wy,[t.createElementVNode("view",Ny,[t.renderSlot(e.$slots,"default")],512)])],2)}const Il=J(Cy,[["render",By]]),{componentName:Vy,create:Ay}=X("side-navbar-item"),Ty=Ay({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,o)=>({classes:t.computed(()=>({[Vy]:!0})),handleClick:()=>{o.emit("click")}})}),$y=["ikey"],Ey={class:"fox-side-navbar-item__title"};function Dy(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",Ey,t.toDisplayString(e.title),1)],10,$y)}const ql=J(Ty,[["render",Dy]]),{componentName:xy,create:Iy}=X("sub-side-navbar"),qy=Iy({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:te.ArrowDown2,ArrowUp2:te.ArrowUp2},emits:["title-click"],setup:(e,o)=>{const l=t.reactive({direction:""}),n=t.computed(()=>({[xy]:!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}}}),My=["ikey"],zy={class:"fox-sub-side-navbar__title__text"},Ly={class:"fox-sub-side-navbar__title__icon"};function Py(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",zy,t.toDisplayString(e.title),1),t.createElementVNode("span",Ly,[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,My)}const Ml=J(qy,[["render",Py]]),{componentName:Ry,create:Fy}=X("range"),Oy=Fy({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:$,max:E,min:x}=e;return Object.keys($).map(parseFloat).sort((R,Y)=>R-Y).filter(R=>R>=x&&R<=E)}),d=t.computed(()=>Number(e.max)-Number(e.min)),f=t.computed(()=>{const $=Ry;return{[$]:!0,[`${$}-disabled`]:e.disabled,[`${$}-vertical`]:e.vertical,[`${$}-show-number`]:!e.hiddenRange}}),m=t.computed(()=>{const $="fox-range-container";return{[$]:!0,[`${$}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),y=t.computed(()=>({borderColor:e.buttonColor})),g=$=>!!e.range&&Array.isArray($),v=()=>{const{modelValue:$,min:E}=e;return g($)?`${($[1]-$[0])*100/d.value}%`:`${($-Number(E))*100/d.value}%`},b=()=>{const{modelValue:$,min:E}=e;return g($)?`${($[0]-Number(E))*100/d.value}%`:"0%"},u=t.computed(()=>e.vertical?{height:v(),top:b(),background:e.activeColor,transition:s.value?"none":void 0}:{width:v(),left:b(),background:e.activeColor,transition:s.value?"none":void 0}),p=$=>{const E="fox-range-mark",{modelValue:x,max:A,min:H}=e;let R=Number(H),Y=Number(A);if(e.range){const[P,z]=x;R=P,Y=z}else Y=x;let U=$<=Y&&$>=R;return{[`${E}-text`]:!0,[`${E}-text-active`]:U}},k=$=>{const{min:E,vertical:x}=e;let A={left:`${($-Number(E))/d.value*100}%`};return x&&(A={top:`${($-Number(E))/d.value*100}%`}),A},S=$=>{const{modelValue:E,max:x,min:A}=e;let H=Number(A),R=Number(x);if(e.range){const[P,z]=E;H=P,R=z}return{background:$<=R&&$>=H?e.activeColor:e.inactiveColor}},w=$=>{const{min:E,max:x,step:A}=e;return $=Math.max(+E,Math.min($,+x)),Math.round($/+A)*+A},N=($,E)=>JSON.stringify($)===JSON.stringify(E),T=$=>$[0]>$[1]?$.slice(0).reverse():$,B=($,E)=>{g($)?$=T($).map(w):$=w($),N($,e.modelValue)||o("update:modelValue",$),E&&!N($,n)&&o("change",$)},D=$=>{if(e.disabled)return;const{min:E,modelValue:x}=e,A=Ve(r);let H=$.clientX-A.left,R=A.width;e.vertical&&(H=$.clientY-A.top,R=A.height);const Y=Number(E)+H/R*d.value;if(g(x)){const[U,P]=x,z=(U+P)/2;Y<=z?B([Y,P],!0):B([U,Y],!0)}else B(Y,!0)},C=$=>{e.disabled||(i.start($),a=e.modelValue,g(a)?n=a.map(w):n=w(a),s.value="start")},V=$=>{if(e.disabled)return;s.value==="start"&&o("drag-start"),i.move($),s.value="draging";const E=Ve(r);let x=i.deltaX.value,A=E.width,H=x/A*d.value;e.vertical&&(x=i.deltaY.value,A=E.height,H=x/A*d.value),g(n)?a[l.value]=n[l.value]+H:a=n+H,B(a),$.stopPropagation(),$.preventDefault()},M=()=>{e.disabled||(s.value==="draging"&&(B(a,!0),o("drag-end")),s.value="")},L=$=>po(e.modelValue)&&typeof $=="number"?e.modelValue[$]:Number(e.modelValue);return{root:r,classes:f,wrapperStyle:h,buttonStyle:y,onClick:D,onTouchStart:C,onTouchMove:V,onTouchEnd:M,...t.toRefs(e),barStyle:u,curValue:L,buttonIndex:l,containerClasses:m,markClassName:p,marksStyle:k,marksList:c,tickStyle:S}}}),Ky={key:0,class:"fox-range-min"},Uy={key:0,class:"fox-range-mark"},Hy=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],jy={key:0,class:"number"},Wy=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Yy={key:0,class:"number"},Xy={key:1,class:"fox-range-max"};function Qy(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",Ky,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",Uy,[(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",jy,t.toDisplayString(e.curValue(s)),1))],4))],42,Hy)),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",Yy,t.toDisplayString(e.curValue()),1))],4))],40,Wy))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Xy,t.toDisplayString(+e.max),1))],2)}const Ft=J(Oy,[["render",Qy]]),{create:Gy,scope:Zy}=X("short-password"),Jy=Gy({components:{[ce.name]:ce,Tips:te.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(Zy),n=l(e,["title","desc","tips"]),a=t.ref(e.modelValue),r=t.computed(()=>d(Number(e.length))),s=t.ref(e.visible),i=m=>{m.stopPropagation(),o("focus")};t.watch(()=>e.visible,m=>{s.value=m}),t.watch(()=>e.modelValue,m=>{a.value=m,String(m).length===r.value&&o("complete",m)});const c=()=>{o("update:visible",!1),o("close")},d=m=>Math.min(Math.max(4,m),6);return{comLen:r,realInput:a,onTouchStart:i,range:d,close:c,onTips:()=>{o("tips")},show:s,...n}}}),_y={class:"fox-short-password-title"},ev={class:"fox-short-password-subtitle"},tv={class:"fox-short-password-wrapper"},ov={key:0,class:"fox-short-password__item-icon"},nv={class:"fox-short-password__message"},lv={class:"fox-short-password--error"},av={key:0,class:"fox-short-password--forget"};function rv(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",_y,t.toDisplayString(e.title),1),t.createElementVNode("view",ev,t.toDisplayString(e.desc),1),t.createElementVNode("div",tv,[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",ov)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",nv,[t.createElementVNode("view",lv,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",av,[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 zl=J(Jy,[["render",rv]]);class sv{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let iv=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 cv{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const bs=(e,{args:o=[],done:l,canceled:n})=>{if(e){const a=e.apply(null,o);Dn(a)?a.then(r=>{r?l(r):n&&n()}).catch(()=>{}):a?l():n&&n()}else l()},{create:uv}=X("progress"),dv=uv({components:{Checked:te.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const o=!!t.useSlots().default,l=t.ref(e.strokeWidth+"px"),n=t.ref(),a=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),s=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),i=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:l,percentage:r,bgStyle:s,textStyle:i,progressOuter:n,insideText:a,slotDefault:o}}}),fv={class:"fox-progress"},mv={key:0,class:"fox-progress-text"};function pv(e,o,l,n,a,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",fv,[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",mv,[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 Ot=J(dv,[["render",pv]]),{componentName:hv,create:gv,scope:yv}=X("uploader"),vv=gv({components:{[Ot.name]:Ot,Photograph:te.Photograph,Failure:te.Failure,Loading:te.Loading,Del:te.Del,Link:te.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,o)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(yv),n=t.reactive(e.fileList);let a=[];const r=t.computed(()=>({[hv]:!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 sv;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=N=>{p.status="ready",p.message=l("readyUpload"),f(k),o("start",N)},S.onProgress=(N,T)=>{p.status="uploading",p.message=l("uploading"),p.percentage=(N.loaded/N.total*100).toFixed(0),o("progress",{event:N,option:T,percentage:p.percentage})},S.onSuccess=(N,T)=>{p.status="success",p.message=l("success"),o("success",{responseText:N,option:T,fileItem:p}),o("update:fileList",n)},S.onFailure=(N,T)=>{p.status="error",p.message=l("error"),o("failure",{responseText:N,option:T,fileItem:p})};let w=new iv(S);e.autoUpload?w.upload():a.push(new Promise((N,T)=>{N(w)}))},f=(p=-1)=>{p>-1?a.splice(p,1):(a=[],n.splice(0,n.length))},m=()=>{Promise.all(a).then(p=>{p.forEach(k=>k.upload())})},h=p=>{p.forEach((k,S)=>{const w=new FormData;for(const[T,B]of Object.entries(e.data))w.append(T,B);w.append(e.name,k);const N=t.reactive(new cv);if(N.name=k.name,N.status="ready",N.type=k.type,N.formData=w,N.message=l("waitingUpload"),d(N,S),e.isPreview&&k.type.includes("image")){const T=new FileReader;T.onload=B=>{N.url=B.target.result,n.push(N)},T.readAsDataURL(k)}else n.push(N)})},y=p=>{const k=e.maximum*1,S=e.maximize*1,w=new Array;p=p.filter(T=>T.size>S?(w.push(T),!1):!0),w.length&&o("oversize",w);let N=p.length+n.length;return N>k&&p.splice(p.length-(N-k)),p},g=(p,k)=>{n.splice(k,1),o("delete",{file:p,fileList:n,index:k})},v=(p,k)=>{f(k),bs(e.beforeDelete,{args:[p,n],done:()=>g(p,k)})},b=p=>{if(e.disabled)return;const k=p.target;let{files:S}=k;e.beforeUpload?e.beforeUpload(S).then(w=>u(w)):u(S),o("change",{fileList:n,event:p}),e.clearInput&&i(k)},u=p=>{const k=y(new Array().slice.call(p));h(k)};return{onChange:b,onDelete:v,fileList:n,classes:r,fileItemClick:c,clearUploadQueue:f,submit:m,renderInput:s}}}),kv={key:0,class:"fox-uploader__slot"},bv={key:0,class:"fox-uploader__preview-img"},Sv={key:0,class:"fox-uploader__preview__progress"},Cv={class:"fox-uploader__preview__progress__msg"},wv=["onClick"],Nv=["onClick","src"],Bv={key:3,class:"fox-uploader__preview-img__file"},Vv=["onClick"],Av={class:"file__name_tips"},Tv={class:"tips"},$v={key:1,class:"fox-uploader__preview-list"},Ev=["onClick"],Dv={class:"file__name_tips"};function xv(e,o,l,n,a,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),d=t.resolveComponent("Del"),f=t.resolveComponent("fox-progress"),m=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",kv,[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",bv,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",Sv,[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",Cv,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:g=>e.onDelete(h,y)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,wv)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:g=>e.fileItemClick(h),src:h.url},null,8,Nv)):(t.openBlock(),t.createElementBlock("view",Bv,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",Av,t.toDisplayString(h.name),1)],8,Vv)])),t.createElementVNode("view",Tv,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",$v,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[h.status]])},[t.createVNode(c,{class:"fox-uploader__preview-img__file__link"}),t.createElementVNode("view",Dv,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:g=>e.onDelete(h,y)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,Ev),h.status=="uploading"?(t.openBlock(),t.createBlock(f,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(m,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const Ll=J(vv,[["render",xv]]),Iv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5U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hwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:Mv,scope:zv}=X("number-keyboard"),Lv=Mv({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}=ae.useFoxI18n(zv),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 f=t.computed(()=>e.type=="rightColumn"||e.title!=""?d():i()),m=()=>{e.visible&&o("blur")},h=u=>{const p=s.value;p&&!p.contains(u.target)&&m()};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"&&b(),u.type=="delete"&&(o("delete"),o("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function g(u){u.stopPropagation()}function v(u){u.preventDefault(),a.value=void 0}function b(){o("update:visible",!1),o("close")}return{...n,delImg:Iv,lockImg:qv,clickKeyIndex:a,defaultKey:i,closeBoard:b,onTouchEnd:v,onTouchMove:g,onTouchstart:y,keysList:f,genCustomKeys:d,getBasicKeys:c,root:s,show:r}}}),Pv={ref:"root"},Rv={class:"fox-number-keyboard"},Fv={key:0,class:"fox-number-keyboard__header"},Ov={class:"fox-number-keyboard__title"},Kv={class:"fox-number-keyboard__body"},Uv={class:"fox-number-keyboard__keys"},Hv=["onTouchstart"],jv=["src"],Wv=["src"],Yv={key:0,class:"fox-number-keyboard__sidebar"},Xv={class:"fox-key__wrapper"},Qv=["src"];function Gv(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",Pv,[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",Rv,[e.title?(t.openBlock(),t.createElementBlock("div",Fv,[t.createElementVNode("h3",Ov,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",Kv,[t.createElementVNode("div",Uv,[(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,jv)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,Wv)):t.createCommentVNode("",!0)],42,Hv)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",Yv,[t.createElementVNode("div",Xv,[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,Qv)],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 Pl=J(Lv,[["render",Gv]]),{componentName:Zv,create:Jv}=X("swipe"),_v=Jv({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(()=>({[Zv]:!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="",f="";const m=t.reactive({offset:0,moving:!1}),h=(p="")=>{c=!0,p&&(m.offset=p==="left"?-i.value:r.value),o("open",{name:e.name,position:d||p})},y=()=>{m.offset=0,c=!1,o("close",{name:e.name,position:d})},g=t.computed(()=>({transform:`translate3d(${m.offset}px, 0, 0)`})),v=p=>{d=p>0?"right":"left";let k=p;switch(d){case"left":c&&f===d?k=-i.value:k=Math.abs(p)>i.value?-i.value:p;break;case"right":c&&f===d?k=r.value:k=Math.abs(p)>r.value?r.value:p;break}m.offset=k},b=Ke();return{classes:l,touchStyle:g,...{onTouchStart(p){e.disabled||b.start(p)},onTouchMove(p){e.disabled||(b.move(p),b.isHorizontal()&&(m.moving=!0,v(b.deltaX.value),e.touchMovePreventDefault&&p.preventDefault(),e.touchMoveStopPropagation&&p.stopPropagation()))},onTouchEnd(){if(m.moving)switch(m.moving=!1,f=d,d){case"left":Math.abs(m.offset)<=i.value/2?y():(m.offset=-i.value,h());break;case"right":Math.abs(m.offset)<=r.value/2?y():(m.offset=r.value,h());break}}},leftRef:a,rightRef:s,open:h,close:y}}}),e0={class:"fox-swipe__left",ref:"leftRef"},t0={class:"fox-swipe__content"},o0={class:"fox-swipe__right",ref:"rightRef"};function n0(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",e0,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",t0,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",o0,[t.renderSlot(e.$slots,"right")],512)],38)}const Kt=J(_v,[["render",n0]]),{componentName:l0,create:a0}=X("action-sheet"),r0=a0({components:{[ce.name]:ce,Loading:te.Loading},props:{...Xe,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(()=>({[l0]:!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}}}),s0={key:0,class:"fox-action-sheet__title"},i0={key:1},c0={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},u0={key:1,class:"fox-action-sheet__menu"},d0=["onClick"],f0={key:1},m0={class:"fox-action-sheet__subdesc"};function p0(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",s0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",i0,[e.description?(t.openBlock(),t.createElementBlock("view",c0,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",u0,[(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:f=>e.chooseItem(c,d)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",f0,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",m0,t.toDisplayString(c[e.optionSubTag]),1)],14,d0))),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 Rl=J(r0,[["render",p0]]),{componentName:h0,create:g0}=X("backtop"),Fl=g0({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(()=>({[h0]:!0,show:n.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){n.scrollEl instanceof Window?n.scrollTop=n.scrollEl.pageYOffset:n.scrollTop=n.scrollEl.scrollTop,n.backTop=n.scrollTop>=e.distance}function i(g=0){n.scrollEl instanceof Window?window.scrollTo(0,g):n.scrollEl.scrollTop=g}function c(){let g=je(function v(){var b=e.duration-Math.max(0,n.startTime-+new Date+e.duration),u=b*-n.scrollTop/e.duration+n.scrollTop;i(u),g=je(v),(b==e.duration||u==0)&&hr(g)})}function d(){n.scrollEl.addEventListener("scroll",s,!1),n.scrollEl.addEventListener("resize",s,!1)}function f(){n.scrollEl.removeEventListener("scroll",s,!1),n.scrollEl.removeEventListener("resize",s,!1)}function m(g){n.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),o("click",g)}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(()=>{f()}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1,h())}),t.onDeactivated(()=>{n.keepAlive=!0,f()});const y=t.computed(()=>{if(typeof l.content=="function"){const g=l.content();return Array.isArray(g)?g[0]:g}return null});return()=>{const g=[];y.value&&g.push(y.value);const v=[];if(typeof l.default=="function")v.push(l.default());else{const u=t.h(te.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});v.push(u)}const b=t.h("div",{class:a.value,style:r.value,onClick:m},v);return g.push(b),g}}}),{componentName:y0,create:v0}=X("drag"),k0=v0({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(()=>({[y0]:!0}));function r(){const m=document.documentElement;n.elWidth=l.value.offsetWidth,n.elHeight=l.value.offsetHeight,n.screenWidth=m.clientWidth,n.screenHeight=m.clientHeight}function s(m){n.boundary.left?+m.style.left.split("px")[0]>n.boundary.left?(m.style.left=+m.style.left.split("px")[0]-10+"px",Le(()=>{s(m)})):m.style.left=`${n.boundary.left}px`:+m.style.left.split("px")[0]>10?(m.style.left=+m.style.left.split("px")[0]-10+"px",Le(()=>{s(m)})):m.style.left="0px"}function i(m,h){h-parseInt(m.style.left.split("px")[0])>10?(m.style.left=parseInt(m.style.left.split("px")[0])+10+"px",Le(()=>{i(m,h)})):m.style.left=h+"px"}function c(m){m.preventDefault();const h=m.currentTarget;if(m.targetTouches.length===1){const y=m.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 g=n.screenWidth-n.elWidth-n.boundary.right;Math.abs(n.xPum)>g?n.xPum=g:n.xPum<=n.boundary.left&&(n.xPum=n.boundary.left),n.yPum<n.boundary.top?n.yPum=n.boundary.top:n.yPum>n.screenHeight-n.elHeight-n.boundary.bottom&&(n.yPum=n.screenHeight-n.elHeight-n.boundary.bottom),e.direction!="y"&&(h.style.left=n.xPum+"px"),e.direction!="x"&&(h.style.top=n.yPum+"px")}}function d(m){const h=m.currentTarget;let g=m.changedTouches[0].clientX;const v=n.screenWidth-n.elWidth-n.boundary.right;g>v?g=v:g<n.boundary.left?g=n.boundary.left:g=g<n.screenWidth/2?n.boundary.left:v,e.direction!="y"&&e.attract&&(g<n.screenWidth/2?Le(()=>{s(h)}):Le(()=>{i(h,v)})),e.direction!="x"&&(h.style.top=n.yPum+"px")}function f(m){const h=m.currentTarget,y=m.touches[0],g=m.targetTouches[0];n.startTop=h.offsetTop,n.startLeft=h.offsetLeft,n.position.x=y.clientX,n.position.y=y.clientY,n.nx=g.clientX-n.position.x,n.ny=g.clientY-n.position.y,n.xPum=n.startLeft+n.nx,n.yPum=n.startTop+n.ny}return t.onMounted(()=>{r(),n.boundary=e.boundary}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1)}),t.onDeactivated(()=>{n.keepAlive=!0;const m=l;m.value.removeEventListener("touchstart",f),m.value.removeEventListener("touchmove",c),m.value.removeEventListener("touchend",d)}),{classes:a,myDrag:l,touchStart:f,touchMove:c,touchEnd:d}}});function b0(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 Ol=J(k0,[["render",b0]]),S0={width:{type:[String,Number]},height:{type:[String,Number]},plain:{type:[Boolean]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},showClose:{type:Boolean,default:!1},closeIcon:{type:Object},content:{type:[String,Object]},showFooter:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},cancelButtonText:{type:String},cancelText:{type:String},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},confirmButtonText:{type:String},confirmText:{type:String},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},footerDirection:{type:String,default:"horizontal"},popClass:{type:String},popStyle:{type:Object},beforeClose:{type:Function}},C0=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function w0(e,o,l,n,a){return{props:{...Xe,...S0},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:d}=ae.useFoxI18n(o),f=d(r,["confirmText","cancelText"]),m=e,h=t.ref(r.visible);t.watch(()=>r.visible,N=>{h.value!==N&&(h.value=N,N&&c("opened"))});const y=N=>{h.value=N,c("update:visible",N),c("update",N)},g=N=>{if(c(N),!(N==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const T=r.beforeClose(N);Dn(T)?T.then(B=>{B&&(y(!1),c("closed",N))}):T===!0&&(y(!1),c("closed",N))}else y(!1),c("closed",N)},v=()=>{g("confirm")},b=()=>{g("cancel")},u=()=>{g("close")},p=(N,T)=>C0(N)?(T.src=N,t.h("img",T)):typeof N=="string"?(Array.isArray(T.class)?T.class.push(N):T.class&&typeof T.class=="object"?T[`${N}`]=!0:typeof T.class=="string"?T.class=`${T.class}, ${N}`:T.class=N,t.h(r.tag,T)):t.h(N,T),k=()=>{const N=[];if(i.header){const B=i.header();N.push(B)}else{if(r.title){const B=t.h("view",{class:`${m}__header-title`},[r.title]);N.push(B)}if(r.showClose){const B={class:[`${m}__header-close-icon`],onClick:u},D=r.closeIcon??a,C=p(D,B);N.push(C)}}if(N.length===0)return null;const T={class:[`${m}__header`]};return t.h("view",T,N)},S=()=>{const N=[];if(i.default)N.push(i.default());else{const B={class:[`${m}__content`]};if(r.textAlign&&B.class.push(r.textAlign),typeof r.content=="string"){B.innerHTML=r.content;const D=t.h("view",B);N.push(D)}else if(typeof r.content=="function"){const D=t.h("view",B,[r.content()]);N.push(D)}else{const D=t.h("view",B,[r.content]);N.push(D)}}if(N.length===0)return null;const T={class:[`${m}__body`]};return t.h("view",T,N)},w=()=>{if(!r.showFooter)return null;const N=[];if(i.footer)N.push(i.footer());else if(r.plain){if(r.showCancelButton){const B={class:[`${m}__footer-button`,`${m}__footer-cancel`],style:{},onClick:b};r.cancelButtonClass&&B.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(B.style,r.cancleButtonStyle);const D=t.h("view",B,[r.cancelButtonText??f.cancelText.value]);N.push(D)}if(r.showConfirmButton){const B={class:[`${m}__footer-button`,`${m}__footer-confirm`],style:{},onClick:v};r.confirmButtonClass&&B.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(B.style,r.confirmButtonStyle);const D=t.h("view",B,[r.confirmButtonText??f.confirmText.value]);N.push(D)}}else{if(r.showCancelButton){const B={class:[`${m}__footer-button`,`${m}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:b};r.cancelButtonClass&&B.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(B.style,r.cancleButtonStyle);const D=t.h(n,B,{default:()=>[r.cancelButtonText??f.cancelText.value]});N.push(D)}if(r.showConfirmButton){const B={class:[`${m}__footer-button`,`${m}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:v};r.confirmButtonClass&&B.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(B.style,r.confirmButtonStyle);const D=t.h(n,B,{default:()=>[r.confirmButtonText??f.confirmText.value]});N.push(D)}}if(N.length===0)return null;const T={class:[`${m}__footer`,`${m}__footer--${r.footerDirection}`]};return t.h("view",T,N)};return()=>{const N=[],T=k();T&&N.push(T);const B=S();B&&N.push(B);const D=w();D&&N.push(D);const C={class:{[`${m}`]:!0,[`${m}--plain`]:r.plain}},V=t.h("view",C,N),M=[`${m}__popup`];r.popClass&&M.push(r.popClass);const L={};r.width&&(L.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(L.height=typeof r.height=="number"?`${r.height}px`:r.height);const E={...he(r,Xe),popClass:M.join(" "),style:L,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:r.position,onClickOverlay:u,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(l,E,{default:()=>V})}}}}const{componentName:N0,create:B0,scope:V0}=X("dialog"),Ss=B0(w0(N0,V0,ce,Ie,te.Close));class A0{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 T0{options=new A0;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"),s=`dialog-${l.id}`;r.id=s;const i={setup(){return l.onUpdate=d=>{if(d===!1){const f=document.querySelector(`#${s}`);f&&f.parentNode?.removeChild(f)}},l?.onOpened&&l?.onOpened(),()=>t.h(Ss,l)}},c=t.createVNode(i);n.appendChild(r),t.render(c,r)}}const Ut=function(e){return new T0(e)};Ut.install=e=>{e.use(Ss),e.config.globalProperties.$dialog=Ut};const{componentName:$0,create:E0,scope:D0}=X("pull-refresh"),x0=E0({props:{modelValue:{type:Boolean,default:!1},pullingText:{type:String},loosingText:{type:String},loadingText:{type:String},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},emits:["change","refresh","update:modelValue"],components:{Loading:te.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(D0),a=n(e,["pullingText","loosingText","loadingText"]),r=Ke(),s=t.ref(),i=ls(s),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal"}),d=t.computed(()=>({[$0]:!0})),f=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}}),m=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=fe(e.headHeight)),S}),y=S=>{const w=+(e.pullDistance||e.headHeight);let N=S;return S>w&&(S<w*2?N=(S+w)/2:N=w+S/4),Math.round(N)},g=(S,w)=>{const N=+(e.pullDistance||e.headHeight);c.distance=S,w?c.status="loading":S===0?c.status="normal":S<N?c.status="pulling":c.status="loosing",o("change",{status:c.status,distance:S})},v=()=>c.status!=="loading"&&c.status!=="complete",b=()=>i.value==window?In()==0:i.value&&i.value.scrollTop==0,u=S=>{v()&&(b()?(r.start(S),c.isPullRefresh=!0):(c.distance=0,c.isPullRefresh=!1))},p=S=>{if(v()){r.move(S);const{deltaY:w}=r;r.isVertical()&&w.value>0&&c.isPullRefresh&&(S.cancelable&&S.preventDefault(),g(y(w.value)))}},k=()=>{c.isPullRefresh&&v()&&r.deltaY.value&&(c.status==="loosing"?(g(+e.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):g(0)),setTimeout(()=>{r.reset()},0)};return t.watch(()=>e.modelValue,S=>{S?g(+e.headHeight,!0):g(0)}),{classes:d,scroller:s,...t.toRefs(c),touchStart:u,touchMove:p,touchEnd:k,getStyle:m,slots:l,getHeightStyle:h,getPullStatus:f}}}),I0={class:"fox-pull-refresh-container-topbox-text"};function q0(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",I0,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 Kl=J(x0,[["render",q0]]),{create:M0}=X("notify"),z0=M0({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 f=e.duration;d&&f&&(n=setTimeout(()=>{r()},f))},{immediate:!0});return{onAfterLeave:()=>{a(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:l,isShowPopup:s}}});function L0(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 Ul=J(z0,[["render",L0]]),An={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let dt=[],Dt=[];const Cs=e=>{if(e){const o=document.getElementById(e);Dt=Dt.filter(l=>l.id!==e),dt=dt.filter(l=>l!==e),o&&document.body.removeChild(o)}else dt.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),Dt=[],dt=[]},P0=e=>{const o=document.getElementById(e.id);if(o){const l=Dt.find(a=>a.id===e.id);l?e={...An,...l,...e}:e={...An,...e};const n=t.createVNode(Ul,e);return t.render(n,o),n.component.data}},Vt=e=>{e.unmount=Cs;let o;if(e.id){if(o=e.id,dt.find(r=>r===e.id))return P0(e)}else o=new Date().getTime()+"";e={...An,...e},e.id=o,dt.push(e.id),Dt.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(Ul,e)}},a=t.createVNode(n);document.body.appendChild(l),t.render(a,l)},At=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Hl={text(e,o={}){return At(e),Vt({...o,msg:e})},primary(e,o={}){return At(e),Vt({...o,msg:e,type:"primary"})},success(e,o={}){return At(e),Vt({...o,msg:e,type:"success"})},danger(e,o={}){return At(e),Vt({...o,msg:e,type:"danger"})},warn(e,o={}){return At(e),Vt({...o,msg:e,type:"warning"})},hide(){Cs()},install(e){e.use(Ul)}},{create:R0}=X("toast"),F0=R0({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})},f=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),m=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:f,toastIconWrapperClass:m,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),O0={key:1,class:"fox-toast-title"},K0=["innerHTML"];function U0(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",O0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,K0)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const jl=J(F0,[["render",U0]]),Tn={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 ft=[],xt=[];const ws=e=>{if(e){const o=document.getElementById(e);xt=xt.filter(l=>l.id!==e),ft=ft.filter(l=>l!==e),o&&document.body.removeChild(o)}else ft.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),xt=[],ft=[]},H0=e=>{const o=document.getElementById(e.id);if(o){const l=xt.find(a=>a.id===e.id);l?e={...Tn,...l,...e}:e={...Tn,...e};const n=t.createVNode(jl,e);return t.render(n,o),Ct}},Tt=e=>{e.unmount=ws;let o;if(e.id){if(o=e.id,ft.find(a=>a===e.id))return H0(e)}else o=new Date().getTime()+"";e={...Tn,...e},e.id=o,ft.push(e.id),xt.push(e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(jl,e);return t.render(n,l),document.body.appendChild(l),Ct},Zt=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Ct={text(e,o={}){return Zt(e),Tt({...o,type:"text",msg:e})},success(e,o={}){return Zt(e),Tt({icon:te.Success,...o,msg:e,type:"success"})},fail(e,o={}){return Zt(e),Tt({icon:te.Failure,...o,msg:e,type:"fail"})},warn(e,o={}){return Zt(e),Tt({icon:te.Tips,...o,msg:e,type:"warn"})},loading(e,o={}){return Tt({icon:te.Loading,...o,msg:e,type:"loading"})},hide(e){ws(e)},install(e){e.use(jl),e.config.globalProperties.$toast=Ct}},{componentName:UB,create:j0}=X("audio"),W0=j0({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:te.Service,[Ft.name]:Ft},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 b=0;b<v.length;b++)document.addEventListener(v[b],()=>{document.hidden?n.value.pause():a.playing&&setTimeout(()=>{n.value.play()},200)})}catch(b){b.message}});const r=v=>{const b=n.value;e.autoplay&&b&&b.paused&&b.play(),a.second=b.duration,a.duration=g(b.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)},f=v=>{a.currentDuration=g(v),a.percent=v/a.second*100},m=()=>{a.playing=!1,o("ended")},h=v=>{const b=n.value;b.currentTime=a.second*v/100,o("changeProgress",b.currentTime)},y=()=>{a.hanMuted=!a.hanMuted,o("mute",a.hanMuted)},g=v=>{if(!v)return"00:00:00";let b=parseInt(v),u=Math.floor(b/3600),p=Math.floor((b-u*3600)/60),k=b-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,v=>{f(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:m,onTimeupdate:s,handleMute:y,onCanplay:r,slots:l}}}),Y0={class:"fox-audio"},X0={key:0,class:"fox-audio__progress"},Q0={class:"fox-audio__time"},G0={class:"fox-audio__bar"},Z0=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),J0={class:"fox-audio__time"},_0={key:1,class:"fox-audio__icon"},ek=["controls","src","preload","autoplay","loop","muted"];function tk(e,o,l,n,a,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",Y0,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",X0,[t.createElementVNode("div",Q0,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",G0,[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(()=>[Z0]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",J0,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",_0,[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,ek)])}const Wl=J(W0,[["render",tk]]),{componentName:HB,create:ok,scope:nk}=X("audio-operate"),lk=ok({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(nk),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}}}),ak={class:"fox-audio-operate"};function rk(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",ak,[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 Yl=J(lk,[["render",rk]]),{componentName:sk,create:ik}=X("avatar"),ck=ik({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 g=s?.avatarGroupRef?.value?.children;g&&y(g)});const f=t.computed(()=>({[sk]:!0,[`fox-avatar-${o.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${l.value||s?.props?.shape||"normal"}`]:!0})),m=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=g=>{d.maxIndex=g.length;for(let v=0;v<g.length;v++)g[v]&&g[v].classList&&g[v].classList[0]=="fox-avatar"&&g[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:f,styles:m,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(d)}}});function uk(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 Ht=J(ck,[["render",uk]]),{componentName:dk,create:fk}=X("avatar-group"),mk=fk({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(()=>({[dk]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:n,index:a}),{classes:r,avatarGroupRef:n}}});function pk(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 Xl=J(mk,[["render",pk]]);var oo=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(oo||{});function hk(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:gk,create:yk}=X("list"),mr=document.documentElement.clientHeight||document.body.clientHeight||667,vk=yk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:mr},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,mr)),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(()=>({[gk]:!0})),f=t.computed(()=>r.list.slice(r.start,c.value)),m=()=>{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(T=>T.nodeType===1);const p=u[0];u.forEach((T,B)=>{if(!T)return;const D=Ve(T),{height:C}=D,M=r.cachePositions[B+r.start].height-C;M&&(r.cachePositions[B+r.start].bottom-=M,r.cachePositions[B+r.start].height=C,r.cachePositions[B+r.start].dValue=M)});let k=0;p&&(k=r.start);const S=r.cachePositions.length;let w=r.cachePositions[k].dValue;r.cachePositions[k].dValue=0;for(let T=k+1;T<S;++T){const B=r.cachePositions[T];r.cachePositions[T].top=r.cachePositions[T-1].bottom,r.cachePositions[T].bottom=r.cachePositions[T].bottom-w,B.dValue!==0&&(w+=B.dValue,B.dValue=0)}const N=r.cachePositions[S-1].bottom;r.phantomHeight=N},g=(u=0)=>{let p=hk(r.cachePositions,u,(S,w)=>{const N=S.bottom;return N===w?oo.eq:N<w?oo.lt:oo.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},b=()=>{const u=l.value?.scrollTop,{originStartIndex:p}=r,k=g(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(),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:m,visibleData:f,classes:d,getContainerHeight:s,handleScrollEvent:b}}});function kk(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 Ql=J(vk,[["render",kk]]),{componentName:bk,create:Sk}=X("circleprogress"),Ck=Sk({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:o}){const l=!!t.useSlots().default,n=Math.random().toString(36).slice(-8),a=t.computed(()=>({[bk]:!0})),r=t.computed(()=>{const f=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${f} 0 90 a 45 45 0 1, ${f} 0 -90`}),s=t.computed(()=>Be(e.color)?`url(#${n})`:e.color),i=t.computed(()=>{let f=283,m=f*Number(e.progress)/100;return{stroke:Be(e.color)?`url(#${n})`:e.color,strokeDasharray:`${m}px ${f}px`}}),c=t.computed(()=>({stroke:e.pathColor})),d=t.computed(()=>{if(!Be(e.color))return;let f=e.color;const m=Object.keys(f).sort((y,g)=>parseFloat(y)-parseFloat(g));let h=[];return m.map((y,g)=>{let v={key:"",value:""};v.key=y,v.value=f[y],h.push(v)}),h});return{classes:a,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:d,slotDefault:l,refRandomId:n}}}),wk={viewBox:"0 0 100 100"},Nk=["id"],Bk=["offset","stop-color"],Vk=["d","stroke-width"],Ak=["d","stroke","stroke-linecap","stroke-width"],Tk={class:"fox-circleprogress-text"},$k={key:0};function Ek(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",wk,[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,Bk))),128))],8,Nk)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,Vk),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,Ak)])),t.createElementVNode("div",Tk,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",$k,t.toDisplayString(e.progress)+"%",1))])],6)}const Gl=J(Ck,[["render",Ek]]),{componentName:Dk,create:xk}=X("noticebar"),Ik=xk({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:te.Notice,CircleClose:te.CircleClose},emits:["click","close","across-end"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=t.computed(()=>({[Dk]:!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 T={};return e.color&&(T.color=e.color),e.background&&(T.background=e.background),e.direction=="vertical"&&(T.height=`${e.height}px`),T}),f=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),m=t.computed(()=>{let T={};if(e.complexAm)T={transform:`translateY(${r.distance}px)`};else if(r.animate){let B=~~(e.height/e.speed/4);T={transition:`all ${B==0?~~(e.height/e.speed):B}s`,"margin-top":`-${e.height}px`}}return T});t.watch(()=>e.text,T=>{h()}),t.watch(()=>e.list,T=>{r.scrollList=[...T]});const h=T=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!n.value||!a.value)return;const B=n.value.getBoundingClientRect().width,D=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?D>B:e.scrollable,r.isCanScroll?(r.wrapWidth=B,r.offsetWidth=D,r.duration=D/e.speed,r.animationClass="play"):r.animationClass=""},0)},y=T=>{o("click",T)},g=T=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",T)},v=T=>{r.firstRound=!1,o("across-end",T),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},b=()=>{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 T=100;for(let B=0;B<T;B++)k(B,!(B<T-1))},e.standTime+100*e.speed)},k=(T,B)=>{setTimeout(()=>{r.distance-=e.height/100,B&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},T*e.speed)},S=T=>{o("click",T)},w=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(l.default?N(l.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?p():b()},e.standTime)):h(e.text)}),t.watch(()=>l.default?l.default():[],T=>{e.direction==="vertical"&&l.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),N(T))});const N=T=>{T&&T.length>0&&(r.scrollList=T[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:d,contentStyle:f,horseLampStyle:m,wrap:n,content:a,handleClick:y,onClickIcon:g,onAnimationEnd:v,go:S,handleClickIcon:w,slots:l,toPxDesc:fe,wrapContentClass:c}}}),qk={class:"fox-noticebar__page-lefticon"},Mk={ref:"wrap",class:"fox-noticebar__page-wrap"},zk={class:"showNotica"},Lk=["onClick"];function Pk(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",qk,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",Mk,[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("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",zk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(d,f)=>(t.openBlock(),t.createBlock(c,{key:f,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:d},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(d,f)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:f,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:m=>e.go(d)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(d),1)])],12,Lk))),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 Zl=J(Ik,[["render",Pk]]),Rk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ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4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:jB,create:Kk,scope:Uk}=X("empty"),Hk={empty:Rk,error:Fk,network:Ok},jk=Kk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:o}=ae.useFoxI18n(Uk),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:Hk[n.value];return{...l,imageUrl:i,imgStyle:r}}}),Wk={class:"fox-empty"},Yk=["src"],Xk={key:1,class:"fox-empty-description"};function Qk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",Wk,[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,Yk)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",Xk,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const Jl=J(jk,[["render",Qk]]),{create:Gk,scope:Zk}=X("video"),Jk=Gk({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}=ae.useFoxI18n(Zk),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,N=>{N.src&&t.nextTick(()=>{n.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,N=>{n.state.isMuted=N?N.muted:!1},{immediate:!0});const s=()=>{n.videoElm=a.value,e.options.autoplay&&setTimeout(()=>{n.videoElm.play()},200),e.options.touchPlay&&(n.showTouchMask=!0),e.options.playsinline&&(n.videoElm.setAttribute("playsinline",e.options.playsinline),n.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),n.videoElm.setAttribute("x5-video-player-type","h5-page"),n.videoElm.setAttribute("x5-video-player-fullscreen",!1)),g(),n.showToolbox?i():(n.videoElm.addEventListener("play",()=>{n.state.playing=!0,o("play",n.videoElm)}),n.videoElm.addEventListener("pause",()=>{n.state.playing=!1,o("pause",n.videoElm)}),n.videoElm.addEventListener("ended",h),n.videoElm.addEventListener("timeupdate",ao(m,1e3)))},i=()=>{const N=a.value,T=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];n.player.$player=N,n.progressBar.progressElm=T,n.progressBar.pos=T.getBoundingClientRect(),n.videoSet.progress.width=Math.round(T.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",()=>{f()}),n.videoElm.addEventListener("timeupdate",ao(m,1e3)),n.videoElm.addEventListener("ended",h),o("play",n.videoElm)}catch{y()}else n.videoElm.pause(),o("pause",n.videoElm)},d=N=>{var T=Math.floor(N/3600);T<10&&(T="0"+T);var B=Math.floor(N%3600/60);B<10&&(B="0"+B);var D=Math.round(N%3600%60);D<10&&(D="0"+D);var C="";return T!=0?C=T+":"+B+":"+D:C=B+":"+D,C},f=()=>{n.videoSet.loaded&&(n.videoSet.loaded=n.videoElm.buffered.end(0)/n.videoElm.duration*100)},m=()=>{const N=n.videoElm.currentTime/n.videoElm.duration;n.videoSet.progress.current=Math.round(n.videoSet.progress.width*N),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},g=()=>{n.state.vol=e.options.volume},v=()=>{n.state.isMuted=!n.state.isMuted,n.videoElm.muted=n.state.isMuted},b=()=>{},u=N=>{let B=N.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 D=n.videoSet.progress.current/n.videoSet.progress.width;n.videoElm.duration&&k(D,n.videoElm.duration)},p=N=>{let B=N.changedTouches[0].pageX-n.progressBar.pos.left;n.videoSet.progress.current=B;let D=B/n.videoSet.progress.width;n.videoElm.duration&&k(D,n.videoElm.duration)},k=(N,T)=>{n.videoElm.currentTime=Math.floor(N*T)},S=()=>{n.state.isError=!1,s()},w=()=>{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:b,touchSlidMove:u,touchSlidEnd:p,retry:S,fullScreen:w,t:l}}}),_k={class:"fox-video",ref:"videocon"},eb=["muted","autoplay","loop","poster","controls","preload"],tb=["src","type"],ob={class:"fox-video-controller__now"},nb={class:"fox-video-controller__progress"},lb={class:"fox-video-controller__progress-value",ref:"progressBar"},ab=t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1),rb=[ab],sb={class:"fox-video-controller__played",ref:"playedBar"},ib={class:"fox-video-controller__total"},cb={class:"fox-video-error"},ub={class:"fox-video-error-tip"};function db(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",_k,[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,tb)],40,eb),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",ob,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",nb,[t.createElementVNode("div",lb,[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"]))},rb,36),t.createElementVNode("div",sb,null,512)],512)]),t.createElementVNode("div",ib,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",cb,[t.createElementVNode("p",ub,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 kt=J(Jk,[["render",db]]),{create:fb,componentName:mb}=X("steps"),_l=fb({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=mb;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:pb,componentName:hb}=X("step"),gb=pb({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=hb;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{o.onEmit(n.value)};return{...t.toRefs(l),index:n,classes:s,handleClickStep:i}}}),yb={class:"fox-step-head"},vb=t.createElementVNode("view",{class:"fox-step-line"},null,-1),kb={class:"fox-step-icon-inner"},bb={key:1,class:"fox-step-inner"},Sb={class:"fox-step-main"},Cb={class:"fox-step-title"},wb={key:0},Nb={key:0,class:"fox-step-content"},Bb=["innerHTML"];function Vb(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",yb,[vb,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",kb,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",bb,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",Sb,[t.createElementVNode("view",Cb,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",wb,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",Nb,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,Bb)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ea=J(gb,[["render",Vb]]),{create:Ab,componentName:en}=X("swiper"),Tb=Ab({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(()=>({[en]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const A=en;return{[`${A}-inner`]:!0,[`${A}-vertical`]:i.value}}),d=t.computed(()=>{const A=en;return{[`${A}-pagination`]:!0,[`${A}-pagination-vertical`]:i.value}}),f=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),m=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>a.children.length),y=t.computed(()=>a[i.value?"height":"width"]),g=t.computed(()=>h.value*y.value),v=t.computed(()=>a.rect?(i.value?a.rect.height:a.rect.width)-y.value*h.value:0),b=t.computed(()=>(a.active+h.value)%h.value),u=()=>{let A=0;A=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${A}px)`,[i.value?"height":"width"]:`${y.value*h.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},p=A=>{let H=[];const R=a.childrenVNode.length;let Y=l?.default?.();if(Y=Y.filter(U=>U.children&&Array.isArray(U.children)),Y.forEach(U=>{H=H.concat(U.children)}),!R)a.childrenVNode=H.slice(),A.proxy&&a.children.push(A.proxy);else if(R>H.length)a.children=a.children.filter(U=>A.proxy!==U);else if(R<H.length){for(let U=0;U<R;U++)if(H[U].key!==a.childrenVNode[U].key){A.proxy&&a.children.splice(U,0,A.proxy),A.vnode&&a.childrenVNode.splice(U,0,A.vnode);break}R!==H.length&&(A.proxy&&a.children.push(A.proxy),A.vnode&&a.childrenVNode.push(A.vnode))}else a.childrenVNode=H.slice(),A.proxy&&a.children.push(A.proxy)},k=(A,H=0)=>{let R=A*y.value;e.loop||(R=Math.min(R,-v.value));let Y=H-R;return e.loop||(Y=Pe(Y,v.value,0)),Y},S=A=>{const{active:H}=a;return A?e.loop?Pe(H+A,-1,h.value):Pe(H+A,0,h.value-1):H},w=({pace:A=0,offset:H=0,isEmit:R=!1})=>{if(h.value<=1)return;const{active:Y}=a,U=S(A),P=k(U,H);if(e.loop){if(a.children[0]&&P!==v.value){const z=P<v.value;a.children[0].setOffset(z?g.value:0)}if(a.children[h.value-1]&&P!==0){const z=P>0;a.children[h.value-1].setOffset(z?-g.value:0)}}a.active=U,a.offset=P,R&&Y!==a.active&&o("change",b.value),u()},N=()=>{a.moving=!0,a.active<=-1&&w({pace:h.value}),a.active>=h.value&&w({pace:-h.value})},T=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},B=A=>{N(),r.reset(),je(()=>{je(()=>{a.moving=!1,w({pace:A,isEmit:!0})})})},D=()=>{B(-1)},C=()=>{B(1)},V=A=>{N(),r.reset(),je(()=>{a.moving=!1;let H;e.loop&&h.value===A?H=a.active===0?0:A:H=A%h.value,w({pace:H-a.active,isEmit:!0})})},M=()=>{e.autoPlay<=0||h.value<=1||(T(),a.autoplayTimer=setTimeout(()=>{C(),M()},Number(e.autoPlay)))},L=(A=+e.initPage)=>{T(),a.rect=n.value.getBoundingClientRect(),A=Math.min(h.value-1,A),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=A,a.offset=k(a.active),a.moving=!0,u(),M()},$=A=>{e.isPreventDefault&&A.preventDefault(),e.isStopPropagation&&A.stopPropagation(),e.touchable&&(r.start(A),a.touchTime=Date.now(),T(),N())},E=A=>{e.touchable&&a.moving&&(r.move(A),m.value&&w({offset:f.value}))},x=A=>{if(!e.touchable||!a.moving)return;const H=f.value/(Date.now()-a.touchTime);if((Math.abs(H)>.3||Math.abs(f.value)>+(y.value/2).toFixed(2))&&m.value){let Y=0;const U=i.value?r.offsetY.value:r.offsetX.value;e.loop?Y=U>0?f.value>0?-1:1:0:Y=-Math[f.value>0?"ceil":"floor"](f.value/y.value),w({pace:Y,isEmit:!0})}else f.value&&w({pace:0});a.moving=!1,u(),M()};return t.provide("parent",{props:e,size:y,relation:p}),Te({prev:D,next:C,to:V}),t.onDeactivated(()=>{T()}),t.onBeforeUnmount(()=>{T()}),t.watch(()=>e.initPage,A=>{t.nextTick(()=>{L(Number(A))})}),t.watch(()=>a.children.length,()=>{t.nextTick(()=>{L()})}),t.watch(()=>e.autoPlay,A=>{A>0?M():T()}),{state:a,classes:s,classesInner:c,classesPagination:d,container:n,activePagination:b,onTouchStart:$,onTouchMove:E,onTouchEnd:x}}});function $b(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 bt=J(Tb,[["render",$b]]),{create:Eb,componentName:Db}=X("swiper-item"),xb=Eb({setup(e,{slots:o}){const l=t.inject("parent");l.relation(t.getCurrentInstance());const n=t.reactive({offset:0}),a=t.computed(()=>({[Db]:!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 Ib(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 St=J(xb,[["render",Ib]]),Ns={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:qb}=X("image-preview-item"),Mb=qb({props:{...Ns,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:{[kt.name]:kt,[St.name]:St},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:D,rootHeight:C}=e,V=C/D;return l.imageRatio>V}),r=t.computed(()=>{const D=e.image;if(D&&D.src){const{scale:C,moveX:V,moveY:M,moving:L,zooming:$}=l,E={transitionDuration:$||L?"0s":".3s"};if(C!==1){const x=V/C,A=M/C;E.transform=`scale(${C}, ${C}) translate(${x}px, ${A}px)`}return E}return{}}),s=t.computed(()=>{if(l.imageRatio){const{rootWidth:D,rootHeight:C}=e,V=a.value?C/l.imageRatio:D;return Math.max(0,(l.scale*V-D)/2)}return 0}),i=t.computed(()=>{if(l.imageRatio){const{rootWidth:D,rootHeight:C}=e,V=a.value?C:D*l.imageRatio;return Math.max(0,(l.scale*V-C)/2)}return 0}),c=D=>{const{naturalWidth:C,naturalHeight:V}=D.target;l.imageRatio=V/C},d=()=>{f(1),l.moveX=0,l.moveY=0},f=D=>{D=Pe(D,+e.minZoom,+e.maxZoom+1),D!==l.scale&&(l.scale=D,o("scale",{scale:D,index:e.initNo}))},m=()=>{const D=l.scale>1?1:2;f(D),l.moveX=0,l.moveY=0},h=D=>Math.sqrt((D[0].clientX-D[1].clientX)**2+(D[0].clientY-D[1].clientY)**2);let y,g,v,b,u,p,k;const S=D=>{const{touches:C}=D,{offsetX:V}=n;n.start(D),k=C.length,y=l.moveX,g=l.moveY,p=Date.now(),l.moving=k===1&&l.scale!==1,l.zooming=k===2&&!V.value,l.zooming&&(v=l.scale,b=h(D.touches))},w=D=>{const{touches:C}=D;if(n.move(D),(l.moving||l.zooming)&&un(D,!0),l.moving){const{deltaX:V,deltaY:M}=n,L=V.value+y,$=M.value+g;l.moveX=Pe(L,-s.value,s.value),l.moveY=Pe($,-i.value,i.value)}if(l.zooming&&C.length===2){const V=h(C),M=v*V/b;f(M)}},N=()=>{if(k==1&&e.video&&e.video.source||k>1)return;const{offsetX:D,offsetY:C}=n,V=Date.now()-p,M=250,L=5;D.value<L&&C.value<L&&V<M&&(u?(clearTimeout(u),u=null,m()):u=setTimeout(()=>{e.contentClose&&o("close"),u=null},M))},T=D=>{let C=!1;(l.moving||l.zooming)&&(C=!0,l.moving&&y===l.moveX&&g===l.moveY&&(C=!1),D.touches.length||(l.zooming&&(l.moveX=Pe(l.moveX,-s.value,s.value),l.moveY=Pe(l.moveY,-i.value,i.value),l.zooming=!1),l.moving=!1,y=0,g=0,v=1,l.scale<1&&d(),l.scale>e.maxZoom&&(l.scale=+e.maxZoom))),un(D,C),N(),n.reset()},B=()=>{o("close")};return t.watch(()=>e.initNo,d),t.watch(()=>e.show,D=>{D||d()}),{...t.toRefs(l),onTouchStart:S,onTouchMove:w,onTouchEnd:T,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:B}}}),zb=["src"];function Lb(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,zb)):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 Pb=J(Mb,[["render",Lb]]),{create:Rb}=X("image-preview"),Fb=Rb({props:{...Ns,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:Pb,CircleClose:te.CircleClose,[ce.name]:ce,[bt.name]:bt},setup(e,{emit:o}){const l=t.ref(),n=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),a=t.computed(()=>{const f="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${f}-right`:`${f}-left`}`}),r=t.computed(()=>po(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=f=>{f!==n.active&&(n.active=f,o("change",n.active))},i=()=>{bs(e.beforeClose,{args:[n.active],done:()=>c()})},c=()=>{n.showPop=!1,o("close")},d=()=>{if(l.value){const f=Ve(l.value);n.rootHeight=f.height,n.rootWidth=f.width}};return t.watch(()=>e.show,f=>{n.showPop=f,f&&(s(e.initNo),d())}),t.watch(()=>e.initNo,f=>{f!=n.active&&s(f)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:l,...t.toRefs(n),onClose:i,mergeImages:r,setActive:s,iconClasses:a}}}),Ob={class:"fox-image-preview",ref:"swipeRef"},Kb={key:0,class:"fox-image-preview-index"};function Ub(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]=f=>e.showPop=f),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",Ob,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(f,m)=>(t.openBlock(),t.createBlock(s,{key:m,video:m<e.videos.length?f:{},image:m>=e.videos.length?f:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",Kb,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]=(...f)=>e.onClose&&e.onClose(...f))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Bs=J(Fb,[["render",Ub]]);class Hb{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 jb{options=new Hb;constructor(o){const l=Object.assign(this.options,o),{unmount:n}=ai(l,{name:"image-preview",components:[ce,kt,bt,St,at],wrapper:()=>({setup(){return()=>(l.onClose=()=>{l.show=!1,t.nextTick(()=>{n()})},t.h(Bs,l))}})})}}const Ko=e=>new jb(e);Ko.install=e=>{e.use(Bs)};function Wb(e){const o=t.getCurrentInstance();if(o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const{componentName:WB,create:Yb}=X("countup"),Xb=Yb({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,D)=>{m(),b(0)}),t.watch(()=>e.machinePrizeLevel,(B,D)=>{r.prizeLevelTrun=B}),t.watch(()=>e.initNum,(B,D)=>{r.current=B,r.valFlag=!1,f()}),t.watch(()=>e.endNum,(B,D)=>{r.current=e.initNum,r.valFlag=!1,f()});const f=()=>{if(r.valFlag)return!1;s&&(i||c?d!="machine"&&b():(v(),setTimeout(()=>{r.valFlag=!0},300)))},m=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(B,D,C)=>{const V=(B.toString().split(".")[1]||"").length,M=(D.toString().split(".")[1]||"").length,L=Math.pow(10,Math.max(V,M));return C=="-"?Number((B*L-D*L).toFixed(0))/L:Number((B*L+D*L).toFixed(0))/L},y=B=>{let{num_total_len:D,pointNum:C,initDigit1:V,initDigit2:M,sortFlag:L}=r,$=L=="add"||L=="equal"?String(M)[B-(D-C)]:10-Number(String(M)[B-(D-C)]),E=L=="add"||L=="equal"?String(V)[B]:10-Number(String(V)[B]),x=B>D-C-1?-$*100+"%":B<=String(V).length-1?-E*100+"%":0;return x=="-1000%"&&(x=0),x},g=B=>{let{num_total_len:D,pointNum:C,initDigit1:V,initDigit2:M,sortFlag:L}=r,$=String(M)[B-(D-C)];return B>D-C-1?$||0:B<=String(V).length-1?String(V)[B]:0},v=()=>{let{endNum:B,initNum:D,speed:C,toFixed:V}=e,M=setInterval(()=>{if(D>B)if(r.current<=B||r.current<=C)r.current=B.toFixed(V),clearInterval(M),o("scroll-end"),r.valFlag=!1;else{let L=parseFloat(String(r.current))-parseFloat(String(C));r.current=L.toFixed(V)}else if(r.current>=B)r.current=B.toFixed(V),clearInterval(M),o("scroll-end"),r.valFlag=!1;else{let L=parseFloat(String(r.current))+parseFloat(String(C));r.current=L.toFixed(V)}},e.during)},b=B=>{let{initNum:D,endNum:C,toFixed:V,customBgImg:M}=e;M&&(D=e.customChangeNum);let L,$,E,x;D!=0?(V!=0&&(D=Number(D.toFixed(V))),String(D).indexOf(".")>-1?(L=String(D).split(".")[0].length,$=String(D).split(".")[1].length):(L=String(D).length,$=0)):(L=1,$=0),C!=0?(V!=0&&(C=Number(C.toFixed(V))),String(C).indexOf(".")>-1?(E=String(C).split(".")[0].length,x=String(C).split(".")[1].length):(E=String(C).length,x=0)):(E=1,x=0);let A=L>=E?L:E,H=$>=x?$:x;r.num_total_len=A+H,r.pointNum=H,D>C?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(D,C,"-"),r.numberVal=Number(String(D))):D<C?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(C,D,"-"),r.numberVal=Number(String(C))):r.sortFlag="equal";var R=1;for(let U=0;U<r.pointNum;U++)R*=10;var Y=r.numberVal*R;if(r.relNum=Y,V!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(Y).length),String(D).indexOf(".")>-1){let U=String(D).split(".");r.initDigit1=Number(U[0]),r.initDigit2=Number(U[1])}else r.initDigit1=D,r.initDigit2=0;i&&!M?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let U=n.value[r.num_total_len-1];u(U)}):B!==0&&S()},u=B=>{m();var D=1;r.pointNum!=0&&(D=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{p(B),r.totalCount=h(r.totalCount,D,"-"),r.totalCount<=0&&(m(),o("scroll-end"),r.valFlag=!1)},e.during)},p=B=>{let D=B.getAttribute("turn-number"),C;if(r.sortFlag=="add"?C=parseInt(String(D))+1:C=parseInt(String(D))-1>=0?parseInt(String(D))-1:9,B.setAttribute("turn-number",String(C)),(B.style.transition=="none 0s ease 0s"||C==1||!B.style.transition)&&(B.style.transition=`all linear ${e.during}ms`),C==10||r.sortFlag=="reduce"&&C==0){var V=null;B.style.top=`-${r.sortFlag=="add"?C*100:(10-C)*100}%`,B.setAttribute("turn-number","0"),V=setTimeout(()=>{V&&clearTimeout(V),B.style.transition="none",B.style.top="0",k(B,C)},.975*e.during)}else B.style.top=`-${r.sortFlag=="add"?C*100:(10-C)*100}%`;B.style.top=="-100%"&&r.sortFlag=="reduce"&&p(B.previousSibling)},k=(B,D)=>{setTimeout(()=>{D==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})})},w=()=>{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)}};Wb({machineLuck:()=>{const B=e.machineTurnMore<0?0:e.machineTurnMore;let D=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&w();for(let C=0;C<e.machineNum;C++)setTimeout(()=>{let V=D*(C+1+parseFloat(String(B)));r.prizeYPrev.length!=0&&(r.prizeY[C]=r.prizeYPrev[C]);let M=r.prizeYPrev[C]?r.prizeYPrev[C]:0,L=V+M+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(D-M);r.prizeLevelTrun<0&&(L+=e.numHeight*r.notPrize[C]),T(C,L,M)},500*C)}});const T=(B,D,C)=>{let V=setInterval(()=>{if(C<=D)C+=10,r.prizeY[B]=parseFloat(String(C));else if(clearInterval(V),V=null,r.finshMachine+=1,r.prizeY[B]=D,r.finshMachine==e.machineNum){let M=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach($=>{let E=$;for(;E>M;)E-=M;r.prizeYPrev.push(E)}),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(()=>{f()})}),t.onUnmounted(()=>{m(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:l,setRef:a,topNumber:y,turnNumber:g}}}),Qb={class:"fox-countup"},Gb=["turn-number"];function Zb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",Qb,[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,Gb))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px",top:0,left:e.numWidth*(e.num_total_len-e.pointNum)+"px"})},".",4)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.current),1)],64))],64))])}const ta=J(Xb,[["render",Zb]]),Jb=e=>{if(!e)return Date.now();let o=Number(e),l=o>0?+o:o.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:_b,create:eS}=X("countdown"),tS=eS({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(()=>({[_b]:!0})),r=t.computed(()=>c(n.restTime)),s=()=>{n.handleEndTime=e.endTime,n.diffTime=Date.now()-Jb(e.startTime),n.counting||(n.counting=!0),i()},i=()=>{window!==void 0&&(n.timer=requestAnimationFrame(()=>{if(n.counting){const y=Date.now()-n.diffTime,g=Math.max(n.handleEndTime-y,0);n.restTime=g,g||(n.counting=!1,m(),o("on-end")),g>0&&i()}}))},c=(y,g)=>{const v=y;let b={d:0,h:0,m:0,s:0,ms:0};const u=1e3,p=60*u,k=60*p,S=24*k;return v>0&&(b.d=v>=u?Math.floor(v/S):0,b.h=Math.floor(v%S/k),b.m=Math.floor(v%k/p),b.s=Math.floor(v%p/u),b.ms=Math.floor(v%u)),g=="custom"?b:d({...b})},d=y=>{let{d:g,h:v,m:b,s:u,ms:p}=y,k=e.format;if(k.includes("DD")?k=k.replace("DD",Je(g)):v+=Number(g)*24,k.includes("HH")?k=k.replace("HH",Je(v)):b+=Number(v)*60,k.includes("mm")?k=k.replace("mm",Je(b)):u+=Number(b)*60,k.includes("ss")?k=k.replace("ss",Je(u)):p+=Number(u)*1e3,k.includes("S")){const S=Je(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},f=()=>{!n.counting&&!e.autoStart&&(n.counting=!0,n.handleEndTime=Date.now()+Number(n.restTime),i(),o("on-restart",n.restTime))},m=()=>{cancelAnimationFrame(n.timer),n.counting=!1,o("on-paused",n.restTime)},h=()=>{e.autoStart||(m(),n.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():n.restTime=e.time}),t.watch(()=>n.restTime,y=>{let g=c(y,"custom");o("update:modelValue",g),o("input",g)}),t.watch(()=>e.paused,(y,g)=>{g?(n.counting||(n.counting=!0,n.handleEndTime=Date.now()+Number(n.restTime),i()),o("on-restart",n.restTime)):n.counting&&m()}),t.watch(()=>e.endTime,y=>{s()}),t.watch(()=>e.startTime,y=>{s()}),{...t.toRefs(e),slots:l,classes:a,start:f,pause:m,renderTime:r,reset:h}}}),oS=["innerHTML"];function nS(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,oS))],2)}const oa=J(tS,[["render",nS]]),{create:lS}=X("badge"),aS=lS({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}}}),rS={class:"fox-badge"},sS=["textContent"];function iS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",rS,[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,sS),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const na=J(aS,[["render",iS]]),{componentName:cS,create:uS}=X("tag"),dS=uS({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:te.Close},emits:["close","click"],setup(e,{emit:o}){return{classes:t.computed(()=>{const s=cS;return{[s]:!0,[`${s}--${e.type}`]:!0,[`${s}--plain`]:e.plain,[`${s}--round`]:e.round,[`${s}--mark`]:e.mark,[`${s}--symbol`]:e.symbol,[`${s}--text`]:e.text,[`${s}--light`]:e.light}}),getStyle:()=>{const s={};return e.textColor?s.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(s.color=e.color),e.plain?(s.background="#fff",s["border-color"]=e.color):!e.text&&e.color&&(s.background=e.color),s},onClose:s=>{s.stopPropagation(),o("close",s)},onClick:s=>{o("click",s)}}}});function fS(e,o,l,n,a,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const jt=J(dS,[["render",fS]]),{create:mS}=X("popover"),pS=mS({components:{FoxPopup:ce},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit: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:w}=e,N=w.split("-")[0],T=w.split("-")[1],B=16;return k&&(p[`border${d(N)}Color`]=k),e.arrowOffset!=0&&(["bottom","top"].includes(N)&&(T||(p.left=`calc(50% + ${S}px)`),T=="start"&&(p.left=`${B+S}px`),T=="end"&&(p.right=`${B-S}px`)),["left","right"].includes(N)&&(T||(p.top=`calc(50% - ${S}px)`),T=="start"&&(p.top=`${B-S}px`),T=="end"&&(p.bottom=`${B+S}px`))),p}),d=p=>(p=p.toLowerCase(),p=p.replace(/\b\w+\b/g,k=>k.substring(0,1).toUpperCase()+k.substring(1)),p),f=t.computed(()=>{let p={};if(!r.value||!s.value)return{};const k=s.value.width,S=s.value.height,{width:w,height:N,left:T,top:B}=r.value,{location:D,offset:C}=e,V=D.split("-")[0],M=D.split("-")[1];let L=0,$=0;if(po(C)&&C.length==2&&(L+=Number(C[1]),$+=Number(C[0])),w){if(["bottom","top"].includes(V)){const E=V=="bottom"?N+L:-(S+L);p.top=`${B+E}px`,M||(p.left=`${-(k-w)/2+T+$}px`),M=="start"&&(p.left=`${T+$}px`),M=="end"&&(p.left=`${r.value.right+$}px`)}if(["left","right"].includes(V)){const E=V=="left"?-(k+L):w+L;p.left=`${T+E}px`,M||(p.top=`${B-S/2+N/2-4+$}px`),M=="start"&&(p.top=`${B+$}px`),M=="end"&&(p.top=`${B+N+$}px`)}}return p}),m=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)},g=()=>{y(!e.visible),o("open")},v=()=>{o("update:visible",!1),o("close")},b=(p,k)=>{!p.disabled&&o("choose",p,k),e.closeOnClickAction&&v()},u=p=>{const k=l.value,S=n.value;let w=k&&!k.contains(p.target);if(e.targetId){const N=document.querySelector(`#${e.targetId}`);w=N&&!N.contains(p.target)}w&&S&&!S.contains(p.target)&&e.closeOnClickOutside&&v()};return{showPopup:a,openPopover:g,popoverArrow:i,closePopover:v,chooseItem:b,popoverRef:l,popoverContentRef:n,getRootPosition:f,customStyle:m,popoverArrowStyle:c,renderIcon:Hr}}}),hS={ref:"popoverContentRef",class:"fox-popover-content-group"},gS=["onClick"],yS={class:"fox-popover-menu-item-name"};function vS(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.targetId?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:o[0]||(o[0]=(...i)=>e.openPopover&&e.openPopover(...i))},[t.renderSlot(e.$slots,"reference")],512)),t.createElementVNode("view",{class:t.normalizeClass(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:t.normalizeStyle(e.getRootPosition)},[t.createVNode(s,{visible:e.showPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.showPopup=i),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:t.normalizeStyle(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:t.withCtx(()=>[t.createElementVNode("view",hS,[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",yS,t.toDisplayString(i.name),1)],10,gS))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Wt=J(pS,[["render",vS]]),kS=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:bS}=X("skeleton"),SS=bS(kS({[Ht.name]:Ht})),CS={key:0},wS={key:1,class:"fox-skeleton"},NS={key:0,class:"fox-skeleton-animation"},BS={class:"fox-skeleton-content"};function VS(e,o,l,n,a,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",wS,[e.animated?(t.openBlock(),t.createElementBlock("view",NS)):t.createCommentVNode("",!0),t.createElementVNode("view",BS,[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",CS,[t.renderSlot(e.$slots,"default")]))}const la=J(SS,[["render",VS]]),{create:AS,componentName:TS}=X("collapse"),$S=AS({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(()=>({[TS]:!0}));t.watch(()=>e.modelValue,c=>{n.value=c});const r=(c,d,f=!0)=>{n.value=c,o("update:modelValue",c),o("change",c,d,f)},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(f=>f!==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 ES(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 aa=J($S,[["render",ES]]),{create:DS,componentName:xS}=X("collapse-item"),IS=DS({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:te.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const o=t.ref(null),l=t.ref(null),n=t.inject("collapseParent"),a=t.reactive(n),r=t.computed(()=>{const h=xS;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")},f=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},m=()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?f():m()}),{classes:r,renderIcon:Hr,wrapperRef:o,contentRef:l,open:f,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:d}}}),qS={class:"fox-collapse-item__title-main"},MS={class:"fox-collapse-item__title-main-value"},zS=["innerHTML"],LS={key:2,class:"fox-collapse-item__title-label"},PS={key:0,class:"fox-collapse-item__title-sub"},RS=["innerHTML"],FS={key:0,class:"fox-collapse__item-extraWrapper"},OS={class:"fox-collapse__item-extraWrapper__extraRender"},KS={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function US(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",qS,[t.createElementVNode("view",MS,[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,zS)),e.label?(t.openBlock(),t.createElementBlock("view",LS,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",PS,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,RS)),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",FS,[t.createElementVNode("div",OS,[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",KS,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const ra=J(IS,[["render",US]]),HS=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:jS,create:WS,scope:YS}=X("table"),XS=WS({components:{RenderColumn:HS,DownArrow:te.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:o,slots:l}){const{t:n}=ae.useFoxI18n(YS),a=t.reactive({curData:e.data}),r=t.computed(()=>({[jS]:!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(g=>g.key===y)[0],f=y=>{const g=e.columns.filter(v=>v.key===y);return g[0].stylecolumn?g[0].stylecolumn:""},m=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:f,handleSorterClick:m,sortDataItem:h,t:n,stylehead:i,stylecolumn:c}}}),QS={class:"fox-table__main__head"},GS={class:"fox-table__main__head__tr"},ZS=["onClick"],JS={class:"fox-table__main__body"},_S={key:1},e1={key:0,class:"fox-table__nodata"},t1={key:0,class:"fox-table__nodata__text"},o1={key:1,class:"fox-table__summary"},n1=["innerHTML"];function l1(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",QS,[t.createElementVNode("view",GS,[(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,ZS))),128))])]),t.createElementVNode("view",JS,[(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,f])=>(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 f=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[f,c[d]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",_S,t.toDisplayString(c[d]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",e1,[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",t1,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",o1,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,n1)])):t.createCommentVNode("",!0)],2)}const sa=J(XS,[["render",l1]]),{componentName:a1,create:r1}=X("ellipsis"),s1=r1({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(()=>({[a1]:!0}));t.watch(()=>e.content,(v,b)=>{v!=b&&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,b=Math.floor((0+v)/2),u=e.direction==="middle"?m([0,b],[b,v]):f(0,v);r.value=u,document.body.removeChild(n)}},f=(v,b)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(b-v<=1)return e.direction==="end"?{leading:e.content.slice(0,v)+e.symbol}:{tailing:e.symbol+e.content.slice(b,p)};const k=Math.round((v+b)/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"?f(k,b):f(v,k):e.direction==="end"?f(v,k):f(k,b)},m=(v,b)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(v[1]-v[0]<=1&&b[1]-b[0]<=1)return{leading:e.content.slice(0,v[0])+e.symbol,tailing:e.symbol+e.content.slice(b[1],p)};const k=Math.floor((v[0]+v[1])/2),S=Math.ceil((b[0]+b[1])/2);return n.innerText=e.content.slice(0,k)+e.symbol+u+e.symbol+e.content.slice(S,p),n.offsetHeight<=a?m([k,v[1]],[b[0],S]):m([v[0],k],[S,b[1]])},h=v=>{if(!v)return 0;const b=v.match(/^\d*(\.\d*)?/);return b?Number(b[0]):0},y=v=>{v==1?(s.expanded=!0,o("change","expand")):(s.expanded=!1,o("change","collapse"))},g=()=>{o("click")};return{...t.toRefs(s),root:l,ellipsis:r,classes:i,clickHandle:y,handleClick:g}}}),i1={key:0},c1={key:1},u1={key:2};function d1(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",i1,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",c1,[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",u1,[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 ia=J(s1,[["render",d1]]),{componentName:f1,create:m1}=X("animate"),p1=m1({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,[`${f1}-${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}}}),h1={class:"fox-animate"};function g1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",h1,[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 ca=J(p1,[["render",g1]]),{componentName:y1,create:v1}=X("watermark"),k1=v1({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:f,imageHeight:m,content:h,fontStyle:y,fontWeight:g,fontColor:v,fontSize:b,fontFamily:u}=e,p=()=>{const S=document.createElement("canvas"),w=window.devicePixelRatio,N=S.getContext("2d"),T=`${(a+s)*w}px`,B=`${(r+i)*w}px`,D=s*w,C=i*w;if(S.setAttribute("width",T),S.setAttribute("height",B),N){if(d){N.translate(D/2,C/2),N.rotate(Math.PI/180*Number(c));const V=new Image;V.crossOrigin="anonymous",V.referrerPolicy="no-referrer",V.src=d,V.onload=()=>{N.drawImage(V,-f*w/2,-m*w/2,f*w,m*w),N.restore(),l.base64Url=S.toDataURL()}}else if(h){N.textBaseline="middle",N.textAlign="center",N.translate(D/2,C/2),N.rotate(Math.PI/180*Number(c));const V=Number(b)*w;N.font=`${y} normal ${g} ${V}px/${C}px ${u}`,N.fillStyle=v,N.fillText(h,0,0),N.restore(),l.base64Url=S.toDataURL()}}else throw new Error("当前环境不支持Canvas")};p(),t.watch(()=>[n,a,r,s,i,c,d,f,m,h,y,g,v,b,u],()=>{p()});const k=t.computed(()=>{const S=y1;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...t.toRefs(l),classes:k}}});function b1(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 ua=J(k1,[["render",b1]]);function S1(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:C1,create:w1}=X("trend-arrow"),N1=w1({components:{TriangleUp:te.TriangleUp,TriangleDown:te.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const o=t.reactive({rateTrend:e.rate>0}),l=t.computed(()=>({[C1]:!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?"+":"-":""}${S1(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 B1(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 da=J(N1,[["render",B1]]),{create:V1}=X("tour"),A1=V1({components:{[Wt.name]:Wt,Close:te.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:o}){const l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),n=t.ref({}),a=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:f,maskWidth:m,maskHeight:h}=e,{width:y,height:g,left:v,top:b}=n.value,u=[v+y/2,b+g/2],p=Number(m||y),k=Number(h||g);return{width:`${p+ +f[1]*2}px`,height:`${k+ +f[0]*2}px`,top:`${u[1]-k/2-+f[0]}px`,left:`${u[0]-p/2-+f[1]}px`}}),s=f=>{f=="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 f=document.querySelector(`#${e.steps[l.active].target}`),m=Ve(f);n.value=m},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,f=>{f&&i(),l.active=0,l.showTour=f,l.showPopup=f}),{...t.toRefs(l),classes:a,maskStyle:r,changeStep:s,close:c,handleClickMask:d}}}),T1={key:0,class:"fox-tour-content"},$1={key:0,class:"fox-tour-content-top"},E1={class:"fox-tour-content-inner"},D1={class:"fox-tour-content-bottom"},x1={class:"fox-tour-content-bottom-init"},I1={class:"fox-tour-content-bottom-operate"},q1={key:1,class:"fox-tour-content fox-tour-content-tile"},M1={class:"fox-tour-content-inner"};function z1(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]=f=>e.showPopup=f),location:c.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:c.popoverOffset||[0,12],arrowOffset:c.arrowOffset||0},{content:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",T1,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",$1,[t.createElementVNode("div",{onClick:o[1]||(o[1]=(...f)=>e.close&&e.close(...f))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",E1,t.toDisplayString(c.content),1),t.createElementVNode("div",D1,[t.createElementVNode("div",x1,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",I1,[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]=f=>e.changeStep("prev"))},t.toDisplayString(e.prevStepTxt),1)):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:o[3]||(o[3]=(...f)=>e.close&&e.close(...f))},t.toDisplayString(e.completeTxt),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:o[4]||(o[4]=f=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",q1,[t.createElementVNode("div",M1,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const fa=J(A1,[["render",z1]]),{componentName:YB,create:L1,scope:P1}=X("address"),R1=L1({components:{Location:te.Location,Location2:te.Location2,Check:te.Check,Close:te.Close,Left:te.Left,[ce.name]:ce,[Rt.name]:Rt},inheritAttrs:!1,props:{...Xe,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}=ae.useFoxI18n(P1),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"]),f=t.ref(null),m=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=E=>{if(!Array.isArray(E))throw new TypeError("params muse be array.");if(!E.length)return[];E.forEach(A=>{if(!A.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const x=[];return E=E.sort((A,H)=>A.title.localeCompare(H.title)),E.forEach(A=>{const H=x.findIndex(R=>R.title===A.title);H<=-1?x.push({title:A.title,list:[].concat(A)}):x[H].list.push(A)}),x};let g=t.ref([]),v=t.reactive({});const b=t.ref("self"),u=t.ref(20),p=()=>{const E=e.modelValue,x=E.length;if(x>0){if(i.value=x-1,h.value.length==0){i.value=0;return}for(let A=0;A<x;A++){let H=[];switch(A){case 0:H=e.province;break;case 1:H=e.city;break;case 2:H=e.country;break;default:H=e.town}g.value[A]=H.filter(R=>R.id==E[A])[0]}S()}},k=(E,x)=>E&&E.name||i.value<x&&E?E.name:e.columnsPlaceholder[x]||l("select"),S=()=>{T(),t.nextTick(()=>{const E=a.value&&a.value.getElementsByClassName("active")[0];if(E){const x=E.offsetLeft;u.value=x||20}})},w=E=>{const x=i.value;c.value=i.value;const A={custom:d.value[x]};g.value[x]=E;for(let H=x+2;H<4;H++)g.value.splice(H,1);x<3?(i.value=x+1,S(),A.next=d.value[i.value],A.value=E,o("change",A)):(C(),o("update:modelValue"))},N=(E,x)=>{c.value=i.value,k(E,x)&&(i.value=x,S())},T=()=>{const E=f.value,x=c.value,A=m.value[i.value];E?.scrollTop&&(m.value[x]=E?.scrollTop),t.nextTick(()=>{E?.scrollTo({top:A,behavior:"auto"})})},B=E=>{const x=e.existAddress;let A={};x.forEach(H=>{H&&H.selectedAddress&&(A=H),H.selectedAddress=!1}),E.selectedAddress=!0,v=E,o("selected",A,E,x),C()},D=()=>{g.value=[],i.value=0,S()},C=(E="self")=>{b.value=E=="cross"?"cross":"self",r.value=!1},V=()=>{b.value="mask"},M=()=>{const E={addressIdStr:"",addressStr:"",province:g.value[0],city:g.value[1],country:g.value[2],town:g.value[3]},x={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(A=>{const H=g.value[A];E.addressIdStr+=`${A?"_":""}${H&&H.id||0}`,E.addressStr+=H&&H.name||""}),x.data=E):x.data=v,D(),b.value=="self"?o("close",x):o("close-mask",{closeWay:b}),o("update:visible",!1)},L=()=>{const E=s.value;s.value=E=="exist"?"custom":"exist",D(),o("switch-module",{type:s.value})},$=(E,x)=>{w(x)};return t.watch(()=>e.visible,E=>{r.value=E}),t.watch(()=>r.value,E=>{E&&p()}),{showPopup:r,privateType:s,tabIndex:i,tabName:d,selectedRegion:g,switchModule:L,closeWay:b,close:M,getTabName:k,nextAreaList:w,regionLine:n,tabRegion:a,lineDistance:u,changeRegionTab:N,selectedExist:B,clickOverlay:V,handClose:C,handleElevatorItem:$,initCustomSelected:p,...t.toRefs(e),t:l,regionList:h,transformData:y,scrollDom:f}}}),F1={class:"fox-address"},O1={class:"fox-address__header"},K1={class:"fox-address__header__title"},U1={key:0,class:"fox-address__custom"},H1={class:"fox-address__region",ref:"tabRegion"},j1=["onClick"],W1={key:0,class:"active fox-address__region-item"},Y1={key:0,class:"fox-address__detail"},X1={class:"fox-address__detail-list",ref:"scrollDom"},Q1=["onClick"],G1={key:1,class:"fox-address__elevator-group"},Z1={key:1,class:"fox-address__exist"},J1={class:"fox-address__exist-group"},_1={class:"fox-address__exist-group-list"},eC=["onClick"],tC={class:"fox-address__exist-item-info"},oC={key:0,class:"fox-address__exist-item-info-name"},nC={key:1,class:"fox-address__exist-item-info-phone"},lC={class:"fox-address__exist-item-info-bottom"},aC={class:"fox-address__exist-choose-btn"};function rC(e,o,l,n,a,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),d=t.resolveComponent("fox-elevator"),f=t.resolveComponent("Location2"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{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",F1,[t.createElementVNode("view",O1,[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",K1,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",U1,[t.createElementVNode("view",H1,[(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:g=>e.changeRegionTab(h,y)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,y)),1)],10,j1))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",W1,[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",Y1,[t.createElementVNode("ul",X1,[(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:g=>e.nextAreaList(h)},[t.createElementVNode("div",null,[e.selectedRegion[e.tabIndex]?.id==h.id?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(h.name),1)])],10,Q1))),128))],512)])):(t.openBlock(),t.createElementBlock("view",G1,[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",Z1,[t.createElementVNode("div",J1,[t.createElementVNode("ul",_1,[(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:g=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(f,{class:"fox-address-select-icon",size:"13px"})]),h.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",tC,[h.name?(t.openBlock(),t.createElementBlock("div",oC,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",nC,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",lC,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,eC))),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",aC,t.toDisplayString(e.customAndExistTitle||e.t("chooseAnotherAddress")),1)])):t.createCommentVNode("",!0)])),t.renderSlot(e.$slots,"bottom")])]),_:3},8,["lock-scroll","onClose","onClickOverlay","visible","teleportDisable","teleport"])}const ma=J(R1,[["render",rC]]),{componentName:sC,create:iC}=X("barrage"),cC=iC({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(()=>({[sC]:!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),f=t.ref(0),m=e.speeds,h=t.ref(0);t.onMounted(()=>{y(),l&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(v(),f.value=0,g("hidden")):document.visibilityState==="visible"&&y()})}),t.onUnmounted(()=>{i.value=[],v()});const y=()=>{h.value=a.value.offsetWidth,l&&g("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${h.value}px`),u()},300)},g=k=>{let w=document.getElementsByClassName("slotBody"+o)?.[0]?.children||[];const N=[];w&&Array.from(w).forEach(T=>{k=="init"?(T.style.opacity="0",N.push(T)):(T.classList="",T.style={})}),k=="init"&&(i.value=N)},v=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,k=>{e.danmu.length>0&&(i.value=[...k])});const b=k=>{const S=f.value%i.value.length;!e.loop&&f.value===i.value.length?i.value.splice(i.value.length,0,k):i.value.splice(S,0,k)},u=()=>{v(),s=setTimeout(()=>{p()},e.frequency)},p=()=>{const k=e.loop?f.value%i.value.length:f.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 w=S.offsetHeight;if(S?.classList?.add("move"),S.style.animationDuration=`${m}ms`,S.style.top=k%c.value*(w+d.value)+20+"px",S.style.opacity="1",!l){const N=S.offsetWidth;S.style.width=N+20+"px"}S.addEventListener("animationend",()=>{l?S.classList.remove("move"):r.value.removeChild(S)}),!(!e.loop&&f.value>=i.value.length-1)&&(f.value++,f.value>=i.value.length&&(f.value=0),S.removeEventListener("animationend",()=>{}),u())})};return{classTime:o,classes:n,danmuList:i,dmBody:a,dmContainer:r,add:b}}});function uC(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 pa=J(cC,[["render",uC]]),{componentName:dC,create:fC,scope:mC}=X("signature"),pC=fC({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:{[Ie.name]:Ie},emits:["start","end","signing","confirm","clear"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(mC),n=l(e,["unSupportTpl","reSign","confirmText"]),a=t.ref(null),r=t.ref(null),s=t.computed(()=>({[dC]:!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],f,!1)},f=p=>{p.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,o("start"),a.value.addEventListener(i.events[1],m,!1),a.value.addEventListener(i.events[2],h,!1),a.value.addEventListener(i.events[3],y,!1)},m=p=>{p.preventDefault();let k=i.isSupportTouch?p.touches[0]:p;o("signing",k);let S=a.value.getBoundingClientRect(),w=k.clientX-S.left,N=k.clientY-S.top;i.ctx.lineTo(w,N),i.ctx.stroke()},h=p=>{p.preventDefault(),o("end"),a.value.removeEventListener(i.events[1],m,!1),a.value.removeEventListener(i.events[2],h,!1)},y=p=>{p.preventDefault(),a.value.removeEventListener(i.events[1],m,!1),a.value.removeEventListener(i.events[2],h,!1)},g=()=>{a.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),o("clear")},v=()=>{u(a.value)},b=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=b(p)?"请绘制签名":p,w=b(p)?"":k;o("confirm",S,w)};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:g,classes:s}}}),hC={class:"fox-signature-inner",ref:"wrap"},gC=["height","width"],yC={key:0,class:"fox-signature-unsopport"};function vC(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",hC,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,gC),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",yC,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 ha=J(pC,[["render",vC]]),{componentName:kC,create:bC,scope:SC}=X("time-select"),CC=bC({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}=ae.useFoxI18n(SC),n=t.computed(()=>({[kC]:!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}}}),wC={class:"fox-time-select__title"},NC={class:"fox-time-select__title__fixed"},BC={key:0},VC={class:"fox-time-select__content"},AC={class:"fox-time-select__content__pannel"},TC={class:"fox-time-select__content__detail"};function $C(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",wC,[t.createElementVNode("view",NC,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",BC,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",VC,[t.createElementVNode("view",AC,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",TC,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const ga=J(CC,[["render",$C]]),{componentName:EC,create:DC}=X("time-pannel"),xC=DC({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(()=>({[EC]:!0,"fox-time-pannel--curr":n.currentKey==e.pannelKey})),r=s=>{o.emit("change",s)};return{...t.toRefs(n),classes:a,handlePannel:r}}});function IC(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 ya=J(xC,[["render",IC]]),{componentName:qC,create:MC}=X("time-detail"),zC=MC({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(()=>({[qC]:!0})),s=d=>{let f=a.currentTime.find(m=>m.key==a.currentKey);if(f)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":f.list.filter(m=>m===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}}}),LC={class:"fox-time-detail__detail fox-time-detail__detail--moring"},PC={class:"fox-time-detail__detail__list"},RC=["onClick"];function FC(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",LC,[t.createElementVNode("view",PC,[(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,RC))),128))])])],2)}const va=J(zC,[["render",FC]]),{componentName:XB,create:OC,scope:KC}=X("sku-header"),UC=OC({props:{goods:{type:Object,default:{}}},emits:[],components:{[Ye.name]:Ye},setup(e,{emit:o,slots:l}){const{t:n}=ae.useFoxI18n(KC);return{getSlots:r=>l[r],t:n}}}),HC={class:"fox-sku-header"},jC=["src"],WC={class:"fox-sku-header-right"},YC={key:3,class:"fox-sku-header-right-extra"};function XC(e,o,l,n,a,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",HC,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,jC),t.createElementVNode("view",WC,[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",YC,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const QC=J(UC,[["render",XC]]),{componentName:QB,create:GC}=X("sku-select"),ZC=GC({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})}}}}),JC={class:"fox-sku-select"},_C={class:"fox-sku-select-item-title"},ew={class:"fox-sku-select-item-skus"},tw=["onClick"];function ow(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",JC,[(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",_C,t.toDisplayString(s.name),1),t.createElementVNode("view",ew,[(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:f=>e.changeSaleChild(c,d,s,i),key:c.name},t.toDisplayString(c.name),11,tw))),128))])]))),128))])}const nw=J(ZC,[["render",ow]]),{componentName:GB,create:lw}=X("sku-stepper"),aw=lw({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:{[Qe.name]:Qe},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&&lt(c)=="function"?c():""},changeStepper:c=>{l.value=c,o("changeStepper",c)}}}}),rw={class:"fox-sku-stepper"},sw={class:"fox-sku-stepper-title"},iw=["innerHTML"],cw={class:"fox-sku-stepper-count"};function uw(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",rw,[t.createElementVNode("view",sw,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,iw),t.createElementVNode("view",cw,[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 dw=J(aw,[["render",uw]]),{componentName:ZB,create:fw}=X("sku-operate"),mw=fw({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]}}}),pw={key:0,class:"fox-sku-operate"},hw={key:0,class:"fox-sku-operate-desc"},gw={key:1,class:"fox-sku-operate-btn"},yw=["onClick"];function vw(e,o,l,n,a,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",pw,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",hw,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",gw,[(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,yw))),128))]))])):t.createCommentVNode("",!0)}const kw=J(mw,[["render",vw]]),{componentName:JB,create:bw,scope:Sw}=X("sku"),Cw=bw({props:{...Xe,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:QC,SkuSelect:nw,SkuStepper:dw,SkuOperate:kw,[ce.name]:ce},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(Sw),a=n(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,b=>{r.value=b}),t.watch(()=>r.value,b=>{b==!1&&v()}),t.onMounted(()=>{});const i=b=>l[b],c=b=>{o("select-sku",b)},d=b=>{s.value=b,o("change-stepper",b)},f=b=>{o("add",b)},m=b=>{o("reduce",b)},h=b=>{o("over-limit",b)},y=b=>{o("click-btn-operate",{type:b,value:s.value})},g=b=>{b=="icon"&&o("click-close-icon"),b=="overlay"&&o("click-overlay"),b=="close"&&o("close"),r.value=!1},v=()=>{o("update:visible",!1)};return{showPopup:r,closePopup:g,selectSku:c,changeStepper:d,stepperOverLimit:h,clickBtnOperate:y,add:f,reduce:m,getSlots:i,...a}}}),ww={class:"fox-sku"},Nw={class:"fox-sku-content"};function Bw(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"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":o[0]||(o[0]=m=>e.showPopup=m),onClickCloseIcon:o[1]||(o[1]=m=>e.closePopup("icon")),onClickOverlay:o[2]||(o[2]=m=>e.closePopup("overlay")),onClose:o[3]||(o[3]=m=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",ww,[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",Nw,[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 ka=J(Cw,[["render",Bw]]),{create:Vw}=X("card"),Aw=Vw({components:{[Ye.name]:Ye,[jt.name]:jt},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]}}}),Tw={class:"fox-card"},$w={class:"fox-card__left"},Ew=["src"],Dw={class:"fox-card__right"},xw={class:"fox-card__right__title"},Iw={key:0,class:"fox-card__right__price"},qw={class:"fox-card__right__other"},Mw={class:"fox-card__right__shop"},zw={class:"fox-card__right__shop__name"};function Lw(e,o,l,n,a,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",Tw,[t.createElementVNode("div",$w,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,Ew)]),t.createElementVNode("div",Dw,[t.createElementVNode("div",xw,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",Iw,[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",qw,[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",Mw,[t.createElementVNode("div",zw,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const ba=J(Aw,[["render",Lw]]),{create:Pw,scope:Rw}=X("ecard"),Fw=Pw({components:{[Qe.name]:Qe},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}=ae.useFoxI18n(Rw),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 g=h.target.value.replace(/[^\d]/g,"");r.value=g,a.value=g,Number(g)>e.cardAmountMax&&(r.value=e.cardAmountMax,a.value=e.cardAmountMax),Number(g)<e.cardAmountMin&&(r.value=e.cardAmountMin,a.value=e.cardAmountMin),o("inputChange",Number(r.value)),o("update:modelValue",Number(r.value))},f=()=>{n.value="input",s.value=e.cardAmountMin,a.value=r.value,o("update:modelValue",r.value),o("inputClick")},m=h=>{s.value=h,o("changeStep",s.value,a.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:m,change:d,inputClick:f,stepValue:s,currentIndex:n,inputValue:r,money:i,t:l}}}),Ow={class:"fox-ecard"},Kw={class:"fox-ecard__title"},Uw={class:"fox-ecard__list"},Hw=["onClick"],jw={class:"fox-ecard__list__input--con"},Ww=["placeholder"],Yw={class:"fox-ecard__list__step"};function Xw(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",Ow,[t.createElementVNode("view",Kw,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",Uw,[(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,Hw))),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",jw,[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,Ww),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",Yw,[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 Sa=J(Fw,[["render",Xw]]),{create:Qw,scope:Gw}=X("address-list-item"),Zw=Qw({components:{Del:te.Del,Edit:te.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(Gw);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}}}),Jw={class:"fox-address-list-item__info"},_w={class:"fox-address-list-item__info-contact"},eN={class:"fox-address-list-item__info-contact-name"},tN={class:"fox-address-list-item__info-contact-tel"},oN={key:0,class:"fox-address-list-item__info-contact-default"},nN={class:"fox-address-list-item__info-handle"},lN={class:"fox-address-list-item__addr"};function aN(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",Jw,[t.createElementVNode("div",_w,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",eN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",tN,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",oN,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",nN,[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",lN,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const pr=J(Zw,[["render",aN]]),{create:rN}=X("address-list-general"),sN=rN({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:pr,[Ie.name]:Ie,[Kt.name]:Kt},setup(e,{emit:o}){const l=()=>t.h(pr,{item:e.item,onDelIcon(w){s(w)},onEditIcon(w){i(w)},onClickItem(w){c(w)}});let n=null;const a=t.ref(!1),r=t.ref(!1),s=w=>{o("delIcon",w,e.item),w.stopPropagation()},i=w=>{o("editIcon",w,e.item),w.stopPropagation()},c=w=>{a.value||(o("clickItem",w,e.item),w.stopPropagation())},d=w=>{o("longDel",w,e.item),w.stopPropagation()},f=w=>{n=0,r.value=!0,o("longDown",w,e.item)};return{renderCompontent:l,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:d,holddownstart:w=>{n=setTimeout(()=>{f(w)},300)},holddownmove:()=>{clearTimeout(n)},holddownend:()=>{clearTimeout(n)},copyCLick:w=>{o("longCopy",w,e.item),w.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:w=>{o("longSet",w,e.item),w.stopPropagation()},maskClick:w=>{n!=0&&(r.value=!1),w.stopPropagation(),w.preventDefault()},swipeDelClick:w=>{o("swipeDel",w,e.item),w.stopPropagation()},swipestart:()=>{a.value=!1},swipemove:()=>{a.value=!0}}}}),iN={key:0,class:"fox-address-list-general"},cN={class:"fox-address-list-swipe"};function uN(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",cN,[(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",iN,[(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 dN=J(sN,[["render",uN]]),{componentName:fN,create:mN,scope:pN}=X("address-list"),hN=mN({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:dN,[Ie.name]:Ie},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(pN),n=t.ref([]),a=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[fN]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(n.value=e.data.map(v=>Dr(a,v,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(v,b)=>{o("delIcon",v,b),v.stopPropagation()},c=(v,b)=>{o("editIcon",v,b),v.stopPropagation()},d=(v,b)=>{o("clickItem",v,b),v.stopPropagation()},f=(v,b)=>{o("longCopy",v,b),v.stopPropagation()},m=(v,b)=>{o("longSet",v,b),v.stopPropagation()},h=(v,b)=>{o("longDel",v,b),v.stopPropagation()},y=(v,b)=>{o("swipeDel",v,b),v.stopPropagation()},g=v=>{o("add",v),v.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:d,clickLongCopy:f,clickLongSet:m,clickLongDel:h,clickSwipeDel:y,addAddress:g,dataArray:n,t:l}}});function gN(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 Ca=J(hN,[["render",gN]]),{componentName:_B,create:yN}=X("category"),vN=yN({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}}}),kN={class:"fox-category"},bN={class:"fox-category__cateList"},SN={key:0},CN=["onClick"];function wN(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",kN,[t.createElementVNode("div",bN,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",SN,[(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,CN)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const wa=J(vN,[["render",wN]]),{componentName:e2,create:NN}=X("category-pane"),BN=NN({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:o}){return{onChange:n=>{o("onChange",n)}}}}),VN={class:"fox-category-pane"},AN={key:0,class:"fox-category-pane__cateListRight"},TN={class:"fox-category-pane__childTitle"},$N={key:0,class:"fox-category-pane__childItemList"},EN=["onClick"],DN=["src"],xN={class:"fox-category-pane__skuImg"},IN={key:1,class:"fox-category-pane__cateListRight"},qN={class:"fox-category-pane__childTitle"},MN={key:0,class:"fox-category-pane__childItemList"},zN=["onClick"],LN={class:"fox-category-pane__skuName"},PN={key:2,class:"fox-category-pane__selfItemList"},RN=["onClick"];function FN(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",VN,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",AN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",TN,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",$N,[(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:f=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,DN),t.createElementVNode("div",xN,t.toDisplayString(c?.catName),1)],8,EN))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",IN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",qN,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",MN,[(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:f=>e.onChange(c)},[t.createElementVNode("div",LN,t.toDisplayString(c?.catName),1)],8,zN))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",PN,[(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,RN))),128))])):t.createCommentVNode("",!0)])}const Na=J(BN,[["render",FN]]),{componentName:t2,create:ON}=X("comment-header"),KN=ON({components:{[vt.name]:vt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:o}){return{handleClick:()=>{o("handleClick")}}}}),UN={class:"fox-comment-header__user"},HN={class:"fox-comment-header__user-avter"},jN=["src"],WN={class:"fox-comment-header__user-score"},YN={key:0,class:"fox-comment-header__time"};function XN(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",UN,[t.createElementVNode("view",HN,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,jN)):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",WN,[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",YN,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 QN=J(KN,[["render",XN]]),{componentName:o2,create:GN}=X("comment-images"),ZN=GN({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:te.Right},emits:["click","clickImages"],setup(e,{emit:o}){const l=t.ref(!1),n=t.ref(1),a=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),a.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),a.value=e.videos.concat(e.images)}),{isShowImage:l,initIndex:n,showImages:(s,i)=>{const{videos:c,images:d}=e,f=s=="img"?i-c.length:i;o("clickImages",{type:s,index:f,value:s=="img"?d[f]:c[f]})},totalImages:a}}}),JN=["onClick"],_N=["src"],eB=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),tB=["onClick"],oB=["src"],nB={key:0,class:"fox-comment-images__mask"};function lB(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,_N),eB],8,JN))),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,oB),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",nB,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,tB)):t.createCommentVNode("",!0)],64))),128))],2)}const aB=J(ZN,[["render",lB]]),{componentName:n2,create:rB,scope:sB}=X("comment-bottom"),iB=rB({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:te.Fabulous,Comment:te.Comment,MoreX:te.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(sB),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}}}),cB={class:"fox-comment-bottom"},uB={key:0},dB={class:"fox-comment-bottom__cpx"},fB=["onClick"];function mB(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",cB,[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",uB,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",dB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(d,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${d}`]),onClick:m=>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]=m=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,fB))),128))])])}const pB=J(iB,[["render",mB]]),{componentName:hB,create:gB,scope:yB}=X("comment"),vB=gB({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:QN,CommentImages:aB,CommentBottom:pB,Right:te.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(yB),n=t.computed(()=>({[hB]:!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}}}),kB=["innerHTML"],bB={class:"fox-comment__follow-title"},SB={class:"fox-comment__follow-com"},CB={key:0,class:"fox-comment__follow-img"};function wB(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]=(...f)=>e.handleClick&&e.handleClick(...f)),innerHTML:e.info.content},null,12,kB),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]=(...f)=>e.handleClick&&e.handleClick(...f))},[t.createElementVNode("view",bB,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",SB,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",CB,[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 Ba=J(vB,[["render",wB]]),NB=[Ln,Rn,Fn,On,Kn,be,Hn,jn,Wn,Yn,Xn,Eo,Qn,Gn,Jn,_n,qo,Mo,el,zo,Lo,tl,ol,ot,nl,ll,Oo,al,rl,sl,il,cl,ul,dl,tt,fl,ml,pl,hl,Ie,gl,yl,at,ce,vl,kl,bl,Sl,qt,Cl,wl,Nl,Bl,Vl,Al,Tl,$l,El,Rt,Dl,Mt,zt,xl,Il,ql,Ml,Ft,Fo,Do,Io,xo,Qe,vt,yt,zl,Ll,Pl,Kt,Rl,Fl,Ol,Ut,Ro,Kl,Hl,Po,Ct,Wl,Yl,Ht,Xl,Ql,Ot,Gl,Zl,Jl,kt,_l,ea,bt,St,Ye,Ko,ta,oa,na,jt,Wt,la,aa,ra,sa,ia,ca,ua,da,fa,ma,pa,ha,ga,ya,va,ka,ba,Sa,Ca,wa,Na,Ba],BB=new li(NB,"4.0.0");exports.ActionSheet=Rl;exports.ActionsheetItem=al;exports.ActionsheetPane=Oo;exports.Address=ma;exports.AddressList=Ca;exports.Animate=ca;exports.Audio=Wl;exports.AudioOperate=Yl;exports.Avatar=Ht;exports.AvatarGroup=Xl;exports.BackTop=Fl;exports.Badge=na;exports.Barrage=pa;exports.Broadcast=qn;exports.BroadcastKey=ke;exports.Button=Ie;exports.Calendar=Io;exports.CalendarItem=_n;exports.Card=ba;exports.Cascader=Do;exports.CascaderItem=Gn;exports.Category=wa;exports.CategoryPane=Na;exports.Cell=gl;exports.CellGroup=yl;exports.Checkbox=zo;exports.CheckboxGroup=Lo;exports.CheckboxItem=tl;exports.CircleProgress=Gl;exports.Col=bl;exports.Collapse=aa;exports.CollapseItem=ra;exports.Comment=Ba;exports.Content=On;exports.CountDown=oa;exports.CountUp=ta;exports.DataItemsKey=ut;exports.DateItem=Jn;exports.DatePicker=xo;exports.DateUtils=ne;exports.Dialog=Ut;exports.Divider=Cl;exports.Domain=ko;exports.DomainKey=De;exports.DomainProvider=pl;exports.Drag=Ol;exports.Ecard=Sa;exports.Elevator=Rt;exports.Ellipsis=ia;exports.Empty=Jl;exports.FixedNav=Vl;exports.FloatingButton=dl;exports.FooterBar=Fn;exports.FoxActionSheet=Rl;exports.FoxActionsheetItem=al;exports.FoxActionsheetPane=Oo;exports.FoxAddress=ma;exports.FoxAddressList=Ca;exports.FoxAnimate=ca;exports.FoxAudio=Wl;exports.FoxAudioOperate=Yl;exports.FoxAvatar=Ht;exports.FoxAvatarGroup=Xl;exports.FoxBackTop=Fl;exports.FoxBadge=na;exports.FoxBarrage=pa;exports.FoxButton=Ie;exports.FoxCalendar=Io;exports.FoxCalendarItem=_n;exports.FoxCard=ba;exports.FoxCascader=Do;exports.FoxCascaderItem=Gn;exports.FoxCategory=wa;exports.FoxCategoryPane=Na;exports.FoxCell=gl;exports.FoxCellGroup=yl;exports.FoxCheckbox=zo;exports.FoxCheckboxGroup=Lo;exports.FoxCheckboxItem=tl;exports.FoxCircleProgress=Gl;exports.FoxCol=bl;exports.FoxCollapse=aa;exports.FoxCollapseItem=ra;exports.FoxComment=Ba;exports.FoxContent=On;exports.FoxCountDown=oa;exports.FoxCountUp=ta;exports.FoxDateItem=Jn;exports.FoxDatePicker=xo;exports.FoxDialog=Ut;exports.FoxDivider=Cl;exports.FoxDomainProvider=pl;exports.FoxDrag=Ol;exports.FoxEcard=Sa;exports.FoxElevator=Rt;exports.FoxEllipsis=ia;exports.FoxEmpty=Jl;exports.FoxFixedNav=Vl;exports.FoxFloatingButton=dl;exports.FoxFooterBar=Fn;exports.FoxGrid=wl;exports.FoxGridItem=Nl;exports.FoxGroup=Kn;exports.FoxHeaderBar=Rn;exports.FoxHintText=ot;exports.FoxImage=vl;exports.FoxImagePreview=Ko;exports.FoxIndicator=xl;exports.FoxInfiniteLoading=Ro;exports.FoxInputItem=Wn;exports.FoxInputNumber=Qe;exports.FoxInputnumberItem=rl;exports.FoxItem=be;exports.FoxLayout=kl;exports.FoxLinkItem=nl;exports.FoxList=Ql;exports.FoxMapping=ml;exports.FoxMenu=Al;exports.FoxMenuItem=Tl;exports.FoxMessageBox=tt;exports.FoxMoneyItem=Yn;exports.FoxNavbar=Bl;exports.FoxNoticeBar=Zl;exports.FoxNotify=Hl;exports.FoxNumberKeyboard=Pl;exports.FoxOverLay=at;exports.FoxPage=Ln;exports.FoxPagination=Dl;exports.FoxPicker=yt;exports.FoxPickerItem=Qn;exports.FoxPopover=Wt;exports.FoxPopup=ce;exports.FoxPrice=Ye;exports.FoxProgress=Ot;exports.FoxPullRefresh=Kl;exports.FoxRadio=qo;exports.FoxRadioGroup=Mo;exports.FoxRadioItem=el;exports.FoxRange=Ft;exports.FoxRate=vt;exports.FoxRateItem=ll;exports.FoxRollingProvider=hl;exports.FoxRow=Sl;exports.FoxRowItem=Hn;exports.FoxSearchBar=Fo;exports.FoxShortPassword=zl;exports.FoxSideNavBar=Il;exports.FoxSideNavBarItem=ql;exports.FoxSignature=ha;exports.FoxSkeleton=la;exports.FoxSku=ka;exports.FoxSlotItem=jn;exports.FoxStep=ea;exports.FoxSteps=_l;exports.FoxStepsBar=ul;exports.FoxSticky=qt;exports.FoxSubSideNavBar=Ml;exports.FoxSwipe=Kt;exports.FoxSwiper=bt;exports.FoxSwiperItem=St;exports.FoxSwitch=Po;exports.FoxSwitchItem=ol;exports.FoxTabPane=zt;exports.FoxTabbar=$l;exports.FoxTabbarItem=El;exports.FoxTable=sa;exports.FoxTabs=Mt;exports.FoxTabsBar=sl;exports.FoxTabsContainer=il;exports.FoxTabsPane=cl;exports.FoxTag=jt;exports.FoxText=fl;exports.FoxTextarea=Eo;exports.FoxTextareaItem=Xn;exports.FoxTimeDetail=va;exports.FoxTimePannel=ya;exports.FoxTimeSelect=ga;exports.FoxToast=Ct;exports.FoxTour=fa;exports.FoxTrendArrow=da;exports.FoxUploader=Ll;exports.FoxVideo=kt;exports.FoxWaterMark=ua;exports.Grid=wl;exports.GridItem=Nl;exports.Group=Kn;exports.HeaderBar=Rn;exports.HintText=ot;exports.Image=vl;exports.ImagePreview=Ko;exports.Indicator=xl;exports.InfiniteLoading=Ro;exports.InputItem=Wn;exports.InputNumber=Qe;exports.InputnumberItem=rl;exports.Item=be;exports.Layout=kl;exports.LinkItem=nl;exports.List=Ql;exports.Mapping=ml;exports.Menu=Al;exports.MenuItem=Tl;exports.MessageBox=tt;exports.MoneyItem=Yn;exports.Navbar=Bl;exports.NoticeBar=Zl;exports.Notify=Hl;exports.NumberKeyboard=Pl;exports.OverLay=at;exports.Page=Ln;exports.Pagination=Dl;exports.Picker=yt;exports.PickerItem=Qn;exports.Popover=Wt;exports.Popup=ce;exports.Price=Ye;exports.PriorityPolicy=io;exports.Progress=Ot;exports.PullRefresh=Kl;exports.Radio=qo;exports.RadioGroup=Mo;exports.RadioItem=el;exports.Range=Ft;exports.Rate=vt;exports.RateItem=ll;exports.RollingProvider=hl;exports.Row=Sl;exports.RowItem=Hn;exports.SearchBar=Fo;exports.ShortPassword=zl;exports.SideNavBar=Il;exports.SideNavBarItem=ql;exports.Signature=ha;exports.Skeleton=la;exports.Sku=ka;exports.SlotItem=jn;exports.Step=ea;exports.Steps=_l;exports.StepsBar=ul;exports.Sticky=qt;exports.SubSideNavBar=Ml;exports.Swipe=Kt;exports.Swiper=bt;exports.SwiperItem=St;exports.Switch=Po;exports.SwitchItem=ol;exports.TabPane=zt;exports.Tabbar=$l;exports.TabbarItem=El;exports.Table=sa;exports.Tabs=Mt;exports.TabsBar=sl;exports.TabsContainer=il;exports.TabsPane=cl;exports.Tag=jt;exports.Text=fl;exports.Textarea=Eo;exports.TextareaItem=Xn;exports.TimeDetail=va;exports.TimePannel=ya;exports.TimeSelect=ga;exports.Toast=Ct;exports.Tour=fa;exports.TrendArrow=da;exports.UniqueID=Un;exports.Uploader=Ll;exports.ValidateSchema=Lr;exports.ValidateSchemaKey=Re;exports.Video=kt;exports.WaterMark=ua;exports.cancelRaf=hr;exports.clamp=Pe;exports.clearNonNumber=cn;exports.clone=sn;exports.compareTo=an;exports.createBroadcast=yo;exports.createValidateSchema=vo;exports.debounce=ht;exports.debounceRef=Xs;exports.decimalLength=Er;exports.default=BB;exports.defineBroadcast=Rs;exports.defineConfigDomain=Pr;exports.defineDataItem=Fr;exports.defineDomain=zn;exports.defineItem=we;exports.definePageState=Or;exports.deleteGlobalValidator=Us;exports.disabledProperty=Ce;exports.divide=En;exports.excludeProps=xn;exports.extend=nt;exports.floatData=Dr;exports.getGlobalValidateCheckEvents=qr;exports.getGlobalValidateResetEvents=zr;exports.getPageContentAreaHeight=ro;exports.getPageContentAreaWidth=so;exports.getPageFooterAreaHeight=Co;exports.getPageHeaderAreaHeight=So;exports.getRootDomain=mt;exports.getScrollTopRoot=In;exports.hasSymbol=wr;exports.includeProps=he;exports.indexOf=Ls;exports.installRules=Rr;exports.integerLength=$r;exports.isArray=po;exports.isArrayLike=Br;exports.isBrowser=st;exports.isDate=Fe;exports.isESModule=xs;exports.isEmptyString=ie;exports.isEqual=xe;exports.isFunction=lo;exports.isHidden=go;exports.isInnerPage=Zs;exports.isMap=$s;exports.isNil=br;exports.isNumberString=Tr;exports.isObject=Be;exports.isPlainObject=rn;exports.isPromise=Dn;exports.isRegExp=Ar;exports.isSet=Es;exports.isString=Sr;exports.isSubPage=Js;exports.isSymbol=Ds;exports.isWindow=Nr;exports.lastIndexOf=Ps;exports.makeArray=zs;exports.merge=Vr;exports.multiply=yr;exports.negate=vr;exports.nextTick=qs;exports.numberFormat=mo;exports.objectToString=Cr;exports.once=Qs;exports.padZero=Je;exports.preventDefault=un;exports.property=Ne;exports.raf=Le;exports.readonlyProperty=Ae;exports.setGlobalValidateCheckEvents=Hs;exports.setGlobalValidateHandler=Os;exports.setGlobalValidateMessages=Ws;exports.setGlobalValidateResetEvents=js;exports.setGlobalValidator=Ks;exports.throttle=ao;exports.toBoolean=pe;exports.toNumber=me;exports.toPadding=Me;exports.toPx=se;exports.toPxDesc=fe;exports.toTypeString=ho;exports.toValue=Ee;exports.tryTimes=Mn;exports.typeOf=lt;exports.unNumberFormat=kr;exports.updatePageState=dn;exports.useBroadcast=$t;exports.useDomain=Oe;exports.useExpose=Te;exports.useInnerSize=Pn;exports.usePageState=bo;exports.usePosition=Gr;exports.useRect=Ve;exports.useSize=wo;exports.useTouch=Ke;exports.valueLength=ge;
13
+ `)}}});function sg(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Cl=J(rg,[["render",sg]]),{componentName:ig,create:cg}=Y("divider"),ug=cg({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,o){return{classes:t.computed(()=>{const n=ig;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 dg(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 wl=J(ug,[["render",dg]]);function fg(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 mg(e,o,l){const n=fg(e.subTree.children,l);o.sort((a,r)=>n.indexOf(a.vnode)-n.indexOf(r.vnode))}function pg(e,o){const l=t.shallowReactive([]),n=t.getCurrentInstance(),a=i=>{i.proxy&&(l.push(t.markRaw(i)),mg(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:pr}=Y("grid"),ws=Symbol("grid"),hg={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}},gg={props:hg,setup(e,{slots:o}){pg(ws,`${pr}-item`)({props:e});const l=t.computed(()=>{const a=pr;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),n=t.computed(()=>{const a={};return e.gutter&&(a.paddingLeft=pe(e.gutter)),a});return()=>t.h("view",{class:l.value,style:n.value},o.default?.())}},{create:yg}=Y("grid"),Nl=yg(gg);function vg(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:kg,componentName:hr}=Y("grid-item"),bg=kg({props:{text:{type:String}},emits:["click"],setup(e,{emit:o}){const l=vg(ws);if(!l.parent)return{};const n=l.index,a=l.parent.props,r=t.computed(()=>({[hr]:!0})),s=t.computed(()=>{const d={flexBasis:`${100/+a.columnNum}%`};return a.square?d.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(d.paddingRight=pe(a.gutter),n.value>=a.columnNum&&(d.marginTop=pe(a.gutter))),d}),i=t.computed(()=>{const d=`${hr}__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)}}}}),Sg={class:"fox-grid-item__text"};function Cg(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",Sg,[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 Bl=J(bg,[["render",Cg]]),{componentName:wg,create:Ng}=Y("navbar"),Bg=Ng({components:{Left:te.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:o}){const{border:l,fixed:n,safeAreaInsetTop:a,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let d=t.ref();const m=t.computed(()=>{const v=wg;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 y(){o("on-click-title")}function g(){o("on-click-icon")}function k(){o("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:m,styles:f,handleLeft:h,handleCenter:y,handleCenterIcon:g,handleRight:k}}}),Vg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Ag={key:1,class:"fox-navbar__text"},$g={class:"fox-navbar__title"},Tg={key:0,class:"fox-navbar__text"},Eg={key:1,class:"fox-navbar__text"},Dg={class:"fox-navbar__title"},xg={key:0,class:"fox-navbar__text"};function Ig(e,o,l,n,a,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Vg,[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",Ag,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",$g,[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",Tg,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",Eg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Dg,[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",xg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Vl=J(Bg,[["render",Ig]]),qg=(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}=ae.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:Mg,create:zg,scope:Pg}=Y("fixednav"),Lg=zg(qg(Mg,Pg,{[at.name]:at,Left:te.Left})),Fg={class:"fox-fixednav__list"},Rg=["onClick"],Og=["src"],Kg={class:"span"},Ug={key:0,class:"b"},Hg={class:"text"};function jg(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",Fg,[(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,Og),t.createElementVNode("view",Kg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Ug,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Rg))),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",Hg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Al=J(Lg,[["render",jg]]),{componentName:Wg,create:Yg}=Y("menu"),Xg=Yg({components:{ArrowUp2:te.ArrowUp2,ArrowDown2:te.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:o,slots:l}){const n=t.ref(),a=t.ref(0),r=t.ref(!1),s=()=>{const v=t.reactive([]),u=t.reactive([]);return{children:v,linkChildren:b=>{const S=C=>{C.proxy&&(u.push(C),v.push(C.proxy))},N=C=>{if(C.proxy){let V=u.indexOf(C);V>-1&&u.splice(V,1);let B=v.indexOf(C.proxy);V>-1&&v.splice(B,1)}};t.provide("menuParent",Object.assign({removeLink:N,link:S,children:v,internalChildren:u},b))}}},{children:i,linkChildren:c}=s(),d=t.computed(()=>i.some(v=>v.state.showWrapper)),m=t.computed(()=>({[Wg]:!0,"scroll-fixed":r.value})),f=()=>{if(n.value){const v=Ve(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})})},y=v=>Math.max(0,"scrollTop"in v?v.scrollTop:v.pageYOffset),g=()=>{const{scrollFixed:v}=e,u=y(window);r.value=u>(typeof v=="boolean"?30:Number(v))},k=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",g)}),t.onUnmounted(()=>{const{scrollFixed:v}=e;v&&window.removeEventListener("scroll",g)}),{toggleItem:h,children:i,opened:d,classes:m,barRef:n,getClasses:k}}}),Qg=["onClick"],Gg={class:"fox-menu__title-text"},Zg={class:"fox-menu__title-icon"};function Jg(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",Gg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Zg,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Qg))),128))],2),t.renderSlot(e.$slots,"default")],2)}const $l=J(Xg,[["render",Jg]]),{componentName:_g,create:ey}=Y("menu-item"),ty=ey({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:te.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:o,slots:l}){const n=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),a=()=>{const y=t.inject("menuParent",null);if(y){const g=t.getCurrentInstance(),{link:k,removeLink:v}=y;return k(g),t.onUnmounted(()=>{v(g)}),{parent:y}}},{parent:r}=a(),s=t.computed(()=>({[_g]:!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(g=>g.value===e.modelValue);return y?y.text:""},state:n,parent:r,toggle:(y=!n.showPopup,g={})=>{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")}}}}),oy={class:"fox-menu-item__content fox-menu-item__overflow"},ny=["onClick"];function ly(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",oy,[(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,ny))),128)),t.renderSlot(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}const Tl=J(ty,[["render",ly]]),{create:ay}=Y("tabbar"),ry=ay({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,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 sy(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 El=J(ry,[["render",sy]]),{create:iy}=Y("tabbar-item"),cy=iy({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}}}),uy={class:"fox-tabbar-item_icon-box"},dy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},fy={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},my={key:1,class:"fox-tabbar-item_icon-box_dot"},py={key:2},hy={key:0};function gy(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",uy,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",dy,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",fy,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",my)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",py,[(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",hy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Dl=J(cy,[["render",gy]]),{componentName:yy,create:vy}=Y("elevator"),ky=vy({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(()=>({[yy]:!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},g=(u,p)=>{o.emit("click-item",u,p),n.currentData=p,n.currentKey=u},k=u=>{o.emit("click-index",u)},v=u=>{let b=u.target.scrollTop;const S=n.listHeight;n.scrollY=b;for(let N=0;N<S.length-1;N++){let C=S[N],V=S[N+1];if(n.scrollY>=C&&n.scrollY<V){n.currentIndex=N,n.diff=V-n.scrollY;return}}n.currentIndex=S.length-2};return t.onMounted(()=>{l.value.addEventListener("scroll",v)}),$e({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:g,handleClickIndex:k}}}),by={class:"fox-elevator__list__item__code"},Sy=["onClick"],Cy=["innerHTML"],wy={class:"fox-elevator__fixed-title"},Ny={class:"fox-elevator__bars__inner"},By=["data-index","onClick"];function Vy(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",by,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,Cy))],10,Sy))),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",wy,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",Ny,[(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,By))),128))])],32)],2)}const Ot=J(ky,[["render",Vy]]),{componentName:a2,create:Ay,scope:$y}=Y("pagination"),Ty=Ay({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}=ae.useFoxI18n($y),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:g}=t.toRefs(e),k=+h.value||Math.ceil(+y.value/+g.value);return Math.max(1,k)}),d=(h,y)=>{h>c.value||h<1||(h!=a.value&&o("update:modelValue",h),y&&o("change",h))},m=(h,y,g=!1)=>({number:h,text:y,active:g}),f=t.computed(()=>{if(r.value=="simple")return;let h=[];const y=c.value,g=+s.value;let k=1,v=y;const u=y>g;u&&(k=Math.max(a.value-Math.floor(g/2),1),v=k+g-1,v>y&&(v=y,k=v-g+1));for(var p=k;p<=v;p++){const b=m(p,p,a.value==p);h.push(b)}if(u&&g>0&&i.value){if(k>1){const b=m(k-1,"...");h.unshift(b)}if(v<y){const b=m(v+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}}}),Ey={class:"fox-pagination"},Dy={key:0,class:"fox-pagination-contain"},xy=["onClick"],Iy={key:1,class:"fox-pagination-contain"},qy={class:"fox-pagination-simple"};function My(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",Ey,[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",Dy,[(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,xy))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Iy,[t.createElementVNode("view",qy,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 xl=J(Ty,[["render",My]]),{componentName:gr,create:zy}=Y("indicator"),Py=zy({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=gr;return{[a]:!0,[`${a}--block`]:o.value,[`${a}--align__${l.value}`]:o.value&&l.value}}),componentName:gr,padZero:Je}}});function Ly(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 Il=J(Py,[["render",Ly]]),{componentName:Fy,create:Ry}=Y("side-navbar"),Oy=Ry({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(()=>({[Fy]:!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}}}),Ky={class:"fox-side-navbar__content"},Uy={class:"fox-side-navbar__content__list",ref:"list"};function Hy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Ky,[t.createElementVNode("view",Uy,[t.renderSlot(e.$slots,"default")],512)])],2)}const ql=J(Oy,[["render",Hy]]),{componentName:jy,create:Wy}=Y("side-navbar-item"),Yy=Wy({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,o)=>({classes:t.computed(()=>({[jy]:!0})),handleClick:()=>{o.emit("click")}})}),Xy=["ikey"],Qy={class:"fox-side-navbar-item__title"};function Gy(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",Qy,t.toDisplayString(e.title),1)],10,Xy)}const Ml=J(Yy,[["render",Gy]]),{componentName:Zy,create:Jy}=Y("sub-side-navbar"),_y=Jy({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:te.ArrowDown2,ArrowUp2:te.ArrowUp2},emits:["title-click"],setup:(e,o)=>{const l=t.reactive({direction:""}),n=t.computed(()=>({[Zy]:!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}}}),ev=["ikey"],tv={class:"fox-sub-side-navbar__title__text"},ov={class:"fox-sub-side-navbar__title__icon"};function nv(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",tv,t.toDisplayString(e.title),1),t.createElementVNode("span",ov,[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,ev)}const zl=J(_y,[["render",nv]]),{componentName:lv,create:av}=Y("range"),rv=av({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:o}){const l=t.ref(0);let n,a;const r=t.ref(),s=t.ref(),i=Ue(),c=t.computed(()=>{const{marks:E,max:x,min:U}=e;return Object.keys(E).map(parseFloat).sort((H,G)=>H-G).filter(H=>H>=U&&H<=x)}),d=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const E=lv;return{[E]:!0,[`${E}-disabled`]:e.disabled,[`${E}-vertical`]:e.vertical,[`${E}-show-number`]:!e.hiddenRange}}),f=t.computed(()=>{const E="fox-range-container";return{[E]:!0,[`${E}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),y=t.computed(()=>({borderColor:e.buttonColor})),g=E=>!!e.range&&Array.isArray(E),k=()=>{const{modelValue:E,min:x}=e;return g(E)?`${(E[1]-E[0])*100/d.value}%`:`${(E-Number(x))*100/d.value}%`},v=()=>{const{modelValue:E,min:x}=e;return g(E)?`${(E[0]-Number(x))*100/d.value}%`:"0%"},u=t.computed(()=>e.vertical?{height:k(),top:v(),background:e.activeColor,transition:s.value?"none":void 0}:{width:k(),left:v(),background:e.activeColor,transition:s.value?"none":void 0}),p=E=>{const x="fox-range-mark",{modelValue:U,max:D,min:W}=e;let H=Number(W),G=Number(D);if(e.range){const[$,T]=U;H=$,G=T}else G=U;let R=E<=G&&E>=H;return{[`${x}-text`]:!0,[`${x}-text-active`]:R}},b=E=>{const{min:x,vertical:U}=e;let D={left:`${(E-Number(x))/d.value*100}%`};return U&&(D={top:`${(E-Number(x))/d.value*100}%`}),D},S=E=>{const{modelValue:x,max:U,min:D}=e;let W=Number(D),H=Number(U);if(e.range){const[$,T]=x;W=$,H=T}return{background:E<=H&&E>=W?e.activeColor:e.inactiveColor}},N=E=>{const{min:x,max:U,step:D}=e;return E=Math.max(+x,Math.min(E,+U)),Math.round(E/+D)*+D},C=(E,x)=>JSON.stringify(E)===JSON.stringify(x),V=E=>E[0]>E[1]?E.slice(0).reverse():E,B=(E,x)=>{g(E)?E=V(E).map(N):E=N(E),C(E,e.modelValue)||o("update:modelValue",E),x&&!C(E,n)&&o("change",E)},I=E=>{if(e.disabled)return;const{min:x,modelValue:U}=e,D=Ve(r);let W=E.clientX-D.left,H=D.width;e.vertical&&(W=E.clientY-D.top,H=D.height);const G=Number(x)+W/H*d.value;if(g(U)){const[R,$]=U,T=(R+$)/2;G<=T?B([G,$],!0):B([R,G],!0)}else B(G,!0)},A=E=>{e.disabled||(i.start(E),a=e.modelValue,g(a)?n=a.map(N):n=N(a),s.value="start")},w=E=>{if(e.disabled)return;s.value==="start"&&o("drag-start"),i.move(E),s.value="draging";const x=Ve(r);let U=i.deltaX.value,D=x.width,W=U/D*d.value;e.vertical&&(U=i.deltaY.value,D=x.height,W=U/D*d.value),g(n)?a[l.value]=n[l.value]+W:a=n+W,B(a),E.stopPropagation(),E.preventDefault()},P=()=>{e.disabled||(s.value==="draging"&&(B(a,!0),o("drag-end")),s.value="")},F=E=>ho(e.modelValue)&&typeof E=="number"?e.modelValue[E]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:h,buttonStyle:y,onClick:I,onTouchStart:A,onTouchMove:w,onTouchEnd:P,...t.toRefs(e),barStyle:u,curValue:F,buttonIndex:l,containerClasses:f,markClassName:p,marksStyle:b,marksList:c,tickStyle:S}}}),sv={key:0,class:"fox-range-min"},iv={key:0,class:"fox-range-mark"},cv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],uv={key:0,class:"number"},dv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],fv={key:0,class:"number"},mv={key:1,class:"fox-range-max"};function pv(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",sv,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",iv,[(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",uv,t.toDisplayString(e.curValue(s)),1))],4))],42,cv)),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",fv,t.toDisplayString(e.curValue()),1))],4))],40,dv))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",mv,t.toDisplayString(+e.max),1))],2)}const Kt=J(rv,[["render",pv]]),{create:hv,scope:gv}=Y("short-password"),yv=hv({components:{[ie.name]:ie,Tips:te.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(gv),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}}}),vv={class:"fox-short-password-title"},kv={class:"fox-short-password-subtitle"},bv={class:"fox-short-password-wrapper"},Sv={key:0,class:"fox-short-password__item-icon"},Cv={class:"fox-short-password__message"},wv={class:"fox-short-password--error"},Nv={key:0,class:"fox-short-password--forget"};function Bv(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",vv,t.toDisplayString(e.title),1),t.createElementVNode("view",kv,t.toDisplayString(e.desc),1),t.createElementVNode("div",bv,[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",Sv)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",Cv,[t.createElementVNode("view",wv,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",Nv,[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 Pl=J(yv,[["render",Bv]]);class Vv{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Av=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 $v{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const Ns=(e,{args:o=[],done:l,canceled:n})=>{if(e){const a=e.apply(null,o);Mt(a)?a.then(r=>{r?l(r):n&&n()}).catch(()=>{}):a?l():n&&n()}else l()},{create:Tv}=Y("progress"),Ev=Tv({components:{Checked:te.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const o=!!t.useSlots().default,l=t.ref(e.strokeWidth+"px"),n=t.ref(),a=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),s=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),i=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:l,percentage:r,bgStyle:s,textStyle:i,progressOuter:n,insideText:a,slotDefault:o}}}),Dv={class:"fox-progress"},xv={key:0,class:"fox-progress-text"};function Iv(e,o,l,n,a,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",Dv,[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",xv,[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 Ut=J(Ev,[["render",Iv]]),{componentName:qv,create:Mv,scope:zv}=Y("uploader"),Pv=Mv({components:{[Ut.name]:Ut,Photograph:te.Photograph,Failure:te.Failure,Loading:te.Loading,Del:te.Del,Link:te.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,o)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(zv),n=t.reactive(e.fileList);let a=[];const r=t.computed(()=>({[qv]:!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 Vv;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=C=>{p.status="ready",p.message=l("readyUpload"),m(b),o("start",C)},S.onProgress=(C,V)=>{p.status="uploading",p.message=l("uploading"),p.percentage=(C.loaded/C.total*100).toFixed(0),o("progress",{event:C,option:V,percentage:p.percentage})},S.onSuccess=(C,V)=>{p.status="success",p.message=l("success"),o("success",{responseText:C,option:V,fileItem:p}),o("update:fileList",n)},S.onFailure=(C,V)=>{p.status="error",p.message=l("error"),o("failure",{responseText:C,option:V,fileItem:p})};let N=new Av(S);e.autoUpload?N.upload():a.push(new Promise((C,V)=>{C(N)}))},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 N=new FormData;for(const[V,B]of Object.entries(e.data))N.append(V,B);N.append(e.name,b);const C=t.reactive(new $v);if(C.name=b.name,C.status="ready",C.type=b.type,C.formData=N,C.message=l("waitingUpload"),d(C,S),e.isPreview&&b.type.includes("image")){const V=new FileReader;V.onload=B=>{C.url=B.target.result,n.push(C)},V.readAsDataURL(b)}else n.push(C)})},y=p=>{const b=e.maximum*1,S=e.maximize*1,N=new Array;p=p.filter(V=>V.size>S?(N.push(V),!1):!0),N.length&&o("oversize",N);let C=p.length+n.length;return C>b&&p.splice(p.length-(C-b)),p},g=(p,b)=>{n.splice(b,1),o("delete",{file:p,fileList:n,index:b})},k=(p,b)=>{m(b),Ns(e.beforeDelete,{args:[p,n],done:()=>g(p,b)})},v=p=>{if(e.disabled)return;const b=p.target;let{files:S}=b;e.beforeUpload?e.beforeUpload(S).then(N=>u(N)):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:v,onDelete:k,fileList:n,classes:r,fileItemClick:c,clearUploadQueue:m,submit:f,renderInput:s}}}),Lv={key:0,class:"fox-uploader__slot"},Fv={key:0,class:"fox-uploader__preview-img"},Rv={key:0,class:"fox-uploader__preview__progress"},Ov={class:"fox-uploader__preview__progress__msg"},Kv=["onClick"],Uv=["onClick","src"],Hv={key:3,class:"fox-uploader__preview-img__file"},jv=["onClick"],Wv={class:"file__name_tips"},Yv={class:"tips"},Xv={key:1,class:"fox-uploader__preview-list"},Qv=["onClick"],Gv={class:"file__name_tips"};function Zv(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",Lv,[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",Fv,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",Rv,[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",Ov,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:g=>e.onDelete(h,y)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,Kv)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:g=>e.fileItemClick(h),src:h.url},null,8,Uv)):(t.openBlock(),t.createElementBlock("view",Hv,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",Wv,t.toDisplayString(h.name),1)],8,jv)])),t.createElementVNode("view",Yv,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",Xv,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[h.status]])},[t.createVNode(c,{class:"fox-uploader__preview-img__file__link"}),t.createElementVNode("view",Gv,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:g=>e.onDelete(h,y)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,Qv),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 Ll=J(Pv,[["render",Zv]]),Jv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/Ii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0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:e0,scope:t0}=Y("number-keyboard"),o0=e0({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}=ae.useFoxI18n(t0),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"&&v(),u.type=="delete"&&(o("delete"),o("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function g(u){u.stopPropagation()}function k(u){u.preventDefault(),a.value=void 0}function v(){o("update:visible",!1),o("close")}return{...n,delImg:Jv,lockImg:_v,clickKeyIndex:a,defaultKey:i,closeBoard:v,onTouchEnd:k,onTouchMove:g,onTouchstart:y,keysList:m,genCustomKeys:d,getBasicKeys:c,root:s,show:r}}}),n0={ref:"root"},l0={class:"fox-number-keyboard"},a0={key:0,class:"fox-number-keyboard__header"},r0={class:"fox-number-keyboard__title"},s0={class:"fox-number-keyboard__body"},i0={class:"fox-number-keyboard__keys"},c0=["onTouchstart"],u0=["src"],d0=["src"],f0={key:0,class:"fox-number-keyboard__sidebar"},m0={class:"fox-key__wrapper"},p0=["src"];function h0(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",n0,[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",l0,[e.title?(t.openBlock(),t.createElementBlock("div",a0,[t.createElementVNode("h3",r0,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",s0,[t.createElementVNode("div",i0,[(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,u0)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,d0)):t.createCommentVNode("",!0)],42,c0)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",f0,[t.createElementVNode("div",m0,[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,p0)],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 Fl=J(o0,[["render",h0]]),{componentName:g0,create:y0}=Y("swipe"),v0=y0({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(()=>({[g0]:!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})},g=t.computed(()=>({transform:`translate3d(${f.offset}px, 0, 0)`})),k=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},v=Ue();return{classes:l,touchStyle:g,...{onTouchStart(p){e.disabled||v.start(p)},onTouchMove(p){e.disabled||(v.move(p),v.isHorizontal()&&(f.moving=!0,k(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?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}}}),k0={class:"fox-swipe__left",ref:"leftRef"},b0={class:"fox-swipe__content"},S0={class:"fox-swipe__right",ref:"rightRef"};function C0(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",k0,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",b0,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",S0,[t.renderSlot(e.$slots,"right")],512)],38)}const Ht=J(v0,[["render",C0]]),{componentName:w0,create:N0}=Y("action-sheet"),B0=N0({components:{[ie.name]:ie,Loading:te.Loading},props:{...ze,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(()=>({[w0]:!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}}}),V0={key:0,class:"fox-action-sheet__title"},A0={key:1},$0={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},T0={key:1,class:"fox-action-sheet__menu"},E0=["onClick"],D0={key:1},x0={class:"fox-action-sheet__subdesc"};function I0(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",V0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",A0,[e.description?(t.openBlock(),t.createElementBlock("view",$0,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",T0,[(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",D0,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",x0,t.toDisplayString(c[e.optionSubTag]),1)],14,E0))),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 Rl=J(B0,[["render",I0]]),{componentName:q0,create:M0}=Y("backtop"),Ol=M0({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(()=>({[q0]:!0,show:n.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){n.scrollEl instanceof Window?n.scrollTop=n.scrollEl.pageYOffset:n.scrollTop=n.scrollEl.scrollTop,n.backTop=n.scrollTop>=e.distance}function i(g=0){n.scrollEl instanceof Window?window.scrollTo(0,g):n.scrollEl.scrollTop=g}function c(){let g=We(function k(){var v=e.duration-Math.max(0,n.startTime-+new Date+e.duration),u=v*-n.scrollTop/e.duration+n.scrollTop;i(u),g=We(k),(v==e.duration||u==0)&&kr(g)})}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(g){n.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),o("click",g)}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 g=l.content();return Array.isArray(g)?g[0]:g}return null});return()=>{const g=[];y.value&&g.push(y.value);const k=[];if(typeof l.default=="function")k.push(l.default());else{const u=t.h(te.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});k.push(u)}const v=t.h("div",{class:a.value,style:r.value,onClick:f},k);return g.push(v),g}}}),{componentName:z0,create:P0}=Y("drag"),L0=P0({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(()=>({[z0]:!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",Le(()=>{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",Le(()=>{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",Le(()=>{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 g=n.screenWidth-n.elWidth-n.boundary.right;Math.abs(n.xPum)>g?n.xPum=g:n.xPum<=n.boundary.left&&(n.xPum=n.boundary.left),n.yPum<n.boundary.top?n.yPum=n.boundary.top:n.yPum>n.screenHeight-n.elHeight-n.boundary.bottom&&(n.yPum=n.screenHeight-n.elHeight-n.boundary.bottom),e.direction!="y"&&(h.style.left=n.xPum+"px"),e.direction!="x"&&(h.style.top=n.yPum+"px")}}function d(f){const h=f.currentTarget;let g=f.changedTouches[0].clientX;const k=n.screenWidth-n.elWidth-n.boundary.right;g>k?g=k:g<n.boundary.left?g=n.boundary.left:g=g<n.screenWidth/2?n.boundary.left:k,e.direction!="y"&&e.attract&&(g<n.screenWidth/2?Le(()=>{s(h)}):Le(()=>{i(h,k)})),e.direction!="x"&&(h.style.top=n.yPum+"px")}function m(f){const h=f.currentTarget,y=f.touches[0],g=f.targetTouches[0];n.startTop=h.offsetTop,n.startLeft=h.offsetLeft,n.position.x=y.clientX,n.position.y=y.clientY,n.nx=g.clientX-n.position.x,n.ny=g.clientY-n.position.y,n.xPum=n.startLeft+n.nx,n.yPum=n.startTop+n.ny}return t.onMounted(()=>{r(),n.boundary=e.boundary}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1)}),t.onDeactivated(()=>{n.keepAlive=!0;const 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 F0(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 Kl=J(L0,[["render",F0]]),R0={width:{type:[String,Number]},height:{type:[String,Number]},plain:{type:[Boolean]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},showClose:{type:Boolean,default:!1},closeIcon:{type:Object},content:{type:[String,Object]},showFooter:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},cancelButtonText:{type:String},cancelText:{type:String},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},confirmButtonText:{type:String},confirmText:{type:String},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},footerDirection:{type:String,default:"horizontal"},popClass:{type:String},popStyle:{type:Object},beforeClose:{type:Function}},O0=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function K0(e,o,l,n,a){return{props:{...ze,...R0},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:d}=ae.useFoxI18n(o),m=d(r,["confirmText","cancelText"]),f=e,h=t.ref(r.visible);t.watch(()=>r.visible,C=>{h.value!==C&&(h.value=C,C&&c("opened"))});const y=C=>{h.value=C,c("update:visible",C),c("update",C)},g=C=>{if(c(C),!(C==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const V=r.beforeClose(C);Mt(V)?V.then(B=>{B&&(y(!1),c("closed",C))}):V===!0&&(y(!1),c("closed",C))}else y(!1),c("closed",C)},k=()=>{g("confirm")},v=()=>{g("cancel")},u=()=>{g("close")},p=(C,V)=>O0(C)?(V.src=C,t.h("img",V)):typeof C=="string"?(Array.isArray(V.class)?V.class.push(C):V.class&&typeof V.class=="object"?V[`${C}`]=!0:typeof V.class=="string"?V.class=`${V.class}, ${C}`:V.class=C,t.h(r.tag,V)):t.h(C,V),b=()=>{const C=[];if(i.header){const B=i.header();C.push(B)}else{if(r.title){const B=t.h("view",{class:`${f}__header-title`},[r.title]);C.push(B)}if(r.showClose){const B={class:[`${f}__header-close-icon`],onClick:u},I=r.closeIcon??a,A=p(I,B);C.push(A)}}if(C.length===0)return null;const V={class:[`${f}__header`]};return t.h("view",V,C)},S=()=>{const C=[];if(i.default)C.push(i.default());else{const B={class:[`${f}__content`]};if(r.textAlign&&B.class.push(r.textAlign),typeof r.content=="string"){B.innerHTML=r.content;const I=t.h("view",B);C.push(I)}else if(typeof r.content=="function"){const I=t.h("view",B,[r.content()]);C.push(I)}else{const I=t.h("view",B,[r.content]);C.push(I)}}if(C.length===0)return null;const V={class:[`${f}__body`]};return t.h("view",V,C)},N=()=>{if(!r.showFooter)return null;const C=[];if(i.footer)C.push(i.footer());else if(r.plain){if(r.showCancelButton){const B={class:[`${f}__footer-button`,`${f}__footer-cancel`],style:{},onClick:v};r.cancelButtonClass&&B.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(B.style,r.cancleButtonStyle);const I=t.h("view",B,[r.cancelButtonText??m.cancelText.value]);C.push(I)}if(r.showConfirmButton){const B={class:[`${f}__footer-button`,`${f}__footer-confirm`],style:{},onClick:k};r.confirmButtonClass&&B.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(B.style,r.confirmButtonStyle);const I=t.h("view",B,[r.confirmButtonText??m.confirmText.value]);C.push(I)}}else{if(r.showCancelButton){const B={class:[`${f}__footer-button`,`${f}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:v};r.cancelButtonClass&&B.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(B.style,r.cancleButtonStyle);const I=t.h(n,B,{default:()=>[r.cancelButtonText??m.cancelText.value]});C.push(I)}if(r.showConfirmButton){const B={class:[`${f}__footer-button`,`${f}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:k};r.confirmButtonClass&&B.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(B.style,r.confirmButtonStyle);const I=t.h(n,B,{default:()=>[r.confirmButtonText??m.confirmText.value]});C.push(I)}}if(C.length===0)return null;const V={class:[`${f}__footer`,`${f}__footer--${r.footerDirection}`]};return t.h("view",V,C)};return()=>{const C=[],V=b();V&&C.push(V);const B=S();B&&C.push(B);const I=N();I&&C.push(I);const A={class:{[`${f}`]:!0,[`${f}--plain`]:r.plain}},w=t.h("view",A,C),P=[`${f}__popup`];r.popClass&&P.push(r.popClass);const F={};r.width&&(F.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(F.height=typeof r.height=="number"?`${r.height}px`:r.height);const x={...he(r,ze),popClass:P.join(" "),style:F,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:r.position,onClickOverlay:u,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(l,x,{default:()=>w})}}}}const{componentName:U0,create:H0,scope:j0}=Y("dialog"),Bs=H0(K0(U0,j0,ie,Ie,te.Close));class W0{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 Y0{options=new W0;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"),s=`dialog-${l.id}`;r.id=s;const i={setup(){return l.onUpdate=d=>{if(d===!1){const m=document.querySelector(`#${s}`);m&&m.parentNode?.removeChild(m)}},l?.onOpened&&l?.onOpened(),()=>t.h(Bs,l)}},c=t.createVNode(i);n.appendChild(r),t.render(c,r)}}const jt=function(e){return new Y0(e)};jt.install=e=>{e.use(Bs),e.config.globalProperties.$dialog=jt};const{componentName:X0,create:Q0,scope:G0}=Y("pull-refresh"),Z0=Q0({props:{modelValue:{type:Boolean,default:!1},pullingText:{type:String},loosingText:{type:String},loadingText:{type:String},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},emits:["change","refresh","update:modelValue"],components:{Loading:te.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(G0),a=n(e,["pullingText","loosingText","loadingText"]),r=Ue(),s=t.ref(),i=is(s),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal"}),d=t.computed(()=>({[X0]:!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=pe(e.headHeight)),S}),y=S=>{const N=+(e.pullDistance||e.headHeight);let C=S;return S>N&&(S<N*2?C=(S+N)/2:C=N+S/4),Math.round(C)},g=(S,N)=>{const C=+(e.pullDistance||e.headHeight);c.distance=S,N?c.status="loading":S===0?c.status="normal":S<C?c.status="pulling":c.status="loosing",o("change",{status:c.status,distance:S})},k=()=>c.status!=="loading"&&c.status!=="complete",v=()=>i.value==window?qn()==0:i.value&&i.value.scrollTop==0,u=S=>{k()&&(v()?(r.start(S),c.isPullRefresh=!0):(c.distance=0,c.isPullRefresh=!1))},p=S=>{if(k()){r.move(S);const{deltaY:N}=r;r.isVertical()&&N.value>0&&c.isPullRefresh&&(S.cancelable&&S.preventDefault(),g(y(N.value)))}},b=()=>{c.isPullRefresh&&k()&&r.deltaY.value&&(c.status==="loosing"?(g(+e.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):g(0)),setTimeout(()=>{r.reset()},0)};return t.watch(()=>e.modelValue,S=>{S?g(+e.headHeight,!0):g(0)}),{classes:d,scroller:s,...t.toRefs(c),touchStart:u,touchMove:p,touchEnd:b,getStyle:f,slots:l,getHeightStyle:h,getPullStatus:m}}}),J0={class:"fox-pull-refresh-container-topbox-text"};function _0(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",J0,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 Ul=J(Z0,[["render",_0]]),{create:ek}=Y("notify"),tk=ek({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 ok(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 Hl=J(tk,[["render",ok]]),Tn={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let dt=[],xt=[];const Vs=e=>{if(e){const o=document.getElementById(e);xt=xt.filter(l=>l.id!==e),dt=dt.filter(l=>l!==e),o&&document.body.removeChild(o)}else dt.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),xt=[],dt=[]},nk=e=>{const o=document.getElementById(e.id);if(o){const l=xt.find(a=>a.id===e.id);l?e={...Tn,...l,...e}:e={...Tn,...e};const n=t.createVNode(Hl,e);return t.render(n,o),n.component.data}},At=e=>{e.unmount=Vs;let o;if(e.id){if(o=e.id,dt.find(r=>r===e.id))return nk(e)}else o=new Date().getTime()+"";e={...Tn,...e},e.id=o,dt.push(e.id),xt.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(Hl,e)}},a=t.createVNode(n);document.body.appendChild(l),t.render(a,l)},$t=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},jl={text(e,o={}){return $t(e),At({...o,msg:e})},primary(e,o={}){return $t(e),At({...o,msg:e,type:"primary"})},success(e,o={}){return $t(e),At({...o,msg:e,type:"success"})},danger(e,o={}){return $t(e),At({...o,msg:e,type:"danger"})},warn(e,o={}){return $t(e),At({...o,msg:e,type:"warning"})},hide(){Vs()},install(e){e.use(Hl)}},{create:lk}=Y("toast"),ak=lk({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()}}}}),rk={key:1,class:"fox-toast-title"},sk=["innerHTML"];function ik(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",rk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,sk)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Wl=J(ak,[["render",ik]]),En={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 ft=[],It=[];const As=e=>{if(e){const o=document.getElementById(e);It=It.filter(l=>l.id!==e),ft=ft.filter(l=>l!==e),o&&document.body.removeChild(o)}else ft.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),It=[],ft=[]},ck=e=>{const o=document.getElementById(e.id);if(o){const l=It.find(a=>a.id===e.id);l?e={...En,...l,...e}:e={...En,...e};const n=t.createVNode(Wl,e);return t.render(n,o),Ct}},Tt=e=>{e.unmount=As;let o;if(e.id){if(o=e.id,ft.find(a=>a===e.id))return ck(e)}else o=new Date().getTime()+"";e={...En,...e},e.id=o,ft.push(e.id),It.push(e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(Wl,e);return t.render(n,l),document.body.appendChild(l),Ct},Jt=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Ct={text(e,o={}){return Jt(e),Tt({...o,type:"text",msg:e})},success(e,o={}){return Jt(e),Tt({icon:te.Success,...o,msg:e,type:"success"})},fail(e,o={}){return Jt(e),Tt({icon:te.Failure,...o,msg:e,type:"fail"})},warn(e,o={}){return Jt(e),Tt({icon:te.Tips,...o,msg:e,type:"warn"})},loading(e,o={}){return Tt({icon:te.Loading,...o,msg:e,type:"loading"})},hide(e){As(e)},install(e){e.use(Wl),e.config.globalProperties.$toast=Ct}},{componentName:s2,create:uk}=Y("audio"),dk=uk({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:te.Service,[Kt.name]:Kt},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 k=["webkitVisibilityState","visibilitychange"];try{for(let v=0;v<k.length;v++)document.addEventListener(k[v],()=>{document.hidden?n.value.pause():a.playing&&setTimeout(()=>{n.value.play()},200)})}catch(v){v.message}});const r=k=>{const v=n.value;e.autoplay&&v&&v.paused&&v.play(),a.second=v.duration,a.duration=g(v.duration),o("can-play",k)},s=k=>{a.currentTime=parseInt(k.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,n.value.currentTime=a.currentTime,o("fastBack",a.currentTime)},c=()=>{const k=n.value;a.playing?(k.pause(),a.handPlaying=!1):(k.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=k=>{a.currentDuration=g(k),a.percent=k/a.second*100},f=()=>{a.playing=!1,o("ended")},h=k=>{const v=n.value;v.currentTime=a.second*k/100,o("changeProgress",v.currentTime)},y=()=>{a.hanMuted=!a.hanMuted,o("mute",a.hanMuted)},g=k=>{if(!k)return"00:00:00";let v=parseInt(k),u=Math.floor(v/3600),p=Math.floor((v-u*3600)/60),b=v-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,k=>{m(k)}),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}}}),fk={class:"fox-audio"},mk={key:0,class:"fox-audio__progress"},pk={class:"fox-audio__time"},hk={class:"fox-audio__bar"},gk=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),yk={class:"fox-audio__time"},vk={key:1,class:"fox-audio__icon"},kk=["controls","src","preload","autoplay","loop","muted"];function bk(e,o,l,n,a,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",fk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",mk,[t.createElementVNode("div",pk,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",hk,[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(()=>[gk]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",yk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",vk,[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,kk)])}const Yl=J(dk,[["render",bk]]),{componentName:i2,create:Sk,scope:Ck}=Y("audio-operate"),wk=Sk({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(Ck),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}}}),Nk={class:"fox-audio-operate"};function Bk(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Nk,[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 Xl=J(wk,[["render",Bk]]),{componentName:Vk,create:Ak}=Y("avatar"),$k=Ak({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 g=s?.avatarGroupRef?.value?.children;g&&y(g)});const m=t.computed(()=>({[Vk]:!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=g=>{d.maxIndex=g.length;for(let k=0;k<g.length;k++)g[k]&&g[k].classList&&g[k].classList[0]=="fox-avatar"&&g[k].setAttribute("data-index",k+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 Tk(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 Wt=J($k,[["render",Tk]]),{componentName:Ek,create:Dk}=Y("avatar-group"),xk=Dk({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(()=>({[Ek]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:n,index:a}),{classes:r,avatarGroupRef:n}}});function Ik(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 Ql=J(xk,[["render",Ik]]);var no=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(no||{});function qk(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:Mk,create:zk}=Y("list"),yr=document.documentElement.clientHeight||document.body.clientHeight||667,Pk=zk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:yr},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,yr)),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(()=>({[Mk]:!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(V=>V.nodeType===1);const p=u[0];u.forEach((V,B)=>{if(!V)return;const I=Ve(V),{height:A}=I,P=r.cachePositions[B+r.start].height-A;P&&(r.cachePositions[B+r.start].bottom-=P,r.cachePositions[B+r.start].height=A,r.cachePositions[B+r.start].dValue=P)});let b=0;p&&(b=r.start);const S=r.cachePositions.length;let N=r.cachePositions[b].dValue;r.cachePositions[b].dValue=0;for(let V=b+1;V<S;++V){const B=r.cachePositions[V];r.cachePositions[V].top=r.cachePositions[V-1].bottom,r.cachePositions[V].bottom=r.cachePositions[V].bottom-N,B.dValue!==0&&(N+=B.dValue,B.dValue=0)}const C=r.cachePositions[S-1].bottom;r.phantomHeight=C},g=(u=0)=>{let p=qk(r.cachePositions,u,(S,N)=>{const C=S.bottom;return C===N?no.eq:C<N?no.lt:no.gt});return r.cachePositions[p].bottom<u&&(p+=1),p},k=()=>{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,b=g(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{k();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:v}}});function Lk(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 Gl=J(Pk,[["render",Lk]]),{componentName:Fk,create:Rk}=Y("circleprogress"),Ok=Rk({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:o}){const l=!!t.useSlots().default,n=Math.random().toString(36).slice(-8),a=t.computed(()=>({[Fk]:!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(()=>Be(e.color)?`url(#${n})`:e.color),i=t.computed(()=>{let m=283,f=m*Number(e.progress)/100;return{stroke:Be(e.color)?`url(#${n})`:e.color,strokeDasharray:`${f}px ${m}px`}}),c=t.computed(()=>({stroke:e.pathColor})),d=t.computed(()=>{if(!Be(e.color))return;let m=e.color;const f=Object.keys(m).sort((y,g)=>parseFloat(y)-parseFloat(g));let h=[];return f.map((y,g)=>{let k={key:"",value:""};k.key=y,k.value=m[y],h.push(k)}),h});return{classes:a,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:d,slotDefault:l,refRandomId:n}}}),Kk={viewBox:"0 0 100 100"},Uk=["id"],Hk=["offset","stop-color"],jk=["d","stroke-width"],Wk=["d","stroke","stroke-linecap","stroke-width"],Yk={class:"fox-circleprogress-text"},Xk={key:0};function Qk(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",Kk,[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,Hk))),128))],8,Uk)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,jk),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,Wk)])),t.createElementVNode("div",Yk,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Xk,t.toDisplayString(e.progress)+"%",1))])],6)}const Zl=J(Ok,[["render",Qk]]),{componentName:Gk,create:Zk}=Y("noticebar"),Jk=Zk({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:te.Notice,CircleClose:te.CircleClose},emits:["click","close","across-end"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=t.computed(()=>({[Gk]:!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 B=~~(e.height/e.speed/4);V={transition:`all ${B==0?~~(e.height/e.speed):B}s`,"margin-top":`-${e.height}px`}}return V});t.watch(()=>e.text,V=>{h()}),t.watch(()=>e.list,V=>{r.scrollList=[...V]});const h=V=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!n.value||!a.value)return;const B=n.value.getBoundingClientRect().width,I=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?I>B:e.scrollable,r.isCanScroll?(r.wrapWidth=B,r.offsetWidth=I,r.duration=I/e.speed,r.animationClass="play"):r.animationClass=""},0)},y=V=>{o("click",V)},g=V=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",V)},k=V=>{r.firstRound=!1,o("across-end",V),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 V=100;for(let B=0;B<V;B++)b(B,!(B<V-1))},e.standTime+100*e.speed)},b=(V,B)=>{setTimeout(()=>{r.distance-=e.height/100,B&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},V*e.speed)},S=V=>{o("click",V)},N=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(l.default?C(l.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?p():v()},e.standTime)):h(e.text)}),t.watch(()=>l.default?l.default():[],V=>{e.direction==="vertical"&&l.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),C(V))});const C=V=>{V&&V.length>0&&(r.scrollList=V[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:d,contentStyle:m,horseLampStyle:f,wrap:n,content:a,handleClick:y,onClickIcon:g,onAnimationEnd:k,go:S,handleClickIcon:N,slots:l,toPxDesc:pe,wrapContentClass:c}}}),_k={class:"fox-noticebar__page-lefticon"},eb={ref:"wrap",class:"fox-noticebar__page-wrap"},tb={class:"showNotica"},ob=["onClick"];function nb(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",_k,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",eb,[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("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",tb,[(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.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.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(d),1)])],12,ob))),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 Jl=J(Jk,[["render",nb]]),lb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXM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gNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:c2,create:sb,scope:ib}=Y("empty"),cb={empty:lb,error:ab,network:rb},ub=sb({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:o}=ae.useFoxI18n(ib),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:cb[n.value];return{...l,imageUrl:i,imgStyle:r}}}),db={class:"fox-empty"},fb=["src"],mb={key:1,class:"fox-empty-description"};function pb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",db,[t.createElementVNode("view",{class:"fox-empty-image",style:t.normalizeStyle(e.imgStyle)},[e.$slots.image?t.renderSlot(e.$slots,"image",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.imageUrl?(t.openBlock(),t.createElementBlock("img",{key:0,class:"img",src:e.imageUrl},null,8,fb)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",mb,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const _l=J(ub,[["render",pb]]),{create:hb,scope:gb}=Y("video"),yb=hb({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}=ae.useFoxI18n(gb),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,C=>{C.src&&t.nextTick(()=>{n.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,C=>{n.state.isMuted=C?C.muted:!1},{immediate:!0});const s=()=>{n.videoElm=a.value,e.options.autoplay&&setTimeout(()=>{n.videoElm.play()},200),e.options.touchPlay&&(n.showTouchMask=!0),e.options.playsinline&&(n.videoElm.setAttribute("playsinline",e.options.playsinline),n.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),n.videoElm.setAttribute("x5-video-player-type","h5-page"),n.videoElm.setAttribute("x5-video-player-fullscreen",!1)),g(),n.showToolbox?i():(n.videoElm.addEventListener("play",()=>{n.state.playing=!0,o("play",n.videoElm)}),n.videoElm.addEventListener("pause",()=>{n.state.playing=!1,o("pause",n.videoElm)}),n.videoElm.addEventListener("ended",h),n.videoElm.addEventListener("timeupdate",ro(f,1e3)))},i=()=>{const C=a.value,V=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];n.player.$player=C,n.progressBar.progressElm=V,n.progressBar.pos=V.getBoundingClientRect(),n.videoSet.progress.width=Math.round(V.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",ro(f,1e3)),n.videoElm.addEventListener("ended",h),o("play",n.videoElm)}catch{y()}else n.videoElm.pause(),o("pause",n.videoElm)},d=C=>{var V=Math.floor(C/3600);V<10&&(V="0"+V);var B=Math.floor(C%3600/60);B<10&&(B="0"+B);var I=Math.round(C%3600%60);I<10&&(I="0"+I);var A="";return V!=0?A=V+":"+B+":"+I:A=B+":"+I,A},m=()=>{n.videoSet.loaded&&(n.videoSet.loaded=n.videoElm.buffered.end(0)/n.videoElm.duration*100)},f=()=>{const C=n.videoElm.currentTime/n.videoElm.duration;n.videoSet.progress.current=Math.round(n.videoSet.progress.width*C),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},g=()=>{n.state.vol=e.options.volume},k=()=>{n.state.isMuted=!n.state.isMuted,n.videoElm.muted=n.state.isMuted},v=()=>{},u=C=>{let B=C.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 I=n.videoSet.progress.current/n.videoSet.progress.width;n.videoElm.duration&&b(I,n.videoElm.duration)},p=C=>{let B=C.changedTouches[0].pageX-n.progressBar.pos.left;n.videoSet.progress.current=B;let I=B/n.videoSet.progress.width;n.videoElm.duration&&b(I,n.videoElm.duration)},b=(C,V)=>{n.videoElm.currentTime=Math.floor(C*V)},S=()=>{n.state.isError=!1,s()},N=()=>{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:k,touchSlidSrart:v,touchSlidMove:u,touchSlidEnd:p,retry:S,fullScreen:N,t:l}}}),vb={class:"fox-video",ref:"videocon"},kb=["muted","autoplay","loop","poster","controls","preload"],bb=["src","type"],Sb={class:"fox-video-controller__now"},Cb={class:"fox-video-controller__progress"},wb={class:"fox-video-controller__progress-value",ref:"progressBar"},Nb=t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1),Bb=[Nb],Vb={class:"fox-video-controller__played",ref:"playedBar"},Ab={class:"fox-video-controller__total"},$b={class:"fox-video-error"},Tb={class:"fox-video-error-tip"};function Eb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",vb,[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,bb)],40,kb),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",Sb,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",Cb,[t.createElementVNode("div",wb,[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"]))},Bb,36),t.createElementVNode("div",Vb,null,512)],512)]),t.createElementVNode("div",Ab,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",$b,[t.createElementVNode("p",Tb,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 kt=J(yb,[["render",Eb]]),{create:Db,componentName:xb}=Y("steps"),ea=Db({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=xb;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:Ib,componentName:qb}=Y("step"),Mb=Ib({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=qb;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{o.onEmit(n.value)};return{...t.toRefs(l),index:n,classes:s,handleClickStep:i}}}),zb={class:"fox-step-head"},Pb=t.createElementVNode("view",{class:"fox-step-line"},null,-1),Lb={class:"fox-step-icon-inner"},Fb={key:1,class:"fox-step-inner"},Rb={class:"fox-step-main"},Ob={class:"fox-step-title"},Kb={key:0},Ub={key:0,class:"fox-step-content"},Hb=["innerHTML"];function jb(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",zb,[Pb,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",Lb,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",Fb,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",Rb,[t.createElementVNode("view",Ob,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Kb,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",Ub,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,Hb)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ta=J(Mb,[["render",jb]]),{create:Wb,componentName:on}=Y("swiper"),Yb=Wb({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:o,slots:l}){const n=t.ref(),a=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=Ue(),s=t.computed(()=>({[on]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const D=on;return{[`${D}-inner`]:!0,[`${D}-vertical`]:i.value}}),d=t.computed(()=>{const D=on;return{[`${D}-pagination`]:!0,[`${D}-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"]),g=t.computed(()=>h.value*y.value),k=t.computed(()=>a.rect?(i.value?a.rect.height:a.rect.width)-y.value*h.value:0),v=t.computed(()=>(a.active+h.value)%h.value),u=()=>{let D=0;D=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${D}px)`,[i.value?"height":"width"]:`${y.value*h.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},p=D=>{let W=[];const H=a.childrenVNode.length;let G=l?.default?.();if(G=G.filter(R=>R.children&&Array.isArray(R.children)),G.forEach(R=>{W=W.concat(R.children)}),!H)a.childrenVNode=W.slice(),D.proxy&&a.children.push(D.proxy);else if(H>W.length)a.children=a.children.filter(R=>D.proxy!==R);else if(H<W.length){for(let R=0;R<H;R++)if(W[R].key!==a.childrenVNode[R].key){D.proxy&&a.children.splice(R,0,D.proxy),D.vnode&&a.childrenVNode.splice(R,0,D.vnode);break}H!==W.length&&(D.proxy&&a.children.push(D.proxy),D.vnode&&a.childrenVNode.push(D.vnode))}else a.childrenVNode=W.slice(),D.proxy&&a.children.push(D.proxy)},b=(D,W=0)=>{let H=D*y.value;e.loop||(H=Math.min(H,-k.value));let G=W-H;return e.loop||(G=Fe(G,k.value,0)),G},S=D=>{const{active:W}=a;return D?e.loop?Fe(W+D,-1,h.value):Fe(W+D,0,h.value-1):W},N=({pace:D=0,offset:W=0,isEmit:H=!1})=>{if(h.value<=1)return;const{active:G}=a,R=S(D),$=b(R,W);if(e.loop){if(a.children[0]&&$!==k.value){const T=$<k.value;a.children[0].setOffset(T?g.value:0)}if(a.children[h.value-1]&&$!==0){const T=$>0;a.children[h.value-1].setOffset(T?-g.value:0)}}a.active=R,a.offset=$,H&&G!==a.active&&o("change",v.value),u()},C=()=>{a.moving=!0,a.active<=-1&&N({pace:h.value}),a.active>=h.value&&N({pace:-h.value})},V=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},B=D=>{C(),r.reset(),We(()=>{We(()=>{a.moving=!1,N({pace:D,isEmit:!0})})})},I=()=>{B(-1)},A=()=>{B(1)},w=D=>{C(),r.reset(),We(()=>{a.moving=!1;let W;e.loop&&h.value===D?W=a.active===0?0:D:W=D%h.value,N({pace:W-a.active,isEmit:!0})})},P=()=>{e.autoPlay<=0||h.value<=1||(V(),a.autoplayTimer=setTimeout(()=>{A(),P()},Number(e.autoPlay)))},F=(D=+e.initPage)=>{V(),a.rect=n.value.getBoundingClientRect(),D=Math.min(h.value-1,D),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=D,a.offset=b(a.active),a.moving=!0,u(),P()},E=D=>{e.isPreventDefault&&D.preventDefault(),e.isStopPropagation&&D.stopPropagation(),e.touchable&&(r.start(D),a.touchTime=Date.now(),V(),C())},x=D=>{e.touchable&&a.moving&&(r.move(D),f.value&&N({offset:m.value}))},U=D=>{if(!e.touchable||!a.moving)return;const W=m.value/(Date.now()-a.touchTime);if((Math.abs(W)>.3||Math.abs(m.value)>+(y.value/2).toFixed(2))&&f.value){let G=0;const R=i.value?r.offsetY.value:r.offsetX.value;e.loop?G=R>0?m.value>0?-1:1:0:G=-Math[m.value>0?"ceil":"floor"](m.value/y.value),N({pace:G,isEmit:!0})}else m.value&&N({pace:0});a.moving=!1,u(),P()};return t.provide("parent",{props:e,size:y,relation:p}),$e({prev:I,next:A,to:w}),t.onDeactivated(()=>{V()}),t.onBeforeUnmount(()=>{V()}),t.watch(()=>e.initPage,D=>{t.nextTick(()=>{F(Number(D))})}),t.watch(()=>a.children.length,()=>{t.nextTick(()=>{F()})}),t.watch(()=>e.autoPlay,D=>{D>0?P():V()}),{state:a,classes:s,classesInner:c,classesPagination:d,container:n,activePagination:v,onTouchStart:E,onTouchMove:x,onTouchEnd:U}}});function Xb(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 bt=J(Yb,[["render",Xb]]),{create:Qb,componentName:Gb}=Y("swiper-item"),Zb=Qb({setup(e,{slots:o}){const l=t.inject("parent");l.relation(t.getCurrentInstance());const n=t.reactive({offset:0}),a=t.computed(()=>({[Gb]:!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")}),$e({setOffset:s}),{style:r,classes:a}}});function Jb(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 St=J(Zb,[["render",Jb]]),$s={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:_b}=Y("image-preview-item"),eS=_b({props:{...$s,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:{[kt.name]:kt,[St.name]:St},setup(e,{emit:o}){const l=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),n=Ue(),a=t.computed(()=>{const{rootWidth:I,rootHeight:A}=e,w=A/I;return l.imageRatio>w}),r=t.computed(()=>{const I=e.image;if(I&&I.src){const{scale:A,moveX:w,moveY:P,moving:F,zooming:E}=l,x={transitionDuration:E||F?"0s":".3s"};if(A!==1){const U=w/A,D=P/A;x.transform=`scale(${A}, ${A}) translate(${U}px, ${D}px)`}return x}return{}}),s=t.computed(()=>{if(l.imageRatio){const{rootWidth:I,rootHeight:A}=e,w=a.value?A/l.imageRatio:I;return Math.max(0,(l.scale*w-I)/2)}return 0}),i=t.computed(()=>{if(l.imageRatio){const{rootWidth:I,rootHeight:A}=e,w=a.value?A:I*l.imageRatio;return Math.max(0,(l.scale*w-A)/2)}return 0}),c=I=>{const{naturalWidth:A,naturalHeight:w}=I.target;l.imageRatio=w/A},d=()=>{m(1),l.moveX=0,l.moveY=0},m=I=>{I=Fe(I,+e.minZoom,+e.maxZoom+1),I!==l.scale&&(l.scale=I,o("scale",{scale:I,index:e.initNo}))},f=()=>{const I=l.scale>1?1:2;m(I),l.moveX=0,l.moveY=0},h=I=>Math.sqrt((I[0].clientX-I[1].clientX)**2+(I[0].clientY-I[1].clientY)**2);let y,g,k,v,u,p,b;const S=I=>{const{touches:A}=I,{offsetX:w}=n;n.start(I),b=A.length,y=l.moveX,g=l.moveY,p=Date.now(),l.moving=b===1&&l.scale!==1,l.zooming=b===2&&!w.value,l.zooming&&(k=l.scale,v=h(I.touches))},N=I=>{const{touches:A}=I;if(n.move(I),(l.moving||l.zooming)&&fn(I,!0),l.moving){const{deltaX:w,deltaY:P}=n,F=w.value+y,E=P.value+g;l.moveX=Fe(F,-s.value,s.value),l.moveY=Fe(E,-i.value,i.value)}if(l.zooming&&A.length===2){const w=h(A),P=k*w/v;m(P)}},C=()=>{if(b==1&&e.video&&e.video.source||b>1)return;const{offsetX:I,offsetY:A}=n,w=Date.now()-p,P=250,F=5;I.value<F&&A.value<F&&w<P&&(u?(clearTimeout(u),u=null,f()):u=setTimeout(()=>{e.contentClose&&o("close"),u=null},P))},V=I=>{let A=!1;(l.moving||l.zooming)&&(A=!0,l.moving&&y===l.moveX&&g===l.moveY&&(A=!1),I.touches.length||(l.zooming&&(l.moveX=Fe(l.moveX,-s.value,s.value),l.moveY=Fe(l.moveY,-i.value,i.value),l.zooming=!1),l.moving=!1,y=0,g=0,k=1,l.scale<1&&d(),l.scale>e.maxZoom&&(l.scale=+e.maxZoom))),fn(I,A),C(),n.reset()},B=()=>{o("close")};return t.watch(()=>e.initNo,d),t.watch(()=>e.show,I=>{I||d()}),{...t.toRefs(l),onTouchStart:S,onTouchMove:N,onTouchEnd:V,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:B}}}),tS=["src"];function oS(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,tS)):t.createCommentVNode("",!0),e.video&&e.video.source?(t.openBlock(),t.createBlock(s,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):t.createCommentVNode("",!0)],36)]),_:1},8,["onClick"])}const nS=J(eS,[["render",oS]]),{create:lS}=Y("image-preview"),aS=lS({props:{...$s,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:nS,CircleClose:te.CircleClose,[ie.name]:ie,[bt.name]:bt},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(()=>ho(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=m=>{m!==n.active&&(n.active=m,o("change",n.active))},i=()=>{Ns(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}}}),rS={class:"fox-image-preview",ref:"swipeRef"},sS={key:0,class:"fox-image-preview-index"};function iS(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",rS,[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",sS,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 Ts=J(aS,[["render",iS]]);class cS{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 uS{options=new cS;constructor(o){const l=Object.assign(this.options,o),{unmount:n}=ci(l,{name:"image-preview",components:[ie,kt,bt,St,at],wrapper:()=>({setup(){return()=>(l.onClose=()=>{l.show=!1,t.nextTick(()=>{n()})},t.h(Ts,l))}})})}}const Ho=e=>new uS(e);Ho.install=e=>{e.use(Ts)};function dS(e){const o=t.getCurrentInstance();if(o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const{componentName:u2,create:fS}=Y("countup"),mS=fS({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,I)=>{f(),v(0)}),t.watch(()=>e.machinePrizeLevel,(B,I)=>{r.prizeLevelTrun=B}),t.watch(()=>e.initNum,(B,I)=>{r.current=B,r.valFlag=!1,m()}),t.watch(()=>e.endNum,(B,I)=>{r.current=e.initNum,r.valFlag=!1,m()});const m=()=>{if(r.valFlag)return!1;s&&(i||c?d!="machine"&&v():(k(),setTimeout(()=>{r.valFlag=!0},300)))},f=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(B,I,A)=>{const w=(B.toString().split(".")[1]||"").length,P=(I.toString().split(".")[1]||"").length,F=Math.pow(10,Math.max(w,P));return A=="-"?Number((B*F-I*F).toFixed(0))/F:Number((B*F+I*F).toFixed(0))/F},y=B=>{let{num_total_len:I,pointNum:A,initDigit1:w,initDigit2:P,sortFlag:F}=r,E=F=="add"||F=="equal"?String(P)[B-(I-A)]:10-Number(String(P)[B-(I-A)]),x=F=="add"||F=="equal"?String(w)[B]:10-Number(String(w)[B]),U=B>I-A-1?-E*100+"%":B<=String(w).length-1?-x*100+"%":0;return U=="-1000%"&&(U=0),U},g=B=>{let{num_total_len:I,pointNum:A,initDigit1:w,initDigit2:P,sortFlag:F}=r,E=String(P)[B-(I-A)];return B>I-A-1?E||0:B<=String(w).length-1?String(w)[B]:0},k=()=>{let{endNum:B,initNum:I,speed:A,toFixed:w}=e,P=setInterval(()=>{if(I>B)if(r.current<=B||r.current<=A)r.current=B.toFixed(w),clearInterval(P),o("scroll-end"),r.valFlag=!1;else{let F=parseFloat(String(r.current))-parseFloat(String(A));r.current=F.toFixed(w)}else if(r.current>=B)r.current=B.toFixed(w),clearInterval(P),o("scroll-end"),r.valFlag=!1;else{let F=parseFloat(String(r.current))+parseFloat(String(A));r.current=F.toFixed(w)}},e.during)},v=B=>{let{initNum:I,endNum:A,toFixed:w,customBgImg:P}=e;P&&(I=e.customChangeNum);let F,E,x,U;I!=0?(w!=0&&(I=Number(I.toFixed(w))),String(I).indexOf(".")>-1?(F=String(I).split(".")[0].length,E=String(I).split(".")[1].length):(F=String(I).length,E=0)):(F=1,E=0),A!=0?(w!=0&&(A=Number(A.toFixed(w))),String(A).indexOf(".")>-1?(x=String(A).split(".")[0].length,U=String(A).split(".")[1].length):(x=String(A).length,U=0)):(x=1,U=0);let D=F>=x?F:x,W=E>=U?E:U;r.num_total_len=D+W,r.pointNum=W,I>A?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(I,A,"-"),r.numberVal=Number(String(I))):I<A?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(A,I,"-"),r.numberVal=Number(String(A))):r.sortFlag="equal";var H=1;for(let R=0;R<r.pointNum;R++)H*=10;var G=r.numberVal*H;if(r.relNum=G,w!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(G).length),String(I).indexOf(".")>-1){let R=String(I).split(".");r.initDigit1=Number(R[0]),r.initDigit2=Number(R[1])}else r.initDigit1=I,r.initDigit2=0;i&&!P?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let R=n.value[r.num_total_len-1];u(R)}):B!==0&&S()},u=B=>{f();var I=1;r.pointNum!=0&&(I=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{p(B),r.totalCount=h(r.totalCount,I,"-"),r.totalCount<=0&&(f(),o("scroll-end"),r.valFlag=!1)},e.during)},p=B=>{let I=B.getAttribute("turn-number"),A;if(r.sortFlag=="add"?A=parseInt(String(I))+1:A=parseInt(String(I))-1>=0?parseInt(String(I))-1:9,B.setAttribute("turn-number",String(A)),(B.style.transition=="none 0s ease 0s"||A==1||!B.style.transition)&&(B.style.transition=`all linear ${e.during}ms`),A==10||r.sortFlag=="reduce"&&A==0){var w=null;B.style.top=`-${r.sortFlag=="add"?A*100:(10-A)*100}%`,B.setAttribute("turn-number","0"),w=setTimeout(()=>{w&&clearTimeout(w),B.style.transition="none",B.style.top="0",b(B,A)},.975*e.during)}else B.style.top=`-${r.sortFlag=="add"?A*100:(10-A)*100}%`;B.style.top=="-100%"&&r.sortFlag=="reduce"&&p(B.previousSibling)},b=(B,I)=>{setTimeout(()=>{I==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})})},N=()=>{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)}};dS({machineLuck:()=>{const B=e.machineTurnMore<0?0:e.machineTurnMore;let I=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&N();for(let A=0;A<e.machineNum;A++)setTimeout(()=>{let w=I*(A+1+parseFloat(String(B)));r.prizeYPrev.length!=0&&(r.prizeY[A]=r.prizeYPrev[A]);let P=r.prizeYPrev[A]?r.prizeYPrev[A]:0,F=w+P+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(I-P);r.prizeLevelTrun<0&&(F+=e.numHeight*r.notPrize[A]),V(A,F,P)},500*A)}});const V=(B,I,A)=>{let w=setInterval(()=>{if(A<=I)A+=10,r.prizeY[B]=parseFloat(String(A));else if(clearInterval(w),w=null,r.finshMachine+=1,r.prizeY[B]=I,r.finshMachine==e.machineNum){let P=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(E=>{let x=E;for(;x>P;)x-=P;r.prizeYPrev.push(x)}),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:g}}}),pS={class:"fox-countup"},hS=["turn-number"];function gS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",pS,[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,hS))),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 oa=J(mS,[["render",gS]]),yS=e=>{if(!e)return Date.now();let o=Number(e),l=o>0?+o:o.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:vS,create:kS}=Y("countdown"),bS=kS({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(()=>({[vS]:!0})),r=t.computed(()=>c(n.restTime)),s=()=>{n.handleEndTime=e.endTime,n.diffTime=Date.now()-yS(e.startTime),n.counting||(n.counting=!0),i()},i=()=>{window!==void 0&&(n.timer=requestAnimationFrame(()=>{if(n.counting){const y=Date.now()-n.diffTime,g=Math.max(n.handleEndTime-y,0);n.restTime=g,g||(n.counting=!1,f(),o("on-end")),g>0&&i()}}))},c=(y,g)=>{const k=y;let v={d:0,h:0,m:0,s:0,ms:0};const u=1e3,p=60*u,b=60*p,S=24*b;return k>0&&(v.d=k>=u?Math.floor(k/S):0,v.h=Math.floor(k%S/b),v.m=Math.floor(k%b/p),v.s=Math.floor(k%p/u),v.ms=Math.floor(k%u)),g=="custom"?v:d({...v})},d=y=>{let{d:g,h:k,m:v,s:u,ms:p}=y,b=e.format;if(b.includes("DD")?b=b.replace("DD",Je(g)):k+=Number(g)*24,b.includes("HH")?b=b.replace("HH",Je(k)):v+=Number(k)*60,b.includes("mm")?b=b.replace("mm",Je(v)):u+=Number(v)*60,b.includes("ss")?b=b.replace("ss",Je(u)):p+=Number(u)*1e3,b.includes("S")){const S=Je(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 g=c(y,"custom");o("update:modelValue",g),o("input",g)}),t.watch(()=>e.paused,(y,g)=>{g?(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}}}),SS=["innerHTML"];function CS(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,SS))],2)}const na=J(bS,[["render",CS]]),{create:wS}=Y("badge"),NS=wS({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}}}),BS={class:"fox-badge"},VS=["textContent"];function AS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",BS,[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,VS),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const la=J(NS,[["render",AS]]),{componentName:$S,create:TS}=Y("tag"),ES=TS({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:te.Close},emits:["close","click"],setup(e,{emit:o}){return{classes:t.computed(()=>{const s=$S;return{[s]:!0,[`${s}--${e.type}`]:!0,[`${s}--plain`]:e.plain,[`${s}--round`]:e.round,[`${s}--mark`]:e.mark,[`${s}--symbol`]:e.symbol,[`${s}--text`]:e.text,[`${s}--light`]:e.light}}),getStyle:()=>{const s={};return e.textColor?s.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(s.color=e.color),e.plain?(s.background="#fff",s["border-color"]=e.color):!e.text&&e.color&&(s.background=e.color),s},onClose:s=>{s.stopPropagation(),o("close",s)},onClick:s=>{o("click",s)}}}});function DS(e,o,l,n,a,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const Yt=J(ES,[["render",DS]]),{create:xS}=Y("popover"),IS=xS({components:{FoxPopup: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:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:o}){const l=t.ref(),n=t.ref(),a=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const 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:N}=e,C=N.split("-")[0],V=N.split("-")[1],B=16;return b&&(p[`border${d(C)}Color`]=b),e.arrowOffset!=0&&(["bottom","top"].includes(C)&&(V||(p.left=`calc(50% + ${S}px)`),V=="start"&&(p.left=`${B+S}px`),V=="end"&&(p.right=`${B-S}px`)),["left","right"].includes(C)&&(V||(p.top=`calc(50% - ${S}px)`),V=="start"&&(p.top=`${B-S}px`),V=="end"&&(p.bottom=`${B+S}px`))),p}),d=p=>(p=p.toLowerCase(),p=p.replace(/\b\w+\b/g,b=>b.substring(0,1).toUpperCase()+b.substring(1)),p),m=t.computed(()=>{let p={};if(!r.value||!s.value)return{};const b=s.value.width,S=s.value.height,{width:N,height:C,left:V,top:B}=r.value,{location:I,offset:A}=e,w=I.split("-")[0],P=I.split("-")[1];let F=0,E=0;if(ho(A)&&A.length==2&&(F+=Number(A[1]),E+=Number(A[0])),N){if(["bottom","top"].includes(w)){const x=w=="bottom"?C+F:-(S+F);p.top=`${B+x}px`,P||(p.left=`${-(b-N)/2+V+E}px`),P=="start"&&(p.left=`${V+E}px`),P=="end"&&(p.left=`${r.value.right+E}px`)}if(["left","right"].includes(w)){const x=w=="left"?-(b+F):N+F;p.left=`${V+x}px`,P||(p.top=`${B-S/2+C/2-4+E}px`),P=="start"&&(p.top=`${B+E}px`),P=="end"&&(p.top=`${B+C+E}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)},g=()=>{y(!e.visible),o("open")},k=()=>{o("update:visible",!1),o("close")},v=(p,b)=>{!p.disabled&&o("choose",p,b),e.closeOnClickAction&&k()},u=p=>{const b=l.value,S=n.value;let N=b&&!b.contains(p.target);if(e.targetId){const C=document.querySelector(`#${e.targetId}`);N=C&&!C.contains(p.target)}N&&S&&!S.contains(p.target)&&e.closeOnClickOutside&&k()};return{showPopup:a,openPopover:g,popoverArrow:i,closePopover:k,chooseItem:v,popoverRef:l,popoverContentRef:n,getRootPosition:m,customStyle:f,popoverArrowStyle:c,renderIcon:Xr}}}),qS={ref:"popoverContentRef",class:"fox-popover-content-group"},MS=["onClick"],zS={class:"fox-popover-menu-item-name"};function PS(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.targetId?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:o[0]||(o[0]=(...i)=>e.openPopover&&e.openPopover(...i))},[t.renderSlot(e.$slots,"reference")],512)),t.createElementVNode("view",{class:t.normalizeClass(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:t.normalizeStyle(e.getRootPosition)},[t.createVNode(s,{visible:e.showPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.showPopup=i),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:t.normalizeStyle(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:t.withCtx(()=>[t.createElementVNode("view",qS,[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",zS,t.toDisplayString(i.name),1)],10,MS))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Xt=J(IS,[["render",PS]]),LS=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:FS}=Y("skeleton"),RS=FS(LS({[Wt.name]:Wt})),OS={key:0},KS={key:1,class:"fox-skeleton"},US={key:0,class:"fox-skeleton-animation"},HS={class:"fox-skeleton-content"};function jS(e,o,l,n,a,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",KS,[e.animated?(t.openBlock(),t.createElementBlock("view",US)):t.createCommentVNode("",!0),t.createElementVNode("view",HS,[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",OS,[t.renderSlot(e.$slots,"default")]))}const aa=J(RS,[["render",jS]]),{create:WS,componentName:YS}=Y("collapse"),XS=WS({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(()=>({[YS]:!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 QS(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 ra=J(XS,[["render",QS]]),{create:GS,componentName:ZS}=Y("collapse-item"),JS=GS({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:te.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const o=t.ref(null),l=t.ref(null),n=t.inject("collapseParent"),a=t.reactive(n),r=t.computed(()=>{const h=ZS;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:Xr,wrapperRef:o,contentRef:l,open:m,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:d}}}),_S={class:"fox-collapse-item__title-main"},e1={class:"fox-collapse-item__title-main-value"},t1=["innerHTML"],o1={key:2,class:"fox-collapse-item__title-label"},n1={key:0,class:"fox-collapse-item__title-sub"},l1=["innerHTML"],a1={key:0,class:"fox-collapse__item-extraWrapper"},r1={class:"fox-collapse__item-extraWrapper__extraRender"},s1={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function i1(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",_S,[t.createElementVNode("view",e1,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.title,class:"fox-collapse-item__title-mtitle"},null,8,t1)),e.label?(t.openBlock(),t.createElementBlock("view",o1,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",n1,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,l1)),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",a1,[t.createElementVNode("div",r1,[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",s1,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const sa=J(JS,[["render",i1]]),c1=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:u1,create:d1,scope:f1}=Y("table"),m1=d1({components:{RenderColumn:c1,DownArrow:te.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:o,slots:l}){const{t:n}=ae.useFoxI18n(f1),a=t.reactive({curData:e.data}),r=t.computed(()=>({[u1]:!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(g=>g.key===y)[0],m=y=>{const g=e.columns.filter(k=>k.key===y);return g[0].stylecolumn?g[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}}}),p1={class:"fox-table__main__head"},h1={class:"fox-table__main__head__tr"},g1=["onClick"],y1={class:"fox-table__main__body"},v1={key:1},k1={key:0,class:"fox-table__nodata"},b1={key:0,class:"fox-table__nodata__text"},S1={key:1,class:"fox-table__summary"},C1=["innerHTML"];function w1(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",p1,[t.createElementVNode("view",h1,[(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,g1))),128))])]),t.createElementVNode("view",y1,[(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",v1,t.toDisplayString(c[d]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",k1,[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",b1,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",S1,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,C1)])):t.createCommentVNode("",!0)],2)}const ia=J(m1,[["render",w1]]),{componentName:N1,create:B1}=Y("ellipsis"),V1=B1({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(()=>({[N1]:!0}));t.watch(()=>e.content,(k,v)=>{k!=v&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!l.value)return;const k=window.getComputedStyle(l.value);n=document.createElement("div"),Array.prototype.slice.apply(k).forEach(p=>{n.style.setProperty(p,k.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(k.lineHeight==="normal"?e.lineHeight:k.lineHeight);a=Math.floor(u*(Number(e.rows)+.5)+h(k.paddingTop)+h(k.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 k=e.content.length,v=Math.floor((0+k)/2),u=e.direction==="middle"?f([0,v],[v,k]):m(0,k);r.value=u,document.body.removeChild(n)}},m=(k,v)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(v-k<=1)return e.direction==="end"?{leading:e.content.slice(0,k)+e.symbol}:{tailing:e.symbol+e.content.slice(v,p)};const b=Math.round((k+v)/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,v):m(k,b):e.direction==="end"?m(k,b):m(b,v)},f=(k,v)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(k[1]-k[0]<=1&&v[1]-v[0]<=1)return{leading:e.content.slice(0,k[0])+e.symbol,tailing:e.symbol+e.content.slice(v[1],p)};const b=Math.floor((k[0]+k[1])/2),S=Math.ceil((v[0]+v[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,k[1]],[v[0],S]):f([k[0],b],[S,v[1]])},h=k=>{if(!k)return 0;const v=k.match(/^\d*(\.\d*)?/);return v?Number(v[0]):0},y=k=>{k==1?(s.expanded=!0,o("change","expand")):(s.expanded=!1,o("change","collapse"))},g=()=>{o("click")};return{...t.toRefs(s),root:l,ellipsis:r,classes:i,clickHandle:y,handleClick:g}}}),A1={key:0},$1={key:1},T1={key:2};function E1(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",A1,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",$1,[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",T1,[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 ca=J(V1,[["render",E1]]),{componentName:D1,create:x1}=Y("animate"),I1=x1({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,[`${D1}-${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}}}),q1={class:"fox-animate"};function M1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",q1,[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 ua=J(I1,[["render",M1]]),{componentName:z1,create:P1}=Y("watermark"),L1=P1({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:g,fontColor:k,fontSize:v,fontFamily:u}=e,p=()=>{const S=document.createElement("canvas"),N=window.devicePixelRatio,C=S.getContext("2d"),V=`${(a+s)*N}px`,B=`${(r+i)*N}px`,I=s*N,A=i*N;if(S.setAttribute("width",V),S.setAttribute("height",B),C){if(d){C.translate(I/2,A/2),C.rotate(Math.PI/180*Number(c));const w=new Image;w.crossOrigin="anonymous",w.referrerPolicy="no-referrer",w.src=d,w.onload=()=>{C.drawImage(w,-m*N/2,-f*N/2,m*N,f*N),C.restore(),l.base64Url=S.toDataURL()}}else if(h){C.textBaseline="middle",C.textAlign="center",C.translate(I/2,A/2),C.rotate(Math.PI/180*Number(c));const w=Number(v)*N;C.font=`${y} normal ${g} ${w}px/${A}px ${u}`,C.fillStyle=k,C.fillText(h,0,0),C.restore(),l.base64Url=S.toDataURL()}}else throw new Error("当前环境不支持Canvas")};p(),t.watch(()=>[n,a,r,s,i,c,d,m,f,h,y,g,k,v,u],()=>{p()});const b=t.computed(()=>{const S=z1;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...t.toRefs(l),classes:b}}});function F1(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 da=J(L1,[["render",F1]]);function R1(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:O1,create:K1}=Y("trend-arrow"),U1=K1({components:{TriangleUp:te.TriangleUp,TriangleDown:te.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const o=t.reactive({rateTrend:e.rate>0}),l=t.computed(()=>({[O1]:!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?"+":"-":""}${R1(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 H1(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 fa=J(U1,[["render",H1]]),{create:j1}=Y("tour"),W1=j1({components:{[Xt.name]:Xt,Close:te.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit: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:g,left:k,top:v}=n.value,u=[k+y/2,v+g/2],p=Number(f||y),b=Number(h||g);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}}}),Y1={key:0,class:"fox-tour-content"},X1={key:0,class:"fox-tour-content-top"},Q1={class:"fox-tour-content-inner"},G1={class:"fox-tour-content-bottom"},Z1={class:"fox-tour-content-bottom-init"},J1={class:"fox-tour-content-bottom-operate"},_1={key:1,class:"fox-tour-content fox-tour-content-tile"},eC={class:"fox-tour-content-inner"};function tC(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",Y1,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",X1,[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",Q1,t.toDisplayString(c.content),1),t.createElementVNode("div",G1,[t.createElementVNode("div",Z1,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",J1,[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",_1,[t.createElementVNode("div",eC,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const ma=J(W1,[["render",tC]]),{componentName:d2,create:oC,scope:nC}=Y("address"),lC=oC({components:{Location:te.Location,Location2:te.Location2,Check:te.Check,Close:te.Close,Left:te.Left,[ie.name]:ie,[Ot.name]:Ot},inheritAttrs:!1,props:{...ze,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}=ae.useFoxI18n(nC),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=x=>{if(!Array.isArray(x))throw new TypeError("params muse be array.");if(!x.length)return[];x.forEach(D=>{if(!D.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const U=[];return x=x.sort((D,W)=>D.title.localeCompare(W.title)),x.forEach(D=>{const W=U.findIndex(H=>H.title===D.title);W<=-1?U.push({title:D.title,list:[].concat(D)}):U[W].list.push(D)}),U};let g=t.ref([]),k=t.reactive({});const v=t.ref("self"),u=t.ref(20),p=()=>{const x=e.modelValue,U=x.length;if(U>0){if(i.value=U-1,h.value.length==0){i.value=0;return}for(let D=0;D<U;D++){let W=[];switch(D){case 0:W=e.province;break;case 1:W=e.city;break;case 2:W=e.country;break;default:W=e.town}g.value[D]=W.filter(H=>H.id==x[D])[0]}S()}},b=(x,U)=>x&&x.name||i.value<U&&x?x.name:e.columnsPlaceholder[U]||l("select"),S=()=>{V(),t.nextTick(()=>{const x=a.value&&a.value.getElementsByClassName("active")[0];if(x){const U=x.offsetLeft;u.value=U||20}})},N=x=>{const U=i.value;c.value=i.value;const D={custom:d.value[U]};g.value[U]=x;for(let W=U+2;W<4;W++)g.value.splice(W,1);U<3?(i.value=U+1,S(),D.next=d.value[i.value],D.value=x,o("change",D)):(A(),o("update:modelValue"))},C=(x,U)=>{c.value=i.value,b(x,U)&&(i.value=U,S())},V=()=>{const x=m.value,U=c.value,D=f.value[i.value];x?.scrollTop&&(f.value[U]=x?.scrollTop),t.nextTick(()=>{x?.scrollTo({top:D,behavior:"auto"})})},B=x=>{const U=e.existAddress;let D={};U.forEach(W=>{W&&W.selectedAddress&&(D=W),W.selectedAddress=!1}),x.selectedAddress=!0,k=x,o("selected",D,x,U),A()},I=()=>{g.value=[],i.value=0,S()},A=(x="self")=>{v.value=x=="cross"?"cross":"self",r.value=!1},w=()=>{v.value="mask"},P=()=>{const x={addressIdStr:"",addressStr:"",province:g.value[0],city:g.value[1],country:g.value[2],town:g.value[3]},U={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(D=>{const W=g.value[D];x.addressIdStr+=`${D?"_":""}${W&&W.id||0}`,x.addressStr+=W&&W.name||""}),U.data=x):U.data=k,I(),v.value=="self"?o("close",U):o("close-mask",{closeWay:v}),o("update:visible",!1)},F=()=>{const x=s.value;s.value=x=="exist"?"custom":"exist",I(),o("switch-module",{type:s.value})},E=(x,U)=>{N(U)};return t.watch(()=>e.visible,x=>{r.value=x}),t.watch(()=>r.value,x=>{x&&p()}),{showPopup:r,privateType:s,tabIndex:i,tabName:d,selectedRegion:g,switchModule:F,closeWay:v,close:P,getTabName:b,nextAreaList:N,regionLine:n,tabRegion:a,lineDistance:u,changeRegionTab:C,selectedExist:B,clickOverlay:w,handClose:A,handleElevatorItem:E,initCustomSelected:p,...t.toRefs(e),t:l,regionList:h,transformData:y,scrollDom:m}}}),aC={class:"fox-address"},rC={class:"fox-address__header"},sC={class:"fox-address__header__title"},iC={key:0,class:"fox-address__custom"},cC={class:"fox-address__region",ref:"tabRegion"},uC=["onClick"],dC={key:0,class:"active fox-address__region-item"},fC={key:0,class:"fox-address__detail"},mC={class:"fox-address__detail-list",ref:"scrollDom"},pC=["onClick"],hC={key:1,class:"fox-address__elevator-group"},gC={key:1,class:"fox-address__exist"},yC={class:"fox-address__exist-group"},vC={class:"fox-address__exist-group-list"},kC=["onClick"],bC={class:"fox-address__exist-item-info"},SC={key:0,class:"fox-address__exist-item-info-name"},CC={key:1,class:"fox-address__exist-item-info-phone"},wC={class:"fox-address__exist-item-info-bottom"},NC={class:"fox-address__exist-choose-btn"};function BC(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",aC,[t.createElementVNode("view",rC,[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",sC,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",iC,[t.createElementVNode("view",cC,[(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:g=>e.changeRegionTab(h,y)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,y)),1)],10,uC))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",dC,[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",fC,[t.createElementVNode("ul",mC,[(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:g=>e.nextAreaList(h)},[t.createElementVNode("div",null,[e.selectedRegion[e.tabIndex]?.id==h.id?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(h.name),1)])],10,pC))),128))],512)])):(t.openBlock(),t.createElementBlock("view",hC,[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",gC,[t.createElementVNode("div",yC,[t.createElementVNode("ul",vC,[(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:g=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(m,{class:"fox-address-select-icon",size:"13px"})]),h.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",bC,[h.name?(t.openBlock(),t.createElementBlock("div",SC,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",CC,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",wC,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,kC))),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",NC,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 pa=J(lC,[["render",BC]]),{componentName:VC,create:AC}=Y("barrage"),$C=AC({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(()=>({[VC]:!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"?(k(),m.value=0,g("hidden")):document.visibilityState==="visible"&&y()})}),t.onUnmounted(()=>{i.value=[],k()});const y=()=>{h.value=a.value.offsetWidth,l&&g("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${h.value}px`),u()},300)},g=b=>{let N=document.getElementsByClassName("slotBody"+o)?.[0]?.children||[];const C=[];N&&Array.from(N).forEach(V=>{b=="init"?(V.style.opacity="0",C.push(V)):(V.classList="",V.style={})}),b=="init"&&(i.value=C)},k=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,b=>{e.danmu.length>0&&(i.value=[...b])});const v=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=()=>{k(),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 N=S.offsetHeight;if(S?.classList?.add("move"),S.style.animationDuration=`${f}ms`,S.style.top=b%c.value*(N+d.value)+20+"px",S.style.opacity="1",!l){const C=S.offsetWidth;S.style.width=C+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 TC(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 ha=J($C,[["render",TC]]),{componentName:EC,create:DC,scope:xC}=Y("signature"),IC=DC({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:{[Ie.name]:Ie},emits:["start","end","signing","confirm","clear"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(xC),n=l(e,["unSupportTpl","reSign","confirmText"]),a=t.ref(null),r=t.ref(null),s=t.computed(()=>({[EC]:!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(),N=b.clientX-S.left,C=b.clientY-S.top;i.ctx.lineTo(N,C),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)},g=()=>{a.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),o("clear")},k=()=>{u(a.value)},v=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=v(p)?"请绘制签名":p,N=v(p)?"":b;o("confirm",S,N)};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:k,clear:g,classes:s}}}),qC={class:"fox-signature-inner",ref:"wrap"},MC=["height","width"],zC={key:0,class:"fox-signature-unsopport"};function PC(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",qC,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,MC),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",zC,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 ga=J(IC,[["render",PC]]),{componentName:LC,create:FC,scope:RC}=Y("time-select"),OC=FC({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}=ae.useFoxI18n(RC),n=t.computed(()=>({[LC]:!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}}}),KC={class:"fox-time-select__title"},UC={class:"fox-time-select__title__fixed"},HC={key:0},jC={class:"fox-time-select__content"},WC={class:"fox-time-select__content__pannel"},YC={class:"fox-time-select__content__detail"};function XC(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",KC,[t.createElementVNode("view",UC,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",HC,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",jC,[t.createElementVNode("view",WC,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",YC,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const ya=J(OC,[["render",XC]]),{componentName:QC,create:GC}=Y("time-pannel"),ZC=GC({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(()=>({[QC]:!0,"fox-time-pannel--curr":n.currentKey==e.pannelKey})),r=s=>{o.emit("change",s)};return{...t.toRefs(n),classes:a,handlePannel:r}}});function JC(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 va=J(ZC,[["render",JC]]),{componentName:_C,create:ew}=Y("time-detail"),tw=ew({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(()=>({[_C]:!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}}}),ow={class:"fox-time-detail__detail fox-time-detail__detail--moring"},nw={class:"fox-time-detail__detail__list"},lw=["onClick"];function aw(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",ow,[t.createElementVNode("view",nw,[(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,lw))),128))])])],2)}const ka=J(tw,[["render",aw]]),{componentName:f2,create:rw,scope:sw}=Y("sku-header"),iw=rw({props:{goods:{type:Object,default:{}}},emits:[],components:{[Xe.name]:Xe},setup(e,{emit:o,slots:l}){const{t:n}=ae.useFoxI18n(sw);return{getSlots:r=>l[r],t:n}}}),cw={class:"fox-sku-header"},uw=["src"],dw={class:"fox-sku-header-right"},fw={key:3,class:"fox-sku-header-right-extra"};function mw(e,o,l,n,a,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",cw,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,uw),t.createElementVNode("view",dw,[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",fw,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const pw=J(iw,[["render",mw]]),{componentName:m2,create:hw}=Y("sku-select"),gw=hw({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})}}}}),yw={class:"fox-sku-select"},vw={class:"fox-sku-select-item-title"},kw={class:"fox-sku-select-item-skus"},bw=["onClick"];function Sw(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",yw,[(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",vw,t.toDisplayString(s.name),1),t.createElementVNode("view",kw,[(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,bw))),128))])]))),128))])}const Cw=J(gw,[["render",Sw]]),{componentName:p2,create:ww}=Y("sku-stepper"),Nw=ww({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:{[Qe.name]:Qe},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&&lt(c)=="function"?c():""},changeStepper:c=>{l.value=c,o("changeStepper",c)}}}}),Bw={class:"fox-sku-stepper"},Vw={class:"fox-sku-stepper-title"},Aw=["innerHTML"],$w={class:"fox-sku-stepper-count"};function Tw(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",Bw,[t.createElementVNode("view",Vw,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,Aw),t.createElementVNode("view",$w,[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 Ew=J(Nw,[["render",Tw]]),{componentName:h2,create:Dw}=Y("sku-operate"),xw=Dw({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]}}}),Iw={key:0,class:"fox-sku-operate"},qw={key:0,class:"fox-sku-operate-desc"},Mw={key:1,class:"fox-sku-operate-btn"},zw=["onClick"];function Pw(e,o,l,n,a,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",Iw,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",qw,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",Mw,[(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,zw))),128))]))])):t.createCommentVNode("",!0)}const Lw=J(xw,[["render",Pw]]),{componentName:g2,create:Fw,scope:Rw}=Y("sku"),Ow=Fw({props:{...ze,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:pw,SkuSelect:Cw,SkuStepper:Ew,SkuOperate:Lw,[ie.name]:ie},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(Rw),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&&k()}),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)},y=v=>{o("click-btn-operate",{type:v,value:s.value})},g=v=>{v=="icon"&&o("click-close-icon"),v=="overlay"&&o("click-overlay"),v=="close"&&o("close"),r.value=!1},k=()=>{o("update:visible",!1)};return{showPopup:r,closePopup:g,selectSku:c,changeStepper:d,stepperOverLimit:h,clickBtnOperate:y,add:m,reduce:f,getSlots:i,...a}}}),Kw={class:"fox-sku"},Uw={class:"fox-sku-content"};function Hw(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",Kw,[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",Uw,[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 ba=J(Ow,[["render",Hw]]),{create:jw}=Y("card"),Ww=jw({components:{[Xe.name]:Xe,[Yt.name]:Yt},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:o,slots:l}){return{isHaveSlot:a=>l[a]}}}),Yw={class:"fox-card"},Xw={class:"fox-card__left"},Qw=["src"],Gw={class:"fox-card__right"},Zw={class:"fox-card__right__title"},Jw={key:0,class:"fox-card__right__price"},_w={class:"fox-card__right__other"},eN={class:"fox-card__right__shop"},tN={class:"fox-card__right__shop__name"};function oN(e,o,l,n,a,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",Yw,[t.createElementVNode("div",Xw,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,Qw)]),t.createElementVNode("div",Gw,[t.createElementVNode("div",Zw,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",Jw,[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",_w,[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",eN,[t.createElementVNode("div",tN,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Sa=J(Ww,[["render",oN]]),{create:nN,scope:lN}=Y("ecard"),aN=nN({components:{[Qe.name]:Qe},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}=ae.useFoxI18n(lN),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 g=h.target.value.replace(/[^\d]/g,"");r.value=g,a.value=g,Number(g)>e.cardAmountMax&&(r.value=e.cardAmountMax,a.value=e.cardAmountMax),Number(g)<e.cardAmountMin&&(r.value=e.cardAmountMin,a.value=e.cardAmountMin),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}}}),rN={class:"fox-ecard"},sN={class:"fox-ecard__title"},iN={class:"fox-ecard__list"},cN=["onClick"],uN={class:"fox-ecard__list__input--con"},dN=["placeholder"],fN={class:"fox-ecard__list__step"};function mN(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",rN,[t.createElementVNode("view",sN,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",iN,[(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,cN))),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",uN,[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,dN),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",fN,[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 Ca=J(aN,[["render",mN]]),{create:pN,scope:hN}=Y("address-list-item"),gN=pN({components:{Del:te.Del,Edit:te.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(hN);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}}}),yN={class:"fox-address-list-item__info"},vN={class:"fox-address-list-item__info-contact"},kN={class:"fox-address-list-item__info-contact-name"},bN={class:"fox-address-list-item__info-contact-tel"},SN={key:0,class:"fox-address-list-item__info-contact-default"},CN={class:"fox-address-list-item__info-handle"},wN={class:"fox-address-list-item__addr"};function NN(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",yN,[t.createElementVNode("div",vN,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",kN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",bN,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",SN,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",CN,[t.renderSlot(e.$slots,"content-icon",{},()=>[t.createVNode(s,{name:"del",class:"fox-address-list-item__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(i,{name:"edit",class:"fox-address-list-item__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",wN,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const vr=J(gN,[["render",NN]]),{create:BN}=Y("address-list-general"),VN=BN({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:vr,[Ie.name]:Ie,[Ht.name]:Ht},setup(e,{emit:o}){const l=()=>t.h(vr,{item:e.item,onDelIcon(N){s(N)},onEditIcon(N){i(N)},onClickItem(N){c(N)}});let n=null;const a=t.ref(!1),r=t.ref(!1),s=N=>{o("delIcon",N,e.item),N.stopPropagation()},i=N=>{o("editIcon",N,e.item),N.stopPropagation()},c=N=>{a.value||(o("clickItem",N,e.item),N.stopPropagation())},d=N=>{o("longDel",N,e.item),N.stopPropagation()},m=N=>{n=0,r.value=!0,o("longDown",N,e.item)};return{renderCompontent:l,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:d,holddownstart:N=>{n=setTimeout(()=>{m(N)},300)},holddownmove:()=>{clearTimeout(n)},holddownend:()=>{clearTimeout(n)},copyCLick:N=>{o("longCopy",N,e.item),N.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:N=>{o("longSet",N,e.item),N.stopPropagation()},maskClick:N=>{n!=0&&(r.value=!1),N.stopPropagation(),N.preventDefault()},swipeDelClick:N=>{o("swipeDel",N,e.item),N.stopPropagation()},swipestart:()=>{a.value=!1},swipemove:()=>{a.value=!0}}}}),AN={key:0,class:"fox-address-list-general"},$N={class:"fox-address-list-swipe"};function TN(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",$N,[(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",AN,[(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 EN=J(VN,[["render",TN]]),{componentName:DN,create:xN,scope:IN}=Y("address-list"),qN=xN({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:EN,[Ie.name]:Ie},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(IN),n=t.ref([]),a=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[DN]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(n.value=e.data.map(k=>Mr(a,k,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(k,v)=>{o("delIcon",k,v),k.stopPropagation()},c=(k,v)=>{o("editIcon",k,v),k.stopPropagation()},d=(k,v)=>{o("clickItem",k,v),k.stopPropagation()},m=(k,v)=>{o("longCopy",k,v),k.stopPropagation()},f=(k,v)=>{o("longSet",k,v),k.stopPropagation()},h=(k,v)=>{o("longDel",k,v),k.stopPropagation()},y=(k,v)=>{o("swipeDel",k,v),k.stopPropagation()},g=k=>{o("add",k),k.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:d,clickLongCopy:m,clickLongSet:f,clickLongDel:h,clickSwipeDel:y,addAddress:g,dataArray:n,t:l}}});function MN(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 wa=J(qN,[["render",MN]]),{componentName:y2,create:zN}=Y("category"),PN=zN({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}}}),LN={class:"fox-category"},FN={class:"fox-category__cateList"},RN={key:0},ON=["onClick"];function KN(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",LN,[t.createElementVNode("div",FN,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",RN,[(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,ON)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Na=J(PN,[["render",KN]]),{componentName:v2,create:UN}=Y("category-pane"),HN=UN({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:o}){return{onChange:n=>{o("onChange",n)}}}}),jN={class:"fox-category-pane"},WN={key:0,class:"fox-category-pane__cateListRight"},YN={class:"fox-category-pane__childTitle"},XN={key:0,class:"fox-category-pane__childItemList"},QN=["onClick"],GN=["src"],ZN={class:"fox-category-pane__skuImg"},JN={key:1,class:"fox-category-pane__cateListRight"},_N={class:"fox-category-pane__childTitle"},eB={key:0,class:"fox-category-pane__childItemList"},tB=["onClick"],oB={class:"fox-category-pane__skuName"},nB={key:2,class:"fox-category-pane__selfItemList"},lB=["onClick"];function aB(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",jN,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",WN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",YN,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",XN,[(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,GN),t.createElementVNode("div",ZN,t.toDisplayString(c?.catName),1)],8,QN))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",JN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",_N,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",eB,[(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",oB,t.toDisplayString(c?.catName),1)],8,tB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",nB,[(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,lB))),128))])):t.createCommentVNode("",!0)])}const Ba=J(HN,[["render",aB]]),{componentName:k2,create:rB}=Y("comment-header"),sB=rB({components:{[vt.name]:vt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:o}){return{handleClick:()=>{o("handleClick")}}}}),iB={class:"fox-comment-header__user"},cB={class:"fox-comment-header__user-avter"},uB=["src"],dB={class:"fox-comment-header__user-score"},fB={key:0,class:"fox-comment-header__time"};function mB(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",iB,[t.createElementVNode("view",cB,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,uB)):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",dB,[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",fB,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 pB=J(sB,[["render",mB]]),{componentName:b2,create:hB}=Y("comment-images"),gB=hB({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:te.Right},emits:["click","clickImages"],setup(e,{emit:o}){const l=t.ref(!1),n=t.ref(1),a=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),a.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),a.value=e.videos.concat(e.images)}),{isShowImage:l,initIndex:n,showImages:(s,i)=>{const{videos:c,images:d}=e,m=s=="img"?i-c.length:i;o("clickImages",{type:s,index:m,value:s=="img"?d[m]:c[m]})},totalImages:a}}}),yB=["onClick"],vB=["src"],kB=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),bB=["onClick"],SB=["src"],CB={key:0,class:"fox-comment-images__mask"};function wB(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,vB),kB],8,yB))),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,SB),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",CB,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,bB)):t.createCommentVNode("",!0)],64))),128))],2)}const NB=J(gB,[["render",wB]]),{componentName:S2,create:BB,scope:VB}=Y("comment-bottom"),AB=BB({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:te.Fabulous,Comment:te.Comment,MoreX:te.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(VB),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}}}),$B={class:"fox-comment-bottom"},TB={key:0},EB={class:"fox-comment-bottom__cpx"},DB=["onClick"];function xB(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",$B,[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",TB,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",EB,[(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,DB))),128))])])}const IB=J(AB,[["render",xB]]),{componentName:qB,create:MB,scope:zB}=Y("comment"),PB=MB({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:pB,CommentImages:NB,CommentBottom:IB,Right:te.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(zB),n=t.computed(()=>({[qB]:!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}}}),LB=["innerHTML"],FB={class:"fox-comment__follow-title"},RB={class:"fox-comment__follow-com"},OB={key:0,class:"fox-comment__follow-img"};function KB(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,LB),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",FB,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",RB,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",OB,[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 Va=J(PB,[["render",KB]]),UB=[Ln,Rn,On,Kn,Un,be,Hn,jn,Wn,Yn,Xn,xo,Qn,Gn,Jn,_n,zo,Po,el,Lo,Fo,tl,ol,ot,nl,ll,Uo,al,rl,sl,il,cl,ul,dl,tt,fl,ml,pl,hl,gl,Ie,yl,vl,at,ie,kl,bl,Sl,Cl,zt,wl,Nl,Bl,Vl,Al,$l,Tl,El,Dl,Ot,xl,Pt,Lt,Il,ql,Ml,zl,Kt,Ko,Io,Mo,qo,Qe,vt,yt,Pl,Ll,Fl,Ht,Rl,Ol,Kl,jt,Oo,Ul,jl,Ro,Ct,Yl,Xl,Wt,Ql,Gl,Ut,Zl,Jl,_l,kt,ea,ta,bt,St,Xe,Ho,oa,na,la,Yt,Xt,aa,ra,sa,ia,ca,ua,da,fa,ma,pa,ha,ga,ya,va,ka,ba,Sa,Ca,wa,Na,Ba,Va],HB=new ii(UB,"4.0.0");exports.ActionSheet=Rl;exports.ActionsheetItem=al;exports.ActionsheetPane=Uo;exports.Address=pa;exports.AddressList=wa;exports.Animate=ua;exports.Audio=Yl;exports.AudioOperate=Xl;exports.Avatar=Wt;exports.AvatarGroup=Ql;exports.BackTop=Ol;exports.Badge=la;exports.Barrage=ha;exports.Broadcast=Mn;exports.BroadcastKey=ke;exports.Button=Ie;exports.Calendar=Mo;exports.CalendarItem=_n;exports.Card=Sa;exports.Cascader=Io;exports.CascaderItem=Gn;exports.Category=Na;exports.CategoryPane=Ba;exports.Cell=yl;exports.CellGroup=vl;exports.Checkbox=Lo;exports.CheckboxGroup=Fo;exports.CheckboxItem=tl;exports.CircleProgress=Zl;exports.Col=Sl;exports.Collapse=ra;exports.CollapseItem=sa;exports.Comment=Va;exports.Content=Kn;exports.CountDown=na;exports.CountUp=oa;exports.DataItemsKey=ut;exports.DateItem=Jn;exports.DatePicker=qo;exports.DateUtils=ne;exports.Dialog=jt;exports.Divider=wl;exports.Domain=bo;exports.DomainKey=De;exports.DomainProvider=hl;exports.Drag=Kl;exports.Ecard=Ca;exports.Elevator=Ot;exports.Ellipsis=ca;exports.Empty=_l;exports.FixedNav=Al;exports.FloatingButton=dl;exports.FooterBar=On;exports.FoxActionSheet=Rl;exports.FoxActionsheetItem=al;exports.FoxActionsheetPane=Uo;exports.FoxAddress=pa;exports.FoxAddressList=wa;exports.FoxAnimate=ua;exports.FoxAudio=Yl;exports.FoxAudioOperate=Xl;exports.FoxAvatar=Wt;exports.FoxAvatarGroup=Ql;exports.FoxBackTop=Ol;exports.FoxBadge=la;exports.FoxBarrage=ha;exports.FoxButton=Ie;exports.FoxCalendar=Mo;exports.FoxCalendarItem=_n;exports.FoxCard=Sa;exports.FoxCascader=Io;exports.FoxCascaderItem=Gn;exports.FoxCategory=Na;exports.FoxCategoryPane=Ba;exports.FoxCell=yl;exports.FoxCellGroup=vl;exports.FoxCheckbox=Lo;exports.FoxCheckboxGroup=Fo;exports.FoxCheckboxItem=tl;exports.FoxCircleProgress=Zl;exports.FoxCol=Sl;exports.FoxCollapse=ra;exports.FoxCollapseItem=sa;exports.FoxComment=Va;exports.FoxContent=Kn;exports.FoxCountDown=na;exports.FoxCountUp=oa;exports.FoxDateItem=Jn;exports.FoxDatePicker=qo;exports.FoxDialog=jt;exports.FoxDivider=wl;exports.FoxDomainProvider=hl;exports.FoxDrag=Kl;exports.FoxEcard=Ca;exports.FoxElevator=Ot;exports.FoxEllipsis=ca;exports.FoxEmpty=_l;exports.FoxFixedNav=Al;exports.FoxFloatingButton=dl;exports.FoxFooterBar=On;exports.FoxGrid=Nl;exports.FoxGridItem=Bl;exports.FoxGroup=Un;exports.FoxHeaderBar=Rn;exports.FoxHintText=ot;exports.FoxImage=kl;exports.FoxImagePreview=Ho;exports.FoxIndicator=Il;exports.FoxInfiniteLoading=Oo;exports.FoxInputItem=Wn;exports.FoxInputNumber=Qe;exports.FoxInputnumberItem=rl;exports.FoxItem=be;exports.FoxLayout=bl;exports.FoxLinkItem=nl;exports.FoxList=Gl;exports.FoxMapping=pl;exports.FoxMenu=$l;exports.FoxMenuItem=Tl;exports.FoxMessageBox=tt;exports.FoxMoneyItem=Yn;exports.FoxNavbar=Vl;exports.FoxNoticeBar=Jl;exports.FoxNotify=jl;exports.FoxNumberKeyboard=Fl;exports.FoxOverLay=at;exports.FoxPage=Ln;exports.FoxPagination=xl;exports.FoxPicker=yt;exports.FoxPickerItem=Qn;exports.FoxPopover=Xt;exports.FoxPopup=ie;exports.FoxPopupWrapper=fl;exports.FoxPrice=Xe;exports.FoxProgress=Ut;exports.FoxPullRefresh=Ul;exports.FoxRadio=zo;exports.FoxRadioGroup=Po;exports.FoxRadioItem=el;exports.FoxRange=Kt;exports.FoxRate=vt;exports.FoxRateItem=ll;exports.FoxRollingProvider=gl;exports.FoxRow=Cl;exports.FoxRowItem=Hn;exports.FoxSearchBar=Ko;exports.FoxShortPassword=Pl;exports.FoxSideNavBar=ql;exports.FoxSideNavBarItem=Ml;exports.FoxSignature=ga;exports.FoxSkeleton=aa;exports.FoxSku=ba;exports.FoxSlotItem=jn;exports.FoxStep=ta;exports.FoxSteps=ea;exports.FoxStepsBar=ul;exports.FoxSticky=zt;exports.FoxSubSideNavBar=zl;exports.FoxSwipe=Ht;exports.FoxSwiper=bt;exports.FoxSwiperItem=St;exports.FoxSwitch=Ro;exports.FoxSwitchItem=ol;exports.FoxTabPane=Lt;exports.FoxTabbar=El;exports.FoxTabbarItem=Dl;exports.FoxTable=ia;exports.FoxTabs=Pt;exports.FoxTabsBar=sl;exports.FoxTabsContainer=il;exports.FoxTabsPane=cl;exports.FoxTag=Yt;exports.FoxText=ml;exports.FoxTextarea=xo;exports.FoxTextareaItem=Xn;exports.FoxTimeDetail=ka;exports.FoxTimePannel=va;exports.FoxTimeSelect=ya;exports.FoxToast=Ct;exports.FoxTour=ma;exports.FoxTrendArrow=fa;exports.FoxUploader=Ll;exports.FoxVideo=kt;exports.FoxWaterMark=da;exports.Grid=Nl;exports.GridItem=Bl;exports.Group=Un;exports.HeaderBar=Rn;exports.HintText=ot;exports.Image=kl;exports.ImagePreview=Ho;exports.Indicator=Il;exports.InfiniteLoading=Oo;exports.InputItem=Wn;exports.InputNumber=Qe;exports.InputnumberItem=rl;exports.Item=be;exports.Layout=bl;exports.LinkItem=nl;exports.List=Gl;exports.Mapping=pl;exports.Menu=$l;exports.MenuItem=Tl;exports.MessageBox=tt;exports.MoneyItem=Yn;exports.Navbar=Vl;exports.NoticeBar=Jl;exports.Notify=jl;exports.NumberKeyboard=Fl;exports.OverLay=at;exports.Page=Ln;exports.Pagination=xl;exports.Picker=yt;exports.PickerItem=Qn;exports.Popover=Xt;exports.Popup=ie;exports.PopupWrapper=fl;exports.Price=Xe;exports.PriorityPolicy=co;exports.Progress=Ut;exports.PullRefresh=Ul;exports.Radio=zo;exports.RadioGroup=Po;exports.RadioItem=el;exports.Range=Kt;exports.Rate=vt;exports.RateItem=ll;exports.RollingProvider=gl;exports.Row=Cl;exports.RowItem=Hn;exports.SearchBar=Ko;exports.ShortPassword=Pl;exports.SideNavBar=ql;exports.SideNavBarItem=Ml;exports.Signature=ga;exports.Skeleton=aa;exports.Sku=ba;exports.SlotItem=jn;exports.Step=ta;exports.Steps=ea;exports.StepsBar=ul;exports.Sticky=zt;exports.SubSideNavBar=zl;exports.Swipe=Ht;exports.Swiper=bt;exports.SwiperItem=St;exports.Switch=Ro;exports.SwitchItem=ol;exports.TabPane=Lt;exports.Tabbar=El;exports.TabbarItem=Dl;exports.Table=ia;exports.Tabs=Pt;exports.TabsBar=sl;exports.TabsContainer=il;exports.TabsPane=cl;exports.Tag=Yt;exports.Text=ml;exports.Textarea=xo;exports.TextareaItem=Xn;exports.TimeDetail=ka;exports.TimePannel=va;exports.TimeSelect=ya;exports.Toast=Ct;exports.Tour=ma;exports.TrendArrow=fa;exports.UniqueID=Do;exports.Uploader=Ll;exports.ValidateSchema=Or;exports.ValidateSchemaKey=Re;exports.Video=kt;exports.WaterMark=da;exports.cancelRaf=kr;exports.clamp=Fe;exports.clearNonNumber=dn;exports.clone=un;exports.compareTo=sn;exports.createBroadcast=vo;exports.createValidateSchema=ko;exports.debounce=ht;exports.debounceRef=Js;exports.decimalLength=qr;exports.default=HB;exports.defineBroadcast=Us;exports.defineConfigDomain=Kr;exports.defineDataItem=Hr;exports.defineDomain=Pn;exports.defineItem=we;exports.definePageState=jr;exports.deleteGlobalValidator=Ys;exports.disabledProperty=Ce;exports.divide=xn;exports.excludeProps=In;exports.extend=nt;exports.floatData=Mr;exports.getGlobalValidateCheckEvents=Lr;exports.getGlobalValidateResetEvents=Rr;exports.getPageContentAreaHeight=so;exports.getPageContentAreaWidth=io;exports.getPageFooterAreaHeight=wo;exports.getPageHeaderAreaHeight=Co;exports.getRootDomain=mt;exports.getScrollTopRoot=qn;exports.hasSymbol=Ar;exports.includeProps=he;exports.indexOf=Os;exports.installRules=Ur;exports.integerLength=Ir;exports.isArray=ho;exports.isArrayLike=Tr;exports.isBrowser=st;exports.isDate=Oe;exports.isESModule=zs;exports.isEmptyString=ce;exports.isEqual=xe;exports.isFunction=ao;exports.isHidden=yo;exports.isInnerPage=ti;exports.isMap=Is;exports.isNil=Nr;exports.isNumberString=xr;exports.isObject=Be;exports.isPlainObject=cn;exports.isPromise=Mt;exports.isRegExp=Dr;exports.isSet=qs;exports.isString=Br;exports.isSubPage=oi;exports.isSymbol=Ms;exports.isWindow=$r;exports.lastIndexOf=Ks;exports.makeArray=Rs;exports.merge=Er;exports.multiply=Sr;exports.negate=Cr;exports.nextTick=Ls;exports.numberFormat=po;exports.objectToString=Vr;exports.once=_s;exports.padZero=Je;exports.preventDefault=fn;exports.property=Ne;exports.raf=Le;exports.readonlyProperty=Ae;exports.setGlobalValidateCheckEvents=Xs;exports.setGlobalValidateHandler=js;exports.setGlobalValidateMessages=Gs;exports.setGlobalValidateResetEvents=Qs;exports.setGlobalValidator=Ws;exports.throttle=ro;exports.toBoolean=me;exports.toNumber=fe;exports.toPadding=Me;exports.toPx=se;exports.toPxDesc=pe;exports.toTypeString=go;exports.toValue=Ee;exports.tryTimes=zn;exports.typeOf=lt;exports.unNumberFormat=wr;exports.updatePageState=mn;exports.useBroadcast=Et;exports.useDomain=Ke;exports.useExpose=$e;exports.useInnerSize=Fn;exports.usePageState=So;exports.usePosition=es;exports.useRect=Ve;exports.useSize=No;exports.useTouch=Ue;exports.valueLength=ge;