@fox-js/foxui 4.0.1-35 → 4.0.1-36
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 +4 -4
- package/dist/index.esm.js +3857 -3775
- package/dist/index.umd.js +4 -4
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +188 -184
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-base v4.0.0
|
|
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,
|
|
2
|
+
* @fox-js/foxui-base v4.0.0 Wed Mar 27 2024 09:38:52 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,Is=typeof window<"u";function qs(){return typeof Qt<"u"?Qt.requestAnimationFrame||Qt.webkitRequestAnimationFrame||function(e){Qt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Cr(e){Is?cancelAnimationFrame(e):clearTimeout(e)}const We=qs();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
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=Cr(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 Cr(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 Cr(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 Mt(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=Mt(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=Nt(e),o=Nt(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=Nt(e.replace(".","")),o=Nt(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=Nt(qs(m,r)),l==1&&(m="-"+m),m}function qs(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 Nt(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(Mt(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,Mt(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 Mt(o,l,n)}round(o=0,l=ye.HALF_EVEN){if(isNaN(o))throw Error("Precision is not a number: "+o);return new re(Mt(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 wr(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 Nr(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 Br(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",Pe=We;function Vr(e){return e==null}const ho=Array.isArray,Ms=e=>go(e)==="[object Map]",zs=e=>go(e)==="[object Set]",Oe=e=>e instanceof Date,ao=e=>typeof e=="function",Ar=e=>typeof e=="string",Ls=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",ht=e=>Be(e)&&ao(e.then)&&ao(e.catch),$r=Object.prototype.toString,go=e=>$r.call(e),cn=e=>go(e)==="[object Object]",Tr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ps(e){return e.__esModule||Tr&&e[Symbol.toStringTag]==="Module"}const Fs=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=Fs?Promise.resolve():null;function Rs(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 Os={"[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):Os[l]||"object"}function yo(e){if(!e)return!0;const{display:o}=window.getComputedStyle(e);return o==="none"}function Er(e){return e&&typeof e=="object"&&"setInterval"in e}function Dr(e){let o=!!e&&"length"in e&&e.length,l=lt(e);return l==="function"||Er(e)?!1:l==="array"||o===0||typeof o=="number"&&o>0&&o-1 in e}function xr(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 Ks(e,o=[]){let l=o;return e!=null&&(Dr(Object(e))?xr(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 Ir(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ie=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function qr(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 Mr(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 zr(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 Us(e,o){return typeof e=="object"||Array.isArray(e)?o.findIndex(l=>{if(xe(e,l))return!0}):o.indexOf(e)}function Hs(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 Lr=(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="*"):Ir(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 js(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 Dt(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 Ws{error(o,l){const n=l,a=Dt(l);a?a.emit({name:"*",maxLevel:1},"setErrorTip",o):typeof n.setErrorTip=="function"&&n.setErrorTip(o)}reset(o){const l=o,n=Dt(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(o){const l=o,n=Dt(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=Dt(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 Pr=new Ws;function Ys(e){Pr=e}function Xs(e,o){et(_e).setValidator(e,o)}function Qs(e){et(_e).deleteValidator(e)}let Fr=["blur","clear"];function Gs(e){Fr=e}function Rr(){return Fr}let Or=["focus","change"];function Zs(e){Or=e}function Kr(){return Or}function Js(e){et(_e).messages(e)}function Bt(...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 Ur{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(Bt(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=Bt(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=Pr;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=Bt(this.attrRules,this.rules);o===null?this.rules=[]:Array.isArray(o)?this.rules=Gt(o):this.rules=Gt([o]);const n=Bt(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=Bt(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 Ur(o,l,e)}const Ia=Symbol("EventEmitterKey");class _s{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 gt(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 ei(e,o){const l=gt((n,a)=>{e=n,a()},o);return t.customRef((n,a)=>({get(){return n(),e},set(r){l(r,a)}}))}function ti(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 oi=new bo;function mt(){return oi}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 Ln(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=Wr(c,C,{componentName:"",fieldName:C,pureDataValidate:!0},y,g);r[ut].set(C,B);const M=u[C];M&&B.validateSchema.setRule(M)});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 Hr(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 jr(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),jr(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 _s(a);a[Ia]=m;const f=gt((g="validate")=>{g==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Rr()).forEach(g=>{m.on(g,k=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Kr()).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 Wr(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 Yr(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 ni(e,o){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[o,e]):!1}function li(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 Xr=new Map,uo=new Map;let pn=null;function ai(e){pn=e}function Qr(e,o,l){if(l){let n=uo.get(l);n||(n=new Map,uo.set(l,n)),n.set(e,o)}else Xr.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=Xr.get(o)),n}function ri(e,o){for(let l in e){const n=e[l];Qr(l,n,o)}}function si(e){uo.delete(e)}function ii(){return{top:0,left:0,bottom:0,right:0}}function ci(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 ui{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({},ii(),o.safeAreaInset),s=ci(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){ai(o)}setAPI(o,l,n){Qr(o,l,n)}getAPI(o,l,n){return Ge(o,l,n)}batchSetAPI(o,l){ri(o,l)}clearScopeAPI(o){si(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 di=(e,o)=>{let l=document.body;const n=e.teleport||"body";n!="body"&&(Ar(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)}}},Gr=(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}},Zr={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}},Jr={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}},_r=[];for(const e in Jr)_r.push(e);function $e(e,o=null){if(o||(o=t.getCurrentInstance()),o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const fi=Symbol.for("InnerPageScopeKey"),mi=(e,o)=>({inheritAttrs:!0,props:{...ue,...Zr,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=Ln(l.name,l),r=t.inject(fi,!1);if(a){const m=Yr(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:pi,create:hi,scope:WB}=Y("page"),gi=hi(mi(pi));function yi(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 _=(e,o)=>{const l=e.__vccOpts||e;for(const[n,a]of o)l[n]=a;return l},Pn=_(gi,[["render",yi]]);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 vi=Symbol.for("InnerPageScopeKey"),ki=(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(vi,!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 z=Me(a.padding??i.headerPadding);return Object.assign(w,z),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+(z.top??0),w.height&&w.height>0&&(w.height=w.height+w.safeAreaTop)),w}if(h&&(w.height=h),a.padding){const z=Me(a.padding);Object.assign(w,z)}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 z=t.h("view",{class:"left-icon",onClick:b},[r.slots.leftIcon()]);w.push(z)}else if(a.leftIcon){const z=t.h("view",{class:"left-icon",onClick:b},[t.h(a.leftIcon)]);w.push(z)}if(a.leftText){const z=t.h("view",{class:"left-text",onClick:b},[a.leftText]);w.push(z)}}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 z=t.h("view",{class:"right-text",onClick:C},[a.rightText]);w.push(z)}if(r.slots.rightIcon){const z=t.h("view",{class:"right-icon",onClick:N},[r.slots.rightIcon()]);w.push(z)}else if(a.rightIcon){const z=t.h("view",{class:"right-icon",onClick:N},[t.h(a.rightIcon)]);w.push(z)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__right"},w)},M=()=>{if(!a.titleShow)return null;const w=[],z=r.slots.default?r.slots.default():null;if(z)w.push(z);else{if(a.title){const L=t.h("view",{class:"title-text"},[a.title]);w.push(L)}if(r.slots.titleIcon){const L=t.h("view",{class:"title-icon",onClick:S},[r.slots.titleIcon()]);w.push(L)}else if(a.titleIcon){const L=t.h("view",{class:"title-icon",onClick:S},[t.h(a.titleIcon)]);w.push(L)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__title"},w)},A=()=>{const w=[],z=r.slots.bottom?r.slots.bottom():null;return z&&w.push(z),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 L=[],E=V();E&&L.push(E);const x=M();x&&L.push(x);const U=B();if(U&&L.push(U),L.length>0){const W=t.h("view",{class:f.value},L);w.push(W)}const D=A();D&&w.push(D)}if(w.length===0)return null;const z={class:m.value,style:u.value,ref:g};return t.h("view",z,w)}}}),{componentName:bi,create:Si,scope:Ci}=Y("header-bar"),Rn=Si(ki(bi,Ci,te.Left,!1)),wi=Symbol.for("InnerPageScopeKey");function Ni(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(wi,!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:Bi,create:Vi,scope:Ai}=Y("footer-bar"),On=Vi(Ni(Bi,Ai,!1));function $i(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=gt(()=>{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:Ti,create:Ei,scope:YB}=Y("content"),Di=Ei($i(Ti));function xi(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=_(Di,[["render",xi]]),yt="GroupStateKey",es=Symbol.for("GroupScopeKey");function Bo(){return t.inject(es,!1)}function Vo(e=!0){t.provide(es,e)}function Ii(e,o={}){Reflect.ownKeys(o).forEach(n=>{if(typeof n!="string")return;const a=o[n];Vr(a)||(e[n]=a)})}function qi(e,o={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ii(n,o);const a=t.shallowRef(n),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(yt,r),r}function Go(e,o,l=-1,n=-1,a=!1,r,s,i){const c=e.get(yt);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(yt):l=e.get(yt),l.layout}function $o(e,o=!1){let l;return o?l=e.getForParent(yt):l=e.get(yt),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 ts=Symbol("RollingStateKey");function Mi(e){t.provide(ts,e)}function zi(){return t.inject(ts,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 Li(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 Pi(e,o,l){if(e<=0)return"1fr";const n=(e-(o-1)*l)/o;return n>0?`${n}px`:"1fr"}const Fi={...ue,...Zr,...Jr};function Ri(e,o,l){return{props:Fi,emits:["update:collapse"],setup(n,a){const r=Ln(n.name,n,_r),s=qi(r,{type:n.type}),i=Bo();Vo(!0);const c=n.rollingDisplay?zi():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,Q=!1)=>{const Z=h?.proxy;Z&&typeof Z.setNameValidateRules=="function"&&Z.setNameValidateRules(O,!0,Q)};t.watch([()=>n.rules,()=>n.pureDataRules],([O,Q],[Z,ee])=>{if(O&&Z){const J=t.toRaw(Z),oe=t.toRaw(O),le=oe?Reflect.ownKeys(oe):[];(J?Reflect.ownKeys(J):[]).forEach(ve=>{le.includes(ve)||(oe[ve]=[])}),y(oe)}if(Q&&ee){const J=t.toRaw(ee),oe=t.toRaw(Q),le=oe?Reflect.ownKeys(oe):[];(J?Reflect.ownKeys(J):[]).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 Q=i?$o(r,!0):null;if(f.value&&Q){if(f.value.type==="grid"){const Z=Eo(Q,f.value,n.span,n.offset);Object.assign(O,Z)}else if(f.value.type==="flow"){const Z=To(Q,f.value,n.span,n.offset,n.width);Object.assign(O,Z)}}}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 Q="";if(n.columnWidth)Q=`repeat(auto-fill, ${n.columnWidth})`;else{const Z=Pi(B.value,s.layout.value.column,s.layout.value.gutter);Q=`repeat(${s.layout.value.column}, ${Z})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":Q}}}),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),M=O=>{const Q=Fn(O).width;Q>0&&Q!==B.value&&(B.value=Q)};Go(r,B.value,b.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&t.watch([B,b,p],([O,Q,Z])=>{s.order.index=0,Go(r,O,Q,Z,!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})),z=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),L=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,Q=!0)=>{const Z=L.value;if(Z&&U.value!==O){if(H=H===-1?Li(Z):H,W.value=!0,Q)if(Z.style["will-change"]="height",Z.ontransitionend=function(){Z.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 K=()=>{P()},P=O=>{O=O??!U.value,G(O)};$e({toggleCollapse:P,doLayout:()=>{N[0]&&(M(N[0]),Go(r,B.value,b.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let q=null,T=!0;const R=O=>{if(n.rules){const Q=t.toRaw(n.rules);y(Q)}if(n.pureDataRules){const Q=t.toRaw(n.pureDataRules);y(Q,!0)}if(st&&(O&&G(me(n.collapse),!1),n.autoLayout&&Array.isArray(N)&&N.length>0)){const Q=N[0];M(Q),window.ResizeObserver&&(q=new window.ResizeObserver(()=>{M(Q)}),q.observe(Q))}},I=()=>{q?.disconnect(),q=null},F=!m.value||c?.acquire();F&&(d.value=m.value?!0:null),t.onMounted(()=>{if(F&&(R(T),T=!1),m.value&&c){let O=null,Q=c.initialHeight;c.observe(L.value,Z=>{if(Z!==d.value)if(Z)d.value=!0,U.value||(D.value=""),O=setTimeout(()=>{O=null,d.value!==!1&&(R(T),T=!1)},100);else{if(O!==null&&clearTimeout(O),d.value=!1,!U.value)if(T)D.value=c.initialHeight;else{let ee=hn(L.value);ee<=0?D.value=Q:(D.value=`${ee}px`,Q=D.value)}T||I()}})}}),t.onUnmounted(()=>{q?.disconnect(),c&&c.unobserve(L.value)});const j=(O="right")=>{const Q=[];if(A.value){const J={class:w.value},oe=t.h("span",J,[A.value]);Q.push(oe)}const Z={class:z.value},ee=l(n.collapseIcon,Z);return ee&&Q.push(ee),Q.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${O}`]:!0},onClick:K},Q):null},X=(O,Q,Z,ee)=>{const J={...v.value};return Q===0&&(J[`${g}__first`]=!0),Z>=ee-1&&(J[`${g}__last`]=!0),t.h("div",{ref:C,key:`${Q}`,class:J,style:u.value},O)};return()=>{if(m.value&&d.value!==!0){const J=n.tag||"div";return t.h(J,{ref:L,prop:n.name,class:{[`${g}`]:!0,"is-collapse":W.value},style:k.value},[])}s.order.index=0;const O=[];let Q=0;if(a.slots.header){const J={key:`${Q++}`,ref:E,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},oe=t.h("div",J,[a.slots.header()]);O.push(oe)}else{const J=[],oe=n.collapsePosition==="left";if(oe&&n.showCollapse){const le=j("left");le&&J.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);J.push(Te)}if(a.slots.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[a.slots.title()]);J.push(le)}else if(n.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);J.push(le)}}if(a.slots.toolbar&&J.push(a.slots.toolbar()),!oe&&n.showCollapse){const le=j("right");le&&J.push(le)}if(J.length>0){const le={key:`${Q++}`,ref:E,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},Te=t.h("div",le,J);O.push(Te)}}V();const Z=a.slots.default?a.slots.default():[],ee=s.layout.value.type;if(ee==="grid"){const J=X(Z,Q++,0,Z.length);O.push(J)}else if(ee==="flow"){const J=X(Z,Q++,0,Z.length);O.push(J)}else for(let J=0;J<Z.length;J++){const oe=Z[J],le=X([oe],Q++,J,Z.length);O.push(le)}if(S.value){const J=n.tag||"div";return t.h(J,{ref:L,prop:n.name,class:{[`${g}`]:!0,"is-collapse":W.value},style:k.value},[O])}else return O}}}}const{componentName:Oi,create:Ki,scope:Ui}=Y("group"),Hi=(e=te.RectUp,o={})=>t.h(e,o),Un=Ki(Ri(Oi,Ui,Hi));function ji(e){return e===window}const Wi=/matrix\((.+)\)/,os=e=>{const o=t.unref(e);if(!o)return{x:0,y:0};if(ji(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=Wi.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 Yi{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 Xi{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 Yi,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 Xi,ns={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Qi,create:Gi}=Y("price"),Zi=Gi({props:{...ns},setup(e){const o=t.computed(()=>({[Qi]:!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}}}),Ji=["innerHTML"],_i=["innerHTML"];function ec(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,Ji)):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,_i)):t.createCommentVNode("",!0)],2)}const Xe=_(Zi,[["render",ec]]),{componentName:Zo,create:tc}=Y("hint-text"),oc=tc({components:{Price:Xe},props:{...ns,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,z,L,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 K={top:null,right:null,bottom:null,left:null},P=[];for(let $=0;$<G.length;$++){const q=G[$];if(P[0]=q,H[1]&&(P[1]=H[1]),q==="top"){const T=z.y-U-e.arrowSize-e.offset;if(T>=0){K.top=T;let R=0;H[1]==="start"?R=z.x:H[1]==="end"?R=z.x+L-x:R=z.x+L/2-x/2;const I=D-R-x;I<0?(R+=I,f.value=-I):f.value=0,K.left=R<0?0:R;break}}else if(q==="bottom"){const T=z.y+E+e.arrowSize+e.offset;if(T+U<=W){K.top=T;let R=0;H[1]==="start"?R=z.x:H[1]==="end"?R=z.x+L-x:R=z.x+L/2-x/2;const I=D-R-x;I<0?(R+=I,f.value=-I):f.value=0,K.left=R<0?0:R;break}}else if(q==="left"){const T=z.x-x-e.arrowSize-e.offset;if(T>=0){K.left=T;let R=0;H[1]==="start"?R=z.y:H[1]==="end"?R=z.y+E-U:R=z.y+E/2-U/2,K.top=R<0?0:R;break}}else if(q==="right"){const T=z.x+L+e.arrowSize+e.offset;if(T+x<=D){K.left=T;let R=0;H[1]==="start"?R=z.y:H[1]==="end"?R=z.y+E-U:R=z.y+E/2-U/2,K.top=R<0?0:R;break}}}return{bestPlacement:P.join("-"),bestInsetRect:K}},m=(w,z,L=10)=>{if(!st||z===!1||!w)return;n.value=os(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=gt(()=>{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=gt(w=>{const z=w[0];z&&(k.value=z.isIntersecting)},10),u=new IntersectionObserver(v);t.watch([()=>e.message,()=>e.visible],([w,z])=>{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 z=document.documentElement.clientWidth||document.body.clientWidth;return w["max-width"]=`${z}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),M=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:M,onClickOverlay:()=>{y.value=!1,o.emit("update:visible",!1)}}}});function nc(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 ls=_(oc,[["render",nc]]);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={},lc=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()}},ac=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(ls,e);return t.render(n,o),e.id}},rc=e=>{e.unmount=fo;let o=e.id??`hinttext_${lc.get()}`;e={...gn,...e},e.id=o,pt.set(o,e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(ls,e);return t.render(n,l),document.body.appendChild(l),o},sc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},ot={show(e,o,l={},n=!0){sc(o);const a=l.id;return a&&pt.has(a)?ac({...l,message:o,reference:e}):(n&&fo(),rc({...l,message:o,reference:e}))},hide(e){fo(e)},install(e){e.config.globalProperties.$hintText=ot}},{componentName:za,create:ic}=Y("item"),cc=ic({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]=!!z.value,O[e.warnMarkClass]=!!A.value,O[e.infoMarkClass]=!!B.value,typeof i.value=="function"){const Q=i.value(l);O[Q]=!0}else if(typeof i.value=="string"){const Q=i.value;O[Q]=!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 Q=a&&n?$o(n,!1):null;if(r.value&&Q){if(r.value.type==="grid"){const Z=Eo(Q,r.value,e.span,e.offset);Object.assign(O,Z)}else if(r.value.type==="flow"){const Z=To(Q,r.value,e.span,e.offset,e.width);Object.assign(O,Z)}}}if(typeof d.value=="function"){const Q=d.value(l);Q&&Object.assign(O,Q)}else if(d.value&&typeof d.value=="object"){const Q=d.value;Object.assign(O,Q)}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),M=t.computed(()=>e.infoIcon||V.infoIcon),A=t.computed(()=>e.warnTip||V.warnTip),w=t.computed(()=>e.warnIcon||V.warnIcon),z=t.computed(()=>e.errorTip||V.errorTip),L=t.computed(()=>e.errorIcon||V.errorIcon),E=t.computed(()=>z.value?"error":A.value?"warn":B.value?"info":""),x=t.computed(()=>E.value.length>0),U=t.computed(()=>E.value==="error"?z.value:E.value==="warn"?A.value:E.value==="info"?B.value:""),D=t.computed(()=>E.value==="error"?L.value:E.value==="warn"?w.value:E.value==="info"?M.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},K=()=>{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},P=t.computed(()=>o.slots.fixedPreTip),$=t.computed(()=>({[`${s}__fixed-pre-tip`]:!0})),q=t.computed(()=>o.slots.fixedTip),T=t.computed(()=>({[`${s}__fixed-tip`]:!0})),R=t.ref();let I="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([O,Q,Z,ee])=>{R.value&&(O&&!ie(Q)?I?ot.show(R.value,Q,{...ee,id:I,type:Z},!0):I=ot.show(R.value,Q,{...ee,type:Z},!0):ot.hide(I))});let F=null;const j=()=>{F||!R.value||(F=new IntersectionObserver(O=>{let Q=!1;for(let Z of O)if(Z.intersectionRatio>0){Q=!0,Q&&o.emit("appear",Z);break}Q||o.emit("disappear")}),F.observe(R.value))},X=()=>{!F||!R.value||(F.unobserve(R.value),F=null)};return t.watch(()=>me(e.appearListen),O=>{O?j():X()}),t.onMounted(()=>{me(e.appearListen)&&j()}),t.onUnmounted(X),{classes:c,styles:m,mainClasses:v,hasLabel:y,labelClasses:u,labelStyles:b,labelStringClasses:S,contentClasses:N,contentStyles:C,contentRef:R,hasTip:x,mTip:U,mIcon:D,renderIcon:G,renderTip:K,tipClasses:W,tipStyles:H,hasFixedTip:q,fixedTipClasses:T,hasFixedPreTip:P,fixedPreTipClasses:$}}}),uc=["prop"];function dc(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,uc)}const be=_(cc,[["render",dc]]);function fc(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:mc,create:pc,scope:XB}=Y("row-item"),Hn=pc(fc(mc));function hc(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:gc,create:yc,scope:QB}=Y("slot-item"),jn=yc(hc(gc)),La={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 vc(e,o,l,n){return{props:{...ue,...de,...La},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,ie(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&&!L.value&&(x.display="none"),x}),B=t.computed(()=>ge(a.unit)>0),M=t.computed(()=>!L.value),A=t.computed(()=>({[`${y}__unit`]:!0,hidden:!M.value})),w=x=>{h.value="",c("update:modelValue","",x),c("change","",x),c("clear","")},z=t.computed(()=>me(a.clearable)&&!s.value&&!i.value),L=t.computed(()=>{let x=ge(h.value)>0;return me(a.clearable)&&x&&f.value}),E=t.computed(()=>({action:!0,hidden:!L.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(z.value){const T={class:["action-icon"]},R=t.h(n,T),I={class:E.value,onClick:w},F=t.h("view",I,{default:()=>[R]});W.push(F)}if(B.value){const T=t.h("view",{class:A.value},[a.unit]);W.push(T)}const H={class:C.value,style:V.value},G=t.h("view",H,{default:()=>W});U.push(G);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 $={...In(a,La),hintText:p.value,hintVisible:b.value};return t.h(l,$,K)}}}}const{componentName:kc,create:bc,scope:Sc}=Y("input-item"),Wn=bc(vc(kc,Sc,be,te.CircleClose));function Pa(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=wr(`${e}`,`${o}`);return Pa(n)}else{let n=xn(`${e}`,Nr(`${o}`),20);return Pa(n)}}function Cc(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=Br(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 wc(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,K])=>{if(ie(H)){f.value="";return}const P=Ra(H,G,K,!1);f.value!==P&&(f.value=P)},{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&&!ie(f.value)?H=Cc(f.value,a.decimalLength,a.autoPadding,a.digits,a.separator):H=ie(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 ie(H)&&(H=a.errorTip??""),H}),N=t.ref(""),C=t.ref(!1),V=H=>{let K=H.target.value;if(ie(K)){f.value="",m.value="",c("update:modelValue","",H),c("change","",H),me(a.showTip)&&C.value&&(C.value=!1);return}if(K.length>=2){let P=K;if(P.charAt(0)=="-"&&(P=P.substring(1)),P.length>=2&&P.charAt(0)=="0"&&P.charAt(1)!="."){t.triggerRef(f);return}}if(K!="-"){if(!qr(K)){t.triggerRef(f);return}if(a.integerLength!=-1&&Mr(K)>Number(a.integerLength)){t.triggerRef(f);return}if(a.decimalLength&&a.decimalLength!=-1&&zr(K)>Number(a.decimalLength)){t.triggerRef(f);return}let P=Oa(K,a);if(P.maxValid===!1){b.value=P.message,t.triggerRef(f);return}}else if(a.min!=null&&fe(a.min)>=0){t.triggerRef(f);return}N.value=K,me(a.showTip)&&(C.value=K.length>0),f.value=K,m.value=Ra(K,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;ie(G)&&(G=a.hintText),ie(G)||(N.value=G,C.value=!0)}b.value="",c("focus",m.value,H)},M=H=>{if(setTimeout(()=>{d.value=!1,me(a.showTip)&&C.value===!0&&(C.value=!1)},0),!ie(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&&!z.value&&!D.value&&(H.display="none"),H}),z=t.computed(()=>ge(a.unit)>0),L=t.computed(()=>!D.value),E=t.computed(()=>({[`${k}__unit`]:!0,hidden:!L.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:M},G=[],K=t.h("input",H);G.push(K);let P=[];if(U.value){const j={class:["action-icon"]},X=t.h(n,j),O={class:W.value,onClick:x},Q=t.h("view",O,{default:()=>[X]});P.push(Q)}if(z.value){const j=t.h("view",{class:E.value},[a.unit]);P.push(j)}const $={class:A.value,style:w.value},q=t.h("view",$,{default:()=>P});G.push(q);const T={default:()=>G};T.label=r.slots.default,T.prepend=r.slots.prepend,T.append=r.slots.append,T.fixedPreTip=r.slots.fixedPreTip,T.fixedTip=r.slots.fixedTip;let I={...In(a,Ka),errorTip:S.value,hintText:N.value,hintVisible:C.value,hintType:"number"};return t.h(l,I,T)}}}}const{componentName:Nc,create:Bc,scope:Vc}=Y("money-item"),Yn=Bc(wc(Nc,Vc,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:Ac,create:$c,scope:Tc}=Y("textarea"),Ec=$c({props:{...yn},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:o}){let{toLocaleRefs:l}=ae.useFoxI18n(Tc);const n=l(e,["placeholder"]),a=t.ref(),r=t.computed(()=>{const h=Ac;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})}}}}),Dc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],xc={key:0,class:"fox-textarea__limit"};function Ic(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,Dc),e.limitShow?(t.openBlock(),t.createElementBlock("view",xc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const xo=_(Ec,[["render",Ic]]);function qc(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=>{ie(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:Mc,create:zc,scope:Lc}=Y("textarea-item"),Xn=zc(qc(Mc,Lc,be,xo));function Pc(e){return e===window}const Ve=e=>{const o=t.unref(e);if(Pc(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:{}}},as=2e3;let Ua=as;const Fc=(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!==as&&(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 Vt=0;const Ha="fox-overflow-hidden",ja=()=>st?document.body:{classList:[]},Rc=e=>[()=>{if(e())try{!Vt&&ja().classList.add(Ha),Vt++}catch{}},()=>{if(e()&&Vt)try{Vt--,!Vt&&ja().classList.remove(Ha)}catch{}}],Oc={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:Kc,create:Uc}=Y("overlay"),Hc=Uc({props:{...Oc},emits:["click","update:visible"],setup(e,{emit:o}){const[l,n]=Rc(()=>e.lockScroll),a=t.computed(()=>({[Kc]:!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 jc(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=_(Hc,[["render",jc]]),{componentName:Wc,create:Yc}=Y("popup"),Xc=Yc(Fc(Wc,{FoxOverLay:at,Close:te.Close}));function Qc(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=_(Xc,[["render",Qc]]),Wa=10;function Gc(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=Gc(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 rs={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,...rs,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 ss=36;function Zc(){return ss}function Jc(e){ss=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 _c(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 eu=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 tu(){const e=t.getCurrentInstance();return new eu(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 ou(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 nu=15,lu=300,au=200,{create:ru}=Y("picker-column");function su(e){e.stopPropagation()}function iu(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&su(e)}const cu=ru({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},...rs},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,M=!1,A=!1)=>{if(f.currIndex=B,M){const w=()=>{f.moving=!1,o("update:modelValue",B),o("change",B)};A?f.transitionEndTrigger=w:w()}},p=(B,M,A)=>{let w=B+f.startDistance;if(M==="end"){const z=-(h.value.length-1)*e.itemHeight;w<z&&(w=z,(!A||A<=0)&&(A=e.swipeDuration)),w>0&&(w=0,(!A||A<=0)&&(A=e.swipeDuration));let L=Math.abs(Math.round(-w/e.itemHeight));const E=-L*e.itemHeight,x=`${(L+1)*f.rotation}deg`,U=A?A>0:!1;u(L,!0,U),b(E,M,A,x)}else{let z=(-w/e.itemHeight+1)*f.rotation;const L=(h.value.length+1)*f.rotation,E=0;if(z=Math.min(Math.max(z,E),L),e.threeDimensional&&(z<E||z>L))return;b(w,null,void 0,`${z}deg`)}},b=(B=0,M,A=au,w)=>{M==="end"?f.scrollTime=A:f.scrollTime=0,f.deg=w,f.scrollDistance=B},S=(B,M)=>(B=Math.abs(B/M)/.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,iu(B,!0)),p(k.deltaY.value,"",0))},V=()=>{if(e.readonly)return;const B=k.deltaY.value,M=k.duration.value;if(M<lu&&Math.abs(B)>nu){const w=S(B,M);p(w,"end",e.swipeDuration)}else p(B,"end",0)};return t.watch(()=>e.modelValue,B=>{if(f.currIndex!==B){f.currIndex=B;const M=-B*e.itemHeight;p(M)}}),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}}}),uu={key:1,class:"fox-picker__item-tile"};function du(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",uu,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Za=_(cu,[["render",du]]),{create:fu,componentName:mu,scope:pu}=Y("picker"),hu=fu({components:{[Za.name]:Za,[ce.name]:ce},props:{...vn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:o}){const{toLocaleRefs:l,t:n}=ae.useFoxI18n(pu),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Zc());t.watch(()=>e.visible,A=>{A&&s.value<=0&&setTimeout(()=>{if(r.value){const w=Ve(r.value);s.value=w.height,Jc(s.value)}},50)});const i=t.computed(()=>({[mu]:!0})),c=tu(),d=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([A,w])=>{if(A){let z=await c.load("picker",A,w);if(z.length>0){let L=z[0];if(Array.isArray(L)){if(typeof L[0]=="string"){let E=z,x=[];E.forEach(U=>{let D=U.map(W=>Ga(W));x.push(D)}),m.value=x}else m.value=z;d.value="multipleColumn"}else if(typeof L=="string"){let E=z,x=[],U=E.map(D=>Ga(D));x.push(U),m.value=x,d.value="singleColumn"}else{const E=kn(e,L);Array.isArray(E)?(d.value="cascade",m.value=[z]):(d.value="singleColumn",m.value=[z])}}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 z=ou(e,A,w,d.value);if(!xe(z,g.value)){g.value=z;let L=Qa(e,z,w,d.value);L&&(f.value=L.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 z=g.value;z[A]=w;for(let E=0;E<A;E++)z[E]==null&&(z[E]=v(E));if(d.value==="cascade")for(let E=A+1;E<S.value.length;E++){let x=v(E);E<z.length?z[E]=x:z.push(x)}else for(let E=z.length;E<S.value.length;E++){let x=v(E);z.push(x)}g.value=z;let L=Qa(e,z,m.value,d.value);L&&(f.value=L.texts,h.value=L.values,y.value=L.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,z=m.value[0],L=0;for(;;){let E=z.map(D=>{let W=Object.assign({},D);return _c(e,W,null),W});A.push(E),w>=g.value.length?L=0:L=g.value[w],(L<0||L>=z.length)&&(L=0);let x=z[L];const U=kn(e,x);if(!Array.isArray(U))break;z=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]:"",z=y.value.length>0?y.value[0]:null;e.readonly||(o("update:modelValue",w),o("update:text",f.value),o("change",w,z)),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)}}}}),gu={class:"fox-picker__bar"},yu={class:"fox-picker__title"},vu={class:"fox-picker__bar__action"},ku={class:"fox-picker__column"};function bu(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",gu,[t.createElementVNode("view",yu,t.toDisplayString(e.title),1),t.createElementVNode("view",vu,[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",ku,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":m=>e.change(d,m),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const vt=_(hu,[["render",bu]]);function Su(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 q={};return S.value&&(q["text-align"]=S.value),q}),C=t.ref(!1),V=()=>{C.value=!0},B=q=>{C.value=q},M=q=>{k.value=q,f("update:modelValue",q)},A=(q,T)=>{f("change",q,T)},w=q=>{let R=q.target.value;g.value=!0,f("focus",R,q)},z=q=>{setTimeout(()=>{g.value=!1},0);let R=q.target.value;i.maxLength&&R.length>Number(i.maxLength)&&(R=R.slice(0,Number(i.maxLength))),f("blur",R,q)},L=q=>{v.value=q,Array.isArray(q)&&q.length===0?f("update:text",q[0]):f("update:text",q)},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=q=>{k.value="",f("update:modelValue","",q),f("change","",q),f("clear","")},H=t.computed(()=>i.clearable&&!d.value&&!m.value),G=t.computed(()=>ge(k.value)>0&&g.value),K=q=>{G.value?W(q):V()},P=t.computed(()=>G.value&&H.value?n:a),$=t.computed(()=>({action:!0}));return()=>{const q={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:z};s&&(q.disabled=!0);const T=[],R=t.h("input",q);T.push(R);const I=[],F={class:["action-icon"]},j=t.h(P.value,F),X={class:$.value,onClick:K},O=t.h("view",X,{default:()=>[j]});if(I.push(O),x.value){const ve=t.h("view",{class:D.value},[i.unit]);I.push(ve)}const Q={class:E.value},Z=t.h("view",Q,{default:()=>I});T.push(Z);const ee={default:()=>T};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 J=he(i,vn);J.disabled=!1,J.readonly=d.value||m.value,J.visible=C.value,J["onUpdate:visible"]=B,J.modelValue=k.value,J["onUpdate:modelValue"]=M,J.text=v.value,J["onUpdate:text"]=L,J.onChange=A;const oe=t.h(r,J);ee.hide=()=>[oe];const le=he(i,de,ue);return t.h(l,le,ee)}}}}const{componentName:Cu,create:wu,scope:Nu}=Y("picker-item"),Qn=wu(Su(Cu,Nu,be,te.CircleClose,te.ArrowRight,vt,!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}),is=(e,o)=>{let l=0,n;for(;(n=e[l++])&&o(n)!==!0;)n.children&&n.children.length&&is(n.children,o)},Bu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Vu=(e,o)=>{const l={...Bu,...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},Au=/scroll|auto|overlay/i,cs=window;function $u(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function bn(e,o=cs){let l=e;for(;l&&l!==o&&$u(l);){const{overflowY:n}=window.getComputedStyle(l);if(Au.test(n))return l;l=l.parentNode}return o}function us(e,o=cs){const l=t.ref();return t.onMounted(()=>{e.value&&(l.value=bn(e.value,o))}),l}const{create:Tu}=Y("sticky"),Eu=Tu({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 Du(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=_(Eu,[["render",Du]]),xu=(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 Iu{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:qu}=Y("tabs"),Mu=qu({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,z)=>{let L=w.type;if(L=L.name||L,L=="fox-tab-pane"){let E=new Iu;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(z),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(z=>z.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,z=f.value;if(!w||!z||!z[i.value])return;const L=z[i.value];let E=0;e.direction==="vertical"?E=L.offsetTop-w.offsetTop+10-(w.offsetHeight-L.offsetHeight)/2:E=L.offsetLeft-(w.offsetWidth-L.offsetWidth)/2,y(w,E,A?0:.3,e.direction)},y=(A,w,z,L)=>{let E=0;const x=L==="horizontal"?A.scrollLeft:A.scrollTop,U=z===0?1:Math.round(z*1e3/16);function D(){L==="horizontal"?A.scrollLeft+=(w-x)/U:A.scrollTop+=(w-x)/U,++E<U&&Pe(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(),z=Math.ceil(w-e.top);window.scrollTo({top:z,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}=xu(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}}),M=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:M}}}),zu=["onClick"],Lu={key:0,class:"fox-tabs__titles-fixed-item"},Pu=["onClick"],Fu={key:0,class:"fox-tabs__titles-fixed-item"};function Ru(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,zu))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Lu,[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,Pu))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Fu,[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 Lt=_(Mu,[["render",Ru]]),{create:Ou}=Y("tab-pane"),Ku=Ou({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 Uu(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 Pt=_(Ku,[["render",Uu]]);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 is(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:Hu,scope:ju}=Y("cascader-pane"),Wu=Hu({components:{Loading:te.Loading,Checklist:te.Checklist,[Lt.name]:Lt,[Pt.name]:Pt},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=Vu(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(M=>M.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(ju),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}}}),Yu={role:"menu",class:"fox-cascader__pane"},Xu=["aria-checked","aria-disabled","onClick"],Qu={class:"fox-cascader__item__title"},Gu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Zu(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",Yu,[(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",Qu,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,Xu))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Gu]),_:1}))]),_:1},8,["modelValue","onClick"])}const Ju=_(Wu,[["render",Zu]]),{create:_u}=Y("cascader"),ed=_u({components:{FoxCascaderPane:Ju,FoxPopup:ce},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}}}),td=["innerHTML"];function od(e,o,l,n,a,r){const s=t.resolveComponent("FoxCascaderPane"),i=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":o[0]||(o[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,td)):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=_(ed,[["render",od]]);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 ds(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 fs(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=ds(e,o[s]);Array.isArray(m)&&fs(e,m,l,n+1,a);return}}function ms(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=ds(e,o[s]);Array.isArray(m)&&ms(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 nd=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 ld(){const e=t.getCurrentInstance();return new nd(e.proxy)}function ad(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=ld(),v=t.ref([]);t.watch([()=>i.source,()=>i.params],async([R,I])=>{R&&(v.value=await k.load(R,I))},{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([R])=>{if(i.lazy===!0){S.value.length==0&&(u.value=Array.isArray(R)?R:[],b.value=Array.isArray(R)?R:[]);return}if(i.valueType==="item"){let I=R;if(!Jo(i,I,S.value)){S.value=I;let F=Zt(i,I);u.value=F.texts,b.value=F.values}}else if(i.valueType==="text"){let I=R,F=[];if(fs(i,v.value,I,0,F),!Jo(i,F,S.value)){S.value=F;let j=Zt(i,F);I.value=j.texts,b.value=j.values}}else{let I=[];if(ms(i,v.value,R,0,I),!Jo(i,I,S.value)){S.value=I;let F=Zt(i,I);u.value=F.texts,b.value=F.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 R={};return V.value&&(R["text-align"]=V.value),R}),M=t.ref(!1),A=()=>{d.value===!0||m.value===!0||(M.value=!0)},w=R=>{M.value=R},z=(R,I)=>{let F=I.map(X=>{if(X==null)return X;let O={...X};return Reflect.deleteProperty(O,"text"),O[i.textKey]=X.text??"",Reflect.deleteProperty(O,"value"),O[i.valueKey]=X.value??"",O});S.value=F;let j=Zt(i,F);u.value=j.texts,b.value=j.values,i.valueType==="text"?(f("change",u.value,F),f("update:modelValue",u.value)):i.valueType==="item"?(f("change",F,F),f("update:modelValue",F)):(f("change",b.value,F),f("update:modelValue",b.value)),f("update:pathNodes",F)},L=R=>{let I=R.map(F=>{if(F==null)return F;let j={...F};return Reflect.deleteProperty(j,"text"),j[i.textKey]=F.text??"",Reflect.deleteProperty(j,"value"),j[i.valueKey]=F.value??"",j});f("pathChange",I)},E=R=>{g.value=!0,f("focus",b.value,R)},x=R=>{setTimeout(()=>{g.value=!1},0),f("blur",b.value,R)},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=R=>{S.value=[],u.value=[],b.value=[],f("update:modelValue",[]),f("change",[],R),f("clear",[]),f("update:pathNodes",[])},K=t.computed(()=>i.clearable&&!d.value&&!m.value),P=t.computed(()=>{let R=b.value&&b.value.length>0;return i.clearable&&R&&g.value}),$=R=>{P.value?G(R):A()},q=t.computed(()=>P.value&&K.value?n:a),T=t.computed(()=>({action:!0}));return()=>{const R={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&&(R.disabled=!0);const I=[],F=t.h("input",R);I.push(F);const j=[],X={class:["action-icon"]},O=t.h(q.value,X),Q={class:T.value,onClick:$},Z=t.h("view",Q,{default:()=>[O]});if(j.push(Z),D.value){const Ze=t.h("view",{class:H.value},[i.unit]);j.push(Ze)}const ee={class:U.value},J=t.h("view",ee,{default:()=>j});I.push(J);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=M.value,le["onUpdate:visible"]=w,le.modelValue=b.value,le.onChange=z,le.onPathChange=L,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:rd,create:sd,scope:id}=Y("cascader-item"),Gn=sd(ad(rd,id,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 ps={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(L,E,x){var U=String(L);return!U||U.length>=E?L:""+Array(E+1-U.length).join(x)+L},S={s:b,z:function(L){var E=-L.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 L(E,x){if(E.date()<x.date())return-L(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(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:f,y,w:m,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}},N="en",C={};C[N]=p;var V=function(L){return L instanceof w},B=function L(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 L(H[0])}else{var G=E.name;C[G]=E,D=G}return!U&&D&&(N=D),D||!U&&N},M=function(L,E){if(V(L))return L.clone();var x=typeof E=="object"?E:{};return x.date=L,x.args=arguments,new w(x)},A=S;A.l=B,A.i=V,A.w=function(L,E){return M(L,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var w=function(){function L(x){this.$L=B(x.locale,null,!0),this.parse(x)}var E=L.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,K=(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,K)):new Date(H[1],G,H[3]||1,H[4]||0,H[5]||0,H[6]||0,K)}}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=M(x);return this.startOf(U)<=D&&D<=this.endOf(U)},E.isAfter=function(x,U){return M(x)<this.startOf(U)},E.isBefore=function(x,U){return this.endOf(U)<M(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(F,j){var X=A.w(D.$u?Date.UTC(D.$y,j,F):new Date(D.$y,j,F),D);return W?X:X.endOf(d)},K=function(F,j){return A.w(D.toDate()[F].apply(D.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(j)),D)},P=this.$W,$=this.$M,q=this.$D,T="set"+(this.$u?"UTC":"");switch(H){case y:return W?G(1,0):G(31,11);case f:return W?G(1,$):G(0,$+1);case m:var R=this.$locale().weekStart||0,I=(P<R?P+7:P)-R;return G(W?q-I:q+(6-I),$);case d:case g:return K(T+"Hours",0);case c:return K(T+"Minutes",1);case i:return K(T+"Seconds",2);case s:return K(T+"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],K=W===d?this.$D+(U-this.$W):U;if(W===f||W===y){var P=this.clone().set(g,1);P.$d[G](K),P.init(),this.$d=P.set(g,Math.min(this.$D,P.daysInMonth())).$d}else G&&this.$d[G](K);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($){var q=M(W);return A.w(q.date(q.date()+Math.round($*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 K=(D={},D[i]=n,D[c]=a,D[s]=l,D)[H]||1,P=this.$d.getTime()+x*K;return A.w(P,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,K=this.$m,P=this.$M,$=D.weekdays,q=D.months,T=function(j,X,O,Q){return j&&(j[X]||j(U,W))||O[X].slice(0,Q)},R=function(j){return A.s(G%12||12,j,"0")},I=D.meridiem||function(j,X,O){var Q=j<12?"AM":"PM";return O?Q.toLowerCase():Q},F={YY:String(this.$y).slice(-2),YYYY:this.$y,M:P+1,MM:A.s(P+1,2,"0"),MMM:T(D.monthsShort,P,q,3),MMMM:T(q,P),D:this.$D,DD:A.s(this.$D,2,"0"),d:String(this.$W),dd:T(D.weekdaysMin,this.$W,$,2),ddd:T(D.weekdaysShort,this.$W,$,3),dddd:$[this.$W],H:String(G),HH:A.s(G,2,"0"),h:R(1),hh:R(2),a:I(G,K,!0),A:I(G,K,!1),m:String(K),mm:A.s(K,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,X){return X||F[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=M(x),K=(G.utcOffset()-this.utcOffset())*n,P=this-G,$=A.m(this,G);return $=(W={},W[y]=$/12,W[f]=$,W[h]=$/3,W[m]=(P-K)/6048e5,W[d]=(P-K)/864e5,W[c]=P/a,W[i]=P/n,W[s]=P/l,W)[H]||P,D?$:A.a($)},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()},L}(),z=w.prototype;return M.prototype=z,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",d],["$M",f],["$y",y],["$D",g]].forEach(function(L){z[L[1]]=function(E){return this.$g(E,L[0],L[1])}}),M.extend=function(L,E){return L.$i||(L(E,w,M),L.$i=!0),M},M.locale=B,M.isDayjs=V,M.unix=function(L){return M(1e3*L)},M.en=C[N],M.Ls=C,M.p={},M})})(ps);var cd=ps.exports;const Le=je(cd);var hs={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(M,A,w){var z=w&&w.toUpperCase();return A||u[w]||l[w]||u[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(L,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(M){for(var A={},w=0,z=0;w<b;w+=1){var L=p[w];if(typeof L=="string")z+=L.length;else{var E=L.regex,x=L.parser,U=M.slice(z),D=E.exec(U)[0];x.call(A,D),M=M.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 M=V[2]===!0,A=V[3]===!0,w=M||A,z=V[2];A&&(z=V[2]),i=this.$locale(),!M&&z&&(i=u.Ls[z]),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,K=H.month,P=H.day,$=H.hours,q=H.minutes,T=H.seconds,R=H.milliseconds,I=H.zone,F=new Date,j=P||(G||K?1:F.getDate()),X=G||F.getFullYear(),O=0;G&&!K||(O=K>0?K-1:F.getMonth());var Q=$||0,Z=q||0,ee=T||0,J=R||0;return I?new Date(Date.UTC(X,O,j,Q,Z,ee,J+60*I.offset*1e3)):W?new Date(Date.UTC(X,O,j,Q,Z,ee,J)):new Date(X,O,j,Q,Z,ee,J)}catch{return new Date("")}}(N,B,C),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),w&&N!=this.format(B)&&(this.$d=new Date("")),i={}}else if(B instanceof Array)for(var L=B.length,E=1;E<=L;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===L&&(this.$d=new Date(""))}else b.call(this,S)}}})})(hs);var ud=hs.exports;const dd=je(ud);var gs={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)}}})})(gs);var fd=gs.exports;const md=je(fd);var ys={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)}}})})(ys);var pd=ys.exports;const hd=je(pd);var vs={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)}}})})(vs);var gd=vs.exports;const yd=je(gd);var ks={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}}})})(ks);var vd=ks.exports;const kd=je(vd);var bs={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")}}})})(bs);var bd=bs.exports;const Sd=je(bd);var Ss={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)}}})})(Ss);var Cd=Ss.exports;const wd=je(Cd);var Cs={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)}}})})(Cs);var Nd=Cs.exports;const Bd=je(Nd);Le.extend(hd);Le.extend(md);Le.extend(dd);Le.extend(yd);Le.extend(kd);Le.extend(Sd);Le.extend(wd);Le.extend(Bd);const ne={format(e,o){return Le(e).format(o)},parser(e,o){return Le(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:Vd,scope:Ad}=Y("date-picker"),$d=Vd({components:{[vt.name]:vt},props:{...Cn},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(Ad),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 M=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`]:M}},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:M,minHour:A,minMinute:w,minSeconds:z}=s("min",h.value);let L=[{type:"year",range:[V,u]},{type:"month",range:[M,b]},{type:"day",range:[B,p]},{type:"hour",range:[A,S]},{type:"minute",range:[w,N]},{type:"seconds",range:[z,C]}];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,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 Td(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=_($d,[["render",Td]]);function Ed(e){let o=e.format;if(!o){let l=e.type??"date";o=Zn[l]}return o}function Dd(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",$=>$==null?null:typeof $=="string"?$.length==0?null:i.valueFormat?mo(i,$,i.valueFormat)??$:mo(i,$,Zn[i.type])??$:Oe($)?$:null),u=t.computed(()=>{if(!v.value)return"";const $=Ed(i);return Sn(i,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 $={};return S.value&&($["text-align"]=S.value),$}),C=t.ref(!1),V=()=>{C.value=!0},B=()=>{C.value=!1};c.expose({showPicker:V,hidePicker:B});const M=$=>{C.value=$},A=$=>{if(v.value=$,i.valueFormat){let q=Sn(i,$,i.valueFormat);f("update:modelValue",q,{}),f("change",q,{})}else f("update:modelValue",$,{}),f("change",$,{})},w=$=>{let T=$.target.value;g.value=!0,f("focus",T,$)},z=$=>{setTimeout(()=>{g.value=!1},0);let T=$.target.value;i.maxLength&&T.length>Number(i.maxLength)&&(T=T.slice(0,Number(i.maxLength))),f("blur",T,$)},L=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=$=>{v.value="",f("update:modelValue","",$),f("change","",$),f("clear",""),B()},W=t.computed(()=>i.clearable&&!d.value&&!m.value),H=t.computed(()=>{let $=ge(v.value)>0;return i.clearable&&$&&g.value}),G=$=>{H.value?D($):V()},K=t.computed(()=>H.value&&W.value?n:a),P=t.computed(()=>({action:!0}));return()=>{const $={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:z};s&&($.disabled=!0);const q=[],T=t.h("input",$);q.push(T);const R=[],I={class:["action-icon"]},F=t.h(K.value,I),j={class:P.value,onClick:G},X=t.h("view",j,{default:()=>[F]});if(R.push(X),E.value){const ve=t.h("view",{class:U.value},[i.unit]);R.push(ve)}const O={class:L.value},Q=t.h("view",O,{default:()=>R});q.push(Q);const Z={default:()=>q};Z.label=c.slots.default,Z.prepend=c.slots.prepend,Z.append=c.slots.append,Z.fixedPreTip=c.slots.fixedPreTip,Z.fixedTip=c.slots.fixedTip;const ee=he(i,Cn);ee.valueFormat=null,ee.disabled=!1,ee.readonly=d.value||m.value,ee.visible=C.value,ee["onUpdate:visible"]=M,ee.modelValue=v.value,ee["onUpdate:modelValue"]=A,ee.onClear=D;const J={};if(c.slots.top){const ve=c.slots.top();J.top=()=>ve}if(c.slots.bottom){const ve=c.slots.bottom();J.default=()=>ve}const oe=t.h(r,ee,J);Z.hide=()=>[oe];const le=he(i,de,ue);return t.h(l,le,Z)}}}}const{create:xd,componentName:Id,scope:qd}=Y("date-item"),Jn=xd(Dd(Id,qd,be,te.CircleClose,te.Date,qo,!1)),Md=39,zd=64,{create:Ld,scope:Pd}=Y("calendar-pane"),Fd=Ld({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(Pd),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=I=>I.split("-"),b=I=>ne.isEqual(u.currDate[0],I),S=I=>ne.isEqual(u.currDate[1],I),N=I=>u.currDate?.length>0?u.currDate?.some(F=>ne.isEqual(F,I)):!1,C=(I,F)=>F.curData[0]+"-"+F.curData[1]+"-"+ne.getNumTwoBit(+I.day),V=(I,F)=>{const j=C(I,F),{type:X}=e;return I.type=="curr"?ne.isEqual(u.currDate,j)||(X=="range"||X=="week")&&(b(j)||S(j))||X=="multiple"&&N(j)?`${u.dayPrefix}--active`:u.propStartDate&&ne.compareDate(j,u.propStartDate)||u.propEndDate&&ne.compareDate(u.propEndDate,j)?`${u.dayPrefix}--disabled`:(X=="range"||X=="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:I}=e;if(I=="range"&&u.chooseData.length==2||I!="range"){let F=u.chooseData.slice(0);I=="week"&&(F={weekDate:[A(u.chooseData[0]),A(u.chooseData[1])]}),o("choose",F),e.poppable&&o("update")}},M=(I,F,j=!1)=>{if(V(I,F)!=`${u.dayPrefix}--disabled`){const{type:X}=e;let[O,Q]=F.curData,Z=[...F.curData];if(Z[2]=ne.getNumTwoBit(Number(I.day)),Z[3]=`${Z[0]}-${Z[1]}-${Z[2]}`,Z[4]=ne.getWhatDay(+Z[0],+Z[1],+Z[2]),X=="multiple")if(u.currDate?.length>0){let ee;u.currDate?.forEach((J,oe)=>{J==Z[3]&&(ee=oe)}),j?u.chooseData.push([...Z]):ee!==void 0?(u.currDate.splice(ee,1),u.chooseData.splice(ee,1)):(u.currDate.push(Z[3]),u.chooseData.push([...Z]))}else u.currDate=[Z[3]],u.chooseData=[[...Z]];else if(X=="range"){let ee=Object.values(u.currDate).length;ee==2||ee==0?u.currDate=[Z[3]]:ne.compareDate(u.currDate[0],Z[3])?Array.isArray(u.currDate)&&u.currDate.push(Z[3]):Array.isArray(u.currDate)&&u.currDate.unshift(Z[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...Z]]:ne.compareDate(u.chooseData[0][3],Z[3])?u.chooseData=[...u.chooseData,[...Z]]:u.chooseData=[[...Z],...u.chooseData]}else if(X=="week"){let ee=ne.getWeekDate(O,Q,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=Z[3],u.chooseData=[...Z];if(!j){let ee=u.chooseData;X=="week"&&(ee={weekDate:[A(u.chooseData[0]),A(u.chooseData[1])]}),o("select",ee),(e.isAutoBackFill||!e.poppable)&&B()}}},A=I=>{let[F,j,X]=I;return{date:I,monthWeekNum:ne.getMonthWeek(F,j,X,e.firstDayOfWeek),yearWeekNum:ne.getYearWeek(F,j,X,e.firstDayOfWeek)}},w=I=>{const F=I=="prev"?u.monthsData[0]:u.monthsData[u.monthsData.length-1];let j=parseInt(F.curData[0]),X=parseInt(F.curData[1].toString().replace(/^0/,""));switch(I){case"prev":X==1&&(j-=1),X=X==1?12:--X;break;case"next":X==12&&(j+=1),X=X==12?1:++X;break}return[j+"",ne.getNumTwoBit(X),ne.getMonthDays(String(j),String(X))+""]},z=(I,F,j)=>{let{year:X,month:O}=j;return F=="prev"&&I>=7&&(I-=7),Array.from(Array(I),(Q,Z)=>({day:String(Z+1),type:F,year:X,month:O}))},L=(I,F,j,X)=>{I=I-e.firstDayOfWeek;let{year:O,month:Q}=j;return F=="prev"&&I>=7&&(I-=7),Array.from(Array(X),(ee,J)=>({day:String(J+1),type:F,year:O,month:Q})).slice(X-I)},E=(I,F)=>{const j=ne.getMonthPreDay(+I[0],+I[1]);let X=Number(I[1])-1,O=Number(I[0]);X<=0&&(X=12,O+=1);const Q=ne.getMonthDays(String(I[0]),String(I[1])),Z=ne.getMonthDays(O+"",X+""),ee={year:I[0],month:I[1]},J={curData:I,title:a("monthTitle",{year:ee.year,month:ee.month}),monthData:[...L(j,"prev",{month:String(X),year:String(O)},Z),...z(Q,"curr",ee)],cssHeight:0,cssScrollHeight:0},oe=J.monthData.length>35?6:5;J.cssHeight=Md+zd*oe;let le=0;u.monthsData.length>0&&(le=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),J.cssScrollHeight=le,F=="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(J):!u.startData||!ne.compareDate(`${I[0]}-${I[1]}-${I[2]}`,`${u.startData[0]}-${u.startData[1]}-01`)?u.monthsData.unshift(J):u.unLoadPrev=!0},x=()=>{let I=e.startDate?e.startDate:ne.getDay(0),F=e.endDate?e.endDate:ne.getDay(365);u.propStartDate=I,u.propEndDate=F,u.startData=p(I),u.endData=p(F),(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])},X={year:Number(u.endData[0]),month:Number(u.endData[1])};let O=X.month-j.month;X.year-j.year>0&&(O=O+12*(X.year-j.year)),O<=0&&(O=1),E(u.startData,"next");let Q=1;do E(w("next"),"next");while(Q++<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),F&&ne.compareDate(F,u.currDate[1])&&u.currDate.splice(1,1,F),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 Z=[],ee={};u.currDate.forEach(J=>{I&&!ne.compareDate(J,I)&&F&&!ne.compareDate(F,J)&&(Object.hasOwnProperty.call(ee,J)||(Z.push(J),ee[J]=J))}),u.currDate=[...Z],u.defaultData=[...p(Z[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[Z,ee,J]=p(u.currDate[0]),oe=ne.getWeekDate(Z,ee,J,e.firstDayOfWeek);u.currDate=oe,I&&ne.compareDate(u.currDate[0],I)&&u.currDate.splice(0,1,I),F&&ne.compareDate(F,u.currDate[1])&&u.currDate.splice(1,1,F),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]}}else u.currDate&&(I&&ne.compareDate(u.currDate,I)?u.currDate=I:F&&!ne.compareDate(u.currDate,F)&&(u.currDate=F),u.defaultData=[...p(u.currDate)])};$e({scrollToDate:I=>{ne.compareDate(I,u.propStartDate)?I=u.propStartDate:ne.compareDate(I,u.propEndDate)||(I=u.propEndDate);let F=p(I);u.monthsData.forEach((j,X)=>{if(j.title==a("monthTitle",{year:F[0],month:F[1]})&&c.value){let O=u.monthsData[X].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let Q=0,Z=setInterval(()=>{if(Q++,c.value){let ee=O/10;c.value.scrollTop=c.value.scrollTop+ee}Q>=10&&(clearInterval(Z),c.value&&(c.value.scrollTop=u.monthsData[X].cssScrollHeight))},40)}else c.value.scrollTop=u.monthsData[X].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)},doLayout:()=>{let I=0,F=0;u.defaultData.length>0&&u.monthsData.forEach((O,Q)=>{O.title==a("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(I=Q),(e.type=="range"||e.type=="week")&&O.title==a("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(F=Q)}),H(u.monthsNum,I),u.currentIndex=I,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(M({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),M({day:u.defaultData[5],type:"curr"},u.monthsData[F],!0)):e.type=="week"?M({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(O=>{let Q=p(O),Z=u.currentIndex;u.monthsData.forEach((ee,J)=>{ee.title==a("monthTitle",{year:Q[0],month:Q[1]})&&(Z=J)}),M({day:Q[2],type:"curr"},u.monthsData[Z],!0)}):M({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let j=u.monthsData[u.monthsData.length-1],X=j.cssHeight+j.cssScrollHeight;We(()=>{c?.value&&d?.value&&f?.value&&(h.value=c.value.clientHeight,d.value.style.height=`${X}px`,c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(X/(u.monthsNum+1))}});const H=(I,F)=>{I>=3?F>0&&F<I?u.defaultRange=[F-1,F+3]:F==0?u.defaultRange=[F,F+4]:F==I&&(u.defaultRange=[F-2,F+2]):u.defaultRange=[0,I+2];let j=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=j},G=(I,F)=>(e.type=="range"||e.type=="week")&&I.type=="curr"&&V(I,F)=="fox-calendar__day--active",K=(I,F)=>G(I,F)&&b(C(I,F)),P=(I,F)=>u.currDate.length>=2&&S(C(I,F))?G(I,F):!1,$=()=>{if(u.currDate.length>=2)return ne.isEqual(u.currDate[0],u.currDate[1])},q=I=>{const F=`${I.year}-${I.month}-${Number(I.day)<10?"0"+I.day:I.day}`;return ne.isEqual(F,ne.date2Str(new Date))},T=I=>{if(u.monthsData.length<=1)return;const F=I.target.scrollTop;let j=Math.floor(F/u.avgHeight);if(j==0)F>=u.monthsData[j+1].cssScrollHeight&&(j+=1);else if(j>0&&j<u.monthsNum-1)F>=u.monthsData[j+1].cssScrollHeight&&(j+=1),F<u.monthsData[j].cssScrollHeight&&(j-=1);else{const X=Math.round(F+h.value);X<u.monthsData[j].cssScrollHeight+u.monthsData[j].cssHeight&&F>u.monthsData[j-1].cssScrollHeight&&(j-=1),j+1<=u.monthsNum&&X>=u.monthsData[j+1].cssScrollHeight+u.monthsData[j+1].cssHeight&&(j+=1),j>=1&&F<u.monthsData[j-1].cssScrollHeight&&(j-=1)}u.currentIndex!==j&&(u.currentIndex=j,H(u.monthsNum,j)),u.yearMonthTitle=u.monthsData[j].title},R=()=>{u.chooseData.splice(0),u.monthsData.splice(0),x()};return x(),t.watch(()=>e.defaultValue,I=>{I&&e.poppable&&R()}),{weeks:i,compConthsData:y,showTopBtn:g,topInfo:k,bottomInfo:v,rangeTip:$,mothsViewScroll:T,getClass:V,isStartTip:K,isEndTip:P,chooseDay:M,isCurrDay:q,confirm:B,months:c,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:m,viewArea:f}}}),Rd={class:"fox-calendar__header"},Od={key:0,class:"fox-calendar__header-title"},Kd={key:1,class:"fox-calendar__header-slot"},Ud={key:2,class:"fox-calendar__header-subtitle"},Hd={class:"fox-calendar__weekdays",ref:"weeksPanel"},jd={class:"fox-calendar__panel",ref:"monthsPanel"},Wd={class:"fox-calendar__month-title"},Yd={class:"fox-calendar__days"},Xd=["onClick"],Qd={class:"fox-calendar__day-value"},Gd={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Zd={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Jd={key:2,class:"fox-calendar__day-tips--curr"},_d={key:4,class:"fox-calendar__day-tip"},ef={key:0,class:"fox-calendar__footer"};function tf(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",Rd,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Od,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Kd,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Ud,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Hd,[(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",jd,[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",Wd,t.toDisplayString(s.title),1),t.createElementVNode("view",Yd,[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",Qd,[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",Gd,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Zd,[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",Jd,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",_d,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,Xd))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",ef,[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=_(Fd,[["render",tf]]),of=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:nf}=Y("calendar"),lf=nf({components:{[er.name]:er,[ce.name]:ce},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 af(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=_(lf,[["render",af]]),_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 rf(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=(T,R="one",I="YYYY-MM-DD")=>{if(of(T)){u();return}if(k.value&&Array.isArray(T)&&T.length==2){let F,j;typeof T[0]=="string"?(F=_o(T[0],I),j=_o(T[1],I)):(F=T[0],j=T[1]);let X=ct(F),O=ct(j);(v.startDate===null||v.startDate.getTime()!==F.getTime()||v.endDate?.getTime()!==j.getTime())&&(v.startDate=F,v.startArray=X,v.endDate=j,v.endArray=O)}else{let F;typeof T=="string"?F=_o(T,I):F=T;let j=ct(F);(v.startDate===null||v.startDate.getTime()!==F.getTime())&&(v.startDate=F,v.startArray=j)}};p(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,T=>{p(T,i.type,i.valueFormat)});const b=t.computed(()=>{if(v.startDate===null)return"";if(k.value){let T=it(i,v.startDate,i.format),R=it(i,v.endDate,i.format);return`${T} ${i.rangeSeparator} ${R}`}else{let T=it(i,v.startDate,i.format);return i.showWeek&&(T=`${T} ${v.startArray[4]}`),T}}),S=t.computed(()=>{if(v.startDate===null)return null;if(k.value){let T=ne.date2Str(v.startDate),R=ne.date2Str(v.endDate??new Date);return[T,R]}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 T={};return V.value&&(T["text-align"]=V.value),T}),M=t.ref(!1),A=()=>{m.value||d.value||(M.value=!0)},w=T=>{M.value=T},z=T=>{if(T){if(k.value&&Array.isArray(T)){let R=T[0],I=fe(R[0]),F=fe(R[1]),j=fe(R[2]),X=new Date(I,F-1,j),O=T[1];I=fe(O[0]),F=fe(O[1]),j=fe(O[2]);let Q=new Date(I,F-1,j);if(v.startDate=X,v.startArray=ct(X),v.endDate=Q,v.endArray=ct(Q),i.valueFormat){let Z=it(i,X,i.valueFormat),ee=it(i,Q,i.valueFormat);f("update:modelValue",[Z,ee],{})}else f("update:modelValue",[X,Q],{})}else{let R=T,I=fe(R[0]),F=fe(R[1]),j=fe(R[2]),X=new Date(I,F-1,j);if(v.startDate=X,v.startArray=ct(X),i.valueFormat){let O=it(i,X,i.valueFormat);f("update:modelValue",O,{})}else f("update:modelValue",X,{})}f("change",T,{})}},L=T=>{let I=T.target.value;g.value=!0,f("focus",I,T)},E=T=>{setTimeout(()=>{g.value=!1},0);let I=T.target.value;i.maxLength&&I.length>Number(i.maxLength)&&(I=I.slice(0,Number(i.maxLength))),f("blur",I,T)},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=T=>{u(),f("update:modelValue",null,T),f("change","",T),f("clear","")},G=t.computed(()=>i.clearable&&!d.value&&!m.value),K=t.computed(()=>{let T=ge(b.value)>0;return i.clearable&&T&&g.value}),P=T=>{K.value?H(T):A()},$=t.computed(()=>K.value&&G.value?a:r),q=t.computed(()=>({action:!0}));return()=>{const T={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:L,onBlur:E};s&&(T.disabled=!0);const R=[],I=t.h("input",T);R.push(I);const F=[],j={class:["action-icon"]},X=t.h($.value,j),O={class:q.value,onClick:P},Q=t.h("view",O,{default:()=>[X]});if(F.push(Q),U.value){const Ze=t.h("view",{class:W.value},[i.unit]);F.push(Ze)}const Z={class:x.value},ee=t.h("view",Z,{default:()=>F});R.push(ee);const J={default:()=>R};J.label=c.slots.default,J.prepend=c.slots.prepend,J.append=c.slots.append,J.fixedPreTip=c.slots.fixedPreTip,J.fixedTip=c.slots.fixedTip;const oe=he(i,wn);oe.visible=M.value,oe["onUpdate:visible"]=w,oe["default-value"]=S.value,oe.onChoose=z;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);J.hide=()=>[Te];const ve=he(i,de,ue);return t.h(n,ve,J)}}}}const{componentName:sf,create:cf,scope:uf}=Y("calendar-item"),_n=cf(rf(sf,uf,Mo,be,{CloseIcon:te.CircleClose,MarkIcon:te.Date},!1)),df={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 ff(e,{CheckNormal:o,Checked:l}){return{props:{...df},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:mf,create:pf}=Y("radio"),zo=pf(ff(mf,{CheckNormal:te.CheckNormal,Checked:te.CheckChecked})),{componentName:tr,create:hf}=Y("radio-group"),Lo=hf({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(xt(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 xt(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function gf(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function yf(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let vf=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 kf(){const e=t.getCurrentInstance();return new vf(e.proxy)}function bf(e){return{text:e,value:e}}const nr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},Sf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}};function Cf(e,o,l,n,a){return{props:{...ue,...de,...nr,...Sf,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=kf(),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=>bf(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 xt(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=xt(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=xt(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=xt(r,S),V=gf(r,S);let B={...b,label:C,disabled:V};const M=yf(r,S,N);B={...B,...M},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 z=s.slots.text(S);A.default=()=>[z]}else{const z=eo(r,S);A.default=()=>z}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:wf,create:Nf,scope:Bf}=Y("radio-item"),el=Nf(Cf(wf,Bf,be,Lo,zo)),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,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:Af,create:$f}=Y("checkbox"),Po=$f(Vf(Af,{CheckNormal:te.CheckNormal,Checked:te.Checked,Indeterminate:te.CheckDisabled})),{create:Tf,componentName:lr}=Y("checkbox-group"),Fo=Tf({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 Ef(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function Df(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let xf=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 If(){const e=t.getCurrentInstance();return new xf(e.proxy)}function qf(e){return{text:e,value:e}}const Mf={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 zf(e,o,l,n,a){return{props:{...Mf,...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=If(),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=>qf(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=Ef(r,S);let B={...b,label:C,disabled:V};const M=Df(r,S,N);B={...B,...M},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 z=s.slots.text(S);A.default=()=>[z]}else{const z=Nn(r,S);A.default=()=>z}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:Lf,create:Pf,scope:Ff}=Y("checkbox-item"),tl=Pf(zf(Lf,Ff,be,Fo,Po)),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:Rf,create:Of}=Y("switch"),Kf=Of({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=Rf;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}}}),Uf={class:"fox-switch-button"};function Hf(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",Uf,[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=_(Kf,[["render",Hf]]);function jf(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:Wf,create:Yf,scope:Xf}=Y("switch-item"),ol=Yf(jf(Wf,Xf,be,Ro));function Qf(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&&ie(f.value)})),g=Ne(t.computed(()=>a.textAlign),"textAlign"),k=t.computed(()=>{const z={};return g.value&&(z["text-align"]=g.value),z}),v=t.computed(()=>!ie(a.modelValue)||r.slots.main?!0:!!ie(a.desc)),u=t.computed(()=>ie(f.value)?c.placeholder.value:f.value),p=t.computed(()=>!ie(a.desc)||r.slots.sub),b=t.computed(()=>({[`${e}__sub`]:!0})),S=t.computed(()=>{const z={};return g.value&&(z["text-align"]=g.value),z}),N=()=>{s("focus",f.value)},C=()=>{s("blur",f.value)},V=t.computed(()=>({[`${e}__append`]:!0})),B=t.computed(()=>ge(a.unit)>0),M=z=>{d.value==!0||m.value==!0||s("click")},A=t.computed(()=>a.icon??l),w=t.computed(()=>({action:!0}));return()=>{const z=[];if(typeof r.slots.content=="function"){const $=r.slots.content();z.push($)}else{const $=[];if(v.value){const R={tabIndex:0,class:y.value,style:k.value,onFocus:N,onBlur:C,onClick:M};let I=null;r.slots.main?I=t.h("view",R,[r.slots.main(u.value)]):I=t.h("view",R,[u.value]),$.push(I)}if(p.value){const R={tabIndex:0,class:b.value,style:S.value,onFocus:N,onBlur:C,onClick:M};let I=null;r.slots.sub?I=t.h("view",R,[r.slots.sub(a.desc)]):I=t.h("view",R,[a.desc]),$.push(I)}const q={class:h.value},T=t.h("view",q,$);z.push(T)}const L=[],E=se(a.iconSize);let x=r.slots.icon;if(!x){const $={width:E,height:E,class:["action-icon"]};x=t.h(A.value,$)}const U={class:w.value,onClick:M},D=t.h("view",U,{default:()=>[x]});if(L.push(D),B.value){const $=t.h("view",{},[a.unit]);L.push($)}const W={class:V.value},H=t.h("view",W,{default:()=>L});z.push(H);const G={default:()=>z};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 K=he(a,de,ue);return t.h(n,K,G)}}}}const{componentName:Gf,create:Zf,scope:Jf}=Y("link-item"),nl=Zf(Qf(Gf,Jf,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:_f,componentName:em}=Y("rate"),tm=_f({props:{...Vn},emits:["update:modelValue","change"],setup(e,{emit:o,slots:l}){const n=t.ref([]),a=t.computed(()=>({[em]:!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}}}),om=["id"],nm={class:"fox-rate-item__icon--full"},lm={key:0,class:"fox-rate-item__icon--half"},am={key:1,class:"fox-rate-item__icon--half"};function rm(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",nm,[(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",lm,[(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",am,[(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,om))),128))],34)}const kt=_(tm,[["render",rm]]);function sm(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:im,create:cm,scope:um}=Y("rate-item"),ll=cm(sm(im,um,be,kt)),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 dm(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(ws(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 ws(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function fm(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function mm(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let pm=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 hm(){const e=t.getCurrentInstance();return new pm(e.proxy)}const{componentName:gm,create:ym,scope:vm}=Y("infinite-loading"),km=ym({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(vm),a=n(e,["pullText","loadText","loadMoreText"]),r=t.ref(),s=us(r),i=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[gm]:!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}}}),bm={class:"fox-infinite__container"},Sm={class:"fox-infinite__bottom"},Cm={key:0,class:"fox-infinite__bottom-box"},wm={class:"fox-infinite__bottom-box__text"},Nm={class:"fox-infinite__bottom-tips"};function Bm(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",bm,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Sm,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",Cm,[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",wm,t.toDisplayString(e.loadText),1)])])):e.hasMore?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"finished",{key:1},()=>[t.createElementVNode("view",Nm,t.toDisplayString(e.loadMoreText),1)])])],2)}const Oo=_(km,[["render",Bm]]),{componentName:Vm,create:Am}=Y("button"),$m=Am({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=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`]: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}}}),Tm={class:"fox-button__wrap"};function Em(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",Tm,[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=_($m,[["render",Em]]),{create:Dm,scope:xm}=Y("searchbar"),Im=Dm({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(xm),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}}}),qm={key:0,class:"fox-searchbar__search-label"},Mm={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},zm=["type","maxlength","placeholder","value","disabled","readonly"],Lm={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-search-icon"},Pm={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function Fm(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",qm,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",Mm,[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,zm)],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",Lm,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],2)],6),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",Pm,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const Ko=_(Im,[["render",Fm]]);function Rm(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=hm(),d=t.ref([]),m=t.ref(0),f=t.ref(""),h=t.shallowRef(null),y=t.computed(()=>{const P={};return n.params&&Object.assign(P,n.params),ie(f.value)||(P[`${n.searchKey}`]=f.value),h.value&&Object.assign(P,h.value),P});let g=!0;const k=async(P,$,q)=>{try{if(u.value===!1)return;let T=null;ie(f.value)||(T=I=>{const F=oo(n,I);if(typeof F=="string"&&F.includes(f.value))return!0;const j=sr(n,I);return!!(typeof j=="string"&&j.includes(f.value))});const R=await c.load("actionsheet",P,$,q,y.value,g,T??void 0);g=!1,Array.isArray(R)?(d.value=R,m.value=1,u.value=!1):!Array.isArray(R.page)||R.page.length===0?(console.warn("[FoxUI] can not load more data"),u.value=!1):(Reflect.apply([].push,d.value,R.page),m.value=Math.ceil(d.value.length/n.pageSize),(R.totalSize&&d.value.length>=R.totalSize||q<R.page.length)&&(u.value=!1)),v.value=!1}catch(T){console.error("[FoxUI] ActionSheet load more data fail",T),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,(P,$)=>{ie(P)&&!ie($)&&p()}),t.watch([()=>n.source,()=>n.pageSize,()=>n.params],async([P,$,q])=>{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,P=>{C.value!==P&&(C.value=P),P?N=[...S.value]:N=null});const V=(P,$)=>{const q=[];return Array.isArray(P)||(P=[P]),P.forEach(T=>{let R=dm(n,$,T,n.valueType);R!==-1&&q.push(R)}),xe(q,S.value)?!1:(S.value=q,!0)};t.watch([()=>n.modelValue,()=>d.value],([P,$],[q,T])=>{if(V(P,$)){const I=B();M(I)}},{deep:!0});const B=()=>{const P=[],$=[],q=[];for(let F of S.value){const j=d.value[F];$.push(j);const X=oo(n,j);if(q.push(X),n.valueType==="item")P.push(j);else if(n.valueType==="text")P.push(X);else{const O=ws(n,j);P.push(O)}}let T=null,R=null,I=null;return n.multiple?(T=P,R=q,I=$):(T=P[0]??null,R=q[0]??null,I=$[0]??null),{value:T,text:R,item:I}},M=P=>{a("update:modelValue",P.value),a("update:text",P.text),a("change",P.value,P.item,P.text)},A=()=>{N&&(S.value=N)},w=P=>{const $=S.value.indexOf(P);n.multiple?$===-1?S.value.push(P):S.value.splice($,1):$===-1?S.value=[P]:S.value=[],(b.value||!n.poppable&&!n.showFooter)&&E()},z=P=>{C.value=P,a("update:visible",P)},L=()=>{const P=()=>{A(),z(!1)};if(typeof n.beforeClose=="function"){const $=n.beforeClose("close");ht($)?$.then(q=>{q!==!1&&P()}).catch(()=>{P()}):$!==!1&&P()}else P()},E=()=>{const P=B(),$=()=>{M(P),z(!1)};if(typeof n.beforeClose=="function"){const q=n.beforeClose("confirm",P.value,P.item,P.text);ht(q)?q.then(T=>{T!==!1&&$()}).catch(()=>{$()}):q!==!1&&$()}else $()},x=()=>{u.value=!0,m.value=0,d.value=[],n.source&&p()},U=()=>{let P=i.title.value??"";r.title&&(P=r.title());const $=t.h("view",{class:["fox-actionsheet__header-title"]},[P]),q=t.h(te.Close,{class:["fox-actionsheet__header-icon"],onClick:L});return t.h("view",{class:["fox-actionsheet__header"]},[$,q])},D=()=>{let P=null;if(r.search)P=r.search();else{const $={onSearch:x,placeholder:i.seachPlaceholder.value,disabled:n.disabled,modelValue:f.value,"onUpdate:modelValue":q=>{f.value=q}};P=t.h(Ko,$,{leftin:()=>t.h(te.Search2)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[P])},W=(P,$,q,T,R)=>{if(r.optionLabel)return r.optionLabel({text:P,checked:$,disabled:q,subText:T,item:R});const I=[],F=t.h("view",{class:"fox-actionsheet__list-item-text"},[P]);if(I.push(F),T){const j=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[T]);I.push(j)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},I)},H=(P,$,q,T)=>{if(r.optionIcon)return r.optionIcon({checked:P,disabled:$,iconSize:q,item:T});if(P){if(r.checkedIcon)return r.checkedIcon({disabled:$,item:T});{const R=n.checkedIcon??te.Checked;return t.h(R,{width:q,height:q,class:["fox-actionsheet__list-item-icon"]})}}else{if(r.icon)return r.icon({disabled:$,item:T});{const R=n.icon??te.CheckNormal;return t.h(R,{width:q,height:q,class:["fox-actionsheet__list-item-icon"]})}}},G=()=>{const P=[];for(let $=0;$<d.value.length;$++){const q=d.value[$],T=oo(n,q),R=sr(n,q),I=["fox-actionsheet__list-item"],F={};let j=fm(n,q),X=n.iconSize?se(n.iconSize):null;const O=mm(n,q,$);O&&(j=j||O.disabled,O.class&&I.push(O.class),O.style&&Object.assign(F,O.style)),j=!!(n.disabled||j);const Q=S.value.includes($);j&&I.push("is-disabled"),Q&&I.push("is-checked");const Z={class:I,style:F,key:`${$}`,onClick:()=>{j||w($)}};let ee=[];if(r.option)ee.push(r.option({item:q,checked:Q,disabled:j}));else{const oe=W(T,Q,j,R,q);ee.push(oe);const le=H(Q,j,X,q);ee.push(le)}const J=t.h("view",Z,ee);P.push(J)}return P},K=()=>{let P=[];if(r.buttons)P=r.buttons();else{const q=t.h(Ie,{type:"primary",block:"block",onClick:E,disabled:n.disabled},{default:()=>i.confirmText.value});P.push(q)}return t.h("view",{class:"fox-actionsheet__footer"},[P])};return $e({search:async(P=null,$=!0)=>{h.value=P&&t.toRaw(P),t.triggerRef(h),$&&(u.value=!0,m.value=0,d.value=[]),t.nextTick(()=>{p()})},clear:()=>{u.value=!0,m.value=0,d.value=[]},confirm:()=>{E()},cancel:()=>{L()}}),()=>{const P=[];if(n.showHeader){const X=U();P.push(X)}if(n.showSearchbar){const X=D();P.push(X)}let $=null;if(r.content)$=r.content();else{const X=G(),O={hasMore:u.value,loadText:i.loadText.value,loadMoreText:i.loadMoreText.value,modelValue:v.value,"onUpdate:modelValue":Q=>{v.value=Q},onLoadMore:p};$=t.h(Oo,O,{default:()=>X})}const q={};n.optionsHeight&&(q.height=n.optionsHeight);const T={"fox-actionsheet__list":!0};n.poppable||(T["fox-actionsheet__list--inner"]=!0);const R=t.h("view",{class:T,style:q},[$]);if(P.push(R),n.showFooter&&!b.value){const X=K();P.push(X)}const I=t.h("view",{class:"fox-actionsheet"},P);if(!n.poppable)return I;const F=["fox-actionsheet__popup"];n.popClass&&F.push(n.popClass);const j={popClass:F.join(" "),visible:C.value,closeable:!1,"onUpdate:visible":z,position:n.position,round:"round",onClickOverlay:L,closeOnClickOverlay:n.closeOnClickOverlay};return t.h(ce,j,{default:()=>I})}}}}const{componentName:Om,create:Km,scope:Um}=Y("actionsheet-pane"),Uo=Km(Rm(Om,Um)),Hm={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 jm(e,o,l,n,a,r,s){return{props:{...ue,...de,...Hm,...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 T={};return S.value&&(T["text-align"]=S.value),T}),C=t.ref(!1),V=()=>{C.value=!0},B=T=>{C.value=T},M=T=>{k.value=T,f("update:modelValue",T)},A=(T,R)=>{f("change",T,R)},w=T=>{let I=T.target.value;g.value=!0,f("focus",I,T)},z=T=>{setTimeout(()=>{g.value=!1},0);let I=T.target.value;i.maxLength&&I.length>Number(i.maxLength)&&(I=I.slice(0,Number(i.maxLength))),f("blur",I,T)},L=T=>{v.value=T,f("update:text",T)},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=T=>{k.value="",f("update:modelValue","",T),f("change","",T),f("clear","")},H=t.computed(()=>i.clearable&&!d.value&&!m.value),G=t.computed(()=>ge(k.value)>0&&g.value),K=T=>{G.value?W(T):V()},P=t.computed(()=>G.value&&H.value?n:a),$=t.computed(()=>({action:!0})),q=t.ref(null);return $e({search:T=>{q.value&&q.value.search(T)},clear:()=>{q.value&&q.value.clear},confirm:T=>{q.value&&q.value.confirm()},cancel:()=>{q.value&&q.value.cancel()}}),()=>{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:z};s&&(T.disabled=!0);const R=[],I=t.h("input",T);R.push(I);const F=[],j={class:["action-icon"]},X=t.h(P.value,j),O={class:$.value,onClick:K},Q=t.h("view",O,{default:()=>[X]});if(F.push(Q),x.value){const Ze=t.h("view",{class:D.value},[i.unit]);F.push(Ze)}const Z={class:E.value},ee=t.h("view",Z,{default:()=>F});R.push(ee);const J={default:()=>R};J.label=c.slots.default,J.prepend=c.slots.prepend,J.append=c.slots.append,J.fixedPreTip=c.slots.fixedPreTip,J.fixedTip=c.slots.fixedTip;const oe=he(i,An);oe.ref=q,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"]=M,oe.text=v.value,oe["onUpdate:text"]=L,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);J.hide=()=>[Te];const ve=he(i,de,ue);return t.h(l,ve,J)}}}}const{componentName:Wm,create:Ym,scope:Xm}=Y("actionsheet-item"),al=Ym(jm(Wm,Xm,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:Qm,create:Gm}=Y("input-number"),Zm=Gm({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=Qm;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}}}),Jm=["min","max","disabled","readonly","value"];function _m(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,Jm),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=_(Zm,[["render",_m]]);function ep(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:tp,create:op,scope:np}=Y("inputnumber-item"),rl=op(ep(tp,np,be,Qe)),lp={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},ir=(e,o)=>o[e.textKey],At=(e,o)=>o[e.valueKey],ap=(e,o)=>o[e.visibleKey],cr=(e,o)=>o[e.disabledKey],rp=(e,o)=>{const l=o[e.doitKey];return me(l)},sp=(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 ip(e,o,l,n=!1){return{props:{...lp},emits:["update:modelValue","change"],setup(a,{slots:r,emit:s}){t.computed(()=>{const K={};return K[`${e}`]=!0,K});const i=t.computed(()=>{const K={};return K[`${e}__titles`]=!0,K[`${a.direction}`]=!0,a.align==="left"&&(K.left=!0),a.scroll===!0&&(K.scrollable=!0),a.shape&&(K[`${a.shape}`]=!0),K}),c=t.computed(()=>({})),d=t.computed(()=>{if(!a.gutter)return 0;const K=se(a.gutter);return K<=0?0:K}),m=t.ref(a.modelValue);t.watch(()=>a.modelValue,K=>{m.value!==K&&(m.value=K,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 K={};return g.value||(K.display="none"),K}),y=t.ref(),g=t.ref(!1),k=()=>{const K=!g.value;v(K)},v=K=>{const P=K;P?(g.value=P,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=(K,P)=>{p.value[P]=K},S=K=>P=>{b(P,K)},N=(K,P)=>{const $=u.value,q=p.value;if(!$||!q||!q[K])return;const T=q[K];let R=0;a.direction==="vertical"?R=T.offsetTop-($.offsetHeight-T.offsetHeight)/2:R=T.offsetLeft-($.offsetWidth-T.offsetWidth)/2,C($,R,P?0:.3,a.direction)},C=(K,P,$,q)=>{let T=0;const R=q==="horizontal"?K.scrollLeft:K.scrollTop,I=$===0?1:Math.round($*1e3/16);function F(){q==="horizontal"?K.scrollLeft+=(P-R)/I:K.scrollTop+=(P-R)/I,++T<I&&Pe(F)}F()},V=(K,P)=>{const $=At(a,K),q={};return q[`${e}__titles-item`]=!0,q.disabled=cr(a,K),q.active=$===m.value,a.shape&&(q[`${a.shape}`]=!0),a.ellipsis&&(q.ellipsis=!0),P&&(P.class&&(q[`${P.class}`]=!0),P.disabled===!0&&(q.disabled=P.disabled)),q},B=(K,P)=>{const $={};if(d.value>0){const q=Math.abs(d.value/2);a.direction==="vertical"?($["margin-top"]=`${q}px`,$["margin-bottom"]=`${q}px`):($["margin-left"]=`${q}px`,$["margin-right"]=`${q}px`)}return P&&P.style&&Object.assign($,P.style),$},M=(K,P)=>`${At(a,K)??P}`,A=(K,P)=>{const $=At(a,K),q={};q[`${e}__popup-item`]=!0,q.disabled=cr(a,K),q.active=$===m.value,a.shape&&(q[`${a.shape}`]=!0);const T=ur(a,K,P);return T&&T.disabled===!0&&(q.disabled=T.disabled),q},w=t.computed(()=>(a.data??[]).filter(P=>ap(a,P)!==!1)),z=(K,P)=>{const $=At(a,K);if(m.value==$)return;const q=()=>{m.value=$,a.scroll&&N(P,!1),s("update:modelValue",$),s("change",K,P)};if(typeof a.beforeChange=="function"){const T=a.beforeChange(K,P);ht(T)?T.then(R=>{R!==!1&&q()}).catch(()=>{q()}):T!==!1&&q()}else q()},L=(K,P)=>function(){z(K,P)},E=(K,P)=>{z(K,P),v(!1)},x=(K,P)=>function(){E(K,P)},U=K=>{if(!Array.isArray(a.data)||!a.scroll)return;const P=a.data.findIndex($=>At(a,$)===m.value);P!==-1&&N(P,K)};t.watch(()=>a.data,()=>{setTimeout(U,0)}),t.onMounted(()=>{U(!0)});const D=(K,P)=>{if(r.item)return r.item({item:K,index:P});const $=ur(a,K,P),q=[];if(r.text){const F=r.text({item:K,index:P});q.push(F)}else{const F=[];if($?.doit===!0||rp(a,K)){const Q={class:[`${e}__titles-item-tip`,"doit"]},Z=t.h("view",Q);F.push(Z)}const j=$?.num??sp(a,K);if(j){let Q="";const Z=fe(j);Z>=100?Q="99+":Q=`${Z}`;const ee={class:[`${e}__titles-item-tip`,"num"]},J=t.h("view",ee,[Q]);F.push(J)}const X={class:`${e}__titles-item-text`};F.push(ir(a,K));const O=t.h("view",X,F);q.push(O)}const T={class:`${e}__titles-item-line`},R=t.h("view",T);q.push(R);const I={ref:S(P),class:V(K,$),style:B(K,$),key:M(K,P),onClick:L(K,P)};return t.h("view",I,q)},W=()=>{const K=r.default?r.default():[];if(K.length===0)for(let $=0;$<w.value.length;$++){const q=w.value[$],T=D(q,$);K.push(T)}const P={ref:u,class:i.value,style:c.value};return t.h("view",P,K)},H=()=>{let K=null;r.navigation?K=r.navigation():K=t.h(l);const P={class:`${e}__navigation`,onClick:k};return t.h("view",P,[K])},G=()=>{const K=[];for(let $=0;$<w.value.length;$++){const q=w.value[$];let T=null;r.popupItem?T=r.popupItem({item:q,index:$}):T=ir(a,q);const R={class:A(q,$),key:M(q,$),onClick:x(q,$)},I=t.h("view",R,[T]);K.push(I)}const P={class:f.value,style:h.value};return t.h("view",P,K)};return()=>{const K=[],P=W();if(K.push(P),a.showQuickNavigation){const q=H();K.push(q);const T=G();K.push(T)}const $={class:`${e}`};return t.h("view",$,K)}}}}const{create:cp,componentName:up,scope:dp}=Y("tabs-bar"),sl=cp(ip(up,dp,te.MoreH,!1)),Ns=Symbol("TabsStatesKey"),{create:fp}=Y("tabs-container"),mp=fp({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(Ns,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 pp(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=_(mp,[["render",pp]]),{create:hp}=Y("tabs-pane"),gp=hp({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(Ns);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}}}),yp={class:"fox-tabs-pane__empty"},vp=t.createElementVNode("view",{class:"fox-tabs-pane__empty-text"},"loading",-1);function kp(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",yp,[t.createVNode(s,{class:"fox-tabs-pane__empty-icon"}),vp])])],4)}const cl=_(gp,[["render",kp]]),bp={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function Sp(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 Cp(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 mr(e,o){return typeof e.doitKey=="string"&&e.doitKey.length>0?o[e.doitKey]:o.doitKey??null}function pr(e,o){return typeof e.labelKey=="string"&&e.labelKey.length>0?o[e.labelKey]:o.labelKey??null}function tn(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let wp=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 Np(){const e=t.getCurrentInstance();return new wp(e.proxy)}function Bp(e,o,l,n){return{props:{...bp},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:s}){const i=e,c=Np(),d=t.ref([]),m=t.computed(()=>d.value.filter($=>Cp(a,$)!==!1)),f=t.ref(-1),h=()=>{const $=a.modelValue,q=m.value.findIndex(T=>dr(a,T)===$);f.value!==q&&(f.value=q,a.scroll&&K(q,!1))};t.watch([()=>a.modelValue,m],()=>{h()});const y=$=>f.value===$,g=$=>{if($<0&&$>=m.value.length)return!1;const q=m.value[$],R=(tn(a,q,$)??{}).status??en(a,q);return y($)||R},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=($,q,T,R,I)=>{const F={[`${i}__step`]:!0};return I&&(F[`${I}`]=!0),F[`${p.value}`]=!0,R&&(F["is-doit"]=!0),$===f.value?F["is-active"]=!0:q==="done"?F["is-done"]=!0:q==="error"?F["is-error"]=!0:q==="half"?F["is-half"]=!0:T?F["is-disabled"]=!0:F["is-normal"]=!0,F},p=t.computed(()=>{if(a.mode==="simple")return"start";let $=a.align;return $||(a.direction==="vertical"?$="start":$="center"),$}),b=($,q={})=>{const T={...q};return p.value==="start"&&$===m.value.length-1?T.flex="0 0 auto":a.step?a.direction==="vertical"?T.height=a.step:T.width=a.step:T.flex="1 1 100%",T},S=($,q)=>{let T={};if(q<m.value.length-1){const R=q+1;g(q)&&g(R)?a.direction==="vertical"?T.height="100%":T.width="100%":T.opacity="0"}return T},N=$=>m.value.length-1===$,C=($,q)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&q>f.value||f.value===q)return;const T=f.value,R=q;f.value=q,a.scroll&&K(q,!1);const I=dr(a,$);s("update:modelValue",I);const F={fromIndex:T,currentIndex:R,item:$,items:m.value,clickNavigatePolicy:a.clickNavigatePolicy};s("change",I,F)},V=t.ref(!0),B=async($,q)=>{try{const T=await c.load("stesbar",$,q);Array.isArray(T)&&(d.value=T),V.value=!1}catch(T){console.error("[FoxUI] Load StepsBar Data Fail",T),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([$,q])=>{$&&B($,q)},{immediate:!0});const M=($,q,T,R,I)=>{let F=null;if(r.icon)F=r.icon({item:$,index:q,status:R});else if(R==="done"){const X={};a.iconSize&&(X.width=a.iconSize,X.height=a.iconSize);const O=a.icon??l;F=t.h(O,X)}else{const X=T??`${q+1}`;F=t.h("span",{},[X])}const j={class:"fox-steps-bar__icon",onClick:()=>{I||C($,q)}};return t.h("view",j,[F])},A=($,q,T)=>{const R=t.h("i",{class:"fox-steps-bar__line-inner",style:S($,q)});return t.h("view",{class:"fox-steps-bar__line"},[R])},w=()=>{let $=null;if(r.markIcon)$=r.markIcon();else{const T={};a.iconSize&&(T.width=a.markIconSize,T.height=a.markIconSize);const R=a.markIcon??n;$=t.h(R,T)}return t.h("view",{class:"fox-steps-bar__mark"},[$])},z=($,q,T,R,I)=>{const F=[];if(!N(q)){const O=A($,q);F.push(O)}const j=M($,q,T,R,I);F.push(j);const X={class:"fox-steps-bar__head"};return t.h("view",X,F)},L=($,q,T,R)=>{let I=null;r.main?I=r.main({item:$,index:q,status:T}):I=Sp(a,$);const F={class:"fox-steps-bar__main",onClick:()=>{R||C($,q)}};return t.h("view",F,[I])},E=($,q,T)=>{let R=null;if(r.sub){R=r.sub({item:$,index:q,status:T});const I={class:"fox-steps-bar__sub"};return t.h("view",I,[R])}return null},x=($,q)=>{const T=tn(a,$,q)??{},R=T.status??en(a,$);let I=fr(a,$);T.disabled===!0&&(I=!0),a.disabled===!0&&(I=!0);const F=T.label??pr(a,$),j=[],X=M($,q,F,R,I);X&&j.push(X);const O=L($,q,R,I);if(O&&j.push(O),!N(q)){const le=A($,q);le&&j.push(le)}const Q=t.h("view",{class:"fox-steps-bar__head"},j),Z=T.class,ee=T.style??{};let J=mr(a,$);T.doit===!0&&(J=!0);const oe={ref:G(q),class:u(q,R,I,J,Z),style:b(q,ee)};return t.h("view",oe,[Q])},U=($,q)=>{const T=tn(a,$,q)??{},R=T.status??en(a,$);let I=fr(a,$);T.disabled===!0&&(I=!0),a.disabled===!0&&(I=!0);const F=T.label??pr(a,$),j=[],X=a.layout;for(let J of X)if(J==="head"){const oe=z($,q,F,R,I);j.push(oe)}else if(J==="main"){const oe=L($,q,R,I);j.push(oe)}else if(J==="sub"){const oe=E($,q,R);j.push(oe)}else if(J==="mark"){const oe=w();j.push(oe)}const O=T.class,Q=T.style??{};let Z=mr(a,$);T.doit===!0&&(Z=!0);const ee={ref:G(q),class:u(q,R,I,Z,O),style:b(q,Q)};return t.h("view",ee,j)},D=t.ref(),W=t.ref([]),H=($,q)=>{W.value[q]=$},G=$=>q=>{H(q,$)},K=($,q)=>{const T=D.value,R=W.value;if(!T||!R||!R[$])return;const I=R[$];let F=0;a.direction==="vertical"?F=I.offsetTop-(T.offsetHeight-I.offsetHeight)/2:F=I.offsetLeft-(T.offsetWidth-I.offsetWidth)/2,P(T,F,q?0:.3,a.direction)},P=($,q,T,R)=>{let I=0;const F=R==="horizontal"?$.scrollLeft:$.scrollTop,j=T===0?1:Math.round(T*1e3/16);function X(){R==="horizontal"?$.scrollLeft+=(q-F)/j:$.scrollTop+=(q-F)/j,++I<j&&Pe(X)}X()};return()=>{const $=[];if(a.mode==="simple")for(let T=0;T<m.value.length;T++){const R=m.value[T],I=x(R,T);$.push(I)}else for(let T=0;T<m.value.length;T++){const R=m.value[T],I=U(R,T);$.push(I)}const q={ref:D,class:k.value,style:v.value};return t.h("view",q,$)}}}}const{componentName:Vp,create:Ap,scope:$p}=Y("steps-bar"),ul=Ap(Bp(Vp,$p,te.Checklist,te.ArrowRight)),hr=10;function Tp(e,o){return e>o&&e>hr?"horizontal":o>e&&o>hr?"vertical":""}function Ep(){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=Tp(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 Dp(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function xp(e){e.stopPropagation()}class Ip{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=Dp()}open(o){Array.isArray(o)||(o=[o]),this.els=o;const l=Ep(),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),xp(a),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 qp(e,o){return new Ip(e,o)}const Mp={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]}},zp=(e,o,l,n=!1)=>({props:{...Mp},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(()=>{const p=[`${e}`];return a.customClass&&p.push(a.customClass),p}),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),ie(a.borderRadius)||(p["border-radius"]=a.borderRadius),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=qp(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:Lp,create:Pp,scope:Fp}=Y("floating-button"),dl=Pp(zp(Lp,Fp,te.Uploader,!1)),Rp={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}},Op=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Kp(e,o,l){return{props:{...Rp},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)=>Op(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`},M=t.h("view",B,[N]);C.push(M)}if(S){const B=[];Array.isArray(S)||(S=[S]);for(let M of S){const A={class:`${c}__group-row`,innerHTML:M},w=t.h("view",A);B.push(w)}if(B.length>0){const M={class:`${c}__group-rows`},A=t.h("view",M,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}},M=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 z={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,z,{default:()=>M})}}}}const{componentName:Up,create:Hp,scope:jp}=Y("messagebox"),Wp=Hp(Kp(Up,jp,ce)),Yp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M82.5121%201.93968L81.7498%206.07825C81.6498%206.6214%2081.1284%206.98064%2080.5853%206.8806C80.4326%206.85251%2080.2886%206.78925%2080.1646%206.69578L77.1586%204.43061C76.7175%204.09823%2076.6294%203.47123%2076.9618%203.03016C77.0552%202.90617%2077.1762%202.80562%2077.3153%202.73655L81.0834%200.863097C81.5779%200.617235%2082.1782%200.818843%2082.4241%201.31339C82.5204%201.50712%2082.5512%201.72688%2082.5121%201.93968Z'%20fill='%23FFD1C9'%20%3e%3c/path%3e%3cpath%20d='M3.08218%20102.2L6.53454%2094.2358C6.75419%2093.7291%207.34251%2093.4968%207.84925%2093.7164C7.99216%2093.7778%208.11815%2093.872%208.21791%2093.9909L13.2085%2099.9384C13.5635%20100.361%2013.5081%20100.992%2013.0852%20101.347C12.9665%20101.447%2012.8261%20101.518%2012.675%20101.554L4.23203%20103.571C3.69484%20103.699%203.15538%20103.367%203.02699%20102.83C2.97674%20102.62%202.99607%20102.399%203.08218%20102.2Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23FF5959'%20%3e%3c/circle%3e%3cpath%20d='M59.935%2049.6213C61.3827%2051.069%2061.3827%2053.4162%2059.935%2054.864L45.935%2068.864C44.4873%2070.3117%2042.1401%2070.3117%2040.6924%2068.864C39.2447%2067.4162%2039.2447%2065.069%2040.6924%2063.6213L54.6924%2049.6213C56.1401%2048.1736%2058.4873%2048.1736%2059.935%2049.6213Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3cpath%20d='M40.6924%2049.6213C39.2447%2051.069%2039.2447%2053.4162%2040.6924%2054.864L54.6924%2068.864C56.1401%2070.3117%2058.4873%2070.3117%2059.935%2068.864C61.3827%2067.4162%2061.3827%2065.069%2059.935%2063.6213L45.935%2049.6213C44.4873%2048.1736%2042.1401%2048.1736%2040.6924%2049.6213Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%23FFD1C9'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L102%20110L102%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Xp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cpath%20d='M8%2087L8%2095C8%2095.5523%207.55228%2096%207%2096C6.44772%2096%206%2095.5523%206%2095L6%2087L2%2087C1.44772%2087%201%2086.5523%201%2086C1%2085.4477%201.44772%2085%202%2085L6%2085L6%2082C6%2081.4477%206.44772%2081%207%2081C7.55228%2081%208%2081.4477%208%2082L8%2085L12%2085C12.5523%2085%2013%2085.4477%2013%2086C13%2086.5523%2012.5523%2087%2012%2087L8%2087Z'%20fill-rule='evenodd'%20fill='%2396CEFF'%20%3e%3c/path%3e%3cpath%20d='M89%205L89%2010C89%2010.5523%2088.5523%2011%2088%2011C87.4477%2011%2087%2010.5523%2087%2010L87%205L85%205C84.4477%205%2084%204.55228%2084%204C84%203.44772%2084.4477%203%2085%203L87%203L87%201C87%200.447715%2087.4477%200%2088%200C88.5523%200%2089%200.447715%2089%201L89%203L91%203C91.5523%203%2092%203.44772%2092%204C92%204.55228%2091.5523%205%2091%205L89%205Z'%20fill-rule='evenodd'%20fill='%23BDE2FF'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23237FFA'%20%3e%3c/circle%3e%3crect%20x='47.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%2396CEFF'%20%3e%3c/rect%3e%3crect%20x='47.5'%20y='66'%20width='7'%20height='7'%20rx='4'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3c/svg%3e",Qp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='105'%20viewBox='0%200%20102%20105'%20fill='none'%3e%3cpath%20d='M7%2076C7.55228%2076%208%2076.4477%208%2077L7.999%2079.999L12%2080C12.5523%2080%2013%2080.4477%2013%2081C13%2081.5523%2012.5523%2082%2012%2082L7.999%2081.999L8%2090C8%2090.5523%207.55228%2091%207%2091C6.44772%2091%206%2090.5523%206%2090L5.999%2081.999L2%2082C1.44772%2082%201%2081.5523%201%2081C1%2080.4477%201.44772%2080%202%2080L5.999%2079.999L6%2077C6%2076.4477%206.44772%2076%207%2076Z'%20fill='%2338D677'%20%3e%3c/path%3e%3cpath%20d='M75%201.72421e-32C75.5523%20-1.01453e-16%2076%200.447715%2076%201L76%202.999L78%203C78.5523%203%2079%203.44772%2079%204C79%204.55228%2078.5523%205%2078%205L76%204.999L76%2010C76%2010.5523%2075.5523%2011%2075%2011C74.4477%2011%2074%2010.5523%2074%2010L74%204.999L72%205C71.4477%205%2071%204.55228%2071%204C71%203.44772%2071.4477%203%2072%203L74%202.999L74%201C74%200.447715%2074.4477%201.01453e-16%2075%201.72421e-32Z'%20fill='%238BF0AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='54'%20r='28'%20fill='%2338D677'%20%3e%3c/circle%3e%3cpath%20d='M36.8787%2051.8786C38.3265%2050.4309%2040.6736%2050.4309%2042.1213%2051.8786L50.1214%2059.8786C51.5691%2061.3263%2051.5691%2063.6735%2050.1214%2065.1212C48.6737%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212L36.8787%2057.1212C35.431%2055.6735%2035.431%2053.3263%2036.8787%2051.8786Z'%20fill='%23B3F2C6'%20%3e%3c/path%3e%3cpath%20d='M64.1214%2045.8786C65.5691%2047.3263%2065.5691%2049.6735%2064.1214%2051.1212L50.1213%2065.1212C48.6736%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212C43.431%2063.6735%2043.431%2061.3263%2044.8787%2059.8786L58.8788%2045.8786C60.3265%2044.4309%2062.6737%2044.4309%2064.1214%2045.8786Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='14.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='101.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='25'%20r='7'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3c/svg%3e",Gp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='101'%20height='110'%20viewBox='0%200%20101%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M81.512%201.93968L80.7498%206.07825C80.6498%206.6214%2080.1284%206.98064%2079.5852%206.8806C79.4326%206.85251%2079.2886%206.78925%2079.1645%206.69578L76.1585%204.43061C75.7175%204.09823%2075.6293%203.47123%2075.9617%203.03016C76.0552%202.90617%2076.1761%202.80562%2076.3152%202.73655L80.0833%200.863097C80.5779%200.617235%2081.1781%200.818843%2081.424%201.31339C81.5203%201.50712%2081.5512%201.72688%2081.512%201.93968Z'%20fill='%23FEFAE0'%20%3e%3c/path%3e%3cpath%20d='M2.08224%20102.2L5.5346%2094.2358C5.75425%2093.7291%206.34257%2093.4968%206.84931%2093.7164C6.99222%2093.7778%207.11822%2093.872%207.21798%2093.9909L12.2086%2099.9384C12.5636%20100.361%2012.5082%20100.992%2012.0853%20101.347C11.9666%20101.447%2011.8261%20101.518%2011.675%20101.554L3.23209%20103.571C2.6949%20103.699%202.15544%20103.367%202.02705%20102.83C1.97681%20102.62%201.99613%20102.399%202.08224%20102.2Z'%20fill='%23FEE789'%20%3e%3c/path%3e%3ccircle%20cx='50'%20cy='59'%20r='28'%20fill='%23FAB007'%20%3e%3c/circle%3e%3crect%20x='46.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%23FEE789'%20%3e%3c/rect%3e%3crect%20x='46.5'%20y='66'%20width='7'%20height='7'%20rx='3.5'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='84.5'%20cy='106.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='94'%20cy='30'%20r='7'%20fill='%23FEE789'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L101%20110L101%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Zp=new Do,Jp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},_p=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-${Zp.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(Wp,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=Qp:r==="warning"?a.icon=Gp:r==="error"?a.icon=Yp:a.icon=Xp),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})},_p(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}},eh=(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)},th=new Do,oh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),nh=e=>`${e}-${th.get()}`,lh=Symbol.for("InnerPageScopeKey"),ah=Symbol.for("PageWrapperKey"),rh="FoxLeave",sh="FoxLeaveEnd",ih={width:{type:[String,Number]},height:{type:[String,Number]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!0},showDelay:{type:Number,default:10},showClose:{type:Boolean,default:!0},closeIcon:{type:Object},showHeader:{type:Boolean,default:!1},popClass:{type:String},popStyle:{type:Object},position:{type:String,default:"center"},mode:{type:String}};function ch(e,o,l,n){return{props:{...ze,...ih},emits:["update:visible"],setup(a,{attrs:r,slots:s,emit:i}){t.provide(lh,!0);const c={};t.provide(ah,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)=>oh(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=>{eh(sh,{},u)},b=nh(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(rh,N,{once:!0}),S()}),()=>{const C=[],V=k();V&&C.push(V);const B=v();B&&C.push(B);const M=s.default?s.default():[];Reflect.apply([].push,C,M);const A={[`${f}`]:!0};a.mode&&(A[`${f}--${a.mode}`]=!0);const w={class:A},z=t.h("view",w,C),L=[`${f}__popup`,b];a.popClass&&L.push(a.popClass),a.position&&L.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:L.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:()=>z});return t.h("div",{class:[`${f}__root`,b]},[D])}}}}const{componentName:uh,create:dh,scope:fh}=Y("popup-wrapper"),fl=dh(ch(uh,fh,ce,te.Close));function mh(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 ph={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 hh(e,o,l=!1){return{props:{...ph},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;mh(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:gh,create:yh,scope:vh}=Y("text"),ml=yh(hh(gh,vh,!1));function kh(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 bh{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 Sh(){const e=t.getCurrentInstance();return new bh(e.proxy)}const Ch={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 wh(e,o,l=!1){return{props:{...Ch},setup(n,{attrs:a,slots:r}){const s=Sh(),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=kh(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:Nh,create:Bh,scope:Vh}=Y("mapping"),pl=Bh(wh(Nh,Vh,!1));function Ah(e,o){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return Hr(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:o2,create:$h,scope:n2}=Y("domain-provider"),hl=$h(Ah()),Th={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 Eh(e,o){return{inheritAttrs:!1,props:Th,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;Mi({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:l2,create:Dh,scope:a2}=Y("rolling-provider"),gl=Dh(Eh()),{componentName:xh,create:Ih}=Y("cell"),qh=Ih({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=xh;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}}}),Mh={key:0,class:"fox-cell__icon"},zh={key:1,class:"fox-cell__title"},Lh={class:"title"},Ph={class:"fox-cell__title-desc"};function Fh(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",Mh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",zh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Lh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",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=_(qh,[["render",Fh]]),{componentName:Rh,create:Oh}=Y("cell-group"),Kh=Oh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Rh]:!0}))}}}),Uh={key:1,class:"fox-cell-group__title"},Hh={key:3,class:"fox-cell-group__desc"},jh={class:"fox-cell-group__wrap"};function Wh(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",Uh,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",Hh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",jh,[t.renderSlot(e.$slots,"default")])],2)}const vl=_(Kh,[["render",Wh]]),{componentName:Yh,create:Xh}=Y("image"),Qh=Xh({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=Yh;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}}}),Gh=["src","date-src","alt"],Zh={key:0,class:"fox-img-loading"},Jh={key:1,class:"fox-img-error"};function _h(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,Gh),e.loading?(t.openBlock(),t.createElementBlock("div",Zh,[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",Jh,[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=_(Qh,[["render",_h]]),{create:eg}=Y("layout"),bl=eg({}),{componentName:tg,create:og}=Y("col"),ng=og({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const o=tg,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 lg(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=_(ng,[["render",lg]]),{componentName:ag,create:rg}=Y("row"),sg=rg({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=ag;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=wr(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 wr(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 wr(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 Mt(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=Mt(e,0,l),(n?"-":"")+c+new Array(o+1).join("0")}}if(o==0)return r.length,Ta(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&&Ta(i,s,n,l)&&(s=Wo(s),s.length>o)?(n?"-":"")+Wo(r,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+r+"."+s}function Ta(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=Nt(e),o=Nt(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=Nt(e.replace(".","")),o=Nt(o.replace(".","")),e.length<o.length){let d=e;e=o,o=d}if(o=="0")return"0";let s=o.length,i=0,c=[],f=s-1,m="";for(let d=0;d<s;d++)c[d]=e.length-1;for(let d=0;d<2*e.length;d++){let h=0;for(let y=o.length-1;y>=f&&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,f--}return m=Nt(Ms(m,r)),l==1&&(m="-"+m),m}function Ms(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 Nt(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 f=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(f==-1)e=Se(e+new Array(a+1).join("0"));else if(a>f)e=e.replace(".",""),e=Se(e+new Array(a-f+1).join("0"));else if(a<f){e=e.replace(".","");let m=e.length-f+a;e=Se(e.substring(0,m)+"."+e.substring(m))}else a==f&&(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 f=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(f+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=f,i="0."+new Array(f).join("0")}for(l=l+2;r<=l;){let f=0;for(;parseInt(c)>=parseInt(o);)c=lo(c,"-"+o),f++;i+=f,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(Mt(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 Ea(e,o){if(o==0)throw new Error("Cannot divide by 0");e=e.toString(),o=o.toString(),Da(e),Da(o);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),o[0]=="-"&&(o=o.substr(1));let n=an(e,nn(o,Mt(ln(e,o),0,ye.FLOOR)));return l+n}function Da(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function xa(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 Mt(o,l,n)}round(o=0,l=ye.HALF_EVEN){if(isNaN(o))throw Error("Precision is not a number: "+o);return new re(Mt(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),Ea(o,l)}modulus(o){return new re(Ea(this.value,o.getValue()))}static compareTo(o,l){return o=re.validate(o),l=re.validate(l),xa(o,l)}compareTo(o){return xa(this.value,o.getValue())}static negate(o){return o=re.validate(o),rn(o)}negate(){return new re(rn(this.value))}}function Nr(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 Br(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="",f=r.indexOf(".");f!=-1&&(i=r.substring(0,f),c=r.substring(f+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 d="",h=i.split("").reverse();for(let y=0;y<h.length;y++)d+=h[y]+((y+1)%n==0&&y+1!=h.length?a:"");c.length==0?m=`${s}${d.split("").reverse().join("")}`:m=`${s}${d.split("").reverse().join("")}.${c}`}else c.length==0?m=`${s}${i}`:m=`${s}${i}.${c}`;return m}function Vr(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 Ar(e){return e==null}const ho=Array.isArray,zs=e=>go(e)==="[object Map]",Ps=e=>go(e)==="[object Set]",Oe=e=>e instanceof Date,ao=e=>typeof e=="function",$r=e=>typeof e=="string",Ls=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",ht=e=>Be(e)&&ao(e.then)&&ao(e.catch),Tr=Object.prototype.toString,go=e=>Tr.call(e),cn=e=>go(e)==="[object Object]",Er=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Fs(e){return e.__esModule||Er&&e[Symbol.toStringTag]==="Module"}const Rs=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 f;Array.isArray(c)?f=i&&Array.isArray(i)?i:[]:f=i&&typeof i=="object"?i:{},o[s]=nt(a,f,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=Rs?Promise.resolve():null;function Os(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 Ks={"[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):Ks[l]||"object"}function yo(e){if(!e)return!0;const{display:o}=window.getComputedStyle(e);return o==="none"}function Dr(e){return e&&typeof e=="object"&&"setInterval"in e}function xr(e){let o=!!e&&"length"in e&&e.length,l=lt(e);return l==="function"||Dr(e)?!1:l==="array"||o===0||typeof o=="number"&&o>0&&o-1 in e}function Ir(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 Us(e,o=[]){let l=o;return e!=null&&(xr(Object(e))?Ir(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],f=o[i];if(!xe(c,f))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 qr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ie=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Mr(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 zr(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 Pr(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 Ia(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=Ia(e,".",/\./g):e=e.replace(/\./g,""),l?e=Ia(e,"-",/-/g):e=e.replace(/-/,"");const n=o?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Hs(e,o){return typeof e=="object"||Array.isArray(e)?o.findIndex(l=>{if(xe(e,l))return!0}):o.indexOf(e)}function js(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 Lr=(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="*"):qr(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 Ws(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 Dt(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 Ys{error(o,l){const n=l,a=Dt(l);a?a.emit({name:"*",maxLevel:1},"setErrorTip",o):typeof n.setErrorTip=="function"&&n.setErrorTip(o)}reset(o){const l=o,n=Dt(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(o){const l=o,n=Dt(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=Dt(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 Fr=new Ys;function Xs(e){Fr=e}function Qs(e,o){et(_e).setValidator(e,o)}function Gs(e){et(_e).deleteValidator(e)}let Rr=["blur","clear"];function Zs(e){Rr=e}function Or(){return Rr}let Kr=["focus","change"];function Js(e){Kr=e}function Ur(){return Kr}function _s(e){et(_e).messages(e)}function Bt(...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 Hr{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(Bt(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=Bt(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=Fr;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=Bt(this.attrRules,this.rules);o===null?this.rules=[]:Array.isArray(o)?this.rules=Gt(o):this.rules=Gt([o]);const n=Bt(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=Bt(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),f=this.proxy??s;return c.validate(s,{context:f}).then(d=>{if(d.pass)this.success();else{let h="error";Array.isArray(d.errors)&&d.errors.length>0&&(h=d.errors[0].message??h,d.errors=[d.errors[0]],d.errors[0].ref=f),this.error(h)}return d}).catch(d=>{const h=d.message??`${d}`;return this.error(h),d})}}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 Hr(o,l,e)}const qa=Symbol("EventEmitterKey");class ei{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 gt(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 ti(e,o){const l=gt((n,a)=>{e=n,a()},o);return t.customRef((n,a)=>({get(){return n(),e},set(r){l(r,a)}}))}function oi(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 ni=new bo;function mt(){return ni}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 f=k=>{r[Xo]||h(k),c.set("modelValue",k)},m=()=>c.getForSelf("modelValue")??null,d=()=>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=Yr(c,C,{componentName:"",fieldName:C,pureDataValidate:!0},y,g);r[ut].set(C,B);const M=u[C];M&&B.validateSchema.setRule(M)});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,d()??{}),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?f(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 jr(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 Wr(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 f=ko(a,c,e);a[Re]=f,t.provide(Re,f),Wr(a,f,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=f?.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=>f?.setRule(g),a.setNameValidateRules=(g,k=!1)=>{const v=g[r];if(v&&f?.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)&&f?.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 ei(a);a[qa]=m;const d=gt((g="validate")=>{g==="reset"?f.clear():f.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Or()).forEach(g=>{m.on(g,k=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Ur()).forEach(g=>{m.on(g,k=>{d("reset")})}),t.onUnmounted(()=>{i.destroy(),a[ke]=void 0,f.destroy(),a[Re]=void 0,m.destroy(),a[qa]=void 0}),{broadcast:i,validateSchema:f,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 Yr(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 d=[];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();d.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=f.emitToChildren(g,"validate",k);Reflect.apply([].push,d,v)}}return d.length==1?d[0]:d.length>1?Promise.all(d).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 d=m[s];d&&c?.setRule(d)};const f=vo(null,n,s,r);return{broadcast:f,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 Xr(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,f=e.get("footerBarHeight")??0;mn(n,r,o,!0,s,i,c,f);const m=t.reactive(n),d=e.getForParent(Ye);d&&(n.height=so(e,d),n.width=io(e,d),t.watch([()=>so(e,d),()=>io(e,d)],([y,g])=>{m.height=y,m.width=g}));const h=!d;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 li(e,o){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[o,e]):!1}function ai(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 $e(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 Ae(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 Qr=new Map,uo=new Map;let pn=null;function ri(e){pn=e}function Gr(e,o,l){if(l){let n=uo.get(l);n||(n=new Map,uo.set(l,n)),n.set(e,o)}else Qr.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=Qr.get(o)),n}function si(e,o){for(let l in e){const n=e[l];Gr(l,n,o)}}function ii(e){uo.delete(e)}function ci(){return{top:0,left:0,bottom:0,right:0}}function ui(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 di{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,f=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=f,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({},ci(),o.safeAreaInset),s=ui(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){ri(o)}setAPI(o,l,n){Gr(o,l,n)}getAPI(o,l,n){return Ge(o,l,n)}batchSetAPI(o,l){si(o,l)}clearScopeAPI(o){ii(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 fi=(e,o)=>{let l=document.body;const n=e.teleport||"body";n!="body"&&($r(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),f=o.components;return f&&f.forEach(m=>{c.use(m)}),l.appendChild(a),{instance:c.mount(a),unmount:()=>{c.unmount(),l.removeChild(a)}}},Zr=(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}},_r={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}},es=[];for(const e in _r)es.push(e);function Te(e,o=null){if(o||(o=t.getCurrentInstance()),o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const mi=Symbol.for("InnerPageScopeKey"),pi=(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=Pn(l.name,l),r=t.inject(mi,!1);if(a){const m=Xr(a,l);Te({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(),f=(m,d=!1)=>{const h=c?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(m,!0,d)};return t.watch([()=>l.rules,()=>l.pureDataRules],([m,d],[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]=[])}),f(k)}if(d&&y){const g=t.toRaw(y),k=t.toRaw(d),v=k?Reflect.ownKeys(k):[];(g?Reflect.ownKeys(g):[]).forEach(p=>{v.includes(p)||(k[p]=[])}),f(k,!0)}},{deep:!0}),t.onMounted(()=>{if(l.rules){const m=t.toRaw(l.rules);f(m)}if(l.pureDataRules){const m=t.toRaw(l.pureDataRules);f(m,!0)}}),{classes:s,styles:i}}}),{componentName:hi,create:gi,scope:ZB}=Y("page"),yi=gi(pi(hi));function vi(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(yi,[["render",vi]]);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 ki=Symbol.for("InnerPageScopeKey"),bi=(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(ki,!1),f=e,m=t.computed(()=>{const w={[f]:!0,[`${f}--border`]:a.border,[`${f}--fixed`]:a.fixed};return c||(w[`${f}--safe-area-inset-top`]=a.safeAreaInsetTop),w}),d=t.computed(()=>({[`${f}__inner`]:!0,[`${f}__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 z=Me(a.padding??i.headerPadding);return Object.assign(w,z),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+(z.top??0),w.height&&w.height>0&&(w.height=w.height+w.safeAreaTop)),w}if(h&&(w.height=h),a.padding){const z=Me(a.padding);Object.assign(w,z)}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 z=t.h("view",{class:"left-icon",onClick:b},[r.slots.leftIcon()]);w.push(z)}else if(a.leftIcon){const z=t.h("view",{class:"left-icon",onClick:b},[t.h(a.leftIcon)]);w.push(z)}if(a.leftText){const z=t.h("view",{class:"left-text",onClick:b},[a.leftText]);w.push(z)}}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 z=t.h("view",{class:"right-text",onClick:C},[a.rightText]);w.push(z)}if(r.slots.rightIcon){const z=t.h("view",{class:"right-icon",onClick:N},[r.slots.rightIcon()]);w.push(z)}else if(a.rightIcon){const z=t.h("view",{class:"right-icon",onClick:N},[t.h(a.rightIcon)]);w.push(z)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__right"},w)},M=()=>{if(!a.titleShow)return null;const w=[],z=r.slots.default?r.slots.default():null;if(z)w.push(z);else{if(a.title){const P=t.h("view",{class:"title-text"},[a.title]);w.push(P)}if(r.slots.titleIcon){const P=t.h("view",{class:"title-icon",onClick:S},[r.slots.titleIcon()]);w.push(P)}else if(a.titleIcon){const P=t.h("view",{class:"title-icon",onClick:S},[t.h(a.titleIcon)]);w.push(P)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__title"},w)},A=()=>{const w=[],z=r.slots.bottom?r.slots.bottom():null;return z&&w.push(z),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 P=[],E=V();E&&P.push(E);const x=M();x&&P.push(x);const U=B();if(U&&P.push(U),P.length>0){const W=t.h("view",{class:d.value},P);w.push(W)}const D=A();D&&w.push(D)}if(w.length===0)return null;const z={class:m.value,style:u.value,ref:g};return t.h("view",z,w)}}}),{componentName:Si,create:Ci,scope:wi}=Y("header-bar"),Rn=Ci(bi(Si,wi,te.Left,!1)),Ni=Symbol.for("InnerPageScopeKey");function Bi(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(Ni,!1),c=e,f=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,d=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 d.value.height!==null&&d.value.height!==void 0&&(v.height=pe(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(v.paddingTop=pe(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(v.paddingLeft=pe(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(v.paddingRight=pe(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(v.paddingBottom=pe(d.value.bottom)),v});return()=>{const v=a.slots.default?a.slots.default():[],u={ref:h,class:f.value,style:k.value};return t.h("view",u,v)}}}}const{componentName:Vi,create:Ai,scope:$i}=Y("footer-bar"),On=Ai(Bi(Vi,$i,!1));function Ti(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 f={};if(n&&r){if(l.padding){const u=Me(l.padding);Object.assign(r.contentPadding,u)}const m=Co(n,r),d=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:",d),console.debug("[content]padding:",r.contentPadding),f.height=h;let y=(r&&r.contentPadding&&r.contentPadding.top)??-1;(y>=0||m>0)&&(y=y<0?0:y,f.paddingTop=`${m+y}px`);let g=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(g>=0||d>0)&&(g=g<0?0:g,f.paddingBottom=`${d+g}px`);const k=(r&&r.contentPadding&&r.contentPadding.left)??-1;k>=0&&(f.paddingLeft=`${k}px`);const v=(r&&r.contentPadding&&r.contentPadding.right)??-1;return v>=0&&(f.paddingRight=`${v}px`),f}if(l.padding){const m=Me(l.padding);m.left&&(f.paddingLeft=`${m.left}px`),m.top&&(f.paddingTop=`${m.top}px`),m.right&&(f.paddingRight=`${m.right}px`),m.bottom&&(f.paddingBottom=`${m.bottom}px`)}return f}),i=t.ref(null),c=gt(()=>{if(r&&i.value){const f=Fn(i.value);r.contentInnerHeight=f.height,r.contentInnerWidth=f.width}},0);return t.onMounted(()=>{c()}),n&&r&&t.watch([()=>s.value,()=>a.value],([])=>{c()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:Ei,create:Di,scope:JB}=Y("content"),xi=Di(Ti(Ei));function Ii(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(xi,[["render",Ii]]),yt="GroupStateKey",ts=Symbol.for("GroupScopeKey");function Bo(){return t.inject(ts,!1)}function Vo(e=!0){t.provide(ts,e)}function qi(e,o={}){Reflect.ownKeys(o).forEach(n=>{if(typeof n!="string")return;const a=o[n];Ar(a)||(e[n]=a)})}function Mi(e,o={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};qi(n,o);const a=t.shallowRef(n),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(yt,r),r}function Go(e,o,l=-1,n=-1,a=!1,r,s,i){const c=e.get(yt);if(!c)return;const f=e.get("groupLayout")??{};l===-1&&(l=f.column??1),n===-1&&(n=f.gutter??0),r||(r=f.minItemWidth??-1),s||(s=f.maxItemWidth??-1);const m=se(r),d=se(s);i||(i=f.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(;d!==-1&&b>d;)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(yt):l=e.get(yt),l.layout}function $o(e,o=!1){let l;return o?l=e.getForParent(yt):l=e.get(yt),l.order}function Ma(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=Ma(o.column,l),s>0&&(r.width=`${s}%`);const i=Ma(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,f=c+(o.column-c);return e.index=e.index+(f-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 os=Symbol("RollingStateKey");function zi(e){t.provide(os,e)}function Pi(){return t.inject(os,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 Li(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 Fi(e,o,l){if(e<=0)return"1fr";const n=(e-(o-1)*l)/o;return n>0?`${n}px`:"1fr"}const Ri={...ue,...Jr,..._r};function Oi(e,o,l){return{props:Ri,emits:["update:collapse"],setup(n,a){const r=Pn(n.name,n,es),s=Mi(r,{type:n.type}),i=Bo();Vo(!0);const c=n.rollingDisplay?Pi():null,f=t.ref(null),m=t.computed(()=>n.rollingDisplay?c&&!c.disabled:!1),d=t.computed(()=>i&&r?Ao(r,!0).value:null),h=t.getCurrentInstance(),y=(O,Q=!1)=>{const Z=h?.proxy;Z&&typeof Z.setNameValidateRules=="function"&&Z.setNameValidateRules(O,!0,Q)};t.watch([()=>n.rules,()=>n.pureDataRules],([O,Q],[Z,ee])=>{if(O&&Z){const _=t.toRaw(Z),oe=t.toRaw(O),le=oe?Reflect.ownKeys(oe):[];(_?Reflect.ownKeys(_):[]).forEach(ve=>{le.includes(ve)||(oe[ve]=[])}),y(oe)}if(Q&&ee){const _=t.toRaw(ee),oe=t.toRaw(Q),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 Q=i?$o(r,!0):null;if(d.value&&Q){if(d.value.type==="grid"){const Z=Eo(Q,d.value,n.span,n.offset);Object.assign(O,Z)}else if(d.value.type==="flow"){const Z=To(Q,d.value,n.span,n.offset,n.width);Object.assign(O,Z)}}}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 Q="";if(n.columnWidth)Q=`repeat(auto-fill, ${n.columnWidth})`;else{const Z=Fi(B.value,s.layout.value.column,s.layout.value.gutter);Q=`repeat(${s.layout.value.column}, ${Z})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":Q}}}),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),M=O=>{const Q=Fn(O).width;Q>0&&Q!==B.value&&(B.value=Q)};Go(r,B.value,b.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&t.watch([B,b,p],([O,Q,Z])=>{s.order.index=0,Go(r,O,Q,Z,!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})),z=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),P=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,Q=!0)=>{const Z=P.value;if(Z&&U.value!==O){if(H=H===-1?Li(Z):H,W.value=!0,Q)if(Z.style["will-change"]="height",Z.ontransitionend=function(){Z.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 K=()=>{L()},L=O=>{O=O??!U.value,G(O)};Te({toggleCollapse:L,doLayout:()=>{N[0]&&(M(N[0]),Go(r,B.value,b.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let q=null,T=!0;const R=O=>{if(n.rules){const Q=t.toRaw(n.rules);y(Q)}if(n.pureDataRules){const Q=t.toRaw(n.pureDataRules);y(Q,!0)}if(st&&(O&&G(me(n.collapse),!1),n.autoLayout&&Array.isArray(N)&&N.length>0)){const Q=N[0];M(Q),window.ResizeObserver&&(q=new window.ResizeObserver(()=>{M(Q)}),q.observe(Q))}},I=()=>{q?.disconnect(),q=null},F=!m.value||c?.acquire();F&&(f.value=m.value?!0:null),t.onMounted(()=>{if(F&&(R(T),T=!1),m.value&&c){let O=null,Q=c.initialHeight;c.observe(P.value,Z=>{if(Z!==f.value)if(Z)f.value=!0,U.value||(D.value=""),O=setTimeout(()=>{O=null,f.value!==!1&&(R(T),T=!1)},100);else{if(O!==null&&clearTimeout(O),f.value=!1,!U.value)if(T)D.value=c.initialHeight;else{let ee=hn(P.value);ee<=0?D.value=Q:(D.value=`${ee}px`,Q=D.value)}T||I()}})}}),t.onUnmounted(()=>{q?.disconnect(),c&&c.unobserve(P.value)});const j=(O="right")=>{const Q=[];if(A.value){const oe={class:w.value},le=t.h("span",oe,[A.value]);Q.push(le)}const Z={class:z.value},ee=n.collapseIcon??l,_=t.h(ee,Z);return Q.push(_),Q.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${O}`]:!0},onClick:K},Q):null},X=(O,Q,Z,ee)=>{const _={...v.value};return Q===0&&(_[`${g}__first`]=!0),Z>=ee-1&&(_[`${g}__last`]=!0),t.h("div",{ref:C,key:`${Q}`,class:_,style:u.value},O)};return()=>{if(m.value&&f.value!==!0){const _=n.tag||"div";return t.h(_,{ref:P,prop:n.name,class:{[`${g}`]:!0,"is-collapse":W.value},style:k.value},[])}s.order.index=0;const O=[];let Q=0;if(a.slots.header){const _={key:`${Q++}`,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 Ee=t.h("div",le);_.push(Ee)}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:`${Q++}`,ref:E,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},Ee=t.h("div",le,_);O.push(Ee)}}V();const Z=a.slots.default?a.slots.default():[],ee=s.layout.value.type;if(ee==="grid"){const _=X(Z,Q++,0,Z.length);O.push(_)}else if(ee==="flow"){const _=X(Z,Q++,0,Z.length);O.push(_)}else for(let _=0;_<Z.length;_++){const oe=Z[_],le=X([oe],Q++,_,Z.length);O.push(le)}if(S.value){const _=n.tag||"div";return t.h(_,{ref:P,prop:n.name,class:{[`${g}`]:!0,"is-collapse":W.value},style:k.value},[O])}else return O}}}}const{componentName:Ki,create:Ui,scope:Hi}=Y("group"),Un=Ui(Oi(Ki,Hi,te.RectUp));function ji(e){return e===window}const Wi=/matrix\((.+)\)/,ns=e=>{const o=t.unref(e);if(!o)return{x:0,y:0};if(ji(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:f}=window.getComputedStyle(a);if(f){const m=Wi.exec(f);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 Yi{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 Xi{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 Yi,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 za=new Xi,ls={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Qi,create:Gi}=Y("price"),Zi=Gi({props:{...ls},setup(e){const o=t.computed(()=>({[Qi]:!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}}}),Ji=["innerHTML"],_i=["innerHTML"];function ec(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,Ji)):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,_i)):t.createCommentVNode("",!0)],2)}const Xe=J(Zi,[["render",ec]]),{componentName:Zo,create:tc}=Y("hint-text"),oc=tc({components:{Price:Xe},props:{...ls,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),f=(w,z,P,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 K={top:null,right:null,bottom:null,left:null},L=[];for(let $=0;$<G.length;$++){const q=G[$];if(L[0]=q,H[1]&&(L[1]=H[1]),q==="top"){const T=z.y-U-e.arrowSize-e.offset;if(T>=0){K.top=T;let R=0;H[1]==="start"?R=z.x:H[1]==="end"?R=z.x+P-x:R=z.x+P/2-x/2;const I=D-R-x;I<0?(R+=I,d.value=-I):d.value=0,K.left=R<0?0:R;break}}else if(q==="bottom"){const T=z.y+E+e.arrowSize+e.offset;if(T+U<=W){K.top=T;let R=0;H[1]==="start"?R=z.x:H[1]==="end"?R=z.x+P-x:R=z.x+P/2-x/2;const I=D-R-x;I<0?(R+=I,d.value=-I):d.value=0,K.left=R<0?0:R;break}}else if(q==="left"){const T=z.x-x-e.arrowSize-e.offset;if(T>=0){K.left=T;let R=0;H[1]==="start"?R=z.y:H[1]==="end"?R=z.y+E-U:R=z.y+E/2-U/2,K.top=R<0?0:R;break}}else if(q==="right"){const T=z.x+P+e.arrowSize+e.offset;if(T+x<=D){K.left=T;let R=0;H[1]==="start"?R=z.y:H[1]==="end"?R=z.y+E-U:R=z.y+E/2-U/2,K.top=R<0?0:R;break}}}return{bestPlacement:L.join("-"),bestInsetRect:K}},m=(w,z,P=10)=>{if(!st||z===!1||!w)return;n.value=ns(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}=f(e.placement,n.value,a.value,r.value,x,E);s.value=U,l.value=D,i.value=!0},d=t.ref(0),h=gt(()=>{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=gt(w=>{const z=w[0];z&&(k.value=z.isIntersecting)},10),u=new IntersectionObserver(v);t.watch([()=>e.message,()=>e.visible],([w,z])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{m(e.message,e.visible)},0),za.watch(e.reference,h),u.observe(e.reference)}),t.onBeforeMount(()=>{za.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 z=document.documentElement.clientWidth||document.body.clientWidth;return w["max-width"]=`${z}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+d.value}px`,w.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(w.right=`${e.arrowOffset-d.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+d.value}px`,w.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(w.right=`${e.arrowOffset-d.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),M=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:M,onClickOverlay:()=>{y.value=!1,o.emit("update:visible",!1)}}}});function nc(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 as=J(oc,[["render",nc]]);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={},lc=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()}},ac=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(as,e);return t.render(n,o),e.id}},rc=e=>{e.unmount=fo;let o=e.id??`hinttext_${lc.get()}`;e={...gn,...e},e.id=o,pt.set(o,e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(as,e);return t.render(n,l),document.body.appendChild(l),o},sc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},ot={show(e,o,l={},n=!0){sc(o);const a=l.id;return a&&pt.has(a)?ac({...l,message:o,reference:e}):(n&&fo(),rc({...l,message:o,reference:e}))},hide(e){fo(e)},install(e){e.config.globalProperties.$hintText=ot}},{componentName:Pa,create:ic}=Y("item"),cc=ic({inheritAttrs:!0,props:{...ue,...de},emits:["appear","disappear"],setup(e,o){const l=e.prop??o.attrs.name;we({componentName:Pa,validate:!1},l);const n=Ke(),a=Bo();Vo(!1);const r=t.computed(()=>a&&n?Ao(n,!1).value:null),s=Pa,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]=!!z.value,O[e.warnMarkClass]=!!A.value,O[e.infoMarkClass]=!!B.value,typeof i.value=="function"){const Q=i.value(l);O[Q]=!0}else if(typeof i.value=="string"){const Q=i.value;O[Q]=!0}return O}),f=t.ref(null),m=t.computed(()=>{const O={};if(e.width)e.width!=="auto"&&(O.width=pe(e.width));else{const Q=a&&n?$o(n,!1):null;if(r.value&&Q){if(r.value.type==="grid"){const Z=Eo(Q,r.value,e.span,e.offset);Object.assign(O,Z)}else if(r.value.type==="flow"){const Z=To(Q,r.value,e.span,e.offset,e.width);Object.assign(O,Z)}}}if(typeof f.value=="function"){const Q=f.value(l);Q&&Object.assign(O,Q)}else if(f.value&&typeof f.value=="object"){const Q=f.value;Object.assign(O,Q)}return O}),d=t.ref(null),h=t.computed({get:()=>d.value??me(e.isRequired),set:O=>{d.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});Te({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){f.value=O}});const B=t.computed(()=>e.infoTip||V.infoTip),M=t.computed(()=>e.infoIcon||V.infoIcon),A=t.computed(()=>e.warnTip||V.warnTip),w=t.computed(()=>e.warnIcon||V.warnIcon),z=t.computed(()=>e.errorTip||V.errorTip),P=t.computed(()=>e.errorIcon||V.errorIcon),E=t.computed(()=>z.value?"error":A.value?"warn":B.value?"info":""),x=t.computed(()=>E.value.length>0),U=t.computed(()=>E.value==="error"?z.value:E.value==="warn"?A.value:E.value==="info"?B.value:""),D=t.computed(()=>E.value==="error"?P.value:E.value==="warn"?w.value:E.value==="info"?M.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},K=()=>{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},L=t.computed(()=>o.slots.fixedPreTip),$=t.computed(()=>({[`${s}__fixed-pre-tip`]:!0})),q=t.computed(()=>o.slots.fixedTip),T=t.computed(()=>({[`${s}__fixed-tip`]:!0})),R=t.ref();let I="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([O,Q,Z,ee])=>{R.value&&(O&&!ie(Q)?I?ot.show(R.value,Q,{...ee,id:I,type:Z},!0):I=ot.show(R.value,Q,{...ee,type:Z},!0):ot.hide(I))});let F=null;const j=()=>{F||!R.value||(F=new IntersectionObserver(O=>{let Q=!1;for(let Z of O)if(Z.intersectionRatio>0){Q=!0,Q&&o.emit("appear",Z);break}Q||o.emit("disappear")}),F.observe(R.value))},X=()=>{!F||!R.value||(F.unobserve(R.value),F=null)};return t.watch(()=>me(e.appearListen),O=>{O?j():X()}),t.onMounted(()=>{me(e.appearListen)&&j()}),t.onUnmounted(X),{classes:c,styles:m,mainClasses:v,hasLabel:y,labelClasses:u,labelStyles:b,labelStringClasses:S,contentClasses:N,contentStyles:C,contentRef:R,hasTip:x,mTip:U,mIcon:D,renderIcon:G,renderTip:K,tipClasses:W,tipStyles:H,hasFixedTip:q,fixedTipClasses:T,hasFixedPreTip:L,fixedPreTipClasses:$}}}),uc=["prop"];function dc(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,uc)}const be=J(cc,[["render",dc]]);function fc(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 f={};if(l.width)l.width!=="auto"&&(f.width=pe(l.width));else if(i&&s){const m=Ao(s,!1),d=$o(s,!1);if(m.value&&d){if(m.value.type==="grid"){const h=Eo(d,m.value,l.span,l.offset);Object.assign(f,h)}else if(m.value.type==="flow"){const h=To(d,m.value,l.span,l.offset,l.width);Object.assign(f,h)}}}return f});return()=>{const f=[];if(n.slots.default){const d=n.slots.default();if(l.divide)for(let h=0;h<d.length;h++){if(h>0){const y=t.h("div",{class:{[`${a}__divide`]:!0}});f.push(y)}f.push(d[h])}else Reflect.apply([].push,f,d)}const m={class:r.value,style:c.value};return t.h("div",m,f)}}}}const{componentName:mc,create:pc,scope:_B}=Y("row-item"),Hn=pc(fc(mc));function hc(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"})),f=t.computed(()=>{const m={};if(l.width)l.width!=="auto"&&(m.width=pe(l.width));else{const d=r&&a?$o(a,!1):null;if(s.value&&d){if(s.value.type==="grid"){const h=Eo(d,s.value,l.span,l.offset);Object.assign(m,h)}else if(s.value.type==="flow"){const h=To(d,s.value,l.span,l.offset,l.width);Object.assign(m,h)}}}return m});return()=>{const m={class:c.value,style:f.value};return n.slots&&typeof n.slots.default=="function"?t.h("div",m,n.slots.default()):t.h("div",m)}}}}const{componentName:gc,create:yc,scope:e2}=Y("slot-item"),jn=yc(hc(gc)),La={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 vc(e,o,l,n){return{props:{...ue,...de,...La},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=$e(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),{toLocaleRefs:f}=ae.useFoxI18n(o),m=f(a,["placeholder"]),d=t.ref(!1),h=Ae(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=Ae(a,"hintText"),b=t.ref(!1);const S=x=>{let D=x.target.value;d.value=!0,ie(p.value)||(b.value=!0),c("focus",D,x)},N=x=>{setTimeout(()=>{b.value&&(b.value=!1),d.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&&!P.value&&(x.display="none"),x}),B=t.computed(()=>ge(a.unit)>0),M=t.computed(()=>!P.value),A=t.computed(()=>({[`${y}__unit`]:!0,hidden:!M.value})),w=x=>{h.value="",c("update:modelValue","",x),c("change","",x),c("clear","")},z=t.computed(()=>me(a.clearable)&&!s.value&&!i.value),P=t.computed(()=>{let x=ge(h.value)>0;return me(a.clearable)&&x&&d.value}),E=t.computed(()=>({action:!0,hidden:!P.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(z.value){const T={class:["action-icon"]},R=t.h(n,T),I={class:E.value,onClick:w},F=t.h("view",I,{default:()=>[R]});W.push(F)}if(B.value){const T=t.h("view",{class:A.value},[a.unit]);W.push(T)}const H={class:C.value,style:V.value},G=t.h("view",H,{default:()=>W});U.push(G);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 $={...In(a,La),hintText:p.value,hintVisible:b.value};return t.h(l,$,K)}}}}const{componentName:kc,create:bc,scope:Sc}=Y("input-item"),Wn=bc(vc(kc,Sc,be,te.CircleClose));function Fa(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 Ra(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=Nr(`${e}`,`${o}`);return Fa(n)}else{let n=xn(`${e}`,Br(`${o}`),20);return Fa(n)}}function Cc(e,o=-1,l=!1,n=3,a=","){return po(e,o,l,n,a)}function Oa(e,o,l,n,a=!0){if(e=="")return"";if(e=Vr(e),o=fe(o),o==1)return e;if(n)e=Ra(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=Ra(e,r)}return e}function Ka(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 Ua={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 wc(e,o,l,n){return{props:{...ue,...de,...Ua},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=$e(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),f=t.ref(!1),m=Ae(a,"modelValue"),d=t.ref("");t.watch([()=>m.value,()=>a.rates,()=>a.precision],([H,G,K])=>{if(ie(H)){d.value="";return}const L=Oa(H,G,K,!1);d.value!==L&&(d.value=L)},{immediate:!0});const h=t.computed(()=>{let H="";return f.value&&(H=d.value),H}),{t:y}=ae.useFoxI18n(o),g=t.computed(()=>{let H=a.placeholder??"";return!f.value&&!ie(d.value)?H=Cc(d.value,a.decimalLength,a.autoPadding,a.digits,a.separator):H=ie(H)?y(["placeholder"]):H,H}),k=e,v=t.computed(()=>({[k]:!0,[`${k}--disabled`]:s.value,[`${k}__placeholder`]:d.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 ie(H)&&(H=a.errorTip??""),H}),N=t.ref(""),C=t.ref(!1),V=H=>{let K=H.target.value;if(ie(K)){d.value="",m.value="",c("update:modelValue","",H),c("change","",H),me(a.showTip)&&C.value&&(C.value=!1);return}if(K.length>=2){let L=K;if(L.charAt(0)=="-"&&(L=L.substring(1)),L.length>=2&&L.charAt(0)=="0"&&L.charAt(1)!="."){t.triggerRef(d);return}}if(K!="-"){if(!Mr(K)){t.triggerRef(d);return}if(a.integerLength!=-1&&zr(K)>Number(a.integerLength)){t.triggerRef(d);return}if(a.decimalLength&&a.decimalLength!=-1&&Pr(K)>Number(a.decimalLength)){t.triggerRef(d);return}let L=Ka(K,a);if(L.maxValid===!1){b.value=L.message,t.triggerRef(d);return}}else if(a.min!=null&&fe(a.min)>=0){t.triggerRef(d);return}N.value=K,me(a.showTip)&&(C.value=K.length>0),d.value=K,m.value=Oa(K,a.rates,a.precision,!0),c("update:modelValue",m.value,H),c("change",m.value,H)},B=H=>{if(f.value=!0,me(a.showTip)){let G=d.value;ie(G)&&(G=a.hintText),ie(G)||(N.value=G,C.value=!0)}b.value="",c("focus",m.value,H)},M=H=>{if(setTimeout(()=>{f.value=!1,me(a.showTip)&&C.value===!0&&(C.value=!1)},0),!ie(d.value)){let G=Ka(d.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&&!z.value&&!D.value&&(H.display="none"),H}),z=t.computed(()=>ge(a.unit)>0),P=t.computed(()=>!D.value),E=t.computed(()=>({[`${k}__unit`]:!0,hidden:!P.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&&f.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:M},G=[],K=t.h("input",H);G.push(K);let L=[];if(U.value){const j={class:["action-icon"]},X=t.h(n,j),O={class:W.value,onClick:x},Q=t.h("view",O,{default:()=>[X]});L.push(Q)}if(z.value){const j=t.h("view",{class:E.value},[a.unit]);L.push(j)}const $={class:A.value,style:w.value},q=t.h("view",$,{default:()=>L});G.push(q);const T={default:()=>G};T.label=r.slots.default,T.prepend=r.slots.prepend,T.append=r.slots.append,T.fixedPreTip=r.slots.fixedPreTip,T.fixedTip=r.slots.fixedTip;let I={...In(a,Ua),errorTip:S.value,hintText:N.value,hintVisible:C.value,hintType:"number"};return t.h(l,I,T)}}}}const{componentName:Nc,create:Bc,scope:Vc}=Y("money-item"),Yn=Bc(wc(Nc,Vc,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:Ac,create:$c,scope:Tc}=Y("textarea"),Ec=$c({props:{...yn},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:o}){let{toLocaleRefs:l}=ae.useFoxI18n(Tc);const n=l(e,["placeholder"]),a=t.ref(),r=t.computed(()=>{const h=Ac;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})}}}}),Dc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],xc={key:0,class:"fox-textarea__limit"};function Ic(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,Dc),e.limitShow?(t.openBlock(),t.createElementBlock("view",xc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const xo=J(Ec,[["render",Ic]]);function qc(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=$e(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),f=Ae(a,"modelValue"),m=k=>{f.value=k,c("update:modelValue",k,{}),c("change",k,{})};let d=Ae(a,"hintText"),h=t.ref(!1);const y=k=>{ie(d.value)||(h.value=!0),c("focus",f.value,k)},g=k=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",f.value,k)};return()=>{const v={...he(a,yn),disabled:s.value,readonly:i.value,value:f.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:Mc,create:zc,scope:Pc}=Y("textarea-item"),Xn=zc(qc(Mc,Pc,be,xo));function Lc(e){return e===window}const Ve=e=>{const o=t.unref(e);if(Lc(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:{}}},rs=2e3;let Ha=rs;const Fc=(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!==rs&&(Ha=Number(l.zIndex)),n("update:visible",!0),a.zIndex=++Ha,l.destroyOnClose&&(a.showSlot=!0),n("open")},f=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+l.duration*1e3)},m=k=>{n("click-pop",k)},d=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():f()}),t.watch(()=>l.closeable,k=>{a.closed=k}),{...t.toRefs(a),popStyle:s,transitionName:i,classes:r,onClick:m,onClickCloseIcon:d,onClickOverlay:h,onOpened:y,onClosed:g}}});let Vt=0;const ja="fox-overflow-hidden",Wa=()=>st?document.body:{classList:[]},Rc=e=>[()=>{if(e())try{!Vt&&Wa().classList.add(ja),Vt++}catch{}},()=>{if(e()&&Vt)try{Vt--,!Vt&&Wa().classList.remove(ja)}catch{}}],Oc={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:Kc,create:Uc}=Y("overlay"),Hc=Uc({props:{...Oc},emits:["click","update:visible"],setup(e,{emit:o}){const[l,n]=Rc(()=>e.lockScroll),a=t.computed(()=>({[Kc]:!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 jc(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(Hc,[["render",jc]]),{componentName:Wc,create:Yc}=Y("popup"),Xc=Yc(Fc(Wc,{FoxOverLay:at,Close:te.Close}));function Qc(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(Xc,[["render",Qc]]),Ya=10;function Gc(e,o){return e>o&&e>Ya?"horizontal":o>e&&o>Ya?"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),f=t.ref(0),m=t.ref(""),d=()=>m.value==="vertical",h=()=>m.value==="horizontal",y=()=>{s.value=0,i.value=0,c.value=0,f.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),f.value=Math.abs(i.value),n.value=Date.now()-l.value,m.value||(m.value=Gc(c.value,f.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:f,direction:m,isVertical:d,isHorizontal:h}}const ss={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,...ss,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 is=36;function Zc(){return is}function Jc(e){is=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 _c(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 Xa(e,o){return typeof e.itemOptions=="function"?e.columnOptions(o):e.columnOptions}let eu=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 tu(){const e=t.getCurrentInstance();return new eu(e.proxy)}function Qa(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 ou(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 f=l[s].findIndex(m=>{if(r==="text")return qe(e,m)===i;if(r==="value"){let d=rt(e,m);return d==null&&(d=qe(e,m)),d===i}else if(r==="item")return Qa(e,m,i)});if(f==-1)break;a.push(f)}else{let s=l[0];for(let i=0;i<o.length;i++){const c=o[i];let f=s.findIndex(d=>{if(r==="text")return qe(e,d)===c;if(r==="value"){let h=rt(e,d);return h==null&&(h=qe(e,d)),h===c}else if(r==="item")return Qa(e,d,c)});if(f==-1)break;a.push(f);const m=kn(e,s[f]);if(!Array.isArray(m))break;s=m}}return a}function Ga(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 f=i[c],m=qe(e,f);if(a.texts.push(m),a.items.push(f),r==="text")a.values.push(m);else if(r==="value"){let d=rt(e,f);d==null&&(d=m),a.values.push(d)}else a.values.push(f)}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 f=s[c],m=Object.assign({},f);m.children=null;const d=qe(e,f);if(a.texts.push(d),a.items.push(m),r==="text")a.values.push(d);else if(r==="value"){let h=rt(e,f);h==null&&(h=d),a.values.push(h)}else a.values.push(m);if(!Array.isArray(f.children))break;s=f.children}}return a}function Za(e){return{text:e,value:e}}const nu=15,lu=300,au=200,{create:ru}=Y("picker-column");function su(e){e.stopPropagation()}function iu(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&su(e)}const cu=ru({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},...ss},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>=d.currIndex+8||B<=d.currIndex-8,i=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${r.value}px`})),c=B=>`transform: rotate3d(1, 0, 0, ${-d.rotation*B}deg) translate3d(0px, 0px, 104px)`,f=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+r.value}px, 0)`})),m=t.ref(null),d=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=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},u=(B,M=!1,A=!1)=>{if(d.currIndex=B,M){const w=()=>{d.moving=!1,o("update:modelValue",B),o("change",B)};A?d.transitionEndTrigger=w:w()}},p=(B,M,A)=>{let w=B+d.startDistance;if(M==="end"){const z=-(h.value.length-1)*e.itemHeight;w<z&&(w=z,(!A||A<=0)&&(A=e.swipeDuration)),w>0&&(w=0,(!A||A<=0)&&(A=e.swipeDuration));let P=Math.abs(Math.round(-w/e.itemHeight));const E=-P*e.itemHeight,x=`${(P+1)*d.rotation}deg`,U=A?A>0:!1;u(P,!0,U),b(E,M,A,x)}else{let z=(-w/e.itemHeight+1)*d.rotation;const P=(h.value.length+1)*d.rotation,E=0;if(z=Math.min(Math.max(z,E),P),e.threeDimensional&&(z<E||z>P))return;b(w,null,void 0,`${z}deg`)}},b=(B=0,M,A=au,w)=>{M==="end"?d.scrollTime=A:d.scrollTime=0,d.deg=w,d.scrollDistance=B},S=(B,M)=>(B=Math.abs(B/M)/.003*(B<0?-1:1),B),N=B=>{e.readonly||(d.startDistance=d.scrollDistance,k.start(B),d.transitionEndTrigger=null)},C=B=>{e.readonly||(d.moving=!0,k.move(B),k.isVertical()&&(d.moving=!0,iu(B,!0)),p(k.deltaY.value,"",0))},V=()=>{if(e.readonly)return;const B=k.deltaY.value,M=k.duration.value;if(M<lu&&Math.abs(B)>nu){const w=S(B,M);p(w,"end",e.swipeDuration)}else p(B,"end",0)};return t.watch(()=>e.modelValue,B=>{if(d.currIndex!==B){d.currIndex=B;const M=-B*e.itemHeight;p(M)}}),t.onMounted(()=>{const B=-e.modelValue*e.itemHeight;p(B)}),{classes:l,styles:n,contentClasses:a,source:h,itemText:y,itemValue:g,...t.toRefs(d),roller:m,getItemText:qe,onTouchStart:N,onTouchMove:C,onTouchEnd:V,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:f,stopMomentum:v}}}),uu={key:1,class:"fox-picker__item-tile"};function du(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",uu,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Ja=J(cu,[["render",du]]),{create:fu,componentName:mu,scope:pu}=Y("picker"),hu=fu({components:{[Ja.name]:Ja,[ce.name]:ce},props:{...vn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:o}){const{toLocaleRefs:l,t:n}=ae.useFoxI18n(pu),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Zc());t.watch(()=>e.visible,A=>{A&&s.value<=0&&setTimeout(()=>{if(r.value){const w=Ve(r.value);s.value=w.height,Jc(s.value)}},50)});const i=t.computed(()=>({[mu]:!0})),c=tu(),f=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([A,w])=>{if(A){let z=await c.load("picker",A,w);if(z.length>0){let P=z[0];if(Array.isArray(P)){if(typeof P[0]=="string"){let E=z,x=[];E.forEach(U=>{let D=U.map(W=>Za(W));x.push(D)}),m.value=x}else m.value=z;f.value="multipleColumn"}else if(typeof P=="string"){let E=z,x=[],U=E.map(D=>Za(D));x.push(U),m.value=x,f.value="singleColumn"}else{const E=kn(e,P);Array.isArray(E)?(f.value="cascade",m.value=[z]):(f.value="singleColumn",m.value=[z])}}else m.value=[]}},{immediate:!0});const d=t.ref([]),h=t.ref(e.modelValue),y=t.ref([]),g=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([A,w])=>{let z=ou(e,A,w,f.value);if(!xe(z,g.value)){g.value=z;let P=Ga(e,z,w,f.value);P&&(d.value=P.texts,o("update:text",d.value))}});const k=t.ref(e.visible);t.watch(()=>e.visible,A=>{k.value=A});const v=A=>{let w=Xa(e,A);return Be(w)?w.defaultIndex??0:0},u=A=>{if(e.readonly===!0)return!0;let w=Xa(e,A);return Be(w)?w.readonly??!1:!1},p=(A,w)=>{let z=g.value;z[A]=w;for(let E=0;E<A;E++)z[E]==null&&(z[E]=v(E));if(f.value==="cascade")for(let E=A+1;E<S.value.length;E++){let x=v(E);E<z.length?z[E]=x:z.push(x)}else for(let E=z.length;E<S.value.length;E++){let x=v(E);z.push(x)}g.value=z;let P=Ga(e,z,m.value,f.value);P&&(d.value=P.texts,h.value=P.values,y.value=P.items)},b=A=>A<g.value.length?g.value[A]:v(A),S=t.computed(()=>{if(m.value.length==0)return[];if(f.value=="singleColumn"||f.value=="multipleColumn")return m.value;let A=[],w=0,z=m.value[0],P=0;for(;;){let E=z.map(D=>{let W=Object.assign({},D);return _c(e,W,null),W});A.push(E),w>=g.value.length?P=0:P=g.value[w],(P<0||P>=z.length)&&(P=0);let x=z[P];const U=kn(e,x);if(!Array.isArray(U))break;z=U,w++}return A}),N=t.computed(()=>fe(+e.visibleItemCount-1)/2*s.value);return{...a,pickerLineRef:r,classes:i,columns:S,dataType:f,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),f.value==="singleColumn"){let w=h.value.length>0?h.value[0]:"",z=y.value.length>0?y.value[0]:null;e.readonly||(o("update:modelValue",w),o("update:text",d.value),o("change",w,z)),o("confirm",w)}else e.readonly||(o("update:modelValue",h.value),o("update:text",d.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}f.value==="singleColumn"?(o("update:modelValue",""),o("change","")):(o("update:modelValue",[]),o("change",[])),o("clear",""),o("update:visible",!1)}}}}),gu={class:"fox-picker__bar"},yu={class:"fox-picker__title"},vu={class:"fox-picker__bar__action"},ku={class:"fox-picker__column"};function bu(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",gu,[t.createElementVNode("view",yu,t.toDisplayString(e.title),1),t.createElementVNode("view",vu,[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",ku,[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,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(f),"column-index":f,modelValue:e.getIndex(f),"onUpdate:modelValue":m=>e.change(f,m),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const vt=J(hu,[["render",bu]]);function Su(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 f=Ce(t.computed(()=>i.disabled)),m=$e(t.computed(()=>i.readonly)),{emitEvent:d}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),k=Ae(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`]:f.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const q={};return S.value&&(q["text-align"]=S.value),q}),C=t.ref(!1),V=()=>{C.value=!0},B=q=>{C.value=q},M=q=>{k.value=q,d("update:modelValue",q)},A=(q,T)=>{d("change",q,T)},w=q=>{let R=q.target.value;g.value=!0,d("focus",R,q)},z=q=>{setTimeout(()=>{g.value=!1},0);let R=q.target.value;i.maxLength&&R.length>Number(i.maxLength)&&(R=R.slice(0,Number(i.maxLength))),d("blur",R,q)},P=q=>{v.value=q,Array.isArray(q)&&q.length===0?d("update:text",q[0]):d("update:text",q)},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=q=>{k.value="",d("update:modelValue","",q),d("change","",q),d("clear","")},H=t.computed(()=>i.clearable&&!f.value&&!m.value),G=t.computed(()=>ge(k.value)>0&&g.value),K=q=>{G.value?W(q):V()},L=t.computed(()=>G.value&&H.value?n:a),$=t.computed(()=>({action:!0}));return()=>{const q={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:z};s&&(q.disabled=!0);const T=[],R=t.h("input",q);T.push(R);const I=[],F={class:["action-icon"]},j=t.h(L.value,F),X={class:$.value,onClick:K},O=t.h("view",X,{default:()=>[j]});if(I.push(O),x.value){const ve=t.h("view",{class:D.value},[i.unit]);I.push(ve)}const Q={class:E.value},Z=t.h("view",Q,{default:()=>I});T.push(Z);const ee={default:()=>T};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=f.value||m.value,_.visible=C.value,_["onUpdate:visible"]=B,_.modelValue=k.value,_["onUpdate:modelValue"]=M,_.text=v.value,_["onUpdate:text"]=P,_.onChange=A;const oe=t.h(r,_);ee.hide=()=>[oe];const le=he(i,de,ue);return t.h(l,le,ee)}}}}const{componentName:Cu,create:wu,scope:Nu}=Y("picker-item"),Qn=wu(Su(Cu,Nu,be,te.CircleClose,te.ArrowRight,vt,!1)),_t=(e,o,l)=>e.map(n=>{const{value:a="value",text:r="text",children:s="children"}=l??{},{[a]:i,[r]:c,[s]:f,...m}=n,d={loading:!1,...m,level:o?(o&&o.level||0)+1:0,value:i,text:c,children:f,_parent:o};return d.children&&d.children.length&&(d.children=_t(d.children,d,l)),d}),cs=(e,o)=>{let l=0,n;for(;(n=e[l++])&&o(n)!==!0;)n.children&&n.children.length&&cs(n.children,o)},Bu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Vu=(e,o)=>{const l={...Bu,...o||{}},{topId:n,idKey:a,pidKey:r,sortKey:s}=l;let i=[],c={};return e.forEach(f=>{f={...f};const{[a]:m,[r]:d}=f,h=c[d]=c[d]||[];!i.length&&d===n&&(i=h),h.push(f),f.children=c[m]||(c[m]=[])}),s&&Object.keys(c).forEach(f=>{c[f].length>1&&c[f].sort((m,d)=>m[s]-d[s])}),c=null,i},Au=/scroll|auto|overlay/i,us=window;function $u(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function bn(e,o=us){let l=e;for(;l&&l!==o&&$u(l);){const{overflowY:n}=window.getComputedStyle(l);if(Au.test(n))return l;l=l.parentNode}return o}function ds(e,o=us){const l=t.ref();return t.onMounted(()=>{e.value&&(l.value=bn(e.value,o))}),l}const{create:Tu}=Y("sticky"),Eu=Tu({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 f=e.container;if(!l.value&&!f)return;const m=Ve(l),d=n.value,h=Ve(d),y=Ve(f);a.height=m.height;const g=()=>{let v=!1;if(e.position==="top")v=f?r.value>m.top&&y.bottom>0:r.value>m.top;else{const u=document.documentElement.clientHeight;v=f?y.bottom>0&&u-r.value-h.height>y.top:u-r.value<m.bottom}return v},k=()=>{if(f)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,f=>{o("change",f)}),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 Du(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(Eu,[["render",Du]]),xu=(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 f="";const m=(h,y)=>{let g=h;switch(e.direction=="horizontal"?(f=h>0?"right":"left",g=Math.abs(g)/r.value.width*100):(f=y>0?"bottom":"top",g=y,g=Math.abs(g)/r.value?.height*100),g>85&&(g=85),f){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,f){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 Iu{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:qu}=Y("tabs"),Mu=qu({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,z)=>{let P=w.type;if(P=P.name||P,P=="fox-tab-pane"){let E=new Iu;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(z),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(z=>z.paneKey==A);r.value.length==0||w==-1||(i.value=w)},f=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),d=t.ref([]),h=A=>{const w=m.value,z=d.value;if(!w||!z||!z[i.value])return;const P=z[i.value];let E=0;e.direction==="vertical"?E=P.offsetTop-w.offsetTop+10-(w.offsetHeight-P.offsetHeight)/2:E=P.offsetLeft-(w.offsetWidth-P.offsetWidth)/2,y(w,E,A?0:.3,e.direction)},y=(A,w,z,P)=>{let E=0;const x=P==="horizontal"?A.scrollLeft:A.scrollTop,U=z===0?1:Math.round(z*1e3/16);function D(){P==="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(),z=Math.ceil(w-e.top);window.scrollTo({top:z,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)=>{d.value[w]=A}},{tabsContentRef:p,touchState:b,touchMethods:S}=xu(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}}),M=t.computed(()=>l.fixedTitle);return{navRef:m,tabsContentRef:p,titles:r,contentStyle:N,tabsNavStyle:C,titleStyle:B,tabsActiveStyle:V,container:n,getScrollY:f,onStickyScroll:k,...u,...S,hasFixedTitle:M}}}),zu=["onClick"],Pu={key:0,class:"fox-tabs__titles-fixed-item"},Lu=["onClick"],Fu={key:0,class:"fox-tabs__titles-fixed-item"};function Ru(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,f)=>(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,f),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,zu))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Pu,[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,f)=>(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,f),key:c.paneKey,ref_for:!0,ref:m=>e.setTabItemRef(m,f)},[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,Lu))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Fu,[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(Mu,[["render",Ru]]),{create:Ou}=Y("tab-pane"),Ku=Ou({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 Uu(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(Ku,[["render",Uu]]);class _a{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 cs(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:Hu,scope:ju}=Y("cascader-pane"),Wu=Hu({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 _a([],{})),i=t.ref([]),c=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),f=new Map;let m;const d=async()=>{f.clear(),i.value=[],n.value=0,a.value=!1,m=null;let{options:u}=e;l.value.convertConfig&&(u=Vu(u,l.value.convertConfig)),s.value=new _a(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(M=>M.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=f.get(u);b||(b=new Promise(N=>{l.value.lazyLoad?.(u,N)}),f.set(u,b));const S=await b;Array.isArray(S)&&S.length>0?s.value.updateChildren(S,p):u.leaf=!0,u.loading=!1,f.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(ju),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],()=>{d()},{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}}}),Yu={role:"menu",class:"fox-cascader__pane"},Xu=["aria-checked","aria-disabled","onClick"],Qu={class:"fox-cascader__item__title"},Gu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Zu(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-tab-pane"),f=t.resolveComponent("fox-tabs");return t.openBlock(),t.createBlock(f,{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,d)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(m),key:d},{default:t.withCtx(()=>[t.createElementVNode("view",Yu,[(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",Qu,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,Xu))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Gu]),_:1}))]),_:1},8,["modelValue","onClick"])}const Ju=J(Wu,[["render",Zu]]),{create:_u}=Y("cascader"),ed=_u({components:{FoxCascaderPane:Ju,FoxPopup:ce},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}}}),td=["innerHTML"];function od(e,o,l,n,a,r){const s=t.resolveComponent("FoxCascaderPane"),i=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":o[0]||(o[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,td)):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(ed,[["render",od]]);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 fs(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 ms(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])??"",f={[e.textKey]:r,[e.valueKey]:c};a.push(f);const m=fs(e,o[s]);Array.isArray(m)&&ms(e,m,l,n+1,a);return}}function ps(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])??"",f={[e.textKey]:c,[e.valueKey]:r};a.push(f);const m=fs(e,o[s]);Array.isArray(m)&&ps(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 nd=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 ld(){const e=t.getCurrentInstance();return new nd(e.proxy)}function ad(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 f=Ce(t.computed(()=>i.disabled)),m=$e(t.computed(()=>i.readonly)),{emitEvent:d}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),k=ld(),v=t.ref([]);t.watch([()=>i.source,()=>i.params],async([R,I])=>{R&&(v.value=await k.load(R,I))},{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([R])=>{if(i.lazy===!0){S.value.length==0&&(u.value=Array.isArray(R)?R:[],b.value=Array.isArray(R)?R:[]);return}if(i.valueType==="item"){let I=R;if(!Jo(i,I,S.value)){S.value=I;let F=Zt(i,I);u.value=F.texts,b.value=F.values}}else if(i.valueType==="text"){let I=R,F=[];if(ms(i,v.value,I,0,F),!Jo(i,F,S.value)){S.value=F;let j=Zt(i,F);I.value=j.texts,b.value=j.values}}else{let I=[];if(ps(i,v.value,R,0,I),!Jo(i,I,S.value)){S.value=I;let F=Zt(i,I);u.value=F.texts,b.value=F.values}}},{immediate:!0});const N="fox-input-item",C=t.computed(()=>({[N]:!0,[`${N}__disabled`]:f.value})),V=Ne(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const R={};return V.value&&(R["text-align"]=V.value),R}),M=t.ref(!1),A=()=>{f.value===!0||m.value===!0||(M.value=!0)},w=R=>{M.value=R},z=(R,I)=>{let F=I.map(X=>{if(X==null)return X;let O={...X};return Reflect.deleteProperty(O,"text"),O[i.textKey]=X.text??"",Reflect.deleteProperty(O,"value"),O[i.valueKey]=X.value??"",O});S.value=F;let j=Zt(i,F);u.value=j.texts,b.value=j.values,i.valueType==="text"?(d("change",u.value,F),d("update:modelValue",u.value)):i.valueType==="item"?(d("change",F,F),d("update:modelValue",F)):(d("change",b.value,F),d("update:modelValue",b.value)),d("update:pathNodes",F)},P=R=>{let I=R.map(F=>{if(F==null)return F;let j={...F};return Reflect.deleteProperty(j,"text"),j[i.textKey]=F.text??"",Reflect.deleteProperty(j,"value"),j[i.valueKey]=F.value??"",j});d("pathChange",I)},E=R=>{g.value=!0,d("focus",b.value,R)},x=R=>{setTimeout(()=>{g.value=!1},0),d("blur",b.value,R)},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=R=>{S.value=[],u.value=[],b.value=[],d("update:modelValue",[]),d("change",[],R),d("clear",[]),d("update:pathNodes",[])},K=t.computed(()=>i.clearable&&!f.value&&!m.value),L=t.computed(()=>{let R=b.value&&b.value.length>0;return i.clearable&&R&&g.value}),$=R=>{L.value?G(R):A()},q=t.computed(()=>L.value&&K.value?n:a),T=t.computed(()=>({action:!0}));return()=>{const R={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&&(R.disabled=!0);const I=[],F=t.h("input",R);I.push(F);const j=[],X={class:["action-icon"]},O=t.h(q.value,X),Q={class:T.value,onClick:$},Z=t.h("view",Q,{default:()=>[O]});if(j.push(Z),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});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=M.value,le["onUpdate:visible"]=w,le.modelValue=b.value,le.onChange=z,le.onPathChange=P,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 Ee=t.h(r,le);oe.hide=()=>[Ee];const ve=he(i,de,ue);return t.h(l,ve,oe)}}}}const{componentName:rd,create:sd,scope:id}=Y("cascader-item"),Gn=sd(ad(rd,id,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 hs={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",f="day",m="week",d="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(P,E,x){var U=String(P);return!U||U.length>=E?P:""+Array(E+1-U.length).join(x)+P},S={s:b,z:function(P){var E=-P.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 P(E,x){if(E.date()<x.date())return-P(x,E);var U=12*(x.year()-E.year())+(x.month()-E.month()),D=E.clone().add(U,d),W=x-D<0,H=E.clone().add(U+(W?-1:1),d);return+(-(U+(x-D)/(W?D-H:H-D))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:d,y,w:m,d:f,D:g,h:c,m:i,s,ms:r,Q:h}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},N="en",C={};C[N]=p;var V=function(P){return P instanceof w},B=function P(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 P(H[0])}else{var G=E.name;C[G]=E,D=G}return!U&&D&&(N=D),D||!U&&N},M=function(P,E){if(V(P))return P.clone();var x=typeof E=="object"?E:{};return x.date=P,x.args=arguments,new w(x)},A=S;A.l=B,A.i=V,A.w=function(P,E){return M(P,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var w=function(){function P(x){this.$L=B(x.locale,null,!0),this.parse(x)}var E=P.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,K=(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,K)):new Date(H[1],G,H[3]||1,H[4]||0,H[5]||0,H[6]||0,K)}}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=M(x);return this.startOf(U)<=D&&D<=this.endOf(U)},E.isAfter=function(x,U){return M(x)<this.startOf(U)},E.isBefore=function(x,U){return this.endOf(U)<M(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(F,j){var X=A.w(D.$u?Date.UTC(D.$y,j,F):new Date(D.$y,j,F),D);return W?X:X.endOf(f)},K=function(F,j){return A.w(D.toDate()[F].apply(D.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(j)),D)},L=this.$W,$=this.$M,q=this.$D,T="set"+(this.$u?"UTC":"");switch(H){case y:return W?G(1,0):G(31,11);case d:return W?G(1,$):G(0,$+1);case m:var R=this.$locale().weekStart||0,I=(L<R?L+7:L)-R;return G(W?q-I:q+(6-I),$);case f:case g:return K(T+"Hours",0);case c:return K(T+"Minutes",1);case i:return K(T+"Seconds",2);case s:return K(T+"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[f]=H+"Date",D[g]=H+"Date",D[d]=H+"Month",D[y]=H+"FullYear",D[c]=H+"Hours",D[i]=H+"Minutes",D[s]=H+"Seconds",D[r]=H+"Milliseconds",D)[W],K=W===f?this.$D+(U-this.$W):U;if(W===d||W===y){var L=this.clone().set(g,1);L.$d[G](K),L.init(),this.$d=L.set(g,Math.min(this.$D,L.daysInMonth())).$d}else G&&this.$d[G](K);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($){var q=M(W);return A.w(q.date(q.date()+Math.round($*x)),W)};if(H===d)return this.set(d,this.$M+x);if(H===y)return this.set(y,this.$y+x);if(H===f)return G(1);if(H===m)return G(7);var K=(D={},D[i]=n,D[c]=a,D[s]=l,D)[H]||1,L=this.$d.getTime()+x*K;return A.w(L,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,K=this.$m,L=this.$M,$=D.weekdays,q=D.months,T=function(j,X,O,Q){return j&&(j[X]||j(U,W))||O[X].slice(0,Q)},R=function(j){return A.s(G%12||12,j,"0")},I=D.meridiem||function(j,X,O){var Q=j<12?"AM":"PM";return O?Q.toLowerCase():Q},F={YY:String(this.$y).slice(-2),YYYY:this.$y,M:L+1,MM:A.s(L+1,2,"0"),MMM:T(D.monthsShort,L,q,3),MMMM:T(q,L),D:this.$D,DD:A.s(this.$D,2,"0"),d:String(this.$W),dd:T(D.weekdaysMin,this.$W,$,2),ddd:T(D.weekdaysShort,this.$W,$,3),dddd:$[this.$W],H:String(G),HH:A.s(G,2,"0"),h:R(1),hh:R(2),a:I(G,K,!0),A:I(G,K,!1),m:String(K),mm:A.s(K,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,X){return X||F[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=M(x),K=(G.utcOffset()-this.utcOffset())*n,L=this-G,$=A.m(this,G);return $=(W={},W[y]=$/12,W[d]=$,W[h]=$/3,W[m]=(L-K)/6048e5,W[f]=(L-K)/864e5,W[c]=L/a,W[i]=L/n,W[s]=L/l,W)[H]||L,D?$:A.a($)},E.daysInMonth=function(){return this.endOf(d).$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()},P}(),z=w.prototype;return M.prototype=z,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",f],["$M",d],["$y",y],["$D",g]].forEach(function(P){z[P[1]]=function(E){return this.$g(E,P[0],P[1])}}),M.extend=function(P,E){return P.$i||(P(E,w,M),P.$i=!0),M},M.locale=B,M.isDayjs=V,M.unix=function(P){return M(1e3*P)},M.en=C[N],M.Ls=C,M.p={},M})})(hs);var cd=hs.exports;const Pe=je(cd);var gs={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)},f=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)}],d=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,f("seconds")],ss:[r,f("seconds")],m:[r,f("minutes")],mm:[r,f("minutes")],H:[r,f("hours")],h:[r,f("hours")],HH:[r,f("hours")],hh:[r,f("hours")],D:[r,f("day")],DD:[a,f("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,f("month")],MM:[a,f("month")],MMM:[s,function(k){var v=d("months"),u=(d("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=d("months").indexOf(k)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,f("year")],YY:[a,function(k){this.year=c(k)}],YYYY:[/\d{4}/,f("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(M,A,w){var z=w&&w.toUpperCase();return A||u[w]||l[w]||u[z].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(P,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(M){for(var A={},w=0,z=0;w<b;w+=1){var P=p[w];if(typeof P=="string")z+=P.length;else{var E=P.regex,x=P.parser,U=M.slice(z),D=E.exec(U)[0];x.call(A,D),M=M.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 M=V[2]===!0,A=V[3]===!0,w=M||A,z=V[2];A&&(z=V[2]),i=this.$locale(),!M&&z&&(i=u.Ls[z]),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,K=H.month,L=H.day,$=H.hours,q=H.minutes,T=H.seconds,R=H.milliseconds,I=H.zone,F=new Date,j=L||(G||K?1:F.getDate()),X=G||F.getFullYear(),O=0;G&&!K||(O=K>0?K-1:F.getMonth());var Q=$||0,Z=q||0,ee=T||0,_=R||0;return I?new Date(Date.UTC(X,O,j,Q,Z,ee,_+60*I.offset*1e3)):W?new Date(Date.UTC(X,O,j,Q,Z,ee,_)):new Date(X,O,j,Q,Z,ee,_)}catch{return new Date("")}}(N,B,C),this.init(),z&&z!==!0&&(this.$L=this.locale(z).$L),w&&N!=this.format(B)&&(this.$d=new Date("")),i={}}else if(B instanceof Array)for(var P=B.length,E=1;E<=P;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===P&&(this.$d=new Date(""))}else b.call(this,S)}}})})(gs);var ud=gs.exports;const dd=je(ud);var ys={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"],f=i%100;return"["+i+(c[(f-20)%10]||c[f]||c[0])+"]"},r.format=function(i){var c=this,f=this.$locale();if(!this.isValid())return s.bind(this)(i);var m=this.$utils(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return f.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return f.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)(d)}}})})(ys);var fd=ys.exports;const md=je(fd);var vs={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n,a){var r=n.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,h,y,g,k){var v=d.name?d:d.$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()]},f=function(d,h){return d.formats[h]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,k,v){return k||v.slice(1)})}(d.formats[h.toUpperCase()])},m=function(){var d=this;return{months:function(h){return h?h.format("MMMM"):i(d,"months")},monthsShort:function(h){return h?h.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(d,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return f(d.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return m.bind(this)()},a.localeData=function(){var d=c();return{firstDayOfWeek:function(){return d.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 f(d,h)},meridiem:d.meridiem,ordinal:d.ordinal}},a.months=function(){return i(c(),"months")},a.monthsShort=function(){return i(c(),"monthsShort","months",3)},a.weekdays=function(d){return i(c(),"weekdays",null,null,d)},a.weekdaysShort=function(d){return i(c(),"weekdaysShort","weekdays",3,d)},a.weekdaysMin=function(d){return i(c(),"weekdaysMin","weekdays",2,d)}}})})(vs);var pd=vs.exports;const hd=je(pd);var ks={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 f=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(n).add(1,n).date(f),d=s(this).endOf(l);if(m.isBefore(d))return 1}var h=s(this).startOf(n).date(f).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)}}})})(ks);var gd=ks.exports;const yd=je(gd);var bs={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}}})})(bs);var vd=bs.exports;const kd=je(vd);var Ss={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")}}})})(Ss);var bd=Ss.exports;const Sd=je(bd);var Cs={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)}}})})(Cs);var Cd=Cs.exports;const wd=je(Cd);var ws={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)}}})})(ws);var Nd=ws.exports;const Bd=je(Nd);Pe.extend(hd);Pe.extend(md);Pe.extend(dd);Pe.extend(yd);Pe.extend(kd);Pe.extend(Sd);Pe.extend(wd);Pe.extend(Bd);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,f=r+(6-s)*864e5,m=this.date2Str(new Date(c)),d=this.date2Str(new Date(f));return[m,d]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,f=r+(7-s)*i,m=this.date2Str(new Date(c)),d=this.date2Str(new Date(f));return[m,d]}},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}},er=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(er-10,0,1),validator:Oe},maxDate:{type:Date,default:()=>new Date(er+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:Vd,scope:Ad}=Y("date-picker"),$d=Vd({components:{[vt.name]:vt},props:{...Cn},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(Ad),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 M=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`]:M}},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:M,minHour:A,minMinute:w,minSeconds:z}=s("min",h.value);let P=[{type:"year",range:[V,u]},{type:"month",range:[M,b]},{type:"day",range:[B,p]},{type:"hour",range:[A,S]},{type:"minute",range:[w,N]},{type:"seconds",range:[z,C]}];switch(e.type){case"date":P=P.slice(0,3);break;case"datetime":P=P.slice(0,5);break;case"time":P=P.slice(3,6);break;case"year-month":P=P.slice(0,2);break;case"month-day":P=P.slice(1,3);break;case"datehour":P=P.slice(0,4);break;case"hour-minute":P=P.slice(3,5);break}return P}),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},f=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,d=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)}),d.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}d.value=u};return{columns:f,dateIndexs:d,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 Td(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($d,[["render",Td]]);function Ed(e){let o=e.format;if(!o){let l=e.type??"date";o=Zn[l]}return o}function Dd(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 f=Ce(t.computed(()=>i.disabled)),m=$e(t.computed(()=>i.readonly)),{emitEvent:d}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),v=Ae(i,"modelValue",$=>$==null?null:typeof $=="string"?$.length==0?null:i.valueFormat?mo(i,$,i.valueFormat)??$:mo(i,$,Zn[i.type])??$:Oe($)?$:null),u=t.computed(()=>{if(!v.value)return"";const $=Ed(i);return Sn(i,v.value,$)}),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:f.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const $={};return S.value&&($["text-align"]=S.value),$}),C=t.ref(!1),V=()=>{C.value=!0},B=()=>{C.value=!1};c.expose({showPicker:V,hidePicker:B});const M=$=>{C.value=$},A=$=>{if(v.value=$,i.valueFormat){let q=Sn(i,$,i.valueFormat);d("update:modelValue",q,{}),d("change",q,{})}else d("update:modelValue",$,{}),d("change",$,{})},w=$=>{let T=$.target.value;g.value=!0,d("focus",T,$)},z=$=>{setTimeout(()=>{g.value=!1},0);let T=$.target.value;i.maxLength&&T.length>Number(i.maxLength)&&(T=T.slice(0,Number(i.maxLength))),d("blur",T,$)},P=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=$=>{v.value="",d("update:modelValue","",$),d("change","",$),d("clear",""),B()},W=t.computed(()=>i.clearable&&!f.value&&!m.value),H=t.computed(()=>{let $=ge(v.value)>0;return i.clearable&&$&&g.value}),G=$=>{H.value?D($):V()},K=t.computed(()=>H.value&&W.value?n:a),L=t.computed(()=>({action:!0}));return()=>{const $={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:z};s&&($.disabled=!0);const q=[],T=t.h("input",$);q.push(T);const R=[],I={class:["action-icon"]},F=t.h(K.value,I),j={class:L.value,onClick:G},X=t.h("view",j,{default:()=>[F]});if(R.push(X),E.value){const ve=t.h("view",{class:U.value},[i.unit]);R.push(ve)}const O={class:P.value},Q=t.h("view",O,{default:()=>R});q.push(Q);const Z={default:()=>q};Z.label=c.slots.default,Z.prepend=c.slots.prepend,Z.append=c.slots.append,Z.fixedPreTip=c.slots.fixedPreTip,Z.fixedTip=c.slots.fixedTip;const ee=he(i,Cn);ee.valueFormat=null,ee.disabled=!1,ee.readonly=f.value||m.value,ee.visible=C.value,ee["onUpdate:visible"]=M,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,_);Z.hide=()=>[oe];const le=he(i,de,ue);return t.h(l,le,Z)}}}}const{create:xd,componentName:Id,scope:qd}=Y("date-item"),Jn=xd(Dd(Id,qd,be,te.CircleClose,te.Date,qo,!1)),Md=39,zd=64,{create:Pd,scope:Ld}=Y("calendar-pane"),Fd=Pd({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(Ld),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),f=t.ref(null),m=t.ref(null),d=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=I=>I.split("-"),b=I=>ne.isEqual(u.currDate[0],I),S=I=>ne.isEqual(u.currDate[1],I),N=I=>u.currDate?.length>0?u.currDate?.some(F=>ne.isEqual(F,I)):!1,C=(I,F)=>F.curData[0]+"-"+F.curData[1]+"-"+ne.getNumTwoBit(+I.day),V=(I,F)=>{const j=C(I,F),{type:X}=e;return I.type=="curr"?ne.isEqual(u.currDate,j)||(X=="range"||X=="week")&&(b(j)||S(j))||X=="multiple"&&N(j)?`${u.dayPrefix}--active`:u.propStartDate&&ne.compareDate(j,u.propStartDate)||u.propEndDate&&ne.compareDate(u.propEndDate,j)?`${u.dayPrefix}--disabled`:(X=="range"||X=="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:I}=e;if(I=="range"&&u.chooseData.length==2||I!="range"){let F=u.chooseData.slice(0);I=="week"&&(F={weekDate:[A(u.chooseData[0]),A(u.chooseData[1])]}),o("choose",F),e.poppable&&o("update")}},M=(I,F,j=!1)=>{if(V(I,F)!=`${u.dayPrefix}--disabled`){const{type:X}=e;let[O,Q]=F.curData,Z=[...F.curData];if(Z[2]=ne.getNumTwoBit(Number(I.day)),Z[3]=`${Z[0]}-${Z[1]}-${Z[2]}`,Z[4]=ne.getWhatDay(+Z[0],+Z[1],+Z[2]),X=="multiple")if(u.currDate?.length>0){let ee;u.currDate?.forEach((_,oe)=>{_==Z[3]&&(ee=oe)}),j?u.chooseData.push([...Z]):ee!==void 0?(u.currDate.splice(ee,1),u.chooseData.splice(ee,1)):(u.currDate.push(Z[3]),u.chooseData.push([...Z]))}else u.currDate=[Z[3]],u.chooseData=[[...Z]];else if(X=="range"){let ee=Object.values(u.currDate).length;ee==2||ee==0?u.currDate=[Z[3]]:ne.compareDate(u.currDate[0],Z[3])?Array.isArray(u.currDate)&&u.currDate.push(Z[3]):Array.isArray(u.currDate)&&u.currDate.unshift(Z[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...Z]]:ne.compareDate(u.chooseData[0][3],Z[3])?u.chooseData=[...u.chooseData,[...Z]]:u.chooseData=[[...Z],...u.chooseData]}else if(X=="week"){let ee=ne.getWeekDate(O,Q,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=Z[3],u.chooseData=[...Z];if(!j){let ee=u.chooseData;X=="week"&&(ee={weekDate:[A(u.chooseData[0]),A(u.chooseData[1])]}),o("select",ee),(e.isAutoBackFill||!e.poppable)&&B()}}},A=I=>{let[F,j,X]=I;return{date:I,monthWeekNum:ne.getMonthWeek(F,j,X,e.firstDayOfWeek),yearWeekNum:ne.getYearWeek(F,j,X,e.firstDayOfWeek)}},w=I=>{const F=I=="prev"?u.monthsData[0]:u.monthsData[u.monthsData.length-1];let j=parseInt(F.curData[0]),X=parseInt(F.curData[1].toString().replace(/^0/,""));switch(I){case"prev":X==1&&(j-=1),X=X==1?12:--X;break;case"next":X==12&&(j+=1),X=X==12?1:++X;break}return[j+"",ne.getNumTwoBit(X),ne.getMonthDays(String(j),String(X))+""]},z=(I,F,j)=>{let{year:X,month:O}=j;return F=="prev"&&I>=7&&(I-=7),Array.from(Array(I),(Q,Z)=>({day:String(Z+1),type:F,year:X,month:O}))},P=(I,F,j,X)=>{I=I-e.firstDayOfWeek;let{year:O,month:Q}=j;return F=="prev"&&I>=7&&(I-=7),Array.from(Array(X),(ee,_)=>({day:String(_+1),type:F,year:O,month:Q})).slice(X-I)},E=(I,F)=>{const j=ne.getMonthPreDay(+I[0],+I[1]);let X=Number(I[1])-1,O=Number(I[0]);X<=0&&(X=12,O+=1);const Q=ne.getMonthDays(String(I[0]),String(I[1])),Z=ne.getMonthDays(O+"",X+""),ee={year:I[0],month:I[1]},_={curData:I,title:a("monthTitle",{year:ee.year,month:ee.month}),monthData:[...P(j,"prev",{month:String(X),year:String(O)},Z),...z(Q,"curr",ee)],cssHeight:0,cssScrollHeight:0},oe=_.monthData.length>35?6:5;_.cssHeight=Md+zd*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,F=="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},x=()=>{let I=e.startDate?e.startDate:ne.getDay(0),F=e.endDate?e.endDate:ne.getDay(365);u.propStartDate=I,u.propEndDate=F,u.startData=p(I),u.endData=p(F),(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])},X={year:Number(u.endData[0]),month:Number(u.endData[1])};let O=X.month-j.month;X.year-j.year>0&&(O=O+12*(X.year-j.year)),O<=0&&(O=1),E(u.startData,"next");let Q=1;do E(w("next"),"next");while(Q++<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),F&&ne.compareDate(F,u.currDate[1])&&u.currDate.splice(1,1,F),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 Z=[],ee={};u.currDate.forEach(_=>{I&&!ne.compareDate(_,I)&&F&&!ne.compareDate(F,_)&&(Object.hasOwnProperty.call(ee,_)||(Z.push(_),ee[_]=_))}),u.currDate=[...Z],u.defaultData=[...p(Z[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[Z,ee,_]=p(u.currDate[0]),oe=ne.getWeekDate(Z,ee,_,e.firstDayOfWeek);u.currDate=oe,I&&ne.compareDate(u.currDate[0],I)&&u.currDate.splice(0,1,I),F&&ne.compareDate(F,u.currDate[1])&&u.currDate.splice(1,1,F),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]}}else u.currDate&&(I&&ne.compareDate(u.currDate,I)?u.currDate=I:F&&!ne.compareDate(u.currDate,F)&&(u.currDate=F),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 F=p(I);u.monthsData.forEach((j,X)=>{if(j.title==a("monthTitle",{year:F[0],month:F[1]})&&c.value){let O=u.monthsData[X].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let Q=0,Z=setInterval(()=>{if(Q++,c.value){let ee=O/10;c.value.scrollTop=c.value.scrollTop+ee}Q>=10&&(clearInterval(Z),c.value&&(c.value.scrollTop=u.monthsData[X].cssScrollHeight))},40)}else c.value.scrollTop=u.monthsData[X].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)},doLayout:()=>{let I=0,F=0;u.defaultData.length>0&&u.monthsData.forEach((O,Q)=>{O.title==a("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(I=Q),(e.type=="range"||e.type=="week")&&O.title==a("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(F=Q)}),H(u.monthsNum,I),u.currentIndex=I,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(M({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),M({day:u.defaultData[5],type:"curr"},u.monthsData[F],!0)):e.type=="week"?M({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(O=>{let Q=p(O),Z=u.currentIndex;u.monthsData.forEach((ee,_)=>{ee.title==a("monthTitle",{year:Q[0],month:Q[1]})&&(Z=_)}),M({day:Q[2],type:"curr"},u.monthsData[Z],!0)}):M({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let j=u.monthsData[u.monthsData.length-1],X=j.cssHeight+j.cssScrollHeight;We(()=>{c?.value&&f?.value&&d?.value&&(h.value=c.value.clientHeight,f.value.style.height=`${X}px`,c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(X/(u.monthsNum+1))}});const H=(I,F)=>{I>=3?F>0&&F<I?u.defaultRange=[F-1,F+3]:F==0?u.defaultRange=[F,F+4]:F==I&&(u.defaultRange=[F-2,F+2]):u.defaultRange=[0,I+2];let j=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=j},G=(I,F)=>(e.type=="range"||e.type=="week")&&I.type=="curr"&&V(I,F)=="fox-calendar__day--active",K=(I,F)=>G(I,F)&&b(C(I,F)),L=(I,F)=>u.currDate.length>=2&&S(C(I,F))?G(I,F):!1,$=()=>{if(u.currDate.length>=2)return ne.isEqual(u.currDate[0],u.currDate[1])},q=I=>{const F=`${I.year}-${I.month}-${Number(I.day)<10?"0"+I.day:I.day}`;return ne.isEqual(F,ne.date2Str(new Date))},T=I=>{if(u.monthsData.length<=1)return;const F=I.target.scrollTop;let j=Math.floor(F/u.avgHeight);if(j==0)F>=u.monthsData[j+1].cssScrollHeight&&(j+=1);else if(j>0&&j<u.monthsNum-1)F>=u.monthsData[j+1].cssScrollHeight&&(j+=1),F<u.monthsData[j].cssScrollHeight&&(j-=1);else{const X=Math.round(F+h.value);X<u.monthsData[j].cssScrollHeight+u.monthsData[j].cssHeight&&F>u.monthsData[j-1].cssScrollHeight&&(j-=1),j+1<=u.monthsNum&&X>=u.monthsData[j+1].cssScrollHeight+u.monthsData[j+1].cssHeight&&(j+=1),j>=1&&F<u.monthsData[j-1].cssScrollHeight&&(j-=1)}u.currentIndex!==j&&(u.currentIndex=j,H(u.monthsNum,j)),u.yearMonthTitle=u.monthsData[j].title},R=()=>{u.chooseData.splice(0),u.monthsData.splice(0),x()};return x(),t.watch(()=>e.defaultValue,I=>{I&&e.poppable&&R()}),{weeks:i,compConthsData:y,showTopBtn:g,topInfo:k,bottomInfo:v,rangeTip:$,mothsViewScroll:T,getClass:V,isStartTip:K,isEndTip:L,chooseDay:M,isCurrDay:q,confirm:B,months:c,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:f,weeksPanel:m,viewArea:d}}}),Rd={class:"fox-calendar__header"},Od={key:0,class:"fox-calendar__header-title"},Kd={key:1,class:"fox-calendar__header-slot"},Ud={key:2,class:"fox-calendar__header-subtitle"},Hd={class:"fox-calendar__weekdays",ref:"weeksPanel"},jd={class:"fox-calendar__panel",ref:"monthsPanel"},Wd={class:"fox-calendar__month-title"},Yd={class:"fox-calendar__days"},Xd=["onClick"],Qd={class:"fox-calendar__day-value"},Gd={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Zd={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Jd={key:2,class:"fox-calendar__day-tips--curr"},_d={key:4,class:"fox-calendar__day-tip"},ef={key:0,class:"fox-calendar__footer"};function tf(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",Rd,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Od,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Kd,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Ud,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Hd,[(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",jd,[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",Wd,t.toDisplayString(s.title),1),t.createElementVNode("view",Yd,[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,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:m=>e.chooseDay(c,s)},[t.createElementVNode("view",Qd,[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",Gd,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Zd,[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",Jd,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",_d,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,Xd))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",ef,[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 tr=J(Fd,[["render",tf]]),of=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:nf}=Y("calendar"),lf=nf({components:{[tr.name]:tr,[ce.name]:ce},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)},f=()=>{i.value?.initPosition()};t.watch(()=>e.visible,k=>{k&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Te({scrollToDate:c,initPosition:f});const m=()=>{o("update:visible",!1)},d=()=>{o("close"),o("update:visible",!1)};return{closePopup:()=>{d()},update:m,close:d,select:k=>{o("select",k)},choose:k=>{d(),o("choose",k)},calendarRef:i,showTopBtn:n,topInfo:a,dayInfo:r,bottomInfo:s}}});function af(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(lf,[["render",af]]),_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 rf(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 f=Ce(t.computed(()=>i.disabled)),m=$e(t.computed(()=>i.readonly)),{emitEvent:d}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.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=(T,R="one",I="YYYY-MM-DD")=>{if(of(T)){u();return}if(k.value&&Array.isArray(T)&&T.length==2){let F,j;typeof T[0]=="string"?(F=_o(T[0],I),j=_o(T[1],I)):(F=T[0],j=T[1]);let X=ct(F),O=ct(j);(v.startDate===null||v.startDate.getTime()!==F.getTime()||v.endDate?.getTime()!==j.getTime())&&(v.startDate=F,v.startArray=X,v.endDate=j,v.endArray=O)}else{let F;typeof T=="string"?F=_o(T,I):F=T;let j=ct(F);(v.startDate===null||v.startDate.getTime()!==F.getTime())&&(v.startDate=F,v.startArray=j)}};p(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,T=>{p(T,i.type,i.valueFormat)});const b=t.computed(()=>{if(v.startDate===null)return"";if(k.value){let T=it(i,v.startDate,i.format),R=it(i,v.endDate,i.format);return`${T} ${i.rangeSeparator} ${R}`}else{let T=it(i,v.startDate,i.format);return i.showWeek&&(T=`${T} ${v.startArray[4]}`),T}}),S=t.computed(()=>{if(v.startDate===null)return null;if(k.value){let T=ne.date2Str(v.startDate),R=ne.date2Str(v.endDate??new Date);return[T,R]}else return ne.date2Str(v.startDate)}),N="fox-input-item",C=t.computed(()=>({[N]:!0,[`${N}__disabled`]:f.value})),V=Ne(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const T={};return V.value&&(T["text-align"]=V.value),T}),M=t.ref(!1),A=()=>{m.value||f.value||(M.value=!0)},w=T=>{M.value=T},z=T=>{if(T){if(k.value&&Array.isArray(T)){let R=T[0],I=fe(R[0]),F=fe(R[1]),j=fe(R[2]),X=new Date(I,F-1,j),O=T[1];I=fe(O[0]),F=fe(O[1]),j=fe(O[2]);let Q=new Date(I,F-1,j);if(v.startDate=X,v.startArray=ct(X),v.endDate=Q,v.endArray=ct(Q),i.valueFormat){let Z=it(i,X,i.valueFormat),ee=it(i,Q,i.valueFormat);d("update:modelValue",[Z,ee],{})}else d("update:modelValue",[X,Q],{})}else{let R=T,I=fe(R[0]),F=fe(R[1]),j=fe(R[2]),X=new Date(I,F-1,j);if(v.startDate=X,v.startArray=ct(X),i.valueFormat){let O=it(i,X,i.valueFormat);d("update:modelValue",O,{})}else d("update:modelValue",X,{})}d("change",T,{})}},P=T=>{let I=T.target.value;g.value=!0,d("focus",I,T)},E=T=>{setTimeout(()=>{g.value=!1},0);let I=T.target.value;i.maxLength&&I.length>Number(i.maxLength)&&(I=I.slice(0,Number(i.maxLength))),d("blur",I,T)},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=T=>{u(),d("update:modelValue",null,T),d("change","",T),d("clear","")},G=t.computed(()=>i.clearable&&!f.value&&!m.value),K=t.computed(()=>{let T=ge(b.value)>0;return i.clearable&&T&&g.value}),L=T=>{K.value?H(T):A()},$=t.computed(()=>K.value&&G.value?a:r),q=t.computed(()=>({action:!0}));return()=>{const T={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:P,onBlur:E};s&&(T.disabled=!0);const R=[],I=t.h("input",T);R.push(I);const F=[],j={class:["action-icon"]},X=t.h($.value,j),O={class:q.value,onClick:L},Q=t.h("view",O,{default:()=>[X]});if(F.push(Q),U.value){const Ze=t.h("view",{class:W.value},[i.unit]);F.push(Ze)}const Z={class:x.value},ee=t.h("view",Z,{default:()=>F});R.push(ee);const _={default:()=>R};_.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=M.value,oe["onUpdate:visible"]=w,oe["default-value"]=S.value,oe.onChoose=z;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 Ee=t.h(l,oe,le);_.hide=()=>[Ee];const ve=he(i,de,ue);return t.h(n,ve,_)}}}}const{componentName:sf,create:cf,scope:uf}=Y("calendar-item"),_n=cf(rf(sf,uf,Mo,be,{CloseIcon:te.CircleClose,MarkIcon:te.Date},!1)),df={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 ff(e,{CheckNormal:o,Checked:l}){return{props:{...df},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"),f=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})}}},d=()=>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=f.value==="left";return()=>t.h("view",{class:`${e} ${e}--${n.shape} ${g?`${e}--reverse`:""}`,onClick:y},[n.shape=="button"?h():g?[d(),m()]:[m(),d()]])}}}const{componentName:mf,create:pf}=Y("radio"),zo=pf(ff(mf,{CheckNormal:te.CheckNormal,Checked:te.CheckChecked})),{componentName:or,create:hf}=Y("radio-group"),Po=hf({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:`${or} ${or}--${e.direction}`,style:a},l.default?.())}}});function nr(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(xt(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 xt(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function gf(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function yf(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let vf=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 kf(){const e=t.getCurrentInstance();return new vf(e.proxy)}function bf(e){return{text:e,value:e}}const lr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},Sf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}};function Cf(e,o,l,n,a){return{props:{...ue,...de,...lr,...Sf,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Boolean,Object],default:""}},emits:["change","update:modelValue"],setup(r,s){const i=$e(t.computed(()=>r.readonly)),c=Ce(t.computed(()=>r.disabled)),f=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),d=kf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,p])=>{if(u){const b=await d.load("radio",u,p);if(b.length>0)if(typeof b[0]=="string"){const C=b.map(V=>bf(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=nr(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 xt(r,u)}),k=u=>{let p=null,b=null;if(h.value.length>0){let S=nr(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=xt(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=xt(r,b)}m("update:modelValue",u),m("change",u,p)};if(Te({clear(){y.value!==-1&&(y.value=-1,v())}}),r.source){const u=()=>{const p=[],b=he(r,lr);return h.value.forEach((S,N)=>{const C=xt(r,S),V=gf(r,S);let B={...b,label:C,disabled:V};const M=yf(r,S,N);B={...B,...M},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 z=s.slots.text(S);A.default=()=>[z]}else{const z=eo(r,S);A.default=()=>z}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:f.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:f.value,modelValue:g,"update:modelValue":k},{default:()=>u})}}}}const{componentName:wf,create:Nf,scope:Bf}=Y("radio-item"),el=Nf(Cf(wf,Bf,be,Po,zo)),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,b=>{c.partialSelect=b});const f=t.computed(()=>!!i),m=t.computed(()=>f.value?i.value.value.includes(a.label):!!a.modelValue),d=t.computed(()=>f.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),f.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(()=>{f.value&&i.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{f.value&&i.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${a.shape} ${d.value==="left"?`${e}--reverse`:""}`,onClick:p},[a.shape=="button"?u():[k(),v()]])}}),{componentName:Af,create:$f}=Y("checkbox"),Lo=$f(Vf(Af,{CheckNormal:te.CheckNormal,Checked:te.Checked,Indeterminate:te.CheckDisabled})),{create:Tf,componentName:ar}=Y("checkbox-group"),Fo=Tf({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=f=>{f.proxy&&n.children.push(f.proxy)},r=f=>{f.proxy&&(n.children=n.children.filter(m=>m!==f.proxy))},s=f=>{l("update:modelValue",f),l("change",f)},i=f=>{const m=[];f&&n.children.forEach(d=>{d?.disabled||m.push(d?.label)}),l("update:modelValue",m)},c=()=>{const f=n.children.filter(m=>m?.disabled?!1:!e.modelValue.includes(m.label)).map(m=>m.label);l("update:modelValue",f)};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,f=>{l("change",f)}),Te({toggleAll:i,toggleReverse:c}),()=>{const f={};return e.textAlign&&(f["text-align"]=e.textAlign),t.h("view",{class:`${ar} ${ar}--${e.direction}`,style:f},o.default?.())}}});function rr(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 Ef(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function Df(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let xf=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 If(){const e=t.getCurrentInstance();return new xf(e.proxy)}function qf(e){return{text:e,value:e}}const Mf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},sr={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}};function zf(e,o,l,n,a){return{props:{...Mf,...sr,...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)),f=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),d=If(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,p])=>{if(u){const b=await d.load("checkbox",u,p);if(b.length>0)if(typeof b[0]=="string"){const C=b.map(V=>qf(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=rr(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=rr(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(Te({toggleAll:u=>{v.value.toggleAll(u)},toggleReverse:()=>{v.value.toggleReverse()}}),r.source){const u=()=>{const p=[],b=he(r,sr);return h.value.forEach((S,N)=>{const C=to(r,S),V=Ef(r,S);let B={...b,label:C,disabled:V};const M=Df(r,S,N);B={...B,...M},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 z=s.slots.text(S);A.default=()=>[z]}else{const z=Nn(r,S);A.default=()=>z}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:f.value,modelValue:g,"onUpdate:modelValue":k},{default:()=>u})}}}}const{componentName:Pf,create:Lf,scope:Ff}=Y("checkbox-item"),tl=Lf(zf(Pf,Ff,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:Rf,create:Of}=Y("switch"),Kf=Of({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=Rf;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}}}),Uf={class:"fox-switch-button"};function Hf(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",Uf,[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(Kf,[["render",Hf]]);function jf(e,o,l,n){return{props:{...ue,...de,...Bn},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=$e(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),f=e,m=Ae(a,"modelValue"),d=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":d},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"]=f,t.h(l,u,v)}}}}const{componentName:Wf,create:Yf,scope:Xf}=Y("switch-item"),ol=Yf(jf(Wf,Xf,be,Ro));function Qf(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"]),f=Ce(t.computed(()=>a.disabled)),m=$e(t.computed(()=>a.readonly)),d=Ae(a,"modelValue"),h=t.computed(()=>({[`${e}`]:!0})),y=t.computed(()=>({[`${e}__main`]:!0,[`${e}__disabled`]:f.value,[`${e}__placeholder`]:!f.value&&ie(d.value)})),g=Ne(t.computed(()=>a.textAlign),"textAlign"),k=t.computed(()=>{const z={};return g.value&&(z["text-align"]=g.value),z}),v=t.computed(()=>!ie(a.modelValue)||r.slots.main?!0:!!ie(a.desc)),u=t.computed(()=>ie(d.value)?c.placeholder.value:d.value),p=t.computed(()=>!ie(a.desc)||r.slots.sub),b=t.computed(()=>({[`${e}__sub`]:!0})),S=t.computed(()=>{const z={};return g.value&&(z["text-align"]=g.value),z}),N=()=>{s("focus",d.value)},C=()=>{s("blur",d.value)},V=t.computed(()=>({[`${e}__append`]:!0})),B=t.computed(()=>ge(a.unit)>0),M=z=>{f.value==!0||m.value==!0||s("click")},A=t.computed(()=>a.icon??l),w=t.computed(()=>({action:!0}));return()=>{const z=[];if(typeof r.slots.content=="function"){const $=r.slots.content();z.push($)}else{const $=[];if(v.value){const R={tabIndex:0,class:y.value,style:k.value,onFocus:N,onBlur:C,onClick:M};let I=null;r.slots.main?I=t.h("view",R,[r.slots.main(u.value)]):I=t.h("view",R,[u.value]),$.push(I)}if(p.value){const R={tabIndex:0,class:b.value,style:S.value,onFocus:N,onBlur:C,onClick:M};let I=null;r.slots.sub?I=t.h("view",R,[r.slots.sub(a.desc)]):I=t.h("view",R,[a.desc]),$.push(I)}const q={class:h.value},T=t.h("view",q,$);z.push(T)}const P=[],E=se(a.iconSize);let x=r.slots.icon;if(!x){const $={width:E,height:E,class:["action-icon"]};x=t.h(A.value,$)}const U={class:w.value,onClick:M},D=t.h("view",U,{default:()=>[x]});if(P.push(D),B.value){const $=t.h("view",{},[a.unit]);P.push($)}const W={class:V.value},H=t.h("view",W,{default:()=>P});z.push(H);const G={default:()=>z};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 K=he(a,de,ue);return t.h(n,K,G)}}}}const{componentName:Gf,create:Zf,scope:Jf}=Y("link-item"),nl=Zf(Qf(Gf,Jf,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:_f,componentName:em}=Y("rate"),tm=_f({props:{...Vn},emits:["update:modelValue","change"],setup(e,{emit:o,slots:l}){const n=t.ref([]),a=t.computed(()=>({[em]:!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(),f={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),d=t.computed(()=>e.customIcon??te.StarFillN);return{classes:a,...f,onClick:s,toPxDesc:pe,renderIcon:(y,g)=>t.h(y,g),rateRefs:n,refRandomId:m,slots:l,customIcon:d}}}),om=["id"],nm={class:"fox-rate-item__icon--full"},lm={key:0,class:"fox-rate-item__icon--half"},am={key:1,class:"fox-rate-item__icon--half"};function rm(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",nm,[(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",lm,[(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",am,[(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,om))),128))],34)}const kt=J(tm,[["render",rm]]);function sm(e,o,l,n){return{props:{...ue,...de,...Vn},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=$e(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),f=e,m=Ae(a,"modelValue"),d=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":d},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"]=f,t.h(l,u,v)}}}}const{componentName:im,create:cm,scope:um}=Y("rate-item"),ll=cm(sm(im,um,be,kt)),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 dm(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(Ns(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 ir(e,o){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?o[e.subTextKey]:o.text}function Ns(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function fm(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function mm(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let pm=class{proxy;constructor(o){this.proxy=o}async load(o,l,n,a,r,s,i){if(Array.isArray(l)){let f=l;typeof i=="function"&&(f=f.filter(i));let m=(n-1)*a,d=m+a;d>f.length&&(d=f.length);const h=f.slice(m,d);return{totalSize:f.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 hm(){const e=t.getCurrentInstance();return new pm(e.proxy)}const{componentName:gm,create:ym,scope:vm}=Y("infinite-loading"),km=ym({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(vm),a=n(e,["pullText","loadText","loadMoreText"]),r=t.ref(),s=ds(r),i=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[gm]:!0})),f=k=>k?k.offsetTop+f(k.offsetParent):0,m=()=>{let k=0,v=0,u="down";if(s.value==window){const p=qn();r.value&&(k=f(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"},d=()=>{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",d,e.useCapture)},y=()=>{s.value&&s.value.removeEventListener("scroll",d,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}}}),bm={class:"fox-infinite__container"},Sm={class:"fox-infinite__bottom"},Cm={key:0,class:"fox-infinite__bottom-box"},wm={class:"fox-infinite__bottom-box__text"},Nm={class:"fox-infinite__bottom-tips"};function Bm(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",bm,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Sm,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",Cm,[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",wm,t.toDisplayString(e.loadText),1)])])):e.hasMore?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"finished",{key:1},()=>[t.createElementVNode("view",Nm,t.toDisplayString(e.loadMoreText),1)])])],2)}const Oo=J(km,[["render",Bm]]),{componentName:Vm,create:Am}=Y("button"),$m=Am({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:f,block:m}=t.toRefs(e),d=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`]:f.value,[`${g}--block`]:m.value,[`${g}--disabled`]:s.value,[`${g}--loading`]:i.value}}),y=t.computed(()=>{const g={};return c?.value&&(f.value?(g.color=c.value,g.background="#fff",c.value?.includes("gradient")||(g.borderColor=c.value)):(g.color="#fff",g.background=c.value)),g});return{handleClick:d,classes:h,getStyle:y}}}),Tm={class:"fox-button__wrap"};function Em(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",Tm,[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($m,[["render",Em]]),{create:Dm,scope:xm}=Y("searchbar"),Im=Dm({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(xm),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({}),f=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)},d=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:f,valueBlur:m,handleClear:d,handleSubmit:h,searchbarStyle:r,inputSearchbarStyle:s,focusCss:c,clickInput:y,leftIconClick:g,rightIconClick:k,styleSearchbar:v}}}),qm={key:0,class:"fox-searchbar__search-label"},Mm={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},zm=["type","maxlength","placeholder","value","disabled","readonly"],Pm={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-search-icon"},Lm={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function Fm(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",qm,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",Mm,[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,zm)],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",Pm,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],2)],6),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",Lm,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const Ko=J(Im,[["render",Fm]]);function Rm(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=hm(),f=t.ref([]),m=t.ref(0),d=t.ref(""),h=t.shallowRef(null),y=t.computed(()=>{const L={};return n.params&&Object.assign(L,n.params),ie(d.value)||(L[`${n.searchKey}`]=d.value),h.value&&Object.assign(L,h.value),L});let g=!0;const k=async(L,$,q)=>{try{if(u.value===!1)return;let T=null;ie(d.value)||(T=I=>{const F=oo(n,I);if(typeof F=="string"&&F.includes(d.value))return!0;const j=ir(n,I);return!!(typeof j=="string"&&j.includes(d.value))});const R=await c.load("actionsheet",L,$,q,y.value,g,T??void 0);g=!1,Array.isArray(R)?(f.value=R,m.value=1,u.value=!1):!Array.isArray(R.page)||R.page.length===0?(console.warn("[FoxUI] can not load more data"),u.value=!1):(Reflect.apply([].push,f.value,R.page),m.value=Math.ceil(f.value.length/n.pageSize),(R.totalSize&&f.value.length>=R.totalSize||q<R.page.length)&&(u.value=!1)),v.value=!1}catch(T){console.error("[FoxUI] ActionSheet load more data fail",T),u.value=!0,m.value=0,f.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(()=>d.value,(L,$)=>{ie(L)&&!ie($)&&p()}),t.watch([()=>n.source,()=>n.pageSize,()=>n.params],async([L,$,q])=>{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,L=>{C.value!==L&&(C.value=L),L?N=[...S.value]:N=null});const V=(L,$)=>{const q=[];return Array.isArray(L)||(L=[L]),L.forEach(T=>{let R=dm(n,$,T,n.valueType);R!==-1&&q.push(R)}),xe(q,S.value)?!1:(S.value=q,!0)};t.watch([()=>n.modelValue,()=>f.value],([L,$],[q,T])=>{if(V(L,$)){const I=B();M(I)}},{deep:!0});const B=()=>{const L=[],$=[],q=[];for(let F of S.value){const j=f.value[F];$.push(j);const X=oo(n,j);if(q.push(X),n.valueType==="item")L.push(j);else if(n.valueType==="text")L.push(X);else{const O=Ns(n,j);L.push(O)}}let T=null,R=null,I=null;return n.multiple?(T=L,R=q,I=$):(T=L[0]??null,R=q[0]??null,I=$[0]??null),{value:T,text:R,item:I}},M=L=>{a("update:modelValue",L.value),a("update:text",L.text),a("change",L.value,L.item,L.text)},A=()=>{N&&(S.value=N)},w=L=>{const $=S.value.indexOf(L);n.multiple?$===-1?S.value.push(L):S.value.splice($,1):$===-1?S.value=[L]:S.value=[],(b.value||!n.poppable&&!n.showFooter)&&E()},z=L=>{C.value=L,a("update:visible",L)},P=()=>{const L=()=>{A(),z(!1)};if(typeof n.beforeClose=="function"){const $=n.beforeClose("close");ht($)?$.then(q=>{q!==!1&&L()}).catch(()=>{L()}):$!==!1&&L()}else L()},E=()=>{const L=B(),$=()=>{M(L),z(!1)};if(typeof n.beforeClose=="function"){const q=n.beforeClose("confirm",L.value,L.item,L.text);ht(q)?q.then(T=>{T!==!1&&$()}).catch(()=>{$()}):q!==!1&&$()}else $()},x=()=>{u.value=!0,m.value=0,f.value=[],n.source&&p()},U=()=>{let L=i.title.value??"";r.title&&(L=r.title());const $=t.h("view",{class:["fox-actionsheet__header-title"]},[L]),q=t.h(te.Close,{class:["fox-actionsheet__header-icon"],onClick:P});return t.h("view",{class:["fox-actionsheet__header"]},[$,q])},D=()=>{let L=null;if(r.search)L=r.search();else{const $={onSearch:x,placeholder:i.seachPlaceholder.value,disabled:n.disabled,modelValue:d.value,"onUpdate:modelValue":q=>{d.value=q}};L=t.h(Ko,$,{leftin:()=>t.h(te.Search2)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[L])},W=(L,$,q,T,R)=>{if(r.optionLabel)return r.optionLabel({text:L,checked:$,disabled:q,subText:T,item:R});const I=[],F=t.h("view",{class:"fox-actionsheet__list-item-text"},[L]);if(I.push(F),T){const j=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[T]);I.push(j)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},I)},H=(L,$,q,T)=>{if(r.optionIcon)return r.optionIcon({checked:L,disabled:$,iconSize:q,item:T});if(L){if(r.checkedIcon)return r.checkedIcon({disabled:$,item:T});{const R=n.checkedIcon??te.Checked;return t.h(R,{width:q,height:q,class:["fox-actionsheet__list-item-icon"]})}}else{if(r.icon)return r.icon({disabled:$,item:T});{const R=n.icon??te.CheckNormal;return t.h(R,{width:q,height:q,class:["fox-actionsheet__list-item-icon"]})}}},G=()=>{const L=[];for(let $=0;$<f.value.length;$++){const q=f.value[$],T=oo(n,q),R=ir(n,q),I=["fox-actionsheet__list-item"],F={};let j=fm(n,q),X=n.iconSize?se(n.iconSize):null;const O=mm(n,q,$);O&&(j=j||O.disabled,O.class&&I.push(O.class),O.style&&Object.assign(F,O.style)),j=!!(n.disabled||j);const Q=S.value.includes($);j&&I.push("is-disabled"),Q&&I.push("is-checked");const Z={class:I,style:F,key:`${$}`,onClick:()=>{j||w($)}};let ee=[];if(r.option)ee.push(r.option({item:q,checked:Q,disabled:j}));else{const oe=W(T,Q,j,R,q);ee.push(oe);const le=H(Q,j,X,q);ee.push(le)}const _=t.h("view",Z,ee);L.push(_)}return L},K=()=>{let L=[];if(r.buttons)L=r.buttons();else{const q=t.h(Ie,{type:"primary",block:"block",onClick:E,disabled:n.disabled},{default:()=>i.confirmText.value});L.push(q)}return t.h("view",{class:"fox-actionsheet__footer"},[L])};return Te({search:async(L=null,$=!0)=>{h.value=L&&t.toRaw(L),t.triggerRef(h),$&&(u.value=!0,m.value=0,f.value=[]),t.nextTick(()=>{p()})},clear:()=>{u.value=!0,m.value=0,f.value=[]},confirm:()=>{E()},cancel:()=>{P()}}),()=>{const L=[];if(n.showHeader){const X=U();L.push(X)}if(n.showSearchbar){const X=D();L.push(X)}let $=null;if(r.content)$=r.content();else{const X=G(),O={hasMore:u.value,loadText:i.loadText.value,loadMoreText:i.loadMoreText.value,modelValue:v.value,"onUpdate:modelValue":Q=>{v.value=Q},onLoadMore:p};$=t.h(Oo,O,{default:()=>X})}const q={};n.optionsHeight&&(q.height=n.optionsHeight);const T={"fox-actionsheet__list":!0};n.poppable||(T["fox-actionsheet__list--inner"]=!0);const R=t.h("view",{class:T,style:q},[$]);if(L.push(R),n.showFooter&&!b.value){const X=K();L.push(X)}const I=t.h("view",{class:"fox-actionsheet"},L);if(!n.poppable)return I;const F=["fox-actionsheet__popup"];n.popClass&&F.push(n.popClass);const j={popClass:F.join(" "),visible:C.value,closeable:!1,"onUpdate:visible":z,position:n.position,round:"round",onClickOverlay:P,closeOnClickOverlay:n.closeOnClickOverlay};return t.h(ce,j,{default:()=>I})}}}}const{componentName:Om,create:Km,scope:Um}=Y("actionsheet-pane"),Uo=Km(Rm(Om,Um)),Hm={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 jm(e,o,l,n,a,r,s){return{props:{...ue,...de,...Hm,...An},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const f=Ce(t.computed(()=>i.disabled)),m=$e(t.computed(()=>i.readonly)),{emitEvent:d}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!f.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),k=Ae(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`]:f.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=T=>{C.value=T},M=T=>{k.value=T,d("update:modelValue",T)},A=(T,R)=>{d("change",T,R)},w=T=>{let I=T.target.value;g.value=!0,d("focus",I,T)},z=T=>{setTimeout(()=>{g.value=!1},0);let I=T.target.value;i.maxLength&&I.length>Number(i.maxLength)&&(I=I.slice(0,Number(i.maxLength))),d("blur",I,T)},P=T=>{v.value=T,d("update:text",T)},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=T=>{k.value="",d("update:modelValue","",T),d("change","",T),d("clear","")},H=t.computed(()=>i.clearable&&!f.value&&!m.value),G=t.computed(()=>ge(k.value)>0&&g.value),K=T=>{G.value?W(T):V()},L=t.computed(()=>G.value&&H.value?n:a),$=t.computed(()=>({action:!0})),q=t.ref(null);return Te({search:T=>{q.value&&q.value.search(T)},clear:()=>{q.value&&q.value.clear},confirm:T=>{q.value&&q.value.confirm()},cancel:()=>{q.value&&q.value.cancel()}}),()=>{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:z};s&&(T.disabled=!0);const R=[],I=t.h("input",T);R.push(I);const F=[],j={class:["action-icon"]},X=t.h(L.value,j),O={class:$.value,onClick:K},Q=t.h("view",O,{default:()=>[X]});if(F.push(Q),x.value){const Ze=t.h("view",{class:D.value},[i.unit]);F.push(Ze)}const Z={class:E.value},ee=t.h("view",Z,{default:()=>F});R.push(ee);const _={default:()=>R};_.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=q,oe.class=i.actionsheetProps,oe.disabled=f.value||m.value,oe.visible=C.value,oe["onUpdate:visible"]=B,oe.modelValue=k.value,oe["onUpdate:modelValue"]=M,oe.text=v.value,oe["onUpdate:text"]=P,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},Ee=t.h(r,oe,le);_.hide=()=>[Ee];const ve=he(i,de,ue);return t.h(l,ve,_)}}}}const{componentName:Wm,create:Ym,scope:Xm}=Y("actionsheet-item"),al=Ym(jm(Wm,Xm,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:Qm,create:Gm}=Y("input-number"),Zm=Gm({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=Qm;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")},f=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)},d=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:d,focus:m,add:f,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:pe}}}),Jm=["min","max","disabled","readonly","value"];function _m(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,Jm),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(Zm,[["render",_m]]);function ep(e,o,l,n){return{props:{...ue,...de,...$n},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=$e(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),f=e,m=Ae(a,"modelValue"),d=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":d},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"]=f,t.h(l,p,u)}}}}const{componentName:tp,create:op,scope:np}=Y("inputnumber-item"),rl=op(ep(tp,np,be,Qe)),lp={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},cr=(e,o)=>o[e.textKey],At=(e,o)=>o[e.valueKey],ap=(e,o)=>o[e.visibleKey],ur=(e,o)=>o[e.disabledKey],rp=(e,o)=>{const l=o[e.doitKey];return me(l)},sp=(e,o)=>{const l=o[e.numKey];return l==null?null:fe(o[l])},dr=(e,o,l)=>{const n=e.itemOptions;return typeof n=="function"?n(o,l):n||null};function ip(e,o,l,n=!1){return{props:{...lp},emits:["update:modelValue","change"],setup(a,{slots:r,emit:s}){t.computed(()=>{const K={};return K[`${e}`]=!0,K});const i=t.computed(()=>{const K={};return K[`${e}__titles`]=!0,K[`${a.direction}`]=!0,a.align==="left"&&(K.left=!0),a.scroll===!0&&(K.scrollable=!0),a.shape&&(K[`${a.shape}`]=!0),K}),c=t.computed(()=>({})),f=t.computed(()=>{if(!a.gutter)return 0;const K=se(a.gutter);return K<=0?0:K}),m=t.ref(a.modelValue);t.watch(()=>a.modelValue,K=>{m.value!==K&&(m.value=K,U(!1))});const d=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),h=t.computed(()=>{const K={};return g.value||(K.display="none"),K}),y=t.ref(),g=t.ref(!1),k=()=>{const K=!g.value;v(K)},v=K=>{const L=K;L?(g.value=L,setTimeout(()=>{d.value["fox-tabs-bar__popup--show"]=!0,d.value["fox-tabs-bar__popup--hide"]=!1},0)):(d.value["fox-tabs-bar__popup--show"]=!1,d.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=(K,L)=>{p.value[L]=K},S=K=>L=>{b(L,K)},N=(K,L)=>{const $=u.value,q=p.value;if(!$||!q||!q[K])return;const T=q[K];let R=0;a.direction==="vertical"?R=T.offsetTop-($.offsetHeight-T.offsetHeight)/2:R=T.offsetLeft-($.offsetWidth-T.offsetWidth)/2,C($,R,L?0:.3,a.direction)},C=(K,L,$,q)=>{let T=0;const R=q==="horizontal"?K.scrollLeft:K.scrollTop,I=$===0?1:Math.round($*1e3/16);function F(){q==="horizontal"?K.scrollLeft+=(L-R)/I:K.scrollTop+=(L-R)/I,++T<I&&Le(F)}F()},V=(K,L)=>{const $=At(a,K),q={};return q[`${e}__titles-item`]=!0,q.disabled=ur(a,K),q.active=$===m.value,a.shape&&(q[`${a.shape}`]=!0),a.ellipsis&&(q.ellipsis=!0),L&&(L.class&&(q[`${L.class}`]=!0),L.disabled===!0&&(q.disabled=L.disabled)),q},B=(K,L)=>{const $={};if(f.value>0){const q=Math.abs(f.value/2);a.direction==="vertical"?($["margin-top"]=`${q}px`,$["margin-bottom"]=`${q}px`):($["margin-left"]=`${q}px`,$["margin-right"]=`${q}px`)}return L&&L.style&&Object.assign($,L.style),$},M=(K,L)=>`${At(a,K)??L}`,A=(K,L)=>{const $=At(a,K),q={};q[`${e}__popup-item`]=!0,q.disabled=ur(a,K),q.active=$===m.value,a.shape&&(q[`${a.shape}`]=!0);const T=dr(a,K,L);return T&&T.disabled===!0&&(q.disabled=T.disabled),q},w=t.computed(()=>(a.data??[]).filter(L=>ap(a,L)!==!1)),z=(K,L)=>{const $=At(a,K);if(m.value==$)return;const q=()=>{m.value=$,a.scroll&&N(L,!1),s("update:modelValue",$),s("change",K,L)};if(typeof a.beforeChange=="function"){const T=a.beforeChange(K,L);ht(T)?T.then(R=>{R!==!1&&q()}).catch(()=>{q()}):T!==!1&&q()}else q()},P=(K,L)=>function(){z(K,L)},E=(K,L)=>{z(K,L),v(!1)},x=(K,L)=>function(){E(K,L)},U=K=>{if(!Array.isArray(a.data)||!a.scroll)return;const L=a.data.findIndex($=>At(a,$)===m.value);L!==-1&&N(L,K)};t.watch(()=>a.data,()=>{setTimeout(U,0)}),t.onMounted(()=>{U(!0)});const D=(K,L)=>{if(r.item)return r.item({item:K,index:L});const $=dr(a,K,L),q=[];if(r.text){const F=r.text({item:K,index:L});q.push(F)}else{const F=[];if($?.doit===!0||rp(a,K)){const Q={class:[`${e}__titles-item-tip`,"doit"]},Z=t.h("view",Q);F.push(Z)}const j=$?.num??sp(a,K);if(j){let Q="";const Z=fe(j);Z>=100?Q="99+":Q=`${Z}`;const ee={class:[`${e}__titles-item-tip`,"num"]},_=t.h("view",ee,[Q]);F.push(_)}const X={class:`${e}__titles-item-text`};F.push(cr(a,K));const O=t.h("view",X,F);q.push(O)}const T={class:`${e}__titles-item-line`},R=t.h("view",T);q.push(R);const I={ref:S(L),class:V(K,$),style:B(K,$),key:M(K,L),onClick:P(K,L)};return t.h("view",I,q)},W=()=>{const K=r.default?r.default():[];if(K.length===0)for(let $=0;$<w.value.length;$++){const q=w.value[$],T=D(q,$);K.push(T)}const L={ref:u,class:i.value,style:c.value};return t.h("view",L,K)},H=()=>{let K=null;r.navigation?K=r.navigation():K=t.h(l);const L={class:`${e}__navigation`,onClick:k};return t.h("view",L,[K])},G=()=>{const K=[];for(let $=0;$<w.value.length;$++){const q=w.value[$];let T=null;r.popupItem?T=r.popupItem({item:q,index:$}):T=cr(a,q);const R={class:A(q,$),key:M(q,$),onClick:x(q,$)},I=t.h("view",R,[T]);K.push(I)}const L={class:d.value,style:h.value};return t.h("view",L,K)};return()=>{const K=[],L=W();if(K.push(L),a.showQuickNavigation){const q=H();K.push(q);const T=G();K.push(T)}const $={class:`${e}`};return t.h("view",$,K)}}}}const{create:cp,componentName:up,scope:dp}=Y("tabs-bar"),sl=cp(ip(up,dp,te.MoreH,!1)),Bs=Symbol("TabsStatesKey"),{create:fp}=Y("tabs-container"),mp=fp({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 d={name:m};n.current.value===m&&(d.loaded=!0),l.value.push(d),t.triggerRef(l)},remove:m=>{const d=l.value.findIndex(h=>h.name===m);d!==-1&&l.value.splice(d,1)},isLoaded:m=>{const d=l.value.findIndex(h=>h.name===m);return d!==-1?n.current.value?l.value[d].loaded??!1:d===0:!1}};t.provide(Bs,n);const a=m=>{const d=l.value.findIndex(h=>h.name===m);d!==-1&&(l.value[d].loaded=!0,t.triggerRef(l))};t.watch([()=>e.modelValue,()=>e.direction],([m,d])=>{n.current.value!==m&&(n.current.value=m??"",a(m??"")),n.direction.value!==d&&(n.direction.value=d)});const r=t.ref(null),s=t.ref(null),i=t.computed(()=>({"fox-tabs-container":!0,[`${e.direction}`]:!0})),c=t.computed(()=>{const m={},d=l.value.length;if(d<=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=`${d*n.tabHeight.value}px`,h!==-1&&(m.transform=`translate(0, -${h*n.tabHeight.value}px)`)):n.tabWidth.value>0&&(m.width=`${d*n.tabWidth.value}px`,h!==-1&&(m.transform=`translate(-${h*n.tabWidth.value}px, 0)`)),m});let f=null;return t.onMounted(()=>{if(!r.value)return;const m=()=>{const d=No(r.value);n.tabWidth.value=d.width,n.tabHeight.value=d.height};window.ResizeObserver&&(f=new window.ResizeObserver(m),f.observe(r.value)),m()}),t.onBeforeUnmount(()=>{f&&(f.disconnect(),f=null)}),{tabsRef:r,panesRef:s,classes:i,panesStyles:c}}});function pp(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(mp,[["render",pp]]),{create:hp}=Y("tabs-pane"),gp=hp({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(Bs);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}}}),yp={class:"fox-tabs-pane__empty"},vp=t.createElementVNode("view",{class:"fox-tabs-pane__empty-text"},"loading",-1);function kp(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",yp,[t.createVNode(s,{class:"fox-tabs-pane__empty-icon"}),vp])])],4)}const cl=J(gp,[["render",kp]]),bp={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function Sp(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function fr(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function mr(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function Cp(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 pr(e,o){return typeof e.doitKey=="string"&&e.doitKey.length>0?o[e.doitKey]:o.doitKey??null}function hr(e,o){return typeof e.labelKey=="string"&&e.labelKey.length>0?o[e.labelKey]:o.labelKey??null}function tn(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let wp=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 Np(){const e=t.getCurrentInstance();return new wp(e.proxy)}function Bp(e,o,l,n){return{props:{...bp},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:s}){const i=e,c=Np(),f=t.ref([]),m=t.computed(()=>f.value.filter($=>Cp(a,$)!==!1)),d=t.ref(-1),h=()=>{const $=a.modelValue,q=m.value.findIndex(T=>fr(a,T)===$);d.value!==q&&(d.value=q,a.scroll&&K(q,!1))};t.watch([()=>a.modelValue,m],()=>{h()});const y=$=>d.value===$,g=$=>{if($<0&&$>=m.value.length)return!1;const q=m.value[$],R=(tn(a,q,$)??{}).status??en(a,q);return y($)||R},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=($,q,T,R,I)=>{const F={[`${i}__step`]:!0};return I&&(F[`${I}`]=!0),F[`${p.value}`]=!0,R&&(F["is-doit"]=!0),$===d.value?F["is-active"]=!0:q==="done"?F["is-done"]=!0:q==="error"?F["is-error"]=!0:q==="half"?F["is-half"]=!0:T?F["is-disabled"]=!0:F["is-normal"]=!0,F},p=t.computed(()=>{if(a.mode==="simple")return"start";let $=a.align;return $||(a.direction==="vertical"?$="start":$="center"),$}),b=($,q={})=>{const T={...q};return p.value==="start"&&$===m.value.length-1?T.flex="0 0 auto":a.step?a.direction==="vertical"?T.height=a.step:T.width=a.step:T.flex="1 1 100%",T},S=($,q)=>{let T={};if(q<m.value.length-1){const R=q+1;g(q)&&g(R)?a.direction==="vertical"?T.height="100%":T.width="100%":T.opacity="0"}return T},N=$=>m.value.length-1===$,C=($,q)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&q>d.value||d.value===q)return;const T=d.value,R=q;d.value=q,a.scroll&&K(q,!1);const I=fr(a,$);s("update:modelValue",I);const F={fromIndex:T,currentIndex:R,item:$,items:m.value,clickNavigatePolicy:a.clickNavigatePolicy};s("change",I,F)},V=t.ref(!0),B=async($,q)=>{try{const T=await c.load("stesbar",$,q);Array.isArray(T)&&(f.value=T),V.value=!1}catch(T){console.error("[FoxUI] Load StepsBar Data Fail",T),f.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([$,q])=>{$&&B($,q)},{immediate:!0});const M=($,q,T,R,I)=>{let F=null;if(r.icon)F=r.icon({item:$,index:q,status:R});else if(R==="done"){const X={};a.iconSize&&(X.width=a.iconSize,X.height=a.iconSize);const O=a.icon??l;F=t.h(O,X)}else{const X=T??`${q+1}`;F=t.h("span",{},[X])}const j={class:"fox-steps-bar__icon",onClick:()=>{I||C($,q)}};return t.h("view",j,[F])},A=($,q,T)=>{const R=t.h("i",{class:"fox-steps-bar__line-inner",style:S($,q)});return t.h("view",{class:"fox-steps-bar__line"},[R])},w=()=>{let $=null;if(r.markIcon)$=r.markIcon();else{const T={};a.iconSize&&(T.width=a.markIconSize,T.height=a.markIconSize);const R=a.markIcon??n;$=t.h(R,T)}return t.h("view",{class:"fox-steps-bar__mark"},[$])},z=($,q,T,R,I)=>{const F=[];if(!N(q)){const O=A($,q);F.push(O)}const j=M($,q,T,R,I);F.push(j);const X={class:"fox-steps-bar__head"};return t.h("view",X,F)},P=($,q,T,R)=>{let I=null;r.main?I=r.main({item:$,index:q,status:T}):I=Sp(a,$);const F={class:"fox-steps-bar__main",onClick:()=>{R||C($,q)}};return t.h("view",F,[I])},E=($,q,T)=>{let R=null;if(r.sub){R=r.sub({item:$,index:q,status:T});const I={class:"fox-steps-bar__sub"};return t.h("view",I,[R])}return null},x=($,q)=>{const T=tn(a,$,q)??{},R=T.status??en(a,$);let I=mr(a,$);T.disabled===!0&&(I=!0),a.disabled===!0&&(I=!0);const F=T.label??hr(a,$),j=[],X=M($,q,F,R,I);X&&j.push(X);const O=P($,q,R,I);if(O&&j.push(O),!N(q)){const le=A($,q);le&&j.push(le)}const Q=t.h("view",{class:"fox-steps-bar__head"},j),Z=T.class,ee=T.style??{};let _=pr(a,$);T.doit===!0&&(_=!0);const oe={ref:G(q),class:u(q,R,I,_,Z),style:b(q,ee)};return t.h("view",oe,[Q])},U=($,q)=>{const T=tn(a,$,q)??{},R=T.status??en(a,$);let I=mr(a,$);T.disabled===!0&&(I=!0),a.disabled===!0&&(I=!0);const F=T.label??hr(a,$),j=[],X=a.layout;for(let _ of X)if(_==="head"){const oe=z($,q,F,R,I);j.push(oe)}else if(_==="main"){const oe=P($,q,R,I);j.push(oe)}else if(_==="sub"){const oe=E($,q,R);j.push(oe)}else if(_==="mark"){const oe=w();j.push(oe)}const O=T.class,Q=T.style??{};let Z=pr(a,$);T.doit===!0&&(Z=!0);const ee={ref:G(q),class:u(q,R,I,Z,O),style:b(q,Q)};return t.h("view",ee,j)},D=t.ref(),W=t.ref([]),H=($,q)=>{W.value[q]=$},G=$=>q=>{H(q,$)},K=($,q)=>{const T=D.value,R=W.value;if(!T||!R||!R[$])return;const I=R[$];let F=0;a.direction==="vertical"?F=I.offsetTop-(T.offsetHeight-I.offsetHeight)/2:F=I.offsetLeft-(T.offsetWidth-I.offsetWidth)/2,L(T,F,q?0:.3,a.direction)},L=($,q,T,R)=>{let I=0;const F=R==="horizontal"?$.scrollLeft:$.scrollTop,j=T===0?1:Math.round(T*1e3/16);function X(){R==="horizontal"?$.scrollLeft+=(q-F)/j:$.scrollTop+=(q-F)/j,++I<j&&Le(X)}X()};return()=>{const $=[];if(a.mode==="simple")for(let T=0;T<m.value.length;T++){const R=m.value[T],I=x(R,T);$.push(I)}else for(let T=0;T<m.value.length;T++){const R=m.value[T],I=U(R,T);$.push(I)}const q={ref:D,class:k.value,style:v.value};return t.h("view",q,$)}}}}const{componentName:Vp,create:Ap,scope:$p}=Y("steps-bar"),ul=Ap(Bp(Vp,$p,te.Checklist,te.ArrowRight)),gr=10;function Tp(e,o){return e>o&&e>gr?"horizontal":o>e&&o>gr?"vertical":""}function Ep(){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=Tp(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 Dp(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function xp(e){e.stopPropagation()}class Ip{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=Dp()}open(o){Array.isArray(o)||(o=[o]),this.els=o;const l=Ep(),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),xp(a),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 qp(e,o){return new Ip(e,o)}const Mp={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]}},zp=(e,o,l,n=!1)=>({props:{...Mp},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(()=>{const p=[`${e}`];return a.customClass&&p.push(a.customClass),p}),f=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),ie(a.borderRadius)||(p["border-radius"]=a.borderRadius),p}),m=t.computed(()=>({[`${e}__icon`]:!0})),d=()=>{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=qp(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:f.value,onClick:d};return t.h("view",S,p)}}}),{componentName:Pp,create:Lp,scope:Fp}=Y("floating-button"),dl=Lp(zp(Pp,Fp,te.Uploader,!1)),Rp={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1}};function Op(e,o,l){return{props:{...Rp},emits:["click","update:modelValue"],setup(n,{emit:a}){const r=t.computed(()=>{const d={[`${e}`]:!0};return n.disabled?d[`${e}--disabled`]=!0:d[`${e}--${n.type}`]=!0,d}),s=Ae(n,"modelValue"),i=t.computed(()=>s.value?n.expandText??"":n.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),f=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),m=()=>{a("update:modelValue",!s.value)};return()=>{const d=[];if(i.value){const v={class:c.value},u=t.h("span",v,[i.value]);d.push(u)}const h={class:f.value},y=n.icon??l,g=t.h(y,h);return d.push(g),n.textPosition==="right"&&d.reverse(),t.h("view",{class:r.value,onClick:m},d)}}}}const{componentName:Kp,create:Up,scope:Hp}=Y("more-button"),fl=Up(Op(Kp,Hp,te.RectUp)),jp={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}},Wp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Yp(e,o,l){return{props:{...jp},setup(n,{attrs:a,slots:r}){const{toLocaleRefs:s}=ae.useFoxI18n(o),i=s(n,["confirmText","cancelText"]),c=e,f=t.ref(!0),m=S=>{f.value=S},d=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=()=>{d("confirm")},y=()=>{d("cancel")},g=()=>{d("close")},k=(S,N)=>Wp(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`},M=t.h("view",B,[N]);C.push(M)}if(S){const B=[];Array.isArray(S)||(S=[S]);for(let M of S){const A={class:`${c}__group-row`,innerHTML:M},w=t.h("view",A);B.push(w)}if(B.length>0){const M={class:`${c}__group-rows`},A=t.h("view",M,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}},M=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 z={popClass:A.join(" "),style:w,visible:f.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":m,position:n.position,round:"round",onClickOverlay:g,closeOnClickOverlay:n.closeOnClickOverlay};return t.h(l,z,{default:()=>M})}}}}const{componentName:Xp,create:Qp,scope:Gp}=Y("messagebox"),Zp=Qp(Yp(Xp,Gp,ce)),Jp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M82.5121%201.93968L81.7498%206.07825C81.6498%206.6214%2081.1284%206.98064%2080.5853%206.8806C80.4326%206.85251%2080.2886%206.78925%2080.1646%206.69578L77.1586%204.43061C76.7175%204.09823%2076.6294%203.47123%2076.9618%203.03016C77.0552%202.90617%2077.1762%202.80562%2077.3153%202.73655L81.0834%200.863097C81.5779%200.617235%2082.1782%200.818843%2082.4241%201.31339C82.5204%201.50712%2082.5512%201.72688%2082.5121%201.93968Z'%20fill='%23FFD1C9'%20%3e%3c/path%3e%3cpath%20d='M3.08218%20102.2L6.53454%2094.2358C6.75419%2093.7291%207.34251%2093.4968%207.84925%2093.7164C7.99216%2093.7778%208.11815%2093.872%208.21791%2093.9909L13.2085%2099.9384C13.5635%20100.361%2013.5081%20100.992%2013.0852%20101.347C12.9665%20101.447%2012.8261%20101.518%2012.675%20101.554L4.23203%20103.571C3.69484%20103.699%203.15538%20103.367%203.02699%20102.83C2.97674%20102.62%202.99607%20102.399%203.08218%20102.2Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23FF5959'%20%3e%3c/circle%3e%3cpath%20d='M59.935%2049.6213C61.3827%2051.069%2061.3827%2053.4162%2059.935%2054.864L45.935%2068.864C44.4873%2070.3117%2042.1401%2070.3117%2040.6924%2068.864C39.2447%2067.4162%2039.2447%2065.069%2040.6924%2063.6213L54.6924%2049.6213C56.1401%2048.1736%2058.4873%2048.1736%2059.935%2049.6213Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3cpath%20d='M40.6924%2049.6213C39.2447%2051.069%2039.2447%2053.4162%2040.6924%2054.864L54.6924%2068.864C56.1401%2070.3117%2058.4873%2070.3117%2059.935%2068.864C61.3827%2067.4162%2061.3827%2065.069%2059.935%2063.6213L45.935%2049.6213C44.4873%2048.1736%2042.1401%2048.1736%2040.6924%2049.6213Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%23FFD1C9'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L102%20110L102%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",_p="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='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",eh="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",th="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",oh=new Do,nh={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},lh=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-${oh.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(Zp,e);o.appendChild(n),t.render(r,n)},tt={show:(e,o,l,n)=>{const a={...nh};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=eh:r==="warning"?a.icon=th:r==="error"?a.icon=Jp:a.icon=_p),e==="alert"?(a.showCancelButton=!1,a.showConfirmButton=!0):e==="confirm"&&(a.showCancelButton=!0,a.showConfirmButton=!0),a.showClose&&!a.closeIcon&&(a.closeIcon=te.Close),new Promise((s,i)=>{const c=a.callback;a.callback=f=>{if(typeof c=="function")try{c(f)}catch(m){console.error(m)}s({action:f})},lh(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}},ah=(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)},rh=new Do,sh=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),ih=e=>`${e}-${rh.get()}`,ch=Symbol.for("InnerPageScopeKey"),uh=Symbol.for("PageWrapperKey"),dh="FoxLeave",fh="FoxLeaveEnd",mh={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 ph(e,o,l,n){return{props:{...ze,...mh},emits:["update:visible"],setup(a,{attrs:r,slots:s,emit:i}){t.provide(ch,!0);const c={};t.provide(uh,c);const f=C=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),m=()=>{f()},d=e,h=C=>{y.value=C,i("update:visible",C)},y=t.ref(!1),g=(C,V)=>sh(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:`${d}__header-title`},[a.title]);C.push(B)}if(C.length===0)return null;const V={class:[`${d}__header`]};return t.h("view",V,C)},v=()=>{if(!a.showClose)return null;const C={class:[`${d}__close-icon`],onClick:m},V=a.closeIcon??n;return g(V,C)};let u=null;const p=C=>{ah(fh,{},u)},b=ih(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(dh,N,{once:!0}),S()}),()=>{const C=[],V=k();V&&C.push(V);const B=v();B&&C.push(B);const M=s.default?s.default():[];Reflect.apply([].push,C,M);const A={[`${d}`]:!0};a.mode&&(A[`${d}--${a.mode}`]=!0);const w={class:A},z=t.h("view",w,C),P=[`${d}__popup`,b];a.popClass&&P.push(a.popClass),a.position&&P.push(`${d}__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:P.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:()=>z});return t.h("div",{class:[`${d}__root`,b]},[D])}}}}const{componentName:hh,create:gh,scope:yh}=Y("popup-wrapper"),ml=gh(ph(hh,yh,ce,te.Close));function vh(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 kh={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 bh(e,o,l=!1){return{props:{...kh},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}),f=y=>{if(y&&me(n.showOverflowTooltip)){const g=y.clientWidth;vh(y,k=>{r.value=k<=g})}};let m=null;t.onMounted(()=>{if(!me(n.showOverflowTooltip))return;const y=s.value;f(y),y&&window.ResizeObserver&&(m=new window.ResizeObserver(()=>{f(y)}),m.observe(y))}),t.onUnmounted(()=>{m?.disconnect()});const d=(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=d(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=d(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:Sh,create:Ch,scope:wh}=Y("text"),pl=Ch(bh(Sh,wh,!1));function Nh(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 f=0;c&&f<r.length;f++){let m=r[f],d=c.find(h=>h[n]===m);if(!d)break;s.push(d[l])}return s}if(Array.isArray(i))for(let c=0;c<o.length&&c<r.length;c++){let f=o[c],m=r[c];const d=f.find(h=>h[n]===m);if(!d)break;s.push(d[l])}else{let c=o;for(let f=0;c&&f<r.length;f++){let m=r[f],d=c.find(h=>h[n]===m);if(!d)break;s.push(d[l]),c=d[a]}}return s}class Bh{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 Vh(){const e=t.getCurrentInstance();return new Bh(e.proxy)}const Ah={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 $h(e,o,l=!1){return{props:{...Ah},setup(n,{attrs:a,slots:r}){const s=Vh(),i=t.ref([]);t.watch([()=>n.source,()=>n.params],async([m,d])=>{i.value=await s.load(n.sourceType,m,d)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let m=Nh(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)}),f=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(f,m,{default:()=>c.value}):t.h(f,m,c.value)}}}}const{componentName:Th,create:Eh,scope:Dh}=Y("mapping"),hl=Eh($h(Th,Dh,!1));function xh(e,o){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return jr(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:s2,create:Ih,scope:i2}=Y("domain-provider"),gl=Ih(xh()),qh={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 Mh(e,o){return{inheritAttrs:!1,props:qh,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;zi({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 d=(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&&d(g,l.rootMargin,l.threshold)},{immediate:!0}),t.onUnmounted(()=>{m&&(m.disconnect(),m=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:c2,create:zh,scope:u2}=Y("rolling-provider"),yl=zh(Mh()),{componentName:Ph,create:Lh}=Y("cell"),Fh=Lh({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=Ph;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}}}),Rh={key:0,class:"fox-cell__icon"},Oh={key:1,class:"fox-cell__title"},Kh={class:"title"},Uh={class:"fox-cell__title-desc"};function Hh(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",Rh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Oh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Kh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Uh,t.toDisplayString(e.subTitle),1)],64)):t.renderSlot(e.$slots,"title",{key:1},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),7)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"link",{},()=>[e.isLink?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const vl=J(Fh,[["render",Hh]]),{componentName:jh,create:Wh}=Y("cell-group"),Yh=Wh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[jh]:!0}))}}}),Xh={key:1,class:"fox-cell-group__title"},Qh={key:3,class:"fox-cell-group__desc"},Gh={class:"fox-cell-group__wrap"};function Zh(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",Xh,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",Qh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Gh,[t.renderSlot(e.$slots,"default")])],2)}const kl=J(Yh,[["render",Zh]]),{componentName:Jh,create:_h}=Y("image"),eg=_h({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=Jh;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}),f=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")},d=()=>{l.isError=!0,l.loading=!1,o("error")},h=y=>{o("click",y)};return{...t.toRefs(l),imageClick:h,classes:n,styles:f,stylebox:c,error:d,load:m,show:r,imgRef:s}}}),tg=["src","date-src","alt"],og={key:0,class:"fox-img-loading"},ng={key:1,class:"fox-img-error"};function lg(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,tg),e.loading?(t.openBlock(),t.createElementBlock("div",og,[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",ng,[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 bl=J(eg,[["render",lg]]),{create:ag}=Y("layout"),Sl=ag({}),{componentName:rg,create:sg}=Y("col"),ig=sg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const o=rg,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 cg(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 Cl=J(ig,[["render",cg]]),{componentName:ug,create:dg}=Y("row"),fg=dg({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=ug;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 ig(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=_(sg,[["render",ig]]),{componentName:cg,create:ug}=Y("divider"),dg=ug({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=cg;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 fg(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=_(dg,[["render",fg]]);function mg(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 pg(e,o,l){const n=mg(e.subTree.children,l);o.sort((a,r)=>n.indexOf(a.vnode)-n.indexOf(r.vnode))}function hg(e,o){const l=t.shallowReactive([]),n=t.getCurrentInstance(),a=i=>{i.proxy&&(l.push(t.markRaw(i)),pg(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:gr}=Y("grid"),Bs=Symbol("grid"),gg={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}},yg={props:gg,setup(e,{slots:o}){hg(Bs,`${gr}-item`)({props:e});const l=t.computed(()=>{const a=gr;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:vg}=Y("grid"),Nl=vg(yg);function kg(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:bg,componentName:yr}=Y("grid-item"),Sg=bg({props:{text:{type:String}},emits:["click"],setup(e,{emit:o}){const l=kg(Bs);if(!l.parent)return{};const n=l.index,a=l.parent.props,r=t.computed(()=>({[yr]:!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=`${yr}__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)}}}}),Cg={class:"fox-grid-item__text"};function wg(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",Cg,[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=_(Sg,[["render",wg]]),{componentName:Ng,create:Bg}=Y("navbar"),Vg=Bg({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=Ng;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}}}),Ag={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},$g={key:1,class:"fox-navbar__text"},Tg={class:"fox-navbar__title"},Eg={key:0,class:"fox-navbar__text"},Dg={key:1,class:"fox-navbar__text"},xg={class:"fox-navbar__title"},Ig={key:0,class:"fox-navbar__text"};function qg(e,o,l,n,a,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Ag,[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",$g,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Tg,[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",Eg,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",xg,[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",Ig,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Vl=_(Vg,[["render",qg]]),Mg=(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:zg,create:Lg,scope:Pg}=Y("fixednav"),Fg=Lg(Mg(zg,Pg,{[at.name]:at,Left:te.Left})),Rg={class:"fox-fixednav__list"},Og=["onClick"],Kg=["src"],Ug={class:"span"},Hg={key:0,class:"b"},jg={class:"text"};function Wg(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",Rg,[(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,Kg),t.createElementVNode("view",Ug,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Hg,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Og))),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",jg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Al=_(Fg,[["render",Wg]]),{componentName:Yg,create:Xg}=Y("menu"),Qg=Xg({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(()=>({[Yg]:!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}}}),Gg=["onClick"],Zg={class:"fox-menu__title-text"},Jg={class:"fox-menu__title-icon"};function _g(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",Zg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Jg,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Gg))),128))],2),t.renderSlot(e.$slots,"default")],2)}const $l=_(Qg,[["render",_g]]),{componentName:ey,create:ty}=Y("menu-item"),oy=ty({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:k,removeLink:v}=y;return k(g),t.onUnmounted(()=>{v(g)}),{parent:y}}},{parent:r}=a(),s=t.computed(()=>({[ey]:!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")}}}}),ny={class:"fox-menu-item__content fox-menu-item__overflow"},ly=["onClick"];function ay(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",ny,[(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,ly))),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=_(oy,[["render",ay]]),{create:ry}=Y("tabbar"),sy=ry({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 iy(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=_(sy,[["render",iy]]),{create:cy}=Y("tabbar-item"),uy=cy({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,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}}}),dy={class:"fox-tabbar-item_icon-box"},fy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},my={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},py={key:1,class:"fox-tabbar-item_icon-box_dot"},hy={key:2},gy={key:0};function yy(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",dy,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",fy,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",my,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",py)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",hy,[(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",gy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Dl=_(uy,[["render",yy]]),{componentName:vy,create:ky}=Y("elevator"),by=ky({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(()=>({[vy]:!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}}}),Sy={class:"fox-elevator__list__item__code"},Cy=["onClick"],wy=["innerHTML"],Ny={class:"fox-elevator__fixed-title"},By={class:"fox-elevator__bars__inner"},Vy=["data-index","onClick"];function Ay(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",Sy,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,wy))],10,Cy))),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",Ny,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",By,[(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,Vy))),128))])],32)],2)}const Ot=_(by,[["render",Ay]]),{componentName:r2,create:$y,scope:Ty}=Y("pagination"),Ey=$y({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(Ty),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}}}),Dy={class:"fox-pagination"},xy={key:0,class:"fox-pagination-contain"},Iy=["onClick"],qy={key:1,class:"fox-pagination-contain"},My={class:"fox-pagination-simple"};function zy(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",xy,[(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,Iy))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",qy,[t.createElementVNode("view",My,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=_(Ey,[["render",zy]]),{componentName:vr,create:Ly}=Y("indicator"),Py=Ly({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=vr;return{[a]:!0,[`${a}--block`]:o.value,[`${a}--align__${l.value}`]:o.value&&l.value}}),componentName:vr,padZero:Je}}});function Fy(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=_(Py,[["render",Fy]]),{componentName:Ry,create:Oy}=Y("side-navbar"),Ky=Oy({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(()=>({[Ry]:!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}}}),Uy={class:"fox-side-navbar__content"},Hy={class:"fox-side-navbar__content__list",ref:"list"};function jy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Uy,[t.createElementVNode("view",Hy,[t.renderSlot(e.$slots,"default")],512)])],2)}const ql=_(Ky,[["render",jy]]),{componentName:Wy,create:Yy}=Y("side-navbar-item"),Xy=Yy({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,o)=>({classes:t.computed(()=>({[Wy]:!0})),handleClick:()=>{o.emit("click")}})}),Qy=["ikey"],Gy={class:"fox-side-navbar-item__title"};function Zy(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",Gy,t.toDisplayString(e.title),1)],10,Qy)}const Ml=_(Xy,[["render",Zy]]),{componentName:Jy,create:_y}=Y("sub-side-navbar"),ev=_y({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(()=>({[Jy]:!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}}}),tv=["ikey"],ov={class:"fox-sub-side-navbar__title__text"},nv={class:"fox-sub-side-navbar__title__icon"};function lv(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",ov,t.toDisplayString(e.title),1),t.createElementVNode("span",nv,[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,tv)}const zl=_(ev,[["render",lv]]),{componentName:av,create:rv}=Y("range"),sv=rv({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=av;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[P,$]=U;H=P,G=$}else G=U;let K=E<=G&&E>=H;return{[`${x}-text`]:!0,[`${x}-text-active`]:K}},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[P,$]=x;W=P,H=$}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)},M=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[K,P]=U,$=(K+P)/2;G<=$?B([G,P],!0):B([K,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()},z=()=>{e.disabled||(s.value==="draging"&&(B(a,!0),o("drag-end")),s.value="")},L=E=>ho(e.modelValue)&&typeof E=="number"?e.modelValue[E]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:h,buttonStyle:y,onClick:M,onTouchStart:A,onTouchMove:w,onTouchEnd:z,...t.toRefs(e),barStyle:u,curValue:L,buttonIndex:l,containerClasses:f,markClassName:p,marksStyle:b,marksList:c,tickStyle:S}}}),iv={key:0,class:"fox-range-min"},cv={key:0,class:"fox-range-mark"},uv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],dv={key:0,class:"number"},fv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],mv={key:0,class:"number"},pv={key:1,class:"fox-range-max"};function hv(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",iv,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",cv,[(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",dv,t.toDisplayString(e.curValue(s)),1))],4))],42,uv)),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",mv,t.toDisplayString(e.curValue()),1))],4))],40,fv))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",pv,t.toDisplayString(+e.max),1))],2)}const Kt=_(sv,[["render",hv]]),{create:gv,scope:yv}=Y("short-password"),vv=gv({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(yv),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}}}),kv={class:"fox-short-password-title"},bv={class:"fox-short-password-subtitle"},Sv={class:"fox-short-password-wrapper"},Cv={key:0,class:"fox-short-password__item-icon"},wv={class:"fox-short-password__message"},Nv={class:"fox-short-password--error"},Bv={key:0,class:"fox-short-password--forget"};function Vv(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",kv,t.toDisplayString(e.title),1),t.createElementVNode("view",bv,t.toDisplayString(e.desc),1),t.createElementVNode("div",Sv,[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",Cv)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",wv,[t.createElementVNode("view",Nv,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",Bv,[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 Ll=_(vv,[["render",Vv]]);class Av{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let $v=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 Tv{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const Vs=(e,{args:o=[],done:l,canceled:n})=>{if(e){const a=e.apply(null,o);ht(a)?a.then(r=>{r?l(r):n&&n()}).catch(()=>{}):a?l():n&&n()}else l()},{create:Ev}=Y("progress"),Dv=Ev({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}}}),xv={class:"fox-progress"},Iv={key:0,class:"fox-progress-text"};function qv(e,o,l,n,a,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",xv,[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",Iv,[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=_(Dv,[["render",qv]]),{componentName:Mv,create:zv,scope:Lv}=Y("uploader"),Pv=zv({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(Lv),n=t.reactive(e.fileList);let a=[];const r=t.computed(()=>({[Mv]:!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 Av;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 $v(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 Tv);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),Vs(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}}}),Fv={key:0,class:"fox-uploader__slot"},Rv={key:0,class:"fox-uploader__preview-img"},Ov={key:0,class:"fox-uploader__preview__progress"},Kv={class:"fox-uploader__preview__progress__msg"},Uv=["onClick"],Hv=["onClick","src"],jv={key:3,class:"fox-uploader__preview-img__file"},Wv=["onClick"],Yv={class:"file__name_tips"},Xv={class:"tips"},Qv={key:1,class:"fox-uploader__preview-list"},Gv=["onClick"],Zv={class:"file__name_tips"};function Jv(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",Fv,[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",Rv,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",Ov,[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",Kv,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,Uv)):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,Hv)):(t.openBlock(),t.createElementBlock("view",jv,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",Yv,t.toDisplayString(h.name),1)],8,Wv)])),t.createElementVNode("view",Xv,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",Qv,[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",Zv,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,Gv),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 Pl=_(Pv,[["render",Jv]]),_v="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb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64,iVBORw0KGgoAAAANSUhEUgAAACsAAAAgCAYAAACLmoEDAAACb0lEQVRYR+WY33HTMBzHvz/J72QD8tyzhJiAMAHdgDBBywQ0E5BuECYAJqCZAGPl+pxMQPoeSZwUy6ck7sUlBtziJ59P/urj33+ZlFIDa8wHAOcAhujftQYwY5xPSOb5FEQX/WPcI3LumqQQPwEMeg8LrD2sq0DnpdajvkFLIW4AvPJcjx/WJ50x5oX/Gs75qiiKpb9XSg2NMc+r5z+KovDBD3V2pgznz/y91noevSOECBbhxtwVt7dFpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:t0,scope:o0}=Y("number-keyboard"),n0=t0({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(o0),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:_v,lockImg:e0,clickKeyIndex:a,defaultKey:i,closeBoard:v,onTouchEnd:k,onTouchMove:g,onTouchstart:y,keysList:m,genCustomKeys:d,getBasicKeys:c,root:s,show:r}}}),l0={ref:"root"},a0={class:"fox-number-keyboard"},r0={key:0,class:"fox-number-keyboard__header"},s0={class:"fox-number-keyboard__title"},i0={class:"fox-number-keyboard__body"},c0={class:"fox-number-keyboard__keys"},u0=["onTouchstart"],d0=["src"],f0=["src"],m0={key:0,class:"fox-number-keyboard__sidebar"},p0={class:"fox-key__wrapper"},h0=["src"];function g0(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",l0,[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",a0,[e.title?(t.openBlock(),t.createElementBlock("div",r0,[t.createElementVNode("h3",s0,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",i0,[t.createElementVNode("div",c0,[(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,d0)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,f0)):t.createCommentVNode("",!0)],42,u0)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",m0,[t.createElementVNode("div",p0,[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,h0)],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=_(n0,[["render",g0]]),{componentName:y0,create:v0}=Y("swipe"),k0=v0({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(()=>({[y0]:!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}}}),b0={class:"fox-swipe__left",ref:"leftRef"},S0={class:"fox-swipe__content"},C0={class:"fox-swipe__right",ref:"rightRef"};function w0(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",b0,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",S0,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",C0,[t.renderSlot(e.$slots,"right")],512)],38)}const Ht=_(k0,[["render",w0]]),{componentName:N0,create:B0}=Y("action-sheet"),V0=B0({components:{[ce.name]:ce,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(()=>({[N0]:!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}}}),A0={key:0,class:"fox-action-sheet__title"},$0={key:1},T0={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},E0={key:1,class:"fox-action-sheet__menu"},D0=["onClick"],x0={key:1},I0={class:"fox-action-sheet__subdesc"};function q0(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",A0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",$0,[e.description?(t.openBlock(),t.createElementBlock("view",T0,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",E0,[(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",x0,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",I0,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=_(V0,[["render",q0]]),{componentName:M0,create:z0}=Y("backtop"),Ol=z0({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(()=>({[M0]:!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)&&Sr(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:L0,create:P0}=Y("drag"),F0=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(()=>({[L0]:!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",Pe(()=>{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",Pe(()=>{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",Pe(()=>{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?Pe(()=>{s(h)}):Pe(()=>{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 R0(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=_(F0,[["render",R0]]),O0={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}},K0=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function U0(e,o,l,n,a){return{props:{...ze,...O0},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);ht(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)=>K0(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},M=r.closeIcon??a,A=p(M,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 M=t.h("view",B);C.push(M)}else if(typeof r.content=="function"){const M=t.h("view",B,[r.content()]);C.push(M)}else{const M=t.h("view",B,[r.content]);C.push(M)}}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 M=t.h("view",B,[r.cancelButtonText??m.cancelText.value]);C.push(M)}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 M=t.h("view",B,[r.confirmButtonText??m.confirmText.value]);C.push(M)}}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 M=t.h(n,B,{default:()=>[r.cancelButtonText??m.cancelText.value]});C.push(M)}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 M=t.h(n,B,{default:()=>[r.confirmButtonText??m.confirmText.value]});C.push(M)}}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 M=N();M&&C.push(M);const A={class:{[`${f}`]:!0,[`${f}--plain`]:r.plain}},w=t.h("view",A,C),z=[`${f}__popup`];r.popClass&&z.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 x={...he(r,ze),popClass:z.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,x,{default:()=>w})}}}}const{componentName:H0,create:j0,scope:W0}=Y("dialog"),As=j0(U0(H0,W0,ce,Ie,te.Close));class Y0{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 X0{options=new Y0;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(As,l)}},c=t.createVNode(i);n.appendChild(r),t.render(c,r)}}const jt=function(e){return new X0(e)};jt.install=e=>{e.use(As),e.config.globalProperties.$dialog=jt};const{componentName:Q0,create:G0,scope:Z0}=Y("pull-refresh"),J0=G0({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(Z0),a=n(e,["pullingText","loosingText","loadingText"]),r=Ue(),s=t.ref(),i=us(s),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal"}),d=t.computed(()=>({[Q0]:!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}}}),_0={class:"fox-pull-refresh-container-topbox-text"};function ek(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",_0,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=_(J0,[["render",ek]]),{create:tk}=Y("notify"),ok=tk({components:{[ce.name]:ce},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit: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 nk(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=_(ok,[["render",nk]]),Tn={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let dt=[],It=[];const $s=e=>{if(e){const o=document.getElementById(e);It=It.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)}),It=[],dt=[]},lk=e=>{const o=document.getElementById(e.id);if(o){const l=It.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}},$t=e=>{e.unmount=$s;let o;if(e.id){if(o=e.id,dt.find(r=>r===e.id))return lk(e)}else o=new Date().getTime()+"";e={...Tn,...e},e.id=o,dt.push(e.id),It.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)},Tt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},jl={text(e,o={}){return Tt(e),$t({...o,msg:e})},primary(e,o={}){return Tt(e),$t({...o,msg:e,type:"primary"})},success(e,o={}){return Tt(e),$t({...o,msg:e,type:"success"})},danger(e,o={}){return Tt(e),$t({...o,msg:e,type:"danger"})},warn(e,o={}){return Tt(e),$t({...o,msg:e,type:"warning"})},hide(){$s()},install(e){e.use(Hl)}},{create:ak}=Y("toast"),rk=ak({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()}}}}),sk={key:1,class:"fox-toast-title"},ik=["innerHTML"];function ck(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",sk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,ik)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Wl=_(rk,[["render",ck]]),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=[],qt=[];const Ts=e=>{if(e){const o=document.getElementById(e);qt=qt.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)}),qt=[],ft=[]},uk=e=>{const o=document.getElementById(e.id);if(o){const l=qt.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),wt}},Et=e=>{e.unmount=Ts;let o;if(e.id){if(o=e.id,ft.find(a=>a===e.id))return uk(e)}else o=new Date().getTime()+"";e={...En,...e},e.id=o,ft.push(e.id),qt.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),wt},Jt=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},wt={text(e,o={}){return Jt(e),Et({...o,type:"text",msg:e})},success(e,o={}){return Jt(e),Et({icon:te.Success,...o,msg:e,type:"success"})},fail(e,o={}){return Jt(e),Et({icon:te.Failure,...o,msg:e,type:"fail"})},warn(e,o={}){return Jt(e),Et({icon:te.Tips,...o,msg:e,type:"warn"})},loading(e,o={}){return Et({icon:te.Loading,...o,msg:e,type:"loading"})},hide(e){Ts(e)},install(e){e.use(Wl),e.config.globalProperties.$toast=wt}},{componentName:i2,create:dk}=Y("audio"),fk=dk({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}}}),mk={class:"fox-audio"},pk={key:0,class:"fox-audio__progress"},hk={class:"fox-audio__time"},gk={class:"fox-audio__bar"},yk=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),vk={class:"fox-audio__time"},kk={key:1,class:"fox-audio__icon"},bk=["controls","src","preload","autoplay","loop","muted"];function Sk(e,o,l,n,a,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",mk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",pk,[t.createElementVNode("div",hk,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",gk,[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(()=>[yk]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",vk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",kk,[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,bk)])}const Yl=_(fk,[["render",Sk]]),{componentName:c2,create:Ck,scope:wk}=Y("audio-operate"),Nk=Ck({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(wk),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}}}),Bk={class:"fox-audio-operate"};function Vk(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Bk,[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=_(Nk,[["render",Vk]]),{componentName:Ak,create:$k}=Y("avatar"),Tk=$k({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(()=>({[Ak]:!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 Ek(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=_(Tk,[["render",Ek]]),{componentName:Dk,create:xk}=Y("avatar-group"),Ik=xk({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 qk(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=_(Ik,[["render",qk]]);var no=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(no||{});function Mk(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:zk,create:Lk}=Y("list"),kr=document.documentElement.clientHeight||document.body.clientHeight||667,Pk=Lk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:kr},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,kr)),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(()=>({[zk]:!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 M=Ve(V),{height:A}=M,z=r.cachePositions[B+r.start].height-A;z&&(r.cachePositions[B+r.start].bottom-=z,r.cachePositions[B+r.start].height=A,r.cachePositions[B+r.start].dValue=z)});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=Mk(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 Fk(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=_(Pk,[["render",Fk]]),{componentName:Rk,create:Ok}=Y("circleprogress"),Kk=Ok({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(()=>({[Rk]:!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}}}),Uk={viewBox:"0 0 100 100"},Hk=["id"],jk=["offset","stop-color"],Wk=["d","stroke-width"],Yk=["d","stroke","stroke-linecap","stroke-width"],Xk={class:"fox-circleprogress-text"},Qk={key:0};function Gk(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",Uk,[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,jk))),128))],8,Hk)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,Wk),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,Yk)])),t.createElementVNode("div",Xk,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Qk,t.toDisplayString(e.progress)+"%",1))])],6)}const Zl=_(Kk,[["render",Gk]]),{componentName:Zk,create:Jk}=Y("noticebar"),_k=Jk({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(()=>({[Zk]:!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,M=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?M>B:e.scrollable,r.isCanScroll?(r.wrapWidth=B,r.offsetWidth=M,r.duration=M/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}}}),eb={class:"fox-noticebar__page-lefticon"},tb={ref:"wrap",class:"fox-noticebar__page-wrap"},ob={class:"showNotica"},nb=["onClick"];function lb(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",eb,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",tb,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend: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",ob,[(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,nb))),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=_(_k,[["render",lb]]),ab="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/xdD/y9UyMD0TExP5sb+4uLj/y9X+w879ws3/y9X1tMH8s8H/y9UkJSWAgYHj5OT/ytTY2NheXWDs7e7r7Ozv8PDs7u55eYH09fXMzMzY2NgyMD3/y9UzMzP8s8GwsLDm5+eKiorv8PDLy8s6Ojrl5ubZ2trPz88UFBTh4uLV1dXc3Ny5ubnu7u7T09O1tbXf39+zs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9Y063xRs0CpM+1E089q1TipDRMIiZSde4OkduL1FOsm2CyXqBwTgvoN/2AWrGzwl2UgpO+og/il1+l33E87H98i51kAJxjvZ0Cp08lT074JcKKB8eUJMWwH+8K3v77/7N4LkfNLAGA28qgSl1xInpquROEseRhxSkAWPOM8wxRODSIt7GNHQanCpeQAtQURq4KR80AWOsNlmIK5vCpg0ZuVoNTqS9KpaTGbVp3aKSLlVOaZPCgOIjqKc7L6ojRAlRZxs8VoK5WMy6lTjT/gRak1QKlFFxO9FKsBZzZZZSWQBY3nNKllAOdG70CtDcP9/s4DHtSzEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:u2,create:ib,scope:cb}=Y("empty"),ub={empty:ab,error:rb,network:sb},db=ib({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:o}=ae.useFoxI18n(cb),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:ub[n.value];return{...l,imageUrl:i,imgStyle:r}}}),fb={class:"fox-empty"},mb=["src"],pb={key:1,class:"fox-empty-description"};function hb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",fb,[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,mb)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",pb,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const _l=_(db,[["render",hb]]),{create:gb,scope:yb}=Y("video"),vb=gb({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(yb),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 M=Math.round(C%3600%60);M<10&&(M="0"+M);var A="";return V!=0?A=V+":"+B+":"+M:A=B+":"+M,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 M=n.videoSet.progress.current/n.videoSet.progress.width;n.videoElm.duration&&b(M,n.videoElm.duration)},p=C=>{let B=C.changedTouches[0].pageX-n.progressBar.pos.left;n.videoSet.progress.current=B;let M=B/n.videoSet.progress.width;n.videoElm.duration&&b(M,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}}}),kb={class:"fox-video",ref:"videocon"},bb=["muted","autoplay","loop","poster","controls","preload"],Sb=["src","type"],Cb={class:"fox-video-controller__now"},wb={class:"fox-video-controller__progress"},Nb={class:"fox-video-controller__progress-value",ref:"progressBar"},Bb=t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1),Vb=[Bb],Ab={class:"fox-video-controller__played",ref:"playedBar"},$b={class:"fox-video-controller__total"},Tb={class:"fox-video-error"},Eb={class:"fox-video-error-tip"};function Db(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",kb,[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,Sb)],40,bb),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",Cb,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",wb,[t.createElementVNode("div",Nb,[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"]))},Vb,36),t.createElementVNode("div",Ab,null,512)],512)]),t.createElementVNode("div",$b,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick: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",Tb,[t.createElementVNode("p",Eb,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 bt=_(vb,[["render",Db]]),{create:xb,componentName:Ib}=Y("steps"),ea=xb({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=Ib;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:qb,componentName:Mb}=Y("step"),zb=qb({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=Mb;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{o.onEmit(n.value)};return{...t.toRefs(l),index:n,classes:s,handleClickStep:i}}}),Lb={class:"fox-step-head"},Pb=t.createElementVNode("view",{class:"fox-step-line"},null,-1),Fb={class:"fox-step-icon-inner"},Rb={key:1,class:"fox-step-inner"},Ob={class:"fox-step-main"},Kb={class:"fox-step-title"},Ub={key:0},Hb={key:0,class:"fox-step-content"},jb=["innerHTML"];function Wb(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",Lb,[Pb,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",Fb,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",Rb,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",Ob,[t.createElementVNode("view",Kb,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Ub,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",Hb,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,jb)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ta=_(zb,[["render",Wb]]),{create:Yb,componentName:on}=Y("swiper"),Xb=Yb({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(K=>K.children&&Array.isArray(K.children)),G.forEach(K=>{W=W.concat(K.children)}),!H)a.childrenVNode=W.slice(),D.proxy&&a.children.push(D.proxy);else if(H>W.length)a.children=a.children.filter(K=>D.proxy!==K);else if(H<W.length){for(let K=0;K<H;K++)if(W[K].key!==a.childrenVNode[K].key){D.proxy&&a.children.splice(K,0,D.proxy),D.vnode&&a.childrenVNode.splice(K,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,K=S(D),P=b(K,W);if(e.loop){if(a.children[0]&&P!==k.value){const $=P<k.value;a.children[0].setOffset($?g.value:0)}if(a.children[h.value-1]&&P!==0){const $=P>0;a.children[h.value-1].setOffset($?-g.value:0)}}a.active=K,a.offset=P,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})})})},M=()=>{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})})},z=()=>{e.autoPlay<=0||h.value<=1||(V(),a.autoplayTimer=setTimeout(()=>{A(),z()},Number(e.autoPlay)))},L=(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(),z()},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 K=i.value?r.offsetY.value:r.offsetX.value;e.loop?G=K>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(),z()};return t.provide("parent",{props:e,size:y,relation:p}),$e({prev:M,next:A,to:w}),t.onDeactivated(()=>{V()}),t.onBeforeUnmount(()=>{V()}),t.watch(()=>e.initPage,D=>{t.nextTick(()=>{L(Number(D))})}),t.watch(()=>a.children.length,()=>{t.nextTick(()=>{L()})}),t.watch(()=>e.autoPlay,D=>{D>0?z():V()}),{state:a,classes:s,classesInner:c,classesPagination:d,container:n,activePagination:v,onTouchStart:E,onTouchMove:x,onTouchEnd:U}}});function Qb(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 St=_(Xb,[["render",Qb]]),{create:Gb,componentName:Zb}=Y("swiper-item"),Jb=Gb({setup(e,{slots:o}){const l=t.inject("parent");l.relation(t.getCurrentInstance());const n=t.reactive({offset:0}),a=t.computed(()=>({[Zb]:!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 _b(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 Ct=_(Jb,[["render",_b]]),Es={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:eS}=Y("image-preview-item"),tS=eS({props:{...Es,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},contentClose:{type:Boolean,default:!0}},emits:["close","scale"],components:{[bt.name]:bt,[Ct.name]:Ct},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:M,rootHeight:A}=e,w=A/M;return l.imageRatio>w}),r=t.computed(()=>{const M=e.image;if(M&&M.src){const{scale:A,moveX:w,moveY:z,moving:L,zooming:E}=l,x={transitionDuration:E||L?"0s":".3s"};if(A!==1){const U=w/A,D=z/A;x.transform=`scale(${A}, ${A}) translate(${U}px, ${D}px)`}return x}return{}}),s=t.computed(()=>{if(l.imageRatio){const{rootWidth:M,rootHeight:A}=e,w=a.value?A/l.imageRatio:M;return Math.max(0,(l.scale*w-M)/2)}return 0}),i=t.computed(()=>{if(l.imageRatio){const{rootWidth:M,rootHeight:A}=e,w=a.value?A:M*l.imageRatio;return Math.max(0,(l.scale*w-A)/2)}return 0}),c=M=>{const{naturalWidth:A,naturalHeight:w}=M.target;l.imageRatio=w/A},d=()=>{m(1),l.moveX=0,l.moveY=0},m=M=>{M=Fe(M,+e.minZoom,+e.maxZoom+1),M!==l.scale&&(l.scale=M,o("scale",{scale:M,index:e.initNo}))},f=()=>{const M=l.scale>1?1:2;m(M),l.moveX=0,l.moveY=0},h=M=>Math.sqrt((M[0].clientX-M[1].clientX)**2+(M[0].clientY-M[1].clientY)**2);let y,g,k,v,u,p,b;const S=M=>{const{touches:A}=M,{offsetX:w}=n;n.start(M),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(M.touches))},N=M=>{const{touches:A}=M;if(n.move(M),(l.moving||l.zooming)&&fn(M,!0),l.moving){const{deltaX:w,deltaY:z}=n,L=w.value+y,E=z.value+g;l.moveX=Fe(L,-s.value,s.value),l.moveY=Fe(E,-i.value,i.value)}if(l.zooming&&A.length===2){const w=h(A),z=k*w/v;m(z)}},C=()=>{if(b==1&&e.video&&e.video.source||b>1)return;const{offsetX:M,offsetY:A}=n,w=Date.now()-p,z=250,L=5;M.value<L&&A.value<L&&w<z&&(u?(clearTimeout(u),u=null,f()):u=setTimeout(()=>{e.contentClose&&o("close"),u=null},z))},V=M=>{let A=!1;(l.moving||l.zooming)&&(A=!0,l.moving&&y===l.moveX&&g===l.moveY&&(A=!1),M.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(M,A),C(),n.reset()},B=()=>{o("close")};return t.watch(()=>e.initNo,d),t.watch(()=>e.show,M=>{M||d()}),{...t.toRefs(l),onTouchStart:S,onTouchMove:N,onTouchEnd:V,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:B}}}),oS=["src"];function nS(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,oS)):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 lS=_(tS,[["render",nS]]),{create:aS}=Y("image-preview"),rS=aS({props:{...Es,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:lS,CircleClose:te.CircleClose,[ce.name]:ce,[St.name]:St},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=()=>{Vs(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}}}),sS={class:"fox-image-preview",ref:"swipeRef"},iS={key:0,class:"fox-image-preview-index"};function cS(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",sS,[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",iS,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 Ds=_(rS,[["render",cS]]);class uS{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 dS{options=new uS;constructor(o){const l=Object.assign(this.options,o),{unmount:n}=di(l,{name:"image-preview",components:[ce,bt,St,Ct,at],wrapper:()=>({setup(){return()=>(l.onClose=()=>{l.show=!1,t.nextTick(()=>{n()})},t.h(Ds,l))}})})}}const Ho=e=>new dS(e);Ho.install=e=>{e.use(Ds)};function fS(e){const o=t.getCurrentInstance();if(o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const{componentName:d2,create:mS}=Y("countup"),pS=mS({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,M)=>{f(),v(0)}),t.watch(()=>e.machinePrizeLevel,(B,M)=>{r.prizeLevelTrun=B}),t.watch(()=>e.initNum,(B,M)=>{r.current=B,r.valFlag=!1,m()}),t.watch(()=>e.endNum,(B,M)=>{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,M,A)=>{const w=(B.toString().split(".")[1]||"").length,z=(M.toString().split(".")[1]||"").length,L=Math.pow(10,Math.max(w,z));return A=="-"?Number((B*L-M*L).toFixed(0))/L:Number((B*L+M*L).toFixed(0))/L},y=B=>{let{num_total_len:M,pointNum:A,initDigit1:w,initDigit2:z,sortFlag:L}=r,E=L=="add"||L=="equal"?String(z)[B-(M-A)]:10-Number(String(z)[B-(M-A)]),x=L=="add"||L=="equal"?String(w)[B]:10-Number(String(w)[B]),U=B>M-A-1?-E*100+"%":B<=String(w).length-1?-x*100+"%":0;return U=="-1000%"&&(U=0),U},g=B=>{let{num_total_len:M,pointNum:A,initDigit1:w,initDigit2:z,sortFlag:L}=r,E=String(z)[B-(M-A)];return B>M-A-1?E||0:B<=String(w).length-1?String(w)[B]:0},k=()=>{let{endNum:B,initNum:M,speed:A,toFixed:w}=e,z=setInterval(()=>{if(M>B)if(r.current<=B||r.current<=A)r.current=B.toFixed(w),clearInterval(z),o("scroll-end"),r.valFlag=!1;else{let L=parseFloat(String(r.current))-parseFloat(String(A));r.current=L.toFixed(w)}else if(r.current>=B)r.current=B.toFixed(w),clearInterval(z),o("scroll-end"),r.valFlag=!1;else{let L=parseFloat(String(r.current))+parseFloat(String(A));r.current=L.toFixed(w)}},e.during)},v=B=>{let{initNum:M,endNum:A,toFixed:w,customBgImg:z}=e;z&&(M=e.customChangeNum);let L,E,x,U;M!=0?(w!=0&&(M=Number(M.toFixed(w))),String(M).indexOf(".")>-1?(L=String(M).split(".")[0].length,E=String(M).split(".")[1].length):(L=String(M).length,E=0)):(L=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=L>=x?L:x,W=E>=U?E:U;r.num_total_len=D+W,r.pointNum=W,M>A?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(M,A,"-"),r.numberVal=Number(String(M))):M<A?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(A,M,"-"),r.numberVal=Number(String(A))):r.sortFlag="equal";var H=1;for(let K=0;K<r.pointNum;K++)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(M).indexOf(".")>-1){let K=String(M).split(".");r.initDigit1=Number(K[0]),r.initDigit2=Number(K[1])}else r.initDigit1=M,r.initDigit2=0;i&&!z?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let K=n.value[r.num_total_len-1];u(K)}):B!==0&&S()},u=B=>{f();var M=1;r.pointNum!=0&&(M=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{p(B),r.totalCount=h(r.totalCount,M,"-"),r.totalCount<=0&&(f(),o("scroll-end"),r.valFlag=!1)},e.during)},p=B=>{let M=B.getAttribute("turn-number"),A;if(r.sortFlag=="add"?A=parseInt(String(M))+1:A=parseInt(String(M))-1>=0?parseInt(String(M))-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,M)=>{setTimeout(()=>{M==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)}};fS({machineLuck:()=>{const B=e.machineTurnMore<0?0:e.machineTurnMore;let M=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&N();for(let A=0;A<e.machineNum;A++)setTimeout(()=>{let w=M*(A+1+parseFloat(String(B)));r.prizeYPrev.length!=0&&(r.prizeY[A]=r.prizeYPrev[A]);let z=r.prizeYPrev[A]?r.prizeYPrev[A]:0,L=w+z+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(M-z);r.prizeLevelTrun<0&&(L+=e.numHeight*r.notPrize[A]),V(A,L,z)},500*A)}});const V=(B,M,A)=>{let w=setInterval(()=>{if(A<=M)A+=10,r.prizeY[B]=parseFloat(String(A));else if(clearInterval(w),w=null,r.finshMachine+=1,r.prizeY[B]=M,r.finshMachine==e.machineNum){let z=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(E=>{let x=E;for(;x>z;)x-=z;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}}}),hS={class:"fox-countup"},gS=["turn-number"];function yS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",hS,[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,gS))),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=_(pS,[["render",yS]]),vS=e=>{if(!e)return Date.now();let o=Number(e),l=o>0?+o:o.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:kS,create:bS}=Y("countdown"),SS=bS({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(()=>({[kS]:!0})),r=t.computed(()=>c(n.restTime)),s=()=>{n.handleEndTime=e.endTime,n.diffTime=Date.now()-vS(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}}}),CS=["innerHTML"];function wS(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,CS))],2)}const na=_(SS,[["render",wS]]),{create:NS}=Y("badge"),BS=NS({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}}}),VS={class:"fox-badge"},AS=["textContent"];function $S(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",VS,[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,AS),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const la=_(BS,[["render",$S]]),{componentName:TS,create:ES}=Y("tag"),DS=ES({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=TS;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 xS(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=_(DS,[["render",xS]]),{create:IS}=Y("popover"),qS=IS({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",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:M,offset:A}=e,w=M.split("-")[0],z=M.split("-")[1];let L=0,E=0;if(ho(A)&&A.length==2&&(L+=Number(A[1]),E+=Number(A[0])),N){if(["bottom","top"].includes(w)){const x=w=="bottom"?C+L:-(S+L);p.top=`${B+x}px`,z||(p.left=`${-(b-N)/2+V+E}px`),z=="start"&&(p.left=`${V+E}px`),z=="end"&&(p.left=`${r.value.right+E}px`)}if(["left","right"].includes(w)){const x=w=="left"?-(b+L):N+L;p.left=`${V+x}px`,z||(p.top=`${B-S/2+C/2-4+E}px`),z=="start"&&(p.top=`${B+E}px`),z=="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:Gr}}}),MS={ref:"popoverContentRef",class:"fox-popover-content-group"},zS=["onClick"],LS={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",MS,[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",LS,t.toDisplayString(i.name),1)],10,zS))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Xt=_(qS,[["render",PS]]),FS=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:RS}=Y("skeleton"),OS=RS(FS({[Wt.name]:Wt})),KS={key:0},US={key:1,class:"fox-skeleton"},HS={key:0,class:"fox-skeleton-animation"},jS={class:"fox-skeleton-content"};function WS(e,o,l,n,a,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",US,[e.animated?(t.openBlock(),t.createElementBlock("view",HS)):t.createCommentVNode("",!0),t.createElementVNode("view",jS,[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",KS,[t.renderSlot(e.$slots,"default")]))}const aa=_(OS,[["render",WS]]),{create:YS,componentName:XS}=Y("collapse"),QS=YS({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(()=>({[XS]:!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 GS(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=_(QS,[["render",GS]]),{create:ZS,componentName:JS}=Y("collapse-item"),_S=ZS({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=JS;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:Gr,wrapperRef:o,contentRef:l,open:m,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:d}}}),e1={class:"fox-collapse-item__title-main"},t1={class:"fox-collapse-item__title-main-value"},o1=["innerHTML"],n1={key:2,class:"fox-collapse-item__title-label"},l1={key:0,class:"fox-collapse-item__title-sub"},a1=["innerHTML"],r1={key:0,class:"fox-collapse__item-extraWrapper"},s1={class:"fox-collapse__item-extraWrapper__extraRender"},i1={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function c1(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",e1,[t.createElementVNode("view",t1,[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,o1)),e.label?(t.openBlock(),t.createElementBlock("view",n1,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",l1,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,a1)),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",r1,[t.createElementVNode("div",s1,[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",i1,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const sa=_(_S,[["render",c1]]),u1=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:d1,create:f1,scope:m1}=Y("table"),p1=f1({components:{RenderColumn:u1,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(m1),a=t.reactive({curData:e.data}),r=t.computed(()=>({[d1]:!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}}}),h1={class:"fox-table__main__head"},g1={class:"fox-table__main__head__tr"},y1=["onClick"],v1={class:"fox-table__main__body"},k1={key:1},b1={key:0,class:"fox-table__nodata"},S1={key:0,class:"fox-table__nodata__text"},C1={key:1,class:"fox-table__summary"},w1=["innerHTML"];function N1(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",h1,[t.createElementVNode("view",g1,[(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,y1))),128))])]),t.createElementVNode("view",v1,[(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",k1,t.toDisplayString(c[d]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",b1,[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",S1,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",C1,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,w1)])):t.createCommentVNode("",!0)],2)}const ia=_(p1,[["render",N1]]),{componentName:B1,create:V1}=Y("ellipsis"),A1=V1({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(()=>({[B1]:!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}}}),$1={key:0},T1={key:1},E1={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",$1,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",T1,[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",E1,[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=_(A1,[["render",D1]]),{componentName:x1,create:I1}=Y("animate"),q1=I1({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,[`${x1}-${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}}}),M1={class:"fox-animate"};function z1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",M1,[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=_(q1,[["render",z1]]),{componentName:L1,create:P1}=Y("watermark"),F1=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`,M=s*N,A=i*N;if(S.setAttribute("width",V),S.setAttribute("height",B),C){if(d){C.translate(M/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(M/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=L1;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...t.toRefs(l),classes:b}}});function R1(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=_(F1,[["render",R1]]);function O1(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:K1,create:U1}=Y("trend-arrow"),H1=U1({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(()=>({[K1]:!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?"+":"-":""}${O1(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 j1(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=_(H1,[["render",j1]]),{create:W1}=Y("tour"),Y1=W1({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}}}),X1={key:0,class:"fox-tour-content"},Q1={key:0,class:"fox-tour-content-top"},G1={class:"fox-tour-content-inner"},Z1={class:"fox-tour-content-bottom"},J1={class:"fox-tour-content-bottom-init"},_1={class:"fox-tour-content-bottom-operate"},eC={key:1,class:"fox-tour-content fox-tour-content-tile"},tC={class:"fox-tour-content-inner"};function oC(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",X1,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",Q1,[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",G1,t.toDisplayString(c.content),1),t.createElementVNode("div",Z1,[t.createElementVNode("div",J1,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",_1,[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",eC,[t.createElementVNode("div",tC,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const ma=_(Y1,[["render",oC]]),{componentName:f2,create:nC,scope:lC}=Y("address"),aC=nC({components:{Location:te.Location,Location2:te.Location2,Check:te.Check,Close:te.Close,Left:te.Left,[ce.name]:ce,[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(lC),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()},M=()=>{g.value=[],i.value=0,S()},A=(x="self")=>{v.value=x=="cross"?"cross":"self",r.value=!1},w=()=>{v.value="mask"},z=()=>{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,M(),v.value=="self"?o("close",U):o("close-mask",{closeWay:v}),o("update:visible",!1)},L=()=>{const x=s.value;s.value=x=="exist"?"custom":"exist",M(),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:L,closeWay:v,close:z,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}}}),rC={class:"fox-address"},sC={class:"fox-address__header"},iC={class:"fox-address__header__title"},cC={key:0,class:"fox-address__custom"},uC={class:"fox-address__region",ref:"tabRegion"},dC=["onClick"],fC={key:0,class:"active fox-address__region-item"},mC={key:0,class:"fox-address__detail"},pC={class:"fox-address__detail-list",ref:"scrollDom"},hC=["onClick"],gC={key:1,class:"fox-address__elevator-group"},yC={key:1,class:"fox-address__exist"},vC={class:"fox-address__exist-group"},kC={class:"fox-address__exist-group-list"},bC=["onClick"],SC={class:"fox-address__exist-item-info"},CC={key:0,class:"fox-address__exist-item-info-name"},wC={key:1,class:"fox-address__exist-item-info-phone"},NC={class:"fox-address__exist-item-info-bottom"},BC={class:"fox-address__exist-choose-btn"};function VC(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",rC,[t.createElementVNode("view",sC,[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",iC,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",cC,[t.createElementVNode("view",uC,[(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,dC))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",fC,[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",mC,[t.createElementVNode("ul",pC,[(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,hC))),128))],512)])):(t.openBlock(),t.createElementBlock("view",gC,[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",yC,[t.createElementVNode("div",vC,[t.createElementVNode("ul",kC,[(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",SC,[h.name?(t.openBlock(),t.createElementBlock("div",CC,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",wC,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",NC,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,bC))),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",BC,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=_(aC,[["render",VC]]),{componentName:AC,create:$C}=Y("barrage"),TC=$C({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const o=new Date().getTime(),l=!!t.useSlots().default,n=t.computed(()=>({[AC]:!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 EC(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=_(TC,[["render",EC]]),{componentName:DC,create:xC,scope:IC}=Y("signature"),qC=xC({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(IC),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],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}}}),MC={class:"fox-signature-inner",ref:"wrap"},zC=["height","width"],LC={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",MC,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,zC),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",LC,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=_(qC,[["render",PC]]),{componentName:FC,create:RC,scope:OC}=Y("time-select"),KC=RC({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(OC),n=t.computed(()=>({[FC]:!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}}}),UC={class:"fox-time-select__title"},HC={class:"fox-time-select__title__fixed"},jC={key:0},WC={class:"fox-time-select__content"},YC={class:"fox-time-select__content__pannel"},XC={class:"fox-time-select__content__detail"};function QC(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",UC,[t.createElementVNode("view",HC,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",jC,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",WC,[t.createElementVNode("view",YC,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",XC,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const ya=_(KC,[["render",QC]]),{componentName:GC,create:ZC}=Y("time-pannel"),JC=ZC({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(()=>({[GC]:!0,"fox-time-pannel--curr":n.currentKey==e.pannelKey})),r=s=>{o.emit("change",s)};return{...t.toRefs(n),classes:a,handlePannel:r}}});function _C(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=_(JC,[["render",_C]]),{componentName:ew,create:tw}=Y("time-detail"),ow=tw({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(()=>({[ew]:!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}}}),nw={class:"fox-time-detail__detail fox-time-detail__detail--moring"},lw={class:"fox-time-detail__detail__list"},aw=["onClick"];function rw(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",nw,[t.createElementVNode("view",lw,[(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,aw))),128))])])],2)}const ka=_(ow,[["render",rw]]),{componentName:m2,create:sw,scope:iw}=Y("sku-header"),cw=sw({props:{goods:{type:Object,default:{}}},emits:[],components:{[Xe.name]:Xe},setup(e,{emit:o,slots:l}){const{t:n}=ae.useFoxI18n(iw);return{getSlots:r=>l[r],t:n}}}),uw={class:"fox-sku-header"},dw=["src"],fw={class:"fox-sku-header-right"},mw={key:3,class:"fox-sku-header-right-extra"};function pw(e,o,l,n,a,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",uw,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,dw),t.createElementVNode("view",fw,[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",mw,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const hw=_(cw,[["render",pw]]),{componentName:p2,create:gw}=Y("sku-select"),yw=gw({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})}}}}),vw={class:"fox-sku-select"},kw={class:"fox-sku-select-item-title"},bw={class:"fox-sku-select-item-skus"},Sw=["onClick"];function Cw(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",vw,[(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",kw,t.toDisplayString(s.name),1),t.createElementVNode("view",bw,[(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,Sw))),128))])]))),128))])}const ww=_(yw,[["render",Cw]]),{componentName:h2,create:Nw}=Y("sku-stepper"),Bw=Nw({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&<(c)=="function"?c():""},changeStepper:c=>{l.value=c,o("changeStepper",c)}}}}),Vw={class:"fox-sku-stepper"},Aw={class:"fox-sku-stepper-title"},$w=["innerHTML"],Tw={class:"fox-sku-stepper-count"};function Ew(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",Vw,[t.createElementVNode("view",Aw,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,$w),t.createElementVNode("view",Tw,[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=_(Bw,[["render",Ew]]),{componentName:g2,create:xw}=Y("sku-operate"),Iw=xw({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]}}}),qw={key:0,class:"fox-sku-operate"},Mw={key:0,class:"fox-sku-operate-desc"},zw={key:1,class:"fox-sku-operate-btn"},Lw=["onClick"];function Pw(e,o,l,n,a,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",qw,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",Mw,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",zw,[(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,Lw))),128))]))])):t.createCommentVNode("",!0)}const Fw=_(Iw,[["render",Pw]]),{componentName:y2,create:Rw,scope:Ow}=Y("sku"),Kw=Rw({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:hw,SkuSelect:ww,SkuStepper:Dw,SkuOperate:Fw,[ce.name]:ce},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(Ow),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}}}),Uw={class:"fox-sku"},Hw={class:"fox-sku-content"};function jw(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",Uw,[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",Hw,[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=_(Kw,[["render",jw]]),{create:Ww}=Y("card"),Yw=Ww({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]}}}),Xw={class:"fox-card"},Qw={class:"fox-card__left"},Gw=["src"],Zw={class:"fox-card__right"},Jw={class:"fox-card__right__title"},_w={key:0,class:"fox-card__right__price"},eN={class:"fox-card__right__other"},tN={class:"fox-card__right__shop"},oN={class:"fox-card__right__shop__name"};function nN(e,o,l,n,a,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",Xw,[t.createElementVNode("div",Qw,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,Gw)]),t.createElementVNode("div",Zw,[t.createElementVNode("div",Jw,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",_w,[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",eN,[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",tN,[t.createElementVNode("div",oN,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Sa=_(Yw,[["render",nN]]),{create:lN,scope:aN}=Y("ecard"),rN=lN({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(aN),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}}}),sN={class:"fox-ecard"},iN={class:"fox-ecard__title"},cN={class:"fox-ecard__list"},uN=["onClick"],dN={class:"fox-ecard__list__input--con"},fN=["placeholder"],mN={class:"fox-ecard__list__step"};function pN(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",sN,[t.createElementVNode("view",iN,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",cN,[(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,uN))),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",dN,[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,fN),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",mN,[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=_(rN,[["render",pN]]),{create:hN,scope:gN}=Y("address-list-item"),yN=hN({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(gN);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}}}),vN={class:"fox-address-list-item__info"},kN={class:"fox-address-list-item__info-contact"},bN={class:"fox-address-list-item__info-contact-name"},SN={class:"fox-address-list-item__info-contact-tel"},CN={key:0,class:"fox-address-list-item__info-contact-default"},wN={class:"fox-address-list-item__info-handle"},NN={class:"fox-address-list-item__addr"};function BN(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",vN,[t.createElementVNode("div",kN,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",bN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",SN,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",CN,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",wN,[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",NN,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const br=_(yN,[["render",BN]]),{create:VN}=Y("address-list-general"),AN=VN({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:br,[Ie.name]:Ie,[Ht.name]:Ht},setup(e,{emit:o}){const l=()=>t.h(br,{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}}}}),$N={key:0,class:"fox-address-list-general"},TN={class:"fox-address-list-swipe"};function EN(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",TN,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchmove:e.swipemove,onTouchstart:e.swipestart},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchmove","onTouchstart"]))])]),_:3})):(t.openBlock(),t.createElementBlock("div",$N,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchstart:e.holddownstart,onTouchend:e.holddownend,onTouchmove:e.holddownmove},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchstart","onTouchend","onTouchmove"])),e.longPress&&e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list-general__mask",onClick: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=_(AN,[["render",EN]]),{componentName:xN,create:IN,scope:qN}=Y("address-list"),MN=IN({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(qN),n=t.ref([]),a=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[xN]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(n.value=e.data.map(k=>Lr(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 zN(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=_(MN,[["render",zN]]),{componentName:v2,create:LN}=Y("category"),PN=LN({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}}}),FN={class:"fox-category"},RN={class:"fox-category__cateList"},ON={key:0},KN=["onClick"];function UN(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",FN,[t.createElementVNode("div",RN,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",ON,[(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,KN)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Na=_(PN,[["render",UN]]),{componentName:k2,create:HN}=Y("category-pane"),jN=HN({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:o}){return{onChange:n=>{o("onChange",n)}}}}),WN={class:"fox-category-pane"},YN={key:0,class:"fox-category-pane__cateListRight"},XN={class:"fox-category-pane__childTitle"},QN={key:0,class:"fox-category-pane__childItemList"},GN=["onClick"],ZN=["src"],JN={class:"fox-category-pane__skuImg"},_N={key:1,class:"fox-category-pane__cateListRight"},eB={class:"fox-category-pane__childTitle"},tB={key:0,class:"fox-category-pane__childItemList"},oB=["onClick"],nB={class:"fox-category-pane__skuName"},lB={key:2,class:"fox-category-pane__selfItemList"},aB=["onClick"];function rB(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",WN,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",YN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",XN,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",QN,[(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,ZN),t.createElementVNode("div",JN,t.toDisplayString(c?.catName),1)],8,GN))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",_N,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",eB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",tB,[(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",nB,t.toDisplayString(c?.catName),1)],8,oB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",lB,[(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,aB))),128))])):t.createCommentVNode("",!0)])}const Ba=_(jN,[["render",rB]]),{componentName:b2,create:sB}=Y("comment-header"),iB=sB({components:{[kt.name]:kt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:o}){return{handleClick:()=>{o("handleClick")}}}}),cB={class:"fox-comment-header__user"},uB={class:"fox-comment-header__user-avter"},dB=["src"],fB={class:"fox-comment-header__user-score"},mB={key:0,class:"fox-comment-header__time"};function pB(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",cB,[t.createElementVNode("view",uB,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,dB)):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",fB,[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",mB,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 hB=_(iB,[["render",pB]]),{componentName:S2,create:gB}=Y("comment-images"),yB=gB({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}}}),vB=["onClick"],kB=["src"],bB=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),SB=["onClick"],CB=["src"],wB={key:0,class:"fox-comment-images__mask"};function NB(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,kB),bB],8,vB))),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,CB),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",wB,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,SB)):t.createCommentVNode("",!0)],64))),128))],2)}const BB=_(yB,[["render",NB]]),{componentName:C2,create:VB,scope:AB}=Y("comment-bottom"),$B=VB({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(AB),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}}}),TB={class:"fox-comment-bottom"},EB={key:0},DB={class:"fox-comment-bottom__cpx"},xB=["onClick"];function IB(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",TB,[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",EB,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,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,xB))),128))])])}const qB=_($B,[["render",IB]]),{componentName:MB,create:zB,scope:LB}=Y("comment"),PB=zB({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:hB,CommentImages:BB,CommentBottom:qB,Right:te.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(LB),n=t.computed(()=>({[MB]:!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}}}),FB=["innerHTML"],RB={class:"fox-comment__follow-title"},OB={class:"fox-comment__follow-com"},KB={key:0,class:"fox-comment__follow-img"};function UB(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,FB),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",RB,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",OB,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",KB,[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=_(PB,[["render",UB]]),HB=[Pn,Rn,On,Kn,Un,be,Hn,jn,Wn,Yn,Xn,xo,Qn,Gn,Jn,_n,zo,Lo,el,Po,Fo,tl,ol,ot,nl,ll,Uo,al,rl,sl,il,cl,ul,dl,tt,fl,ml,pl,hl,gl,Ie,yl,vl,at,ce,kl,bl,Sl,Cl,zt,wl,Nl,Bl,Vl,Al,$l,Tl,El,Dl,Ot,xl,Lt,Pt,Il,ql,Ml,zl,Kt,Ko,Io,Mo,qo,Qe,kt,vt,Ll,Pl,Fl,Ht,Rl,Ol,Kl,jt,Oo,Ul,jl,Ro,wt,Yl,Xl,Wt,Ql,Gl,Ut,Zl,Jl,_l,bt,ea,ta,St,Ct,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],jB=new ui(HB,"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=Po;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=Po;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=Pn;exports.FoxPagination=xl;exports.FoxPicker=vt;exports.FoxPickerItem=Qn;exports.FoxPopover=Xt;exports.FoxPopup=ce;exports.FoxPopupWrapper=fl;exports.FoxPrice=Xe;exports.FoxProgress=Ut;exports.FoxPullRefresh=Ul;exports.FoxRadio=zo;exports.FoxRadioGroup=Lo;exports.FoxRadioItem=el;exports.FoxRange=Kt;exports.FoxRate=kt;exports.FoxRateItem=ll;exports.FoxRollingProvider=gl;exports.FoxRow=Cl;exports.FoxRowItem=Hn;exports.FoxSearchBar=Ko;exports.FoxShortPassword=Ll;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=St;exports.FoxSwiperItem=Ct;exports.FoxSwitch=Ro;exports.FoxSwitchItem=ol;exports.FoxTabPane=Pt;exports.FoxTabbar=El;exports.FoxTabbarItem=Dl;exports.FoxTable=ia;exports.FoxTabs=Lt;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=wt;exports.FoxTour=ma;exports.FoxTrendArrow=fa;exports.FoxUploader=Pl;exports.FoxVideo=bt;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=Pn;exports.Pagination=xl;exports.Picker=vt;exports.PickerItem=Qn;exports.Popover=Xt;exports.Popup=ce;exports.PopupWrapper=fl;exports.Price=Xe;exports.PriorityPolicy=co;exports.Progress=Ut;exports.PullRefresh=Ul;exports.Radio=zo;exports.RadioGroup=Lo;exports.RadioItem=el;exports.Range=Kt;exports.Rate=kt;exports.RateItem=ll;exports.RollingProvider=gl;exports.Row=Cl;exports.RowItem=Hn;exports.SearchBar=Ko;exports.ShortPassword=Ll;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=St;exports.SwiperItem=Ct;exports.Switch=Ro;exports.SwitchItem=ol;exports.TabPane=Pt;exports.Tabbar=El;exports.TabbarItem=Dl;exports.Table=ia;exports.Tabs=Lt;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=wt;exports.Tour=ma;exports.TrendArrow=fa;exports.UniqueID=Do;exports.Uploader=Pl;exports.ValidateSchema=Ur;exports.ValidateSchemaKey=Re;exports.Video=bt;exports.WaterMark=da;exports.cancelRaf=Sr;exports.clamp=Fe;exports.clearNonNumber=dn;exports.clone=un;exports.compareTo=sn;exports.createBroadcast=vo;exports.createValidateSchema=ko;exports.debounce=gt;exports.debounceRef=ei;exports.decimalLength=zr;exports.default=jB;exports.defineBroadcast=js;exports.defineConfigDomain=Hr;exports.defineDataItem=Wr;exports.defineDomain=Ln;exports.defineItem=we;exports.definePageState=Yr;exports.deleteGlobalValidator=Qs;exports.disabledProperty=Ce;exports.divide=xn;exports.excludeProps=In;exports.extend=nt;exports.floatData=Lr;exports.getGlobalValidateCheckEvents=Rr;exports.getGlobalValidateResetEvents=Kr;exports.getPageContentAreaHeight=so;exports.getPageContentAreaWidth=io;exports.getPageFooterAreaHeight=wo;exports.getPageHeaderAreaHeight=Co;exports.getRootDomain=mt;exports.getScrollTopRoot=qn;exports.hasSymbol=Tr;exports.includeProps=he;exports.indexOf=Us;exports.installRules=jr;exports.integerLength=Mr;exports.isArray=ho;exports.isArrayLike=Dr;exports.isBrowser=st;exports.isDate=Oe;exports.isESModule=Ps;exports.isEmptyString=ie;exports.isEqual=xe;exports.isFunction=ao;exports.isHidden=yo;exports.isInnerPage=ni;exports.isMap=Ms;exports.isNil=Vr;exports.isNumberString=qr;exports.isObject=Be;exports.isPlainObject=cn;exports.isPromise=ht;exports.isRegExp=Ir;exports.isSet=zs;exports.isString=Ar;exports.isSubPage=li;exports.isSymbol=Ls;exports.isWindow=Er;exports.lastIndexOf=Hs;exports.makeArray=Ks;exports.merge=xr;exports.multiply=wr;exports.negate=Nr;exports.nextTick=Rs;exports.numberFormat=po;exports.objectToString=$r;exports.once=ti;exports.padZero=Je;exports.preventDefault=fn;exports.property=Ne;exports.raf=Pe;exports.readonlyProperty=Ae;exports.setGlobalValidateCheckEvents=Gs;exports.setGlobalValidateHandler=Ys;exports.setGlobalValidateMessages=Js;exports.setGlobalValidateResetEvents=Zs;exports.setGlobalValidator=Xs;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=Br;exports.updatePageState=mn;exports.useBroadcast=Dt;exports.useDomain=Ke;exports.useExpose=$e;exports.useInnerSize=Fn;exports.usePageState=So;exports.usePosition=os;exports.useRect=Ve;exports.useSize=No;exports.useTouch=Ue;exports.valueLength=ge;
|
|
13
|
+
`)}}});function mg(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const wl=J(fg,[["render",mg]]),{componentName:pg,create:hg}=Y("divider"),gg=hg({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,o){return{classes:t.computed(()=>{const n=pg;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 yg(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 Nl=J(gg,[["render",yg]]);function vg(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 kg(e,o,l){const n=vg(e.subTree.children,l);o.sort((a,r)=>n.indexOf(a.vnode)-n.indexOf(r.vnode))}function bg(e,o){const l=t.shallowReactive([]),n=t.getCurrentInstance(),a=i=>{i.proxy&&(l.push(t.markRaw(i)),kg(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:yr}=Y("grid"),Vs=Symbol("grid"),Sg={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}},Cg={props:Sg,setup(e,{slots:o}){bg(Vs,`${yr}-item`)({props:e});const l=t.computed(()=>{const a=yr;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:wg}=Y("grid"),Bl=wg(Cg);function Ng(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:Bg,componentName:vr}=Y("grid-item"),Vg=Bg({props:{text:{type:String}},emits:["click"],setup(e,{emit:o}){const l=Ng(Vs);if(!l.parent)return{};const n=l.index,a=l.parent.props,r=t.computed(()=>({[vr]:!0})),s=t.computed(()=>{const f={flexBasis:`${100/+a.columnNum}%`};return a.square?f.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(f.paddingRight=pe(a.gutter),n.value>=a.columnNum&&(f.marginTop=pe(a.gutter))),f}),i=t.computed(()=>{const f=`${vr}__content`;return{[`${f}`]:!0,[`${f}--border`]:a.border,[`${f}--surround`]:a.border&&a.gutter,[`${f}--center`]:a.center,[`${f}--square`]:a.square,[`${f}--reverse`]:a.reverse,[`${f}--${a.direction}`]:!!a.direction,[`${f}--clickable`]:a.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:f=>{o("click",f)}}}}),Ag={class:"fox-grid-item__text"};function $g(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",Ag,[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 Vl=J(Vg,[["render",$g]]),{componentName:Tg,create:Eg}=Y("navbar"),Dg=Eg({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 f=t.ref();const m=t.computed(()=>{const v=Tg;return{[v]:!0,[`${v}--border`]:l.value,[`${v}--fixed`]:n.value,[`${v}--safe-area-inset-top`]:a.value}}),d=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{n.value&&r.value&&t.nextTick(()=>{f.value=c?.value?.getBoundingClientRect().height,i.value.style.height=f.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:d,handleLeft:h,handleCenter:y,handleCenterIcon:g,handleRight:k}}}),xg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Ig={key:1,class:"fox-navbar__text"},qg={class:"fox-navbar__title"},Mg={key:0,class:"fox-navbar__text"},zg={key:1,class:"fox-navbar__text"},Pg={class:"fox-navbar__title"},Lg={key:0,class:"fox-navbar__text"};function Fg(e,o,l,n,a,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",xg,[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",qg,[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",Mg,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",zg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Pg,[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",Lg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Al=J(Dg,[["render",Fg]]),Rg=(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:(d=!n.visible)=>{a("update:visible",d)},selected:(d,h)=>{a("selected",{item:d,event:h}),c.value=d.id},current:c}}}),{componentName:Og,create:Kg,scope:Ug}=Y("fixednav"),Hg=Kg(Rg(Og,Ug,{[at.name]:at,Left:te.Left})),jg={class:"fox-fixednav__list"},Wg=["onClick"],Yg=["src"],Xg={class:"span"},Qg={key:0,class:"b"},Gg={class:"text"};function Zg(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",jg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,f)=>(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||f},[t.createElementVNode("img",{src:c.icon},null,8,Yg),t.createElementVNode("view",Xg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Qg,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Wg))),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",Gg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const $l=J(Hg,[["render",Zg]]),{componentName:Jg,create:_g}=Y("menu"),ey=_g({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(),f=t.computed(()=>i.some(v=>v.state.showWrapper)),m=t.computed(()=>({[Jg]:!0,"scroll-fixed":r.value})),d=()=>{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?(d(),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:f,classes:m,barRef:n,getClasses:k}}}),ty=["onClick"],oy={class:"fox-menu__title-text"},ny={class:"fox-menu__title-icon"};function ly(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,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:m=>!c.disabled&&e.toggleItem(f),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",oy,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",ny,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,ty))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Tl=J(ey,[["render",ly]]),{componentName:ay,create:ry}=Y("menu-item"),sy=ry({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:k,removeLink:v}=y;return k(g),t.onUnmounted(()=>{v(g)}),{parent:y}}},{parent:r}=a(),s=t.computed(()=>({[ay]:!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")}}}}),iy={class:"fox-menu-item__content fox-menu-item__overflow"},cy=["onClick"];function uy(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",iy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,f)=>(t.openBlock(),t.createElementBlock("view",{key:f,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,cy))),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 El=J(sy,[["render",uy]]),{create:dy}=Y("tabbar"),fy=dy({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 my(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 Dl=J(fy,[["render",my]]),{create:py}=Y("tabbar-item"),hy=py({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&&(f=>{if(f.proxy){let m=l.children.length;n.index=m;let d=Object.assign(f.proxy,{index:m});l.children.push(d)}})(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}}}),gy={class:"fox-tabbar-item_icon-box"},yy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},vy={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},ky={key:1,class:"fox-tabbar-item_icon-box_dot"},by={key:2},Sy={key:0};function Cy(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",gy,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",yy,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",vy,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",ky)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",by,[(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",Sy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const xl=J(hy,[["render",Cy]]),{componentName:wy,create:Ny}=Y("elevator"),By=Ny({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(()=>({[wy]:!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)})},f=()=>{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]))},d=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)}),Te({scrollTo:m}),t.watch(()=>n.listGroup.length,()=>{n.listHeight=[],t.nextTick(f)}),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:d,touchMove:h,touchEnd:y,handleClickItem:g,handleClickIndex:k}}}),Vy={class:"fox-elevator__list__item__code"},Ay=["onClick"],$y=["innerHTML"],Ty={class:"fox-elevator__fixed-title"},Ey={class:"fox-elevator__bars__inner"},Dy=["data-index","onClick"];function xy(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",Vy,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,$y))],10,Ay))),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",Ty,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",Ey,[(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,Dy))),128))])],32)],2)}const Ot=J(By,[["render",xy]]),{componentName:d2,create:Iy,scope:qy}=Y("pagination"),My=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(qy),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)}),f=(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}),d=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(()=>{f(a.value,!1)}),{...n,modelValue:a,select:f,countRef:c,mode:r,pages:d,forceEllipses:i}}}),zy={class:"fox-pagination"},Py={key:0,class:"fox-pagination-contain"},Ly=["onClick"],Fy={key:1,class:"fox-pagination-contain"},Ry={class:"fox-pagination-simple"};function Oy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",zy,[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",Py,[(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,Ly))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Fy,[t.createElementVNode("view",Ry,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 Il=J(My,[["render",Oy]]),{componentName:kr,create:Ky}=Y("indicator"),Uy=Ky({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=kr;return{[a]:!0,[`${a}--block`]:o.value,[`${a}--align__${l.value}`]:o.value&&l.value}}),componentName:kr,padZero:Je}}});function Hy(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 ql=J(Uy,[["render",Hy]]),{componentName:jy,create:Wy}=Y("side-navbar"),Yy=Wy({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(()=>({[jy]:!0})),a=(s,i=1)=>{for(let c=0;c<s.length;c++){let f=s[c];f?.children?.[0]&&(f.children[0].style.paddingLeft=+e.offset*i+"px",f.className.includes("fox-side-navbar-item")||a(Array.from(f.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}}}),Xy={class:"fox-side-navbar__content"},Qy={class:"fox-side-navbar__content__list",ref:"list"};function Gy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Xy,[t.createElementVNode("view",Qy,[t.renderSlot(e.$slots,"default")],512)])],2)}const Ml=J(Yy,[["render",Gy]]),{componentName:Zy,create:Jy}=Y("side-navbar-item"),_y=Jy({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,o)=>({classes:t.computed(()=>({[Zy]:!0})),handleClick:()=>{o.emit("click")}})}),ev=["ikey"],tv={class:"fox-side-navbar-item__title"};function ov(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",tv,t.toDisplayString(e.title),1)],10,ev)}const zl=J(_y,[["render",ov]]),{componentName:nv,create:lv}=Y("sub-side-navbar"),av=lv({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(()=>({[nv]:!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}}}),rv=["ikey"],sv={class:"fox-sub-side-navbar__title__text"},iv={class:"fox-sub-side-navbar__title__icon"};function cv(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",sv,t.toDisplayString(e.title),1),t.createElementVNode("span",iv,[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,rv)}const Pl=J(av,[["render",cv]]),{componentName:uv,create:dv}=Y("range"),fv=dv({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)}),f=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const E=uv;return{[E]:!0,[`${E}-disabled`]:e.disabled,[`${E}-vertical`]:e.vertical,[`${E}-show-number`]:!e.hiddenRange}}),d=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/f.value}%`:`${(E-Number(x))*100/f.value}%`},v=()=>{const{modelValue:E,min:x}=e;return g(E)?`${(E[0]-Number(x))*100/f.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[L,$]=U;H=L,G=$}else G=U;let K=E<=G&&E>=H;return{[`${x}-text`]:!0,[`${x}-text-active`]:K}},b=E=>{const{min:x,vertical:U}=e;let D={left:`${(E-Number(x))/f.value*100}%`};return U&&(D={top:`${(E-Number(x))/f.value*100}%`}),D},S=E=>{const{modelValue:x,max:U,min:D}=e;let W=Number(D),H=Number(U);if(e.range){const[L,$]=x;W=L,H=$}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)},M=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*f.value;if(g(U)){const[K,L]=U,$=(K+L)/2;G<=$?B([G,L],!0):B([K,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*f.value;e.vertical&&(U=i.deltaY.value,D=x.height,W=U/D*f.value),g(n)?a[l.value]=n[l.value]+W:a=n+W,B(a),E.stopPropagation(),E.preventDefault()},z=()=>{e.disabled||(s.value==="draging"&&(B(a,!0),o("drag-end")),s.value="")},P=E=>ho(e.modelValue)&&typeof E=="number"?e.modelValue[E]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:h,buttonStyle:y,onClick:M,onTouchStart:A,onTouchMove:w,onTouchEnd:z,...t.toRefs(e),barStyle:u,curValue:P,buttonIndex:l,containerClasses:d,markClassName:p,marksStyle:b,marksList:c,tickStyle:S}}}),mv={key:0,class:"fox-range-min"},pv={key:0,class:"fox-range-mark"},hv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],gv={key:0,class:"number"},yv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],vv={key:0,class:"number"},kv={key:1,class:"fox-range-max"};function bv(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",mv,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",pv,[(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",gv,t.toDisplayString(e.curValue(s)),1))],4))],42,hv)),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",vv,t.toDisplayString(e.curValue()),1))],4))],40,yv))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",kv,t.toDisplayString(+e.max),1))],2)}const Kt=J(fv,[["render",bv]]),{create:Sv,scope:Cv}=Y("short-password"),wv=Sv({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(Cv),n=l(e,["title","desc","tips"]),a=t.ref(e.modelValue),r=t.computed(()=>f(Number(e.length))),s=t.ref(e.visible),i=d=>{d.stopPropagation(),o("focus")};t.watch(()=>e.visible,d=>{s.value=d}),t.watch(()=>e.modelValue,d=>{a.value=d,String(d).length===r.value&&o("complete",d)});const c=()=>{o("update:visible",!1),o("close")},f=d=>Math.min(Math.max(4,d),6);return{comLen:r,realInput:a,onTouchStart:i,range:f,close:c,onTips:()=>{o("tips")},show:s,...n}}}),Nv={class:"fox-short-password-title"},Bv={class:"fox-short-password-subtitle"},Vv={class:"fox-short-password-wrapper"},Av={key:0,class:"fox-short-password__item-icon"},$v={class:"fox-short-password__message"},Tv={class:"fox-short-password--error"},Ev={key:0,class:"fox-short-password--forget"};function Dv(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",Nv,t.toDisplayString(e.title),1),t.createElementVNode("view",Bv,t.toDisplayString(e.desc),1),t.createElementVNode("div",Vv,[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,f)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:f},[String(e.realInput).length>f?(t.openBlock(),t.createElementBlock("view",Av)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",$v,[t.createElementVNode("view",Tv,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",Ev,[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 Ll=J(wv,[["render",Dv]]);class xv{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 qv{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const As=(e,{args:o=[],done:l,canceled:n})=>{if(e){const a=e.apply(null,o);ht(a)?a.then(r=>{r?l(r):n&&n()}).catch(()=>{}):a?l():n&&n()}else l()},{create:Mv}=Y("progress"),zv=Mv({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}}}),Pv={class:"fox-progress"},Lv={key:0,class:"fox-progress-text"};function Fv(e,o,l,n,a,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",Pv,[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",Lv,[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(zv,[["render",Fv]]),{componentName:Rv,create:Ov,scope:Kv}=Y("uploader"),Uv=Ov({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(Kv),n=t.reactive(e.fileList);let a=[];const r=t.computed(()=>({[Rv]:!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})},f=(p,b)=>{const S=new xv;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 Iv(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))},d=()=>{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 qv);if(C.name=b.name,C.status="ready",C.type=b.type,C.formData=N,C.message=l("waitingUpload"),f(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),As(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:d,renderInput:s}}}),Hv={key:0,class:"fox-uploader__slot"},jv={key:0,class:"fox-uploader__preview-img"},Wv={key:0,class:"fox-uploader__preview__progress"},Yv={class:"fox-uploader__preview__progress__msg"},Xv=["onClick"],Qv=["onClick","src"],Gv={key:3,class:"fox-uploader__preview-img__file"},Zv=["onClick"],Jv={class:"file__name_tips"},_v={class:"tips"},e0={key:1,class:"fox-uploader__preview-list"},t0=["onClick"],o0={class:"file__name_tips"};function n0(e,o,l,n,a,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),f=t.resolveComponent("Del"),m=t.resolveComponent("fox-progress"),d=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",Hv,[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",jv,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",Wv,[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",Yv,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,Xv)):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,Qv)):(t.openBlock(),t.createElementBlock("view",Gv,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",Jv,t.toDisplayString(h.name),1)],8,Zv)])),t.createElementVNode("view",_v,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",e0,[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",o0,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(f,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:g=>e.onDelete(h,y)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,t0),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(d,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const Fl=J(Uv,[["render",n0]]),l0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbn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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(s0),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 f(){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!=""?f():i()),d=()=>{e.visible&&o("blur")},h=u=>{const p=s.value;p&&!p.contains(u.target)&&d()};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:l0,lockImg:a0,clickKeyIndex:a,defaultKey:i,closeBoard:v,onTouchEnd:k,onTouchMove:g,onTouchstart:y,keysList:m,genCustomKeys:f,getBasicKeys:c,root:s,show:r}}}),c0={ref:"root"},u0={class:"fox-number-keyboard"},d0={key:0,class:"fox-number-keyboard__header"},f0={class:"fox-number-keyboard__title"},m0={class:"fox-number-keyboard__body"},p0={class:"fox-number-keyboard__keys"},h0=["onTouchstart"],g0=["src"],y0=["src"],v0={key:0,class:"fox-number-keyboard__sidebar"},k0={class:"fox-key__wrapper"},b0=["src"];function S0(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",c0,[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",u0,[e.title?(t.openBlock(),t.createElementBlock("div",d0,[t.createElementVNode("h3",f0,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",m0,[t.createElementVNode("div",p0,[(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,g0)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,y0)):t.createCommentVNode("",!0)],42,h0)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",v0,[t.createElementVNode("div",k0,[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,b0)],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 Rl=J(i0,[["render",S0]]),{componentName:C0,create:w0}=Y("swipe"),N0=w0({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(()=>({[C0]:!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,f="",m="";const d=t.reactive({offset:0,moving:!1}),h=(p="")=>{c=!0,p&&(d.offset=p==="left"?-i.value:r.value),o("open",{name:e.name,position:f||p})},y=()=>{d.offset=0,c=!1,o("close",{name:e.name,position:f})},g=t.computed(()=>({transform:`translate3d(${d.offset}px, 0, 0)`})),k=p=>{f=p>0?"right":"left";let b=p;switch(f){case"left":c&&m===f?b=-i.value:b=Math.abs(p)>i.value?-i.value:p;break;case"right":c&&m===f?b=r.value:b=Math.abs(p)>r.value?r.value:p;break}d.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()&&(d.moving=!0,k(v.deltaX.value),e.touchMovePreventDefault&&p.preventDefault(),e.touchMoveStopPropagation&&p.stopPropagation()))},onTouchEnd(){if(d.moving)switch(d.moving=!1,m=f,f){case"left":Math.abs(d.offset)<=i.value/2?y():(d.offset=-i.value,h());break;case"right":Math.abs(d.offset)<=r.value/2?y():(d.offset=r.value,h());break}}},leftRef:a,rightRef:s,open:h,close:y}}}),B0={class:"fox-swipe__left",ref:"leftRef"},V0={class:"fox-swipe__content"},A0={class:"fox-swipe__right",ref:"rightRef"};function $0(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",B0,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",V0,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",A0,[t.renderSlot(e.$slots,"right")],512)],38)}const Ht=J(N0,[["render",$0]]),{componentName:T0,create:E0}=Y("action-sheet"),D0=E0({components:{[ce.name]:ce,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(()=>({[T0]:!0}));return{slotDefault:l,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{o("cancel"),o("update:visible",!1)},chooseItem:(c,f)=>{!c.disable&&!c.loading&&(o("choose",c,f),o("update:visible",!1))},close:c=>{o("close",c),o("update:visible",!1)},classes:n}}}),x0={key:0,class:"fox-action-sheet__title"},I0={key:1},q0={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},M0={key:1,class:"fox-action-sheet__menu"},z0=["onClick"],P0={key:1},L0={class:"fox-action-sheet__subdesc"};function F0(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",x0,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",q0,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",M0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,f)=>(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:f,onClick:m=>e.chooseItem(c,f)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",P0,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",L0,t.toDisplayString(c[e.optionSubTag]),1)],14,z0))),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 Ol=J(D0,[["render",F0]]),{componentName:R0,create:O0}=Y("backtop"),Kl=O0({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(()=>({[R0]:!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)&&Cr(g)})}function f(){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 d(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)),f()}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:d},k);return g.push(v),g}}}),{componentName:K0,create:U0}=Y("drag"),H0=U0({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(()=>({[K0]:!0}));function r(){const d=document.documentElement;n.elWidth=l.value.offsetWidth,n.elHeight=l.value.offsetHeight,n.screenWidth=d.clientWidth,n.screenHeight=d.clientHeight}function s(d){n.boundary.left?+d.style.left.split("px")[0]>n.boundary.left?(d.style.left=+d.style.left.split("px")[0]-10+"px",Le(()=>{s(d)})):d.style.left=`${n.boundary.left}px`:+d.style.left.split("px")[0]>10?(d.style.left=+d.style.left.split("px")[0]-10+"px",Le(()=>{s(d)})):d.style.left="0px"}function i(d,h){h-parseInt(d.style.left.split("px")[0])>10?(d.style.left=parseInt(d.style.left.split("px")[0])+10+"px",Le(()=>{i(d,h)})):d.style.left=h+"px"}function c(d){d.preventDefault();const h=d.currentTarget;if(d.targetTouches.length===1){const y=d.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 f(d){const h=d.currentTarget;let g=d.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(d){const h=d.currentTarget,y=d.touches[0],g=d.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 d=l;d.value.removeEventListener("touchstart",m),d.value.removeEventListener("touchmove",c),d.value.removeEventListener("touchend",f)}),{classes:a,myDrag:l,touchStart:m,touchMove:c,touchEnd:f}}});function j0(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 Ul=J(H0,[["render",j0]]),W0={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}},Y0=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function X0(e,o,l,n,a){return{props:{...ze,...W0},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:f}=ae.useFoxI18n(o),m=f(r,["confirmText","cancelText"]),d=e,h=t.ref(r.visible);t.watch(()=>r.visible,C=>{h.value!==C&&(h.value=C,C&&c("opened"))});const 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);ht(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)=>Y0(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:`${d}__header-title`},[r.title]);C.push(B)}if(r.showClose){const B={class:[`${d}__header-close-icon`],onClick:u},M=r.closeIcon??a,A=p(M,B);C.push(A)}}if(C.length===0)return null;const V={class:[`${d}__header`]};return t.h("view",V,C)},S=()=>{const C=[];if(i.default)C.push(i.default());else{const B={class:[`${d}__content`]};if(r.textAlign&&B.class.push(r.textAlign),typeof r.content=="string"){B.innerHTML=r.content;const M=t.h("view",B);C.push(M)}else if(typeof r.content=="function"){const M=t.h("view",B,[r.content()]);C.push(M)}else{const M=t.h("view",B,[r.content]);C.push(M)}}if(C.length===0)return null;const V={class:[`${d}__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:[`${d}__footer-button`,`${d}__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 M=t.h("view",B,[r.cancelButtonText??m.cancelText.value]);C.push(M)}if(r.showConfirmButton){const B={class:[`${d}__footer-button`,`${d}__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 M=t.h("view",B,[r.confirmButtonText??m.confirmText.value]);C.push(M)}}else{if(r.showCancelButton){const B={class:[`${d}__footer-button`,`${d}__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 M=t.h(n,B,{default:()=>[r.cancelButtonText??m.cancelText.value]});C.push(M)}if(r.showConfirmButton){const B={class:[`${d}__footer-button`,`${d}__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 M=t.h(n,B,{default:()=>[r.confirmButtonText??m.confirmText.value]});C.push(M)}}if(C.length===0)return null;const V={class:[`${d}__footer`,`${d}__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 M=N();M&&C.push(M);const A={class:{[`${d}`]:!0,[`${d}--plain`]:r.plain}},w=t.h("view",A,C),z=[`${d}__popup`];r.popClass&&z.push(r.popClass);const P={};r.width&&(P.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(P.height=typeof r.height=="number"?`${r.height}px`:r.height);const x={...he(r,ze),popClass:z.join(" "),style:P,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:Q0,create:G0,scope:Z0}=Y("dialog"),$s=G0(X0(Q0,Z0,ce,Ie,te.Close));class J0{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 _0{options=new J0;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=f=>{if(f===!1){const m=document.querySelector(`#${s}`);m&&m.parentNode?.removeChild(m)}},l?.onOpened&&l?.onOpened(),()=>t.h($s,l)}},c=t.createVNode(i);n.appendChild(r),t.render(c,r)}}const jt=function(e){return new _0(e)};jt.install=e=>{e.use($s),e.config.globalProperties.$dialog=jt};const{componentName:ek,create:tk,scope:ok}=Y("pull-refresh"),nk=tk({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(ok),a=n(e,["pullingText","loosingText","loadingText"]),r=Ue(),s=t.ref(),i=ds(s),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal"}),f=t.computed(()=>({[ek]:!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}}),d=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:f,scroller:s,...t.toRefs(c),touchStart:u,touchMove:p,touchEnd:b,getStyle:d,slots:l,getHeightStyle:h,getPullStatus:m}}}),lk={class:"fox-pull-refresh-container-topbox-text"};function ak(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",lk,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 Hl=J(nk,[["render",ak]]),{create:rk}=Y("notify"),sk=rk({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,f=>{s.value=e.visible;const m=e.duration;f&&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 ik(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 jl=J(sk,[["render",ik]]),Tn={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let dt=[],It=[];const Ts=e=>{if(e){const o=document.getElementById(e);It=It.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)}),It=[],dt=[]},ck=e=>{const o=document.getElementById(e.id);if(o){const l=It.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),n.component.data}},$t=e=>{e.unmount=Ts;let o;if(e.id){if(o=e.id,dt.find(r=>r===e.id))return ck(e)}else o=new Date().getTime()+"";e={...Tn,...e},e.id=o,dt.push(e.id),It.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(jl,e)}},a=t.createVNode(n);document.body.appendChild(l),t.render(a,l)},Tt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Wl={text(e,o={}){return Tt(e),$t({...o,msg:e})},primary(e,o={}){return Tt(e),$t({...o,msg:e,type:"primary"})},success(e,o={}){return Tt(e),$t({...o,msg:e,type:"success"})},danger(e,o={}){return Tt(e),$t({...o,msg:e,type:"danger"})},warn(e,o={}){return Tt(e),$t({...o,msg:e,type:"warning"})},hide(){Ts()},install(e){e.use(jl)}},{create:uk}=Y("toast"),dk=uk({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),f=()=>{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]),d=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:r,clickCover:i,renderIcon:f,hasIcon:c,toastBodyClass:m,toastIconWrapperClass:d,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),fk={key:1,class:"fox-toast-title"},mk=["innerHTML"];function pk(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",fk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,mk)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Yl=J(dk,[["render",pk]]),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=[],qt=[];const Es=e=>{if(e){const o=document.getElementById(e);qt=qt.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)}),qt=[],ft=[]},hk=e=>{const o=document.getElementById(e.id);if(o){const l=qt.find(a=>a.id===e.id);l?e={...En,...l,...e}:e={...En,...e};const n=t.createVNode(Yl,e);return t.render(n,o),wt}},Et=e=>{e.unmount=Es;let o;if(e.id){if(o=e.id,ft.find(a=>a===e.id))return hk(e)}else o=new Date().getTime()+"";e={...En,...e},e.id=o,ft.push(e.id),qt.push(e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(Yl,e);return t.render(n,l),document.body.appendChild(l),wt},Jt=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},wt={text(e,o={}){return Jt(e),Et({...o,type:"text",msg:e})},success(e,o={}){return Jt(e),Et({icon:te.Success,...o,msg:e,type:"success"})},fail(e,o={}){return Jt(e),Et({icon:te.Failure,...o,msg:e,type:"fail"})},warn(e,o={}){return Jt(e),Et({icon:te.Tips,...o,msg:e,type:"warn"})},loading(e,o={}){return Et({icon:te.Loading,...o,msg:e,type:"loading"})},hide(e){Es(e)},install(e){e.use(Yl),e.config.globalProperties.$toast=wt}},{componentName:m2,create:gk}=Y("audio"),yk=gk({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)},f=()=>{a.currentTime++,n.value.currentTime=a.currentTime,o("forward",a.currentTime)},m=k=>{a.currentDuration=g(k),a.percent=k/a.second*100},d=()=>{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:f,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(a),audioRef:n,fastBack:i,forward:f,changeStatus:c,progressChange:h,audioEnd:d,onTimeupdate:s,handleMute:y,onCanplay:r,slots:l}}}),vk={class:"fox-audio"},kk={key:0,class:"fox-audio__progress"},bk={class:"fox-audio__time"},Sk={class:"fox-audio__bar"},Ck=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),wk={class:"fox-audio__time"},Nk={key:1,class:"fox-audio__icon"},Bk=["controls","src","preload","autoplay","loop","muted"];function Vk(e,o,l,n,a,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",vk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",kk,[t.createElementVNode("div",bk,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Sk,[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(()=>[Ck]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",wk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Nk,[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,Bk)])}const Xl=J(yk,[["render",Vk]]),{componentName:p2,create:Ak,scope:$k}=Y("audio-operate"),Tk=Ak({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n($k),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}}}),Ek={class:"fox-audio-operate"};function Dk(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Ek,[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 Ql=J(Tk,[["render",Dk]]),{componentName:xk,create:Ik}=Y("avatar"),qk=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}),f=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const g=s?.avatarGroupRef?.value?.children;g&&y(g)});const m=t.computed(()=>({[xk]:!0,[`fox-avatar-${o.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${l.value||s?.props?.shape||"normal"}`]:!0})),d=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:f.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(f.maxIndex-f.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),y=g=>{f.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);f.index=i?.value?.dataset?.index,f.index==f.maxIndex&&f.index!=s?.props?.maxCount&&(f.showMax=!0)};return{classes:m,styles:d,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(f)}}});function Mk(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(qk,[["render",Mk]]),{componentName:zk,create:Pk}=Y("avatar-group"),Lk=Pk({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(()=>({[zk]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:n,index:a}),{classes:r,avatarGroupRef:n}}});function Fk(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 Gl=J(Lk,[["render",Fk]]);var no=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(no||{});function Rk(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:Ok,create:Kk}=Y("list"),br=document.documentElement.clientHeight||document.body.clientHeight||667,Uk=Kk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:br},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,br)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),f=t.computed(()=>({[Ok]:!0})),m=t.computed(()=>r.list.slice(r.start,c.value)),d=()=>{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 M=Ve(V),{height:A}=M,z=r.cachePositions[B+r.start].height-A;z&&(r.cachePositions[B+r.start].bottom-=z,r.cachePositions[B+r.start].height=A,r.cachePositions[B+r.start].dValue=z)});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=Rk(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:d,visibleData:m,classes:f,getContainerHeight:s,handleScrollEvent:v}}});function Hk(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 Zl=J(Uk,[["render",Hk]]),{componentName:jk,create:Wk}=Y("circleprogress"),Yk=Wk({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(()=>({[jk]:!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,d=m*Number(e.progress)/100;return{stroke:Be(e.color)?`url(#${n})`:e.color,strokeDasharray:`${d}px ${m}px`}}),c=t.computed(()=>({stroke:e.pathColor})),f=t.computed(()=>{if(!Be(e.color))return;let m=e.color;const d=Object.keys(m).sort((y,g)=>parseFloat(y)-parseFloat(g));let h=[];return d.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:f,slotDefault:l,refRandomId:n}}}),Xk={viewBox:"0 0 100 100"},Qk=["id"],Gk=["offset","stop-color"],Zk=["d","stroke-width"],Jk=["d","stroke","stroke-linecap","stroke-width"],_k={class:"fox-circleprogress-text"},eb={key:0};function tb(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",Xk,[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,Gk))),128))],8,Qk)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,Zk),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,Jk)])),t.createElementVNode("div",_k,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",eb,t.toDisplayString(e.progress)+"%",1))])],6)}const Jl=J(Yk,[["render",tb]]),{componentName:ob,create:nb}=Y("noticebar"),lb=nb({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(()=>({[ob]:!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})),f=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"})`})),d=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,M=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?M>B:e.scrollable,r.isCanScroll?(r.wrapWidth=B,r.offsetWidth=M,r.duration=M/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:f,contentStyle:m,horseLampStyle:d,wrap:n,content:a,handleClick:y,onClickIcon:g,onAnimationEnd:k,go:S,handleClickIcon:N,slots:l,toPxDesc:pe,wrapContentClass:c}}}),ab={class:"fox-noticebar__page-lefticon"},rb={ref:"wrap",class:"fox-noticebar__page-wrap"},sb={class:"showNotica"},ib=["onClick"];function cb(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]=(...f)=>e.handleClick&&e.handleClick(...f))},[t.createElementVNode("view",ab,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",rb,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:o[0]||(o[0]=(...f)=>e.onAnimationEnd&&e.onAnimationEnd(...f)),"on:webkitAnimationEnd":o[1]||(o[1]=(...f)=>e.onAnimationEnd&&e.onAnimationEnd(...f))},[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((...f)=>e.onClickIcon&&e.onClickIcon(...f),["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",sb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(f,m)=>(t.openBlock(),t.createBlock(c,{key:m,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:f},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,(f,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:d=>e.go(f)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(f),1)])],12,ib))),128))],4)),t.createElementVNode("view",{class:"go",onClick:o[4]||(o[4]=f=>!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 _l=J(lb,[["render",cb]]),ub="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/xdD/y9UyMD0TExP5sb+4uLj/y9X+w879ws3/y9X1tMH8s8H/y9UkJSWAgYHj5OT/ytTY2NheXWDs7e7r7Ozv8PDs7u55eYH09fXMzMzY2NgyMD3/y9UzMzP8s8GwsLDm5+eKiorv8PDLy8s6Ojr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QMiMwum2kNNfIc+p6/MXVVDqsBDUH/zidR85Fwj5Y8nVzymDU9Y063xRs0CpM+1E089q1TipDRMIiZSde4OkduL1FOsm2CyXqBwTgvoN/2AWrGzwl2UgpO+og/il1+l33E87H98i51kAJxjvZ0Cp08lT074JcKKB8eUJMWwH+8K3v77/7N4LkfNLAGA28qgSl1xInpquROEseRhxSkAWPOM8wxRODSIt7GNHQanCpeQAtQURq4KR80AWOsNlmIK5vCpg0ZuVoNTqS9KpaTGbVp3aKSLlVOaZPCgOIjqKc7L6ojRAlRZxs8VoK5WMy6lTjT/gRak1QKlFFxO9FKsBZzZZZSWQBY3nNKllAOdG70CtDcP9/s4DHtSzEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:h2,create:mb,scope:pb}=Y("empty"),hb={empty:ub,error:db,network:fb},gb=mb({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:o}=ae.useFoxI18n(pb),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:hb[n.value];return{...l,imageUrl:i,imgStyle:r}}}),yb={class:"fox-empty"},vb=["src"],kb={key:1,class:"fox-empty-description"};function bb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",yb,[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,vb)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",kb,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const ea=J(gb,[["render",bb]]),{create:Sb,scope:Cb}=Y("video"),wb=Sb({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(Cb),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(d,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(d,1e3)),n.videoElm.addEventListener("ended",h),o("play",n.videoElm)}catch{y()}else n.videoElm.pause(),o("pause",n.videoElm)},f=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 M=Math.round(C%3600%60);M<10&&(M="0"+M);var A="";return V!=0?A=V+":"+B+":"+M:A=B+":"+M,A},m=()=>{n.videoSet.loaded&&(n.videoSet.loaded=n.videoElm.buffered.end(0)/n.videoElm.duration*100)},d=()=>{const C=n.videoElm.currentTime/n.videoElm.duration;n.videoSet.progress.current=Math.round(n.videoSet.progress.width*C),n.videoSet.totalTime=f(n.videoElm.duration),n.videoSet.displayTime=f(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 M=n.videoSet.progress.current/n.videoSet.progress.width;n.videoElm.duration&&b(M,n.videoElm.duration)},p=C=>{let B=C.changedTouches[0].pageX-n.progressBar.pos.left;n.videoSet.progress.current=B;let M=B/n.videoSet.progress.width;n.videoElm.duration&&b(M,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}}}),Nb={class:"fox-video",ref:"videocon"},Bb=["muted","autoplay","loop","poster","controls","preload"],Vb=["src","type"],Ab={class:"fox-video-controller__now"},$b={class:"fox-video-controller__progress"},Tb={class:"fox-video-controller__progress-value",ref:"progressBar"},Eb=t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1),Db=[Eb],xb={class:"fox-video-controller__played",ref:"playedBar"},Ib={class:"fox-video-controller__total"},qb={class:"fox-video-error"},Mb={class:"fox-video-error-tip"};function zb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",Nb,[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,Vb)],40,Bb),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",Ab,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",$b,[t.createElementVNode("div",Tb,[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"]))},Db,36),t.createElementVNode("div",xb,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",qb,[t.createElementVNode("p",Mb,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 bt=J(wb,[["render",zb]]),{create:Pb,componentName:Lb}=Y("steps"),ta=Pb({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=Lb;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:Fb,componentName:Rb}=Y("step"),Ob=Fb({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=Rb;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{o.onEmit(n.value)};return{...t.toRefs(l),index:n,classes:s,handleClickStep:i}}}),Kb={class:"fox-step-head"},Ub=t.createElementVNode("view",{class:"fox-step-line"},null,-1),Hb={class:"fox-step-icon-inner"},jb={key:1,class:"fox-step-inner"},Wb={class:"fox-step-main"},Yb={class:"fox-step-title"},Xb={key:0},Qb={key:0,class:"fox-step-content"},Gb=["innerHTML"];function Zb(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",Kb,[Ub,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",Hb,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",jb,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",Wb,[t.createElementVNode("view",Yb,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Xb,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",Qb,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,Gb)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const oa=J(Ob,[["render",Zb]]),{create:Jb,componentName:on}=Y("swiper"),_b=Jb({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}}),f=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),d=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(K=>K.children&&Array.isArray(K.children)),G.forEach(K=>{W=W.concat(K.children)}),!H)a.childrenVNode=W.slice(),D.proxy&&a.children.push(D.proxy);else if(H>W.length)a.children=a.children.filter(K=>D.proxy!==K);else if(H<W.length){for(let K=0;K<H;K++)if(W[K].key!==a.childrenVNode[K].key){D.proxy&&a.children.splice(K,0,D.proxy),D.vnode&&a.childrenVNode.splice(K,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,K=S(D),L=b(K,W);if(e.loop){if(a.children[0]&&L!==k.value){const $=L<k.value;a.children[0].setOffset($?g.value:0)}if(a.children[h.value-1]&&L!==0){const $=L>0;a.children[h.value-1].setOffset($?-g.value:0)}}a.active=K,a.offset=L,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})})})},M=()=>{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})})},z=()=>{e.autoPlay<=0||h.value<=1||(V(),a.autoplayTimer=setTimeout(()=>{A(),z()},Number(e.autoPlay)))},P=(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(),z()},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),d.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))&&d.value){let G=0;const K=i.value?r.offsetY.value:r.offsetX.value;e.loop?G=K>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(),z()};return t.provide("parent",{props:e,size:y,relation:p}),Te({prev:M,next:A,to:w}),t.onDeactivated(()=>{V()}),t.onBeforeUnmount(()=>{V()}),t.watch(()=>e.initPage,D=>{t.nextTick(()=>{P(Number(D))})}),t.watch(()=>a.children.length,()=>{t.nextTick(()=>{P()})}),t.watch(()=>e.autoPlay,D=>{D>0?z():V()}),{state:a,classes:s,classesInner:c,classesPagination:f,container:n,activePagination:v,onTouchStart:E,onTouchMove:x,onTouchEnd:U}}});function eS(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 St=J(_b,[["render",eS]]),{create:tS,componentName:oS}=Y("swiper-item"),nS=tS({setup(e,{slots:o}){const l=t.inject("parent");l.relation(t.getCurrentInstance());const n=t.reactive({offset:0}),a=t.computed(()=>({[oS]:!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 lS(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 Ct=J(nS,[["render",lS]]),Ds={show:{type:Boolean,default:!1},initNo:{type:Number,default:0},showIndex:{type:Boolean,default:!0},minZoom:{type:Number,default:1/3},maxZoom:{type:Number,default:3}},{create:aS}=Y("image-preview-item"),rS=aS({props:{...Ds,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},contentClose:{type:Boolean,default:!0}},emits:["close","scale"],components:{[bt.name]:bt,[Ct.name]:Ct},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:M,rootHeight:A}=e,w=A/M;return l.imageRatio>w}),r=t.computed(()=>{const M=e.image;if(M&&M.src){const{scale:A,moveX:w,moveY:z,moving:P,zooming:E}=l,x={transitionDuration:E||P?"0s":".3s"};if(A!==1){const U=w/A,D=z/A;x.transform=`scale(${A}, ${A}) translate(${U}px, ${D}px)`}return x}return{}}),s=t.computed(()=>{if(l.imageRatio){const{rootWidth:M,rootHeight:A}=e,w=a.value?A/l.imageRatio:M;return Math.max(0,(l.scale*w-M)/2)}return 0}),i=t.computed(()=>{if(l.imageRatio){const{rootWidth:M,rootHeight:A}=e,w=a.value?A:M*l.imageRatio;return Math.max(0,(l.scale*w-A)/2)}return 0}),c=M=>{const{naturalWidth:A,naturalHeight:w}=M.target;l.imageRatio=w/A},f=()=>{m(1),l.moveX=0,l.moveY=0},m=M=>{M=Fe(M,+e.minZoom,+e.maxZoom+1),M!==l.scale&&(l.scale=M,o("scale",{scale:M,index:e.initNo}))},d=()=>{const M=l.scale>1?1:2;m(M),l.moveX=0,l.moveY=0},h=M=>Math.sqrt((M[0].clientX-M[1].clientX)**2+(M[0].clientY-M[1].clientY)**2);let y,g,k,v,u,p,b;const S=M=>{const{touches:A}=M,{offsetX:w}=n;n.start(M),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(M.touches))},N=M=>{const{touches:A}=M;if(n.move(M),(l.moving||l.zooming)&&fn(M,!0),l.moving){const{deltaX:w,deltaY:z}=n,P=w.value+y,E=z.value+g;l.moveX=Fe(P,-s.value,s.value),l.moveY=Fe(E,-i.value,i.value)}if(l.zooming&&A.length===2){const w=h(A),z=k*w/v;m(z)}},C=()=>{if(b==1&&e.video&&e.video.source||b>1)return;const{offsetX:M,offsetY:A}=n,w=Date.now()-p,z=250,P=5;M.value<P&&A.value<P&&w<z&&(u?(clearTimeout(u),u=null,d()):u=setTimeout(()=>{e.contentClose&&o("close"),u=null},z))},V=M=>{let A=!1;(l.moving||l.zooming)&&(A=!0,l.moving&&y===l.moveX&&g===l.moveY&&(A=!1),M.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&&f(),l.scale>e.maxZoom&&(l.scale=+e.maxZoom))),fn(M,A),C(),n.reset()},B=()=>{o("close")};return t.watch(()=>e.initNo,f),t.watch(()=>e.show,M=>{M||f()}),{...t.toRefs(l),onTouchStart:S,onTouchMove:N,onTouchEnd:V,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:B}}}),sS=["src"];function iS(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,sS)):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 cS=J(rS,[["render",iS]]),{create:uS}=Y("image-preview"),dS=uS({props:{...Ds,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:cS,CircleClose:te.CircleClose,[ce.name]:ce,[St.name]:St},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=()=>{As(e.beforeClose,{args:[n.active],done:()=>c()})},c=()=>{n.showPop=!1,o("close")},f=()=>{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),f())}),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}}}),fS={class:"fox-image-preview",ref:"swipeRef"},mS={key:0,class:"fox-image-preview-index"};function pS(e,o,l,n,a,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{"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",fS,[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,d)=>(t.openBlock(),t.createBlock(s,{key:d,video:d<e.videos.length?m:{},image:d>=e.videos.length?m:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",mS,t.toDisplayString(e.active+1)+" / "+t.toDisplayString(e.mergeImages.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.iconClasses),onClick: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 xs=J(dS,[["render",pS]]);class hS{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 gS{options=new hS;constructor(o){const l=Object.assign(this.options,o),{unmount:n}=fi(l,{name:"image-preview",components:[ce,bt,St,Ct,at],wrapper:()=>({setup(){return()=>(l.onClose=()=>{l.show=!1,t.nextTick(()=>{n()})},t.h(xs,l))}})})}}const Ho=e=>new gS(e);Ho.install=e=>{e.use(xs)};function yS(e){const o=t.getCurrentInstance();if(o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const{componentName:g2,create:vS}=Y("countup"),kS=vS({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:f}=t.reactive(e);t.watch(()=>e.customChangeNum,(B,M)=>{d(),v(0)}),t.watch(()=>e.machinePrizeLevel,(B,M)=>{r.prizeLevelTrun=B}),t.watch(()=>e.initNum,(B,M)=>{r.current=B,r.valFlag=!1,m()}),t.watch(()=>e.endNum,(B,M)=>{r.current=e.initNum,r.valFlag=!1,m()});const m=()=>{if(r.valFlag)return!1;s&&(i||c?f!="machine"&&v():(k(),setTimeout(()=>{r.valFlag=!0},300)))},d=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(B,M,A)=>{const w=(B.toString().split(".")[1]||"").length,z=(M.toString().split(".")[1]||"").length,P=Math.pow(10,Math.max(w,z));return A=="-"?Number((B*P-M*P).toFixed(0))/P:Number((B*P+M*P).toFixed(0))/P},y=B=>{let{num_total_len:M,pointNum:A,initDigit1:w,initDigit2:z,sortFlag:P}=r,E=P=="add"||P=="equal"?String(z)[B-(M-A)]:10-Number(String(z)[B-(M-A)]),x=P=="add"||P=="equal"?String(w)[B]:10-Number(String(w)[B]),U=B>M-A-1?-E*100+"%":B<=String(w).length-1?-x*100+"%":0;return U=="-1000%"&&(U=0),U},g=B=>{let{num_total_len:M,pointNum:A,initDigit1:w,initDigit2:z,sortFlag:P}=r,E=String(z)[B-(M-A)];return B>M-A-1?E||0:B<=String(w).length-1?String(w)[B]:0},k=()=>{let{endNum:B,initNum:M,speed:A,toFixed:w}=e,z=setInterval(()=>{if(M>B)if(r.current<=B||r.current<=A)r.current=B.toFixed(w),clearInterval(z),o("scroll-end"),r.valFlag=!1;else{let P=parseFloat(String(r.current))-parseFloat(String(A));r.current=P.toFixed(w)}else if(r.current>=B)r.current=B.toFixed(w),clearInterval(z),o("scroll-end"),r.valFlag=!1;else{let P=parseFloat(String(r.current))+parseFloat(String(A));r.current=P.toFixed(w)}},e.during)},v=B=>{let{initNum:M,endNum:A,toFixed:w,customBgImg:z}=e;z&&(M=e.customChangeNum);let P,E,x,U;M!=0?(w!=0&&(M=Number(M.toFixed(w))),String(M).indexOf(".")>-1?(P=String(M).split(".")[0].length,E=String(M).split(".")[1].length):(P=String(M).length,E=0)):(P=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=P>=x?P:x,W=E>=U?E:U;r.num_total_len=D+W,r.pointNum=W,M>A?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(M,A,"-"),r.numberVal=Number(String(M))):M<A?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(A,M,"-"),r.numberVal=Number(String(A))):r.sortFlag="equal";var H=1;for(let K=0;K<r.pointNum;K++)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(M).indexOf(".")>-1){let K=String(M).split(".");r.initDigit1=Number(K[0]),r.initDigit2=Number(K[1])}else r.initDigit1=M,r.initDigit2=0;i&&!z?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let K=n.value[r.num_total_len-1];u(K)}):B!==0&&S()},u=B=>{d();var M=1;r.pointNum!=0&&(M=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{p(B),r.totalCount=h(r.totalCount,M,"-"),r.totalCount<=0&&(d(),o("scroll-end"),r.valFlag=!1)},e.during)},p=B=>{let M=B.getAttribute("turn-number"),A;if(r.sortFlag=="add"?A=parseInt(String(M))+1:A=parseInt(String(M))-1>=0?parseInt(String(M))-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,M)=>{setTimeout(()=>{M==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)}};yS({machineLuck:()=>{const B=e.machineTurnMore<0?0:e.machineTurnMore;let M=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&N();for(let A=0;A<e.machineNum;A++)setTimeout(()=>{let w=M*(A+1+parseFloat(String(B)));r.prizeYPrev.length!=0&&(r.prizeY[A]=r.prizeYPrev[A]);let z=r.prizeYPrev[A]?r.prizeYPrev[A]:0,P=w+z+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(M-z);r.prizeLevelTrun<0&&(P+=e.numHeight*r.notPrize[A]),V(A,P,z)},500*A)}});const V=(B,M,A)=>{let w=setInterval(()=>{if(A<=M)A+=10,r.prizeY[B]=parseFloat(String(A));else if(clearInterval(w),w=null,r.finshMachine+=1,r.prizeY[B]=M,r.finshMachine==e.machineNum){let z=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(E=>{let x=E;for(;x>z;)x-=z;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(()=>{d(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:l,setRef:a,topNumber:y,turnNumber:g}}}),bS={class:"fox-countup"},SS=["turn-number"];function CS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",bS,[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,f)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+f,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,SS))),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 na=J(kS,[["render",CS]]),wS=e=>{if(!e)return Date.now();let o=Number(e),l=o>0?+o:o.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:NS,create:BS}=Y("countdown"),VS=BS({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(()=>({[NS]:!0})),r=t.computed(()=>c(n.restTime)),s=()=>{n.handleEndTime=e.endTime,n.diffTime=Date.now()-wS(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,d(),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:f({...v})},f=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))},d=()=>{cancelAnimationFrame(n.timer),n.counting=!1,o("on-paused",n.restTime)},h=()=>{e.autoStart||(d(),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&&d()}),t.watch(()=>e.endTime,y=>{s()}),t.watch(()=>e.startTime,y=>{s()}),{...t.toRefs(e),slots:l,classes:a,start:m,pause:d,renderTime:r,reset:h}}}),AS=["innerHTML"];function $S(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,AS))],2)}const la=J(VS,[["render",$S]]),{create:TS}=Y("badge"),ES=TS({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}}}),DS={class:"fox-badge"},xS=["textContent"];function IS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",DS,[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,xS),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const aa=J(ES,[["render",IS]]),{componentName:qS,create:MS}=Y("tag"),zS=MS({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=qS;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 PS(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(zS,[["render",PS]]),{create:LS}=Y("popover"),FS=LS({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",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${f(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}),f=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:M,offset:A}=e,w=M.split("-")[0],z=M.split("-")[1];let P=0,E=0;if(ho(A)&&A.length==2&&(P+=Number(A[1]),E+=Number(A[0])),N){if(["bottom","top"].includes(w)){const x=w=="bottom"?C+P:-(S+P);p.top=`${B+x}px`,z||(p.left=`${-(b-N)/2+V+E}px`),z=="start"&&(p.left=`${V+E}px`),z=="end"&&(p.left=`${r.value.right+E}px`)}if(["left","right"].includes(w)){const x=w=="left"?-(b+P):N+P;p.left=`${V+x}px`,z||(p.top=`${B-S/2+C/2-4+E}px`),z=="start"&&(p.top=`${B+E}px`),z=="end"&&(p.top=`${B+C+E}px`)}}return p}),d=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:d,popoverArrowStyle:c,renderIcon:Zr}}}),RS={ref:"popoverContentRef",class:"fox-popover-content-group"},OS=["onClick"],KS={class:"fox-popover-menu-item-name"};function US(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",RS,[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(f=>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",KS,t.toDisplayString(i.name),1)],10,OS))),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(FS,[["render",US]]),HS=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:jS}=Y("skeleton"),WS=jS(HS({[Wt.name]:Wt})),YS={key:0},XS={key:1,class:"fox-skeleton"},QS={key:0,class:"fox-skeleton-animation"},GS={class:"fox-skeleton-content"};function ZS(e,o,l,n,a,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",XS,[e.animated?(t.openBlock(),t.createElementBlock("view",QS)):t.createCommentVNode("",!0),t.createElementVNode("view",GS,[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",YS,[t.renderSlot(e.$slots,"default")]))}const ra=J(WS,[["render",ZS]]),{create:JS,componentName:_S}=Y("collapse"),e1=JS({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(()=>({[_S]:!0}));t.watch(()=>e.modelValue,c=>{n.value=c});const r=(c,f,m=!0)=>{n.value=c,o("update:modelValue",c),o("change",c,f,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 f=n.value.filter(m=>m!==c);r(f,c,!1)}else{const f=n.value.concat([c]);r(f,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 t1(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 sa=J(e1,[["render",t1]]),{create:o1,componentName:n1}=Y("collapse-item"),l1=o1({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=n1;return{[h]:!0,[h+"__border"]:e.border}}),s=t.computed(()=>a?a.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{a.updateVal(e.name)},f=()=>{s.value&&(i.value="auto")},m=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},d=()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?m():d()}),{classes:r,renderIcon:Zr,wrapperRef:o,contentRef:l,open:m,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:f}}}),a1={class:"fox-collapse-item__title-main"},r1={class:"fox-collapse-item__title-main-value"},s1=["innerHTML"],i1={key:2,class:"fox-collapse-item__title-label"},c1={key:0,class:"fox-collapse-item__title-sub"},u1=["innerHTML"],d1={key:0,class:"fox-collapse__item-extraWrapper"},f1={class:"fox-collapse__item-extraWrapper__extraRender"},m1={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function p1(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",a1,[t.createElementVNode("view",r1,[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,s1)),e.label?(t.openBlock(),t.createElementBlock("view",i1,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",c1,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,u1)),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",d1,[t.createElementVNode("div",f1,[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",m1,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const ia=J(l1,[["render",p1]]),h1=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:g1,create:y1,scope:v1}=Y("table"),k1=y1({components:{RenderColumn:h1,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(v1),a=t.reactive({curData:e.data}),r=t.computed(()=>({[g1]:!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:"",f=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:""},d=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:f,getColumnItemStyle:m,handleSorterClick:d,sortDataItem:h,t:n,stylehead:i,stylecolumn:c}}}),b1={class:"fox-table__main__head"},S1={class:"fox-table__main__head__tr"},C1=["onClick"],w1={class:"fox-table__main__body"},N1={key:1},B1={key:0,class:"fox-table__nodata"},V1={key:0,class:"fox-table__nodata__text"},A1={key:1,class:"fox-table__summary"},$1=["innerHTML"];function T1(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",b1,[t.createElementVNode("view",S1,[(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:f=>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,C1))),128))])]),t.createElementVNode("view",w1,[(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(),([f,m])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(f))]),key:f,style:t.normalizeStyle(e.getColumnItemStyle(f))},[typeof c[f]=="function"||typeof m=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[m,c[f]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",N1,t.toDisplayString(c[f]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",B1,[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",V1,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",A1,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,$1)])):t.createCommentVNode("",!0)],2)}const ca=J(k1,[["render",T1]]),{componentName:E1,create:D1}=Y("ellipsis"),x1=D1({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(()=>({[E1]:!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),f()},f=()=>{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"?d([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)},d=(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?d([b,k[1]],[v[0],S]):d([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}}}),I1={key:0},q1={key:1},M1={key:2};function z1(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",q1,[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",M1,[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 ua=J(x1,[["render",z1]]),{componentName:P1,create:L1}=Y("animate"),F1=L1({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,[`${P1}-${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}}}),R1={class:"fox-animate"};function O1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",R1,[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 da=J(F1,[["render",O1]]),{componentName:K1,create:U1}=Y("watermark"),H1=U1({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:f,imageWidth:m,imageHeight:d,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`,M=s*N,A=i*N;if(S.setAttribute("width",V),S.setAttribute("height",B),C){if(f){C.translate(M/2,A/2),C.rotate(Math.PI/180*Number(c));const w=new Image;w.crossOrigin="anonymous",w.referrerPolicy="no-referrer",w.src=f,w.onload=()=>{C.drawImage(w,-m*N/2,-d*N/2,m*N,d*N),C.restore(),l.base64Url=S.toDataURL()}}else if(h){C.textBaseline="middle",C.textAlign="center",C.translate(M/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,f,m,d,h,y,g,k,v,u],()=>{p()});const b=t.computed(()=>{const S=K1;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...t.toRefs(l),classes:b}}});function j1(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 fa=J(H1,[["render",j1]]);function W1(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:Y1,create:X1}=Y("trend-arrow"),Q1=X1({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(()=>({[Y1]:!0})),n=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;o.rateTrend=r>0;const f=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?o.rateTrend?"+":"-":""}${W1(Number(f),s)}%`}),a=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:f}=e;return{color:f===0?c:i?o.rateTrend?s:r:c}});return{...t.toRefs(o),classes:l,calcRate:n,calcStyle:a}}});function G1(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 ma=J(Q1,[["render",G1]]),{create:Z1}=Y("tour"),J1=Z1({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:d,maskHeight:h}=e,{width:y,height:g,left:k,top:v}=n.value,u=[k+y/2,v+g/2],p=Number(d||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}`),d=Ve(m);n.value=d},c=()=>{l.showTour=!1,l.showPopup=!1,o("close",l.active),o("update:modelValue",!1)},f=()=>{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:f}}}),_1={key:0,class:"fox-tour-content"},eC={key:0,class:"fox-tour-content-top"},tC={class:"fox-tour-content-inner"},oC={class:"fox-tour-content-bottom"},nC={class:"fox-tour-content-bottom-init"},lC={class:"fox-tour-content-bottom-operate"},aC={key:1,class:"fox-tour-content fox-tour-content-tile"},rC={class:"fox-tour-content-inner"};function sC(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,f)=>(t.openBlock(),t.createElementBlock("div",{key:f,style:{height:"0"}},[f==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",_1,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",eC,[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",tC,t.toDisplayString(c.content),1),t.createElementVNode("div",oC,[t.createElementVNode("div",nC,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",lC,[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",aC,[t.createElementVNode("div",rC,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const pa=J(J1,[["render",sC]]),{componentName:y2,create:iC,scope:cC}=Y("address"),uC=iC({components:{Location:te.Location,Location2:te.Location2,Check:te.Check,Close:te.Close,Left:te.Left,[ce.name]:ce,[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(cC),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),f=t.ref(["province","city","country","town"]),m=t.ref(null),d=t.ref([0,0,0,0]),h=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),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:f.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=f.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=d.value[i.value];x?.scrollTop&&(d.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()},M=()=>{g.value=[],i.value=0,S()},A=(x="self")=>{v.value=x=="cross"?"cross":"self",r.value=!1},w=()=>{v.value="mask"},z=()=>{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,M(),v.value=="self"?o("close",U):o("close-mask",{closeWay:v}),o("update:visible",!1)},P=()=>{const x=s.value;s.value=x=="exist"?"custom":"exist",M(),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:f,selectedRegion:g,switchModule:P,closeWay:v,close:z,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}}}),dC={class:"fox-address"},fC={class:"fox-address__header"},mC={class:"fox-address__header__title"},pC={key:0,class:"fox-address__custom"},hC={class:"fox-address__region",ref:"tabRegion"},gC=["onClick"],yC={key:0,class:"active fox-address__region-item"},vC={key:0,class:"fox-address__detail"},kC={class:"fox-address__detail-list",ref:"scrollDom"},bC=["onClick"],SC={key:1,class:"fox-address__elevator-group"},CC={key:1,class:"fox-address__exist"},wC={class:"fox-address__exist-group"},NC={class:"fox-address__exist-group-list"},BC=["onClick"],VC={class:"fox-address__exist-item-info"},AC={key:0,class:"fox-address__exist-item-info-name"},$C={key:1,class:"fox-address__exist-item-info-phone"},TC={class:"fox-address__exist-item-info-bottom"},EC={class:"fox-address__exist-choose-btn"};function DC(e,o,l,n,a,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),f=t.resolveComponent("fox-elevator"),m=t.resolveComponent("Location2"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen: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",dC,[t.createElementVNode("view",fC,[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",mC,t.toDisplayString(e.privateType=="custom"?e.customAddressTitle||e.t("selectRegion"):e.existAddressTitle||e.t("deliveryTo")),1),t.createElementVNode("view",{class:"fox-address__header-close",onClick: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",pC,[t.createElementVNode("view",hC,[(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,gC))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",yC,[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",vC,[t.createElementVNode("ul",kC,[(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,bC))),128))],512)])):(t.openBlock(),t.createElementBlock("view",SC,[t.createVNode(f,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",CC,[t.createElementVNode("div",wC,[t.createElementVNode("ul",NC,[(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",VC,[h.name?(t.openBlock(),t.createElementBlock("div",AC,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",$C,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",TC,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,BC))),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",EC,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 ha=J(uC,[["render",DC]]),{componentName:xC,create:IC}=Y("barrage"),qC=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(()=>({[xC]:!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),f=t.ref(e.top),m=t.ref(0),d=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=`${d}ms`,S.style.top=b%c.value*(N+f.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 MC(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 ga=J(qC,[["render",MC]]),{componentName:zC,create:PC,scope:LC}=Y("signature"),FC=PC({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(LC),n=l(e,["unSupportTpl","reSign","confirmText"]),a=t.ref(null),r=t.ref(null),s=t.computed(()=>({[zC]:!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"))},f=()=>{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],d,!1),a.value.addEventListener(i.events[2],h,!1),a.value.addEventListener(i.events[3],y,!1)},d=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],d,!1),a.value.removeEventListener(i.events[2],h,!1)},y=p=>{p.preventDefault(),a.value.removeEventListener(i.events[1],d,!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,f())}),{...n,...t.toRefs(i),canvas:a,wrap:r,isCanvasSupported:c,confirm:k,clear:g,classes:s}}}),RC={class:"fox-signature-inner",ref:"wrap"},OC=["height","width"],KC={key:0,class:"fox-signature-unsopport"};function UC(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",RC,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,OC),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",KC,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 ya=J(FC,[["render",UC]]),{componentName:HC,create:jC,scope:WC}=Y("time-select"),YC=jC({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(WC),n=t.computed(()=>({[HC]:!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}}}),XC={class:"fox-time-select__title"},QC={class:"fox-time-select__title__fixed"},GC={key:0},ZC={class:"fox-time-select__content"},JC={class:"fox-time-select__content__pannel"},_C={class:"fox-time-select__content__detail"};function ew(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",XC,[t.createElementVNode("view",QC,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",GC,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",ZC,[t.createElementVNode("view",JC,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",_C,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const va=J(YC,[["render",ew]]),{componentName:tw,create:ow}=Y("time-pannel"),nw=ow({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(()=>({[tw]:!0,"fox-time-pannel--curr":n.currentKey==e.pannelKey})),r=s=>{o.emit("change",s)};return{...t.toRefs(n),classes:a,handlePannel:r}}});function lw(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 ka=J(nw,[["render",lw]]),{componentName:aw,create:rw}=Y("time-detail"),sw=rw({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(()=>({[aw]:!0})),s=f=>{let m=a.currentTime.find(d=>d.key==a.currentKey);if(m)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":m.list.filter(d=>d===f).length>0}},i=t.computed(()=>e.times.find(f=>f.key==a.currentKey).list),c=f=>{o.emit("select",f)};return{classes:r,...t.toRefs(a),getClass:s,renderData:i,handleTime:c}}}),iw={class:"fox-time-detail__detail fox-time-detail__detail--moring"},cw={class:"fox-time-detail__detail__list"},uw=["onClick"];function dw(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",iw,[t.createElementVNode("view",cw,[(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,uw))),128))])])],2)}const ba=J(sw,[["render",dw]]),{componentName:v2,create:fw,scope:mw}=Y("sku-header"),pw=fw({props:{goods:{type:Object,default:{}}},emits:[],components:{[Xe.name]:Xe},setup(e,{emit:o,slots:l}){const{t:n}=ae.useFoxI18n(mw);return{getSlots:r=>l[r],t:n}}}),hw={class:"fox-sku-header"},gw=["src"],yw={class:"fox-sku-header-right"},vw={key:3,class:"fox-sku-header-right-extra"};function kw(e,o,l,n,a,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",hw,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,gw),t.createElementVNode("view",yw,[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",vw,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const bw=J(pw,[["render",kw]]),{componentName:k2,create:Sw}=Y("sku-select"),Cw=Sw({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})}}}}),ww={class:"fox-sku-select"},Nw={class:"fox-sku-select-item-title"},Bw={class:"fox-sku-select-item-skus"},Vw=["onClick"];function Aw(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",ww,[(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",Nw,t.toDisplayString(s.name),1),t.createElementVNode("view",Bw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,f)=>(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,f,s,i),key:c.name},t.toDisplayString(c.name),11,Vw))),128))])]))),128))])}const $w=J(Cw,[["render",Aw]]),{componentName:b2,create:Tw}=Y("sku-stepper"),Ew=Tw({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,f)=>{o("overLimit",{action:f,value:parseInt(l.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&<(c)=="function"?c():""},changeStepper:c=>{l.value=c,o("changeStepper",c)}}}}),Dw={class:"fox-sku-stepper"},xw={class:"fox-sku-stepper-title"},Iw=["innerHTML"],qw={class:"fox-sku-stepper-count"};function Mw(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",Dw,[t.createElementVNode("view",xw,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,Iw),t.createElementVNode("view",qw,[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 zw=J(Ew,[["render",Mw]]),{componentName:S2,create:Pw}=Y("sku-operate"),Lw=Pw({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]}}}),Fw={key:0,class:"fox-sku-operate"},Rw={key:0,class:"fox-sku-operate-desc"},Ow={key:1,class:"fox-sku-operate-btn"},Kw=["onClick"];function Uw(e,o,l,n,a,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",Fw,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",Rw,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",Ow,[(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,Kw))),128))]))])):t.createCommentVNode("",!0)}const Hw=J(Lw,[["render",Uw]]),{componentName:C2,create:jw,scope:Ww}=Y("sku"),Yw=jw({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:bw,SkuSelect:$w,SkuStepper:zw,SkuOperate:Hw,[ce.name]:ce},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(Ww),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)},f=v=>{s.value=v,o("change-stepper",v)},m=v=>{o("add",v)},d=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:f,stepperOverLimit:h,clickBtnOperate:y,add:m,reduce:d,getSlots:i,...a}}}),Xw={class:"fox-sku"},Qw={class:"fox-sku-content"};function Gw(e,o,l,n,a,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),f=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]=d=>e.showPopup=d),onClickCloseIcon:o[1]||(o[1]=d=>e.closePopup("icon")),onClickOverlay:o[2]||(o[2]=d=>e.closePopup("overlay")),onClose:o[3]||(o[3]=d=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",Xw,[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",Qw,[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(f,{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 Sa=J(Yw,[["render",Gw]]),{create:Zw}=Y("card"),Jw=Zw({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]}}}),_w={class:"fox-card"},eN={class:"fox-card__left"},tN=["src"],oN={class:"fox-card__right"},nN={class:"fox-card__right__title"},lN={key:0,class:"fox-card__right__price"},aN={class:"fox-card__right__other"},rN={class:"fox-card__right__shop"},sN={class:"fox-card__right__shop__name"};function iN(e,o,l,n,a,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",_w,[t.createElementVNode("div",eN,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,tN)]),t.createElementVNode("div",oN,[t.createElementVNode("div",nN,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",lN,[e.isHaveSlot("price")?t.renderSlot(e.$slots,"price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.price},null,8,["price"])),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:2}):(t.openBlock(),t.createBlock(s,{key:3,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",aN,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(i,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(i,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",rN,[t.createElementVNode("div",sN,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Ca=J(Jw,[["render",iN]]),{create:cN,scope:uN}=Y("ecard"),dN=cN({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(uN),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)},f=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")},d=h=>{s.value=h,o("changeStep",s.value,a.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:d,change:f,inputClick:m,stepValue:s,currentIndex:n,inputValue:r,money:i,t:l}}}),fN={class:"fox-ecard"},mN={class:"fox-ecard__title"},pN={class:"fox-ecard__list"},hN=["onClick"],gN={class:"fox-ecard__list__input--con"},yN=["placeholder"],vN={class:"fox-ecard__list__step"};function kN(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",fN,[t.createElementVNode("view",mN,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",pN,[(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:f=>e.handleClick(i,c)},t.toDisplayString(i.price),11,hN))),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",gN,[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,yN),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",vN,[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 wa=J(dN,[["render",kN]]),{create:bN,scope:SN}=Y("address-list-item"),CN=bN({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(SN);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}}}),wN={class:"fox-address-list-item__info"},NN={class:"fox-address-list-item__info-contact"},BN={class:"fox-address-list-item__info-contact-name"},VN={class:"fox-address-list-item__info-contact-tel"},AN={key:0,class:"fox-address-list-item__info-contact-default"},$N={class:"fox-address-list-item__info-handle"},TN={class:"fox-address-list-item__addr"};function EN(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",wN,[t.createElementVNode("div",NN,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",BN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",VN,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",AN,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",$N,[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",TN,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const Sr=J(CN,[["render",EN]]),{create:DN}=Y("address-list-general"),xN=DN({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:Sr,[Ie.name]:Ie,[Ht.name]:Ht},setup(e,{emit:o}){const l=()=>t.h(Sr,{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())},f=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:f,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}}}}),IN={key:0,class:"fox-address-list-general"},qN={class:"fox-address-list-swipe"};function MN(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",qN,[(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 zN=J(xN,[["render",MN]]),{componentName:PN,create:LN,scope:FN}=Y("address-list"),RN=LN({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:zN,[Ie.name]:Ie},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(FN),n=t.ref([]),a=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[PN]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(n.value=e.data.map(k=>Lr(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()},f=(k,v)=>{o("clickItem",k,v),k.stopPropagation()},m=(k,v)=>{o("longCopy",k,v),k.stopPropagation()},d=(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:f,clickLongCopy:m,clickLongSet:d,clickLongDel:h,clickSwipeDel:y,addAddress:g,dataArray:n,t:l}}});function ON(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,f)=>(t.openBlock(),t.createBlock(s,{key:f,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 Na=J(RN,[["render",ON]]),{componentName:w2,create:KN}=Y("category"),UN=KN({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}}}),HN={class:"fox-category"},jN={class:"fox-category__cateList"},WN={key:0},YN=["onClick"];function XN(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",HN,[t.createElementVNode("div",jN,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",WN,[(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,YN)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Ba=J(UN,[["render",XN]]),{componentName:N2,create:QN}=Y("category-pane"),GN=QN({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:o}){return{onChange:n=>{o("onChange",n)}}}}),ZN={class:"fox-category-pane"},JN={key:0,class:"fox-category-pane__cateListRight"},_N={class:"fox-category-pane__childTitle"},eB={key:0,class:"fox-category-pane__childItemList"},tB=["onClick"],oB=["src"],nB={class:"fox-category-pane__skuImg"},lB={key:1,class:"fox-category-pane__cateListRight"},aB={class:"fox-category-pane__childTitle"},rB={key:0,class:"fox-category-pane__childItemList"},sB=["onClick"],iB={class:"fox-category-pane__skuName"},cB={key:2,class:"fox-category-pane__selfItemList"},uB=["onClick"];function dB(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",ZN,[e.type=="classify"?(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,f)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:f,onClick:m=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,oB),t.createElementVNode("div",nB,t.toDisplayString(c?.catName),1)],8,tB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",lB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",aB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",rB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,f)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:f,onClick:m=>e.onChange(c)},[t.createElementVNode("div",iB,t.toDisplayString(c?.catName),1)],8,sB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",cB,[(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,uB))),128))])):t.createCommentVNode("",!0)])}const Va=J(GN,[["render",dB]]),{componentName:B2,create:fB}=Y("comment-header"),mB=fB({components:{[kt.name]:kt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:o}){return{handleClick:()=>{o("handleClick")}}}}),pB={class:"fox-comment-header__user"},hB={class:"fox-comment-header__user-avter"},gB=["src"],yB={class:"fox-comment-header__user-score"},vB={key:0,class:"fox-comment-header__time"};function kB(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",pB,[t.createElementVNode("view",hB,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,gB)):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",yB,[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",vB,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 bB=J(mB,[["render",kB]]),{componentName:V2,create:SB}=Y("comment-images"),CB=SB({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:f}=e,m=s=="img"?i-c.length:i;o("clickImages",{type:s,index:m,value:s=="img"?f[m]:c[m]})},totalImages:a}}}),wB=["onClick"],NB=["src"],BB=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),VB=["onClick"],AB=["src"],$B={key:0,class:"fox-comment-images__mask"};function TB(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:f=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,NB),BB],8,wB))),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:f=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,AB),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",$B,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,VB)):t.createCommentVNode("",!0)],64))),128))],2)}const EB=J(CB,[["render",TB]]),{componentName:A2,create:DB,scope:xB}=Y("comment-bottom"),IB=DB({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(xB),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}}}),qB={class:"fox-comment-bottom"},MB={key:0},zB={class:"fox-comment-bottom__cpx"},PB=["onClick"];function LB(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",qB,[t.createElementVNode("view",{onClick:o[0]||(o[0]=(...f)=>e.handleClick&&e.handleClick(...f)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",MB,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",zB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(f,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${f}`]),onClick:d=>e.operate(f)},[f!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[f]),1),f=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),f=="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]=d=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,PB))),128))])])}const FB=J(IB,[["render",LB]]),{componentName:RB,create:OB,scope:KB}=Y("comment"),UB=OB({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:bB,CommentImages:EB,CommentBottom:FB,Right:te.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(KB),n=t.computed(()=>({[RB]:!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}}}),HB=["innerHTML"],jB={class:"fox-comment__follow-title"},WB={class:"fox-comment__follow-com"},YB={key:0,class:"fox-comment__follow-img"};function XB(e,o,l,n,a,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),f=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,HB),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",jB,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",WB,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",YB,[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(f,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const Aa=J(UB,[["render",XB]]),QB=[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,fl,tt,ml,pl,hl,gl,yl,Ie,vl,kl,at,ce,bl,Sl,Cl,wl,zt,Nl,Bl,Vl,Al,$l,Tl,El,Dl,xl,Ot,Il,Pt,Lt,ql,Ml,zl,Pl,Kt,Ko,Io,Mo,qo,Qe,kt,vt,Ll,Fl,Rl,Ht,Ol,Kl,Ul,jt,Oo,Hl,Wl,Ro,wt,Xl,Ql,Wt,Gl,Zl,Ut,Jl,_l,ea,bt,ta,oa,St,Ct,Xe,Ho,na,la,aa,Yt,Xt,ra,sa,ia,ca,ua,da,fa,ma,pa,ha,ga,ya,va,ka,ba,Sa,Ca,wa,Na,Ba,Va,Aa],GB=new di(QB,"4.0.0");exports.ActionSheet=Ol;exports.ActionsheetItem=al;exports.ActionsheetPane=Uo;exports.Address=ha;exports.AddressList=Na;exports.Animate=da;exports.Audio=Xl;exports.AudioOperate=Ql;exports.Avatar=Wt;exports.AvatarGroup=Gl;exports.BackTop=Kl;exports.Badge=aa;exports.Barrage=ga;exports.Broadcast=Mn;exports.BroadcastKey=ke;exports.Button=Ie;exports.Calendar=Mo;exports.CalendarItem=_n;exports.Card=Ca;exports.Cascader=Io;exports.CascaderItem=Gn;exports.Category=Ba;exports.CategoryPane=Va;exports.Cell=vl;exports.CellGroup=kl;exports.Checkbox=Lo;exports.CheckboxGroup=Fo;exports.CheckboxItem=tl;exports.CircleProgress=Jl;exports.Col=Cl;exports.Collapse=sa;exports.CollapseItem=ia;exports.Comment=Aa;exports.Content=Kn;exports.CountDown=la;exports.CountUp=na;exports.DataItemsKey=ut;exports.DateItem=Jn;exports.DatePicker=qo;exports.DateUtils=ne;exports.Dialog=jt;exports.Divider=Nl;exports.Domain=bo;exports.DomainKey=De;exports.DomainProvider=gl;exports.Drag=Ul;exports.Ecard=wa;exports.Elevator=Ot;exports.Ellipsis=ua;exports.Empty=ea;exports.FixedNav=$l;exports.FloatingButton=dl;exports.FooterBar=On;exports.FoxActionSheet=Ol;exports.FoxActionsheetItem=al;exports.FoxActionsheetPane=Uo;exports.FoxAddress=ha;exports.FoxAddressList=Na;exports.FoxAnimate=da;exports.FoxAudio=Xl;exports.FoxAudioOperate=Ql;exports.FoxAvatar=Wt;exports.FoxAvatarGroup=Gl;exports.FoxBackTop=Kl;exports.FoxBadge=aa;exports.FoxBarrage=ga;exports.FoxButton=Ie;exports.FoxCalendar=Mo;exports.FoxCalendarItem=_n;exports.FoxCard=Ca;exports.FoxCascader=Io;exports.FoxCascaderItem=Gn;exports.FoxCategory=Ba;exports.FoxCategoryPane=Va;exports.FoxCell=vl;exports.FoxCellGroup=kl;exports.FoxCheckbox=Lo;exports.FoxCheckboxGroup=Fo;exports.FoxCheckboxItem=tl;exports.FoxCircleProgress=Jl;exports.FoxCol=Cl;exports.FoxCollapse=sa;exports.FoxCollapseItem=ia;exports.FoxComment=Aa;exports.FoxContent=Kn;exports.FoxCountDown=la;exports.FoxCountUp=na;exports.FoxDateItem=Jn;exports.FoxDatePicker=qo;exports.FoxDialog=jt;exports.FoxDivider=Nl;exports.FoxDomainProvider=gl;exports.FoxDrag=Ul;exports.FoxEcard=wa;exports.FoxElevator=Ot;exports.FoxEllipsis=ua;exports.FoxEmpty=ea;exports.FoxFixedNav=$l;exports.FoxFloatingButton=dl;exports.FoxFooterBar=On;exports.FoxGrid=Bl;exports.FoxGridItem=Vl;exports.FoxGroup=Un;exports.FoxHeaderBar=Rn;exports.FoxHintText=ot;exports.FoxImage=bl;exports.FoxImagePreview=Ho;exports.FoxIndicator=ql;exports.FoxInfiniteLoading=Oo;exports.FoxInputItem=Wn;exports.FoxInputNumber=Qe;exports.FoxInputnumberItem=rl;exports.FoxItem=be;exports.FoxLayout=Sl;exports.FoxLinkItem=nl;exports.FoxList=Zl;exports.FoxMapping=hl;exports.FoxMenu=Tl;exports.FoxMenuItem=El;exports.FoxMessageBox=tt;exports.FoxMoneyItem=Yn;exports.FoxMoreButton=fl;exports.FoxNavbar=Al;exports.FoxNoticeBar=_l;exports.FoxNotify=Wl;exports.FoxNumberKeyboard=Rl;exports.FoxOverLay=at;exports.FoxPage=Ln;exports.FoxPagination=Il;exports.FoxPicker=vt;exports.FoxPickerItem=Qn;exports.FoxPopover=Xt;exports.FoxPopup=ce;exports.FoxPopupWrapper=ml;exports.FoxPrice=Xe;exports.FoxProgress=Ut;exports.FoxPullRefresh=Hl;exports.FoxRadio=zo;exports.FoxRadioGroup=Po;exports.FoxRadioItem=el;exports.FoxRange=Kt;exports.FoxRate=kt;exports.FoxRateItem=ll;exports.FoxRollingProvider=yl;exports.FoxRow=wl;exports.FoxRowItem=Hn;exports.FoxSearchBar=Ko;exports.FoxShortPassword=Ll;exports.FoxSideNavBar=Ml;exports.FoxSideNavBarItem=zl;exports.FoxSignature=ya;exports.FoxSkeleton=ra;exports.FoxSku=Sa;exports.FoxSlotItem=jn;exports.FoxStep=oa;exports.FoxSteps=ta;exports.FoxStepsBar=ul;exports.FoxSticky=zt;exports.FoxSubSideNavBar=Pl;exports.FoxSwipe=Ht;exports.FoxSwiper=St;exports.FoxSwiperItem=Ct;exports.FoxSwitch=Ro;exports.FoxSwitchItem=ol;exports.FoxTabPane=Lt;exports.FoxTabbar=Dl;exports.FoxTabbarItem=xl;exports.FoxTable=ca;exports.FoxTabs=Pt;exports.FoxTabsBar=sl;exports.FoxTabsContainer=il;exports.FoxTabsPane=cl;exports.FoxTag=Yt;exports.FoxText=pl;exports.FoxTextarea=xo;exports.FoxTextareaItem=Xn;exports.FoxTimeDetail=ba;exports.FoxTimePannel=ka;exports.FoxTimeSelect=va;exports.FoxToast=wt;exports.FoxTour=pa;exports.FoxTrendArrow=ma;exports.FoxUploader=Fl;exports.FoxVideo=bt;exports.FoxWaterMark=fa;exports.Grid=Bl;exports.GridItem=Vl;exports.Group=Un;exports.HeaderBar=Rn;exports.HintText=ot;exports.Image=bl;exports.ImagePreview=Ho;exports.Indicator=ql;exports.InfiniteLoading=Oo;exports.InputItem=Wn;exports.InputNumber=Qe;exports.InputnumberItem=rl;exports.Item=be;exports.Layout=Sl;exports.LinkItem=nl;exports.List=Zl;exports.Mapping=hl;exports.Menu=Tl;exports.MenuItem=El;exports.MessageBox=tt;exports.MoneyItem=Yn;exports.MoreButton=fl;exports.Navbar=Al;exports.NoticeBar=_l;exports.Notify=Wl;exports.NumberKeyboard=Rl;exports.OverLay=at;exports.Page=Ln;exports.Pagination=Il;exports.Picker=vt;exports.PickerItem=Qn;exports.Popover=Xt;exports.Popup=ce;exports.PopupWrapper=ml;exports.Price=Xe;exports.PriorityPolicy=co;exports.Progress=Ut;exports.PullRefresh=Hl;exports.Radio=zo;exports.RadioGroup=Po;exports.RadioItem=el;exports.Range=Kt;exports.Rate=kt;exports.RateItem=ll;exports.RollingProvider=yl;exports.Row=wl;exports.RowItem=Hn;exports.SearchBar=Ko;exports.ShortPassword=Ll;exports.SideNavBar=Ml;exports.SideNavBarItem=zl;exports.Signature=ya;exports.Skeleton=ra;exports.Sku=Sa;exports.SlotItem=jn;exports.Step=oa;exports.Steps=ta;exports.StepsBar=ul;exports.Sticky=zt;exports.SubSideNavBar=Pl;exports.Swipe=Ht;exports.Swiper=St;exports.SwiperItem=Ct;exports.Switch=Ro;exports.SwitchItem=ol;exports.TabPane=Lt;exports.Tabbar=Dl;exports.TabbarItem=xl;exports.Table=ca;exports.Tabs=Pt;exports.TabsBar=sl;exports.TabsContainer=il;exports.TabsPane=cl;exports.Tag=Yt;exports.Text=pl;exports.Textarea=xo;exports.TextareaItem=Xn;exports.TimeDetail=ba;exports.TimePannel=ka;exports.TimeSelect=va;exports.Toast=wt;exports.Tour=pa;exports.TrendArrow=ma;exports.UniqueID=Do;exports.Uploader=Fl;exports.ValidateSchema=Hr;exports.ValidateSchemaKey=Re;exports.Video=bt;exports.WaterMark=fa;exports.cancelRaf=Cr;exports.clamp=Fe;exports.clearNonNumber=dn;exports.clone=un;exports.compareTo=sn;exports.createBroadcast=vo;exports.createValidateSchema=ko;exports.debounce=gt;exports.debounceRef=ti;exports.decimalLength=Pr;exports.default=GB;exports.defineBroadcast=Ws;exports.defineConfigDomain=jr;exports.defineDataItem=Yr;exports.defineDomain=Pn;exports.defineItem=we;exports.definePageState=Xr;exports.deleteGlobalValidator=Gs;exports.disabledProperty=Ce;exports.divide=xn;exports.excludeProps=In;exports.extend=nt;exports.floatData=Lr;exports.getGlobalValidateCheckEvents=Or;exports.getGlobalValidateResetEvents=Ur;exports.getPageContentAreaHeight=so;exports.getPageContentAreaWidth=io;exports.getPageFooterAreaHeight=wo;exports.getPageHeaderAreaHeight=Co;exports.getRootDomain=mt;exports.getScrollTopRoot=qn;exports.hasSymbol=Er;exports.includeProps=he;exports.indexOf=Hs;exports.installRules=Wr;exports.integerLength=zr;exports.isArray=ho;exports.isArrayLike=xr;exports.isBrowser=st;exports.isDate=Oe;exports.isESModule=Fs;exports.isEmptyString=ie;exports.isEqual=xe;exports.isFunction=ao;exports.isHidden=yo;exports.isInnerPage=li;exports.isMap=zs;exports.isNil=Ar;exports.isNumberString=Mr;exports.isObject=Be;exports.isPlainObject=cn;exports.isPromise=ht;exports.isRegExp=qr;exports.isSet=Ps;exports.isString=$r;exports.isSubPage=ai;exports.isSymbol=Ls;exports.isWindow=Dr;exports.lastIndexOf=js;exports.makeArray=Us;exports.merge=Ir;exports.multiply=Nr;exports.negate=Br;exports.nextTick=Os;exports.numberFormat=po;exports.objectToString=Tr;exports.once=oi;exports.padZero=Je;exports.preventDefault=fn;exports.property=Ne;exports.raf=Le;exports.readonlyProperty=$e;exports.setGlobalValidateCheckEvents=Zs;exports.setGlobalValidateHandler=Xs;exports.setGlobalValidateMessages=_s;exports.setGlobalValidateResetEvents=Js;exports.setGlobalValidator=Qs;exports.throttle=ro;exports.toBoolean=me;exports.toNumber=fe;exports.toPadding=Me;exports.toPx=se;exports.toPxDesc=pe;exports.toTypeString=go;exports.toValue=Ae;exports.tryTimes=zn;exports.typeOf=lt;exports.unNumberFormat=Vr;exports.updatePageState=mn;exports.useBroadcast=Dt;exports.useDomain=Ke;exports.useExpose=Te;exports.useInnerSize=Fn;exports.usePageState=So;exports.usePosition=ns;exports.useRect=Ve;exports.useSize=No;exports.useTouch=Ue;exports.valueLength=ge;
|