@fox-js/foxui 4.0.1-32 → 4.0.1-33
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +4 -4
- package/dist/index.esm.js +6680 -6635
- 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/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"),
|
|
2
|
+
* @fox-js/foxui-base v4.0.0 Mon Mar 18 2024 09:01:27 GMT+0800 (中国标准时间)
|
|
3
|
+
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),_e=require("@fox-js/validator"),te=require("@fox-js/icons-vue"),ae=require("@fox-js/i18n"),Qt=window,Es=typeof window<"u";function Ds(){return typeof Qt<"u"?Qt.requestAnimationFrame||Qt.webkitRequestAnimationFrame||function(e){Qt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function kr(e){Es?cancelAnimationFrame(e):clearTimeout(e)}const We=Ds();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function 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=yr(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 yr(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 yr(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 It(e,o=0,l=ye.HALF_EVEN){if(l===ye.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),r=a[0],s=a[1];if(o<0){if(o=-o,r.length<=o)return"0";{let c=r.substr(0,r.length-o);return e=c+"."+r.substr(r.length-o)+s,c=It(e,0,l),(n?"-":"")+c+new Array(o+1).join("0")}}if(o==0)return r.length,$a(a[1],r,n,l)?(n?"-":"")+Wo(r):(n?"-":"")+r;if(a[1]){if(a[1].length<o)return(n?"-":"")+r+"."+a[1]+new Array(o-a[1].length+1).join("0")}else return(n?"-":"")+r+"."+new Array(o+1).join("0");s=a[1].substring(0,o);let i=a[1].substring(o);return i&&$a(i,s,n,l)&&(s=Wo(s),s.length>o)?(n?"-":"")+Wo(r,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+r+"."+s}function $a(e,o,l,n){if(!e||e===new Array(e.length+1).join("0")||n===ye.DOWN||!l&&n===ye.FLOOR||l&&n===ye.CEILING)return!1;if(n===ye.UP||l&&n===ye.FLOOR||!l&&n===ye.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case ye.HALF_DOWN:return!1;case ye.HALF_UP:return!0;case ye.HALF_EVEN:default:return parseInt(o[o.length-1])%2==1}}function Wo(e,o=0){o||(o=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let a=l;a>=0;a--){let r=parseInt(e[a])+o;r==10?(o=1,r=0):o=0,n+=r}return o&&(n+=o),n.split("").reverse().join("")}function nn(e,o){e=e.toString(),o=o.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),o[0]=="-"&&(l++,o=o.substr(1)),e=wt(e),o=wt(o);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),o.indexOf(".")!=-1&&(a=o.length-o.indexOf(".")-1);let r=n+a;if(e=wt(e.replace(".","")),o=wt(o.replace(".","")),e.length<o.length){let f=e;e=o,o=f}if(o=="0")return"0";let s=o.length,i=0,c=[],d=s-1,m="";for(let f=0;f<s;f++)c[f]=e.length-1;for(let f=0;f<2*e.length;f++){let h=0;for(let y=o.length-1;y>=d&&y>=0;y--)c[y]>-1&&c[y]<e.length&&(h+=parseInt(e[c[y]--])*parseInt(o[y]));h+=i,i=Math.floor(h/10),m=h%10+m,d--}return m=wt(Ts(m,r)),l==1&&(m="-"+m),m}function Ts(e,o){return o==0?e:(e=o>=e.length?new Array(o-e.length+1).join("0")+e:e,e.substr(0,e.length-o)+"."+e.substr(e.length-o,o))}function wt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function 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(It(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,It(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 It(o,l,n)}round(o=0,l=ye.HALF_EVEN){if(isNaN(o))throw Error("Precision is not a number: "+o);return new re(It(this.value,o,l))}static floor(o){return o=re.validate(o),o.indexOf(".")===-1?o:re.round(o,0,ye.FLOOR)}floor(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,ye.FLOOR)}static ceil(o){return o=re.validate(o),o.indexOf(".")===-1?o:re.round(o,0,ye.CEILING)}ceil(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,ye.CEILING)}static add(o,l){return o=re.validate(o),l=re.validate(l),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 vr(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 kr(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 Sr(e){return e==null}const ho=Array.isArray,Es=e=>go(e)==="[object Map]",Ds=e=>go(e)==="[object Set]",Oe=e=>e instanceof Date,ao=e=>typeof e=="function",Cr=e=>typeof e=="string",xs=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",qt=e=>Be(e)&&ao(e.then)&&ao(e.catch),wr=Object.prototype.toString,go=e=>wr.call(e),cn=e=>go(e)==="[object Object]",Nr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Is(e){return e.__esModule||Nr&&e[Symbol.toStringTag]==="Module"}const qs=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=qs?Promise.resolve():null;function Ms(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 he(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function pe(e){return typeof e=="number"?e:Number(e)}const zs={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function lt(e){let l=Object.prototype.toString.call(e);return e==null?String(e):zs[l]||"object"}function yo(e){if(!e)return!0;const{display:o}=window.getComputedStyle(e);return o==="none"}function Br(e){return e&&typeof e=="object"&&"setInterval"in e}function Vr(e){let o=!!e&&"length"in e&&e.length,l=lt(e);return l==="function"||Br(e)?!1:l==="array"||o===0||typeof o=="number"&&o>0&&o-1 in e}function Ar(e,o){let l=+o.length,n=0,a=e.length;for(;n<l;n++)e[a++]=o[n];return e.length=a,e}function Ls(e,o=[]){let l=o;return e!=null&&(Vr(Object(e))?Ar(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 $r(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ce=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Tr(e){return ce(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ce(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Er(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 Dr(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 Ps(e,o){return typeof e=="object"||Array.isArray(e)?o.findIndex(l=>{if(xe(e,l))return!0}):o.indexOf(e)}function Fs(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 me(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 xr=(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="*"):$r(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 Rs(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 Tt(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 Os{error(o,l){const n=l,a=Tt(l);a?a.emit({name:"*",maxLevel:1},"setErrorTip",o):typeof n.setErrorTip=="function"&&n.setErrorTip(o)}reset(o){const l=o,n=Tt(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(o){const l=o,n=Tt(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=Tt(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 Ir=new Os;function Ks(e){Ir=e}function Us(e,o){et(_e).setValidator(e,o)}function Hs(e){et(_e).deleteValidator(e)}let qr=["blur","clear"];function js(e){qr=e}function Mr(){return qr}let zr=["focus","change"];function Ws(e){zr=e}function Lr(){return zr}function Ys(e){et(_e).messages(e)}function Nt(...e){const o=[];return e.forEach(l=>{l.forEach(n=>{const a=o.findIndex(r=>r.type===n.type);a!==-1&&o.splice(a,1),o.push(n)})}),o}function Qt(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 Pr{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=Qt(Nt(this.attrRules,this.rules)),n=[];for(let r in o){let s=o[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),n.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};n.push(c)}}this.attrRules=Qt(n);const a=Nt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(o,...l){const n=this.descriptor.validateHandler;if(n&&typeof n[o]=="function")return Reflect.apply(n[o],n,[...l]);const a=Ir;return a&&typeof a[o]=="function"?Reflect.apply(a[o],a,[...l]):null}decorate(o,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",o,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(o){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",o,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(o,l,n=!1){n?et(_e).setValidator(o,l):this.validators[o]=l}getValidator(o){let l=this.validators[o]??null;return l||(l=this.parent?.getValidator(o)??null),l}deleteValidator(o,l=!1){l?et(_e).deleteValidator(o):Reflect.deleteProperty(this.validators,o)}hasValidator(o,l=!1){if(l)return et(_e).hasValidator(o);{let n=Reflect.has(this.validators,o);return!n&&this.parent!==null&&(n=this.parent.hasValidator(o,!1)),n}}setRule(o){const l=Nt(this.attrRules,this.rules);o===null?this.rules=[]:Array.isArray(o)?this.rules=Qt(o):this.rules=Qt([o]);const n=Nt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(n,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=Nt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(l.length>0){const a={[`${n}`]:l},r=this.getValue(),s={[`${n}`]:r},i=et(_e),c=new i(a),d=this.proxy??s;return c.validate(s,{context:d}).then(f=>{if(f.pass)this.success();else{let h="error";Array.isArray(f.errors)&&f.errors.length>0&&(h=f.errors[0].message??h,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(h)}return f}).catch(f=>{const h=f.message??`${f}`;return this.error(h),f})}}return Promise.resolve({pass:!0})}}function ko(e,o,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const a=l.valueName;l.validateHandler={getValue(r){return r[a]}}}return new Pr(o,l,e)}const Ia=Symbol("EventEmitterKey");class Xs{register=new Map;proxy;constructor(o){this.proxy=o}destroy(){this.proxy=null,this.register.clear()}off(o,l){let n=this.register.get(o);if(n&&Array.isArray(n)){let a=n.findIndex(r=>r===l);a!==-1&&n.splice(a,1)}}on(o,l){let n=this.register.get(o);n||(n=new Array,this.register.set(o,n)),n.push(l)}emit(o,...l){const n=this.register.get(o);n&&n.forEach(a=>{try{Reflect.apply(a,null,[o,...l])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[o,...l])}}function ht(e,o){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},o)}}function ro(e,o){let l=0;return function(...n){const a=new Date().getTime();a-l<o||(l=a,Reflect.apply(e,null,[...n]))}}function Qs(e,o){const l=ht((n,a)=>{e=n,a()},o);return t.customRef((n,a)=>({get(){return n(),e},set(r){l(r,a)}}))}function Gs(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 Zs=new bo;function mt(){return Zs}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=v=>{r[Xo]||h(v),c.set("modelValue",v)},m=()=>c.getForSelf("modelValue")??null,f=()=>r[Xo]??null,h=v=>{const b={};nt(!0,b,t.toRaw(v)),r[Xo]=b};t.isReactive(o)||typeof o=="function"?t.watch(o,v=>{c.merge(v,l)},{immediate:!0}):c.merge(o,l),o.modelValue&&h(o.modelValue),r[De]=c,t.provide(De,c);let y=null,g=null;if(a!==null){const v=t.inject(ke,null);y=vo(r,v,i,n),c.broadcast=y,r[ke]=y,t.provide(ke,y),r.broadcast=(u,p,...k)=>Reflect.apply(y.emit,y,[u,p,...k]);const b=t.inject(Re,null);g=ko(r,b,{componentName:""}),c.validateSchema=g,r[Re]=g,t.provide(Re,g),r[ut]=new Map,r.validate=(u=!0)=>{const p=[];let k=null;const S={deep:!1};if(u===!0)k={name:"*"};else if(Array.isArray(u)&&u.length>0){const N=u;k={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;k={name:B=>B?C.indexOf(B)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const C=N.exclude;k={name:B=>B?C.indexOf(B)===-1:!1}}else k={name:"*"}}if(k){const N=y?.emitToChildren(k,"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(B=>{B.pass===!1&&Array.isArray(B.errors)&&(C=[...C,...B.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(u,p=!0,k=!1)=>{if(k===!0){Reflect.ownKeys(u).forEach(N=>{let C=String(N);const V=Or(c,C,{componentName:"",fieldName:C,pureDataValidate:!0},y,g);r[ut].set(C,V);const D=u[C];D&&V.validateSchema.setRule(D)});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 k=u;p={name:S=>S?k.indexOf(S)!==-1:!1}}else if(u!=null&&typeof u=="object"){const k=u;if(Array.isArray(k.include)&&k.include.length>0){const S=k.include;p={name:N=>N?S.indexOf(N)!==-1:!1}}else if(Array.isArray(k.exclude)&&k.exclude.length>0){const S=k.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 k={};if(nt(!0,k,f()??{}),Array.isArray(u))u.forEach(S=>{p[S]=k[S]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(N=>{p[N]=k[N]});else if(u&&Array.isArray(u.exclude)){let S=u.exclude??[];Reflect.ownKeys(k).forEach(N=>{S.includes(N)||(p[N]=k[N])})}else Object.assign(p,k);r.clearValidate(u)},r.setModelValue=(u,p)=>{!p||p===i?d(u):y?.emitToChildren({name:p},"setModelValue",u)},r.getModelValue=()=>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 Fr(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 Rr(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,v,...b)=>Reflect.apply(i.emit,i,[g,v,...b]);const c=t.inject(Re,null);e.fieldName=e.fieldName??r;const d=ko(a,c,e);a[Re]=d,t.provide(Re,d),Rr(a,d,r),a.validate=(g=null)=>{const v=[];let b=!1,u=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)u=!0,b=!0;else if(g&&typeof g=="object"){const p=g;p.ignoreHidden===!0&&yo(a.$el)?u=!1:(Array.isArray(p.include)&&p.include.indexOf(r)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(r),u=!0),b=p.deep??!1}else typeof g=="boolean"&&(b=g),u=!0;if(u){const p=d?.validate();v.push(p)}if(b){let p=null;const k={deep:!1};if(g===!0)p={name:"*"};else if(Array.isArray(g)&&g.length>0){const S=g;p={name:N=>N?S.indexOf(N)!==-1:!1}}else if(g!=null&&typeof g=="object"){const S=g;if(k.ignoreHidden=S.ignoreHidden,Array.isArray(S.include)&&S.include.length>0){const 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",k);Reflect.apply([].push,v,S)}}return v.length==1?v[0]:v.length>1?Promise.all(v).then(p=>{let k=[];return p.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(k=[...k,...S.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=g=>d?.setRule(g),a.setNameValidateRules=(g,v=!1)=>{const b=g[r];if(b&&d?.setRule(b),v){const u={name:p=>Reflect.ownKeys(g).includes(p)};i.emitToChildren(u,"setNameValidateRules",g,!1)}},a.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(o??"")!==-1)&&d?.clear();let v=null;if(g===!0)v={name:"*"};else if(Array.isArray(g)&&g.length>0){const b=g;v={name:u=>u?b.indexOf(u)!==-1:!1}}else if(g!=null&&typeof g=="object"){const b=g;if(Array.isArray(b.include)&&b.include.length>0){const u=b.include;v={name:p=>p?u.indexOf(p)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const u=b.exclude;v={name:p=>p?u.indexOf(p)===-1:!1}}else v={name:"*"}}v&&i.emitToChildren(v,"clearValidate",!1)};const m=new Xs(a);a[Ia]=m;const f=ht((g="validate")=>{g==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Mr()).forEach(g=>{m.on(g,v=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Lr()).forEach(g=>{m.on(g,v=>{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,...v)=>{Reflect.apply(m.emit,m,[g,...v])},onEvent:(g,v)=>{Reflect.apply(m.on,m,[v])},offEvent:(g,v)=>{Reflect.apply(m.off,m,[v])}}}function Or(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 v={deep:!1};if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const b=m;g={name:u=>u?b.indexOf(u)!==-1:!1}}else if(m!=null&&typeof m=="object"){const b=m;if(Array.isArray(b.include)&&b.include.length>0){const u=b.include;g={name:p=>p?u.indexOf(p)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const u=b.exclude;g={name:p=>p?u.indexOf(p)===-1:!1}}else g={name:"*"}}if(g){const b=d.emitToChildren(g,"validate",v);Reflect.apply([].push,f,b)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(g=>{let v=[];return g.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(v=[...v,...b.errors])}),v.length>0?{pass:!1,errors:v}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=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 fe=e=>e?`${se(e)}px`:"";function se(e,o=-1){if(typeof e=="number")return e>0&&e<1&&o>0?e*o:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let a=Number(e.substring(0,l)),r=1;if(st){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return a*=r,a}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))*o;const n=Number(e);return isNaN(n)?0:n}const 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 Kr(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,v=-1,b=-1,u=0,p=0])=>{mn(m,g,o,h,v,b,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 Js(e,o){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[o,e]):!1}function _s(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 he(l)})}function Ce(e){return Ne(e,"disabled",0,function(l){return he(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 Ur=new Map,uo=new Map;let pn=null;function ei(e){pn=e}function Hr(e,o,l){if(l){let n=uo.get(l);n||(n=new Map,uo.set(l,n)),n.set(e,o)}else Ur.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=Ur.get(o)),n}function ti(e,o){for(let l in e){const n=e[l];Hr(l,n,o)}}function oi(e){uo.delete(e)}function ni(){return{top:0,left:0,bottom:0,right:0}}function li(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 ai{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({},ni(),o.safeAreaInset),s=li(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){ei(o)}setAPI(o,l,n){Hr(o,l,n)}getAPI(o,l,n){return Ge(o,l,n)}batchSetAPI(o,l){ti(o,l)}clearScopeAPI(o){oi(o)}getRootDomain(){return mt()}}function W(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 ri=(e,o)=>{let l=document.body;const n=e.teleport||"body";n!="body"&&(Cr(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)}}},jr=(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}},Wr={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}},Yr={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}},Xr=[];for(const e in Yr)Xr.push(e);function $e(e,o=null){if(o||(o=t.getCurrentInstance()),o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const si=Symbol.for("InnerPageScopeKey"),ii=(e,o)=>({inheritAttrs:!0,props:{...ue,...Wr,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);if(a){const d=Kr(a,l);$e({getPageContentHeight:()=>so(a,d),getPageContentWidth:()=>io(a,d),getPageHeaderHeight:()=>Co(a,d),getPageFooterHeight:()=>wo(a,d)});const m=t.inject(si,!1);d&&m&&(d.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),i=t.getCurrentInstance(),c=(d,m=!1)=>{const f=i?.proxy;f&&typeof f.setNameValidateRules=="function"&&f.setNameValidateRules(d,!0,m)};return t.watch([()=>l.rules,()=>l.pureDataRules],([d,m],[f,h])=>{if(d&&f){const y=t.toRaw(f),g=t.toRaw(d),v=g?Reflect.ownKeys(g):[];(y?Reflect.ownKeys(y):[]).forEach(u=>{v.includes(u)||(g[u]=[])}),c(g)}if(m&&h){const y=t.toRaw(h),g=t.toRaw(m),v=g?Reflect.ownKeys(g):[];(y?Reflect.ownKeys(y):[]).forEach(u=>{v.includes(u)||(g[u]=[])}),c(g,!0)}},{deep:!0}),t.onMounted(()=>{if(l.rules){const d=t.toRaw(l.rules);c(d)}if(l.pureDataRules){const d=t.toRaw(l.pureDataRules);c(d,!0)}}),{classes:r,styles:s}}}),{componentName:ci,create:ui,scope:RB}=W("page"),di=ui(ii(ci));function fi(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},Pn=J(di,[["render",fi]]);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 mi=(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;i&&(i.headerMounted=!0);const c=e,d=t.computed(()=>({[c]:!0,[`${c}--border`]:a.border,[`${c}--fixed`]:a.fixed,[`${c}--safe-area-inset-top`]:a.safeAreaInsetTop})),m=t.computed(()=>({[`${c}__inner`]:!0,[`${c}__inner--${a.align}`]:!0})),f=a.height!==null&&a.height!==void 0?se(a.height):null,h=t.computed(()=>{const w={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const A=Me(a.padding??i.headerPadding);return Object.assign(w,A),f&&(i.headerHeight=f),i.headerHeight>0&&(w.height=i.headerHeight),w.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,w.safeAreaTop>0&&(w.top=w.safeAreaTop+(A.top??0),w.height&&w.height>0&&(w.height=w.height+w.safeAreaTop)),w}if(f&&(w.height=f),a.padding){const A=Me(a.padding);Object.assign(w,A)}return w}),y=t.ref(null),g=()=>{if(i&&y.value&&!yo(y.value)){if(!n){const w=No(y.value);i.headerAllHeight=w.height}return i.headerMounted=!0,!0}return!1};let v=null;t.onMounted(()=>{i&&(zn(g,50,5,50,!0),window.ResizeObserver&&y.value&&(v=new window.ResizeObserver(()=>{g()}),v.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,v&&(v.disconnect(),v=null))});const b=t.computed(()=>{const w={};return h.value.height!==null&&h.value.height!==void 0&&(w.height=`${h.value.height}px`),h.value.top!==null&&h.value.top!==void 0&&(w.paddingTop=`${h.value.top}px`),h.value.left!==null&&h.value.left!==void 0&&(w.paddingLeft=`${h.value.left}px`),h.value.right!==null&&h.value.right!==void 0&&(w.paddingRight=`${h.value.right}px`),h.value.bottom!==null&&h.value.bottom!==void 0&&(w.paddingBottom=`${h.value.bottom}px`),w}),u=t.computed(()=>!(h.value.height!==null&&h.value.height!==void 0&&h.value.height<=0));function p(){r.emit("back")}function k(){r.emit("click-title")}function S(){r.emit("click-right")}function N(){r.emit("click-right-text")}const C=()=>{if(!a.leftShow)return null;const w=[];if(r.slots.left)w.push(r.slots.left());else{if(r.slots.leftIcon){const A=t.h("view",{class:"left-icon",onClick:p},[r.slots.leftIcon()]);w.push(A)}else if(a.leftIcon){const A=t.h("view",{class:"left-icon",onClick:p},[t.h(a.leftIcon)]);w.push(A)}if(a.leftText){const A=t.h("view",{class:"left-text",onClick:p},[a.leftText]);w.push(A)}}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 A=t.h("view",{class:"right-text",onClick:N},[a.rightText]);w.push(A)}if(r.slots.rightIcon){const A=t.h("view",{class:"right-icon",onClick:S},[r.slots.rightIcon()]);w.push(A)}else if(a.rightIcon){const A=t.h("view",{class:"right-icon",onClick:S},[t.h(a.rightIcon)]);w.push(A)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__right"},w)},V=()=>{if(!a.titleShow)return null;const w=[],A=r.slots.default?r.slots.default():null;if(A)w.push(A);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:k},[r.slots.titleIcon()]);w.push(L)}else if(a.titleIcon){const L=t.h("view",{class:"title-icon",onClick:k},[t.h(a.titleIcon)]);w.push(L)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__title"},w)},D=()=>{const w=[],A=r.slots.bottom?r.slots.bottom():null;return A&&w.push(A),w.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},w)};return()=>{if(!u.value)return null;const w=[];if(r.slots.all)w.push(r.slots.all());else{const L=[],F=C();F&&L.push(F);const T=V();T&&L.push(T);const E=B();if(E&&L.push(E),L.length>0){const $=t.h("view",{class:m.value},L);w.push($)}const x=D();x&&w.push(x)}if(w.length===0)return null;const A={class:d.value,style:b.value,ref:y};return t.h("view",A,w)}}}),{componentName:pi,create:hi,scope:gi}=W("header-bar"),Rn=hi(mi(pi,gi,te.Left,!1));function yi(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.computed(()=>{const g=e;return{[g]:!0,[`${g}--${n.align}`]:!0,[`${g}--border`]:n.border,[`${g}--fixed`]:n.fixed,[`${g}--safe-area-inset-bottom`]:n.safeAreaInsetBottom}}),c=n.height!==null&&n.height!==void 0?se(n.height):null,d=t.computed(()=>{const g={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const v=Me(n.padding??s.footerPadding);return Object.assign(g,v),c&&(s.footerHeight=c),s.footerHeight>0&&(g.height=s.footerHeight),g.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,g.safeAreaBottom>0&&(g.bottom=g.safeAreaBottom+(v.bottom??0),g.height&&g.height>0&&(g.height=g.height+g.safeAreaBottom)),g}if(c&&(g.height=c),n.padding){const v=Me(n.padding);Object.assign(g,v)}return g}),m=t.ref(null),f=()=>{if(s&&m.value&&!yo(m.value)){if(!l){const g=No(m.value);s.footerAllHeight=g.height}return s.footerMounted=!0,!0}return!1};let h=null;t.onMounted(()=>{s&&(zn(f,50,5,50,!0),window.ResizeObserver&&(h=new window.ResizeObserver(()=>{f()}),h.observe(m.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,h&&(h.disconnect(),h=null))});const y=t.computed(()=>{const g={};return d.value.height!==null&&d.value.height!==void 0&&(g.height=fe(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(g.paddingTop=fe(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(g.paddingLeft=fe(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(g.paddingRight=fe(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(g.paddingBottom=fe(d.value.bottom)),g});return()=>{const g=a.slots.default?a.slots.default():[],v={ref:m,class:i.value,style:y.value};return t.h("view",v,g)}}}}const{componentName:vi,create:ki,scope:bi}=W("footer-bar"),On=ki(yi(vi,bi,!1));function Si(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 v=(r&&r.contentPadding&&r.contentPadding.left)??-1;v>=0&&(d.paddingLeft=`${v}px`);const b=(r&&r.contentPadding&&r.contentPadding.right)??-1;return b>=0&&(d.paddingRight=`${b}px`),d}if(l.padding){const m=Me(l.padding);m.left&&(d.paddingLeft=`${m.left}px`),m.top&&(d.paddingTop=`${m.top}px`),m.right&&(d.paddingRight=`${m.right}px`),m.bottom&&(d.paddingBottom=`${m.bottom}px`)}return d}),i=t.ref(null),c=ht(()=>{if(r&&i.value){const d=Fn(i.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}},0);return t.onMounted(()=>{c()}),n&&r&&t.watch([()=>s.value,()=>a.value],([])=>{c()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:Ci,create:wi,scope:OB}=W("content"),Ni=wi(Si(Ci));function Bi(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(Ni,[["render",Bi]]),gt="GroupStateKey",Qr=Symbol.for("GroupScopeKey");function Bo(){return t.inject(Qr,!1)}function Vo(e=!0){t.provide(Qr,e)}function Vi(e,o={}){Reflect.ownKeys(o).forEach(n=>{if(typeof n!="string")return;const a=o[n];Sr(a)||(e[n]=a)})}function Ai(e,o={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Vi(n,o);const a=t.shallowRef(n),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(gt,r),r}function Go(e,o,l=-1,n=-1,a=!1,r,s,i){const c=e.get(gt);if(!c)return;const d=e.get("groupLayout")??{};l===-1&&(l=d.column??1),n===-1&&(n=d.gutter??0),r||(r=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const m=se(r),f=se(s);i||(i=d.type??"grid");const h=()=>{const y=o===""||o===-1,g=se(o);let v=pe(l);const b=se(n);if(!y){let k=(g-(v-1)*b)/v;for(;f!==-1&&k>f;)v++,k=(g-(v-1)*b)/v;for(;m!==-1&&v>1&&k<m;)v--,k=(g-(v-1)*b)/v}let u=!1;const p=c.layout;p.value.width=o,p.value.column!==v&&(p.value.column=v,u=!0),p.value.gutter!==b&&(p.value.gutter=b,u=!0),p.value.type!==i&&(p.value.type=i,u=!0),u&&t.triggerRef(p)};if(a)h();else{const y=++c.passport;setTimeout(()=>{y===c.passport&&h()},50)}}function Ao(e,o=!1){let l;return o?l=e.getForParent(gt):l=e.get(gt),l.layout}function $o(e,o=!1){let l;return o?l=e.getForParent(gt):l=e.get(gt),l.order}function qa(e,o=1){if(o==="stretch")return-1;const l=pe(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=pe(l);if(a===-1){const c=e.index%o.column;return o.column,c==0?e.index=e.index+o.column:e.index=e.index+(o.column-c)+o.column,{"grid-column":"1 / -1"}}if(a>o.column){const c=e.index%o.column;return o.column,c==0?e.index=e.index+o.column:e.index=e.index+(o.column-c)+o.column,{"grid-column":"1 / -1"}}const r=pe(n)%o.column;let s=(e.index+r)%o.column,i=s+a;return i>o.column?(s=0,i=s+a,e.index=e.index+(o.column-s)+a):e.index=e.index+r+a,r>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const Gr=Symbol("RollingStateKey");function $i(e){t.provide(Gr,e)}function Ti(){return t.inject(Gr,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 Ei(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 Di(e,o,l){if(e<=0)return"1fr";const n=(e-(o-1)*l)/o;return n>0?`${n}px`:"1fr"}const xi={...ue,...Wr,...Yr};function Ii(e,o,l){return{props:xi,emits:["update:collapse"],setup(n,a){const r=Ln(n.name,n,Xr),s=Ai(r,{type:n.type}),i=Bo();Vo(!0);const c=n.rollingDisplay?Ti():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=(K,X=!1)=>{const G=h?.proxy;G&&typeof G.setNameValidateRules=="function"&&G.setNameValidateRules(K,!0,X)};t.watch([()=>n.rules,()=>n.pureDataRules],([K,X],[G,ee])=>{if(K&&G){const _=t.toRaw(G),oe=t.toRaw(K),le=oe?Reflect.ownKeys(oe):[];(_?Reflect.ownKeys(_):[]).forEach(ve=>{le.includes(ve)||(oe[ve]=[])}),y(oe)}if(X&&ee){const _=t.toRaw(ee),oe=t.toRaw(X),le=oe?Reflect.ownKeys(oe):[];(_?Reflect.ownKeys(_):[]).forEach(ve=>{le.includes(ve)||(oe[ve]=[])}),y(oe,!0)}},{deep:!0});const g=e,v=t.computed(()=>{const K={};if(K.height=E.value,n.width)n.width!=="auto"&&(K.width=fe(n.width));else{const X=i?$o(r,!0):null;if(f.value&&X){if(f.value.type==="grid"){const G=Eo(X,f.value,n.span,n.offset);Object.assign(K,G)}else if(f.value.type==="flow"){const G=To(X,f.value,n.span,n.offset,n.width);Object.assign(K,G)}}}return K}),b=t.computed(()=>{const K=s.layout.value.type;return K==="grid"||K==="flow"?{[`${g}--${K}`]:!0,[`${g}--${K}-justify-${n.justify}`]:!0,[`${g}--${K}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${K}`]:!0,[`${g}--gutter`]:!0}}),u=t.computed(()=>{if(s.layout.value.type==="grid"){let X="";if(n.columnWidth)X=`repeat(auto-fill, ${n.columnWidth})`;else{const G=Di(V.value,s.layout.value.column,s.layout.value.gutter);X=`repeat(${s.layout.value.column}, ${G})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":X}}}),p=t.toRef(n,"gutter"),k=t.toRef(n,"column"),S=t.computed(()=>i||m.value?!0:he(n.isWrap)),N=[],C=K=>{N.push(K)},B=()=>{let K=N.length;N.splice(0,K)},V=t.ref(-1),D=K=>{const X=Fn(K).width;X>0&&X!==V.value&&(V.value=X)};Go(r,V.value,k.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&t.watch([V,k,p],([K,X,G])=>{s.order.index=0,Go(r,K,X,G,!1,n.minItemWidth,n.maxItemWidth,n.type)});const w=t.computed(()=>x.value?n.expandText??"":n.collapseText??""),A=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),L=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!x.value,"is-collapse":x.value})),F=t.ref(),T=t.ref(),E=t.computed(()=>$.value||fe(n.height)||""),x=t.ref(!1),$=t.ref(""),H=t.ref(!1);let R=-1;const Y=(K,X=!0)=>{const G=F.value;if(G&&x.value!==K){if(R=R===-1?Ei(G):R,H.value=!0,X)if(G.style["will-change"]="height",G.ontransitionend=function(){G.ontransitionend=null,this.style["will-change"]="auto",K||($.value="",H.value=!1)},K){let ee=0;n.collapseHeight?ee=n.collapseHeight:T.value&&T.value.classList.contains(`${e}__header`)&&(ee=T.value.offsetHeight),$.value=`${R}px`,t.nextTick(()=>{$.value=`${ee}px`})}else $.value=`${R}px`;else if(K){let ee=0;n.collapseHeight?ee=n.collapseHeight:T.value&&T.value.classList.contains(`${e}__header`)&&(ee=T.value.offsetHeight),$.value=`${ee}px`}else H.value=!1,$.value=`${R}px`;x.value=K,a.emit("update:collapse",K)}};t.watch(()=>n.collapse,K=>{Y(K)});const Q=()=>{I()},I=K=>{K=K??!x.value,Y(K)};$e({toggleCollapse:I,doLayout:()=>{N[0]&&(D(N[0]),Go(r,V.value,k.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let O=null,z=!0;const P=K=>{if(n.rules){const X=t.toRaw(n.rules);y(X)}if(n.pureDataRules){const X=t.toRaw(n.pureDataRules);y(X,!0)}if(st&&(K&&Y(he(n.collapse),!1),n.autoLayout&&Array.isArray(N)&&N.length>0)){const X=N[0];D(X),window.ResizeObserver&&(O=new window.ResizeObserver(()=>{D(X)}),O.observe(X))}},q=()=>{O?.disconnect(),O=null},U=!m.value||c?.acquire();U&&(d.value=m.value?!0:null),t.onMounted(()=>{if(U&&(P(z),z=!1),m.value&&c){let K=null,X=c.initialHeight;c.observe(F.value,G=>{if(G!==d.value)if(G)d.value=!0,x.value||($.value=""),K=setTimeout(()=>{K=null,d.value!==!1&&(P(z),z=!1)},100);else{if(K!==null&&clearTimeout(K),d.value=!1,!x.value)if(z)$.value=c.initialHeight;else{let ee=hn(F.value);ee<=0?$.value=X:($.value=`${ee}px`,X=$.value)}z||q()}})}}),t.onUnmounted(()=>{O?.disconnect(),c&&c.unobserve(F.value)});const j=(K="right")=>{const X=[];if(w.value){const _={class:A.value},oe=t.h("span",_,[w.value]);X.push(oe)}const G={class:L.value},ee=l(n.collapseIcon,G);return ee&&X.push(ee),X.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${K}`]:!0},onClick:Q},X):null},Z=(K,X,G,ee)=>{const _={...b.value};return X===0&&(_[`${g}__first`]=!0),G>=ee-1&&(_[`${g}__last`]=!0),t.h("div",{ref:C,key:`${X}`,class:_,style:u.value},K)};return()=>{if(m.value&&d.value!==!0){const _=n.tag||"div";return t.h(_,{ref:F,prop:n.name,class:{[`${g}`]:!0,"is-collapse":H.value},style:v.value},[])}s.order.index=0;const K=[];let X=0;if(a.slots.header){const _={key:`${X++}`,ref:T,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},oe=t.h("div",_,[a.slots.header()]);K.push(oe)}else{const _=[],oe=n.collapsePosition==="left";if(oe&&n.showCollapse){const le=j("left");le&&_.push(le)}if(n.title||a.slots.title){if(n.showMark){const le={class:{[`${g}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const Te=t.h("div",le);_.push(Te)}if(a.slots.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[a.slots.title()]);_.push(le)}else if(n.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);_.push(le)}}if(a.slots.toolbar&&_.push(a.slots.toolbar()),!oe&&n.showCollapse){const le=j("right");le&&_.push(le)}if(_.length>0){const le={key:`${X++}`,ref:T,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},Te=t.h("div",le,_);K.push(Te)}}B();const G=a.slots.default?a.slots.default():[],ee=s.layout.value.type;if(ee==="grid"){const _=Z(G,X++,0,G.length);K.push(_)}else if(ee==="flow"){const _=Z(G,X++,0,G.length);K.push(_)}else for(let _=0;_<G.length;_++){const oe=G[_],le=Z([oe],X++,_,G.length);K.push(le)}if(S.value){const _=n.tag||"div";return t.h(_,{ref:F,prop:n.name,class:{[`${g}`]:!0,"is-collapse":H.value},style:v.value},[K])}else return K}}}}const{componentName:qi,create:Mi,scope:zi}=W("group"),Li=(e=te.RectUp,o={})=>t.h(e,o),Un=Mi(Ii(qi,zi,Li));function Pi(e){return e===window}const Fi=/matrix\((.+)\)/,Zr=e=>{const o=t.unref(e);if(!o)return{x:0,y:0};if(Pi(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=Fi.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 Ri{watchedListeners=[];add(o){this.watchedListeners.push(o)}remove(o){const l=this.watchedListeners.indexOf(o);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(o=>{try{o()}catch{}})}}class Oi{monitorRegister=new WeakMap;watch(o,l){let n=o.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r||(r=new Ri,n.addEventListener("scroll",r.listen),n===document.body&&n.addEventListener("resize",r.listen),this.monitorRegister.set(n,r)),r.add(l),n=n.parentNode}}unwatch(o,l){let n=o.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r&&(r.remove(l),r.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",r.listen),n===document.body&&n.removeEventListener("resize",r.listen))),n=n.parentNode}}}const Ma=new Oi,Jr={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:Ki,create:Ui}=W("price"),Hi=Ui({props:{...Jr},setup(e){const o=t.computed(()=>({[Ki]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),n=t.computed(()=>ge(e.price)==0?"":po(e.price,e.decimalLength,!0,pe(e.digits),e.separator)),a=t.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:o,showSymbol:l,intText:a,decimalText:r}}}),ji=["innerHTML"],Wi=["innerHTML"];function Yi(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,Wi)):t.createCommentVNode("",!0)],2)}const Xe=J(Hi,[["render",Yi]]),{componentName:Zo,create:Xi}=W("hint-text"),Qi=Xi({components:{Price:Xe},props:{...Jr,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=(A,L,F,T,E,x)=>{const $=document.documentElement.clientWidth||document.body.clientWidth,H=document.documentElement.clientHeight||document.body.clientHeight,R=A.split("-");let Y=[];R[0]==="top"?Y=["top","bottom","right","left"]:R[0]==="bottom"?Y=["bottom","top","right","left"]:R[0]==="left"?Y=["left","top","bottom","right"]:R[0]==="right"&&(Y=["right","top","bottom","left"]);const Q={top:null,right:null,bottom:null,left:null},I=[];for(let M=0;M<Y.length;M++){const O=Y[M];if(I[0]=O,R[1]&&(I[1]=R[1]),O==="top"){const z=L.y-x-e.arrowSize-e.offset;if(z>=0){Q.top=z;let P=0;R[1]==="start"?P=L.x:R[1]==="end"?P=L.x+F-E:P=L.x+F/2-E/2;const q=$-P-E;q<0?(P+=q,f.value=-q):f.value=0,Q.left=P<0?0:P;break}}else if(O==="bottom"){const z=L.y+T+e.arrowSize+e.offset;if(z+x<=H){Q.top=z;let P=0;R[1]==="start"?P=L.x:R[1]==="end"?P=L.x+F-E:P=L.x+F/2-E/2;const q=$-P-E;q<0?(P+=q,f.value=-q):f.value=0,Q.left=P<0?0:P;break}}else if(O==="left"){const z=L.x-E-e.arrowSize-e.offset;if(z>=0){Q.left=z;let P=0;R[1]==="start"?P=L.y:R[1]==="end"?P=L.y+T-x:P=L.y+T/2-x/2,Q.top=P<0?0:P;break}}else if(O==="right"){const z=L.x+F+e.arrowSize+e.offset;if(z+E<=$){Q.left=z;let P=0;R[1]==="start"?P=L.y:R[1]==="end"?P=L.y+T-x:P=L.y+T/2-x/2,Q.top=P<0?0:P;break}}}return{bestPlacement:I.join("-"),bestInsetRect:Q}},m=(A,L,F=10)=>{if(!st||L===!1||!A)return;n.value=Zr(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const T=c.value.offsetHeight,E=c.value.offsetWidth,{bestPlacement:x,bestInsetRect:$}=d(e.placement,n.value,a.value,r.value,E,T);s.value=x,l.value=$,i.value=!0},f=t.ref(0),h=ht(()=>{m(e.message,e.visible)},10),y=t.ref(e.visible);t.watch(()=>e.visible,A=>{y.value=A});const g=t.computed(()=>y.value&&v.value),v=t.ref(!0),b=ht(A=>{const L=A[0];L&&(v.value=L.isIntersecting)},10),u=new IntersectionObserver(b);t.watch([()=>e.message,()=>e.visible],([A,L])=>{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 A={[Zo]:!0};return s.value.startsWith("top")?A["is-top"]=!0:s.value.startsWith("right")?A["is-right"]=!0:s.value.startsWith("bottom")?A["is-bottom"]=!0:s.value.startsWith("right")&&(A["is-right"]=!0),e.size==="small"?A["is-small"]=!0:e.size==="large"&&(A["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(A[`${e.customClass}`]=!0),A}),k=t.computed(()=>{const A={};l.value.top!==null&&(A.top=`${l.value.top}px`),l.value.right!==null&&(A.right=`${l.value.right}px`),l.value.bottom!==null&&(A.bottom=`${l.value.bottom}px`),l.value.left!==null&&(A.left=`${l.value.left}px`),e.autoFit&&(A["min-width"]=`${a.value}px`);const L=document.documentElement.clientWidth||document.body.clientWidth;return A["max-width"]=`${L}px`,i.value&&(A.opacity="1"),e.transition||(A.transition="none"),e.zIndex&&(A["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(A,e.customStyle),A}),S=t.computed(()=>{const A=[`${Zo}__content`];return e.customTextClass&&A.push(e.customTextClass),A}),N=t.computed(()=>{const A={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(A,e.customTextStyle),A}),C=t.computed(()=>({[`${Zo}__arrow`]:!0})),B=t.computed(()=>{const A={};return e.showArrow?(A.width=`${e.arrowSize}px`,A.height=`${e.arrowSize}px`,s.value==="top"?(A.left="50%",A.bottom=`-${e.arrowSize}px`,A.transform=" translate(-50%, 0%)"):s.value==="top-start"?(A.left=`${e.arrowOffset+f.value}px`,A.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(A.right=`${e.arrowOffset-f.value}px`,A.bottom=`-${e.arrowSize}px`):s.value==="right"?(A.left=`-${e.arrowSize}px`,A.top="50%",A.transform=" translate(0%, -50%)"):s.value==="right-start"?(A.left=`-${e.arrowSize}px`,A.top=`${e.arrowOffset}px`):s.value==="right-end"?(A.left=`-${e.arrowSize}px`,A.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(A.left="50%",A.top=`-${e.arrowSize}px`,A.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(A.left=`${e.arrowOffset+f.value}px`,A.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(A.right=`${e.arrowOffset-f.value}px`,A.top=`-${e.arrowSize}px`):s.value==="left"?(A.right=`-${e.arrowSize}px`,A.top="50%",A.transform=" translate(0%, -50%)"):s.value==="left-start"?(A.right=`-${e.arrowSize}px`,A.top=`${e.arrowOffset}px`):s.value==="left-end"&&(A.right=`-${e.arrowSize}px`,A.bottom=`-${e.arrowOffset}px`),A):{display:"none"}}),V=t.computed(()=>g.value&&e.closeOnClick),D=t.computed(()=>{const A={};return e.zIndex&&(A["z-index"]=`${e.zIndex}`),A});return{show:g,tipRef:c,classes:p,styles:k,textClasses:S,textStyles:N,arrowClasses:C,arrowStyles:B,overlayShow:V,overlayStyle:D,onClickOverlay:()=>{y.value=!1,o.emit("update:visible",!1)}}}});function Gi(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 _r=J(Qi,[["render",Gi]]);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={},Zi=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()}},Ji=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(_r,e);return t.render(n,o),e.id}},_i=e=>{e.unmount=fo;let o=e.id??`hinttext_${Zi.get()}`;e={...gn,...e},e.id=o,pt.set(o,e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(_r,e);return t.render(n,l),document.body.appendChild(l),o},ec=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},ot={show(e,o,l={},n=!0){ec(o);const a=l.id;return a&&pt.has(a)?Ji({...l,message:o,reference:e}):(n&&fo(),_i({...l,message:o,reference:e}))},hide(e){fo(e)},install(e){e.config.globalProperties.$hintText=ot}},{componentName:za,create:tc}=W("item"),oc=tc({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 K={[s]:!0,[`${s}__gutter`]:r.value&&r.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:he(e.hasBorder)};if(K[e.errorMarkClass]=!!L.value,K[e.warnMarkClass]=!!w.value,K[e.infoMarkClass]=!!V.value,typeof i.value=="function"){const X=i.value(l);K[X]=!0}else if(typeof i.value=="string"){const X=i.value;K[X]=!0}return K}),d=t.ref(null),m=t.computed(()=>{const K={};if(e.width)e.width!=="auto"&&(K.width=fe(e.width));else{const X=a&&n?$o(n,!1):null;if(r.value&&X){if(r.value.type==="grid"){const G=Eo(X,r.value,e.span,e.offset);Object.assign(K,G)}else if(r.value.type==="flow"){const G=To(X,r.value,e.span,e.offset,e.width);Object.assign(K,G)}}}if(typeof d.value=="function"){const X=d.value(l);X&&Object.assign(K,X)}else if(d.value&&typeof d.value=="object"){const X=d.value;Object.assign(K,X)}return K}),f=t.ref(null),h=t.computed({get:()=>f.value??he(e.isRequired),set:K=>{f.value=K}}),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),v=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),b=t.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${v.value}`]:!0})),u=t.computed(()=>({label:!0,[`label--${v.value}`]:!0})),p=Ne(t.toRef(e,"labelWidth"),"labelWidth",co.Near),k=t.computed(()=>p&&p.value?{width:fe(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})),B=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(K){h.value=K},setErrorTip(K){B.errorTip=K},setErrorIcon(K){B.errorIcon=K},setWarnTip(K){B.warnTip=K},setWarnIcon(K){B.warnIcon=K},setInfoTip(K){B.infoTip=K},setInfoIcon(K){B.infoIcon=K},setCustomClassName(K){i.value=K},setCustomStyle(K){d.value=K}});const V=t.computed(()=>e.infoTip||B.infoTip),D=t.computed(()=>e.infoIcon||B.infoIcon),w=t.computed(()=>e.warnTip||B.warnTip),A=t.computed(()=>e.warnIcon||B.warnIcon),L=t.computed(()=>e.errorTip||B.errorTip),F=t.computed(()=>e.errorIcon||B.errorIcon),T=t.computed(()=>L.value?"error":w.value?"warn":V.value?"info":""),E=t.computed(()=>T.value.length>0),x=t.computed(()=>T.value==="error"?L.value:T.value==="warn"?w.value:T.value==="info"?V.value:""),$=t.computed(()=>T.value==="error"?F.value:T.value==="warn"?A.value:T.value==="info"?D.value:null),H=t.computed(()=>{let K={[`${s}__tip`]:!0,[`${s}__tip--${T.value}`]:!0};return T.value==="error"&&e.errorClass?K[`${e.errorClass}`]=!0:T.value==="warn"&&e.warnClass?K[`${e.warnClass}`]=!0:T.value==="info"&&e.infoClass&&(K[`${e.infoClass}`]=!0),K}),R=t.computed(()=>{let K={};return g&&g.value==="top"||!y.value?K["padding-left"]="0px":p&&p.value&&(K["padding-left"]=fe(p.value)),K}),Y=()=>{const K=$.value;return K?typeof K=="function"?t.h("div",{class:"fox-item__tip--icon"},[K()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(K)]):null},Q=()=>{const K=x.value;return K?typeof K=="function"?t.h("div",{class:"fox-item__tip--text"},[K()]):t.h("div",{class:"fox-item__tip--text"},[K]):null},I=t.computed(()=>o.slots.fixedPreTip),M=t.computed(()=>({[`${s}__fixed-pre-tip`]:!0})),O=t.computed(()=>o.slots.fixedTip),z=t.computed(()=>({[`${s}__fixed-tip`]:!0})),P=t.ref();let q="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([K,X,G,ee])=>{P.value&&(K&&!ce(X)?q?ot.show(P.value,X,{...ee,id:q,type:G},!0):q=ot.show(P.value,X,{...ee,type:G},!0):ot.hide(q))});let U=null;const j=()=>{U||!P.value||(U=new IntersectionObserver(K=>{let X=!1;for(let G of K)if(G.intersectionRatio>0){X=!0,X&&o.emit("appear",G);break}X||o.emit("disappear")}),U.observe(P.value))},Z=()=>{!U||!P.value||(U.unobserve(P.value),U=null)};return t.watch(()=>he(e.appearListen),K=>{K?j():Z()}),t.onMounted(()=>{he(e.appearListen)&&j()}),t.onUnmounted(Z),{classes:c,styles:m,mainClasses:b,hasLabel:y,labelClasses:u,labelStyles:k,labelStringClasses:S,contentClasses:N,contentStyles:C,contentRef:P,hasTip:E,mTip:x,mIcon:$,renderIcon:Y,renderTip:Q,tipClasses:H,tipStyles:R,hasFixedTip:O,fixedTipClasses:z,hasFixedPreTip:I,fixedPreTipClasses:M}}}),nc=["prop"];function lc(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,nc)}const be=J(oc,[["render",lc]]);function ac(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=fe(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:rc,create:sc,scope:KB}=W("row-item"),Hn=sc(ac(rc));function ic(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=fe(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:cc,create:uc,scope:UB}=W("slot-item"),jn=uc(ic(cc)),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 dc(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})),v=Ne(t.computed(()=>a.textAlign),"textAlign"),b=t.computed(()=>{const E={};return v.value&&(E["text-align"]=v.value),E}),u=E=>{let $=E.target.value;a.type==="digit"&&($=dn($,!0)),a.type==="number"&&($=dn($,!1)),a.maxLength&&$.length>Number(a.maxLength)&&($=$.slice(0,Number(a.maxLength))),h.value=$,c("update:modelValue",$,E),c("change",$,E)};let p=Ee(a,"hintText"),k=t.ref(!1);const S=E=>{let $=E.target.value;f.value=!0,ce(p.value)||(k.value=!0),c("focus",$,E)},N=E=>{setTimeout(()=>{k.value&&(k.value=!1),f.value=!1},0);let $=E.target.value;a.maxLength&&$.length>Number(a.maxLength)&&($=$.slice(0,Number(a.maxLength))),c("blur",$,E)},C=t.computed(()=>({[`${y}__append`]:!0})),B=t.computed(()=>{const E={};return r.slots.append&&!V.value&&!F.value&&(E.display="none"),E}),V=t.computed(()=>ge(a.unit)>0),D=t.computed(()=>!F.value),w=t.computed(()=>({[`${y}__unit`]:!0,hidden:!D.value})),A=E=>{h.value="",c("update:modelValue","",E),c("change","",E),c("clear","")},L=t.computed(()=>he(a.clearable)&&!s.value&&!i.value),F=t.computed(()=>{let E=ge(h.value)>0;return he(a.clearable)&&E&&f.value}),T=t.computed(()=>({action:!0,hidden:!F.value}));return()=>{const E={class:g.value,style:b.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},x=[],$=t.h("input",E);x.push($);const H=[];if(L.value){const z={class:["action-icon"]},P=t.h(n,z),q={class:T.value,onClick:A},U=t.h("view",q,{default:()=>[P]});H.push(U)}if(V.value){const z=t.h("view",{class:w.value},[a.unit]);H.push(z)}const R={class:C.value,style:B.value},Y=t.h("view",R,{default:()=>H});x.push(Y);const Q={default:()=>x};Q.label=r.slots.default,Q.prepend=r.slots.prepend,Q.append=r.slots.append,Q.fixedPreTip=r.slots.fixedPreTip,Q.fixedTip=r.slots.fixedTip;const M={...In(a,La),hintText:p.value,hintVisible:k.value};return t.h(l,M,Q)}}}}const{componentName:fc,create:mc,scope:pc}=W("input-item"),Wn=mc(dc(fc,pc,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=pe(o)),o==1||o==-1)return`${e}`;if(o==0)return"0";if(o>0){let n=vr(`${e}`,`${o}`);return Pa(n)}else{let n=xn(`${e}`,kr(`${o}`),20);return Pa(n)}}function hc(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=pe(o),o==1)return e;if(n)e=Fa(e,o),l&&(e=="0"&&a?e=`${e}.`.padEnd(pe(l)+2,"0"):e=xn(e,1,pe(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=he(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=he(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 gc(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],([R,Y,Q])=>{if(ce(R)){f.value="";return}const I=Ra(R,Y,Q,!1);f.value!==I&&(f.value=I)},{immediate:!0});const h=t.computed(()=>{let R="";return d.value&&(R=f.value),R}),{t:y}=ae.useFoxI18n(o),g=t.computed(()=>{let R=a.placeholder??"";return!d.value&&!ce(f.value)?R=hc(f.value,a.decimalLength,a.autoPadding,a.digits,a.separator):R=ce(R)?y(["placeholder"]):R,R}),v=e,b=t.computed(()=>({[v]:!0,[`${v}--disabled`]:s.value,[`${v}__placeholder`]:f.value.length>0})),u=Ne(t.computed(()=>a.textAlign),"textAlign"),p=t.computed(()=>{const R={};return u.value&&(R["text-align"]=u.value),R}),k=t.ref(""),S=t.computed(()=>{let R=k.value;return ce(R)&&(R=a.errorTip??""),R}),N=t.ref(""),C=t.ref(!1),B=R=>{let Q=R.target.value;if(ce(Q)){f.value="",m.value="",c("update:modelValue","",R),c("change","",R),he(a.showTip)&&C.value&&(C.value=!1);return}if(Q.length>=2){let I=Q;if(I.charAt(0)=="-"&&(I=I.substring(1)),I.length>=2&&I.charAt(0)=="0"&&I.charAt(1)!="."){t.triggerRef(f);return}}if(Q!="-"){if(!Tr(Q)){t.triggerRef(f);return}if(a.integerLength!=-1&&Er(Q)>Number(a.integerLength)){t.triggerRef(f);return}if(a.decimalLength&&a.decimalLength!=-1&&Dr(Q)>Number(a.decimalLength)){t.triggerRef(f);return}let I=Oa(Q,a);if(I.maxValid===!1){k.value=I.message,t.triggerRef(f);return}}else if(a.min!=null&&pe(a.min)>=0){t.triggerRef(f);return}N.value=Q,he(a.showTip)&&(C.value=Q.length>0),f.value=Q,m.value=Ra(Q,a.rates,a.precision,!0),c("update:modelValue",m.value,R),c("change",m.value,R)},V=R=>{if(d.value=!0,he(a.showTip)){let Y=f.value;ce(Y)&&(Y=a.hintText),ce(Y)||(N.value=Y,C.value=!0)}k.value="",c("focus",m.value,R)},D=R=>{if(setTimeout(()=>{d.value=!1,he(a.showTip)&&C.value===!0&&(C.value=!1)},0),!ce(f.value)){let Y=Oa(f.value,a);if(Y.minValid===!1||Y.maxValid===!1){k.value=Y.message;return}}c("update:modelValue",m.value,R),c("blur",m.value,R)},w=t.computed(()=>({[`${v}__append`]:!0})),A=t.computed(()=>{const R={};return r.slots.append&&!L.value&&!$.value&&(R.display="none"),R}),L=t.computed(()=>ge(a.unit)>0),F=t.computed(()=>!$.value),T=t.computed(()=>({[`${v}__unit`]:!0,hidden:!F.value})),E=R=>{m.value="",c("update:modelValue","",R),c("change","",R),c("clear","")},x=t.computed(()=>he(a.clearable)&&!s.value&&!i.value),$=t.computed(()=>{let R=ge(m.value)>0;return he(a.clearable)&&R&&d.value}),H=t.computed(()=>({action:!0,hidden:!$.value}));return()=>{let R={class:b.value,style:p.value,type:"digit",maxlength:a.maxLength,placeholder:g.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:B,onFocus:V,onBlur:D},Y=[],Q=t.h("input",R);Y.push(Q);let I=[];if(x.value){const j={class:["action-icon"]},Z=t.h(n,j),K={class:H.value,onClick:E},X=t.h("view",K,{default:()=>[Z]});I.push(X)}if(L.value){const j=t.h("view",{class:T.value},[a.unit]);I.push(j)}const M={class:w.value,style:A.value},O=t.h("view",M,{default:()=>I});Y.push(O);const z={default:()=>Y};z.label=r.slots.default,z.prepend=r.slots.prepend,z.append=r.slots.append,z.fixedPreTip=r.slots.fixedPreTip,z.fixedTip=r.slots.fixedTip;let q={...In(a,Ka),errorTip:S.value,hintText:N.value,hintVisible:C.value,hintType:"number"};return t.h(l,q,z)}}}}const{componentName:yc,create:vc,scope:kc}=W("money-item"),Yn=vc(gc(yc,kc,be,te.CircleClose)),yn={modelValue:{type:[String,Number],default:""},textAlign:{type:String,default:""},limitShow:{type:Boolean,default:!1},maxLength:{type:[String,Number],default:""},rows:{type:[String,Number],default:"2"},placeholder:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autosize:{type:[Boolean,Object],default:!1},autofocus:{type:Boolean,default:!1}},{componentName:bc,create:Sc,scope:Cc}=W("textarea"),wc=Sc({props:{...yn},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:o}){let{toLocaleRefs:l}=ae.useFoxI18n(Cc);const n=l(e,["placeholder"]),a=t.ref(),r=t.computed(()=>{const h=bc;return{[h]:!0,[`${h}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const s=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let h=a.value;h.style.height="auto";let y=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:g,minHeight:v}=e.autosize;g!==void 0&&(y=Math.min(y,g)),v!==void 0&&(y=Math.max(y,v))}y&&(h.style.height=y+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,y)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),o("update:modelValue",h,y),o("change",h,y)};return{...n,textareaRef:a,classes:r,styles:s,change:h=>{const y=h.target;c(y.value,h)},focus:h=>{e.disabled||e.readonly||o("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let g=h.target.value;c(g,h),o("blur",{value:g,event:h})}}}}),Nc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Bc={key:0,class:"fox-textarea__limit"};function Vc(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,Nc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Bc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const xo=J(wc,[["render",Vc]]);function Ac(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=v=>{d.value=v,c("update:modelValue",v,{}),c("change",v,{})};let f=Ee(a,"hintText"),h=t.ref(!1);const y=v=>{ce(f.value)||(h.value=!0),c("focus",d.value,v)},g=v=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",d.value,v)};return()=>{const b={...me(a,yn),disabled:s.value,readonly:i.value,value:d.value,"onUpdate:modelValue":m,onFocus:y,onBlur:g},u=[],p=t.h(n,b);u.push(p);const k={default:()=>u};k.label=r.slots.default,k.prepend=r.slots.prepend,k.append=r.slots.append,k.fixedPreTip=r.slots.fixedPreTip,k.fixedTip=r.slots.fixedTip;const S=me(a,de,ue);return t.h(l,S,k)}}}}const{componentName:$c,create:Tc,scope:Ec}=W("textarea-item"),Xn=Tc(Ac($c,Ec,be,xo));function Dc(e){return e===window}const Ve=e=>{const o=t.unref(e);if(Dc(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:{}}},es=2e3;let Ua=es;const xc=(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!==es&&(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=v=>{n("click-pop",v)},f=v=>{v.stopPropagation(),n("click-close-icon",v),n("update:visible",!1)},h=v=>{n("click-overlay",v),l.closeOnClickOverlay&&n("update:visible",!1)},y=v=>{n("opend",v)},g=v=>{n("closed",v)};return t.watch(()=>l.visible,v=>{l.visible?c():d()}),t.watch(()=>l.closeable,v=>{a.closed=v}),{...t.toRefs(a),popStyle:s,transitionName:i,classes:r,onClick:m,onClickCloseIcon:f,onClickOverlay:h,onOpened:y,onClosed:g}}});let Bt=0;const Ha="fox-overflow-hidden",ja=()=>st?document.body:{classList:[]},Ic=e=>[()=>{if(e())try{!Bt&&ja().classList.add(Ha),Bt++}catch{}},()=>{if(e()&&Bt)try{Bt--,!Bt&&ja().classList.remove(Ha)}catch{}}],qc={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:Mc,create:zc}=W("overlay"),Lc=zc({props:{...qc},emits:["click","update:visible"],setup(e,{emit:o}){const[l,n]=Ic(()=>e.lockScroll),a=t.computed(()=>({[Mc]:!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 Pc(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(Lc,[["render",Pc]]),{componentName:Fc,create:Rc}=W("popup"),Oc=Rc(xc(Fc,{FoxOverLay:at,Close:te.Close}));function Kc(e,o,l,n,a,r){const s=t.resolveComponent("FoxOverLay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:o[1]||(o[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[0]||(o[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const ie=J(Oc,[["render",Kc]]),Wa=10;function Uc(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:b=>{const u=b.touches[0];s.value=u.clientX-e.value,i.value=u.clientY-o.value,a.value=u.clientX,r.value=u.clientY,c.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-l.value,m.value||(m.value=Uc(c.value,d.value))},start:b=>{y(),e.value=b.touches[0].clientX,o.value=b.touches[0].clientY,l.value=Date.now()},reset:y,startX:e,startY:o,startTime:l,duration:n,moveX:a,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:d,direction:m,isVertical:f,isHorizontal:h}}const ts={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,...ts,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 os=36;function Hc(){return os}function jc(e){os=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 Wc(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 Yc=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 Xc(){const e=t.getCurrentInstance();return new Yc(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 Qc(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 Gc=15,Zc=300,Jc=200,{create:_c}=W("picker-column");function eu(e){e.stopPropagation()}function tu(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&eu(e)}const ou=_c({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},...ts},emits:["click","change","update:modelValue"],setup(e,{emit:o}){const l=t.computed(()=>({"fox-picker__list":!0})),n=t.computed(()=>({height:`${pe(e.visibleItemCount)*+e.itemHeight}px`})),a=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=V=>V>=f.currIndex+8||V<=f.currIndex-8,i=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${f.deg})`,top:`${r.value}px`})),c=V=>`transform: rotate3d(1, 0, 0, ${-f.rotation*V}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${f.scrollDistance+r.value}px, 0)`})),m=t.ref(null),f=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=t.toRef(e,"source"),y=V=>qe(e,V),g=V=>rt(e,V),v=Ue(),b=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},u=(V,D=!1,w=!1)=>{if(f.currIndex=V,D){const A=()=>{f.moving=!1,o("update:modelValue",V),o("change",V)};w?f.transitionEndTrigger=A:A()}},p=(V,D,w)=>{let A=V+f.startDistance;if(D==="end"){const L=-(h.value.length-1)*e.itemHeight;A<L&&(A=L,(!w||w<=0)&&(w=e.swipeDuration)),A>0&&(A=0,(!w||w<=0)&&(w=e.swipeDuration));let F=Math.abs(Math.round(-A/e.itemHeight));const T=-F*e.itemHeight,E=`${(F+1)*f.rotation}deg`,x=w?w>0:!1;u(F,!0,x),k(T,D,w,E)}else{let L=(-A/e.itemHeight+1)*f.rotation;const F=(h.value.length+1)*f.rotation,T=0;if(L=Math.min(Math.max(L,T),F),e.threeDimensional&&(L<T||L>F))return;k(A,null,void 0,`${L}deg`)}},k=(V=0,D,w=Jc,A)=>{D==="end"?f.scrollTime=w:f.scrollTime=0,f.deg=A,f.scrollDistance=V},S=(V,D)=>(V=Math.abs(V/D)/.003*(V<0?-1:1),V),N=V=>{e.readonly||(f.startDistance=f.scrollDistance,v.start(V),f.transitionEndTrigger=null)},C=V=>{e.readonly||(f.moving=!0,v.move(V),v.isVertical()&&(f.moving=!0,tu(V,!0)),p(v.deltaY.value,"",0))},B=()=>{if(e.readonly)return;const V=v.deltaY.value,D=v.duration.value;if(D<Zc&&Math.abs(V)>Gc){const A=S(V,D);p(A,"end",e.swipeDuration)}else p(V,"end",0)};return t.watch(()=>e.modelValue,V=>{if(f.currIndex!==V){f.currIndex=V;const D=-V*e.itemHeight;p(D)}}),t.onMounted(()=>{const V=-e.modelValue*e.itemHeight;p(V)}),{classes:l,styles:n,contentClasses:a,source:h,itemText:y,itemValue:g,...t.toRefs(f),roller:m,getItemText:qe,onTouchStart:N,onTouchMove:C,onTouchEnd:B,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:d,stopMomentum:b}}}),nu={key:1,class:"fox-picker__item-tile"};function lu(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",nu,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Za=J(ou,[["render",lu]]),{create:au,componentName:ru,scope:su}=W("picker"),iu=au({components:{[Za.name]:Za,[ie.name]:ie},props:{...vn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:o}){const{toLocaleRefs:l,t:n}=ae.useFoxI18n(su),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Hc());t.watch(()=>e.visible,w=>{w&&s.value<=0&&setTimeout(()=>{if(r.value){const A=Ve(r.value);s.value=A.height,jc(s.value)}},50)});const i=t.computed(()=>({[ru]:!0})),c=Xc(),d=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([w,A])=>{if(w){let L=await c.load("picker",w,A);if(L.length>0){let F=L[0];if(Array.isArray(F)){if(typeof F[0]=="string"){let T=L,E=[];T.forEach(x=>{let $=x.map(H=>Ga(H));E.push($)}),m.value=E}else m.value=L;d.value="multipleColumn"}else if(typeof F=="string"){let T=L,E=[],x=T.map($=>Ga($));E.push(x),m.value=E,d.value="singleColumn"}else{const T=kn(e,F);Array.isArray(T)?(d.value="cascade",m.value=[L]):(d.value="singleColumn",m.value=[L])}}else m.value=[]}},{immediate:!0});const f=t.ref([]),h=t.ref(e.modelValue),y=t.ref([]),g=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([w,A])=>{let L=Qc(e,w,A,d.value);if(!xe(L,g.value)){g.value=L;let F=Qa(e,L,A,d.value);F&&(f.value=F.texts,o("update:text",f.value))}});const v=t.ref(e.visible);t.watch(()=>e.visible,w=>{v.value=w});const b=w=>{let A=Ya(e,w);return Be(A)?A.defaultIndex??0:0},u=w=>{if(e.readonly===!0)return!0;let A=Ya(e,w);return Be(A)?A.readonly??!1:!1},p=(w,A)=>{let L=g.value;L[w]=A;for(let T=0;T<w;T++)L[T]==null&&(L[T]=b(T));if(d.value==="cascade")for(let T=w+1;T<S.value.length;T++){let E=b(T);T<L.length?L[T]=E:L.push(E)}else for(let T=L.length;T<S.value.length;T++){let E=b(T);L.push(E)}g.value=L;let F=Qa(e,L,m.value,d.value);F&&(f.value=F.texts,h.value=F.values,y.value=F.items)},k=w=>w<g.value.length?g.value[w]:b(w),S=t.computed(()=>{if(m.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return m.value;let w=[],A=0,L=m.value[0],F=0;for(;;){let T=L.map($=>{let H=Object.assign({},$);return Wc(e,H,null),H});w.push(T),A>=g.value.length?F=0:F=g.value[A],(F<0||F>=L.length)&&(F=0);let E=L[F];const x=kn(e,E);if(!Array.isArray(x))break;L=x,A++}return w}),N=t.computed(()=>pe(+e.visibleItemCount-1)/2*s.value);return{...a,pickerLineRef:r,classes:i,columns:S,dataType:d,show:v,itemHeight:s,top:N,isReadonly:u,getIndex:k,change:(w,A)=>{p(w,A)},close:()=>{o("close"),o("update:visible",!1)},confirm:()=>{if(e.readonly===!0){o("update:visible",!1);return}let w=m.value.length-1;for(;w>=0&&!(g.value[w]===null||g.value[w]===void 0);w--);if(w>=0&&p(w,0),d.value==="singleColumn"){let A=h.value.length>0?h.value[0]:"",L=y.value.length>0?y.value[0]:null;e.readonly||(o("update:modelValue",A),o("update:text",f.value),o("change",A,L)),o("confirm",A)}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)}}}}),cu={class:"fox-picker__bar"},uu={class:"fox-picker__title"},du={class:"fox-picker__bar__action"},fu={class:"fox-picker__column"};function mu(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",cu,[t.createElementVNode("view",uu,t.toDisplayString(e.title),1),t.createElementVNode("view",du,[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",fu,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":m=>e.change(d,m),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const yt=J(iu,[["render",mu]]);function pu(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),v=Ee(i,"modelValue"),b=t.ref([]),u=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),p="fox-input-item",k=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const O={};return S.value&&(O["text-align"]=S.value),O}),C=t.ref(!1),B=()=>{C.value=!0},V=O=>{C.value=O},D=O=>{v.value=O,f("update:modelValue",O)},w=(O,z)=>{f("change",O,z)},A=O=>{let P=O.target.value;g.value=!0,f("focus",P,O)},L=O=>{setTimeout(()=>{g.value=!1},0);let P=O.target.value;i.maxLength&&P.length>Number(i.maxLength)&&(P=P.slice(0,Number(i.maxLength))),f("blur",P,O)},F=O=>{b.value=O,Array.isArray(O)&&O.length===0?f("update:text",O[0]):f("update:text",O)},T=t.computed(()=>({[`${p}__append`]:!0})),E=t.computed(()=>ge(i.unit)>0),x=t.computed(()=>ge(i.unit)>0&&!g.value),$=t.computed(()=>({hidden:!x.value})),H=O=>{v.value="",f("update:modelValue","",O),f("change","",O),f("clear","")},R=t.computed(()=>i.clearable&&!d.value&&!m.value),Y=t.computed(()=>ge(v.value)>0&&g.value),Q=O=>{Y.value?H(O):B()},I=t.computed(()=>Y.value&&R.value?n:a),M=t.computed(()=>({action:!0}));return()=>{const O={class:k.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:B,onFocus:A,onBlur:L};s&&(O.disabled=!0);const z=[],P=t.h("input",O);z.push(P);const q=[],U={class:["action-icon"]},j=t.h(I.value,U),Z={class:M.value,onClick:Q},K=t.h("view",Z,{default:()=>[j]});if(q.push(K),E.value){const ve=t.h("view",{class:$.value},[i.unit]);q.push(ve)}const X={class:T.value},G=t.h("view",X,{default:()=>q});z.push(G);const ee={default:()=>z};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 _=me(i,vn);_.disabled=!1,_.readonly=d.value||m.value,_.visible=C.value,_["onUpdate:visible"]=V,_.modelValue=v.value,_["onUpdate:modelValue"]=D,_.text=b.value,_["onUpdate:text"]=F,_.onChange=w;const oe=t.h(r,_);ee.hide=()=>[oe];const le=me(i,de,ue);return t.h(l,le,ee)}}}}const{componentName:hu,create:gu,scope:yu}=W("picker-item"),Qn=gu(pu(hu,yu,be,te.CircleClose,te.ArrowRight,yt,!1)),_t=(e,o,l)=>e.map(n=>{const{value:a="value",text:r="text",children:s="children"}=l??{},{[a]:i,[r]:c,[s]:d,...m}=n,f={loading:!1,...m,level:o?(o&&o.level||0)+1:0,value:i,text:c,children:d,_parent:o};return f.children&&f.children.length&&(f.children=_t(f.children,f,l)),f}),ns=(e,o)=>{let l=0,n;for(;(n=e[l++])&&o(n)!==!0;)n.children&&n.children.length&&ns(n.children,o)},vu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},ku=(e,o)=>{const l={...vu,...o||{}},{topId:n,idKey:a,pidKey:r,sortKey:s}=l;let i=[],c={};return e.forEach(d=>{d={...d};const{[a]:m,[r]:f}=d,h=c[f]=c[f]||[];!i.length&&f===n&&(i=h),h.push(d),d.children=c[m]||(c[m]=[])}),s&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((m,f)=>m[s]-f[s])}),c=null,i},bu=/scroll|auto|overlay/i,ls=window;function Su(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function bn(e,o=ls){let l=e;for(;l&&l!==o&&Su(l);){const{overflowY:n}=window.getComputedStyle(l);if(bu.test(n))return l;l=l.parentNode}return o}function as(e,o=ls){const l=t.ref();return t.onMounted(()=>{e.value&&(l.value=bn(e.value,o))}),l}const{create:Cu}=W("sticky"),wu=Cu({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 b=!1;if(e.position==="top")b=d?r.value>m.top&&y.bottom>0:r.value>m.top;else{const u=document.documentElement.clientHeight;b=d?y.bottom>0&&u-r.value-h.height>y.top:u-r.value<m.bottom}return b},v=()=>{if(d)if(e.position==="top"){const b=y.bottom-r.value-h.height;return b<0?b:0}else{const b=document.documentElement.clientHeight,u=y.bottom-(b-r.value);return u<0?u:0}return 0};a.transform=v(),a.fixed=g()};return t.watch(()=>a.fixed,d=>{o("change",d)}),t.onMounted(()=>{c(),bn(l.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{bn(l.value).removeEventListener("scroll",c)}),{rootRef:l,rootStyle:s,stickyRef:n,stickyStyle:i}}});function Nu(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 Mt=J(wu,[["render",Nu]]),Bu=(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 Vu{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Au}=W("tabs"),$u=Au({components:{[Mt.name]:Mt,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=w=>{w.forEach((A,L)=>{let F=A.type;if(F=F.name||F,F=="fox-tab-pane"){let T=new Vu;if(A.props?.title||A.props?.["pane-key"]||A.props?.paneKey){let E=lt(A.props?.["pane-key"]),x=E=="number"||E=="string"?String(A.props?.["pane-key"]):null,$=lt(A.props?.paneKey),H=$=="number"||$=="string"?String(A.props?.paneKey):null;T.title=A.props?.title,T.paneKey=x||H||String(L),T.disabled=A.props?.disabled}r.value.push(T)}else{if(A.children==" ")return;Array.isArray(A.children)&&s(A.children)}})},i=t.ref(e.modelValue||0),c=w=>{let A=r.value.findIndex(L=>L.paneKey==w);r.value.length==0||A==-1||(i.value=A)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),f=t.ref([]),h=w=>{const A=m.value,L=f.value;if(!A||!L||!L[i.value])return;const F=L[i.value];let T=0;e.direction==="vertical"?T=F.offsetTop-A.offsetTop+10-(A.offsetHeight-F.offsetHeight)/2:T=F.offsetLeft-(A.offsetWidth-F.offsetWidth)/2,y(A,T,w?0:.3,e.direction)},y=(w,A,L,F)=>{let T=0;const E=F==="horizontal"?w.scrollLeft:w.scrollTop,x=L===0?1:Math.round(L*1e3/16);function $(){F==="horizontal"?w.scrollLeft+=(A-E)/x:w.scrollTop+=(A-E)/x,++T<x&&Pe($)}$()},g=(w=l.default?.())=>{r.value=[],w=w?.filter(A=>typeof A.children!="string"),w&&w.length&&s(w),c(e.modelValue),t.nextTick(()=>{h()})},v=w=>{a=w.fixed};t.watch(()=>l.default?.(),w=>{g(w)});const b=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,w=>{if(c(w),h(),a){let A=Ve(n.value).top+b(),L=Math.ceil(A-e.top);window.scrollTo({top:L,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:w=>{o("update:modelValue",w.paneKey),o("change",w)},tabChange:(w,A)=>{o("click",w),!(w.disabled||i.value==A)&&(i.value=A,u.updateValue(w))},setTabItemRef:(w,A)=>{f.value[A]=w}},{tabsContentRef:p,touchState:k,touchMethods:S}=Bu(e,u),N=t.computed(()=>{let w=i.value*100;k.moving&&(w+=k.offset);let A={transform:e.direction=="horizontal"?`translate3d(-${w}%, 0, 0)`:`translate3d( 0,-${w}%, 0)`,transitionDuration:k.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(A={}),A}),C=t.computed(()=>({background:e.background})),B=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),V=t.computed(()=>{if(!e.titleGutter)return{};const w=fe(e.titleGutter);return e.direction==="vertical"?{marginTop:w,marginBottom:w}:{marginLeft:w,marginRight:w}}),D=t.computed(()=>l.fixedTitle);return{navRef:m,tabsContentRef:p,titles:r,contentStyle:N,tabsNavStyle:C,titleStyle:V,tabsActiveStyle:B,container:n,getScrollY:d,onStickyScroll:v,...u,...S,hasFixedTitle:D}}}),Tu=["onClick"],Eu={key:0,class:"fox-tabs__titles-fixed-item"},Du=["onClick"],xu={key:0,class:"fox-tabs__titles-fixed-item"};function Iu(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,Tu))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Eu,[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,Du))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",xu,[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 zt=J($u,[["render",Iu]]),{create:qu}=W("tab-pane"),Mu=qu({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 zu(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(Mu,[["render",zu]]);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 ns(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:Lu,scope:Pu}=W("cascader-pane"),Fu=Lu({components:{Loading:te.Loading,Checklist:te.Checklist,[zt.name]:zt,[Lt.name]:Lt},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:o}){const l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),n=t.ref(0),a=t.ref(!1),r=t.ref(e.modelValue),s=t.ref(new Ja([],{})),i=t.ref([]),c=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),d=new Map;let m;const f=async()=>{d.clear(),i.value=[],n.value=0,a.value=!1,m=null;let{options:u}=e;l.value.convertConfig&&(u=ku(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 k=s.value.nodes.find(S=>S.value===u[0]);if(k){p=[k.value],a.value=!0;const S=await u.slice(1).reduce(async(N,C)=>{const B=await N;await y(B);const V=B?.children?.find(D=>D.value===C);return V&&p.push(C),Promise.resolve(V)},Promise.resolve(k));await y(S),a.value=!1}}p.length&&u===e.modelValue&&s.value.getPathNodesByValue(p).map((S,N)=>{n.value=N,b.handleNode(S,!0)})},y=async u=>{if(!u)return;if(!l.value.lazyLoad){u.leaf=!0;return}if(s.value.isLeaf(u,c.value)||s.value.hasChildren(u,c.value))return;u.loading=!0;const p=u.root?null:u;let k=d.get(u);k||(k=new Promise(N=>{l.value.lazyLoad?.(u,N)}),d.set(u,k));const S=await k;Array.isArray(S)&&S.length>0?s.value.updateChildren(S,p):u.leaf=!0,u.loading=!1,d.delete(u)},g=u=>{const p=u.map(k=>k.value);r.value=p,o("change",p,u),o("update:modelValue",p,u)},{t:v}=ae.useFoxI18n(Pu),b={async handleNode(u,p){const{disabled:k,loading:S}=u;if(!(!p&&k||!i.value[n.value])){if(s.value.isLeaf(u,c.value)){if(u.leaf=!0,i.value[n.value].selectedNode=u,i.value=i.value.slice(0,u.level+1),!p){const 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(B=>B.selectedNode);o("pathChange",C)}return}m=u,!S&&(await y(u),m===u&&(i.value[n.value].selectedNode=u,b.handleNode(u,p)))}},handleTabClick(u){m=null,n.value=Number(u.paneKey)},formatTabTitle(u){return u.selectedNode?u.selectedNode.text:v("select")},isSelected(u,p){return u.selectedNode&&u.selectedNode.value===p.value}};return t.watch([l,()=>e.options],()=>{f()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,u=>{u!==r.value&&(r.value=u,h())}),t.watch(()=>e.visible,u=>{u&&Array.isArray(r.value)&&r.value.length>0&&h()}),{panes:i,initLoading:a,tabsCursor:n,...b}}}),Ru={role:"menu",class:"fox-cascader__pane"},Ou=["aria-checked","aria-disabled","onClick"],Ku={class:"fox-cascader__item__title"},Uu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Hu(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-tab-pane"),d=t.resolveComponent("fox-tabs");return t.openBlock(),t.createBlock(d,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":o[0]||(o[0]=m=>e.tabsCursor=m),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(m,f)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(m),key:f},{default:t.withCtx(()=>[t.createElementVNode("view",Ru,[(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",Ku,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,Ou))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Uu]),_:1}))]),_:1},8,["modelValue","onClick"])}const ju=J(Fu,[["render",Hu]]),{create:Wu}=W("cascader"),Yu=Wu({components:{FoxCascaderPane:ju,FoxPopup:ie},props:{...ze,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:o}){const l=t.ref(e.modelValue),n=t.computed({get(){return e.visible},set(s){o("update:visible",s)}}),a=(s,i)=>{l.value=s,n.value=!1,o("change",s,i),o("update:modelValue",s)},r=s=>{o("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==l.value&&(l.value=s)}),{onChange:a,onPathChange:r,innerValue:l,innerVisible:n}}}),Xu=["innerHTML"];function Qu(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,Xu)):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(Yu,[["render",Qu]]);function Pt(e,o){const l=e.textKey??"text";return o[l]??""}function Ft(e,o){const l=e.valueKey??"value";return o[l]}function rs(e,o){const l=e.childrenKey??"children";return o[l]}function Gt(e,o=[]){const l={texts:[],values:[]};for(let n=0;n<o.length;n++){const a=o[n],r=Pt(e,a),s=Ft(e,a);l.texts.push(r),l.values.push(s??"")}return l}function ss(e,o,l,n,a=[]){if(!l)return;const r=l[n];for(let s=0;s<o.length;s++)if(Pt(e,o[s])===r){const c=Ft(e,o[s])??"",d={[e.textKey]:r,[e.valueKey]:c};a.push(d);const m=rs(e,o[s]);Array.isArray(m)&&ss(e,m,l,n+1,a);return}}function is(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=Pt(e,o[s])??"",d={[e.textKey]:c,[e.valueKey]:r};a.push(d);const m=rs(e,o[s]);Array.isArray(m)&&is(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=Pt(e,o[n]),r=Pt(e,l[n]);if(a!==r)return!1;const s=Ft(e,o[n]),i=Ft(e,l[n]);if(s!==i)return!1}return!0}let Gu=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 Zu(){const e=t.getCurrentInstance();return new Gu(e.proxy)}function Ju(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),v=Zu(),b=t.ref([]);t.watch([()=>i.source,()=>i.params],async([P,q])=>{P&&(b.value=await v.load(P,q))},{immediate:!0});const u=t.ref([]),p=t.computed(()=>Array.isArray(u.value)?u.value.join(" "):u.value),k=t.ref([]),S=t.ref([]);t.watch([()=>i.modelValue],async([P])=>{if(i.lazy===!0){S.value.length==0&&(u.value=Array.isArray(P)?P:[],k.value=Array.isArray(P)?P:[]);return}if(i.valueType==="item"){let q=P;if(!Jo(i,q,S.value)){S.value=q;let U=Gt(i,q);u.value=U.texts,k.value=U.values}}else if(i.valueType==="text"){let q=P,U=[];if(ss(i,b.value,q,0,U),!Jo(i,U,S.value)){S.value=U;let j=Gt(i,U);q.value=j.texts,k.value=j.values}}else{let q=[];if(is(i,b.value,P,0,q),!Jo(i,q,S.value)){S.value=q;let U=Gt(i,q);u.value=U.texts,k.value=U.values}}},{immediate:!0});const N="fox-input-item",C=t.computed(()=>({[N]:!0,[`${N}__disabled`]:d.value})),B=Ne(t.computed(()=>i.textAlign),"textAlign"),V=t.computed(()=>{const P={};return B.value&&(P["text-align"]=B.value),P}),D=t.ref(!1),w=()=>{d.value===!0||m.value===!0||(D.value=!0)},A=P=>{D.value=P},L=(P,q)=>{let U=q.map(Z=>{if(Z==null)return Z;let K={...Z};return Reflect.deleteProperty(K,"text"),K[i.textKey]=Z.text??"",Reflect.deleteProperty(K,"value"),K[i.valueKey]=Z.value??"",K});S.value=U;let j=Gt(i,U);u.value=j.texts,k.value=j.values,i.valueType==="text"?(f("change",u.value,U),f("update:modelValue",u.value)):i.valueType==="item"?(f("change",U,U),f("update:modelValue",U)):(f("change",k.value,U),f("update:modelValue",k.value)),f("update:pathNodes",U)},F=P=>{let q=P.map(U=>{if(U==null)return U;let j={...U};return Reflect.deleteProperty(j,"text"),j[i.textKey]=U.text??"",Reflect.deleteProperty(j,"value"),j[i.valueKey]=U.value??"",j});f("pathChange",q)},T=P=>{g.value=!0,f("focus",k.value,P)},E=P=>{setTimeout(()=>{g.value=!1},0),f("blur",k.value,P)},x=t.computed(()=>({[`${N}__append`]:!0})),$=t.computed(()=>ge(i.unit)>0),H=t.computed(()=>ge(i.unit)>0&&!g.value),R=t.computed(()=>({hidden:!H.value})),Y=P=>{S.value=[],u.value=[],k.value=[],f("update:modelValue",[]),f("change",[],P),f("clear",[]),f("update:pathNodes",[])},Q=t.computed(()=>i.clearable&&!d.value&&!m.value),I=t.computed(()=>{let P=k.value&&k.value.length>0;return i.clearable&&P&&g.value}),M=P=>{I.value?Y(P):w()},O=t.computed(()=>I.value&&Q.value?n:a),z=t.computed(()=>({action:!0}));return()=>{const P={class:C.value,style:V.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:w,onFocus:T,onBlur:E};s&&(P.disabled=!0);const q=[],U=t.h("input",P);q.push(U);const j=[],Z={class:["action-icon"]},K=t.h(O.value,Z),X={class:z.value,onClick:M},G=t.h("view",X,{default:()=>[K]});if(j.push(G),$.value){const Ze=t.h("view",{class:R.value},[i.unit]);j.push(Ze)}const ee={class:x.value},_=t.h("view",ee,{default:()=>j});q.push(_);const oe={default:()=>q};oe.label=c.slots.default,oe.prepend=c.slots.prepend,oe.append=c.slots.append,oe.fixedPreTip=c.slots.fixedPreTip,oe.fixedTip=c.slots.fixedTip;let le={};le.visible=D.value,le["onUpdate:visible"]=A,le.modelValue=k.value,le.onChange=L,le.onPathChange=F,le.options=b.value,le.title=i.title,le.lazy=i.lazy,le.lazyLoad=i.lazyLoad,le.valueKey=i.valueKey,le.textKey=i.textKey,le.childrenKey=i.childrenKey,le.convertConfig=i.convertConfig;const Te=t.h(r,le);oe.hide=()=>[Te];const ve=me(i,de,ue);return t.h(l,ve,oe)}}}}const{componentName:_u,create:ed,scope:td}=W("cascader-item"),Gn=ed(Ju(_u,td,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 cs={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",v="Invalid Date",b=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},k=function(F,T,E){var x=String(F);return!x||x.length>=T?F:""+Array(T+1-x.length).join(E)+F},S={s:k,z:function(F){var T=-F.utcOffset(),E=Math.abs(T),x=Math.floor(E/60),$=E%60;return(T<=0?"+":"-")+k(x,2,"0")+":"+k($,2,"0")},m:function F(T,E){if(T.date()<E.date())return-F(E,T);var x=12*(E.year()-T.year())+(E.month()-T.month()),$=T.clone().add(x,f),H=E-$<0,R=T.clone().add(x+(H?-1:1),f);return+(-(x+(E-$)/(H?$-R:R-$))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:f,y,w:m,d,D:g,h:c,m:i,s,ms:r,Q:h}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},N="en",C={};C[N]=p;var B=function(F){return F instanceof A},V=function F(T,E,x){var $;if(!T)return N;if(typeof T=="string"){var H=T.toLowerCase();C[H]&&($=H),E&&(C[H]=E,$=H);var R=T.split("-");if(!$&&R.length>1)return F(R[0])}else{var Y=T.name;C[Y]=T,$=Y}return!x&&$&&(N=$),$||!x&&N},D=function(F,T){if(B(F))return F.clone();var E=typeof T=="object"?T:{};return E.date=F,E.args=arguments,new A(E)},w=S;w.l=V,w.i=B,w.w=function(F,T){return D(F,{locale:T.$L,utc:T.$u,x:T.$x,$offset:T.$offset})};var A=function(){function F(E){this.$L=V(E.locale,null,!0),this.parse(E)}var T=F.prototype;return T.parse=function(E){this.$d=function(x){var $=x.date,H=x.utc;if($===null)return new Date(NaN);if(w.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var R=$.match(b);if(R){var Y=R[2]-1||0,Q=(R[7]||"0").substring(0,3);return H?new Date(Date.UTC(R[1],Y,R[3]||1,R[4]||0,R[5]||0,R[6]||0,Q)):new Date(R[1],Y,R[3]||1,R[4]||0,R[5]||0,R[6]||0,Q)}}return new Date($)}(E),this.$x=E.x||{},this.init()},T.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},T.$utils=function(){return w},T.isValid=function(){return this.$d.toString()!==v},T.isSame=function(E,x){var $=D(E);return this.startOf(x)<=$&&$<=this.endOf(x)},T.isAfter=function(E,x){return D(E)<this.startOf(x)},T.isBefore=function(E,x){return this.endOf(x)<D(E)},T.$g=function(E,x,$){return w.u(E)?this[x]:this.set($,E)},T.unix=function(){return Math.floor(this.valueOf()/1e3)},T.valueOf=function(){return this.$d.getTime()},T.startOf=function(E,x){var $=this,H=!!w.u(x)||x,R=w.p(E),Y=function(U,j){var Z=w.w($.$u?Date.UTC($.$y,j,U):new Date($.$y,j,U),$);return H?Z:Z.endOf(d)},Q=function(U,j){return w.w($.toDate()[U].apply($.toDate("s"),(H?[0,0,0,0]:[23,59,59,999]).slice(j)),$)},I=this.$W,M=this.$M,O=this.$D,z="set"+(this.$u?"UTC":"");switch(R){case y:return H?Y(1,0):Y(31,11);case f:return H?Y(1,M):Y(0,M+1);case m:var P=this.$locale().weekStart||0,q=(I<P?I+7:I)-P;return Y(H?O-q:O+(6-q),M);case d:case g:return Q(z+"Hours",0);case c:return Q(z+"Minutes",1);case i:return Q(z+"Seconds",2);case s:return Q(z+"Milliseconds",3);default:return this.clone()}},T.endOf=function(E){return this.startOf(E,!1)},T.$set=function(E,x){var $,H=w.p(E),R="set"+(this.$u?"UTC":""),Y=($={},$[d]=R+"Date",$[g]=R+"Date",$[f]=R+"Month",$[y]=R+"FullYear",$[c]=R+"Hours",$[i]=R+"Minutes",$[s]=R+"Seconds",$[r]=R+"Milliseconds",$)[H],Q=H===d?this.$D+(x-this.$W):x;if(H===f||H===y){var I=this.clone().set(g,1);I.$d[Y](Q),I.init(),this.$d=I.set(g,Math.min(this.$D,I.daysInMonth())).$d}else Y&&this.$d[Y](Q);return this.init(),this},T.set=function(E,x){return this.clone().$set(E,x)},T.get=function(E){return this[w.p(E)]()},T.add=function(E,x){var $,H=this;E=Number(E);var R=w.p(x),Y=function(M){var O=D(H);return w.w(O.date(O.date()+Math.round(M*E)),H)};if(R===f)return this.set(f,this.$M+E);if(R===y)return this.set(y,this.$y+E);if(R===d)return Y(1);if(R===m)return Y(7);var Q=($={},$[i]=n,$[c]=a,$[s]=l,$)[R]||1,I=this.$d.getTime()+E*Q;return w.w(I,this)},T.subtract=function(E,x){return this.add(-1*E,x)},T.format=function(E){var x=this,$=this.$locale();if(!this.isValid())return $.invalidDate||v;var H=E||"YYYY-MM-DDTHH:mm:ssZ",R=w.z(this),Y=this.$H,Q=this.$m,I=this.$M,M=$.weekdays,O=$.months,z=function(j,Z,K,X){return j&&(j[Z]||j(x,H))||K[Z].slice(0,X)},P=function(j){return w.s(Y%12||12,j,"0")},q=$.meridiem||function(j,Z,K){var X=j<12?"AM":"PM";return K?X.toLowerCase():X},U={YY:String(this.$y).slice(-2),YYYY:this.$y,M:I+1,MM:w.s(I+1,2,"0"),MMM:z($.monthsShort,I,O,3),MMMM:z(O,I),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:z($.weekdaysMin,this.$W,M,2),ddd:z($.weekdaysShort,this.$W,M,3),dddd:M[this.$W],H:String(Y),HH:w.s(Y,2,"0"),h:P(1),hh:P(2),a:q(Y,Q,!0),A:q(Y,Q,!1),m:String(Q),mm:w.s(Q,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:R};return H.replace(u,function(j,Z){return Z||U[j]||R.replace(":","")})},T.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},T.diff=function(E,x,$){var H,R=w.p(x),Y=D(E),Q=(Y.utcOffset()-this.utcOffset())*n,I=this-Y,M=w.m(this,Y);return M=(H={},H[y]=M/12,H[f]=M,H[h]=M/3,H[m]=(I-Q)/6048e5,H[d]=(I-Q)/864e5,H[c]=I/a,H[i]=I/n,H[s]=I/l,H)[R]||I,$?M:w.a(M)},T.daysInMonth=function(){return this.endOf(f).$D},T.$locale=function(){return C[this.$L]},T.locale=function(E,x){if(!E)return this.$L;var $=this.clone(),H=V(E,x,!0);return H&&($.$L=H),$},T.clone=function(){return w.w(this.$d,this)},T.toDate=function(){return new Date(this.valueOf())},T.toJSON=function(){return this.isValid()?this.toISOString():null},T.toISOString=function(){return this.$d.toISOString()},T.toString=function(){return this.$d.toUTCString()},F}(),L=A.prototype;return D.prototype=L,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",d],["$M",f],["$y",y],["$D",g]].forEach(function(F){L[F[1]]=function(T){return this.$g(T,F[0],F[1])}}),D.extend=function(F,T){return F.$i||(F(T,A,D),F.$i=!0),D},D.locale=V,D.isDayjs=B,D.unix=function(F){return D(1e3*F)},D.en=C[N],D.Ls=C,D.p={},D})})(cs);var od=cs.exports;const Le=je(od);var us={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){var l={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(b){this[v]=+b}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var u=b.match(/([+-]|\d\d)/g),p=60*u[1]+(+u[2]||0);return p===0?0:u[0]==="+"?-p:p}(v)}],f=function(v){var b=i[v];return b&&(b.indexOf?b:b.s.concat(b.f))},h=function(v,b){var u,p=i.meridiem;if(p){for(var k=1;k<=24;k+=1)if(v.indexOf(p(k,0,b))>-1){u=k>12;break}}else u=v===(b?"pm":"PM");return u},y={A:[s,function(v){this.afternoon=h(v,!1)}],a:[s,function(v){this.afternoon=h(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[a,d("day")],Do:[s,function(v){var b=i.ordinal,u=v.match(/\d+/);if(this.day=u[0],b)for(var p=1;p<=31;p+=1)b(p).replace(/\[|\]/g,"")===v&&(this.day=p)}],M:[r,d("month")],MM:[a,d("month")],MMM:[s,function(v){var b=f("months"),u=(f("monthsShort")||b.map(function(p){return p.slice(0,3)})).indexOf(v)+1;if(u<1)throw new Error;this.month=u%12||u}],MMMM:[s,function(v){var b=f("months").indexOf(v)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(v){this.year=c(v)}],YYYY:[/\d{4}/,d("year")],Z:m,ZZ:m};function g(v){var b,u;b=v,u=i&&i.formats;for(var p=(v=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(D,w,A){var L=A&&A.toUpperCase();return w||u[A]||l[A]||u[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,T,E){return T||E.slice(1)})})).match(n),k=p.length,S=0;S<k;S+=1){var N=p[S],C=y[N],B=C&&C[0],V=C&&C[1];p[S]=V?{regex:B,parser:V}:N.replace(/^\[|\]$/g,"")}return function(D){for(var w={},A=0,L=0;A<k;A+=1){var F=p[A];if(typeof F=="string")L+=F.length;else{var T=F.regex,E=F.parser,x=D.slice(L),$=T.exec(x)[0];E.call(w,$),D=D.replace($,"")}}return function(H){var R=H.afternoon;if(R!==void 0){var Y=H.hours;R?Y<12&&(H.hours+=12):Y===12&&(H.hours=0),delete H.afternoon}}(w),w}}return function(v,b,u){u.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(c=v.parseTwoDigitYear);var p=b.prototype,k=p.parse;p.parse=function(S){var N=S.date,C=S.utc,B=S.args;this.$u=C;var V=B[1];if(typeof V=="string"){var D=B[2]===!0,w=B[3]===!0,A=D||w,L=B[2];w&&(L=B[2]),i=this.$locale(),!D&&L&&(i=u.Ls[L]),this.$d=function(x,$,H){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*x);var R=g($)(x),Y=R.year,Q=R.month,I=R.day,M=R.hours,O=R.minutes,z=R.seconds,P=R.milliseconds,q=R.zone,U=new Date,j=I||(Y||Q?1:U.getDate()),Z=Y||U.getFullYear(),K=0;Y&&!Q||(K=Q>0?Q-1:U.getMonth());var X=M||0,G=O||0,ee=z||0,_=P||0;return q?new Date(Date.UTC(Z,K,j,X,G,ee,_+60*q.offset*1e3)):H?new Date(Date.UTC(Z,K,j,X,G,ee,_)):new Date(Z,K,j,X,G,ee,_)}catch{return new Date("")}}(N,V,C),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),A&&N!=this.format(V)&&(this.$d=new Date("")),i={}}else if(V instanceof Array)for(var F=V.length,T=1;T<=F;T+=1){B[1]=V[T-1];var E=u.apply(this,B);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}T===F&&(this.$d=new Date(""))}else k.call(this,S)}}})})(us);var nd=us.exports;const ld=je(nd);var ds={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)}}})})(ds);var ad=ds.exports;const rd=je(ad);var fs={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,v){var b=f.name?f:f.$locale(),u=s(b[h]),p=s(b[y]),k=u||p.map(function(N){return N.slice(0,g)});if(!v)return k;var S=b.weekStart;return k.map(function(N,C){return k[(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,v,b){return v||b.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)}}})})(fs);var sd=fs.exports;const id=je(sd);var ms={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)}}})})(ms);var cd=ms.exports;const ud=je(cd);var ps={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}}})})(ps);var dd=ps.exports;const fd=je(dd);var hs={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")}}})})(hs);var md=hs.exports;const pd=je(md);var gs={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)}}})})(gs);var hd=gs.exports;const gd=je(hd);var ys={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)}}})})(ys);var yd=ys.exports;const vd=je(yd);Le.extend(id);Le.extend(rd);Le.extend(ld);Le.extend(ud);Le.extend(fd);Le.extend(pd);Le.extend(gd);Le.extend(vd);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:kd,scope:bd}=W("date-picker"),Sd=kd({components:{[yt.name]:yt},props:{...Cn},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(bd),n={day:l("day"),year:l("year"),month:l("month"),hour:l("hour"),minute:l("minute"),seconds:l("seconds")},a=t.ref(!1);t.watch(()=>e.visible,u=>{a.value=u});function r(u,p){return new Date(u,p,0).getDate()}const s=(u,p)=>{const k=e[`${u}Date`],S=k.getFullYear();let N=1,C=1,B=0,V=0;u==="max"&&(N=12,C=r(p.getFullYear(),p.getMonth()+1),B=23,V=59);const D=V;return p.getFullYear()===S&&(N=k.getMonth()+1,p.getMonth()+1===N&&(C=k.getDate(),p.getDate()===C&&(B=k.getHours(),p.getHours()===B&&(V=k.getMinutes())))),{[`${u}Year`]:S,[`${u}Month`]:N,[`${u}Date`]:C,[`${u}Hour`]:B,[`${u}Minute`]:V,[`${u}Seconds`]:D}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:u,maxDate:p,maxMonth:k,maxHour:S,maxMinute:N,maxSeconds:C}=s("max",h.value),{minYear:B,minDate:V,minMonth:D,minHour:w,minMinute:A,minSeconds:L}=s("min",h.value);let F=[{type:"year",range:[B,u]},{type:"month",range:[D,k]},{type:"day",range:[V,p]},{type:"hour",range:[w,S]},{type:"minute",range:[A,N]},{type:"seconds",range:[L,C]}];switch(e.type){case"date":F=F.slice(0,3);break;case"datetime":F=F.slice(0,5);break;case"time":F=F.slice(3,6);break;case"year-month":F=F.slice(0,2);break;case"month-day":F=F.slice(1,3);break;case"datehour":F=F.slice(0,4);break;case"hour-minute":F=F.slice(3,5);break}return F}),c=(u,p,k)=>{if(!(p>u))return null;const S=[];for(;u<=p;)e.isShowChinese?S.push({text:u+n[k],value:u}):S.push({text:`${u}`,value:u}),k==="minute"?u+=e.minuteStep:u++;return S},d=t.computed(()=>{let u=[];return i.value.forEach(p=>{let k=c(p.range[0],p.range[1],p.type);k&&u.push(k)}),u}),m=(u,p)=>u==="year"?p.getFullYear():u==="month"?p.getMonth()+1:u==="day"?p.getDate():u==="hour"?p.getHours():u==="minute"?p.getMinutes():u==="seconds"?p.getSeconds():0,f=t.ref(),h=t.ref(null);t.watchEffect(()=>{let u,p=e.modelValue;if(typeof p=="string"?p.length==0?u=new Date:e.valueFormat?u=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 k=[];i.value.forEach(S=>{let N=m(S.type,u);k.push(N)}),f.value=k}});const y=u=>{if(e.type==="date"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])))}else if(e.type==="datetime"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3],p[4])}else if(e.type==="time"){let p=u,k=h.value??new Date,S=new Date(k.getFullYear(),k.getMonth(),k.getDate(),p[0],p[1],p[2]);h.value=S}else if(e.type==="year-month"){let p=u,k=new Date(p[0],p[1]-1);h.value=k}else if(e.type==="month-day"){let p=u,k=h.value??new Date,S=new Date(k.getFullYear(),p[0]-1,p[1]);h.value=S}else if(e.type==="datehour"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3])}else if(e.type==="hour-minute"){let p=u,k=h.value??new Date,S=new Date(k.getFullYear(),k.getMonth(),k.getDate(),p[0],p[1]);h.value=S}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 k=Sn(e,p,e.valueFormat);o("update:modelValue",k)}else o("update:modelValue",p);o("update:visible",!1),o("confirm",u)},onClear:()=>{o("clear")}}}});function Cd(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(Sd,[["render",Cd]]);function wd(e){let o=e.format;if(!o){let l=e.type??"date";o=Zn[l]}return o}function Nd(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),b=Ee(i,"modelValue",M=>M==null?null:typeof M=="string"?M.length==0?null:i.valueFormat?mo(i,M,i.valueFormat)??M:mo(i,M,Zn[i.type])??M:Oe(M)?M:null),u=t.computed(()=>{if(!b.value)return"";const M=wd(i);return Sn(i,b.value,M)}),p="fox-input-item",k=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const M={};return S.value&&(M["text-align"]=S.value),M}),C=t.ref(!1),B=()=>{C.value=!0},V=()=>{C.value=!1};c.expose({showPicker:B,hidePicker:V});const D=M=>{C.value=M},w=M=>{if(b.value=M,i.valueFormat){let O=Sn(i,M,i.valueFormat);f("update:modelValue",O,{}),f("change",O,{})}else f("update:modelValue",M,{}),f("change",M,{})},A=M=>{let z=M.target.value;g.value=!0,f("focus",z,M)},L=M=>{setTimeout(()=>{g.value=!1},0);let z=M.target.value;i.maxLength&&z.length>Number(i.maxLength)&&(z=z.slice(0,Number(i.maxLength))),f("blur",z,M)},F=t.computed(()=>({[`${p}__append`]:!0})),T=t.computed(()=>ge(i.unit)>0),E=t.computed(()=>ge(i.unit)>0&&!g.value),x=t.computed(()=>({hidden:!E.value})),$=M=>{b.value="",f("update:modelValue","",M),f("change","",M),f("clear",""),V()},H=t.computed(()=>i.clearable&&!d.value&&!m.value),R=t.computed(()=>{let M=ge(b.value)>0;return i.clearable&&M&&g.value}),Y=M=>{R.value?$(M):B()},Q=t.computed(()=>R.value&&H.value?n:a),I=t.computed(()=>({action:!0}));return()=>{const M={class:k.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:B,onFocus:A,onBlur:L};s&&(M.disabled=!0);const O=[],z=t.h("input",M);O.push(z);const P=[],q={class:["action-icon"]},U=t.h(Q.value,q),j={class:I.value,onClick:Y},Z=t.h("view",j,{default:()=>[U]});if(P.push(Z),T.value){const ve=t.h("view",{class:x.value},[i.unit]);P.push(ve)}const K={class:F.value},X=t.h("view",K,{default:()=>P});O.push(X);const G={default:()=>O};G.label=c.slots.default,G.prepend=c.slots.prepend,G.append=c.slots.append,G.fixedPreTip=c.slots.fixedPreTip,G.fixedTip=c.slots.fixedTip;const ee=me(i,Cn);ee.valueFormat=null,ee.disabled=!1,ee.readonly=d.value||m.value,ee.visible=C.value,ee["onUpdate:visible"]=D,ee.modelValue=b.value,ee["onUpdate:modelValue"]=w,ee.onClear=$;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,_);G.hide=()=>[oe];const le=me(i,de,ue);return t.h(l,le,G)}}}}const{create:Bd,componentName:Vd,scope:Ad}=W("date-item"),Jn=Bd(Nd(Vd,Ad,be,te.CircleClose,te.Date,qo,!1)),$d=39,Td=64,{create:Ed,scope:Dd}=W("calendar-pane"),xd=Ed({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(Dd),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),v=t.computed(()=>l["top-info"]),b=t.computed(()=>l["bottom-info"]),u=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),p=q=>q.split("-"),k=q=>ne.isEqual(u.currDate[0],q),S=q=>ne.isEqual(u.currDate[1],q),N=q=>u.currDate?.length>0?u.currDate?.some(U=>ne.isEqual(U,q)):!1,C=(q,U)=>U.curData[0]+"-"+U.curData[1]+"-"+ne.getNumTwoBit(+q.day),B=(q,U)=>{const j=C(q,U),{type:Z}=e;return q.type=="curr"?ne.isEqual(u.currDate,j)||(Z=="range"||Z=="week")&&(k(j)||S(j))||Z=="multiple"&&N(j)?`${u.dayPrefix}--active`:u.propStartDate&&ne.compareDate(j,u.propStartDate)||u.propEndDate&&ne.compareDate(u.propEndDate,j)?`${u.dayPrefix}--disabled`:(Z=="range"||Z=="week")&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&ne.compareDate(u.currDate[0],j)&&ne.compareDate(j,u.currDate[1])?`${u.dayPrefix}--choose`:null:`${u.dayPrefix}--disabled`},V=()=>{const{type:q}=e;if(q=="range"&&u.chooseData.length==2||q!="range"){let U=u.chooseData.slice(0);q=="week"&&(U={weekDate:[w(u.chooseData[0]),w(u.chooseData[1])]}),o("choose",U),e.poppable&&o("update")}},D=(q,U,j=!1)=>{if(B(q,U)!=`${u.dayPrefix}--disabled`){const{type:Z}=e;let[K,X]=U.curData,G=[...U.curData];if(G[2]=ne.getNumTwoBit(Number(q.day)),G[3]=`${G[0]}-${G[1]}-${G[2]}`,G[4]=ne.getWhatDay(+G[0],+G[1],+G[2]),Z=="multiple")if(u.currDate?.length>0){let ee;u.currDate?.forEach((_,oe)=>{_==G[3]&&(ee=oe)}),j?u.chooseData.push([...G]):ee!==void 0?(u.currDate.splice(ee,1),u.chooseData.splice(ee,1)):(u.currDate.push(G[3]),u.chooseData.push([...G]))}else u.currDate=[G[3]],u.chooseData=[[...G]];else if(Z=="range"){let ee=Object.values(u.currDate).length;ee==2||ee==0?u.currDate=[G[3]]:ne.compareDate(u.currDate[0],G[3])?Array.isArray(u.currDate)&&u.currDate.push(G[3]):Array.isArray(u.currDate)&&u.currDate.unshift(G[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...G]]:ne.compareDate(u.chooseData[0][3],G[3])?u.chooseData=[...u.chooseData,[...G]]:u.chooseData=[[...G],...u.chooseData]}else if(Z=="week"){let ee=ne.getWeekDate(K,X,q.day,e.firstDayOfWeek);u.propStartDate&&ne.compareDate(ee[0],u.propStartDate)&&ee.splice(0,1,u.propStartDate),u.propEndDate&&ne.compareDate(u.propEndDate,ee[1])&&ee.splice(1,1,u.propEndDate),u.currDate=ee,u.chooseData=[ne.formatResultDate(ee[0]),ne.formatResultDate(ee[1])]}else u.currDate=G[3],u.chooseData=[...G];if(!j){let ee=u.chooseData;Z=="week"&&(ee={weekDate:[w(u.chooseData[0]),w(u.chooseData[1])]}),o("select",ee),(e.isAutoBackFill||!e.poppable)&&V()}}},w=q=>{let[U,j,Z]=q;return{date:q,monthWeekNum:ne.getMonthWeek(U,j,Z,e.firstDayOfWeek),yearWeekNum:ne.getYearWeek(U,j,Z,e.firstDayOfWeek)}},A=q=>{const U=q=="prev"?u.monthsData[0]:u.monthsData[u.monthsData.length-1];let j=parseInt(U.curData[0]),Z=parseInt(U.curData[1].toString().replace(/^0/,""));switch(q){case"prev":Z==1&&(j-=1),Z=Z==1?12:--Z;break;case"next":Z==12&&(j+=1),Z=Z==12?1:++Z;break}return[j+"",ne.getNumTwoBit(Z),ne.getMonthDays(String(j),String(Z))+""]},L=(q,U,j)=>{let{year:Z,month:K}=j;return U=="prev"&&q>=7&&(q-=7),Array.from(Array(q),(X,G)=>({day:String(G+1),type:U,year:Z,month:K}))},F=(q,U,j,Z)=>{q=q-e.firstDayOfWeek;let{year:K,month:X}=j;return U=="prev"&&q>=7&&(q-=7),Array.from(Array(Z),(ee,_)=>({day:String(_+1),type:U,year:K,month:X})).slice(Z-q)},T=(q,U)=>{const j=ne.getMonthPreDay(+q[0],+q[1]);let Z=Number(q[1])-1,K=Number(q[0]);Z<=0&&(Z=12,K+=1);const X=ne.getMonthDays(String(q[0]),String(q[1])),G=ne.getMonthDays(K+"",Z+""),ee={year:q[0],month:q[1]},_={curData:q,title:a("monthTitle",{year:ee.year,month:ee.month}),monthData:[...F(j,"prev",{month:String(Z),year:String(K)},G),...L(X,"curr",ee)],cssHeight:0,cssScrollHeight:0},oe=_.monthData.length>35?6:5;_.cssHeight=$d+Td*oe;let le=0;u.monthsData.length>0&&(le=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),_.cssScrollHeight=le,U=="next"?(!u.endData||!ne.compareDate(`${u.endData[0]}-${u.endData[1]}-${ne.getMonthDays(u.endData[0],u.endData[1])}`,`${q[0]}-${q[1]}-${q[2]}`))&&u.monthsData.push(_):!u.startData||!ne.compareDate(`${q[0]}-${q[1]}-${q[2]}`,`${u.startData[0]}-${u.startData[1]}-01`)?u.monthsData.unshift(_):u.unLoadPrev=!0},E=()=>{let q=e.startDate?e.startDate:ne.getDay(0),U=e.endDate?e.endDate:ne.getDay(365);u.propStartDate=q,u.propEndDate=U,u.startData=p(q),u.endData=p(U),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(u.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const j={year:Number(u.startData[0]),month:Number(u.startData[1])},Z={year:Number(u.endData[0]),month:Number(u.endData[1])};let K=Z.month-j.month;Z.year-j.year>0&&(K=K+12*(Z.year-j.year)),K<=0&&(K=1),T(u.startData,"next");let X=1;do T(A("next"),"next");while(X++<K);if(u.monthsNum=K,e.type=="range"&&Array.isArray(u.currDate))u.currDate.length>0&&(q&&ne.compareDate(u.currDate[0],q)&&u.currDate.splice(0,1,q),U&&ne.compareDate(U,u.currDate[1])&&u.currDate.splice(1,1,U),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let G=[],ee={};u.currDate.forEach(_=>{q&&!ne.compareDate(_,q)&&U&&!ne.compareDate(U,_)&&(Object.hasOwnProperty.call(ee,_)||(G.push(_),ee[_]=_))}),u.currDate=[...G],u.defaultData=[...p(G[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[G,ee,_]=p(u.currDate[0]),oe=ne.getWeekDate(G,ee,_,e.firstDayOfWeek);u.currDate=oe,q&&ne.compareDate(u.currDate[0],q)&&u.currDate.splice(0,1,q),U&&ne.compareDate(U,u.currDate[1])&&u.currDate.splice(1,1,U),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]}}else u.currDate&&(q&&ne.compareDate(u.currDate,q)?u.currDate=q:U&&!ne.compareDate(u.currDate,U)&&(u.currDate=U),u.defaultData=[...p(u.currDate)])};$e({scrollToDate:q=>{ne.compareDate(q,u.propStartDate)?q=u.propStartDate:ne.compareDate(q,u.propEndDate)||(q=u.propEndDate);let U=p(q);u.monthsData.forEach((j,Z)=>{if(j.title==a("monthTitle",{year:U[0],month:U[1]})&&c.value){let K=u.monthsData[Z].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let X=0,G=setInterval(()=>{if(X++,c.value){let ee=K/10;c.value.scrollTop=c.value.scrollTop+ee}X>=10&&(clearInterval(G),c.value&&(c.value.scrollTop=u.monthsData[Z].cssScrollHeight))},40)}else c.value.scrollTop=u.monthsData[Z].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)},doLayout:()=>{let q=0,U=0;u.defaultData.length>0&&u.monthsData.forEach((K,X)=>{K.title==a("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(q=X),(e.type=="range"||e.type=="week")&&K.title==a("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(U=X)}),R(u.monthsNum,q),u.currentIndex=q,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(D({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),D({day:u.defaultData[5],type:"curr"},u.monthsData[U],!0)):e.type=="week"?D({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(K=>{let X=p(K),G=u.currentIndex;u.monthsData.forEach((ee,_)=>{ee.title==a("monthTitle",{year:X[0],month:X[1]})&&(G=_)}),D({day:X[2],type:"curr"},u.monthsData[G],!0)}):D({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let j=u.monthsData[u.monthsData.length-1],Z=j.cssHeight+j.cssScrollHeight;We(()=>{c?.value&&d?.value&&f?.value&&(h.value=c.value.clientHeight,d.value.style.height=`${Z}px`,c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(Z/(u.monthsNum+1))}});const R=(q,U)=>{q>=3?U>0&&U<q?u.defaultRange=[U-1,U+3]:U==0?u.defaultRange=[U,U+4]:U==q&&(u.defaultRange=[U-2,U+2]):u.defaultRange=[0,q+2];let j=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=j},Y=(q,U)=>(e.type=="range"||e.type=="week")&&q.type=="curr"&&B(q,U)=="fox-calendar__day--active",Q=(q,U)=>Y(q,U)&&k(C(q,U)),I=(q,U)=>u.currDate.length>=2&&S(C(q,U))?Y(q,U):!1,M=()=>{if(u.currDate.length>=2)return ne.isEqual(u.currDate[0],u.currDate[1])},O=q=>{const U=`${q.year}-${q.month}-${Number(q.day)<10?"0"+q.day:q.day}`;return ne.isEqual(U,ne.date2Str(new Date))},z=q=>{if(u.monthsData.length<=1)return;const U=q.target.scrollTop;let j=Math.floor(U/u.avgHeight);if(j==0)U>=u.monthsData[j+1].cssScrollHeight&&(j+=1);else if(j>0&&j<u.monthsNum-1)U>=u.monthsData[j+1].cssScrollHeight&&(j+=1),U<u.monthsData[j].cssScrollHeight&&(j-=1);else{const Z=Math.round(U+h.value);Z<u.monthsData[j].cssScrollHeight+u.monthsData[j].cssHeight&&U>u.monthsData[j-1].cssScrollHeight&&(j-=1),j+1<=u.monthsNum&&Z>=u.monthsData[j+1].cssScrollHeight+u.monthsData[j+1].cssHeight&&(j+=1),j>=1&&U<u.monthsData[j-1].cssScrollHeight&&(j-=1)}u.currentIndex!==j&&(u.currentIndex=j,R(u.monthsNum,j)),u.yearMonthTitle=u.monthsData[j].title},P=()=>{u.chooseData.splice(0),u.monthsData.splice(0),E()};return E(),t.watch(()=>e.defaultValue,q=>{q&&e.poppable&&P()}),{weeks:i,compConthsData:y,showTopBtn:g,topInfo:v,bottomInfo:b,rangeTip:M,mothsViewScroll:z,getClass:B,isStartTip:Q,isEndTip:I,chooseDay:D,isCurrDay:O,confirm:V,months:c,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:m,viewArea:f}}}),Id={class:"fox-calendar__header"},qd={key:0,class:"fox-calendar__header-title"},Md={key:1,class:"fox-calendar__header-slot"},zd={key:2,class:"fox-calendar__header-subtitle"},Ld={class:"fox-calendar__weekdays",ref:"weeksPanel"},Pd={class:"fox-calendar__panel",ref:"monthsPanel"},Fd={class:"fox-calendar__month-title"},Rd={class:"fox-calendar__days"},Od=["onClick"],Kd={class:"fox-calendar__day-value"},Ud={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Hd={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},jd={key:2,class:"fox-calendar__day-tips--curr"},Wd={key:4,class:"fox-calendar__day-tip"},Yd={key:0,class:"fox-calendar__footer"};function Xd(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",Id,[e.showTitle?(t.openBlock(),t.createElementBlock("view",qd,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Md,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",zd,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Ld,[(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",Pd,[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",Fd,t.toDisplayString(s.title),1),t.createElementVNode("view",Rd,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:m=>e.chooseDay(c,s)},[t.createElementVNode("view",Kd,[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",Ud,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Hd,[t.renderSlot(e.$slots,"bottom-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",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",Wd,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,Od))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Yd,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:o[1]||(o[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const er=J(xd,[["render",Xd]]),Qd=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:Gd}=W("calendar"),Zd=Gd({components:{[er.name]:er,[ie.name]:ie},props:{...wn},emits:["choose","close","update:visible","select"],setup(e,{emit:o,slots:l}){const n=t.computed(()=>l.btn),a=t.computed(()=>l["top-info"]),r=t.computed(()=>l.day),s=t.computed(()=>l["bottom-info"]),i=t.ref(null),c=v=>{i.value?.scrollToDate(v)},d=()=>{i.value?.initPosition()};t.watch(()=>e.visible,v=>{v&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),$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:v=>{o("select",v)},choose:v=>{f(),o("choose",v)},calendarRef:i,showTopBtn:n,topInfo:a,dayInfo:r,bottomInfo:s}}});function Jd(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(Zd,[["render",Jd]]),_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 _d(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),v=t.computed(()=>i.type==="range"),b=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),u=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},p=(z,P="one",q="YYYY-MM-DD")=>{if(Qd(z)){u();return}if(v.value&&Array.isArray(z)&&z.length==2){let U,j;typeof z[0]=="string"?(U=_o(z[0],q),j=_o(z[1],q)):(U=z[0],j=z[1]);let Z=ct(U),K=ct(j);(b.startDate===null||b.startDate.getTime()!==U.getTime()||b.endDate?.getTime()!==j.getTime())&&(b.startDate=U,b.startArray=Z,b.endDate=j,b.endArray=K)}else{let U;typeof z=="string"?U=_o(z,q):U=z;let j=ct(U);(b.startDate===null||b.startDate.getTime()!==U.getTime())&&(b.startDate=U,b.startArray=j)}};p(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,z=>{p(z,i.type,i.valueFormat)});const k=t.computed(()=>{if(b.startDate===null)return"";if(v.value){let z=it(i,b.startDate,i.format),P=it(i,b.endDate,i.format);return`${z} ${i.rangeSeparator} ${P}`}else{let z=it(i,b.startDate,i.format);return i.showWeek&&(z=`${z} ${b.startArray[4]}`),z}}),S=t.computed(()=>{if(b.startDate===null)return null;if(v.value){let z=ne.date2Str(b.startDate),P=ne.date2Str(b.endDate??new Date);return[z,P]}else return ne.date2Str(b.startDate)}),N="fox-input-item",C=t.computed(()=>({[N]:!0,[`${N}__disabled`]:d.value})),B=Ne(t.computed(()=>i.textAlign),"textAlign"),V=t.computed(()=>{const z={};return B.value&&(z["text-align"]=B.value),z}),D=t.ref(!1),w=()=>{m.value||d.value||(D.value=!0)},A=z=>{D.value=z},L=z=>{if(z){if(v.value&&Array.isArray(z)){let P=z[0],q=pe(P[0]),U=pe(P[1]),j=pe(P[2]),Z=new Date(q,U-1,j),K=z[1];q=pe(K[0]),U=pe(K[1]),j=pe(K[2]);let X=new Date(q,U-1,j);if(b.startDate=Z,b.startArray=ct(Z),b.endDate=X,b.endArray=ct(X),i.valueFormat){let G=it(i,Z,i.valueFormat),ee=it(i,X,i.valueFormat);f("update:modelValue",[G,ee],{})}else f("update:modelValue",[Z,X],{})}else{let P=z,q=pe(P[0]),U=pe(P[1]),j=pe(P[2]),Z=new Date(q,U-1,j);if(b.startDate=Z,b.startArray=ct(Z),i.valueFormat){let K=it(i,Z,i.valueFormat);f("update:modelValue",K,{})}else f("update:modelValue",Z,{})}f("change",z,{})}},F=z=>{let q=z.target.value;g.value=!0,f("focus",q,z)},T=z=>{setTimeout(()=>{g.value=!1},0);let q=z.target.value;i.maxLength&&q.length>Number(i.maxLength)&&(q=q.slice(0,Number(i.maxLength))),f("blur",q,z)},E=t.computed(()=>({[`${N}__append`]:!0})),x=t.computed(()=>ge(i.unit)>0),$=t.computed(()=>ge(i.unit)>0&&!g.value),H=t.computed(()=>({hidden:!$.value})),R=z=>{u(),f("update:modelValue",null,z),f("change","",z),f("clear","")},Y=t.computed(()=>i.clearable&&!d.value&&!m.value),Q=t.computed(()=>{let z=ge(k.value)>0;return i.clearable&&z&&g.value}),I=z=>{Q.value?R(z):w()},M=t.computed(()=>Q.value&&Y.value?a:r),O=t.computed(()=>({action:!0}));return()=>{const z={class:C.value,style:V.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:k.value,onClick:w,onFocus:F,onBlur:T};s&&(z.disabled=!0);const P=[],q=t.h("input",z);P.push(q);const U=[],j={class:["action-icon"]},Z=t.h(M.value,j),K={class:O.value,onClick:I},X=t.h("view",K,{default:()=>[Z]});if(U.push(X),x.value){const Ze=t.h("view",{class:H.value},[i.unit]);U.push(Ze)}const G={class:E.value},ee=t.h("view",G,{default:()=>U});P.push(ee);const _={default:()=>P};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const oe=me(i,wn);oe.visible=D.value,oe["onUpdate:visible"]=A,oe["default-value"]=S.value,oe.onChoose=L;const le={};if(c.slots.btn){const Ze=c.slots.btn();le.btn=()=>Ze}c.slots.day&&(le.day=c.slots.day),c.slots.topInfo&&(le.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(le.bottomInfo=c.slots.bottomInfo);const Te=t.h(l,oe,le);_.hide=()=>[Te];const ve=me(i,de,ue);return t.h(n,ve,_)}}}}const{componentName:ef,create:tf,scope:of}=W("calendar-item"),_n=tf(_d(ef,of,Mo,be,{CloseIcon:te.CircleClose,MarkIcon:te.Date},!1)),nf={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 lf(e,{CheckNormal:o,Checked:l}){return{props:{...nf},setup(n,{emit:a,slots:r}){let s=t.inject("parent",null);const i=t.computed(()=>s.label.value===n.label),c=t.computed(()=>n.disabled?"fox-radio__icon--disable":i.value?"fox-radio__icon":"fox-radio__icon--unchecked"),d=t.computed(()=>s.position),m=()=>{if(i.value){if(r.checkedIcon)return r.checkedIcon();{const v=se(n.iconSize),b=n.checkedIcon??l;return t.h(b,{width:v,height:v,class:c.value})}}else{if(r.icon)return r.icon();{const v=se(n.iconSize),b=n.icon??o;return t.h(b,{width:v,height:v,class:c.value})}}},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:af,create:rf}=W("radio"),zo=rf(lf(af,{CheckNormal:te.CheckNormal,Checked:te.CheckChecked})),{componentName:tr,create:sf}=W("radio-group"),Lo=sf({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(Et(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 Et(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function cf(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function uf(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let df=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 ff(){const e=t.getCurrentInstance();return new df(e.proxy)}function mf(e){return{text:e,value:e}}const nr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},pf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}};function hf(e,o,l,n,a){return{props:{...ue,...de,...nr,...pf,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=ff(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,p])=>{if(u){const k=await f.load("radio",u,p);if(k.length>0)if(typeof k[0]=="string"){const C=k.map(B=>mf(B));h.value=C}else h.value=k}},{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 Et(r,u)}),v=u=>{let p=null,k=null;if(h.value.length>0){let S=or(r,h.value,u,"value");y.value=S,S>=0&&(k=h.value[S],r.valueType==="text"?p=eo(r,k):r.valueType==="item"?p=k:p=Et(r,k))}else p=u;m("update:modelValue",p),m("change",p,k)},b=()=>{let u=null,p=null;if(h.value.length>0&&y.value!==-1){let k=h.value[y.value];r.valueType==="text"?u=eo(r,k):r.valueType==="item"?u=k:u=Et(r,k)}m("update:modelValue",u),m("change",u,p)};if($e({clear(){y.value!==-1&&(y.value=-1,b())}}),r.source){const u=()=>{const p=[],k=me(r,nr);return h.value.forEach((S,N)=>{const C=Et(r,S),B=cf(r,S);let V={...k,label:C,disabled:B};const D=uf(r,S,N);V={...V,...D},c.value&&(V.disabled=!0),i.value&&(V.readonly=!0);const w={};if(s.slots.icon&&(w.icon=s.slots.icon),s.slots.checkedIcon&&(w.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const L=s.slots.text(S);w.default=()=>[L]}else{const L=eo(r,S);w.default=()=>L}let A=t.h(a,V,w);p.push(A)}),p};return()=>{const p=u(),k={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"onUpdate:modelValue":v},S=t.h(n,k,{default:()=>p}),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=me(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":v},{default:()=>u})}}}}const{componentName:gf,create:yf,scope:vf}=W("radio-item"),el=yf(hf(gf,vf,be,Lo,zo)),kf=(e,{CheckNormal:o,Checked:l,Indeterminate:n})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(a,{emit:r,slots:s}){const i=t.inject("parent",null),c=t.reactive({partialSelect:a.indeterminate});t.watch(()=>a.indeterminate,k=>{c.partialSelect=k});const d=t.computed(()=>!!i),m=t.computed(()=>d.value?i.value.value.includes(a.label):!!a.modelValue),f=t.computed(()=>d.value?i.position:a.textPosition),h=t.computed(()=>a.disabled?"fox-checkbox__icon--disable":c.partialSelect?"fox-checkbox__icon--indeterminate":m.value?"fox-checkbox__icon":"fox-checkbox__icon--unchecked");let y="";const g=(k,S)=>{y="click",r("update:modelValue",k),r("change",k,S)};t.watch(()=>a.modelValue,k=>{y=="click"?y="":r("change",k)});const v=()=>{if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const k=se(a.iconSize),S=a.indeterminateIcon??n;return t.h(S,{width:k,height:k,class:h.value})}}else if(m.value){if(s.checkedIcon)return s.checkedIcon();{const k=se(a.iconSize),S=a.checkedIcon??l;return t.h(S,{width:k,height:k,class:h.value})}}else{if(s.icon)return s.icon();{const k=se(a.iconSize),S=a.icon??o;return t.h(S,{width:k,height:k,class:h.value})}}},b=()=>t.h("view",{class:`${e}__label ${a.disabled?`${e}__label--disabled`:""}`},s.default?.()),u=()=>t.h("view",{class:`${e}__button ${m.value&&`${e}__button--active`} ${a.disabled?`${e}__button--disabled`:""}`},s.default?.()),p=k=>{if(!(a.disabled||a.readonly)){if(m.value&&c.partialSelect){c.partialSelect=!1,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,B=S.indexOf(C);B>-1?S.splice(B,1):B<=-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():[v(),b()]])}}),{componentName:bf,create:Sf}=W("checkbox"),Po=Sf(kf(bf,{CheckNormal:te.CheckNormal,Checked:te.Checked,Indeterminate:te.CheckDisabled})),{create:Cf,componentName:lr}=W("checkbox-group"),Fo=Cf({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 wf(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function Nf(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let Bf=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 Vf(){const e=t.getCurrentInstance();return new Bf(e.proxy)}function Af(e){return{text:e,value:e}}const $f={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 Tf(e,o,l,n,a){return{props:{...$f,...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=Vf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,p])=>{if(u){const k=await f.load("checkbox",u,p);if(k.length>0)if(typeof k[0]=="string"){const C=k.map(B=>Af(B));h.value=C}else h.value=k}},{immediate:!0});const y=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([u,p])=>{const k=[];Array.isArray(u)&&u.forEach(S=>{let N=ar(r,p,S,r.valueType);N!==-1&&k.push(N)}),!xe(k,y.value)&&(y.value=k)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;let u=[];return y.value.forEach(p=>{let k=h.value[p];u.push(to(r,k))}),u}),v=u=>{let p=[],k=[];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 B=h.value[C];k.push(B),r.valueType==="text"?p.push(Nn(r,B)):r.valueType==="item"?p.push(B):p.push(to(r,B))}),y.value=S}else p=u;m("update:modelValue",p),m("change",p,k)},b=t.ref();if($e({toggleAll:u=>{b.value.toggleAll(u)},toggleReverse:()=>{b.value.toggleReverse()}}),r.source){const u=()=>{const p=[],k=me(r,rr);return h.value.forEach((S,N)=>{const C=to(r,S),B=wf(r,S);let V={...k,label:C,disabled:B};const D=Nf(r,S,N);V={...V,...D},i.value&&(V.disabled=!0),c.value&&(V.readonly=!0);const w={};if(s.slots.icon&&(w.icon=s.slots.icon),s.slots.checkedIcon&&(w.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(w.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const L=s.slots.text(S);w.default=()=>[L]}else{const L=Nn(r,S);w.default=()=>L}let A=t.h(a,V,w);p.push(A)}),p};return()=>{const p=u(),k={class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:g.value,"onUpdate:modelValue":v},S=t.h(n,k,{default:()=>p}),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=me(r,de,ue);return t.h(l,C,N)}}else return()=>{const u=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"onUpdate:modelValue":v},{default:()=>u})}}}}const{componentName:Ef,create:Df,scope:xf}=W("checkbox-item"),tl=Df(Tf(Ef,xf,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:If,create:qf}=W("switch"),Mf=qf({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=If;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}}}),zf={class:"fox-switch-button"};function Lf(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",zf,[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(Mf,[["render",Lf]]);function Pf(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={...me(a,Bn),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},g=[],v=t.h(n,y);g.push(v);const b={default:()=>g};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const u=me(a,de,ue);return u["content-class"]=d,t.h(l,u,b)}}}}const{componentName:Ff,create:Rf,scope:Of}=W("switch-item"),ol=Rf(Pf(Ff,Of,be,Ro));function Kf(e,o,l,n){return{props:{...ue,...de,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur"],setup(a,r){const{emitEvent:s}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},a.prop??r.attrs.name),{toLocaleRefs:i}=ae.useFoxI18n(o),c=i(a,["placeholder"]),d=Ce(t.computed(()=>a.disabled)),m=Ae(t.computed(()=>a.readonly)),f=Ee(a,"modelValue"),h=t.computed(()=>({[`${e}`]:!0})),y=t.computed(()=>({[`${e}__main`]:!0,[`${e}__disabled`]:d.value,[`${e}__placeholder`]:!d.value&&ce(f.value)})),g=Ne(t.computed(()=>a.textAlign),"textAlign"),v=t.computed(()=>{const L={};return g.value&&(L["text-align"]=g.value),L}),b=t.computed(()=>!ce(a.modelValue)||r.slots.main?!0:!!ce(a.desc)),u=t.computed(()=>ce(f.value)?c.placeholder.value:f.value),p=t.computed(()=>!ce(a.desc)||r.slots.sub),k=t.computed(()=>({[`${e}__sub`]:!0})),S=t.computed(()=>{const L={};return g.value&&(L["text-align"]=g.value),L}),N=()=>{s("focus",f.value)},C=()=>{s("blur",f.value)},B=t.computed(()=>({[`${e}__append`]:!0})),V=t.computed(()=>ge(a.unit)>0),D=L=>{d.value==!0||m.value==!0||s("click")},w=t.computed(()=>a.icon??l),A=t.computed(()=>({action:!0}));return()=>{const L=[];if(typeof r.slots.content=="function"){const M=r.slots.content();L.push(M)}else{const M=[];if(b.value){const P={tabIndex:0,class:y.value,style:v.value,onFocus:N,onBlur:C,onClick:D};let q=null;r.slots.main?q=t.h("view",P,[r.slots.main(u.value)]):q=t.h("view",P,[u.value]),M.push(q)}if(p.value){const P={tabIndex:0,class:k.value,style:S.value,onFocus:N,onBlur:C,onClick:D};let q=null;r.slots.sub?q=t.h("view",P,[r.slots.sub(a.desc)]):q=t.h("view",P,[a.desc]),M.push(q)}const O={class:h.value},z=t.h("view",O,M);L.push(z)}const F=[],T=se(a.iconSize);let E=r.slots.icon;if(!E){const M={width:T,height:T,class:["action-icon"]};E=t.h(w.value,M)}const x={class:A.value,onClick:D},$=t.h("view",x,{default:()=>[E]});if(F.push($),V.value){const M=t.h("view",{},[a.unit]);F.push(M)}const H={class:B.value},R=t.h("view",H,{default:()=>F});L.push(R);const Y={default:()=>L};Y.label=r.slots.default,Y.prepend=r.slots.prepend,Y.append=r.slots.append,Y.fixedPreTip=r.slots.fixedPreTip,Y.fixedTip=r.slots.fixedTip;const Q=me(a,de,ue);return t.h(n,Q,Y)}}}}const{componentName:Uf,create:Hf,scope:jf}=W("link-item"),nl=Hf(Kf(Uf,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:Wf,componentName:Yf}=W("rate"),Xf=Wf({props:{...Vn},emits:["update:modelValue","change"],setup(e,{emit:o,slots:l}){const n=t.ref([]),a=t.computed(()=>({[Yf]:!0})),r=y=>{o("update:modelValue",y),o("change",y)},s=(y,g)=>{if(e.disabled||e.readonly)return;let v=0;g===1&&e.modelValue===g||(v=g,e.allowHalf&&y==2&&(v-=.5)),r(v)},i=(y,g,v)=>{let b=0;for(let u=g.value.length-1;u>=0;u--){const p=g.value[u];if(y>p.offsetLeft){v?b=u+(y>p.offsetLeft+p.clientWidth/2?1:.5):b=u+1;break}}return b},c=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:fe,renderIcon:(y,g)=>t.h(y,g),rateRefs:n,refRandomId:m,slots:l,customIcon:f}}}),Qf=["id"],Gf={class:"fox-rate-item__icon--full"},Zf={key:0,class:"fox-rate-item__icon--half"},Jf={key:1,class:"fox-rate-item__icon--half"};function _f(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",Gf,[(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",Zf,[(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",Jf,[(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,Qf))),128))],34)}const vt=J(Xf,[["render",_f]]);function em(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={...me(a,Vn),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},g=[],v=t.h(n,y);g.push(v);const b={default:()=>g};if(r.slots.default){const k=r.slots.default();b.label=()=>k}const u=me(a,de,ue);return u["content-class"]=d,t.h(l,u,b)}}}}const{componentName:tm,create:om,scope:nm}=W("rate-item"),ll=om(em(tm,nm,be,vt)),An={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeClose:{type:Function}};function lm(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(vs(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 vs(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function am(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function rm(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let sm=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 im(){const e=t.getCurrentInstance();return new sm(e.proxy)}const{componentName:cm,create:um,scope:dm}=W("infinite-loading"),fm=um({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(dm),a=n(e,["pullText","loadText","loadMoreText"]),r=t.ref(),s=as(r),i=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[cm]:!0})),d=v=>v?v.offsetTop+d(v.offsetParent):0,m=()=>{let v=0,b=0,u="down";if(s.value==window){const p=qn();r.value&&(v=d(r.value)+r.value.offsetHeight-p-window.innerHeight),b=p}else{const{scrollHeight:p,clientHeight:k,scrollTop:S}=s.value;v=p-k-S,b=S}return i.beforeScrollTop>b?u="up":u="down",i.beforeScrollTop=b,o("scroll-change",b),v<=e.threshold&&u=="down"},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,v=>{v||(i.isInfiniting=!1)}),{classes:c,scroller:r,...t.toRefs(i),slots:l,...a}}}),mm={class:"fox-infinite__container"},pm={class:"fox-infinite__bottom"},hm={key:0,class:"fox-infinite__bottom-box"},gm={class:"fox-infinite__bottom-box__text"},ym={class:"fox-infinite__bottom-tips"};function vm(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",mm,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",pm,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",hm,[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",gm,t.toDisplayString(e.loadText),1)])])):e.hasMore?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"finished",{key:1},()=>[t.createElementVNode("view",ym,t.toDisplayString(e.loadMoreText),1)])])],2)}const Oo=J(fm,[["render",vm]]),{componentName:km,create:bm}=W("button"),Sm=bm({components:{Loading:te.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o,slots:l}){const{type:n,size:a,shape:r,disabled:s,loading:i,color:c,plain:d,block:m}=t.toRefs(e),f=g=>{!i.value&&!s.value&&o("click",g)},h=t.computed(()=>{const g=km;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}}}),Cm={class:"fox-button__wrap"};function wm(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",Cm,[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(Sm,[["render",wm]]),{create:Nm,scope:Bm}=W("searchbar"),Vm=Nm({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(Bm),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)},v=p=>{o("click-right-icon",e.modelValue,p)},b=t.computed(()=>({textAlign:e.inputAlign})),u=t.ref(null);return t.onMounted(()=>{e.autofocus&&u.value.focus()}),{...n,inputsearch:u,...t.toRefs(a),valueChange:i,valueFocus:d,valueBlur:m,handleClear:f,handleSubmit:h,searchbarStyle:r,inputSearchbarStyle:s,focusCss:c,clickInput:y,leftIconClick:g,rightIconClick:v,styleSearchbar:b}}}),Am={key:0,class:"fox-searchbar__search-label"},$m={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},Tm=["type","maxlength","placeholder","value","disabled","readonly"],Em={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-search-icon"},Dm={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function xm(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",Am,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",$m,[t.renderSlot(e.$slots,"leftout")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__search-input",e.shape]),style:t.normalizeStyle({...e.inputSearchbarStyle,...e.focusCss})},[e.$slots.leftin?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-searchbar__search-icon fox-searchbar__iptleft-search-icon",onClick:o[0]||(o[0]=(...s)=>e.leftIconClick&&e.leftIconClick(...s))},[t.renderSlot(e.$slots,"leftin")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner",e.$slots.rightin&&"fox-searchbar__input-inner-absolute"])},[t.createElementVNode("form",{class:"fox-searchbar__input-form",action:"#",onSubmit:o[5]||(o[5]=t.withModifiers((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[t.createElementVNode("input",{ref:"inputsearch",class:t.normalizeClass(["fox-searchbar__input-bar",e.clearable&&"fox-searchbar__input-bar_clear"]),type:e.inputType,maxlength:e.maxLength,placeholder:e.placeholder,value:e.modelValue,disabled:e.disabled,readonly:e.readonly,onClick:o[1]||(o[1]=(...s)=>e.clickInput&&e.clickInput(...s)),onInput:o[2]||(o[2]=(...s)=>e.valueChange&&e.valueChange(...s)),onFocus:o[3]||(o[3]=(...s)=>e.valueFocus&&e.valueFocus(...s)),onBlur:o[4]||(o[4]=(...s)=>e.valueBlur&&e.valueBlur(...s)),style:t.normalizeStyle(e.styleSearchbar)},null,46,Tm)],32)],2),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner-icon",e.$slots.rightin&&"fox-searchbar__input-inner-icon-absolute"])},[e.clearable?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,onClick:o[6]||(o[6]=(...s)=>e.handleClear&&e.handleClear(...s)),class:"fox-searchbar__search-icon fox-searchbar__input-clear"},[e.$slots["clear-icon"]?t.renderSlot(e.$slots,"clear-icon",{key:0}):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.clearIcon),{key:1}))],512)),[[t.vShow,String(e.modelValue).length>0]]):t.createCommentVNode("",!0),e.$slots.rightin?(t.openBlock(),t.createElementBlock("view",Em,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],2)],6),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",Dm,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const Ko=J(Vm,[["render",xm]]);function Im(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=im(),d=t.ref([]),m=t.ref(0),f=t.ref(""),h=t.shallowRef(null),y=t.computed(()=>{const I={};return n.params&&Object.assign(I,n.params),ce(f.value)||(I[`${n.searchKey}`]=f.value),h.value&&Object.assign(I,h.value),I});let g=!0;const v=async(I,M,O)=>{try{if(u.value===!1)return;let z=null;ce(f.value)||(z=q=>{const U=oo(n,q);if(typeof U=="string"&&U.includes(f.value))return!0;const j=sr(n,q);return!!(typeof j=="string"&&j.includes(f.value))});const P=await c.load("actionsheet",I,M,O,y.value,g,z??void 0);g=!1,Array.isArray(P)?(d.value=P,m.value=1,u.value=!1):!Array.isArray(P.page)||P.page.length===0?(console.warn("[FoxUI] can not load more data"),u.value=!1):(Reflect.apply([].push,d.value,P.page),m.value=Math.ceil(d.value.length/n.pageSize),(P.totalSize&&d.value.length>=P.totalSize||O<P.page.length)&&(u.value=!1)),b.value=!1}catch(z){console.error("[FoxUI] ActionSheet load more data fail",z),u.value=!0,m.value=0,d.value=[]}setTimeout(()=>{a("loaded-data")},250)},b=t.ref(!1),u=t.ref(!0),p=async()=>{if(!n.source){b.value=!1;return}await v(n.source,m.value+1,n.pageSize)};t.watch(()=>f.value,(I,M)=>{ce(I)&&!ce(M)&&p()}),t.watch([()=>n.source,()=>n.pageSize,()=>n.params],async([I,M,O])=>{n.source&&p()},{immediate:!0});const k=t.computed(()=>!n.multiple&&n.isAutoBackFill),S=t.ref([]);let N=null;const C=t.ref(n.visible);t.watch(()=>n.visible,I=>{C.value!==I&&(C.value=I),I?N=[...S.value]:N=null});const B=(I,M)=>{const O=[];return Array.isArray(I)||(I=[I]),I.forEach(z=>{let P=lm(n,M,z,n.valueType);P!==-1&&O.push(P)}),xe(O,S.value)?!1:(S.value=O,!0)};t.watch([()=>n.modelValue,()=>d.value],([I,M],[O,z])=>{if(B(I,M)){const q=V();D(q)}},{deep:!0});const V=()=>{const I=[],M=[],O=[];for(let U of S.value){const j=d.value[U];M.push(j);const Z=oo(n,j);if(O.push(Z),n.valueType==="item")I.push(j);else if(n.valueType==="text")I.push(Z);else{const K=vs(n,j);I.push(K)}}let z=null,P=null,q=null;return n.multiple?(z=I,P=O,q=M):(z=I[0]??null,P=O[0]??null,q=M[0]??null),{value:z,text:P,item:q}},D=I=>{a("update:modelValue",I.value),a("update:text",I.text),a("change",I.value,I.item,I.text)},w=()=>{N&&(S.value=N)},A=I=>{const M=S.value.indexOf(I);n.multiple?M===-1?S.value.push(I):S.value.splice(M,1):M===-1?S.value=[I]:S.value=[],(k.value||!n.poppable&&!n.showFooter)&&T()},L=I=>{C.value=I,a("update:visible",I)},F=()=>{const I=()=>{w(),L(!1)};if(typeof n.beforeClose=="function"){const M=n.beforeClose("close");qt(M)?M.then(O=>{O!==!1&&I()}).catch(()=>{I()}):M!==!1&&I()}else I()},T=()=>{const I=V(),M=()=>{D(I),L(!1)};if(typeof n.beforeClose=="function"){const O=n.beforeClose("confirm",I.value,I.item,I.text);qt(O)?O.then(z=>{z!==!1&&M()}).catch(()=>{M()}):O!==!1&&M()}else M()},E=()=>{u.value=!0,m.value=0,d.value=[],n.source&&p()},x=()=>{let I=i.title.value??"";r.title&&(I=r.title());const M=t.h("view",{class:["fox-actionsheet__header-title"]},[I]),O=t.h(te.Close,{class:["fox-actionsheet__header-icon"],onClick:F});return t.h("view",{class:["fox-actionsheet__header"]},[M,O])},$=()=>{let I=null;if(r.search)I=r.search();else{const M={onSearch:E,placeholder:i.seachPlaceholder.value,disabled:n.disabled,modelValue:f.value,"onUpdate:modelValue":O=>{f.value=O}};I=t.h(Ko,M,{leftin:()=>t.h(te.Search2)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[I])},H=(I,M,O,z,P)=>{if(r.optionLabel)return r.optionLabel({text:I,checked:M,disabled:O,subText:z,item:P});const q=[],U=t.h("view",{class:"fox-actionsheet__list-item-text"},[I]);if(q.push(U),z){const j=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[z]);q.push(j)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},q)},R=(I,M,O,z)=>{if(r.optionIcon)return r.optionIcon({checked:I,disabled:M,iconSize:O,item:z});if(I){if(r.checkedIcon)return r.checkedIcon({disabled:M,item:z});{const P=n.checkedIcon??te.Checked;return t.h(P,{width:O,height:O,class:["fox-actionsheet__list-item-icon"]})}}else{if(r.icon)return r.icon({disabled:M,item:z});{const P=n.icon??te.CheckNormal;return t.h(P,{width:O,height:O,class:["fox-actionsheet__list-item-icon"]})}}},Y=()=>{const I=[];for(let M=0;M<d.value.length;M++){const O=d.value[M],z=oo(n,O),P=sr(n,O),q=["fox-actionsheet__list-item"],U={};let j=am(n,O),Z=n.iconSize?se(n.iconSize):null;const K=rm(n,O,M);K&&(j=j||K.disabled,K.class&&q.push(K.class),K.style&&Object.assign(U,K.style)),j=!!(n.disabled||j);const X=S.value.includes(M);j&&q.push("is-disabled"),X&&q.push("is-checked");const G={class:q,style:U,key:`${M}`,onClick:()=>{j||A(M)}};let ee=[];if(r.option)ee.push(r.option({item:O,checked:X,disabled:j}));else{const oe=H(z,X,j,P,O);ee.push(oe);const le=R(X,j,Z,O);ee.push(le)}const _=t.h("view",G,ee);I.push(_)}return I},Q=()=>{let I=[];if(r.buttons)I=r.buttons();else{const O=t.h(Ie,{type:"primary",block:"block",onClick:T,disabled:n.disabled},{default:()=>i.confirmText.value});I.push(O)}return t.h("view",{class:"fox-actionsheet__footer"},[I])};return $e({search:async(I=null,M=!0)=>{h.value=I&&t.toRaw(I),t.triggerRef(h),M&&(u.value=!0,m.value=0,d.value=[]),t.nextTick(()=>{p()})},clear:()=>{u.value=!0,m.value=0,d.value=[]},confirm:()=>{T()},cancel:()=>{F()}}),()=>{const I=[];if(n.showHeader){const Z=x();I.push(Z)}if(n.showSearchbar){const Z=$();I.push(Z)}let M=null;if(r.content)M=r.content();else{const Z=Y(),K={hasMore:u.value,loadText:i.loadText.value,loadMoreText:i.loadMoreText.value,modelValue:b.value,"onUpdate:modelValue":X=>{b.value=X},onLoadMore:p};M=t.h(Oo,K,{default:()=>Z})}const O={};n.optionsHeight&&(O.height=n.optionsHeight);const z={"fox-actionsheet__list":!0};n.poppable||(z["fox-actionsheet__list--inner"]=!0);const P=t.h("view",{class:z,style:O},[M]);if(I.push(P),n.showFooter&&!k.value){const Z=Q();I.push(Z)}const q=t.h("view",{class:"fox-actionsheet"},I);if(!n.poppable)return q;const U=["fox-actionsheet__popup"];n.popClass&&U.push(n.popClass);const j={popClass:U.join(" "),visible:C.value,closeable:!1,"onUpdate:visible":L,position:n.position,round:"round",onClickOverlay:F,closeOnClickOverlay:n.closeOnClickOverlay};return t.h(ie,j,{default:()=>q})}}}}const{componentName:qm,create:Mm,scope:zm}=W("actionsheet-pane"),Uo=Mm(Im(qm,zm)),Lm={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 Pm(e,o,l,n,a,r,s){return{props:{...ue,...de,...Lm,...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),v=Ee(i,"modelValue"),b=t.ref(""),u=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),p="fox-input-item",k=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const z={};return S.value&&(z["text-align"]=S.value),z}),C=t.ref(!1),B=()=>{C.value=!0},V=z=>{C.value=z},D=z=>{v.value=z,f("update:modelValue",z)},w=(z,P)=>{f("change",z,P)},A=z=>{let q=z.target.value;g.value=!0,f("focus",q,z)},L=z=>{setTimeout(()=>{g.value=!1},0);let q=z.target.value;i.maxLength&&q.length>Number(i.maxLength)&&(q=q.slice(0,Number(i.maxLength))),f("blur",q,z)},F=z=>{b.value=z,f("update:text",z)},T=t.computed(()=>({[`${p}__append`]:!0})),E=t.computed(()=>ge(i.unit)>0),x=t.computed(()=>ge(i.unit)>0&&!g.value),$=t.computed(()=>({hidden:!x.value})),H=z=>{v.value="",f("update:modelValue","",z),f("change","",z),f("clear","")},R=t.computed(()=>i.clearable&&!d.value&&!m.value),Y=t.computed(()=>ge(v.value)>0&&g.value),Q=z=>{Y.value?H(z):B()},I=t.computed(()=>Y.value&&R.value?n:a),M=t.computed(()=>({action:!0})),O=t.ref(null);return $e({search:z=>{O.value&&O.value.search(z)},clear:()=>{O.value&&O.value.clear},confirm:z=>{O.value&&O.value.confirm()},cancel:()=>{O.value&&O.value.cancel()}}),()=>{const z={class:k.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:B,onFocus:A,onBlur:L};s&&(z.disabled=!0);const P=[],q=t.h("input",z);P.push(q);const U=[],j={class:["action-icon"]},Z=t.h(I.value,j),K={class:M.value,onClick:Q},X=t.h("view",K,{default:()=>[Z]});if(U.push(X),E.value){const Ze=t.h("view",{class:$.value},[i.unit]);U.push(Ze)}const G={class:T.value},ee=t.h("view",G,{default:()=>U});P.push(ee);const _={default:()=>P};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const oe=me(i,An);oe.ref=O,oe.class=i.actionsheetProps,oe.disabled=d.value||m.value,oe.visible=C.value,oe["onUpdate:visible"]=V,oe.modelValue=v.value,oe["onUpdate:modelValue"]=D,oe.text=b.value,oe["onUpdate:text"]=F,oe.onChange=w,oe.poppable=!0;const le={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},Te=t.h(r,oe,le);_.hide=()=>[Te];const ve=me(i,de,ue);return t.h(l,ve,_)}}}}const{componentName:Fm,create:Rm,scope:Om}=W("actionsheet-item"),al=Rm(Pm(Fm,Om,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:Km,create:Um}=W("input-number"),Hm=Um({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=Km;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),n=y=>Number(y).toFixed(Number(e.decimalPlaces)),a=y=>{const g=y.target;o("update:modelValue",g.valueAsNumber,y)},r=(y,g)=>{let v=n(y);o("update:modelValue",v,g),o("change",v,g)},s=(y=Number(e.modelValue))=>y<Number(e.max)&&!e.disabled,i=(y=Number(e.modelValue))=>y>Number(e.min)&&!e.disabled,c=y=>{if(o("reduce",y),i()){let g=Number(e.modelValue)-Number(e.step);r(g,y)}else o("overlimit",y,"reduce")},d=y=>{if(o("add",y),s()){let g=Number(e.modelValue)+Number(e.step);r(g,y)}else o("overlimit",y,"add")},m=y=>{e.disabled||e.readonly||o("focus",y)},f=y=>{if(e.disabled||e.readonly)return;let v=y.target.valueAsNumber;v<Number(e.min)?v=Number(e.min):v>Number(e.max)&&(v=Number(e.max)),r(v,y),o("blur",y)},h=y=>{let 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:fe}}}),jm=["min","max","disabled","readonly","value"];function Wm(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(Hm,[["render",Wm]]);function Ym(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={...me(a,$n),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},v=t.h(n,g,h),b=[];b.push(v);const u={default:()=>b};u.label=r.slots.default,u.fixedPreTip=r.slots.fixedPreTip,u.fixedTip=r.slots.fixedTip;const p=me(a,de,ue);return p["content-class"]=d,t.h(l,p,u)}}}}const{componentName:Xm,create:Qm,scope:Gm}=W("inputnumber-item"),rl=Qm(Ym(Xm,Gm,be,Qe)),{create:Zm,componentName:Zt,scope:QB}=W("tabs-bar"),Jm=Zm({components:{MoreH:te.MoreH},props:{modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{slots:o,emit:l}){const n=t.computed(()=>{const x={};return x[`${Zt}`]=!0,x}),a=t.computed(()=>{const x={};return x[`${Zt}__titles`]=!0,x[`${e.direction}`]=!0,e.align==="left"&&(x.left=!0),e.scroll===!0&&(x.scrollable=!0),e.shape&&(x[`${e.shape}`]=!0),x}),r=t.computed(()=>({})),s=t.computed(()=>{if(!e.gutter)return 0;const x=se(e.gutter);return x<=0?0:x}),i=t.ref(e.modelValue);t.watch(()=>e.modelValue,x=>{i.value!==x&&(i.value=x,E(!1))});const c=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),d=t.ref(),m=t.ref(!1),f=()=>{const x=!m.value;h(x)},h=x=>{const $=x;$?(m.value=$,setTimeout(()=>{c.value["fox-tabs-bar__popup--show"]=!0,c.value["fox-tabs-bar__popup--hide"]=!1},0)):(c.value["fox-tabs-bar__popup--show"]=!1,c.value["fox-tabs-bar__popup--hide"]=!0,d.value?d.value.addEventListener("transitionend",()=>{m.value=!1},{once:!0}):setTimeout(()=>{m.value=!1},0))},y=t.ref(),g=t.ref([]),v=(x,$)=>{g.value[$]=x},b=x=>$=>{v($,x)},u=(x,$)=>{const H=y.value,R=g.value;if(!H||!R||!R[x])return;const Y=R[x];let Q=0;e.direction==="vertical"?Q=Y.offsetTop-(H.offsetHeight-Y.offsetHeight)/2:Q=Y.offsetLeft-(H.offsetWidth-Y.offsetWidth)/2,p(H,Q,$?0:.3,e.direction)},p=(x,$,H,R)=>{let Y=0;const Q=R==="horizontal"?x.scrollLeft:x.scrollTop,I=H===0?1:Math.round(H*1e3/16);function M(){R==="horizontal"?x.scrollLeft+=($-Q)/I:x.scrollTop+=($-Q)/I,++Y<I&&Pe(M)}M()},k=x=>x[e.textKey],S=x=>x[e.valueKey],N=x=>x[e.visibleKey],C=x=>x[e.disabledKey],B=(x,$)=>{const H=e.itemOptions;return typeof H=="function"?H(x,$):H||null},V=(x,$)=>{const H=S(x),R={};R[`${Zt}__titles-item`]=!0,R.disabled=C(x),R.active=H===i.value,e.shape&&(R[`${e.shape}`]=!0),e.ellipsis&&(R.ellipsis=!0);const Y=B(x,$);return Y&&(Y.class&&(R[`${Y.class}`]=!0),Y.disabled===!0&&(R.disabled=Y.disabled)),R},D=(x,$)=>{const H={};if(s.value>0){const Y=Math.abs(s.value/2);e.direction==="vertical"?(H["margin-top"]=`${Y}px`,H["margin-bottom"]=`${Y}px`):(H["margin-left"]=`${Y}px`,H["margin-right"]=`${Y}px`)}const R=B(x,$);return R&&R.style&&Object.assign(H,R.style),H},w=(x,$)=>`${S(x)??$}`,A=(x,$)=>{const H=S(x),R={};R[`${Zt}__popup-item`]=!0,R.disabled=C(x),R.active=H===i.value,e.shape&&(R[`${e.shape}`]=!0);const Y=B(x,$);return Y&&Y.disabled===!0&&(R.disabled=Y.disabled),R},L=t.computed(()=>(e.data??[]).filter($=>N($)!==!1)),F=(x,$)=>{const H=S(x);i.value=H,e.scroll&&u($,!1),l("update:modelValue",H),l("change",x,$)},T=(x,$)=>{F(x,$),h(!1)},E=x=>{if(!Array.isArray(e.data)||!e.scroll)return;const $=e.data.findIndex(H=>S(H)===i.value);$!==-1&&u($,x)};return t.watch(()=>e.data,()=>{setTimeout(E,0)}),t.onMounted(()=>{E(!0)}),{classes:n,titlesClasses:a,titlesStyles:r,itemClasses:V,itemStyles:D,itemKey:w,popupItemClasses:A,filterTabItems:L,getItemText:k,getItemValue:S,onTabChange:F,titlesRef:y,createItemRefs:b,togglePopupVisible:f,onQuickNavigate:T,popupClasses:c,popupVisible:m,popupRef:d}}}),_m={class:"fox-tabs-bar"},ep=["onClick"],tp={class:"fox-tabs-bar__titles-item-text"},op=t.createElementVNode("view",{class:"fox-tabs-bar__titles-item-line"},null,-1),np=["onClick"];function lp(e,o,l,n,a,r){const s=t.resolveComponent("MoreH");return t.openBlock(),t.createElementBlock("view",_m,[t.createElementVNode("view",{ref:"titlesRef",class:t.normalizeClass(e.titlesClasses),style:t.normalizeStyle(e.titlesStyles)},[t.renderSlot(e.$slots,"default",{},()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filterTabItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:e.createItemRefs(c),class:t.normalizeClass(e.itemClasses(i,c)),style:t.normalizeStyle(e.itemStyles(i,c)),key:e.itemKey(i),onClick:d=>e.onTabChange(i,c)},[t.renderSlot(e.$slots,"item",{item:i,index:c},()=>[t.createElementVNode("view",tp,t.toDisplayString(e.getItemText(i)),1),op])],14,ep))),128))])],6),e.showQuickNavigation?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs-bar__navigation",onClick:o[0]||(o[0]=(...i)=>e.togglePopupVisible&&e.togglePopupVisible(...i))},[t.renderSlot(e.$slots,"navigation",{},()=>[t.createVNode(s)])])):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("view",{ref:"popupRef",class:t.normalizeClass(e.popupClasses)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.filterTabItems,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.popupItemClasses(i,c)),key:e.itemKey(i),onClick:d=>e.onQuickNavigate(i,c)},[t.renderSlot(e.$slots,"popup-item",{item:i,index:c},()=>[t.createTextVNode(t.toDisplayString(e.getItemText(i)),1)])],10,np))),128))],2),[[t.vShow,e.popupVisible]])])}const sl=J(Jm,[["render",lp]]),ks=Symbol("TabsStatesKey"),{create:ap}=W("tabs-container"),rp=ap({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(ks,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 sp(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(rp,[["render",sp]]),{create:ip}=W("tabs-pane"),cp=ip({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(ks);t.onMounted(()=>{l.add(e.paneKey)}),t.onBeforeUnmount(()=>{l.remove(e.paneKey)});const n=t.computed(()=>{const r={};return l.direction.value==="vertical"&&l.tabHeight.value>0?r.height=`${l.tabHeight.value}px`:l.tabWidth.value>0&&(r.width=`${l.tabWidth.value}px`),r}),a=t.computed(()=>e.loaded!=null?he(e.loaded):l.isLoaded(e.paneKey));return{styles:n,isLoaded:a}}}),up={class:"fox-tabs-pane__empty"},dp=t.createElementVNode("view",{class:"fox-tabs-pane__empty-text"},"loading",-1);function fp(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",up,[t.createVNode(s,{class:"fox-tabs-pane__empty-icon"}),dp])])],4)}const cl=J(cp,[["render",fp]]),mp={direction:{type:[String],default:"horizontal"},mode:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function pp(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function ir(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function cr(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function hp(e,o){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?o[e.visibleKey]:o.visible??null}function en(e,o){return typeof e.statusKey=="string"&&e.statusKey.length>0?o[e.statusKey]:o.statusKey??null}function tn(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let gp=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 yp(){const e=t.getCurrentInstance();return new gp(e.proxy)}function vp(e,o,l,n){return{props:{...mp},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:s}){const i=e,c=yp(),d=t.ref([]),m=t.computed(()=>d.value.filter(I=>hp(a,I)!==!1)),f=t.ref(-1),h=()=>{const I=a.modelValue,M=m.value.findIndex(O=>ir(a,O)===I);f.value!==M&&(f.value=M,a.scroll&&Y(M,!1))};t.watch([()=>a.modelValue,m],()=>{h()});const y=I=>f.value===I,g=I=>{if(I<0&&I>=m.value.length)return!1;const M=m.value[I],z=(tn(a,M,I)??{}).status??en(a,M);return y(I)||z},v=t.computed(()=>{const I={[i]:!0};return a.mode?I[`is-${a.mode}`]=!0:a.direction&&(I[`is-${a.direction}`]=!0),a.scroll&&(I["is-scroll"]=!0),I}),b=t.computed(()=>({})),u=(I,M,O,z)=>{const P={[`${i}__step`]:!0};return z&&(P[`${z}`]=!0),I===f.value?P["is-active"]=!0:M==="done"?P["is-done"]=!0:M==="error"?P["is-error"]=!0:M==="half"?P["is-half"]=!0:O?P["is-disabled"]=!0:P["is-normal"]=!0,P},p=(I,M={})=>{const O={...M};return I===m.value.length-1?O.flex="0 0 auto":a.step?a.direction==="vertical"?O.height=a.step:O.width=a.step:O.flex="1 1 100%",O},k=(I,M)=>{let O={};if(M<m.value.length-1){const z=M+1;g(M)&&g(z)?a.direction==="vertical"?O.height="100%":O.width="100%":O.opacity="0"}return O},S=I=>m.value.length-1===I,N=(I,M)=>{debugger;if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&M>f.value||f.value===M)return;const O=f.value,z=M;f.value=M,a.scroll&&Y(M,!1);const P=ir(a,I);s("update:modelValue",P);const q={fromIndex:O,currentIndex:z,item:I,items:m.value,clickNavigatePolicy:a.clickNavigatePolicy};s("change",P,q)},C=t.ref(!0),B=async(I,M)=>{try{const O=await c.load("stesbar",I,M);Array.isArray(O)&&(d.value=O),C.value=!1}catch(O){console.error("[FoxUI] Load StepsBar Data Fail",O),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([I,M])=>{I&&B(I,M)},{immediate:!0});const V=(I,M,O,z)=>{let P=null;if(r.icon)P=r.icon({item:I,index:M,status:O});else if(O==="done"){const U={};a.iconSize&&(U.width=a.iconSize,U.height=a.iconSize);const j=a.icon??l;P=t.h(j,U)}else P=t.h("span",{},[`${M+1}`]);const q={class:"fox-steps-bar__icon",onClick:()=>{z||N(I,M)}};return t.h("view",q,[P])},D=(I,M,O)=>{const z=t.h("i",{class:"fox-steps-bar__line-inner",style:k(I,M)});return t.h("view",{class:"fox-steps-bar__line"},[z])},w=()=>{let I=null;if(r.markIcon)I=r.markIcon();else{const O={};a.iconSize&&(O.width=a.markIconSize,O.height=a.markIconSize);const z=a.markIcon??n;I=t.h(z,O)}return t.h("view",{class:"fox-steps-bar__mark"},[I])},A=(I,M,O,z)=>{const P=[];if(!S(M)){const j=D(I,M);P.push(j)}const q=V(I,M,O,z);P.push(q);const U={class:"fox-steps-bar__head"};return t.h("view",U,P)},L=(I,M,O,z)=>{let P=null;r.main?P=r.main({item:I,index:M,status:O}):P=pp(a,I);const q={class:"fox-steps-bar__main",onClick:()=>{z||N(I,M)}};return t.h("view",q,[P])},F=(I,M,O)=>{let z=null;if(r.sub){z=r.sub({item:I,index:M,status:O});const P={class:"fox-steps-bar__sub"};return t.h("view",P,[z])}return null},T=(I,M)=>{const O=tn(a,I,M)??{},z=O.status??en(a,I);let P=cr(a,I);O.disabled===!0&&(P=!0),a.disabled===!0&&(P=!0);const q=[],U=V(I,M,z,P);U&&q.push(U);const j=L(I,M,z,P);j&&q.push(j);const Z=D(I,M);Z&&q.push(Z);const K=t.h("view",{class:"fox-steps-bar__head"},q),X=O.class,G=O.style??{},ee={ref:R(M),class:u(M,z,P,X),style:p(M,G)};return t.h("view",ee,[K])},E=(I,M)=>{const O=tn(a,I,M)??{},z=O.status??en(a,I);let P=cr(a,I);O.disabled===!0&&(P=!0),a.disabled===!0&&(P=!0);const q=[],U=a.layout;for(let X of U)if(X==="head"){const G=A(I,M,z,P);q.push(G)}else if(X==="main"){const G=L(I,M,z,P);q.push(G)}else if(X==="sub"){const G=F(I,M,z);q.push(G)}else if(X==="mark"){const G=w();q.push(G)}const j=O.class,Z=O.style??{},K={ref:R(M),class:u(M,z,P,j),style:p(M,Z)};return t.h("view",K,q)},x=t.ref(),$=t.ref([]),H=(I,M)=>{$.value[M]=I},R=I=>M=>{H(M,I)},Y=(I,M)=>{const O=x.value,z=$.value;if(!O||!z||!z[I])return;const P=z[I];let q=0;a.direction==="vertical"?q=P.offsetTop-(O.offsetHeight-P.offsetHeight)/2:q=P.offsetLeft-(O.offsetWidth-P.offsetWidth)/2,Q(O,q,M?0:.3,a.direction)},Q=(I,M,O,z)=>{let P=0;const q=z==="horizontal"?I.scrollLeft:I.scrollTop,U=O===0?1:Math.round(O*1e3/16);function j(){z==="horizontal"?I.scrollLeft+=(M-q)/U:I.scrollTop+=(M-q)/U,++P<U&&Pe(j)}j()};return()=>{const I=[];if(a.mode==="simple")for(let O=0;O<m.value.length;O++){const z=m.value[O],P=T(z,O);I.push(P)}else for(let O=0;O<m.value.length;O++){const z=m.value[O],P=E(z,O);I.push(P)}const M={ref:x,class:v.value,style:b.value};return t.h("view",M,I)}}}}const{componentName:kp,create:bp,scope:Sp}=W("steps-bar"),ul=bp(vp(kp,Sp,te.Checklist,te.ArrowRight)),ur=10;function Cp(e,o){return e>o&&e>ur?"horizontal":o>e&&o>ur?"vertical":""}function wp(){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=Cp(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 Np(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Bp(e){e.stopPropagation()}function Vp(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&Bp(e)}class Ap{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=Np()}open(o){Array.isArray(o)||(o=[o]),this.els=o;const l=wp(),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),Vp(a,!0),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(o=>{this.touchstart&&o.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function $p(e,o){return new Ap(e,o)}const Tp={top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},draggable:{type:[Boolean]}},Ep=(e,o,l,n=!1)=>({props:{...Tp},emits:["click"],setup(a,{slots:r,emit:s}){const i=t.reactive({top:a.top,right:a.right,bottom:a.bottom,left:a.left}),c=t.computed(()=>({[`${e}`]:!0})),d=t.computed(()=>{const p={};return ce(i.top)||(p.top=i.top),ce(i.right)||(p.right=i.right),ce(i.bottom)||(p.bottom=i.bottom),ce(i.left)||(p.left=i.left),ce(a.width)||(p.width=a.width),ce(a.height)||(p.height=a.height),ce(a.color)||(p.color=a.color),ce(a.background)||(p.background=a.background),p}),m=t.computed(()=>({[`${e}__icon`]:!0})),f=()=>{s("click")},h=t.ref(null),y=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},g={x:0,y:0},u=$p(p=>{if(!h.value)return;const k=h.value;y(),i.left=k.offsetLeft,i.top=k.offsetTop,k.style.left=`${i.left}px`,k.style.top=`${i.top}px`,k.style.right=null,k.style.bottom=null,g.x=i.left,g.y=i.top},p=>{if(!h.value)return;const k=h.value;y(),i.left=g.x+p.x,i.top=g.y+p.y,k.style.left=`${i.left}px`,k.style.top=`${i.top}px`});return t.onMounted(()=>{if(a.draggable&&h.value){const p=[h.value];u.open(p)}}),t.onBeforeUnmount(()=>{a.draggable&&h.value&&u.close()}),()=>{let p=[];const k=typeof r.default=="function"?r.default():[];if(k&&k.length>0)p=k;else{const 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:Dp,create:xp,scope:Ip}=W("floating-button"),dl=xp(Ep(Dp,Ip,te.Uploader,!1)),qp={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}},Mp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function zp(e,o,l){return{props:{...qp},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")},v=(S,N)=>Mp(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),b=()=>{const S=[];if(n.icon){const C={class:[`${c}__header-icon`]},B=v(n.icon,C);S.push(B)}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},B=v(n.closeIcon,C);S.push(B)}const N={class:[`${c}__header`]};return t.h("view",N,S)},u=(S,N)=>{const C=[];if(N){const V={class:`${c}__group-title`},D=t.h("view",V,[N]);C.push(D)}if(S){const V=[];Array.isArray(S)||(S=[S]);for(let D of S){const w={class:`${c}__group-row`,innerHTML:D},A=t.h("view",w);V.push(A)}if(V.length>0){const D={class:`${c}__group-rows`},w=t.h("view",D,V);C.push(w)}}if(C.length===0)return null;const B={class:`${c}__group`};return t.h("view",B,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 B=u(C);S.push(B)}else{const B=u(C.content,C.title);S.push(B)}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)},k=()=>{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 B=t.h("button",C,[n.cancelButtonText??i.cancelText.value]);S.push(B)}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 B=t.h("button",C,[n.confirmButtonText??i.confirmText.value]);S.push(B)}if(S.length===0)return null;const N={class:`${c}__footer`};return t.h("view",N,S)};return()=>{const S=[],N=b();N&&S.push(N);const C=p();C&&S.push(C);const B=k();B&&S.push(B);const V={class:{[`${c}`]:!0,[`${c}--${n.type||"info"}`]:!0}},D=t.h("view",V,S),w=[`${c}__popup`];n.popClass&&w.push(n.popClass);const A={};n.width&&(A.width=typeof n.width=="number"?`${n.width}px`:n.width),n.height&&(A.height=typeof n.height=="number"?`${n.height}px`:n.height);const L={popClass:w.join(" "),style:A,visible:d.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":m,position:n.position,round:"round",onClickOverlay:g,closeOnClickOverlay:n.closeOnClickOverlay};return t.h(l,L,{default:()=>D})}}}}const{componentName:Lp,create:Pp,scope:Fp}=W("messagebox"),Rp=Pp(zp(Lp,Fp,ie)),Op="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%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",Kp="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",Up="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",Hp="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",jp=new Do,Wp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Yp=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-${jp.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(Rp,e);o.appendChild(n),t.render(r,n)},tt={show:(e,o,l,n)=>{const a={...Wp};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=Up:r==="warning"?a.icon=Hp:r==="error"?a.icon=Op:a.icon=Kp),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})},Yp(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}},Xp=(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)},Qp=new Do,Gp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Zp=e=>`${e}-${Qp.get()}`,Jp=Symbol.for("InnerPageScopeKey"),_p=Symbol.for("PageWrapperKey"),eh="FoxLeave",th="FoxAfterLeave",oh={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 nh(e,o,l,n){return{props:{...ze,...oh},emits:["update:visible"],setup(a,{attrs:r,slots:s,emit:i}){t.provide(Jp,!0);const c={};t.provide(_p,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,B)=>Gp(C)?(B.src=C,t.h("img",B)):typeof C=="string"?(Array.isArray(B.class)?B.class.push(C):B.class&&typeof B.class=="object"?B[`${C}`]=!0:typeof B.class=="string"?B.class=`${B.class}, ${C}`:B.class=C,t.h(a.tag,B)):t.h(C,B),v=()=>{if(!a.showHeader)return null;const C=[];if(s.header){const V=s.header();C.push(V)}else if(a.title){const V=t.h("view",{class:`${f}__header-title`},[a.title]);C.push(V)}if(C.length===0)return null;const B={class:[`${f}__header`]};return t.h("view",B,C)},b=()=>{if(!a.showClose)return null;const C={class:[`${f}__close-icon`],onClick:m},B=a.closeIcon??n;return g(B,C)};let u=null;const p=C=>{Xp(th,{},u)},k=Zp(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 B=u.querySelector(".fox-popup");B&&(B.classList.add(`fox-popup-slide-${a.position}-leave-active`),B.classList.add(`fox-popup-slide-${a.position}-leave-to`),B.addEventListener("animationend",p,{once:!0}),B.addEventListener("transitionend",p,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{u=document.querySelector(`.${k}`),u?.addEventListener(eh,N,{once:!0}),S()}),()=>{const C=[],B=v();B&&C.push(B);const V=b();V&&C.push(V);const D=s.default?s.default():[];Reflect.apply([].push,C,D);const w={[`${f}`]:!0};a.mode&&(w[`${f}--${a.mode}`]=!0);const A={class:w},L=t.h("view",A,C),F=[`${f}__popup`,k];a.popClass&&F.push(a.popClass),a.position&&F.push(`${f}__popup--${a.position}`);const T={};a.width&&(T.width=typeof a.width=="number"?`${a.width}px`:a.width),a.height&&(T.height=typeof a.height=="number"?`${a.height}px`:a.height);const x={...me(a,ze),popClass:F.join(" "),style:T,visible:y.value,teleportDisable:!0,closeable:!1,position:a.position,closeOnClickOverlay:a.closeOnClickOverlay,onClickOverlay:m,"onUpdate:visible":h},$=t.h(l,x,{default:()=>L});return t.h("div",{class:[`${f}__root`,k]},[$])}}}}const{componentName:lh,create:ah,scope:rh}=W("popup-wrapper"),fl=ah(nh(lh,rh,ie,te.Close));function sh(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 ih={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 ch(e,o,l=!1){return{props:{...ih},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&&he(n.showOverflowTooltip)){const g=y.clientWidth;sh(y,v=>{r.value=v<=g})}};let m=null;t.onMounted(()=>{if(!he(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 v=null;if(typeof n.highlightFilter=="string"&&n.highlightFilter.length>0){const b=n.highlightFilter;if(y.indexOf(b)!==-1){const p=y.replace(new RegExp(b,"g"),`<span>${b}</span>`);g.innerHTML=p,g.class["is-highlight"]=!0,v=t.h(n.tag,g)}}else if(typeof n.highlightFilter=="function"){const b=n.highlightFilter(y);b&&(g.innerHTML=b,g.class["is-highlight"]=!0,v=t.h(n.tag,g))}return v},h=y=>{a.emit("click",y)};return()=>{const y={onClick:h,class:i.value,style:c.value,ref:s};let g=null;if(he(n.numberFormat)&&typeof a.slots.default=="function"){const p=a.slots.default();if(Array.isArray(p)&&p.length===1){const k=p[0].type.toString();if(k==="Symbol(Text)"||k==="Symbol(v-txt)"){const S=pe(n.digits),N=pe(n.decimalLength),C=he(n.autoPadding);let B=`${p[0].children}`,V=B.split("").reverse().join("");V=po(V,N,C,S,n.separator),B=V.split("").reverse().join(""),n.highlightFilter!==void 0&&(g=f(B,y)),g||(y.innerHTML=B,g=t.h(n.tag,y))}}}else{if(n.highlightFilter!==void 0&&typeof a.slots.default=="function"){const p=a.slots.default();if(Array.isArray(p)&&p.length===1){const k=p[0].type.toString();if(k==="Symbol(Text)"||k==="Symbol(v-txt)"){const S=`${p[0].children}`;g=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 b=null;if(n.icon){const p={[`${e}__mark-wrap`]:!0};n.type&&(p[`${e}__mark-wrap--${n.type}`]=!0);const k={},S=n.color;S&&(k.color=S);const N={class:p,style:k};b=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 k={},S=n.color;S&&(k.color=S);const N={class:p,style:k};b=t.h("view",N,{default:a.slots.mark})}else{const p={[`${e}__mark`]:!0};n.type&&(p[`${e}__mark--${n.type??"default"}`]=!0);const k={},S=n.color;S&&(k["background-color"]=S);const N={class:p,style:k};b=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,[b,g])}}}}const{componentName:uh,create:dh,scope:fh}=W("text"),ml=dh(ch(uh,fh,!1));function mh(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 ph{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 hh(){const e=t.getCurrentInstance();return new ph(e.proxy)}const gh={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 yh(e,o,l=!1){return{props:{...gh},setup(n,{attrs:a,slots:r}){const s=hh(),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=mh(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:vh,create:kh,scope:bh}=W("mapping"),pl=kh(yh(vh,bh,!1));function Sh(e,o){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return Fr(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:ZB,create:Ch,scope:JB}=W("domain-provider"),hl=Ch(Sh()),wh={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function Nh(e,o){return{inheritAttrs:!1,props:wh,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;$i({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(v=>{for(let b of v){let u=!1;b.intersectionRatio>0&&(u=!0);const p=a.get(b.target);if(p)try{if(l.loadPolicy==="lazy"&&!u&&p.visible!==null)return;p.visible=u,p.callback(u)}catch(k){console.error(k)}}},{root:h,rootMargin:y,threshold:g}),r.forEach((v,b)=>{a.set(b,v),m?.observe(b)}),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:_B,create:Bh,scope:e2}=W("rolling-provider"),gl=Bh(Nh()),{componentName:Vh,create:Ah}=W("cell"),$h=Ah({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=Vh;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),n=t.computed(()=>({borderRadius:fe(e.roundRadius)}));return{handleClick:r=>{o("click",r)},classes:l,baseStyle:n}}}),Th={key:0,class:"fox-cell__icon"},Eh={key:1,class:"fox-cell__title"},Dh={class:"title"},xh={class:"fox-cell__title-desc"};function Ih(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",Th,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Eh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Dh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",xh,t.toDisplayString(e.subTitle),1)],64)):t.renderSlot(e.$slots,"title",{key:1},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),7)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"link",{},()=>[e.isLink?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const yl=J($h,[["render",Ih]]),{componentName:qh,create:Mh}=W("cell-group"),zh=Mh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[qh]:!0}))}}}),Lh={key:1,class:"fox-cell-group__title"},Ph={key:3,class:"fox-cell-group__desc"},Fh={class:"fox-cell-group__wrap"};function Rh(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",Lh,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",Ph,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Fh,[t.renderSlot(e.$slots,"default")])],2)}const vl=J(zh,[["render",Rh]]),{componentName:Oh,create:Kh}=W("image"),Uh=Kh({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=Oh;return{[y]:!0,[`${y}-round`]:e.round}}),a=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const y={threshold:[0],rootMargin:"0px"};a.value=new IntersectionObserver(g=>{g.forEach(v=>{v.isIntersecting&&(r.value=!0,a.value.disconnect())})},y),s.value&&a.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{a.value&&a.value.disconnect()});const c=t.computed(()=>{let y={};return e.width&&(y.width=fe(e.width)),e.height&&(y.height=fe(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=fe(e.radius)),y}),d=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,y=>{l.isError=!1,l.loading=!0});const 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}}}),Hh=["src","date-src","alt"],jh={key:0,class:"fox-img-loading"},Wh={key:1,class:"fox-img-error"};function Yh(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,Hh),e.loading?(t.openBlock(),t.createElementBlock("div",jh,[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",Wh,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,width:"16px",height:"20px",name:"imageError"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}const kl=J(Uh,[["render",Yh]]),{create:Xh}=W("layout"),bl=Xh({}),{componentName:Qh,create:Gh}=W("col"),Zh=Gh({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const o=Qh,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 Jh(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const Sl=J(Zh,[["render",Jh]]),{componentName:_h,create:eg}=W("row"),tg=eg({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=_h;t.provide("gutter",e.gutter);const l=(a,r)=>a?r?`fox-row-${a}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
|
|
5
|
+
*/function lo(e,o="0"){let l=0,n=-1;e[0]=="-"&&(l++,n=1,e=e.substring(1),e.length),o[0]=="-"&&(l++,n=2,o=o.substring(1),o.length),e=Se(e),o=Se(o),[e,o]=Dn(Se(e),Se(o)),l==1&&(n==1?e=jo(e):o=jo(o));let a=br(e,o);return l?l==2?"-"+Se(a):e.length<a.length?Se(a.substring(1)):"-"+Se(jo(a)):Se(a)}function jo(e){let o="",l=e.length,n=e.split(".")[1],a=n?n.length:0;for(let s=0;s<l;s++)e[s]>="0"&&e[s]<="9"?o+=9-parseInt(e[s]):o+=e[s];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return br(o,r)}function Se(e){let o=e.split(".");for(o[0]||(o[0]="0");o[0][0]=="0"&&o[0].length>1;)o[0]=o[0].substring(1);return o[0]+(o[1]?"."+o[1]:"")}function Dn(e,o){let l=e.split("."),n=o.split("."),a=l[0].length,r=n[0].length;return a>r?n[0]=new Array(Math.abs(a-r)+1).join("0")+(n[0]?n[0]:""):l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""),a=l[1]?l[1].length:0,r=n[1]?n[1].length:0,(a||r)&&(a>r?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-r)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),o=n[0]+(n[1]?"."+n[1]:""),[e,o]}function br(e,o){[e,o]=Dn(e,o);let l="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){l="."+l;continue}let r=parseInt(e[a])+parseInt(o[a])+n;l=r%10+l,n=Math.floor(r/10)}return n?n.toString()+l:l}var ye=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(ye||{});function qt(e,o=0,l=ye.HALF_EVEN){if(l===ye.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),r=a[0],s=a[1];if(o<0){if(o=-o,r.length<=o)return"0";{let c=r.substr(0,r.length-o);return e=c+"."+r.substr(r.length-o)+s,c=qt(e,0,l),(n?"-":"")+c+new Array(o+1).join("0")}}if(o==0)return r.length,$a(a[1],r,n,l)?(n?"-":"")+Wo(r):(n?"-":"")+r;if(a[1]){if(a[1].length<o)return(n?"-":"")+r+"."+a[1]+new Array(o-a[1].length+1).join("0")}else return(n?"-":"")+r+"."+new Array(o+1).join("0");s=a[1].substring(0,o);let i=a[1].substring(o);return i&&$a(i,s,n,l)&&(s=Wo(s),s.length>o)?(n?"-":"")+Wo(r,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+r+"."+s}function $a(e,o,l,n){if(!e||e===new Array(e.length+1).join("0")||n===ye.DOWN||!l&&n===ye.FLOOR||l&&n===ye.CEILING)return!1;if(n===ye.UP||l&&n===ye.FLOOR||!l&&n===ye.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case ye.HALF_DOWN:return!1;case ye.HALF_UP:return!0;case ye.HALF_EVEN:default:return parseInt(o[o.length-1])%2==1}}function Wo(e,o=0){o||(o=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let a=l;a>=0;a--){let r=parseInt(e[a])+o;r==10?(o=1,r=0):o=0,n+=r}return o&&(n+=o),n.split("").reverse().join("")}function nn(e,o){e=e.toString(),o=o.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),o[0]=="-"&&(l++,o=o.substr(1)),e=wt(e),o=wt(o);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),o.indexOf(".")!=-1&&(a=o.length-o.indexOf(".")-1);let r=n+a;if(e=wt(e.replace(".","")),o=wt(o.replace(".","")),e.length<o.length){let f=e;e=o,o=f}if(o=="0")return"0";let s=o.length,i=0,c=[],d=s-1,m="";for(let f=0;f<s;f++)c[f]=e.length-1;for(let f=0;f<2*e.length;f++){let h=0;for(let y=o.length-1;y>=d&&y>=0;y--)c[y]>-1&&c[y]<e.length&&(h+=parseInt(e[c[y]--])*parseInt(o[y]));h+=i,i=Math.floor(h/10),m=h%10+m,d--}return m=wt(xs(m,r)),l==1&&(m="-"+m),m}function xs(e,o){return o==0?e:(e=o>=e.length?new Array(o-e.length+1).join("0")+e:e,e.substr(0,e.length-o)+"."+e.substr(e.length-o,o))}function wt(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function ln(e,o,l=8){if(o==0)throw new Error("Cannot divide by 0");if(e=e.toString(),o=o.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),o=o.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;o[0]=="-"&&(o=o.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=o.indexOf(".")>0?o.length-o.indexOf(".")-1:-1;if(o=Se(o.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Se(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=Se(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let m=e.length-d+a;e=Se(e.substring(0,m)+"."+e.substring(m))}else a==d&&(e=Se(e.replace(".","")))}let r=0,s=o.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let d=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(d+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=d,i="0."+new Array(d).join("0")}for(l=l+2;r<=l;){let d=0;for(;parseInt(c)>=parseInt(o);)c=lo(c,"-"+o),d++;i+=d,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(n==1?"-":"")+Se(qt(i,l-2))}function an(e,o){return e=e.toString(),o=o.toString(),o=rn(o),lo(e,o)}function rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ta(e,o){if(o==0)throw new Error("Cannot divide by 0");e=e.toString(),o=o.toString(),Ea(e),Ea(o);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),o[0]=="-"&&(o=o.substr(1));let n=an(e,nn(o,qt(ln(e,o),0,ye.FLOOR)));return l+n}function Ea(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Da(e,o){let l=!1;if(e[0]=="-"&&o[0]!="-")return-1;if(e[0]!="-"&&o[0]=="-")return 1;if(e[0]=="-"&&o[0]=="-"&&(e=e.substr(1),o=o.substr(1),l=!0),[e,o]=Dn(e,o),e.localeCompare(o)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=o[n])return e[n]>o[n]?l?-1:1:l?1:-1;return 0}class re{value;static RoundingModes=ye;static validate(o){if(o){if(o=o.toString(),isNaN(o))throw Error("Parameter is not a number: "+o);o[0]=="+"&&(o=o.substring(1))}else o="0";if(o.startsWith(".")?o="0"+o:o.startsWith("-.")&&(o="-0"+o.substr(1)),/e/i.test(o)){let[l,n]=o.split(/[eE]/);l=Se(l);let a="";l[0]=="-"&&(a="-",l=l.substring(1)),l.indexOf(".")>=0?(n=parseInt(n)+l.indexOf("."),l=l.replace(".","")):n=parseInt(n)+l.length,l.length<n?o=a+l+new Array(n-l.length+1).join("0"):l.length>=n&&n>0?o=a+Se(l.substring(0,n))+(l.length>n?"."+l.substring(n):""):o=a+"0."+new Array(-n+1).join("0")+l}return o}constructor(o="0"){this.value=re.validate(o)}getValue(){return this.value}static getPrettyValue(o,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");o=re.validate(o);let a=o.charAt(0)=="-";a&&(o=o.substring(1));var r=o.indexOf(".");r=r>0?r:o.length;for(var s="",i=r;i>0;)i<l?(l=i,i=0):i-=l,s=o.substring(i,i+l)+(i<r-l&&i>=0?n:"")+s;return(a?"-":"")+s+o.substring(r)}getPrettyValue(o,l){return re.getPrettyValue(this.value,o,l)}static round(o,l=0,n=ye.HALF_EVEN){if(o=re.validate(o),isNaN(l))throw Error("Precision is not a number: "+l);return qt(o,l,n)}round(o=0,l=ye.HALF_EVEN){if(isNaN(o))throw Error("Precision is not a number: "+o);return new re(qt(this.value,o,l))}static floor(o){return o=re.validate(o),o.indexOf(".")===-1?o:re.round(o,0,ye.FLOOR)}floor(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,ye.FLOOR)}static ceil(o){return o=re.validate(o),o.indexOf(".")===-1?o:re.round(o,0,ye.CEILING)}ceil(){return this.value.indexOf(".")===-1?new re(this.value):new re(this.value).round(0,ye.CEILING)}static add(o,l){return o=re.validate(o),l=re.validate(l),lo(o,l)}add(o){return new re(lo(this.value,o.getValue()))}static subtract(o,l){return o=re.validate(o),l=re.validate(l),an(o,l)}subtract(o){return new re(an(this.value,o.getValue()))}static multiply(o,l){return o=re.validate(o),l=re.validate(l),nn(o,l)}multiply(o){return new re(nn(this.value,o.getValue()))}static divide(o,l,n){return o=re.validate(o),l=re.validate(l),ln(o,l,n)}divide(o,l){return new re(ln(this.value,o.getValue(),l))}static modulus(o,l){return o=re.validate(o),l=re.validate(l),Ta(o,l)}modulus(o){return new re(Ta(this.value,o.getValue()))}static compareTo(o,l){return o=re.validate(o),l=re.validate(l),Da(o,l)}compareTo(o){return Da(this.value,o.getValue())}static negate(o){return o=re.validate(o),rn(o)}negate(){return new re(rn(this.value))}}function Sr(e,o){return re.multiply(`${e}`,`${o}`)}function xn(e,o,l=8){return re.divide(`${e}`,`${o}`,l)}function sn(e,o){return e=`${e}`,o=`${o}`,re.compareTo(e,o)}function Cr(e){return re.negate(e)}function po(e,o=-1,l=!1,n=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",d=r.indexOf(".");d!=-1&&(i=r.substring(0,d),c=r.substring(d+1)),o!=-1&&(o<c.length?c=c.substring(0,o):l&&o>c.length&&(c=c.padEnd(o,"0")));let m;if(n>0){let f="",h=i.split("").reverse();for(let y=0;y<h.length;y++)f+=h[y]+((y+1)%n==0&&y+1!=h.length?a:"");c.length==0?m=`${s}${f.split("").reverse().join("")}`:m=`${s}${f.split("").reverse().join("")}.${c}`}else c.length==0?m=`${s}${i}`:m=`${s}${i}.${c}`;return m}function wr(e){let o=`${e}`,l=o.charAt(0);l=="-"?o=o.substring(1):l="";let n=o.replace(/[^\d\.-]/g,"");return`${l}${n}`}const st=typeof window<"u",Le=We;function Nr(e){return e==null}const ho=Array.isArray,Is=e=>go(e)==="[object Map]",qs=e=>go(e)==="[object Set]",Oe=e=>e instanceof Date,ao=e=>typeof e=="function",Br=e=>typeof e=="string",Ms=e=>typeof e=="symbol",Be=e=>e!==null&&typeof e=="object",Mt=e=>Be(e)&&ao(e.then)&&ao(e.catch),Vr=Object.prototype.toString,go=e=>Vr.call(e),cn=e=>go(e)==="[object Object]",Ar=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function zs(e){return e.__esModule||Ar&&e[Symbol.toStringTag]==="Module"}const Ps=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function nt(...e){let o=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,n=e.length,a=!1;for(typeof o=="boolean"&&(a=o,o=e[l]??{},l++),typeof o!="object"&&(o={});l<n;l++)if(e[l]!==null&&e[l]!==void 0){let r=e[l];for(let s in r){let i=o[s],c=r[s];if(i!==c)if(a===!0&&c&&typeof c=="object"){let d;Array.isArray(c)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},o[s]=nt(a,d,c)}else c!==void 0&&(o[s]=c)}}return o}function un(e,o,l=!1){if(!l)nt(!0,e,o);else{if(typeof o!="object")return{};typeof e!="object"&&(e={});for(let a in o){let r=e[a],s=o[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!cn(s))continue;r=un(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}const n=Object.getOwnPropertySymbols(o);for(let a of n){let r=e[a],s=o[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!cn(s))continue;r=un(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}}return e}const Yo=Ps?Promise.resolve():null;function Ls(e,...o){Yo!==null?o&&o.length>0?Yo.then(()=>{e(o)}):Yo.then(e):o&&o.length>0?setTimeout(()=>{e(o)}):setTimeout(e)}function me(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function fe(e){return typeof e=="number"?e:Number(e)}const Fs={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function lt(e){let l=Object.prototype.toString.call(e);return e==null?String(e):Fs[l]||"object"}function yo(e){if(!e)return!0;const{display:o}=window.getComputedStyle(e);return o==="none"}function $r(e){return e&&typeof e=="object"&&"setInterval"in e}function Tr(e){let o=!!e&&"length"in e&&e.length,l=lt(e);return l==="function"||$r(e)?!1:l==="array"||o===0||typeof o=="number"&&o>0&&o-1 in e}function Er(e,o){let l=+o.length,n=0,a=e.length;for(;n<l;n++)e[a++]=o[n];return e.length=a,e}function Rs(e,o=[]){let l=o;return e!=null&&(Tr(Object(e))?Er(l,typeof e=="string"?[e]:e):l.push(e)),l}function xe(e,o){if(e==o)return!0;if(e===void 0||o===void 0)return!1;let l=lt(e),n=lt(o);if(l!==n)return!1;if(l==="object"){let a=Object.keys(e),r=Object.keys(o);if(a.length!==r.length)return!1;for(let s=0;s<a.length;s++){let i=a[s],c=e[i],d=o[i];if(!xe(c,d))return!1}return!0}else if(l==="array"){if(e.length!==o.length)return!1;for(let a=0;a<e.length;a++){let r=e[a],s=o[a];if(!xe(r,s))return!1}return!0}return!1}function Dr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ce=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function xr(e){return ce(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ce(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Ir(e){if(e==null)return 0;let o=`${e}`;if(o.length==0)return 0;o.charAt(0)=="-"&&(o=o.substring(1)),o=o.replace(/[^\d\.-]/g,"");const l=o.indexOf(".");return l==-1?o.length:l}function qr(e){if(e==null)return 0;const o=`${e}`;if(o.length==0)return 0;const l=o.indexOf(".");return l==-1?0:o.length-(l+1)}function xa(e,o,l){const n=e.indexOf(o);return n===-1?e:o==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(l,"")}function dn(e,o=!0,l=!0){o?e=xa(e,".",/\./g):e=e.replace(/\./g,""),l?e=xa(e,"-",/-/g):e=e.replace(/-/,"");const n=o?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function Os(e,o){return typeof e=="object"||Array.isArray(e)?o.findIndex(l=>{if(xe(e,l))return!0}):o.indexOf(e)}function Ks(e,o){if(typeof e=="object"||Array.isArray(e)){let l=o.reverse().findIndex(n=>{if(xe(e,n))return!0});return l!==-1&&(l=o.length-1-l),l}return o.lastIndexOf(e)}function ge(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function he(e,...o){const l={};return o.forEach(n=>{for(const a in n)l[a]=e[a]}),l}function In(e,...o){const l=[];o.forEach(a=>{Reflect.apply([].push,l,Reflect.ownKeys(a))});const n={};for(const a in e)l.includes(a)||(n[a]=e[a]);return n}const Mr=(e,o,l)=>{const n=Object.assign({},e),a=Object.assign({},l);return Object.keys(o).length>0?(Object.keys(n).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(n[r]=o[a[r]]):o[r]&&(n[r]=o[r])}),n):e};function fn(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&e.stopPropagation()}const Je=(e,o=2)=>{for(e+="";e.length<o;)e="0"+e;return e.toString()},Fe=(e,o,l)=>Math.min(Math.max(e,o),l),qn=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,ke=Symbol.for("BroadcastKey");class Mn{parent;children=[];callbacks=new Map;proxy=null;name;constructor(o,l,n){this.parent=o,this.proxy=l,this.name=n,o!==null&&o.addChild(this)}addChild(o){this.children.push(o)}removeChild(o){const l=this.children.findIndex(n=>o===n);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(o,l,...n){if(o.maxLevel!==void 0&&o.maxLevel!==null&&o.maxLevel>0){if(o.level=o.level??0,o.level>o.maxLevel)return[];o.level++}let a=!1;!o.name||o.name==="*"?a=!0:!o.name||o.name==="+"?(a=!1,o.name="*"):Dr(o.name)&&this.name&&o.name.test(this.name)?a=!0:typeof o.name=="function"?a=Reflect.apply(o.name,null,[this.name]):o.name===this.name&&(a=!0);const r=[];if(a){const s=this.callbacks.get(l);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...n]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[l]=="function"){const c=Reflect.apply(i[l],i,[...n]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...o},l,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(o,l,...n){const a=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...o},l,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(o,l){this.callbacks.set(o,l)}}function vo(e,o,l,n){const a=new Mn(o,e,l);if(n&&typeof n=="object")for(const r in n)a.on(r,n[r]);return a}function Us(e,o,l){const n=l;if(n[ke])return n[ke];const a=t.inject(ke,null),r=new Mn(a,l,e);if(o&&typeof o=="object")for(const s in o)r.on(s,o[s]);return n[ke]=r,t.provide(ke,r),t.onUnmounted(()=>{r.destroy(),n[ke]=void 0}),r}function Et(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ke]??t.inject(ke,null):t.inject(ke,null)}const et=e=>e.default??e;class Hs{error(o,l){const n=l,a=Et(l);a?a.emit({name:"*",maxLevel:1},"setErrorTip",o):typeof n.setErrorTip=="function"&&n.setErrorTip(o)}reset(o){const l=o,n=Et(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(o){const l=o,n=Et(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(o,l,n){Array.isArray(o)||(o=[o]);const a=n,r=Et(n),s=l.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=o.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(o){return o.modelValue}}let zr=new Hs;function js(e){zr=e}function Ws(e,o){et(_e).setValidator(e,o)}function Ys(e){et(_e).deleteValidator(e)}let Pr=["blur","clear"];function Xs(e){Pr=e}function Lr(){return Pr}let Fr=["focus","change"];function Qs(e){Fr=e}function Rr(){return Fr}function Gs(e){et(_e).messages(e)}function Nt(...e){const o=[];return e.forEach(l=>{l.forEach(n=>{const a=o.findIndex(r=>r.type===n.type);a!==-1&&o.splice(a,1),o.push(n)})}),o}function Gt(e){return e.forEach(o=>{o.type==="required"&&(o.required===null||o.required===void 0)&&(o.required=!0),!o.type&&(o.required===!0||o.required===!1)&&(o.type="required")}),e}const Re=Symbol("ValidateSchemaKey");class Or{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(o,l,n){this.parent=o,this.descriptor=l,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let o=this.proxy.$attrs;o&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const l=Gt(Nt(this.attrRules,this.rules)),n=[];for(let r in o){let s=o[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),n.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};n.push(c)}}this.attrRules=Gt(n);const a=Nt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(o,...l){const n=this.descriptor.validateHandler;if(n&&typeof n[o]=="function")return Reflect.apply(n[o],n,[...l]);const a=zr;return a&&typeof a[o]=="function"?Reflect.apply(a[o],a,[...l]):null}decorate(o,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",o,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(o){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",o,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(o,l,n=!1){n?et(_e).setValidator(o,l):this.validators[o]=l}getValidator(o){let l=this.validators[o]??null;return l||(l=this.parent?.getValidator(o)??null),l}deleteValidator(o,l=!1){l?et(_e).deleteValidator(o):Reflect.deleteProperty(this.validators,o)}hasValidator(o,l=!1){if(l)return et(_e).hasValidator(o);{let n=Reflect.has(this.validators,o);return!n&&this.parent!==null&&(n=this.parent.hasValidator(o,!1)),n}}setRule(o){const l=Nt(this.attrRules,this.rules);o===null?this.rules=[]:Array.isArray(o)?this.rules=Gt(o):this.rules=Gt([o]);const n=Nt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(n,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=Nt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(l.length>0){const a={[`${n}`]:l},r=this.getValue(),s={[`${n}`]:r},i=et(_e),c=new i(a),d=this.proxy??s;return c.validate(s,{context:d}).then(f=>{if(f.pass)this.success();else{let h="error";Array.isArray(f.errors)&&f.errors.length>0&&(h=f.errors[0].message??h,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(h)}return f}).catch(f=>{const h=f.message??`${f}`;return this.error(h),f})}}return Promise.resolve({pass:!0})}}function ko(e,o,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const a=l.valueName;l.validateHandler={getValue(r){return r[a]}}}return new Or(o,l,e)}const Ia=Symbol("EventEmitterKey");class Zs{register=new Map;proxy;constructor(o){this.proxy=o}destroy(){this.proxy=null,this.register.clear()}off(o,l){let n=this.register.get(o);if(n&&Array.isArray(n)){let a=n.findIndex(r=>r===l);a!==-1&&n.splice(a,1)}}on(o,l){let n=this.register.get(o);n||(n=new Array,this.register.set(o,n)),n.push(l)}emit(o,...l){const n=this.register.get(o);n&&n.forEach(a=>{try{Reflect.apply(a,null,[o,...l])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[o,...l])}}function ht(e,o){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},o)}}function ro(e,o){let l=0;return function(...n){const a=new Date().getTime();a-l<o||(l=a,Reflect.apply(e,null,[...n]))}}function Js(e,o){const l=ht((n,a)=>{e=n,a()},o);return t.customRef((n,a)=>({get(){return n(),e},set(r){l(r,a)}}))}function _s(e){let o=!1;return function(...l){o||(o=!0,Reflect.apply(e,null,[...l]))}}function zn(e,o,l,n=0,a=!0){let r=o,s=0;if(a){const c=e();if(s++,c||s>l)return}const i=()=>{const c=e();s++,!(c||s>l)&&(r+=n,setTimeout(i,r))};setTimeout(i,r)}const De=Symbol("DomainKey"),ut=Symbol("DataItemsKey");class bo{_parent=null;get parent(){return this._parent}set parent(o){this._parent=o}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(o){this._broadcast=o}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(o){this._validateSchema=o}_props=t.reactive({});constructor(o=null){this._name=o}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(o,l=[]){for(const n in o){const a=o[n];l.length>0&&l.indexOf(a)!==-1||(this._props[n]=a)}}has(o){if(Reflect.has(this._props,o)){const l=this._props[o];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(o)}delete(o){Reflect.deleteProperty(this._props,o)}set(o,l){this._props[o]=l}get(o,l){if(Reflect.has(this._props,o)){const n=this._props[o];if(n!=null)return n}return this.parent==null?l:this.parent.get(o,l)}getForParent(o,l){return this.parent==null?l:this.parent.get(o,l)}getForSelf(o){return this._props[o]}getAll(o){const l=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,o)){const a=n._props[o];l.push(a)}n=n._parent}return l}}const ei=new bo;function mt(){return ei}function Ke(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[De]??t.inject(De,null):t.inject(De,null)}const Xo=Symbol("OriginalDateKey");function Pn(e,o,l=[],n){const a=t.getCurrentInstance(),r=a?.proxy;let s=t.inject(De,null);s===null&&(s=mt());const i=e||o.prop||o.name,c=new bo(i);c.parent=s;const d=k=>{r[Xo]||h(k),c.set("modelValue",k)},m=()=>c.getForSelf("modelValue")??null,f=()=>r[Xo]??null,h=k=>{const v={};nt(!0,v,t.toRaw(k)),r[Xo]=v};t.isReactive(o)||typeof o=="function"?t.watch(o,k=>{c.merge(k,l)},{immediate:!0}):c.merge(o,l),o.modelValue&&h(o.modelValue),r[De]=c,t.provide(De,c);let y=null,g=null;if(a!==null){const k=t.inject(ke,null);y=vo(r,k,i,n),c.broadcast=y,r[ke]=y,t.provide(ke,y),r.broadcast=(u,p,...b)=>Reflect.apply(y.emit,y,[u,p,...b]);const v=t.inject(Re,null);g=ko(r,v,{componentName:""}),c.validateSchema=g,r[Re]=g,t.provide(Re,g),r[ut]=new Map,r.validate=(u=!0)=>{const p=[];let b=null;const S={deep:!1};if(u===!0)b={name:"*"};else if(Array.isArray(u)&&u.length>0){const N=u;b={name:C=>C?N.indexOf(C)!==-1:!1}}else if(u!=null&&typeof u=="object"){const N=u;if(S.ignoreHidden=N.ignoreHidden,Array.isArray(N.include)&&N.include.length>0){const C=N.include;b={name:V=>V?C.indexOf(V)!==-1:!1}}else if(Array.isArray(N.exclude)&&N.exclude.length>0){const C=N.exclude;b={name:V=>V?C.indexOf(V)===-1:!1}}else b={name:"*"}}if(b){const N=y?.emitToChildren(b,"validate",S);N&&Reflect.apply([].push,p,N)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(N=>{let C=[];return N.forEach(V=>{V.pass===!1&&Array.isArray(V.errors)&&(C=[...C,...V.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(u,p=!0,b=!1)=>{if(b===!0){Reflect.ownKeys(u).forEach(N=>{let C=String(N);const B=Hr(c,C,{componentName:"",fieldName:C,pureDataValidate:!0},y,g);r[ut].set(C,B);const I=u[C];I&&B.validateSchema.setRule(I)});return}if(p){const S=Reflect.ownKeys(u),N={name:C=>S.includes(C)};y?.emitToChildren(N,"setNameValidateRules",u,!1)}},r.clearValidate=(u=!0)=>{let p=null;if(u===!0)p={name:"*"};else if(Array.isArray(u)&&u.length>0){const b=u;p={name:S=>S?b.indexOf(S)!==-1:!1}}else if(u!=null&&typeof u=="object"){const b=u;if(Array.isArray(b.include)&&b.include.length>0){const S=b.include;p={name:N=>N?S.indexOf(N)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const S=b.exclude;p={name:N=>N?S.indexOf(N)===-1:!1}}else p={name:"*"}}p&&y?.emitToChildren(p,"clearValidate",!1)},r.resetFields=u=>{const p=m();if(!p)return;const b={};if(nt(!0,b,f()??{}),Array.isArray(u))u.forEach(S=>{p[S]=b[S]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(N=>{p[N]=b[N]});else if(u&&Array.isArray(u.exclude)){let S=u.exclude??[];Reflect.ownKeys(b).forEach(N=>{S.includes(N)||(p[N]=b[N])})}else Object.assign(p,b);r.clearValidate(u)},r.setModelValue=(u,p)=>{!p||p===i?d(u):y?.emitToChildren({name:p},"setModelValue",u)},r.getModelValue=()=>m()}return t.onUnmounted(()=>{c.destroy(),r[De]=void 0,r[ut]&&(r[ut].clear(),r[ut]=void 0),y!==null&&(y.destroy(),r[ke]=void 0),g!==null&&(g.destroy(),r[Re]=void 0)}),c}function Kr(e,o,l=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(De,null);r===null&&(r=mt());const s=e||o.prop||o.name,i=new bo(s);return i.parent=r,t.isReactive(o)||typeof o=="function"?t.watch(o,c=>{i.merge(c,l)},{immediate:!0}):i.merge(o,l),a[De]=i,t.provide(De,i),t.onUnmounted(()=>{i.destroy(),a[De]=void 0}),i}function Ur(e,o,l){const a=Ke(e)?.get("rules");if(!a)return;let r=a[l];r&&(Array.isArray(r)||(r=[r]),o.setRule(r))}function we(e,o,l){const a=t.getCurrentInstance()?.proxy,r=o??"",s=t.inject(ke,null),i=vo(a,s,r,l);a[ke]=i,t.provide(ke,i),a.broadcast=(g,k,...v)=>Reflect.apply(i.emit,i,[g,k,...v]);const c=t.inject(Re,null);e.fieldName=e.fieldName??r;const d=ko(a,c,e);a[Re]=d,t.provide(Re,d),Ur(a,d,r),a.validate=(g=null)=>{const k=[];let v=!1,u=!1;if(Array.isArray(g)&&g.indexOf(r)!==-1)u=!0,v=!0;else if(g&&typeof g=="object"){const p=g;p.ignoreHidden===!0&&yo(a.$el)?u=!1:(Array.isArray(p.include)&&p.include.indexOf(r)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(r),u=!0),v=p.deep??!1}else typeof g=="boolean"&&(v=g),u=!0;if(u){const p=d?.validate();k.push(p)}if(v){let p=null;const b={deep:!1};if(g===!0)p={name:"*"};else if(Array.isArray(g)&&g.length>0){const S=g;p={name:N=>N?S.indexOf(N)!==-1:!1}}else if(g!=null&&typeof g=="object"){const S=g;if(b.ignoreHidden=S.ignoreHidden,Array.isArray(S.include)&&S.include.length>0){const N=S.include;p={name:C=>C?N.indexOf(C)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const N=S.exclude;p={name:C=>C?N.indexOf(C)===-1:!1}}else p={name:"*"}}if(p){const S=i.emitToChildren(p,"validate",b);Reflect.apply([].push,k,S)}}return k.length==1?k[0]:k.length>1?Promise.all(k).then(p=>{let b=[];return p.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(b=[...b,...S.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=g=>d?.setRule(g),a.setNameValidateRules=(g,k=!1)=>{const v=g[r];if(v&&d?.setRule(v),k){const u={name:p=>Reflect.ownKeys(g).includes(p)};i.emitToChildren(u,"setNameValidateRules",g,!1)}},a.clearValidate=(g=null)=>{(!Array.isArray(g)||g.indexOf(o??"")!==-1)&&d?.clear();let k=null;if(g===!0)k={name:"*"};else if(Array.isArray(g)&&g.length>0){const v=g;k={name:u=>u?v.indexOf(u)!==-1:!1}}else if(g!=null&&typeof g=="object"){const v=g;if(Array.isArray(v.include)&&v.include.length>0){const u=v.include;k={name:p=>p?u.indexOf(p)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const u=v.exclude;k={name:p=>p?u.indexOf(p)===-1:!1}}else k={name:"*"}}k&&i.emitToChildren(k,"clearValidate",!1)};const m=new Zs(a);a[Ia]=m;const f=ht((g="validate")=>{g==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Lr()).forEach(g=>{m.on(g,k=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Rr()).forEach(g=>{m.on(g,k=>{f("reset")})}),t.onUnmounted(()=>{i.destroy(),a[ke]=void 0,d.destroy(),a[Re]=void 0,m.destroy(),a[Ia]=void 0}),{broadcast:i,validateSchema:d,emitEvent:(g,...k)=>{Reflect.apply(m.emit,m,[g,...k])},onEvent:(g,k)=>{Reflect.apply(m.on,m,[k])},offEvent:(g,k)=>{Reflect.apply(m.off,m,[k])}}}function Hr(e,o,l,n,a){const r={},s=o??"",i={getValue(){const m=e.getForSelf("modelValue");return m?m[s]:null},isExist(){const m=e.getForSelf("modelValue");return m?Reflect.has(m,s):!1}};l.fieldName=s,l.validateHandler={getValue(m){return i.getValue()}};const c=ko({},a,l);r.validate=(m=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const f=[];let h=!1,y=!1;if(Array.isArray(m)&&m.indexOf(s)!==-1)y=!0,h=!0;else if(m&&typeof m=="object"){const g=m;Array.isArray(g.include)&&g.include.indexOf(s)!==-1||Array.isArray(g.exclude)&&g.exclude.indexOf(s),y=!0,h=g.deep??!1}else typeof m=="boolean"&&(h=m),y=!0;if(y){const g=c?.validate();f.push(g)}if(h){let g=null;const k={deep:!1};if(m===!0)g={name:"*"};else if(Array.isArray(m)&&m.length>0){const v=m;g={name:u=>u?v.indexOf(u)!==-1:!1}}else if(m!=null&&typeof m=="object"){const v=m;if(Array.isArray(v.include)&&v.include.length>0){const u=v.include;g={name:p=>p?u.indexOf(p)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const u=v.exclude;g={name:p=>p?u.indexOf(p)===-1:!1}}else g={name:"*"}}if(g){const v=d.emitToChildren(g,"validate",k);Reflect.apply([].push,f,v)}}return f.length==1?f[0]:f.length>1?Promise.all(f).then(g=>{let k=[];return g.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(k=[...k,...v.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=m=>c?.setRule(m),r.setNameValidateRules=m=>{const f=m[s];f&&c?.setRule(f)};const d=vo(null,n,s,r);return{broadcast:d,validateSchema:c}}const pe=e=>e?`${se(e)}px`:"";function se(e,o=-1){if(typeof e=="number")return e>0&&e<1&&o>0?e*o:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let a=Number(e.substring(0,l)),r=1;if(st){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return a*=r,a}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))*o;const n=Number(e);return isNaN(n)?0:n}const Ye="PageStateKey";function Me(e){const o={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(o.top=se(e.top)),e.left!==null&&e.left!==void 0&&(o.left=se(e.left)),e.bottom!==null&&e.bottom!==void 0&&(o.bottom=se(e.bottom)),e.right!==null&&e.right!==void 0&&(o.right=se(e.right))),o}function mn(e,o,l={},n=!0,a=-1,r=-1,s=0,i=0){if(e.headerHeight=se(l.headerHeight??o.headerHeight??-1),e.headerPadding=Me(l.headerPadding??o.headerPadding),e.footerHeight=se(l.footerHeight??o.footerHeight??-1),e.footerPadding=Me(l.footerPadding??o.footerPadding),e.contentPadding=Me(l.contentPadding??o.contentPadding),n){const c=l.height??o.height;c?e.height=se(c,r):e.height=se(r)-se(s,r)-se(i,r),e.width=se(l.width??o.width??0,a)}}function jr(e,o={}){const l={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},o.safeAreaInset??{});a&&(n.safeAreaTop=se(a.top),n.safeAreaBottom=se(a.bottom),n.safeAreaLeft=se(a.left),n.safeAreaRight=se(a.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;mn(n,r,o,!0,s,i,c,d);const m=t.reactive(n),f=e.getForParent(Ye);f&&(n.height=so(e,f),n.width=io(e,f),t.watch([()=>so(e,f),()=>io(e,f)],([y,g])=>{m.height=y,m.width=g}));const h=!f;return t.watch([()=>o.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([y,g,k=-1,v=-1,u=0,p=0])=>{mn(m,g,o,h,k,v,u,p)}),e.set(Ye,m),m}function So(e){return e.get(Ye)}function Co(e,o){if(o=o??e.get(Ye),o&&o.headerMounted){const l=o.safeAreaTop==-1?0:o.safeAreaTop;return o.headerAllHeight??o.headerHeight+l}return 0}function wo(e,o){if(o=o??e.get(Ye),o&&o.footerMounted){const l=o.safeAreaBottom==-1?0:o.safeAreaBottom;return o.footerAllHeight??o.footerHeight+l}return 0}function so(e,o){if(o=o??e.get(Ye),o){if(o.contentInnerHeight)return o.contentInnerHeight;const l=Co(e,o),n=wo(e,o);return o.height-l-n-(o.contentPadding.top??0)-(o.contentPadding.bottom??0)}return 0}function io(e,o){return o=o??e.get(Ye),o?o.contentInnerWidth??o.width-(o.contentPadding.left??0)-(o.contentPadding.right??0):0}function ti(e,o){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[o,e]):!1}function oi(e){return!!e.getForParent(Ye)}var co=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(co||{});function Qo(e,o){return e==null?!1:typeof o=="function"?o(e):!0}function Ne(e,o,l=1,n){const a=Ke();return a==null?e:l===0?t.computed(()=>{const r=a.getAll(o);for(let i=r.length-1;i>=0;i--){const c=r[i];if(Qo(c,n))return c}const s=e.value;return Qo(s,n)?s:null}):t.computed(()=>{const r=e.value;return Qo(r,n)?r:a?.get(o)})}function Ae(e){return Ne(e,"readonly",0,function(l){return me(l)})}function Ce(e){return Ne(e,"disabled",0,function(l){return me(l)})}function Ee(e,o="modelValue",l){const n=t.toRef(e,o);let a=n.value;typeof l=="function"&&(a=l(n.value));const r=t.ref(a);return t.watch(n,s=>{if(typeof l=="function"){const i=l(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const Wr=new Map,uo=new Map;let pn=null;function ni(e){pn=e}function Yr(e,o,l){if(l){let n=uo.get(l);n||(n=new Map,uo.set(l,n)),n.set(e,o)}else Wr.set(e,o)}function Ge(e,o,l){!l&&pn&&(l=pn(e)??void 0);let n=null;if(l){let a=uo.get(l);a&&(n=a.get(o))}return n||(n=Wr.get(o)),n}function li(e,o){for(let l in e){const n=e[l];Yr(l,n,o)}}function ai(e){uo.delete(e)}function ri(){return{top:0,left:0,bottom:0,right:0}}function si(e=0,o=0){if(st){const l=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:l,height:n-se(e,n)-se(o,n)};return{rootWidth:l,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:-1,footerHeight:-1}}}class ii{packages;_version;get version(){return this._version}constructor(o,l){this.packages=o,this._version=l}install(o,l){l?.install!==!1&&this.packages.forEach(r=>{r.install?o.use(r):r.name&&o.component(r.name,r)});const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=mt();if(this.initPageLayout(l,a),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=ro(()=>{const i={...l},c=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=d,this.initPageLayout(i,a)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in l)n.indexOf(r)===-1&&a.set(r,l[r])}initPageLayout(o,l){const n=o.headerBarHeight??0,a=o.footerBarHeight??0,r=nt({},ri(),o.safeAreaInset),s=si(n,a),i=nt({},s.pageLayout,o.pageLayout);l=l??mt(),l.set("safeAreaInset",r),l.set("headerBarHeight",n),l.set("footerBarHeight",a),l.set("pageLayout",i),l.set("rootWidth",s.rootWidth),l.set("rootHeight",s.rootHeight)}setScopeGetter(o){ni(o)}setAPI(o,l,n){Yr(o,l,n)}getAPI(o,l,n){return Ge(o,l,n)}batchSetAPI(o,l){li(o,l)}clearScopeAPI(o){ai(o)}getRootDomain(){return mt()}}function Y(e){const o="fox-"+e;return{componentName:o,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=n=>{n.component(l.name,l)},t.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,t.defineComponent(l)}}}const ci=(e,o)=>{let l=document.body;const n=e.teleport||"body";n!="body"&&(Br(n)?l=document.querySelector(n):l=e.teleport);const a=document.createElement("view"),r=o.name?o.name+"-":"",s=e.id||new Date().getTime();a.id=r+s;let i={};ao(o.wrapper)?i=o.wrapper(l,a):i=o.wrapper;const c=t.createApp(i,e),d=o.components;return d&&d.forEach(m=>{c.use(m)}),l.appendChild(a),{instance:c.mount(a),unmount:()=>{c.unmount(),l.removeChild(a)}}},Xr=(e,o)=>e?t.h(e,o):"",ue={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},de={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Qr={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},Gr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!1},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},Zr=[];for(const e in Gr)Zr.push(e);function $e(e,o=null){if(o||(o=t.getCurrentInstance()),o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const ui=Symbol.for("InnerPageScopeKey"),di=(e,o)=>({inheritAttrs:!0,props:{...ue,...Qr,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},setup(l,n){const a=Pn(l.name,l),r=t.inject(ui,!1);if(a){const m=jr(a,l);$e({getPageContentHeight:()=>so(a,m),getPageContentWidth:()=>io(a,m),getPageHeaderHeight:()=>Co(a,m),getPageFooterHeight:()=>wo(a,m)}),m&&r&&(m.contentHeight="100%")}const s=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),c=t.getCurrentInstance(),d=(m,f=!1)=>{const h=c?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(m,!0,f)};return t.watch([()=>l.rules,()=>l.pureDataRules],([m,f],[h,y])=>{if(m&&h){const g=t.toRaw(h),k=t.toRaw(m),v=k?Reflect.ownKeys(k):[];(g?Reflect.ownKeys(g):[]).forEach(p=>{v.includes(p)||(k[p]=[])}),d(k)}if(f&&y){const g=t.toRaw(y),k=t.toRaw(f),v=k?Reflect.ownKeys(k):[];(g?Reflect.ownKeys(g):[]).forEach(p=>{v.includes(p)||(k[p]=[])}),d(k,!0)}},{deep:!0}),t.onMounted(()=>{if(l.rules){const m=t.toRaw(l.rules);d(m)}if(l.pureDataRules){const m=t.toRaw(l.pureDataRules);d(m,!0)}}),{classes:s,styles:i}}}),{componentName:fi,create:mi,scope:jB}=Y("page"),pi=mi(di(fi));function hi(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const J=(e,o)=>{const l=e.__vccOpts||e;for(const[n,a]of o)l[n]=a;return l},Ln=J(pi,[["render",hi]]);function No(e){const o=t.unref(e);return{width:o.offsetWidth,height:o.offsetHeight}}function Fn(e){const o=t.unref(e),l=window.getComputedStyle(o,null),n=parseFloat(l.getPropertyValue("padding-left")),a=parseFloat(l.getPropertyValue("padding-right")),r=parseFloat(l.getPropertyValue("padding-top")),s=parseFloat(l.getPropertyValue("padding-bottom"));return{width:o.clientWidth-n-a,height:o.clientHeight-r-s}}const gi=Symbol.for("InnerPageScopeKey"),yi=(e,o,l,n=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:l},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(a,r){const s=Ke(),i=s?So(s):null,c=t.inject(gi,!1),d=e,m=t.computed(()=>{const w={[d]:!0,[`${d}--border`]:a.border,[`${d}--fixed`]:a.fixed};return c||(w[`${d}--safe-area-inset-top`]=a.safeAreaInsetTop),w}),f=t.computed(()=>({[`${d}__inner`]:!0,[`${d}__inner--${a.align}`]:!0})),h=a.height!==null&&a.height!==void 0?se(a.height):null,y=t.computed(()=>{const w={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const P=Me(a.padding??i.headerPadding);return Object.assign(w,P),h&&(i.headerHeight=h),i.headerHeight>0&&(w.height=i.headerHeight),w.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,w.safeAreaTop>0&&(w.top=w.safeAreaTop+(P.top??0),w.height&&w.height>0&&(w.height=w.height+w.safeAreaTop)),w}if(h&&(w.height=h),a.padding){const P=Me(a.padding);Object.assign(w,P)}return w}),g=t.ref(null),k=()=>{if(i&&g.value&&!yo(g.value)){if(!n){const w=No(g.value);i.headerAllHeight=w.height}return i.headerMounted=!0,!0}return!1};let v=null;t.onMounted(()=>{i&&(zn(k,50,5,50,!0),window.ResizeObserver&&g.value&&(v=new window.ResizeObserver(()=>{k()}),v.observe(g.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,v&&(v.disconnect(),v=null))});const u=t.computed(()=>{const w={};return y.value.height!==null&&y.value.height!==void 0&&(w.height=`${y.value.height}px`),y.value.top!==null&&y.value.top!==void 0&&(w.paddingTop=`${y.value.top}px`),y.value.left!==null&&y.value.left!==void 0&&(w.paddingLeft=`${y.value.left}px`),y.value.right!==null&&y.value.right!==void 0&&(w.paddingRight=`${y.value.right}px`),y.value.bottom!==null&&y.value.bottom!==void 0&&(w.paddingBottom=`${y.value.bottom}px`),w}),p=t.computed(()=>!(y.value.height!==null&&y.value.height!==void 0&&y.value.height<=0));function b(){r.emit("back")}function S(){r.emit("click-title")}function N(){r.emit("click-right")}function C(){r.emit("click-right-text")}const V=()=>{if(!a.leftShow)return null;const w=[];if(r.slots.left)w.push(r.slots.left());else{if(r.slots.leftIcon){const P=t.h("view",{class:"left-icon",onClick:b},[r.slots.leftIcon()]);w.push(P)}else if(a.leftIcon){const P=t.h("view",{class:"left-icon",onClick:b},[t.h(a.leftIcon)]);w.push(P)}if(a.leftText){const P=t.h("view",{class:"left-text",onClick:b},[a.leftText]);w.push(P)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__left"},w)},B=()=>{if(!a.rightShow)return null;const w=[];if(r.slots.right)w.push(r.slots.right());else{if(a.rightText){const P=t.h("view",{class:"right-text",onClick:C},[a.rightText]);w.push(P)}if(r.slots.rightIcon){const P=t.h("view",{class:"right-icon",onClick:N},[r.slots.rightIcon()]);w.push(P)}else if(a.rightIcon){const P=t.h("view",{class:"right-icon",onClick:N},[t.h(a.rightIcon)]);w.push(P)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__right"},w)},I=()=>{if(!a.titleShow)return null;const w=[],P=r.slots.default?r.slots.default():null;if(P)w.push(P);else{if(a.title){const F=t.h("view",{class:"title-text"},[a.title]);w.push(F)}if(r.slots.titleIcon){const F=t.h("view",{class:"title-icon",onClick:S},[r.slots.titleIcon()]);w.push(F)}else if(a.titleIcon){const F=t.h("view",{class:"title-icon",onClick:S},[t.h(a.titleIcon)]);w.push(F)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__title"},w)},A=()=>{const w=[],P=r.slots.bottom?r.slots.bottom():null;return P&&w.push(P),w.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},w)};return()=>{if(!p.value)return null;const w=[];if(r.slots.all)w.push(r.slots.all());else{const F=[],E=V();E&&F.push(E);const x=I();x&&F.push(x);const U=B();if(U&&F.push(U),F.length>0){const W=t.h("view",{class:f.value},F);w.push(W)}const D=A();D&&w.push(D)}if(w.length===0)return null;const P={class:m.value,style:u.value,ref:g};return t.h("view",P,w)}}}),{componentName:vi,create:ki,scope:bi}=Y("header-bar"),Rn=ki(yi(vi,bi,te.Left,!1)),Si=Symbol.for("InnerPageScopeKey");function Ci(e,o,l=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(n,a){const r=Ke(),s=r?So(r):null,i=t.inject(Si,!1),c=e,d=t.computed(()=>{const v={[c]:!0,[`${c}--${n.align}`]:!0,[`${c}--border`]:n.border,[`${c}--fixed`]:n.fixed};return i||(v[`${c}--safe-area-inset-bottom`]=n.safeAreaInsetBottom),v}),m=n.height!==null&&n.height!==void 0?se(n.height):null,f=t.computed(()=>{const v={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const u=Me(n.padding??s.footerPadding);return Object.assign(v,u),m&&(s.footerHeight=m),s.footerHeight>0&&(v.height=s.footerHeight),v.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,v.safeAreaBottom>0&&(v.bottom=v.safeAreaBottom+(u.bottom??0),v.height&&v.height>0&&(v.height=v.height+v.safeAreaBottom)),v}if(m&&(v.height=m),n.padding){const u=Me(n.padding);Object.assign(v,u)}return v}),h=t.ref(null),y=()=>{if(s&&h.value&&!yo(h.value)){if(!l){const v=No(h.value);s.footerAllHeight=v.height}return s.footerMounted=!0,!0}return!1};let g=null;t.onMounted(()=>{s&&(zn(y,50,5,50,!0),window.ResizeObserver&&(g=new window.ResizeObserver(()=>{y()}),g.observe(h.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,g&&(g.disconnect(),g=null))});const k=t.computed(()=>{const v={};return f.value.height!==null&&f.value.height!==void 0&&(v.height=pe(f.value.height)),f.value.top!==null&&f.value.top!==void 0&&(v.paddingTop=pe(f.value.top)),f.value.left!==null&&f.value.left!==void 0&&(v.paddingLeft=pe(f.value.left)),f.value.right!==null&&f.value.right!==void 0&&(v.paddingRight=pe(f.value.right)),f.value.bottom!==null&&f.value.bottom!==void 0&&(v.paddingBottom=pe(f.value.bottom)),v});return()=>{const v=a.slots.default?a.slots.default():[],u={ref:h,class:d.value,style:k.value};return t.h("view",u,v)}}}}const{componentName:wi,create:Ni,scope:Bi}=Y("footer-bar"),On=Ni(Ci(wi,Bi,!1));function Vi(e,o){return{props:{padding:{type:[Object],required:!1}},setup(l){const n=Ke(),a=t.computed(()=>({[e]:!0})),r=n?So(n):null,s=t.computed(()=>{const d={};if(n&&r){if(l.padding){const u=Me(l.padding);Object.assign(r.contentPadding,u)}const m=Co(n,r),f=wo(n,r);let h="";r.contentHeight?h=`${r.contentHeight}`:h=`${r.height}px`,console.debug("[content]page height:",h),console.debug("[content]header height:",m),console.debug("[content]footer height:",f),console.debug("[content]padding:",r.contentPadding),d.height=h;let y=(r&&r.contentPadding&&r.contentPadding.top)??-1;(y>=0||m>0)&&(y=y<0?0:y,d.paddingTop=`${m+y}px`);let g=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(g>=0||f>0)&&(g=g<0?0:g,d.paddingBottom=`${f+g}px`);const k=(r&&r.contentPadding&&r.contentPadding.left)??-1;k>=0&&(d.paddingLeft=`${k}px`);const v=(r&&r.contentPadding&&r.contentPadding.right)??-1;return v>=0&&(d.paddingRight=`${v}px`),d}if(l.padding){const m=Me(l.padding);m.left&&(d.paddingLeft=`${m.left}px`),m.top&&(d.paddingTop=`${m.top}px`),m.right&&(d.paddingRight=`${m.right}px`),m.bottom&&(d.paddingBottom=`${m.bottom}px`)}return d}),i=t.ref(null),c=ht(()=>{if(r&&i.value){const d=Fn(i.value);r.contentInnerHeight=d.height,r.contentInnerWidth=d.width}},0);return t.onMounted(()=>{c()}),n&&r&&t.watch([()=>s.value,()=>a.value],([])=>{c()}),{contentRef:i,classes:a,styles:s}}}}const{componentName:Ai,create:$i,scope:WB}=Y("content"),Ti=$i(Vi(Ai));function Ei(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Kn=J(Ti,[["render",Ei]]),gt="GroupStateKey",Jr=Symbol.for("GroupScopeKey");function Bo(){return t.inject(Jr,!1)}function Vo(e=!0){t.provide(Jr,e)}function Di(e,o={}){Reflect.ownKeys(o).forEach(n=>{if(typeof n!="string")return;const a=o[n];Nr(a)||(e[n]=a)})}function xi(e,o={}){const n={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Di(n,o);const a=t.shallowRef(n),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(gt,r),r}function Go(e,o,l=-1,n=-1,a=!1,r,s,i){const c=e.get(gt);if(!c)return;const d=e.get("groupLayout")??{};l===-1&&(l=d.column??1),n===-1&&(n=d.gutter??0),r||(r=d.minItemWidth??-1),s||(s=d.maxItemWidth??-1);const m=se(r),f=se(s);i||(i=d.type??"grid");const h=()=>{const y=o===""||o===-1,g=se(o);let k=fe(l);const v=se(n);if(!y){let b=(g-(k-1)*v)/k;for(;f!==-1&&b>f;)k++,b=(g-(k-1)*v)/k;for(;m!==-1&&k>1&&b<m;)k--,b=(g-(k-1)*v)/k}let u=!1;const p=c.layout;p.value.width=o,p.value.column!==k&&(p.value.column=k,u=!0),p.value.gutter!==v&&(p.value.gutter=v,u=!0),p.value.type!==i&&(p.value.type=i,u=!0),u&&t.triggerRef(p)};if(a)h();else{const y=++c.passport;setTimeout(()=>{y===c.passport&&h()},50)}}function Ao(e,o=!1){let l;return o?l=e.getForParent(gt):l=e.get(gt),l.layout}function $o(e,o=!1){let l;return o?l=e.getForParent(gt):l=e.get(gt),l.order}function qa(e,o=1){if(o==="stretch")return-1;const l=fe(o);return l===-1?100:100*l/e}function To(e,o,l=1,n=0,a){const r={};let s=0;a?s=se(a):s=qa(o.column,l),s>0&&(r.width=`${s}%`);const i=qa(o.column,n);i>0&&(r["margin-left"]=`${i}%`);const c=o.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function Eo(e,o,l=1,n=0){if(l==="stretch"){const c=e.index%o.column,d=c+(o.column-c);return e.index=e.index+(d-c),{"grid-column":`${c+1} / -1`}}let a=fe(l);if(a===-1){const c=e.index%o.column;return o.column,c==0?e.index=e.index+o.column:e.index=e.index+(o.column-c)+o.column,{"grid-column":"1 / -1"}}if(a>o.column){const c=e.index%o.column;return o.column,c==0?e.index=e.index+o.column:e.index=e.index+(o.column-c)+o.column,{"grid-column":"1 / -1"}}const r=fe(n)%o.column;let s=(e.index+r)%o.column,i=s+a;return i>o.column?(s=0,i=s+a,e.index=e.index+(o.column-s)+a):e.index=e.index+r+a,r>0?{"grid-column":`${s+1} / span ${a}`}:{"grid-column-start":`span ${a}`}}const _r=Symbol("RollingStateKey");function Ii(e){t.provide(_r,e)}function qi(){return t.inject(_r,null)}function hn(e){let o=0;const l=window.getComputedStyle(e,null);if(l.getPropertyValue("box-sizing")==="content-box"){const a=parseFloat(l.getPropertyValue("padding-top")),r=parseFloat(l.getPropertyValue("padding-bottom"));o=e.clientHeight-a-r}else o=e.offsetHeight;return o}function Mi(e){let o=hn(e);if(o<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),o=hn(l),document.body.removeChild(l)}return o}function zi(e,o,l){if(e<=0)return"1fr";const n=(e-(o-1)*l)/o;return n>0?`${n}px`:"1fr"}const Pi={...ue,...Qr,...Gr};function Li(e,o,l){return{props:Pi,emits:["update:collapse"],setup(n,a){const r=Pn(n.name,n,Zr),s=xi(r,{type:n.type}),i=Bo();Vo(!0);const c=n.rollingDisplay?qi():null,d=t.ref(null),m=t.computed(()=>n.rollingDisplay?c&&!c.disabled:!1),f=t.computed(()=>i&&r?Ao(r,!0).value:null),h=t.getCurrentInstance(),y=(O,X=!1)=>{const Q=h?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(O,!0,X)};t.watch([()=>n.rules,()=>n.pureDataRules],([O,X],[Q,ee])=>{if(O&&Q){const _=t.toRaw(Q),oe=t.toRaw(O),le=oe?Reflect.ownKeys(oe):[];(_?Reflect.ownKeys(_):[]).forEach(ve=>{le.includes(ve)||(oe[ve]=[])}),y(oe)}if(X&&ee){const _=t.toRaw(ee),oe=t.toRaw(X),le=oe?Reflect.ownKeys(oe):[];(_?Reflect.ownKeys(_):[]).forEach(ve=>{le.includes(ve)||(oe[ve]=[])}),y(oe,!0)}},{deep:!0});const g=e,k=t.computed(()=>{const O={};if(O.height=x.value,n.width)n.width!=="auto"&&(O.width=pe(n.width));else{const X=i?$o(r,!0):null;if(f.value&&X){if(f.value.type==="grid"){const Q=Eo(X,f.value,n.span,n.offset);Object.assign(O,Q)}else if(f.value.type==="flow"){const Q=To(X,f.value,n.span,n.offset,n.width);Object.assign(O,Q)}}}return O}),v=t.computed(()=>{const O=s.layout.value.type;return O==="grid"||O==="flow"?{[`${g}--${O}`]:!0,[`${g}--${O}-justify-${n.justify}`]:!0,[`${g}--${O}-align-${n.align}`]:!0,[`${g}--gutter`]:!0}:{[`${g}--${O}`]:!0,[`${g}--gutter`]:!0}}),u=t.computed(()=>{if(s.layout.value.type==="grid"){let X="";if(n.columnWidth)X=`repeat(auto-fill, ${n.columnWidth})`;else{const Q=zi(B.value,s.layout.value.column,s.layout.value.gutter);X=`repeat(${s.layout.value.column}, ${Q})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":X}}}),p=t.toRef(n,"gutter"),b=t.toRef(n,"column"),S=t.computed(()=>i||m.value?!0:me(n.isWrap)),N=[],C=O=>{N.push(O)},V=()=>{let O=N.length;N.splice(0,O)},B=t.ref(-1),I=O=>{const X=Fn(O).width;X>0&&X!==B.value&&(B.value=X)};Go(r,B.value,b.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type),n.autoLayout&&t.watch([B,b,p],([O,X,Q])=>{s.order.index=0,Go(r,O,X,Q,!1,n.minItemWidth,n.maxItemWidth,n.type)});const A=t.computed(()=>U.value?n.expandText??"":n.collapseText??""),w=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),P=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),F=t.ref(),E=t.ref(),x=t.computed(()=>D.value||pe(n.height)||""),U=t.ref(!1),D=t.ref(""),W=t.ref(!1);let H=-1;const G=(O,X=!0)=>{const Q=F.value;if(Q&&U.value!==O){if(H=H===-1?Mi(Q):H,W.value=!0,X)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",O||(D.value="",W.value=!1)},O){let ee=0;n.collapseHeight?ee=n.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(ee=E.value.offsetHeight),D.value=`${H}px`,t.nextTick(()=>{D.value=`${ee}px`})}else D.value=`${H}px`;else if(O){let ee=0;n.collapseHeight?ee=n.collapseHeight:E.value&&E.value.classList.contains(`${e}__header`)&&(ee=E.value.offsetHeight),D.value=`${ee}px`}else W.value=!1,D.value=`${H}px`;U.value=O,a.emit("update:collapse",O)}};t.watch(()=>n.collapse,O=>{G(O)});const R=()=>{$()},$=O=>{O=O??!U.value,G(O)};$e({toggleCollapse:$,doLayout:()=>{N[0]&&(I(N[0]),Go(r,B.value,b.value,p.value,!0,n.minItemWidth,n.maxItemWidth,n.type))}});let z=null,M=!0;const L=O=>{if(n.rules){const X=t.toRaw(n.rules);y(X)}if(n.pureDataRules){const X=t.toRaw(n.pureDataRules);y(X,!0)}if(st&&(O&&G(me(n.collapse),!1),n.autoLayout&&Array.isArray(N)&&N.length>0)){const X=N[0];I(X),window.ResizeObserver&&(z=new window.ResizeObserver(()=>{I(X)}),z.observe(X))}},q=()=>{z?.disconnect(),z=null},K=!m.value||c?.acquire();K&&(d.value=m.value?!0:null),t.onMounted(()=>{if(K&&(L(M),M=!1),m.value&&c){let O=null,X=c.initialHeight;c.observe(F.value,Q=>{if(Q!==d.value)if(Q)d.value=!0,U.value||(D.value=""),O=setTimeout(()=>{O=null,d.value!==!1&&(L(M),M=!1)},100);else{if(O!==null&&clearTimeout(O),d.value=!1,!U.value)if(M)D.value=c.initialHeight;else{let ee=hn(F.value);ee<=0?D.value=X:(D.value=`${ee}px`,X=D.value)}M||q()}})}}),t.onUnmounted(()=>{z?.disconnect(),c&&c.unobserve(F.value)});const j=(O="right")=>{const X=[];if(A.value){const _={class:w.value},oe=t.h("span",_,[A.value]);X.push(oe)}const Q={class:P.value},ee=l(n.collapseIcon,Q);return ee&&X.push(ee),X.length>0?t.h("div",{class:{[`${g}__header-collapse`]:!0,[`is-${O}`]:!0},onClick:R},X):null},Z=(O,X,Q,ee)=>{const _={...v.value};return X===0&&(_[`${g}__first`]=!0),Q>=ee-1&&(_[`${g}__last`]=!0),t.h("div",{ref:C,key:`${X}`,class:_,style:u.value},O)};return()=>{if(m.value&&d.value!==!0){const _=n.tag||"div";return t.h(_,{ref:F,prop:n.name,class:{[`${g}`]:!0,"is-collapse":W.value},style:k.value},[])}s.order.index=0;const O=[];let X=0;if(a.slots.header){const _={key:`${X++}`,ref:E,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},oe=t.h("div",_,[a.slots.header()]);O.push(oe)}else{const _=[],oe=n.collapsePosition==="left";if(oe&&n.showCollapse){const le=j("left");le&&_.push(le)}if(n.title||a.slots.title){if(n.showMark){const le={class:{[`${g}__header-mark`]:!0}};n.markColor&&(le.style={background:n.markColor});const Te=t.h("div",le);_.push(Te)}if(a.slots.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[a.slots.title()]);_.push(le)}else if(n.title){const le=t.h("div",{class:{[`${g}__header-title`]:!0}},[n.title]);_.push(le)}}if(a.slots.toolbar&&_.push(a.slots.toolbar()),!oe&&n.showCollapse){const le=j("right");le&&_.push(le)}if(_.length>0){const le={key:`${X++}`,ref:E,class:{[`${g}__header`]:!0,[`${g}__first`]:!0}},Te=t.h("div",le,_);O.push(Te)}}V();const Q=a.slots.default?a.slots.default():[],ee=s.layout.value.type;if(ee==="grid"){const _=Z(Q,X++,0,Q.length);O.push(_)}else if(ee==="flow"){const _=Z(Q,X++,0,Q.length);O.push(_)}else for(let _=0;_<Q.length;_++){const oe=Q[_],le=Z([oe],X++,_,Q.length);O.push(le)}if(S.value){const _=n.tag||"div";return t.h(_,{ref:F,prop:n.name,class:{[`${g}`]:!0,"is-collapse":W.value},style:k.value},[O])}else return O}}}}const{componentName:Fi,create:Ri,scope:Oi}=Y("group"),Ki=(e=te.RectUp,o={})=>t.h(e,o),Un=Ri(Li(Fi,Oi,Ki));function Ui(e){return e===window}const Hi=/matrix\((.+)\)/,es=e=>{const o=t.unref(e);if(!o)return{x:0,y:0};if(Ui(o))return{x:0,y:0};let l=0,n=0,a=o;for(;a!==null;)l+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let r=0,s=0,i=0,c=0;for(a=o;a!==document;){s+=a.scrollTop,r+=a.scrollLeft;const{transform:d}=window.getComputedStyle(a);if(d){const m=Hi.exec(d);if(m){let h=m[1].split(/\s*,\s*/);h.length==6&&(i+=Number(h[4]),c+=Number(h[5]))}}a=a.parentNode}return l-=r,n-=s,l+=i,n+=c,{x:l,y:n}};class ji{watchedListeners=[];add(o){this.watchedListeners.push(o)}remove(o){const l=this.watchedListeners.indexOf(o);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(o=>{try{o()}catch{}})}}class Wi{monitorRegister=new WeakMap;watch(o,l){let n=o.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r||(r=new ji,n.addEventListener("scroll",r.listen),n===document.body&&n.addEventListener("resize",r.listen),this.monitorRegister.set(n,r)),r.add(l),n=n.parentNode}}unwatch(o,l){let n=o.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r&&(r.remove(l),r.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",r.listen),n===document.body&&n.removeEventListener("resize",r.listen))),n=n.parentNode}}}const Ma=new Wi,ts={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:Yi,create:Xi}=Y("price"),Qi=Xi({props:{...ts},setup(e){const o=t.computed(()=>({[Yi]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),n=t.computed(()=>ge(e.price)==0?"":po(e.price,e.decimalLength,!0,fe(e.digits),e.separator)),a=t.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:o,showSymbol:l,intText:a,decimalText:r}}}),Gi=["innerHTML"],Zi=["innerHTML"];function Ji(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Gi)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,Zi)):t.createCommentVNode("",!0)],2)}const Xe=J(Qi,[["render",Ji]]),{componentName:Zo,create:_i}=Y("hint-text"),ec=_i({components:{Price:Xe},props:{...ts,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,o){const l=t.ref({top:null,right:null,bottom:null,left:null}),n=t.ref({x:0,y:0}),a=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),d=(w,P,F,E,x,U)=>{const D=document.documentElement.clientWidth||document.body.clientWidth,W=document.documentElement.clientHeight||document.body.clientHeight,H=w.split("-");let G=[];H[0]==="top"?G=["top","bottom","right","left"]:H[0]==="bottom"?G=["bottom","top","right","left"]:H[0]==="left"?G=["left","top","bottom","right"]:H[0]==="right"&&(G=["right","top","bottom","left"]);const R={top:null,right:null,bottom:null,left:null},$=[];for(let T=0;T<G.length;T++){const z=G[T];if($[0]=z,H[1]&&($[1]=H[1]),z==="top"){const M=P.y-U-e.arrowSize-e.offset;if(M>=0){R.top=M;let L=0;H[1]==="start"?L=P.x:H[1]==="end"?L=P.x+F-x:L=P.x+F/2-x/2;const q=D-L-x;q<0?(L+=q,f.value=-q):f.value=0,R.left=L<0?0:L;break}}else if(z==="bottom"){const M=P.y+E+e.arrowSize+e.offset;if(M+U<=W){R.top=M;let L=0;H[1]==="start"?L=P.x:H[1]==="end"?L=P.x+F-x:L=P.x+F/2-x/2;const q=D-L-x;q<0?(L+=q,f.value=-q):f.value=0,R.left=L<0?0:L;break}}else if(z==="left"){const M=P.x-x-e.arrowSize-e.offset;if(M>=0){R.left=M;let L=0;H[1]==="start"?L=P.y:H[1]==="end"?L=P.y+E-U:L=P.y+E/2-U/2,R.top=L<0?0:L;break}}else if(z==="right"){const M=P.x+F+e.arrowSize+e.offset;if(M+x<=D){R.left=M;let L=0;H[1]==="start"?L=P.y:H[1]==="end"?L=P.y+E-U:L=P.y+E/2-U/2,R.top=L<0?0:L;break}}}return{bestPlacement:$.join("-"),bestInsetRect:R}},m=(w,P,F=10)=>{if(!st||P===!1||!w)return;n.value=es(e.reference),a.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const E=c.value.offsetHeight,x=c.value.offsetWidth,{bestPlacement:U,bestInsetRect:D}=d(e.placement,n.value,a.value,r.value,x,E);s.value=U,l.value=D,i.value=!0},f=t.ref(0),h=ht(()=>{m(e.message,e.visible)},10),y=t.ref(e.visible);t.watch(()=>e.visible,w=>{y.value=w});const g=t.computed(()=>y.value&&k.value),k=t.ref(!0),v=ht(w=>{const P=w[0];P&&(k.value=P.isIntersecting)},10),u=new IntersectionObserver(v);t.watch([()=>e.message,()=>e.visible],([w,P])=>{setTimeout(()=>{m(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{m(e.message,e.visible)},0),Ma.watch(e.reference,h),u.observe(e.reference)}),t.onBeforeMount(()=>{Ma.unwatch(e.reference,h),u.unobserve(e.reference),u.disconnect()});const p=t.computed(()=>{const w={[Zo]:!0};return s.value.startsWith("top")?w["is-top"]=!0:s.value.startsWith("right")?w["is-right"]=!0:s.value.startsWith("bottom")?w["is-bottom"]=!0:s.value.startsWith("right")&&(w["is-right"]=!0),e.size==="small"?w["is-small"]=!0:e.size==="large"&&(w["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(w[`${e.customClass}`]=!0),w}),b=t.computed(()=>{const w={};l.value.top!==null&&(w.top=`${l.value.top}px`),l.value.right!==null&&(w.right=`${l.value.right}px`),l.value.bottom!==null&&(w.bottom=`${l.value.bottom}px`),l.value.left!==null&&(w.left=`${l.value.left}px`),e.autoFit&&(w["min-width"]=`${a.value}px`);const P=document.documentElement.clientWidth||document.body.clientWidth;return w["max-width"]=`${P}px`,i.value&&(w.opacity="1"),e.transition||(w.transition="none"),e.zIndex&&(w["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(w,e.customStyle),w}),S=t.computed(()=>{const w=[`${Zo}__content`];return e.customTextClass&&w.push(e.customTextClass),w}),N=t.computed(()=>{const w={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(w,e.customTextStyle),w}),C=t.computed(()=>({[`${Zo}__arrow`]:!0})),V=t.computed(()=>{const w={};return e.showArrow?(w.width=`${e.arrowSize}px`,w.height=`${e.arrowSize}px`,s.value==="top"?(w.left="50%",w.bottom=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):s.value==="top-start"?(w.left=`${e.arrowOffset+f.value}px`,w.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(w.right=`${e.arrowOffset-f.value}px`,w.bottom=`-${e.arrowSize}px`):s.value==="right"?(w.left=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):s.value==="right-start"?(w.left=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):s.value==="right-end"?(w.left=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(w.left="50%",w.top=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(w.left=`${e.arrowOffset+f.value}px`,w.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(w.right=`${e.arrowOffset-f.value}px`,w.top=`-${e.arrowSize}px`):s.value==="left"?(w.right=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):s.value==="left-start"?(w.right=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):s.value==="left-end"&&(w.right=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`),w):{display:"none"}}),B=t.computed(()=>g.value&&e.closeOnClick),I=t.computed(()=>{const w={};return e.zIndex&&(w["z-index"]=`${e.zIndex}`),w});return{show:g,tipRef:c,classes:p,styles:b,textClasses:S,textStyles:N,arrowClasses:C,arrowStyles:V,overlayShow:B,overlayStyle:I,onClickOverlay:()=>{y.value=!1,o.emit("update:visible",!1)}}}});function tc(e,o,l,n,a,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:o[0]||(o[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.message),1)],64))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const os=J(ec,[["render",tc]]);class Do{seed=new Date().getTime();constructor(o){this.seed=o??new Date().getTime()}get(){let o=this.seed++;return this.seed<0&&(this.seed=0),o}}const gn={},oc=new Do,pt=new Map,fo=e=>{if(e){const o=document.getElementById(e);pt.delete(e),o&&o.parentNode?.removeChild(o)}else{for(const o of pt.keys()){const l=document.getElementById(o);l&&l.parentNode?.removeChild(l)}pt.clear()}},nc=e=>{e.unmount=fo;const o=document.getElementById(e.id);if(o){const l=pt.get(e.id);l?e={...gn,...l,...e}:e={...gn,...e},e.transition=!1;const n=t.createVNode(os,e);return t.render(n,o),e.id}},lc=e=>{e.unmount=fo;let o=e.id??`hinttext_${oc.get()}`;e={...gn,...e},e.id=o,pt.set(o,e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(os,e);return t.render(n,l),document.body.appendChild(l),o},ac=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},ot={show(e,o,l={},n=!0){ac(o);const a=l.id;return a&&pt.has(a)?nc({...l,message:o,reference:e}):(n&&fo(),lc({...l,message:o,reference:e}))},hide(e){fo(e)},install(e){e.config.globalProperties.$hintText=ot}},{componentName:za,create:rc}=Y("item"),sc=rc({inheritAttrs:!0,props:{...ue,...de},emits:["appear","disappear"],setup(e,o){const l=e.prop??o.attrs.name;we({componentName:za,validate:!1},l);const n=Ke(),a=Bo();Vo(!1);const r=t.computed(()=>a&&n?Ao(n,!1).value:null),s=za,i=t.ref(null),c=t.computed(()=>{const O={[s]:!0,[`${s}__gutter`]:r.value&&r.value.type!=="flow",[`${s}__stretch`]:e.span==="stretch",[`${s}__input--border`]:me(e.hasBorder)};if(O[e.errorMarkClass]=!!P.value,O[e.warnMarkClass]=!!A.value,O[e.infoMarkClass]=!!B.value,typeof i.value=="function"){const X=i.value(l);O[X]=!0}else if(typeof i.value=="string"){const X=i.value;O[X]=!0}return O}),d=t.ref(null),m=t.computed(()=>{const O={};if(e.width)e.width!=="auto"&&(O.width=pe(e.width));else{const X=a&&n?$o(n,!1):null;if(r.value&&X){if(r.value.type==="grid"){const Q=Eo(X,r.value,e.span,e.offset);Object.assign(O,Q)}else if(r.value.type==="flow"){const Q=To(X,r.value,e.span,e.offset,e.width);Object.assign(O,Q)}}}if(typeof d.value=="function"){const X=d.value(l);X&&Object.assign(O,X)}else if(d.value&&typeof d.value=="object"){const X=d.value;Object.assign(O,X)}return O}),f=t.ref(null),h=t.computed({get:()=>f.value??me(e.isRequired),set:O=>{f.value=O}}),y=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof o.slots.label=="function"),g=Ne(t.toRef(e,"labelPosition"),"labelPosition",co.Near),k=t.computed(()=>g&&g.value==="top"?"top":g&&g.value==="right"?"right":"left"),v=t.computed(()=>({[`${s}__main`]:!0,[`${s}__main--${k.value}`]:!0})),u=t.computed(()=>({label:!0,[`label--${k.value}`]:!0})),p=Ne(t.toRef(e,"labelWidth"),"labelWidth",co.Near),b=t.computed(()=>p&&p.value?{width:pe(p.value)}:{}),S=t.computed(()=>({"label--string":!0,"label--required":h.value})),N=t.computed(()=>({content:!0,[e.contentClass]:!0})),C=t.computed(()=>({...e.contentStyle})),V=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(O){h.value=O},setErrorTip(O){V.errorTip=O},setErrorIcon(O){V.errorIcon=O},setWarnTip(O){V.warnTip=O},setWarnIcon(O){V.warnIcon=O},setInfoTip(O){V.infoTip=O},setInfoIcon(O){V.infoIcon=O},setCustomClassName(O){i.value=O},setCustomStyle(O){d.value=O}});const B=t.computed(()=>e.infoTip||V.infoTip),I=t.computed(()=>e.infoIcon||V.infoIcon),A=t.computed(()=>e.warnTip||V.warnTip),w=t.computed(()=>e.warnIcon||V.warnIcon),P=t.computed(()=>e.errorTip||V.errorTip),F=t.computed(()=>e.errorIcon||V.errorIcon),E=t.computed(()=>P.value?"error":A.value?"warn":B.value?"info":""),x=t.computed(()=>E.value.length>0),U=t.computed(()=>E.value==="error"?P.value:E.value==="warn"?A.value:E.value==="info"?B.value:""),D=t.computed(()=>E.value==="error"?F.value:E.value==="warn"?w.value:E.value==="info"?I.value:null),W=t.computed(()=>{let O={[`${s}__tip`]:!0,[`${s}__tip--${E.value}`]:!0};return E.value==="error"&&e.errorClass?O[`${e.errorClass}`]=!0:E.value==="warn"&&e.warnClass?O[`${e.warnClass}`]=!0:E.value==="info"&&e.infoClass&&(O[`${e.infoClass}`]=!0),O}),H=t.computed(()=>{let O={};return g&&g.value==="top"||!y.value?O["padding-left"]="0px":p&&p.value&&(O["padding-left"]=pe(p.value)),O}),G=()=>{const O=D.value;return O?typeof O=="function"?t.h("div",{class:"fox-item__tip--icon"},[O()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(O)]):null},R=()=>{const O=U.value;return O?typeof O=="function"?t.h("div",{class:"fox-item__tip--text"},[O()]):t.h("div",{class:"fox-item__tip--text"},[O]):null},$=t.computed(()=>o.slots.fixedPreTip),T=t.computed(()=>({[`${s}__fixed-pre-tip`]:!0})),z=t.computed(()=>o.slots.fixedTip),M=t.computed(()=>({[`${s}__fixed-tip`]:!0})),L=t.ref();let q="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([O,X,Q,ee])=>{L.value&&(O&&!ce(X)?q?ot.show(L.value,X,{...ee,id:q,type:Q},!0):q=ot.show(L.value,X,{...ee,type:Q},!0):ot.hide(q))});let K=null;const j=()=>{K||!L.value||(K=new IntersectionObserver(O=>{let X=!1;for(let Q of O)if(Q.intersectionRatio>0){X=!0,X&&o.emit("appear",Q);break}X||o.emit("disappear")}),K.observe(L.value))},Z=()=>{!K||!L.value||(K.unobserve(L.value),K=null)};return t.watch(()=>me(e.appearListen),O=>{O?j():Z()}),t.onMounted(()=>{me(e.appearListen)&&j()}),t.onUnmounted(Z),{classes:c,styles:m,mainClasses:v,hasLabel:y,labelClasses:u,labelStyles:b,labelStringClasses:S,contentClasses:N,contentStyles:C,contentRef:L,hasTip:x,mTip:U,mIcon:D,renderIcon:G,renderTip:R,tipClasses:W,tipStyles:H,hasFixedTip:z,fixedTipClasses:M,hasFixedPreTip:$,fixedPreTipClasses:T}}}),ic=["prop"];function cc(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2),t.renderSlot(e.$slots,"fixedPreTip")],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon()),{key:0})):t.createCommentVNode("",!0),e.mTip?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderTip()),{key:1})):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,ic)}const be=J(sc,[["render",cc]]);function uc(e,o){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean,String],required:!1,default:!1}},setup(l,n){const a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:l.span==="stretch",[`${a}__${l.align}`]:!0})),s=Ke(),i=Bo();Vo(!1);const c=t.computed(()=>{const d={};if(l.width)l.width!=="auto"&&(d.width=pe(l.width));else if(i&&s){const m=Ao(s,!1),f=$o(s,!1);if(m.value&&f){if(m.value.type==="grid"){const h=Eo(f,m.value,l.span,l.offset);Object.assign(d,h)}else if(m.value.type==="flow"){const h=To(f,m.value,l.span,l.offset,l.width);Object.assign(d,h)}}}return d});return()=>{const d=[];if(n.slots.default){const f=n.slots.default();if(l.divide)for(let h=0;h<f.length;h++){if(h>0){const y=t.h("div",{class:{[`${a}__divide`]:!0}});d.push(y)}d.push(f[h])}else Reflect.apply([].push,d,f)}const m={class:r.value,style:c.value};return t.h("div",m,d)}}}}const{componentName:dc,create:fc,scope:YB}=Y("row-item"),Hn=fc(uc(dc));function mc(e,o){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(l,n){const a=Ke(),r=Bo();Vo(!1);const s=t.computed(()=>r&&a?Ao(a,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:l.span==="stretch"})),d=t.computed(()=>{const m={};if(l.width)l.width!=="auto"&&(m.width=pe(l.width));else{const f=r&&a?$o(a,!1):null;if(s.value&&f){if(s.value.type==="grid"){const h=Eo(f,s.value,l.span,l.offset);Object.assign(m,h)}else if(s.value.type==="flow"){const h=To(f,s.value,l.span,l.offset,l.width);Object.assign(m,h)}}}return m});return()=>{const m={class:c.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?t.h("div",m,n.slots.default()):t.h("div",m)}}}}const{componentName:pc,create:hc,scope:XB}=Y("slot-item"),jn=hc(mc(pc)),Pa={type:{type:String,default:"text"},modelValue:{type:[String,Number],default:""},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function gc(e,o,l,n){return{props:{...ue,...de,...Pa},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),{toLocaleRefs:d}=ae.useFoxI18n(o),m=d(a,["placeholder"]),f=t.ref(!1),h=Ee(a,"modelValue"),y=e,g=t.computed(()=>({[y]:!0,[`${y}--disabled`]:s.value,[`${y}--readonly`]:i.value})),k=Ne(t.computed(()=>a.textAlign),"textAlign"),v=t.computed(()=>{const x={};return k.value&&(x["text-align"]=k.value),x}),u=x=>{let D=x.target.value;a.type==="digit"&&(D=dn(D,!0)),a.type==="number"&&(D=dn(D,!1)),a.maxLength&&D.length>Number(a.maxLength)&&(D=D.slice(0,Number(a.maxLength))),h.value=D,c("update:modelValue",D,x),c("change",D,x)};let p=Ee(a,"hintText"),b=t.ref(!1);const S=x=>{let D=x.target.value;f.value=!0,ce(p.value)||(b.value=!0),c("focus",D,x)},N=x=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let D=x.target.value;a.maxLength&&D.length>Number(a.maxLength)&&(D=D.slice(0,Number(a.maxLength))),c("blur",D,x)},C=t.computed(()=>({[`${y}__append`]:!0})),V=t.computed(()=>{const x={};return r.slots.append&&!B.value&&!F.value&&(x.display="none"),x}),B=t.computed(()=>ge(a.unit)>0),I=t.computed(()=>!F.value),A=t.computed(()=>({[`${y}__unit`]:!0,hidden:!I.value})),w=x=>{h.value="",c("update:modelValue","",x),c("change","",x),c("clear","")},P=t.computed(()=>me(a.clearable)&&!s.value&&!i.value),F=t.computed(()=>{let x=ge(h.value)>0;return me(a.clearable)&&x&&f.value}),E=t.computed(()=>({action:!0,hidden:!F.value}));return()=>{const x={class:g.value,style:v.value,type:a.type,maxlength:a.maxLength,placeholder:m.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:u,onFocus:S,onBlur:N},U=[],D=t.h("input",x);U.push(D);const W=[];if(P.value){const M={class:["action-icon"]},L=t.h(n,M),q={class:E.value,onClick:w},K=t.h("view",q,{default:()=>[L]});W.push(K)}if(B.value){const M=t.h("view",{class:A.value},[a.unit]);W.push(M)}const H={class:C.value,style:V.value},G=t.h("view",H,{default:()=>W});U.push(G);const R={default:()=>U};R.label=r.slots.default,R.prepend=r.slots.prepend,R.append=r.slots.append,R.fixedPreTip=r.slots.fixedPreTip,R.fixedTip=r.slots.fixedTip;const T={...In(a,Pa),hintText:p.value,hintVisible:b.value};return t.h(l,T,R)}}}}const{componentName:yc,create:vc,scope:kc}=Y("input-item"),Wn=vc(gc(yc,kc,be,te.CircleClose));function La(e,o=0){let l=`${e}`,n=l.indexOf(".");if(n==-1)return l;let a=n;for(let r=l.length-1;r>=n;r--)if(l.charAt(r)!="0"){a=r;break}return a-n<o?a=n+o+1:a!=n&&(a+=1),a>l.length?l=l.padEnd(a,"0"):l=l.substring(0,a),l}function Fa(e,o,l=20){if(typeof o=="string"&&(o=fe(o)),o==1||o==-1)return`${e}`;if(o==0)return"0";if(o>0){let n=Sr(`${e}`,`${o}`);return La(n)}else{let n=xn(`${e}`,Cr(`${o}`),20);return La(n)}}function bc(e,o=-1,l=!1,n=3,a=","){return po(e,o,l,n,a)}function Ra(e,o,l,n,a=!0){if(e=="")return"";if(e=wr(e),o=fe(o),o==1)return e;if(n)e=Fa(e,o),l&&(e=="0"&&a?e=`${e}.`.padEnd(fe(l)+2,"0"):e=xn(e,1,fe(l)));else{let r=-1*o;e=Fa(e,r)}return e}function Oa(e,o){let l={maxValid:!0,minValid:!0,message:""};if(o.min!==void 0){let n=me(o.minInclude),a=sn(e,o.min);if(n&&a==-1||!n&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";l.message=r.replace("{0}",o.min),l.minValid=!1}}if(o.max!=null){let n=me(o.maxInclude),a=sn(e,o.max);(n&&a==1||!n&&(a==0||a==1))&&(l.maxValid=!1)}return l}const Ka={clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Sc(e,o,l,n){return{props:{...ue,...de,...Ka},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=t.ref(!1),m=Ee(a,"modelValue"),f=t.ref("");t.watch([()=>m.value,()=>a.rates,()=>a.precision],([H,G,R])=>{if(ce(H)){f.value="";return}const $=Ra(H,G,R,!1);f.value!==$&&(f.value=$)},{immediate:!0});const h=t.computed(()=>{let H="";return d.value&&(H=f.value),H}),{t:y}=ae.useFoxI18n(o),g=t.computed(()=>{let H=a.placeholder??"";return!d.value&&!ce(f.value)?H=bc(f.value,a.decimalLength,a.autoPadding,a.digits,a.separator):H=ce(H)?y(["placeholder"]):H,H}),k=e,v=t.computed(()=>({[k]:!0,[`${k}--disabled`]:s.value,[`${k}__placeholder`]:f.value.length>0})),u=Ne(t.computed(()=>a.textAlign),"textAlign"),p=t.computed(()=>{const H={};return u.value&&(H["text-align"]=u.value),H}),b=t.ref(""),S=t.computed(()=>{let H=b.value;return ce(H)&&(H=a.errorTip??""),H}),N=t.ref(""),C=t.ref(!1),V=H=>{let R=H.target.value;if(ce(R)){f.value="",m.value="",c("update:modelValue","",H),c("change","",H),me(a.showTip)&&C.value&&(C.value=!1);return}if(R.length>=2){let $=R;if($.charAt(0)=="-"&&($=$.substring(1)),$.length>=2&&$.charAt(0)=="0"&&$.charAt(1)!="."){t.triggerRef(f);return}}if(R!="-"){if(!xr(R)){t.triggerRef(f);return}if(a.integerLength!=-1&&Ir(R)>Number(a.integerLength)){t.triggerRef(f);return}if(a.decimalLength&&a.decimalLength!=-1&&qr(R)>Number(a.decimalLength)){t.triggerRef(f);return}let $=Oa(R,a);if($.maxValid===!1){b.value=$.message,t.triggerRef(f);return}}else if(a.min!=null&&fe(a.min)>=0){t.triggerRef(f);return}N.value=R,me(a.showTip)&&(C.value=R.length>0),f.value=R,m.value=Ra(R,a.rates,a.precision,!0),c("update:modelValue",m.value,H),c("change",m.value,H)},B=H=>{if(d.value=!0,me(a.showTip)){let G=f.value;ce(G)&&(G=a.hintText),ce(G)||(N.value=G,C.value=!0)}b.value="",c("focus",m.value,H)},I=H=>{if(setTimeout(()=>{d.value=!1,me(a.showTip)&&C.value===!0&&(C.value=!1)},0),!ce(f.value)){let G=Oa(f.value,a);if(G.minValid===!1||G.maxValid===!1){b.value=G.message;return}}c("update:modelValue",m.value,H),c("blur",m.value,H)},A=t.computed(()=>({[`${k}__append`]:!0})),w=t.computed(()=>{const H={};return r.slots.append&&!P.value&&!D.value&&(H.display="none"),H}),P=t.computed(()=>ge(a.unit)>0),F=t.computed(()=>!D.value),E=t.computed(()=>({[`${k}__unit`]:!0,hidden:!F.value})),x=H=>{m.value="",c("update:modelValue","",H),c("change","",H),c("clear","")},U=t.computed(()=>me(a.clearable)&&!s.value&&!i.value),D=t.computed(()=>{let H=ge(m.value)>0;return me(a.clearable)&&H&&d.value}),W=t.computed(()=>({action:!0,hidden:!D.value}));return()=>{let H={class:v.value,style:p.value,type:"digit",maxlength:a.maxLength,placeholder:g.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:V,onFocus:B,onBlur:I},G=[],R=t.h("input",H);G.push(R);let $=[];if(U.value){const j={class:["action-icon"]},Z=t.h(n,j),O={class:W.value,onClick:x},X=t.h("view",O,{default:()=>[Z]});$.push(X)}if(P.value){const j=t.h("view",{class:E.value},[a.unit]);$.push(j)}const T={class:A.value,style:w.value},z=t.h("view",T,{default:()=>$});G.push(z);const M={default:()=>G};M.label=r.slots.default,M.prepend=r.slots.prepend,M.append=r.slots.append,M.fixedPreTip=r.slots.fixedPreTip,M.fixedTip=r.slots.fixedTip;let q={...In(a,Ka),errorTip:S.value,hintText:N.value,hintVisible:C.value,hintType:"number"};return t.h(l,q,M)}}}}const{componentName:Cc,create:wc,scope:Nc}=Y("money-item"),Yn=wc(Sc(Cc,Nc,be,te.CircleClose)),yn={modelValue:{type:[String,Number],default:""},textAlign:{type:String,default:""},limitShow:{type:Boolean,default:!1},maxLength:{type:[String,Number],default:""},rows:{type:[String,Number],default:"2"},placeholder:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autosize:{type:[Boolean,Object],default:!1},autofocus:{type:Boolean,default:!1}},{componentName:Bc,create:Vc,scope:Ac}=Y("textarea"),$c=Vc({props:{...yn},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:o}){let{toLocaleRefs:l}=ae.useFoxI18n(Ac);const n=l(e,["placeholder"]),a=t.ref(),r=t.computed(()=>{const h=Bc;return{[h]:!0,[`${h}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const s=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let h=a.value;h.style.height="auto";let y=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:g,minHeight:k}=e.autosize;g!==void 0&&(y=Math.min(y,g)),k!==void 0&&(y=Math.max(y,k))}y&&(h.style.height=y+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,y)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),o("update:modelValue",h,y),o("change",h,y)};return{...n,textareaRef:a,classes:r,styles:s,change:h=>{const y=h.target;c(y.value,h)},focus:h=>{e.disabled||e.readonly||o("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let g=h.target.value;c(g,h),o("blur",{value:g,event:h})}}}}),Tc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Ec={key:0,class:"fox-textarea__limit"};function Dc(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:t.normalizeStyle(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:o[0]||(o[0]=(...s)=>e.change&&e.change(...s)),onBlur:o[1]||(o[1]=(...s)=>e.blur&&e.blur(...s)),onFocus:o[2]||(o[2]=(...s)=>e.focus&&e.focus(...s)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Tc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Ec,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const xo=J($c,[["render",Dc]]);function xc(e,o,l,n){return{props:{...ue,...de,...yn},emits:["update:modelValue","change","blur","focus"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=Ee(a,"modelValue"),m=k=>{d.value=k,c("update:modelValue",k,{}),c("change",k,{})};let f=Ee(a,"hintText"),h=t.ref(!1);const y=k=>{ce(f.value)||(h.value=!0),c("focus",d.value,k)},g=k=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",d.value,k)};return()=>{const v={...he(a,yn),disabled:s.value,readonly:i.value,value:d.value,"onUpdate:modelValue":m,onFocus:y,onBlur:g},u=[],p=t.h(n,v);u.push(p);const b={default:()=>u};b.label=r.slots.default,b.prepend=r.slots.prepend,b.append=r.slots.append,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const S=he(a,de,ue);return t.h(l,S,b)}}}}const{componentName:Ic,create:qc,scope:Mc}=Y("textarea-item"),Xn=qc(xc(Ic,Mc,be,xo));function zc(e){return e===window}const Ve=e=>{const o=t.unref(e);if(zc(o)){const l=o.innerWidth,n=o.innerHeight;return{top:0,left:0,right:l,bottom:n,width:l,height:n}}return o&&o.getBoundingClientRect?o.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},ze={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},ns=2e3;let Ua=ns;const Pc=(e,o)=>({components:o,props:{...ze},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:n}){const a=t.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),r=t.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),s=t.computed(()=>({zIndex:a.zIndex,transitionDuration:`${l.duration}s`,...l.style})),i=t.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),c=()=>{l.zIndex!==ns&&(Ua=Number(l.zIndex)),n("update:visible",!0),a.zIndex=++Ua,l.destroyOnClose&&(a.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+l.duration*1e3)},m=k=>{n("click-pop",k)},f=k=>{k.stopPropagation(),n("click-close-icon",k),n("update:visible",!1)},h=k=>{n("click-overlay",k),l.closeOnClickOverlay&&n("update:visible",!1)},y=k=>{n("opend",k)},g=k=>{n("closed",k)};return t.watch(()=>l.visible,k=>{l.visible?c():d()}),t.watch(()=>l.closeable,k=>{a.closed=k}),{...t.toRefs(a),popStyle:s,transitionName:i,classes:r,onClick:m,onClickCloseIcon:f,onClickOverlay:h,onOpened:y,onClosed:g}}});let Bt=0;const Ha="fox-overflow-hidden",ja=()=>st?document.body:{classList:[]},Lc=e=>[()=>{if(e())try{!Bt&&ja().classList.add(Ha),Bt++}catch{}},()=>{if(e()&&Bt)try{Bt--,!Bt&&ja().classList.remove(Ha)}catch{}}],Fc={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:Rc,create:Oc}=Y("overlay"),Kc=Oc({props:{...Fc},emits:["click","update:visible"],setup(e,{emit:o}){const[l,n]=Lc(()=>e.lockScroll),a=t.computed(()=>({[Rc]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,i=>{i?l():n()}),{classes:a,style:r,onClick:i=>{o("click",i),e.closeOnClickOverlay&&o("update:visible",!1)}}}});function Uc(e,o,l,n,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const at=J(Kc,[["render",Uc]]),{componentName:Hc,create:jc}=Y("popup"),Wc=jc(Pc(Hc,{FoxOverLay:at,Close:te.Close}));function Yc(e,o,l,n,a,r){const s=t.resolveComponent("FoxOverLay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:o[1]||(o[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[0]||(o[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const ie=J(Wc,[["render",Yc]]),Wa=10;function Xc(e,o){return e>o&&e>Wa?"horizontal":o>e&&o>Wa?"vertical":""}function Ue(){const e=t.ref(0),o=t.ref(0),l=t.ref(0),n=t.ref(0),a=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),d=t.ref(0),m=t.ref(""),f=()=>m.value==="vertical",h=()=>m.value==="horizontal",y=()=>{s.value=0,i.value=0,c.value=0,d.value=0,m.value="",l.value=0};return{move:v=>{const u=v.touches[0];s.value=u.clientX-e.value,i.value=u.clientY-o.value,a.value=u.clientX,r.value=u.clientY,c.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-l.value,m.value||(m.value=Xc(c.value,d.value))},start:v=>{y(),e.value=v.touches[0].clientX,o.value=v.touches[0].clientY,l.value=Date.now()},reset:y,startX:e,startY:o,startTime:l,duration:n,moveX:a,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:d,direction:m,isVertical:f,isHorizontal:h}}const ls={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},vn={...ze,...ls,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String}};let as=36;function Qc(){return as}function Gc(e){as=e}function qe(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function kn(e,o){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?o[e.childrenKey]:o.children??null}function Zc(e,o,l){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(o[e.childrenKey]=l),o.children=l}function rt(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function Ya(e,o){return typeof e.itemOptions=="function"?e.columnOptions(o):e.columnOptions}let Jc=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function _c(){const e=t.getCurrentInstance();return new Jc(e.proxy)}function Xa(e,o,l){const n=qe(e,o),a=qe(e,l);if(n!==a)return!1;const r=rt(e,o),s=rt(e,l);return r===s}function eu(e,o,l,n){if(l.length==0)return[];Array.isArray(o)||(o=[o]);const a=[],r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<o.length&&s<l.length;s++){const i=o[s];let d=l[s].findIndex(m=>{if(r==="text")return qe(e,m)===i;if(r==="value"){let f=rt(e,m);return f==null&&(f=qe(e,m)),f===i}else if(r==="item")return Xa(e,m,i)});if(d==-1)break;a.push(d)}else{let s=l[0];for(let i=0;i<o.length;i++){const c=o[i];let d=s.findIndex(f=>{if(r==="text")return qe(e,f)===c;if(r==="value"){let h=rt(e,f);return h==null&&(h=qe(e,f)),h===c}else if(r==="item")return Xa(e,f,c)});if(d==-1)break;a.push(d);const m=kn(e,s[d]);if(!Array.isArray(m))break;s=m}}return a}function Qa(e,o,l,n){if(l.length==0)return null;const a={texts:[],values:[],items:[]},r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<o.length&&s<l.length;s++){const i=l[s];let c=o[s];c<0&&c>=i.length&&(c=0);const d=i[c],m=qe(e,d);if(a.texts.push(m),a.items.push(d),r==="text")a.values.push(m);else if(r==="value"){let f=rt(e,d);f==null&&(f=m),a.values.push(f)}else a.values.push(d)}else{let s=l[0];for(let i=0;i<o.length;i++){let c=o[i];c<0&&c>=s.length&&(c=0);const d=s[c],m=Object.assign({},d);m.children=null;const f=qe(e,d);if(a.texts.push(f),a.items.push(m),r==="text")a.values.push(f);else if(r==="value"){let h=rt(e,d);h==null&&(h=f),a.values.push(h)}else a.values.push(m);if(!Array.isArray(d.children))break;s=d.children}}return a}function Ga(e){return{text:e,value:e}}const tu=15,ou=300,nu=200,{create:lu}=Y("picker-column");function au(e){e.stopPropagation()}function ru(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&au(e)}const su=lu({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},...ls},emits:["click","change","update:modelValue"],setup(e,{emit:o}){const l=t.computed(()=>({"fox-picker__list":!0})),n=t.computed(()=>({height:`${fe(e.visibleItemCount)*+e.itemHeight}px`})),a=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=B=>B>=f.currIndex+8||B<=f.currIndex-8,i=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${f.deg})`,top:`${r.value}px`})),c=B=>`transform: rotate3d(1, 0, 0, ${-f.rotation*B}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${f.scrollDistance+r.value}px, 0)`})),m=t.ref(null),f=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=t.toRef(e,"source"),y=B=>qe(e,B),g=B=>rt(e,B),k=Ue(),v=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},u=(B,I=!1,A=!1)=>{if(f.currIndex=B,I){const w=()=>{f.moving=!1,o("update:modelValue",B),o("change",B)};A?f.transitionEndTrigger=w:w()}},p=(B,I,A)=>{let w=B+f.startDistance;if(I==="end"){const P=-(h.value.length-1)*e.itemHeight;w<P&&(w=P,(!A||A<=0)&&(A=e.swipeDuration)),w>0&&(w=0,(!A||A<=0)&&(A=e.swipeDuration));let F=Math.abs(Math.round(-w/e.itemHeight));const E=-F*e.itemHeight,x=`${(F+1)*f.rotation}deg`,U=A?A>0:!1;u(F,!0,U),b(E,I,A,x)}else{let P=(-w/e.itemHeight+1)*f.rotation;const F=(h.value.length+1)*f.rotation,E=0;if(P=Math.min(Math.max(P,E),F),e.threeDimensional&&(P<E||P>F))return;b(w,null,void 0,`${P}deg`)}},b=(B=0,I,A=nu,w)=>{I==="end"?f.scrollTime=A:f.scrollTime=0,f.deg=w,f.scrollDistance=B},S=(B,I)=>(B=Math.abs(B/I)/.003*(B<0?-1:1),B),N=B=>{e.readonly||(f.startDistance=f.scrollDistance,k.start(B),f.transitionEndTrigger=null)},C=B=>{e.readonly||(f.moving=!0,k.move(B),k.isVertical()&&(f.moving=!0,ru(B,!0)),p(k.deltaY.value,"",0))},V=()=>{if(e.readonly)return;const B=k.deltaY.value,I=k.duration.value;if(I<ou&&Math.abs(B)>tu){const w=S(B,I);p(w,"end",e.swipeDuration)}else p(B,"end",0)};return t.watch(()=>e.modelValue,B=>{if(f.currIndex!==B){f.currIndex=B;const I=-B*e.itemHeight;p(I)}}),t.onMounted(()=>{const B=-e.modelValue*e.itemHeight;p(B)}),{classes:l,styles:n,contentClasses:a,source:h,itemText:y,itemValue:g,...t.toRefs(f),roller:m,getItemText:qe,onTouchStart:N,onTouchMove:C,onTouchEnd:V,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:d,stopMomentum:v}}}),iu={key:1,class:"fox-picker__item-tile"};function cu(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:o[4]||(o[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",iu,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Za=J(su,[["render",cu]]),{create:uu,componentName:du,scope:fu}=Y("picker"),mu=uu({components:{[Za.name]:Za,[ie.name]:ie},props:{...vn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:o}){const{toLocaleRefs:l,t:n}=ae.useFoxI18n(fu),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(Qc());t.watch(()=>e.visible,A=>{A&&s.value<=0&&setTimeout(()=>{if(r.value){const w=Ve(r.value);s.value=w.height,Gc(s.value)}},50)});const i=t.computed(()=>({[du]:!0})),c=_c(),d=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([A,w])=>{if(A){let P=await c.load("picker",A,w);if(P.length>0){let F=P[0];if(Array.isArray(F)){if(typeof F[0]=="string"){let E=P,x=[];E.forEach(U=>{let D=U.map(W=>Ga(W));x.push(D)}),m.value=x}else m.value=P;d.value="multipleColumn"}else if(typeof F=="string"){let E=P,x=[],U=E.map(D=>Ga(D));x.push(U),m.value=x,d.value="singleColumn"}else{const E=kn(e,F);Array.isArray(E)?(d.value="cascade",m.value=[P]):(d.value="singleColumn",m.value=[P])}}else m.value=[]}},{immediate:!0});const f=t.ref([]),h=t.ref(e.modelValue),y=t.ref([]),g=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([A,w])=>{let P=eu(e,A,w,d.value);if(!xe(P,g.value)){g.value=P;let F=Qa(e,P,w,d.value);F&&(f.value=F.texts,o("update:text",f.value))}});const k=t.ref(e.visible);t.watch(()=>e.visible,A=>{k.value=A});const v=A=>{let w=Ya(e,A);return Be(w)?w.defaultIndex??0:0},u=A=>{if(e.readonly===!0)return!0;let w=Ya(e,A);return Be(w)?w.readonly??!1:!1},p=(A,w)=>{let P=g.value;P[A]=w;for(let E=0;E<A;E++)P[E]==null&&(P[E]=v(E));if(d.value==="cascade")for(let E=A+1;E<S.value.length;E++){let x=v(E);E<P.length?P[E]=x:P.push(x)}else for(let E=P.length;E<S.value.length;E++){let x=v(E);P.push(x)}g.value=P;let F=Qa(e,P,m.value,d.value);F&&(f.value=F.texts,h.value=F.values,y.value=F.items)},b=A=>A<g.value.length?g.value[A]:v(A),S=t.computed(()=>{if(m.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return m.value;let A=[],w=0,P=m.value[0],F=0;for(;;){let E=P.map(D=>{let W=Object.assign({},D);return Zc(e,W,null),W});A.push(E),w>=g.value.length?F=0:F=g.value[w],(F<0||F>=P.length)&&(F=0);let x=P[F];const U=kn(e,x);if(!Array.isArray(U))break;P=U,w++}return A}),N=t.computed(()=>fe(+e.visibleItemCount-1)/2*s.value);return{...a,pickerLineRef:r,classes:i,columns:S,dataType:d,show:k,itemHeight:s,top:N,isReadonly:u,getIndex:b,change:(A,w)=>{p(A,w)},close:()=>{o("close"),o("update:visible",!1)},confirm:()=>{if(e.readonly===!0){o("update:visible",!1);return}let A=m.value.length-1;for(;A>=0&&!(g.value[A]===null||g.value[A]===void 0);A--);if(A>=0&&p(A,0),d.value==="singleColumn"){let w=h.value.length>0?h.value[0]:"",P=y.value.length>0?y.value[0]:null;e.readonly||(o("update:modelValue",w),o("update:text",f.value),o("change",w,P)),o("confirm",w)}else e.readonly||(o("update:modelValue",h.value),o("update:text",f.value),o("change",h.value,y.value)),o("confirm",h.value);o("update:visible",!1)},clear:()=>{if(e.readonly===!0){o("update:visible",!1);return}d.value==="singleColumn"?(o("update:modelValue",""),o("change","")):(o("update:modelValue",[]),o("change",[])),o("clear",""),o("update:visible",!1)}}}}),pu={class:"fox-picker__bar"},hu={class:"fox-picker__title"},gu={class:"fox-picker__bar__action"},yu={class:"fox-picker__column"};function vu(e,o,l,n,a,r){const s=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":o[3]||(o[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",pu,[t.createElementVNode("view",hu,t.toDisplayString(e.title),1),t.createElementVNode("view",gu,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:o[0]||(o[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:o[1]||(o[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:o[2]||(o[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",yu,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":m=>e.change(d,m),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const yt=J(mu,[["render",vu]]);function ku(e,o,l,n,a,r,s=!0){return{props:{...ue,...de,...vn,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=Ae(t.computed(()=>i.readonly)),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),k=Ee(i,"modelValue"),v=t.ref([]),u=t.computed(()=>Array.isArray(v.value)?v.value.join(i.separator):v.value),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const z={};return S.value&&(z["text-align"]=S.value),z}),C=t.ref(!1),V=()=>{C.value=!0},B=z=>{C.value=z},I=z=>{k.value=z,f("update:modelValue",z)},A=(z,M)=>{f("change",z,M)},w=z=>{let L=z.target.value;g.value=!0,f("focus",L,z)},P=z=>{setTimeout(()=>{g.value=!1},0);let L=z.target.value;i.maxLength&&L.length>Number(i.maxLength)&&(L=L.slice(0,Number(i.maxLength))),f("blur",L,z)},F=z=>{v.value=z,Array.isArray(z)&&z.length===0?f("update:text",z[0]):f("update:text",z)},E=t.computed(()=>({[`${p}__append`]:!0})),x=t.computed(()=>ge(i.unit)>0),U=t.computed(()=>ge(i.unit)>0&&!g.value),D=t.computed(()=>({hidden:!U.value})),W=z=>{k.value="",f("update:modelValue","",z),f("change","",z),f("clear","")},H=t.computed(()=>i.clearable&&!d.value&&!m.value),G=t.computed(()=>ge(k.value)>0&&g.value),R=z=>{G.value?W(z):V()},$=t.computed(()=>G.value&&H.value?n:a),T=t.computed(()=>({action:!0}));return()=>{const z={class:b.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:V,onFocus:w,onBlur:P};s&&(z.disabled=!0);const M=[],L=t.h("input",z);M.push(L);const q=[],K={class:["action-icon"]},j=t.h($.value,K),Z={class:T.value,onClick:R},O=t.h("view",Z,{default:()=>[j]});if(q.push(O),x.value){const ve=t.h("view",{class:D.value},[i.unit]);q.push(ve)}const X={class:E.value},Q=t.h("view",X,{default:()=>q});M.push(Q);const ee={default:()=>M};ee.label=c.slots.default,ee.prepend=c.slots.prepend,ee.append=c.slots.append,ee.fixedPreTip=c.slots.fixedPreTip,ee.fixedTip=c.slots.fixedTip;const _=he(i,vn);_.disabled=!1,_.readonly=d.value||m.value,_.visible=C.value,_["onUpdate:visible"]=B,_.modelValue=k.value,_["onUpdate:modelValue"]=I,_.text=v.value,_["onUpdate:text"]=F,_.onChange=A;const oe=t.h(r,_);ee.hide=()=>[oe];const le=he(i,de,ue);return t.h(l,le,ee)}}}}const{componentName:bu,create:Su,scope:Cu}=Y("picker-item"),Qn=Su(ku(bu,Cu,be,te.CircleClose,te.ArrowRight,yt,!1)),_t=(e,o,l)=>e.map(n=>{const{value:a="value",text:r="text",children:s="children"}=l??{},{[a]:i,[r]:c,[s]:d,...m}=n,f={loading:!1,...m,level:o?(o&&o.level||0)+1:0,value:i,text:c,children:d,_parent:o};return f.children&&f.children.length&&(f.children=_t(f.children,f,l)),f}),rs=(e,o)=>{let l=0,n;for(;(n=e[l++])&&o(n)!==!0;)n.children&&n.children.length&&rs(n.children,o)},wu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Nu=(e,o)=>{const l={...wu,...o||{}},{topId:n,idKey:a,pidKey:r,sortKey:s}=l;let i=[],c={};return e.forEach(d=>{d={...d};const{[a]:m,[r]:f}=d,h=c[f]=c[f]||[];!i.length&&f===n&&(i=h),h.push(d),d.children=c[m]||(c[m]=[])}),s&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((m,f)=>m[s]-f[s])}),c=null,i},Bu=/scroll|auto|overlay/i,ss=window;function Vu(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function bn(e,o=ss){let l=e;for(;l&&l!==o&&Vu(l);){const{overflowY:n}=window.getComputedStyle(l);if(Bu.test(n))return l;l=l.parentNode}return o}function is(e,o=ss){const l=t.ref();return t.onMounted(()=>{e.value&&(l.value=bn(e.value,o))}),l}const{create:Au}=Y("sticky"),$u=Au({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:o}){const l=t.ref(),n=t.ref(),a=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>a.fixed?{height:`${a.height}px`}:{}),i=t.computed(()=>a.fixed?{[e.position]:`${r.value}px`,transform:a.transform?`translate3d(0, ${a.transform}px, 0)`:void 0,position:a.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const d=e.container;if(!l.value&&!d)return;const m=Ve(l),f=n.value,h=Ve(f),y=Ve(d);a.height=m.height;const g=()=>{let v=!1;if(e.position==="top")v=d?r.value>m.top&&y.bottom>0:r.value>m.top;else{const u=document.documentElement.clientHeight;v=d?y.bottom>0&&u-r.value-h.height>y.top:u-r.value<m.bottom}return v},k=()=>{if(d)if(e.position==="top"){const v=y.bottom-r.value-h.height;return v<0?v:0}else{const v=document.documentElement.clientHeight,u=y.bottom-(v-r.value);return u<0?u:0}return 0};a.transform=k(),a.fixed=g()};return t.watch(()=>a.fixed,d=>{o("change",d)}),t.onMounted(()=>{c(),bn(l.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{bn(l.value).removeEventListener("scroll",c)}),{rootRef:l,rootStyle:s,stickyRef:n,stickyStyle:i}}});function Tu(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const zt=J($u,[["render",Tu]]),Eu=(e,o,l,n)=>{const a=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(l&&l.getEnv()!==l.ENV_TYPE.WEB){let h=await n(a,l);r.value.width=h.width||0,r.value.height=h.height||0}else r.value.width=a.value?.clientWidth||0,r.value.height=a.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=Ue();let d="";const m=(h,y)=>{let g=h;switch(e.direction=="horizontal"?(d=h>0?"right":"left",g=Math.abs(g)/r.value.width*100):(d=y>0?"bottom":"top",g=y,g=Math.abs(g)/r.value?.height*100),g>85&&(g=85),d){case"left":case"top":o.isEnd()&&(g=0,i.moving=!1);break;case"right":case"bottom":g=-g,o.isBegin()&&(g=0,i.moving=!1);break}i.offset=g};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,m(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(h.preventDefault(),h.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(h.preventDefault(),h.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,d){case"left":case"top":i.offset>35&&o.next();break;case"right":case"bottom":i.offset<-35&&o.prev();break}}},touchState:i,tabsContentRef:a}};class Du{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:xu}=Y("tabs"),Iu=xu({components:{[zt.name]:zt,JoySmile:te.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:o,slots:l}){const n=t.ref(null);let a;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=A=>{A.forEach((w,P)=>{let F=w.type;if(F=F.name||F,F=="fox-tab-pane"){let E=new Du;if(w.props?.title||w.props?.["pane-key"]||w.props?.paneKey){let x=lt(w.props?.["pane-key"]),U=x=="number"||x=="string"?String(w.props?.["pane-key"]):null,D=lt(w.props?.paneKey),W=D=="number"||D=="string"?String(w.props?.paneKey):null;E.title=w.props?.title,E.paneKey=U||W||String(P),E.disabled=w.props?.disabled}r.value.push(E)}else{if(w.children==" ")return;Array.isArray(w.children)&&s(w.children)}})},i=t.ref(e.modelValue||0),c=A=>{let w=r.value.findIndex(P=>P.paneKey==A);r.value.length==0||w==-1||(i.value=w)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),f=t.ref([]),h=A=>{const w=m.value,P=f.value;if(!w||!P||!P[i.value])return;const F=P[i.value];let E=0;e.direction==="vertical"?E=F.offsetTop-w.offsetTop+10-(w.offsetHeight-F.offsetHeight)/2:E=F.offsetLeft-(w.offsetWidth-F.offsetWidth)/2,y(w,E,A?0:.3,e.direction)},y=(A,w,P,F)=>{let E=0;const x=F==="horizontal"?A.scrollLeft:A.scrollTop,U=P===0?1:Math.round(P*1e3/16);function D(){F==="horizontal"?A.scrollLeft+=(w-x)/U:A.scrollTop+=(w-x)/U,++E<U&&Le(D)}D()},g=(A=l.default?.())=>{r.value=[],A=A?.filter(w=>typeof w.children!="string"),A&&A.length&&s(A),c(e.modelValue),t.nextTick(()=>{h()})},k=A=>{a=A.fixed};t.watch(()=>l.default?.(),A=>{g(A)});const v=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,A=>{if(c(A),h(),a){let w=Ve(n.value).top+v(),P=Math.ceil(w-e.top);window.scrollTo({top:P,behavior:"smooth"})}}),t.onMounted(g),t.onActivated(g);const u={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,u.updateValue(r.value[i.value])},prev:()=>{i.value-=1,u.updateValue(r.value[i.value])},updateValue:A=>{o("update:modelValue",A.paneKey),o("change",A)},tabChange:(A,w)=>{o("click",A),!(A.disabled||i.value==w)&&(i.value=w,u.updateValue(A))},setTabItemRef:(A,w)=>{f.value[w]=A}},{tabsContentRef:p,touchState:b,touchMethods:S}=Eu(e,u),N=t.computed(()=>{let A=i.value*100;b.moving&&(A+=b.offset);let w={transform:e.direction=="horizontal"?`translate3d(-${A}%, 0, 0)`:`translate3d( 0,-${A}%, 0)`,transitionDuration:b.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(w={}),w}),C=t.computed(()=>({background:e.background})),V=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),B=t.computed(()=>{if(!e.titleGutter)return{};const A=pe(e.titleGutter);return e.direction==="vertical"?{marginTop:A,marginBottom:A}:{marginLeft:A,marginRight:A}}),I=t.computed(()=>l.fixedTitle);return{navRef:m,tabsContentRef:p,titles:r,contentStyle:N,tabsNavStyle:C,titleStyle:B,tabsActiveStyle:V,container:n,getScrollY:d,onStickyScroll:k,...u,...S,hasFixedTitle:I}}}),qu=["onClick"],Mu={key:0,class:"fox-tabs__titles-fixed-item"},zu=["onClick"],Pu={key:0,class:"fox-tabs__titles-fixed-item"};function Lu(e,o,l,n,a,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,d),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,qu))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Mu,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,d),key:c.paneKey,ref_for:!0,ref:m=>e.setTabItemRef(m,d)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,zu))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Pu,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:o[0]||(o[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:o[1]||(o[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:o[2]||(o[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:o[3]||(o[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const Pt=J(Iu,[["render",Lu]]),{create:Fu}=Y("tab-pane"),Ru=Fu({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o}){const l=t.inject("tabsOpiton"),n=t.computed(()=>({display:l.animatedTime.value==0&&e.paneKey!=l.activeKey.value?"none":void 0}));return{...l,paneStyle:n}}});function Ou(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const Lt=J(Ru,[["render",Ou]]);class Ja{nodes;config;constructor(o,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=_t(o,null,this.config)}updateChildren(o,l){l?l.children=_t(o,l,this.config):this.nodes=_t(o,null,this.config)}getNodeByValue(o){let l;return rs(this.nodes,n=>{if(n.value===o)return l=n,!0}),l}getPathNodesByValue(o){if(!o.length)return[];const l=[];let n=this.nodes;for(;n&&n.length;){const a=n.find(r=>r.value===o[r.level]);if(!a)break;l.push(a),n=a.children}return l}isLeaf(o,l){const{leaf:n,children:a}=o,r=Array.isArray(a)&&!!a.length;return n||!r&&!l}hasChildren(o,l){if(this.isLeaf(o,l))return!1;const{children:a}=o;return Array.isArray(a)&&!!a.length}}const{create:Ku,scope:Uu}=Y("cascader-pane"),Hu=Ku({components:{Loading:te.Loading,Checklist:te.Checklist,[Pt.name]:Pt,[Lt.name]:Lt},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:o}){const l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),n=t.ref(0),a=t.ref(!1),r=t.ref(e.modelValue),s=t.ref(new Ja([],{})),i=t.ref([]),c=t.computed(()=>l.value.lazy&&!!l.value.lazyLoad),d=new Map;let m;const f=async()=>{d.clear(),i.value=[],n.value=0,a.value=!1,m=null;let{options:u}=e;l.value.convertConfig&&(u=Nu(u,l.value.convertConfig)),s.value=new Ja(u,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),c.value&&!s.value.nodes.length&&await y({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:s.value.nodes,selectedNode:null}],h()},h=async()=>{const u=r.value;if(u===void 0||!s.value.nodes.length)return;if(u.length===0){n.value=0,i.value=[{nodes:s.value.nodes,selectedNode:null}];return}let p=u;if(c.value&&Array.isArray(u)&&u.length){p=[];let b=s.value.nodes.find(S=>S.value===u[0]);if(b){p=[b.value],a.value=!0;const S=await u.slice(1).reduce(async(N,C)=>{const V=await N;await y(V);const B=V?.children?.find(I=>I.value===C);return B&&p.push(C),Promise.resolve(B)},Promise.resolve(b));await y(S),a.value=!1}}p.length&&u===e.modelValue&&s.value.getPathNodesByValue(p).map((S,N)=>{n.value=N,v.handleNode(S,!0)})},y=async u=>{if(!u)return;if(!l.value.lazyLoad){u.leaf=!0;return}if(s.value.isLeaf(u,c.value)||s.value.hasChildren(u,c.value))return;u.loading=!0;const p=u.root?null:u;let b=d.get(u);b||(b=new Promise(N=>{l.value.lazyLoad?.(u,N)}),d.set(u,b));const S=await b;Array.isArray(S)&&S.length>0?s.value.updateChildren(S,p):u.leaf=!0,u.loading=!1,d.delete(u)},g=u=>{const p=u.map(b=>b.value);r.value=p,o("change",p,u),o("update:modelValue",p,u)},{t:k}=ae.useFoxI18n(Uu),v={async handleNode(u,p){const{disabled:b,loading:S}=u;if(!(!p&&b||!i.value[n.value])){if(s.value.isLeaf(u,c.value)){if(u.leaf=!0,i.value[n.value].selectedNode=u,i.value=i.value.slice(0,u.level+1),!p){const N=i.value.map(C=>C.selectedNode);g(N),o("pathChange",N)}return}if(s.value.hasChildren(u,c.value)){const N=u.level+1;if(i.value[n.value].selectedNode=u,i.value=i.value.slice(0,N),i.value.push({nodes:u.children||[],selectedNode:null}),n.value=N,!p){const C=i.value.map(V=>V.selectedNode);o("pathChange",C)}return}m=u,!S&&(await y(u),m===u&&(i.value[n.value].selectedNode=u,v.handleNode(u,p)))}},handleTabClick(u){m=null,n.value=Number(u.paneKey)},formatTabTitle(u){return u.selectedNode?u.selectedNode.text:k("select")},isSelected(u,p){return u.selectedNode&&u.selectedNode.value===p.value}};return t.watch([l,()=>e.options],()=>{f()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,u=>{u!==r.value&&(r.value=u,h())}),t.watch(()=>e.visible,u=>{u&&Array.isArray(r.value)&&r.value.length>0&&h()}),{panes:i,initLoading:a,tabsCursor:n,...v}}}),ju={role:"menu",class:"fox-cascader__pane"},Wu=["aria-checked","aria-disabled","onClick"],Yu={class:"fox-cascader__item__title"},Xu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function Qu(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-tab-pane"),d=t.resolveComponent("fox-tabs");return t.openBlock(),t.createBlock(d,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":o[0]||(o[0]=m=>e.tabsCursor=m),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(m,f)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(m),key:f},{default:t.withCtx(()=>[t.createElementVNode("view",ju,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.nodes,h=>(t.openBlock(),t.createElementBlock("view",{key:h.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(m,h),disabled:h.disabled}]),"aria-checked":e.isSelected(m,h),"aria-disabled":h.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(h,!1)},[t.createElementVNode("view",Yu,t.toDisplayString(h.text),1),h.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,Wu))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[Xu]),_:1}))]),_:1},8,["modelValue","onClick"])}const Gu=J(Hu,[["render",Qu]]),{create:Zu}=Y("cascader"),Ju=Zu({components:{FoxCascaderPane:Gu,FoxPopup:ie},props:{...ze,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:o}){const l=t.ref(e.modelValue),n=t.computed({get(){return e.visible},set(s){o("update:visible",s)}}),a=(s,i)=>{l.value=s,n.value=!1,o("change",s,i),o("update:modelValue",s)},r=s=>{o("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==l.value&&(l.value=s)}),{onChange:a,onPathChange:r,innerValue:l,innerVisible:n}}}),_u=["innerHTML"];function ed(e,o,l,n,a,r){const s=t.resolveComponent("FoxCascaderPane"),i=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":o[0]||(o[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,_u)):t.createCommentVNode("",!0),t.createVNode(s,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(s,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}const Io=J(Ju,[["render",ed]]);function Ft(e,o){const l=e.textKey??"text";return o[l]??""}function Rt(e,o){const l=e.valueKey??"value";return o[l]}function cs(e,o){const l=e.childrenKey??"children";return o[l]}function Zt(e,o=[]){const l={texts:[],values:[]};for(let n=0;n<o.length;n++){const a=o[n],r=Ft(e,a),s=Rt(e,a);l.texts.push(r),l.values.push(s??"")}return l}function us(e,o,l,n,a=[]){if(!l)return;const r=l[n];for(let s=0;s<o.length;s++)if(Ft(e,o[s])===r){const c=Rt(e,o[s])??"",d={[e.textKey]:r,[e.valueKey]:c};a.push(d);const m=cs(e,o[s]);Array.isArray(m)&&us(e,m,l,n+1,a);return}}function ds(e,o,l,n,a=[]){if(!l)return;const r=l[n];for(let s=0;s<o.length;s++)if(Rt(e,o[s])===r){const c=Ft(e,o[s])??"",d={[e.textKey]:c,[e.valueKey]:r};a.push(d);const m=cs(e,o[s]);Array.isArray(m)&&ds(e,m,l,n+1,a);return}}function Jo(e,o,l){if(o===l)return!0;if(o.length!==l.length)return!1;for(let n=0;n<o.length;n++){const a=Ft(e,o[n]),r=Ft(e,l[n]);if(a!==r)return!1;const s=Rt(e,o[n]),i=Rt(e,l[n]);if(s!==i)return!1}return!0}let td=class{proxy;constructor(o){this.proxy=o}async load(o,l){const n="cascader";if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Ge(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(Be(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function od(){const e=t.getCurrentInstance();return new td(e.proxy)}function nd(e,o,l,n,a,r,s=!1){return{props:{...ue,...de,modelValue:{type:[Array,String]},pathNodes:{type:[Array]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=Ae(t.computed(()=>i.readonly)),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),k=od(),v=t.ref([]);t.watch([()=>i.source,()=>i.params],async([L,q])=>{L&&(v.value=await k.load(L,q))},{immediate:!0});const u=t.ref([]),p=t.computed(()=>Array.isArray(u.value)?u.value.join(" "):u.value),b=t.ref([]),S=t.ref([]);t.watch([()=>i.modelValue],async([L])=>{if(i.lazy===!0){S.value.length==0&&(u.value=Array.isArray(L)?L:[],b.value=Array.isArray(L)?L:[]);return}if(i.valueType==="item"){let q=L;if(!Jo(i,q,S.value)){S.value=q;let K=Zt(i,q);u.value=K.texts,b.value=K.values}}else if(i.valueType==="text"){let q=L,K=[];if(us(i,v.value,q,0,K),!Jo(i,K,S.value)){S.value=K;let j=Zt(i,K);q.value=j.texts,b.value=j.values}}else{let q=[];if(ds(i,v.value,L,0,q),!Jo(i,q,S.value)){S.value=q;let K=Zt(i,q);u.value=K.texts,b.value=K.values}}},{immediate:!0});const N="fox-input-item",C=t.computed(()=>({[N]:!0,[`${N}__disabled`]:d.value})),V=Ne(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const L={};return V.value&&(L["text-align"]=V.value),L}),I=t.ref(!1),A=()=>{d.value===!0||m.value===!0||(I.value=!0)},w=L=>{I.value=L},P=(L,q)=>{let K=q.map(Z=>{if(Z==null)return Z;let O={...Z};return Reflect.deleteProperty(O,"text"),O[i.textKey]=Z.text??"",Reflect.deleteProperty(O,"value"),O[i.valueKey]=Z.value??"",O});S.value=K;let j=Zt(i,K);u.value=j.texts,b.value=j.values,i.valueType==="text"?(f("change",u.value,K),f("update:modelValue",u.value)):i.valueType==="item"?(f("change",K,K),f("update:modelValue",K)):(f("change",b.value,K),f("update:modelValue",b.value)),f("update:pathNodes",K)},F=L=>{let q=L.map(K=>{if(K==null)return K;let j={...K};return Reflect.deleteProperty(j,"text"),j[i.textKey]=K.text??"",Reflect.deleteProperty(j,"value"),j[i.valueKey]=K.value??"",j});f("pathChange",q)},E=L=>{g.value=!0,f("focus",b.value,L)},x=L=>{setTimeout(()=>{g.value=!1},0),f("blur",b.value,L)},U=t.computed(()=>({[`${N}__append`]:!0})),D=t.computed(()=>ge(i.unit)>0),W=t.computed(()=>ge(i.unit)>0&&!g.value),H=t.computed(()=>({hidden:!W.value})),G=L=>{S.value=[],u.value=[],b.value=[],f("update:modelValue",[]),f("change",[],L),f("clear",[]),f("update:pathNodes",[])},R=t.computed(()=>i.clearable&&!d.value&&!m.value),$=t.computed(()=>{let L=b.value&&b.value.length>0;return i.clearable&&L&&g.value}),T=L=>{$.value?G(L):A()},z=t.computed(()=>$.value&&R.value?n:a),M=t.computed(()=>({action:!0}));return()=>{const L={class:C.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:A,onFocus:E,onBlur:x};s&&(L.disabled=!0);const q=[],K=t.h("input",L);q.push(K);const j=[],Z={class:["action-icon"]},O=t.h(z.value,Z),X={class:M.value,onClick:T},Q=t.h("view",X,{default:()=>[O]});if(j.push(Q),D.value){const Ze=t.h("view",{class:H.value},[i.unit]);j.push(Ze)}const ee={class:U.value},_=t.h("view",ee,{default:()=>j});q.push(_);const oe={default:()=>q};oe.label=c.slots.default,oe.prepend=c.slots.prepend,oe.append=c.slots.append,oe.fixedPreTip=c.slots.fixedPreTip,oe.fixedTip=c.slots.fixedTip;let le={};le.visible=I.value,le["onUpdate:visible"]=w,le.modelValue=b.value,le.onChange=P,le.onPathChange=F,le.options=v.value,le.title=i.title,le.lazy=i.lazy,le.lazyLoad=i.lazyLoad,le.valueKey=i.valueKey,le.textKey=i.textKey,le.childrenKey=i.childrenKey,le.convertConfig=i.convertConfig;const Te=t.h(r,le);oe.hide=()=>[Te];const ve=he(i,de,ue);return t.h(l,ve,oe)}}}}const{componentName:ld,create:ad,scope:rd}=Y("cascader-item"),Gn=ad(nd(ld,rd,be,te.CircleClose,te.ArrowRight,Io,!1));var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var fs={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){var l=1e3,n=6e4,a=36e5,r="millisecond",s="second",i="minute",c="hour",d="day",m="week",f="month",h="quarter",y="year",g="date",k="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},b=function(F,E,x){var U=String(F);return!U||U.length>=E?F:""+Array(E+1-U.length).join(x)+F},S={s:b,z:function(F){var E=-F.utcOffset(),x=Math.abs(E),U=Math.floor(x/60),D=x%60;return(E<=0?"+":"-")+b(U,2,"0")+":"+b(D,2,"0")},m:function F(E,x){if(E.date()<x.date())return-F(x,E);var U=12*(x.year()-E.year())+(x.month()-E.month()),D=E.clone().add(U,f),W=x-D<0,H=E.clone().add(U+(W?-1:1),f);return+(-(U+(x-D)/(W?D-H:H-D))||0)},a:function(F){return F<0?Math.ceil(F)||0:Math.floor(F)},p:function(F){return{M:f,y,w:m,d,D:g,h:c,m:i,s,ms:r,Q:h}[F]||String(F||"").toLowerCase().replace(/s$/,"")},u:function(F){return F===void 0}},N="en",C={};C[N]=p;var V=function(F){return F instanceof w},B=function F(E,x,U){var D;if(!E)return N;if(typeof E=="string"){var W=E.toLowerCase();C[W]&&(D=W),x&&(C[W]=x,D=W);var H=E.split("-");if(!D&&H.length>1)return F(H[0])}else{var G=E.name;C[G]=E,D=G}return!U&&D&&(N=D),D||!U&&N},I=function(F,E){if(V(F))return F.clone();var x=typeof E=="object"?E:{};return x.date=F,x.args=arguments,new w(x)},A=S;A.l=B,A.i=V,A.w=function(F,E){return I(F,{locale:E.$L,utc:E.$u,x:E.$x,$offset:E.$offset})};var w=function(){function F(x){this.$L=B(x.locale,null,!0),this.parse(x)}var E=F.prototype;return E.parse=function(x){this.$d=function(U){var D=U.date,W=U.utc;if(D===null)return new Date(NaN);if(A.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var H=D.match(v);if(H){var G=H[2]-1||0,R=(H[7]||"0").substring(0,3);return W?new Date(Date.UTC(H[1],G,H[3]||1,H[4]||0,H[5]||0,H[6]||0,R)):new Date(H[1],G,H[3]||1,H[4]||0,H[5]||0,H[6]||0,R)}}return new Date(D)}(x),this.$x=x.x||{},this.init()},E.init=function(){var x=this.$d;this.$y=x.getFullYear(),this.$M=x.getMonth(),this.$D=x.getDate(),this.$W=x.getDay(),this.$H=x.getHours(),this.$m=x.getMinutes(),this.$s=x.getSeconds(),this.$ms=x.getMilliseconds()},E.$utils=function(){return A},E.isValid=function(){return this.$d.toString()!==k},E.isSame=function(x,U){var D=I(x);return this.startOf(U)<=D&&D<=this.endOf(U)},E.isAfter=function(x,U){return I(x)<this.startOf(U)},E.isBefore=function(x,U){return this.endOf(U)<I(x)},E.$g=function(x,U,D){return A.u(x)?this[U]:this.set(D,x)},E.unix=function(){return Math.floor(this.valueOf()/1e3)},E.valueOf=function(){return this.$d.getTime()},E.startOf=function(x,U){var D=this,W=!!A.u(U)||U,H=A.p(x),G=function(K,j){var Z=A.w(D.$u?Date.UTC(D.$y,j,K):new Date(D.$y,j,K),D);return W?Z:Z.endOf(d)},R=function(K,j){return A.w(D.toDate()[K].apply(D.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(j)),D)},$=this.$W,T=this.$M,z=this.$D,M="set"+(this.$u?"UTC":"");switch(H){case y:return W?G(1,0):G(31,11);case f:return W?G(1,T):G(0,T+1);case m:var L=this.$locale().weekStart||0,q=($<L?$+7:$)-L;return G(W?z-q:z+(6-q),T);case d:case g:return R(M+"Hours",0);case c:return R(M+"Minutes",1);case i:return R(M+"Seconds",2);case s:return R(M+"Milliseconds",3);default:return this.clone()}},E.endOf=function(x){return this.startOf(x,!1)},E.$set=function(x,U){var D,W=A.p(x),H="set"+(this.$u?"UTC":""),G=(D={},D[d]=H+"Date",D[g]=H+"Date",D[f]=H+"Month",D[y]=H+"FullYear",D[c]=H+"Hours",D[i]=H+"Minutes",D[s]=H+"Seconds",D[r]=H+"Milliseconds",D)[W],R=W===d?this.$D+(U-this.$W):U;if(W===f||W===y){var $=this.clone().set(g,1);$.$d[G](R),$.init(),this.$d=$.set(g,Math.min(this.$D,$.daysInMonth())).$d}else G&&this.$d[G](R);return this.init(),this},E.set=function(x,U){return this.clone().$set(x,U)},E.get=function(x){return this[A.p(x)]()},E.add=function(x,U){var D,W=this;x=Number(x);var H=A.p(U),G=function(T){var z=I(W);return A.w(z.date(z.date()+Math.round(T*x)),W)};if(H===f)return this.set(f,this.$M+x);if(H===y)return this.set(y,this.$y+x);if(H===d)return G(1);if(H===m)return G(7);var R=(D={},D[i]=n,D[c]=a,D[s]=l,D)[H]||1,$=this.$d.getTime()+x*R;return A.w($,this)},E.subtract=function(x,U){return this.add(-1*x,U)},E.format=function(x){var U=this,D=this.$locale();if(!this.isValid())return D.invalidDate||k;var W=x||"YYYY-MM-DDTHH:mm:ssZ",H=A.z(this),G=this.$H,R=this.$m,$=this.$M,T=D.weekdays,z=D.months,M=function(j,Z,O,X){return j&&(j[Z]||j(U,W))||O[Z].slice(0,X)},L=function(j){return A.s(G%12||12,j,"0")},q=D.meridiem||function(j,Z,O){var X=j<12?"AM":"PM";return O?X.toLowerCase():X},K={YY:String(this.$y).slice(-2),YYYY:this.$y,M:$+1,MM:A.s($+1,2,"0"),MMM:M(D.monthsShort,$,z,3),MMMM:M(z,$),D:this.$D,DD:A.s(this.$D,2,"0"),d:String(this.$W),dd:M(D.weekdaysMin,this.$W,T,2),ddd:M(D.weekdaysShort,this.$W,T,3),dddd:T[this.$W],H:String(G),HH:A.s(G,2,"0"),h:L(1),hh:L(2),a:q(G,R,!0),A:q(G,R,!1),m:String(R),mm:A.s(R,2,"0"),s:String(this.$s),ss:A.s(this.$s,2,"0"),SSS:A.s(this.$ms,3,"0"),Z:H};return W.replace(u,function(j,Z){return Z||K[j]||H.replace(":","")})},E.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},E.diff=function(x,U,D){var W,H=A.p(U),G=I(x),R=(G.utcOffset()-this.utcOffset())*n,$=this-G,T=A.m(this,G);return T=(W={},W[y]=T/12,W[f]=T,W[h]=T/3,W[m]=($-R)/6048e5,W[d]=($-R)/864e5,W[c]=$/a,W[i]=$/n,W[s]=$/l,W)[H]||$,D?T:A.a(T)},E.daysInMonth=function(){return this.endOf(f).$D},E.$locale=function(){return C[this.$L]},E.locale=function(x,U){if(!x)return this.$L;var D=this.clone(),W=B(x,U,!0);return W&&(D.$L=W),D},E.clone=function(){return A.w(this.$d,this)},E.toDate=function(){return new Date(this.valueOf())},E.toJSON=function(){return this.isValid()?this.toISOString():null},E.toISOString=function(){return this.$d.toISOString()},E.toString=function(){return this.$d.toUTCString()},F}(),P=w.prototype;return I.prototype=P,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",d],["$M",f],["$y",y],["$D",g]].forEach(function(F){P[F[1]]=function(E){return this.$g(E,F[0],F[1])}}),I.extend=function(F,E){return F.$i||(F(E,w,I),F.$i=!0),I},I.locale=B,I.isDayjs=V,I.unix=function(F){return I(1e3*F)},I.en=C[N],I.Ls=C,I.p={},I})})(fs);var sd=fs.exports;const Pe=je(sd);var ms={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){var l={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(k){return(k=+k)+(k>68?1900:2e3)},d=function(k){return function(v){this[k]=+v}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var u=v.match(/([+-]|\d\d)/g),p=60*u[1]+(+u[2]||0);return p===0?0:u[0]==="+"?-p:p}(k)}],f=function(k){var v=i[k];return v&&(v.indexOf?v:v.s.concat(v.f))},h=function(k,v){var u,p=i.meridiem;if(p){for(var b=1;b<=24;b+=1)if(k.indexOf(p(b,0,v))>-1){u=b>12;break}}else u=k===(v?"pm":"PM");return u},y={A:[s,function(k){this.afternoon=h(k,!1)}],a:[s,function(k){this.afternoon=h(k,!0)}],S:[/\d/,function(k){this.milliseconds=100*+k}],SS:[a,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[a,d("day")],Do:[s,function(k){var v=i.ordinal,u=k.match(/\d+/);if(this.day=u[0],v)for(var p=1;p<=31;p+=1)v(p).replace(/\[|\]/g,"")===k&&(this.day=p)}],M:[r,d("month")],MM:[a,d("month")],MMM:[s,function(k){var v=f("months"),u=(f("monthsShort")||v.map(function(p){return p.slice(0,3)})).indexOf(k)+1;if(u<1)throw new Error;this.month=u%12||u}],MMMM:[s,function(k){var v=f("months").indexOf(k)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(k){this.year=c(k)}],YYYY:[/\d{4}/,d("year")],Z:m,ZZ:m};function g(k){var v,u;v=k,u=i&&i.formats;for(var p=(k=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(I,A,w){var P=w&&w.toUpperCase();return A||u[w]||l[w]||u[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(F,E,x){return E||x.slice(1)})})).match(n),b=p.length,S=0;S<b;S+=1){var N=p[S],C=y[N],V=C&&C[0],B=C&&C[1];p[S]=B?{regex:V,parser:B}:N.replace(/^\[|\]$/g,"")}return function(I){for(var A={},w=0,P=0;w<b;w+=1){var F=p[w];if(typeof F=="string")P+=F.length;else{var E=F.regex,x=F.parser,U=I.slice(P),D=E.exec(U)[0];x.call(A,D),I=I.replace(D,"")}}return function(W){var H=W.afternoon;if(H!==void 0){var G=W.hours;H?G<12&&(W.hours+=12):G===12&&(W.hours=0),delete W.afternoon}}(A),A}}return function(k,v,u){u.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(c=k.parseTwoDigitYear);var p=v.prototype,b=p.parse;p.parse=function(S){var N=S.date,C=S.utc,V=S.args;this.$u=C;var B=V[1];if(typeof B=="string"){var I=V[2]===!0,A=V[3]===!0,w=I||A,P=V[2];A&&(P=V[2]),i=this.$locale(),!I&&P&&(i=u.Ls[P]),this.$d=function(U,D,W){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*U);var H=g(D)(U),G=H.year,R=H.month,$=H.day,T=H.hours,z=H.minutes,M=H.seconds,L=H.milliseconds,q=H.zone,K=new Date,j=$||(G||R?1:K.getDate()),Z=G||K.getFullYear(),O=0;G&&!R||(O=R>0?R-1:K.getMonth());var X=T||0,Q=z||0,ee=M||0,_=L||0;return q?new Date(Date.UTC(Z,O,j,X,Q,ee,_+60*q.offset*1e3)):W?new Date(Date.UTC(Z,O,j,X,Q,ee,_)):new Date(Z,O,j,X,Q,ee,_)}catch{return new Date("")}}(N,B,C),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),w&&N!=this.format(B)&&(this.$d=new Date("")),i={}}else if(B instanceof Array)for(var F=B.length,E=1;E<=F;E+=1){V[1]=B[E-1];var x=u.apply(this,V);if(x.isValid()){this.$d=x.$d,this.$L=x.$L,this.init();break}E===F&&(this.$d=new Date(""))}else b.call(this,S)}}})})(ms);var id=ms.exports;const cd=je(id);var ps={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n,a){var r=n.prototype,s=r.format;a.en.ordinal=function(i){var c=["th","st","nd","rd"],d=i%100;return"["+i+(c[(d-20)%10]||c[d]||c[0])+"]"},r.format=function(i){var c=this,d=this.$locale();if(!this.isValid())return s.bind(this)(i);var m=this.$utils(),f=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return d.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return d.ordinal(c.week(),"W");case"w":case"ww":return m.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return m.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return m.s(String(c.$H===0?24:c.$H),h==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return h}});return s.bind(this)(f)}}})})(ps);var ud=ps.exports;const dd=je(ud);var hs={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n,a){var r=n.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},i=function(f,h,y,g,k){var v=f.name?f:f.$locale(),u=s(v[h]),p=s(v[y]),b=u||p.map(function(N){return N.slice(0,g)});if(!k)return b;var S=v.weekStart;return b.map(function(N,C){return b[(C+(S||0))%7]})},c=function(){return a.Ls[a.locale()]},d=function(f,h){return f.formats[h]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(g,k,v){return k||v.slice(1)})}(f.formats[h.toUpperCase()])},m=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):i(f,"months")},monthsShort:function(h){return h?h.format("MMM"):i(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return m.bind(this)()},a.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(h){return d(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return i(c(),"months")},a.monthsShort=function(){return i(c(),"monthsShort","months",3)},a.weekdays=function(f){return i(c(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return i(c(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return i(c(),"weekdaysMin","weekdays",2,f)}}})})(hs);var fd=hs.exports;const md=je(fd);var gs={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){var l="week",n="year";return function(a,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(n).add(1,n).date(d),f=s(this).endOf(l);if(m.isBefore(f))return 1}var h=s(this).startOf(n).date(d).startOf(l).subtract(1,"millisecond"),y=this.diff(h,l,!0);return y<0?s(this).startOf("week").week():Math.ceil(y)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(gs);var pd=gs.exports;const hd=je(pd);var ys={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n){n.prototype.weekYear=function(){var a=this.month(),r=this.week(),s=this.year();return r===1&&a===11?s+1:a===0&&r>=52?s-1:s}}})})(ys);var gd=ys.exports;const yd=je(gd);var vs={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n,a){n.prototype.dayOfYear=function(r){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(vs);var vd=vs.exports;const kd=je(vd);var ks={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n){n.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(ks);var bd=ks.exports;const Sd=je(bd);var bs={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n){n.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(bs);var Cd=bs.exports;const wd=je(Cd);Pe.extend(md);Pe.extend(dd);Pe.extend(cd);Pe.extend(hd);Pe.extend(yd);Pe.extend(kd);Pe.extend(Sd);Pe.extend(wd);const ne={format(e,o){return Pe(e).format(o)},parser(e,o){return Pe(e,o).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,o,l){const a=new Date(e+"/"+o+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,o){let n=new Date(e+"/"+o+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,o){return/^0/.test(o)&&(o=o.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][o]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,o){o=o||"-";const l=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[l,n,a].join(o)},getDay(e,o){e=e||0;let l=o??new Date;const n=e*(1e3*60*60*24);return l=new Date(l.getTime()+n),this.date2Str(l)},compareDate(e,o){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let n;return typeof o=="string"?n=new Date(o.replace("-","/").replace("-","/")):n=o,!(l>=n)},isEqual(e,o){if(e===o)return!0;if(!e||!o)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let n;return typeof o=="string"?n=new Date(o).getTime():n=o,l==n},getMonthWeek:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l));let r=a.getDay(),s=a.getDate(),i=6-r;return n!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l)),r=new Date(Number(e),0,1),s=Math.round((a.valueOf()-r.valueOf())/864e5);let i=a.getDay(),c=6-i;return n!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l)),r=a.getTime();let s=a.getDay();if(n===0){const c=r-s*864e5,d=r+(6-s)*864e5,m=this.date2Str(new Date(c)),f=this.date2Str(new Date(d));return[m,f]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,d=r+(7-s)*i,m=this.date2Str(new Date(c)),f=this.date2Str(new Date(d));return[m,f]}},formatResultDate:function(e){let o=[...e.split("-")];return o[2]=ne.getNumTwoBit(Number(o[2])),o[3]=`${o[0]}-${o[1]}-${o[2]}`,o[4]=ne.getWhatDay(+o[0],+o[1],+o[2]),o},inScope4Day(e,o,l){const n=new Date(new Date(o).setDate(o.getDate()+l)),a=e.getTime(),r=n.getTime(),s=o.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s},inScope4Month(e,o,l){const n=new Date(new Date(o).setMonth(o.getMonth()+l)),a=e.getTime(),r=n.getTime(),s=o.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s}},_a=new Date().getFullYear(),Zn={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},mo=(e,o,l)=>{let n;if(Oe(o)?n=o:typeof o=="string"&&ge(o)>0?n=ne.parser(o,l):n=new Date,n.toString()==="Invalid Date")return null;let a=Math.max(n.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Sn=(e,o,l)=>{Oe(o)||(o=e.minDate);let n=Math.max(o.getTime(),e.minDate.getTime());return n=Math.min(n,e.maxDate.getTime()),ne.format(new Date(n),l)};let Cn={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(_a-10,0,1),validator:Oe},maxDate:{type:Date,default:()=>new Date(_a+10,11,31),validator:Oe},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:Nd,scope:Bd}=Y("date-picker"),Vd=Nd({components:{[yt.name]:yt},props:{...Cn},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(Bd),n={day:l("day"),year:l("year"),month:l("month"),hour:l("hour"),minute:l("minute"),seconds:l("seconds")},a=t.ref(!1);t.watch(()=>e.visible,u=>{a.value=u});function r(u,p){return new Date(u,p,0).getDate()}const s=(u,p)=>{const b=e[`${u}Date`],S=b.getFullYear();let N=1,C=1,V=0,B=0;u==="max"&&(N=12,C=r(p.getFullYear(),p.getMonth()+1),V=23,B=59);const I=B;return p.getFullYear()===S&&(N=b.getMonth()+1,p.getMonth()+1===N&&(C=b.getDate(),p.getDate()===C&&(V=b.getHours(),p.getHours()===V&&(B=b.getMinutes())))),{[`${u}Year`]:S,[`${u}Month`]:N,[`${u}Date`]:C,[`${u}Hour`]:V,[`${u}Minute`]:B,[`${u}Seconds`]:I}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:u,maxDate:p,maxMonth:b,maxHour:S,maxMinute:N,maxSeconds:C}=s("max",h.value),{minYear:V,minDate:B,minMonth:I,minHour:A,minMinute:w,minSeconds:P}=s("min",h.value);let F=[{type:"year",range:[V,u]},{type:"month",range:[I,b]},{type:"day",range:[B,p]},{type:"hour",range:[A,S]},{type:"minute",range:[w,N]},{type:"seconds",range:[P,C]}];switch(e.type){case"date":F=F.slice(0,3);break;case"datetime":F=F.slice(0,5);break;case"time":F=F.slice(3,6);break;case"year-month":F=F.slice(0,2);break;case"month-day":F=F.slice(1,3);break;case"datehour":F=F.slice(0,4);break;case"hour-minute":F=F.slice(3,5);break}return F}),c=(u,p,b)=>{if(!(p>u))return null;const S=[];for(;u<=p;)e.isShowChinese?S.push({text:u+n[b],value:u}):S.push({text:`${u}`,value:u}),b==="minute"?u+=e.minuteStep:u++;return S},d=t.computed(()=>{let u=[];return i.value.forEach(p=>{let b=c(p.range[0],p.range[1],p.type);b&&u.push(b)}),u}),m=(u,p)=>u==="year"?p.getFullYear():u==="month"?p.getMonth()+1:u==="day"?p.getDate():u==="hour"?p.getHours():u==="minute"?p.getMinutes():u==="seconds"?p.getSeconds():0,f=t.ref(),h=t.ref(null);t.watchEffect(()=>{let u,p=e.modelValue;if(typeof p=="string"?p.length==0?u=new Date:e.valueFormat?u=mo(e,e.modelValue,e.valueFormat):u=mo(e,p,Zn[e.type]):Oe(p)?u=p:u=new Date,!!u&&(!h.value||u.getTime()!==h.value.getTime())){h.value=u;let b=[];i.value.forEach(S=>{let N=m(S.type,u);b.push(N)}),f.value=b}});const y=u=>{if(e.type==="date"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])))}else if(e.type==="datetime"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3],p[4])}else if(e.type==="time"){let p=u,b=h.value??new Date,S=new Date(b.getFullYear(),b.getMonth(),b.getDate(),p[0],p[1],p[2]);h.value=S}else if(e.type==="year-month"){let p=u,b=new Date(p[0],p[1]-1);h.value=b}else if(e.type==="month-day"){let p=u,b=h.value??new Date,S=new Date(b.getFullYear(),p[0]-1,p[1]);h.value=S}else if(e.type==="datehour"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3])}else if(e.type==="hour-minute"){let p=u,b=h.value??new Date,S=new Date(b.getFullYear(),b.getMonth(),b.getDate(),p[0],p[1]);h.value=S}f.value=u};return{columns:d,dateIndexs:f,show:a,onClose:()=>{a.value=!1,o("update:visible",!1),o("update:close",!1)},onConfirm:u=>{y(u),a.value=!1;let p=h.value??new Date;if(e.valueFormat){let b=Sn(e,p,e.valueFormat);o("update:modelValue",b)}else o("update:modelValue",p);o("update:visible",!1),o("confirm",u)},onClear:()=>{o("clear")}}}});function Ad(e,o,l,n,a,r){const s=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const qo=J(Vd,[["render",Ad]]);function $d(e){let o=e.format;if(!o){let l=e.type??"date";o=Zn[l]}return o}function Td(e,o,l,n,a,r,s=!1){return{props:{...ue,...de,...Cn,format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=Ae(t.computed(()=>i.readonly)),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),v=Ee(i,"modelValue",T=>T==null?null:typeof T=="string"?T.length==0?null:i.valueFormat?mo(i,T,i.valueFormat)??T:mo(i,T,Zn[i.type])??T:Oe(T)?T:null),u=t.computed(()=>{if(!v.value)return"";const T=$d(i);return Sn(i,v.value,T)}),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const T={};return S.value&&(T["text-align"]=S.value),T}),C=t.ref(!1),V=()=>{C.value=!0},B=()=>{C.value=!1};c.expose({showPicker:V,hidePicker:B});const I=T=>{C.value=T},A=T=>{if(v.value=T,i.valueFormat){let z=Sn(i,T,i.valueFormat);f("update:modelValue",z,{}),f("change",z,{})}else f("update:modelValue",T,{}),f("change",T,{})},w=T=>{let M=T.target.value;g.value=!0,f("focus",M,T)},P=T=>{setTimeout(()=>{g.value=!1},0);let M=T.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),f("blur",M,T)},F=t.computed(()=>({[`${p}__append`]:!0})),E=t.computed(()=>ge(i.unit)>0),x=t.computed(()=>ge(i.unit)>0&&!g.value),U=t.computed(()=>({hidden:!x.value})),D=T=>{v.value="",f("update:modelValue","",T),f("change","",T),f("clear",""),B()},W=t.computed(()=>i.clearable&&!d.value&&!m.value),H=t.computed(()=>{let T=ge(v.value)>0;return i.clearable&&T&&g.value}),G=T=>{H.value?D(T):V()},R=t.computed(()=>H.value&&W.value?n:a),$=t.computed(()=>({action:!0}));return()=>{const T={class:b.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:V,onFocus:w,onBlur:P};s&&(T.disabled=!0);const z=[],M=t.h("input",T);z.push(M);const L=[],q={class:["action-icon"]},K=t.h(R.value,q),j={class:$.value,onClick:G},Z=t.h("view",j,{default:()=>[K]});if(L.push(Z),E.value){const ve=t.h("view",{class:U.value},[i.unit]);L.push(ve)}const O={class:F.value},X=t.h("view",O,{default:()=>L});z.push(X);const Q={default:()=>z};Q.label=c.slots.default,Q.prepend=c.slots.prepend,Q.append=c.slots.append,Q.fixedPreTip=c.slots.fixedPreTip,Q.fixedTip=c.slots.fixedTip;const ee=he(i,Cn);ee.valueFormat=null,ee.disabled=!1,ee.readonly=d.value||m.value,ee.visible=C.value,ee["onUpdate:visible"]=I,ee.modelValue=v.value,ee["onUpdate:modelValue"]=A,ee.onClear=D;const _={};if(c.slots.top){const ve=c.slots.top();_.top=()=>ve}if(c.slots.bottom){const ve=c.slots.bottom();_.default=()=>ve}const oe=t.h(r,ee,_);Q.hide=()=>[oe];const le=he(i,de,ue);return t.h(l,le,Q)}}}}const{create:Ed,componentName:Dd,scope:xd}=Y("date-item"),Jn=Ed(Td(Dd,xd,be,te.CircleClose,te.Date,qo,!1)),Id=39,qd=64,{create:Md,scope:zd}=Y("calendar-pane"),Pd=Md({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:ne.getDay(0)},endDate:{type:String,default:ne.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:o,slots:l}){const{toLocaleRefs:n,t:a}=ae.useFoxI18n(zd),r=n(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(a("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),d=t.ref(null),m=t.ref(null),f=t.ref(null),h=t.ref(0),y=t.computed(()=>u.monthsData.slice(u.defaultRange[0],u.defaultRange[1])),g=t.computed(()=>l.btn),k=t.computed(()=>l["top-info"]),v=t.computed(()=>l["bottom-info"]),u=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),p=q=>q.split("-"),b=q=>ne.isEqual(u.currDate[0],q),S=q=>ne.isEqual(u.currDate[1],q),N=q=>u.currDate?.length>0?u.currDate?.some(K=>ne.isEqual(K,q)):!1,C=(q,K)=>K.curData[0]+"-"+K.curData[1]+"-"+ne.getNumTwoBit(+q.day),V=(q,K)=>{const j=C(q,K),{type:Z}=e;return q.type=="curr"?ne.isEqual(u.currDate,j)||(Z=="range"||Z=="week")&&(b(j)||S(j))||Z=="multiple"&&N(j)?`${u.dayPrefix}--active`:u.propStartDate&&ne.compareDate(j,u.propStartDate)||u.propEndDate&&ne.compareDate(u.propEndDate,j)?`${u.dayPrefix}--disabled`:(Z=="range"||Z=="week")&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&ne.compareDate(u.currDate[0],j)&&ne.compareDate(j,u.currDate[1])?`${u.dayPrefix}--choose`:null:`${u.dayPrefix}--disabled`},B=()=>{const{type:q}=e;if(q=="range"&&u.chooseData.length==2||q!="range"){let K=u.chooseData.slice(0);q=="week"&&(K={weekDate:[A(u.chooseData[0]),A(u.chooseData[1])]}),o("choose",K),e.poppable&&o("update")}},I=(q,K,j=!1)=>{if(V(q,K)!=`${u.dayPrefix}--disabled`){const{type:Z}=e;let[O,X]=K.curData,Q=[...K.curData];if(Q[2]=ne.getNumTwoBit(Number(q.day)),Q[3]=`${Q[0]}-${Q[1]}-${Q[2]}`,Q[4]=ne.getWhatDay(+Q[0],+Q[1],+Q[2]),Z=="multiple")if(u.currDate?.length>0){let ee;u.currDate?.forEach((_,oe)=>{_==Q[3]&&(ee=oe)}),j?u.chooseData.push([...Q]):ee!==void 0?(u.currDate.splice(ee,1),u.chooseData.splice(ee,1)):(u.currDate.push(Q[3]),u.chooseData.push([...Q]))}else u.currDate=[Q[3]],u.chooseData=[[...Q]];else if(Z=="range"){let ee=Object.values(u.currDate).length;ee==2||ee==0?u.currDate=[Q[3]]:ne.compareDate(u.currDate[0],Q[3])?Array.isArray(u.currDate)&&u.currDate.push(Q[3]):Array.isArray(u.currDate)&&u.currDate.unshift(Q[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...Q]]:ne.compareDate(u.chooseData[0][3],Q[3])?u.chooseData=[...u.chooseData,[...Q]]:u.chooseData=[[...Q],...u.chooseData]}else if(Z=="week"){let ee=ne.getWeekDate(O,X,q.day,e.firstDayOfWeek);u.propStartDate&&ne.compareDate(ee[0],u.propStartDate)&&ee.splice(0,1,u.propStartDate),u.propEndDate&&ne.compareDate(u.propEndDate,ee[1])&&ee.splice(1,1,u.propEndDate),u.currDate=ee,u.chooseData=[ne.formatResultDate(ee[0]),ne.formatResultDate(ee[1])]}else u.currDate=Q[3],u.chooseData=[...Q];if(!j){let ee=u.chooseData;Z=="week"&&(ee={weekDate:[A(u.chooseData[0]),A(u.chooseData[1])]}),o("select",ee),(e.isAutoBackFill||!e.poppable)&&B()}}},A=q=>{let[K,j,Z]=q;return{date:q,monthWeekNum:ne.getMonthWeek(K,j,Z,e.firstDayOfWeek),yearWeekNum:ne.getYearWeek(K,j,Z,e.firstDayOfWeek)}},w=q=>{const K=q=="prev"?u.monthsData[0]:u.monthsData[u.monthsData.length-1];let j=parseInt(K.curData[0]),Z=parseInt(K.curData[1].toString().replace(/^0/,""));switch(q){case"prev":Z==1&&(j-=1),Z=Z==1?12:--Z;break;case"next":Z==12&&(j+=1),Z=Z==12?1:++Z;break}return[j+"",ne.getNumTwoBit(Z),ne.getMonthDays(String(j),String(Z))+""]},P=(q,K,j)=>{let{year:Z,month:O}=j;return K=="prev"&&q>=7&&(q-=7),Array.from(Array(q),(X,Q)=>({day:String(Q+1),type:K,year:Z,month:O}))},F=(q,K,j,Z)=>{q=q-e.firstDayOfWeek;let{year:O,month:X}=j;return K=="prev"&&q>=7&&(q-=7),Array.from(Array(Z),(ee,_)=>({day:String(_+1),type:K,year:O,month:X})).slice(Z-q)},E=(q,K)=>{const j=ne.getMonthPreDay(+q[0],+q[1]);let Z=Number(q[1])-1,O=Number(q[0]);Z<=0&&(Z=12,O+=1);const X=ne.getMonthDays(String(q[0]),String(q[1])),Q=ne.getMonthDays(O+"",Z+""),ee={year:q[0],month:q[1]},_={curData:q,title:a("monthTitle",{year:ee.year,month:ee.month}),monthData:[...F(j,"prev",{month:String(Z),year:String(O)},Q),...P(X,"curr",ee)],cssHeight:0,cssScrollHeight:0},oe=_.monthData.length>35?6:5;_.cssHeight=Id+qd*oe;let le=0;u.monthsData.length>0&&(le=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),_.cssScrollHeight=le,K=="next"?(!u.endData||!ne.compareDate(`${u.endData[0]}-${u.endData[1]}-${ne.getMonthDays(u.endData[0],u.endData[1])}`,`${q[0]}-${q[1]}-${q[2]}`))&&u.monthsData.push(_):!u.startData||!ne.compareDate(`${q[0]}-${q[1]}-${q[2]}`,`${u.startData[0]}-${u.startData[1]}-01`)?u.monthsData.unshift(_):u.unLoadPrev=!0},x=()=>{let q=e.startDate?e.startDate:ne.getDay(0),K=e.endDate?e.endDate:ne.getDay(365);u.propStartDate=q,u.propEndDate=K,u.startData=p(q),u.endData=p(K),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(u.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const j={year:Number(u.startData[0]),month:Number(u.startData[1])},Z={year:Number(u.endData[0]),month:Number(u.endData[1])};let O=Z.month-j.month;Z.year-j.year>0&&(O=O+12*(Z.year-j.year)),O<=0&&(O=1),E(u.startData,"next");let X=1;do E(w("next"),"next");while(X++<O);if(u.monthsNum=O,e.type=="range"&&Array.isArray(u.currDate))u.currDate.length>0&&(q&&ne.compareDate(u.currDate[0],q)&&u.currDate.splice(0,1,q),K&&ne.compareDate(K,u.currDate[1])&&u.currDate.splice(1,1,K),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let Q=[],ee={};u.currDate.forEach(_=>{q&&!ne.compareDate(_,q)&&K&&!ne.compareDate(K,_)&&(Object.hasOwnProperty.call(ee,_)||(Q.push(_),ee[_]=_))}),u.currDate=[...Q],u.defaultData=[...p(Q[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[Q,ee,_]=p(u.currDate[0]),oe=ne.getWeekDate(Q,ee,_,e.firstDayOfWeek);u.currDate=oe,q&&ne.compareDate(u.currDate[0],q)&&u.currDate.splice(0,1,q),K&&ne.compareDate(K,u.currDate[1])&&u.currDate.splice(1,1,K),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]}}else u.currDate&&(q&&ne.compareDate(u.currDate,q)?u.currDate=q:K&&!ne.compareDate(u.currDate,K)&&(u.currDate=K),u.defaultData=[...p(u.currDate)])};$e({scrollToDate:q=>{ne.compareDate(q,u.propStartDate)?q=u.propStartDate:ne.compareDate(q,u.propEndDate)||(q=u.propEndDate);let K=p(q);u.monthsData.forEach((j,Z)=>{if(j.title==a("monthTitle",{year:K[0],month:K[1]})&&c.value){let O=u.monthsData[Z].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let X=0,Q=setInterval(()=>{if(X++,c.value){let ee=O/10;c.value.scrollTop=c.value.scrollTop+ee}X>=10&&(clearInterval(Q),c.value&&(c.value.scrollTop=u.monthsData[Z].cssScrollHeight))},40)}else c.value.scrollTop=u.monthsData[Z].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)},doLayout:()=>{let q=0,K=0;u.defaultData.length>0&&u.monthsData.forEach((O,X)=>{O.title==a("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(q=X),(e.type=="range"||e.type=="week")&&O.title==a("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(K=X)}),H(u.monthsNum,q),u.currentIndex=q,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(I({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),I({day:u.defaultData[5],type:"curr"},u.monthsData[K],!0)):e.type=="week"?I({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(O=>{let X=p(O),Q=u.currentIndex;u.monthsData.forEach((ee,_)=>{ee.title==a("monthTitle",{year:X[0],month:X[1]})&&(Q=_)}),I({day:X[2],type:"curr"},u.monthsData[Q],!0)}):I({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let j=u.monthsData[u.monthsData.length-1],Z=j.cssHeight+j.cssScrollHeight;We(()=>{c?.value&&d?.value&&f?.value&&(h.value=c.value.clientHeight,d.value.style.height=`${Z}px`,c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(Z/(u.monthsNum+1))}});const H=(q,K)=>{q>=3?K>0&&K<q?u.defaultRange=[K-1,K+3]:K==0?u.defaultRange=[K,K+4]:K==q&&(u.defaultRange=[K-2,K+2]):u.defaultRange=[0,q+2];let j=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=j},G=(q,K)=>(e.type=="range"||e.type=="week")&&q.type=="curr"&&V(q,K)=="fox-calendar__day--active",R=(q,K)=>G(q,K)&&b(C(q,K)),$=(q,K)=>u.currDate.length>=2&&S(C(q,K))?G(q,K):!1,T=()=>{if(u.currDate.length>=2)return ne.isEqual(u.currDate[0],u.currDate[1])},z=q=>{const K=`${q.year}-${q.month}-${Number(q.day)<10?"0"+q.day:q.day}`;return ne.isEqual(K,ne.date2Str(new Date))},M=q=>{if(u.monthsData.length<=1)return;const K=q.target.scrollTop;let j=Math.floor(K/u.avgHeight);if(j==0)K>=u.monthsData[j+1].cssScrollHeight&&(j+=1);else if(j>0&&j<u.monthsNum-1)K>=u.monthsData[j+1].cssScrollHeight&&(j+=1),K<u.monthsData[j].cssScrollHeight&&(j-=1);else{const Z=Math.round(K+h.value);Z<u.monthsData[j].cssScrollHeight+u.monthsData[j].cssHeight&&K>u.monthsData[j-1].cssScrollHeight&&(j-=1),j+1<=u.monthsNum&&Z>=u.monthsData[j+1].cssScrollHeight+u.monthsData[j+1].cssHeight&&(j+=1),j>=1&&K<u.monthsData[j-1].cssScrollHeight&&(j-=1)}u.currentIndex!==j&&(u.currentIndex=j,H(u.monthsNum,j)),u.yearMonthTitle=u.monthsData[j].title},L=()=>{u.chooseData.splice(0),u.monthsData.splice(0),x()};return x(),t.watch(()=>e.defaultValue,q=>{q&&e.poppable&&L()}),{weeks:i,compConthsData:y,showTopBtn:g,topInfo:k,bottomInfo:v,rangeTip:T,mothsViewScroll:M,getClass:V,isStartTip:R,isEndTip:$,chooseDay:I,isCurrDay:z,confirm:B,months:c,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:m,viewArea:f}}}),Ld={class:"fox-calendar__header"},Fd={key:0,class:"fox-calendar__header-title"},Rd={key:1,class:"fox-calendar__header-slot"},Od={key:2,class:"fox-calendar__header-subtitle"},Kd={class:"fox-calendar__weekdays",ref:"weeksPanel"},Ud={class:"fox-calendar__panel",ref:"monthsPanel"},Hd={class:"fox-calendar__month-title"},jd={class:"fox-calendar__days"},Wd=["onClick"],Yd={class:"fox-calendar__day-value"},Xd={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},Qd={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},Gd={key:2,class:"fox-calendar__day-tips--curr"},Zd={key:4,class:"fox-calendar__day-tip"},Jd={key:0,class:"fox-calendar__footer"};function _d(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",Ld,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Fd,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",Rd,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",Od,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Kd,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:i},t.toDisplayString(s),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:o[0]||(o[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",Ud,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:i},[t.createElementVNode("view",Hd,t.toDisplayString(s.title),1),t.createElementVNode("view",jd,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:m=>e.chooseDay(c,s)},[t.createElementVNode("view",Yd,[t.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[t.createTextVNode(t.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",Xd,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",Qd,[t.renderSlot(e.$slots,"bottom-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",Gd,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,s)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,s)?(t.openBlock(),t.createElementBlock("view",Zd,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,Wd))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",Jd,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:o[1]||(o[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const er=J(Pd,[["render",_d]]),ef=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),wn={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6}},{create:tf}=Y("calendar"),of=tf({components:{[er.name]:er,[ie.name]:ie},props:{...wn},emits:["choose","close","update:visible","select"],setup(e,{emit:o,slots:l}){const n=t.computed(()=>l.btn),a=t.computed(()=>l["top-info"]),r=t.computed(()=>l.day),s=t.computed(()=>l["bottom-info"]),i=t.ref(null),c=k=>{i.value?.scrollToDate(k)},d=()=>{i.value?.initPosition()};t.watch(()=>e.visible,k=>{k&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),$e({scrollToDate:c,initPosition:d});const m=()=>{o("update:visible",!1)},f=()=>{o("close"),o("update:visible",!1)};return{closePopup:()=>{f()},update:m,close:f,select:k=>{o("select",k)},choose:k=>{f(),o("choose",k)},calendarRef:i,showTopBtn:n,topInfo:a,dayInfo:r,bottomInfo:s}}});function nf(e,o,l,n,a,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:{height:"85vh"}}),{default:t.withCtx(()=>[t.createVNode(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const Mo=J(of,[["render",nf]]),_o=(e,o)=>{let l;return Oe(e)?l=e:typeof e=="string"&&ge(e)>0?l=ne.parser(e,o):l=new Date,l},it=(e,o,l)=>(Oe(o)||(o=new Date),ne.format(o,l)),ct=e=>{let o=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,n=`${e.getDate()}`,a=ne.date2Str(e),r=ne.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[o,l,n,a,r]};function lf(e,o,l,n,{CloseIcon:a,MarkIcon:r},s=!1){return{props:{...ue,...de,...wn,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=Ae(t.computed(()=>i.readonly)),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),k=t.computed(()=>i.type==="range"),v=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),u=()=>{v.startDate!==null&&(v.startDate=null,v.endDate=null,v.startArray=[],v.endArray=[])},p=(M,L="one",q="YYYY-MM-DD")=>{if(ef(M)){u();return}if(k.value&&Array.isArray(M)&&M.length==2){let K,j;typeof M[0]=="string"?(K=_o(M[0],q),j=_o(M[1],q)):(K=M[0],j=M[1]);let Z=ct(K),O=ct(j);(v.startDate===null||v.startDate.getTime()!==K.getTime()||v.endDate?.getTime()!==j.getTime())&&(v.startDate=K,v.startArray=Z,v.endDate=j,v.endArray=O)}else{let K;typeof M=="string"?K=_o(M,q):K=M;let j=ct(K);(v.startDate===null||v.startDate.getTime()!==K.getTime())&&(v.startDate=K,v.startArray=j)}};p(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,M=>{p(M,i.type,i.valueFormat)});const b=t.computed(()=>{if(v.startDate===null)return"";if(k.value){let M=it(i,v.startDate,i.format),L=it(i,v.endDate,i.format);return`${M} ${i.rangeSeparator} ${L}`}else{let M=it(i,v.startDate,i.format);return i.showWeek&&(M=`${M} ${v.startArray[4]}`),M}}),S=t.computed(()=>{if(v.startDate===null)return null;if(k.value){let M=ne.date2Str(v.startDate),L=ne.date2Str(v.endDate??new Date);return[M,L]}else return ne.date2Str(v.startDate)}),N="fox-input-item",C=t.computed(()=>({[N]:!0,[`${N}__disabled`]:d.value})),V=Ne(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const M={};return V.value&&(M["text-align"]=V.value),M}),I=t.ref(!1),A=()=>{m.value||d.value||(I.value=!0)},w=M=>{I.value=M},P=M=>{if(M){if(k.value&&Array.isArray(M)){let L=M[0],q=fe(L[0]),K=fe(L[1]),j=fe(L[2]),Z=new Date(q,K-1,j),O=M[1];q=fe(O[0]),K=fe(O[1]),j=fe(O[2]);let X=new Date(q,K-1,j);if(v.startDate=Z,v.startArray=ct(Z),v.endDate=X,v.endArray=ct(X),i.valueFormat){let Q=it(i,Z,i.valueFormat),ee=it(i,X,i.valueFormat);f("update:modelValue",[Q,ee],{})}else f("update:modelValue",[Z,X],{})}else{let L=M,q=fe(L[0]),K=fe(L[1]),j=fe(L[2]),Z=new Date(q,K-1,j);if(v.startDate=Z,v.startArray=ct(Z),i.valueFormat){let O=it(i,Z,i.valueFormat);f("update:modelValue",O,{})}else f("update:modelValue",Z,{})}f("change",M,{})}},F=M=>{let q=M.target.value;g.value=!0,f("focus",q,M)},E=M=>{setTimeout(()=>{g.value=!1},0);let q=M.target.value;i.maxLength&&q.length>Number(i.maxLength)&&(q=q.slice(0,Number(i.maxLength))),f("blur",q,M)},x=t.computed(()=>({[`${N}__append`]:!0})),U=t.computed(()=>ge(i.unit)>0),D=t.computed(()=>ge(i.unit)>0&&!g.value),W=t.computed(()=>({hidden:!D.value})),H=M=>{u(),f("update:modelValue",null,M),f("change","",M),f("clear","")},G=t.computed(()=>i.clearable&&!d.value&&!m.value),R=t.computed(()=>{let M=ge(b.value)>0;return i.clearable&&M&&g.value}),$=M=>{R.value?H(M):A()},T=t.computed(()=>R.value&&G.value?a:r),z=t.computed(()=>({action:!0}));return()=>{const M={class:C.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:A,onFocus:F,onBlur:E};s&&(M.disabled=!0);const L=[],q=t.h("input",M);L.push(q);const K=[],j={class:["action-icon"]},Z=t.h(T.value,j),O={class:z.value,onClick:$},X=t.h("view",O,{default:()=>[Z]});if(K.push(X),U.value){const Ze=t.h("view",{class:W.value},[i.unit]);K.push(Ze)}const Q={class:x.value},ee=t.h("view",Q,{default:()=>K});L.push(ee);const _={default:()=>L};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const oe=he(i,wn);oe.visible=I.value,oe["onUpdate:visible"]=w,oe["default-value"]=S.value,oe.onChoose=P;const le={};if(c.slots.btn){const Ze=c.slots.btn();le.btn=()=>Ze}c.slots.day&&(le.day=c.slots.day),c.slots.topInfo&&(le.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(le.bottomInfo=c.slots.bottomInfo);const Te=t.h(l,oe,le);_.hide=()=>[Te];const ve=he(i,de,ue);return t.h(n,ve,_)}}}}const{componentName:af,create:rf,scope:sf}=Y("calendar-item"),_n=rf(lf(af,sf,Mo,be,{CloseIcon:te.CircleClose,MarkIcon:te.Date},!1)),cf={readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},shape:{type:String,default:"round"},label:{type:[String,Number,Boolean],default:""},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}};function uf(e,{CheckNormal:o,Checked:l}){return{props:{...cf},setup(n,{emit:a,slots:r}){let s=t.inject("parent",null);const i=t.computed(()=>s.label.value===n.label),c=t.computed(()=>n.disabled?"fox-radio__icon--disable":i.value?"fox-radio__icon":"fox-radio__icon--unchecked"),d=t.computed(()=>s.position),m=()=>{if(i.value){if(r.checkedIcon)return r.checkedIcon();{const k=se(n.iconSize),v=n.checkedIcon??l;return t.h(v,{width:k,height:k,class:c.value})}}else{if(r.icon)return r.icon();{const k=se(n.iconSize),v=n.icon??o;return t.h(v,{width:k,height:k,class:c.value})}}},f=()=>t.h("view",{class:`${e}__label ${n.disabled?`${e}__label--disabled`:""}`},r.default?.()),h=()=>t.h("view",{class:`${e}__button ${i.value&&`${e}__button--active`} ${n.disabled?`${e}__button--disabled`:""}`},r.default?.()),y=()=>{i.value||n.disabled||n.readonly||s.updateValue(n.label)},g=d.value==="left";return()=>t.h("view",{class:`${e} ${e}--${n.shape} ${g?`${e}--reverse`:""}`,onClick:y},[n.shape=="button"?h():g?[f(),m()]:[m(),f()]])}}}const{componentName:df,create:ff}=Y("radio"),zo=ff(uf(df,{CheckNormal:te.CheckNormal,Checked:te.CheckChecked})),{componentName:tr,create:mf}=Y("radio-group"),Po=mf({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{emit:o,slots:l}){const n=a=>o("update:modelValue",a);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:n}),t.watch(()=>e.modelValue,a=>o("change",a)),()=>{const a={};return e.textAlign&&(a["text-align"]=e.textAlign),t.h("view",{class:`${tr} ${tr}--${e.direction}`,style:a},l.default?.())}}});function or(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(eo(e,r)===l)return a}else if(n==="item"){if(xe(l,r))return a}else if(Dt(e,r)===l)return a}return-1}function eo(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function Dt(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function pf(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function hf(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let gf=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);let a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function yf(){const e=t.getCurrentInstance();return new gf(e.proxy)}function vf(e){return{text:e,value:e}}const nr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},kf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}};function bf(e,o,l,n,a){return{props:{...ue,...de,...nr,...kf,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Boolean,Object],default:""}},emits:["change","update:modelValue"],setup(r,s){const i=Ae(t.computed(()=>r.readonly)),c=Ce(t.computed(()=>r.disabled)),d=Ne(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!c.value||!i.value}},r.prop??s.attrs.name),f=yf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,p])=>{if(u){const b=await f.load("radio",u,p);if(b.length>0)if(typeof b[0]=="string"){const C=b.map(V=>vf(V));h.value=C}else h.value=b}},{immediate:!0});let y=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([u,p])=>{y.value=or(r,p,u,r.valueType)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;if(y.value===-1)return null;const u=h.value[y.value];return Dt(r,u)}),k=u=>{let p=null,b=null;if(h.value.length>0){let S=or(r,h.value,u,"value");y.value=S,S>=0&&(b=h.value[S],r.valueType==="text"?p=eo(r,b):r.valueType==="item"?p=b:p=Dt(r,b))}else p=u;m("update:modelValue",p),m("change",p,b)},v=()=>{let u=null,p=null;if(h.value.length>0&&y.value!==-1){let b=h.value[y.value];r.valueType==="text"?u=eo(r,b):r.valueType==="item"?u=b:u=Dt(r,b)}m("update:modelValue",u),m("change",u,p)};if($e({clear(){y.value!==-1&&(y.value=-1,v())}}),r.source){const u=()=>{const p=[],b=he(r,nr);return h.value.forEach((S,N)=>{const C=Dt(r,S),V=pf(r,S);let B={...b,label:C,disabled:V};const I=hf(r,S,N);B={...B,...I},c.value&&(B.disabled=!0),i.value&&(B.readonly=!0);const A={};if(s.slots.icon&&(A.icon=s.slots.icon),s.slots.checkedIcon&&(A.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const P=s.slots.text(S);A.default=()=>[P]}else{const P=eo(r,S);A.default=()=>P}let w=t.h(a,B,A);p.push(w)}),p};return()=>{const p=u(),b={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"onUpdate:modelValue":k},S=t.h(n,b,{default:()=>p}),N={default:()=>S};N.label=s.slots.default,N.prepend=s.slots.prepend,N.append=s.slots.append,N.fixedPreTip=s.slots.fixedPreTip,N.fixedTip=s.slots.fixedTip;const C=he(r,de,ue);return t.h(l,C,N)}}else return()=>{const u=s.slots.options?.()??[];return t.h(n,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"update:modelValue":k},{default:()=>u})}}}}const{componentName:Sf,create:Cf,scope:wf}=Y("radio-item"),el=Cf(bf(Sf,wf,be,Po,zo)),Nf=(e,{CheckNormal:o,Checked:l,Indeterminate:n})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(a,{emit:r,slots:s}){const i=t.inject("parent",null),c=t.reactive({partialSelect:a.indeterminate});t.watch(()=>a.indeterminate,b=>{c.partialSelect=b});const d=t.computed(()=>!!i),m=t.computed(()=>d.value?i.value.value.includes(a.label):!!a.modelValue),f=t.computed(()=>d.value?i.position:a.textPosition),h=t.computed(()=>a.disabled?"fox-checkbox__icon--disable":c.partialSelect?"fox-checkbox__icon--indeterminate":m.value?"fox-checkbox__icon":"fox-checkbox__icon--unchecked");let y="";const g=(b,S)=>{y="click",r("update:modelValue",b),r("change",b,S)};t.watch(()=>a.modelValue,b=>{y=="click"?y="":r("change",b)});const k=()=>{if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const b=se(a.iconSize),S=a.indeterminateIcon??n;return t.h(S,{width:b,height:b,class:h.value})}}else if(m.value){if(s.checkedIcon)return s.checkedIcon();{const b=se(a.iconSize),S=a.checkedIcon??l;return t.h(S,{width:b,height:b,class:h.value})}}else{if(s.icon)return s.icon();{const b=se(a.iconSize),S=a.icon??o;return t.h(S,{width:b,height:b,class:h.value})}}},v=()=>t.h("view",{class:`${e}__label ${a.disabled?`${e}__label--disabled`:""}`},s.default?.()),u=()=>t.h("view",{class:`${e}__button ${m.value&&`${e}__button--active`} ${a.disabled?`${e}__button--disabled`:""}`},s.default?.()),p=b=>{if(!(a.disabled||a.readonly)){if(m.value&&c.partialSelect){c.partialSelect=!1,g(m.value,s.default?.()[0].children);return}if(g(!m.value,s.default?.()[0].children),d.value){const S=i.value.value,N=i.max.value,{label:C}=a,V=S.indexOf(C);V>-1?S.splice(V,1):V<=-1&&(S.length<N||!N)&&S.push(C),i.updateValue(S)}}};return t.onMounted(()=>{d.value&&i.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{d.value&&i.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${a.shape} ${f.value==="left"?`${e}--reverse`:""}`,onClick:p},[a.shape=="button"?u():[k(),v()]])}}),{componentName:Bf,create:Vf}=Y("checkbox"),Lo=Vf(Nf(Bf,{CheckNormal:te.CheckNormal,Checked:te.Checked,Indeterminate:te.CheckDisabled})),{create:Af,componentName:lr}=Y("checkbox-group"),Fo=Af({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:o,emit:l}){const n=t.reactive({children:[]}),a=d=>{d.proxy&&n.children.push(d.proxy)},r=d=>{d.proxy&&(n.children=n.children.filter(m=>m!==d.proxy))},s=d=>{l("update:modelValue",d),l("change",d)},i=d=>{const m=[];d&&n.children.forEach(f=>{f?.disabled||m.push(f?.label)}),l("update:modelValue",m)},c=()=>{const d=n.children.filter(m=>m?.disabled?!1:!e.modelValue.includes(m.label)).map(m=>m.label);l("update:modelValue",d)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:a,unlink:r}),t.watch(()=>e.modelValue,d=>{l("change",d)}),$e({toggleAll:i,toggleReverse:c}),()=>{const d={};return e.textAlign&&(d["text-align"]=e.textAlign),t.h("view",{class:`${lr} ${lr}--${e.direction}`,style:d},o.default?.())}}});function ar(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(Nn(e,r)===l)return a}else if(n==="item"){if(xe(l,r))return a}else if(to(e,r)===l)return a}return-1}function Nn(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function to(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function $f(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function Tf(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let Ef=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);let a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function Df(){const e=t.getCurrentInstance();return new Ef(e.proxy)}function xf(e){return{text:e,value:e}}const If={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},rr={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}};function qf(e,o,l,n,a){return{props:{...If,...rr,...ue,...de,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]}},emits:["change","update:modelValue"],setup(r,s){const i=Ce(t.computed(()=>r.disabled)),c=Ce(t.computed(()=>r.readonly)),d=Ne(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:m}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!i.value||!c.value}},r.prop??s.attrs.name),f=Df(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([u,p])=>{if(u){const b=await f.load("checkbox",u,p);if(b.length>0)if(typeof b[0]=="string"){const C=b.map(V=>xf(V));h.value=C}else h.value=b}},{immediate:!0});const y=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([u,p])=>{const b=[];Array.isArray(u)&&u.forEach(S=>{let N=ar(r,p,S,r.valueType);N!==-1&&b.push(N)}),!xe(b,y.value)&&(y.value=b)},{deep:!0});const g=t.computed(()=>{if(!r.source)return r.modelValue;let u=[];return y.value.forEach(p=>{let b=h.value[p];u.push(to(r,b))}),u}),k=u=>{let p=[],b=[];if(h.value.length>0){const S=[];Array.isArray(u)&&u.forEach(N=>{let C=ar(r,h.value,N,"value");C!==-1&&S.push(C);const V=h.value[C];b.push(V),r.valueType==="text"?p.push(Nn(r,V)):r.valueType==="item"?p.push(V):p.push(to(r,V))}),y.value=S}else p=u;m("update:modelValue",p),m("change",p,b)},v=t.ref();if($e({toggleAll:u=>{v.value.toggleAll(u)},toggleReverse:()=>{v.value.toggleReverse()}}),r.source){const u=()=>{const p=[],b=he(r,rr);return h.value.forEach((S,N)=>{const C=to(r,S),V=$f(r,S);let B={...b,label:C,disabled:V};const I=Tf(r,S,N);B={...B,...I},i.value&&(B.disabled=!0),c.value&&(B.readonly=!0);const A={};if(s.slots.icon&&(A.icon=s.slots.icon),s.slots.checkedIcon&&(A.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(A.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const P=s.slots.text(S);A.default=()=>[P]}else{const P=Nn(r,S);A.default=()=>P}let w=t.h(a,B,A);p.push(w)}),p};return()=>{const p=u(),b={class:`${e}`,ref:v,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:g.value,"onUpdate:modelValue":k},S=t.h(n,b,{default:()=>p}),N={default:()=>S};N.label=s.slots.default,N.prepend=s.slots.prepend,N.append=s.slots.append,N.fixedPreTip=s.slots.fixedPreTip,N.fixedTip=s.slots.fixedTip;const C=he(r,de,ue);return t.h(l,C,N)}}else return()=>{const u=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:v,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:d.value,modelValue:g,"onUpdate:modelValue":k},{default:()=>u})}}}}const{componentName:Mf,create:zf,scope:Pf}=Y("checkbox-item"),tl=zf(qf(Mf,Pf,be,Fo,Lo)),Bn={modelValue:{type:[String,Number,Boolean],default:!1},disable:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:Lf,create:Ff}=Y("switch"),Rf=Ff({components:{Loading1:te.Loading1},props:{...Bn},emits:["change","update:modelValue","update:loading"],setup(e,{emit:o}){const l=t.computed(()=>e.modelValue===e.activeValue),n=t.computed(()=>{const i=Lf;return{[i]:!0,[l.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-disable`]:e.disable,[`${i}-base`]:!0}}),a=t.computed(()=>({backgroundColor:l.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disable||e.loading)return;r="click";const c=l.value?e.inactiveValue:e.activeValue;o("update:modelValue",c),o("change",c,i)};return t.watch(()=>e.modelValue,i=>{r=="click"?r="":o("change",i)}),{classes:n,style:a,isActive:l,onClick:s}}}),Of={class:"fox-switch-button"};function Kf(e,o,l,n,a,r){const s=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",Of,[e.loading?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(s,{name:"loading",color:e.activeColor},null,8,["color"])]):t.createCommentVNode("",!0),e.activeText?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label open"},t.toDisplayString(e.activeText),513),[[t.vShow,e.isActive]]),t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label close"},t.toDisplayString(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):t.createCommentVNode("",!0)])],6)}const Ro=J(Rf,[["render",Kf]]);function Uf(e,o,l,n){return{props:{...ue,...de,...Bn},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,m=Ee(a,"modelValue"),f=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const y={...he(a,Bn),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},g=[],k=t.h(n,y);g.push(k);const v={default:()=>g};v.label=r.slots.default,v.fixedPreTip=r.slots.fixedPreTip,v.fixedTip=r.slots.fixedTip;const u=he(a,de,ue);return u["content-class"]=d,t.h(l,u,v)}}}}const{componentName:Hf,create:jf,scope:Wf}=Y("switch-item"),ol=jf(Uf(Hf,Wf,be,Ro));function Yf(e,o,l,n){return{props:{...ue,...de,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur"],setup(a,r){const{emitEvent:s}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},a.prop??r.attrs.name),{toLocaleRefs:i}=ae.useFoxI18n(o),c=i(a,["placeholder"]),d=Ce(t.computed(()=>a.disabled)),m=Ae(t.computed(()=>a.readonly)),f=Ee(a,"modelValue"),h=t.computed(()=>({[`${e}`]:!0})),y=t.computed(()=>({[`${e}__main`]:!0,[`${e}__disabled`]:d.value,[`${e}__placeholder`]:!d.value&&ce(f.value)})),g=Ne(t.computed(()=>a.textAlign),"textAlign"),k=t.computed(()=>{const P={};return g.value&&(P["text-align"]=g.value),P}),v=t.computed(()=>!ce(a.modelValue)||r.slots.main?!0:!!ce(a.desc)),u=t.computed(()=>ce(f.value)?c.placeholder.value:f.value),p=t.computed(()=>!ce(a.desc)||r.slots.sub),b=t.computed(()=>({[`${e}__sub`]:!0})),S=t.computed(()=>{const P={};return g.value&&(P["text-align"]=g.value),P}),N=()=>{s("focus",f.value)},C=()=>{s("blur",f.value)},V=t.computed(()=>({[`${e}__append`]:!0})),B=t.computed(()=>ge(a.unit)>0),I=P=>{d.value==!0||m.value==!0||s("click")},A=t.computed(()=>a.icon??l),w=t.computed(()=>({action:!0}));return()=>{const P=[];if(typeof r.slots.content=="function"){const T=r.slots.content();P.push(T)}else{const T=[];if(v.value){const L={tabIndex:0,class:y.value,style:k.value,onFocus:N,onBlur:C,onClick:I};let q=null;r.slots.main?q=t.h("view",L,[r.slots.main(u.value)]):q=t.h("view",L,[u.value]),T.push(q)}if(p.value){const L={tabIndex:0,class:b.value,style:S.value,onFocus:N,onBlur:C,onClick:I};let q=null;r.slots.sub?q=t.h("view",L,[r.slots.sub(a.desc)]):q=t.h("view",L,[a.desc]),T.push(q)}const z={class:h.value},M=t.h("view",z,T);P.push(M)}const F=[],E=se(a.iconSize);let x=r.slots.icon;if(!x){const T={width:E,height:E,class:["action-icon"]};x=t.h(A.value,T)}const U={class:w.value,onClick:I},D=t.h("view",U,{default:()=>[x]});if(F.push(D),B.value){const T=t.h("view",{},[a.unit]);F.push(T)}const W={class:V.value},H=t.h("view",W,{default:()=>F});P.push(H);const G={default:()=>P};G.label=r.slots.default,G.prepend=r.slots.prepend,G.append=r.slots.append,G.fixedPreTip=r.slots.fixedPreTip,G.fixedTip=r.slots.fixedTip;const R=he(a,de,ue);return t.h(n,R,G)}}}}const{componentName:Xf,create:Qf,scope:Gf}=Y("link-item"),nl=Qf(Yf(Xf,Gf,te.ArrowRight,be)),Vn={count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object},size:{type:[String,Number],default:void 0},activeColor:{type:String,default:""},voidColor:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:void 0}},{create:Zf,componentName:Jf}=Y("rate"),_f=Zf({props:{...Vn},emits:["update:modelValue","change"],setup(e,{emit:o,slots:l}){const n=t.ref([]),a=t.computed(()=>({[Jf]:!0})),r=y=>{o("update:modelValue",y),o("change",y)},s=(y,g)=>{if(e.disabled||e.readonly)return;let k=0;g===1&&e.modelValue===g||(k=g,e.allowHalf&&y==2&&(k-=.5)),r(k)},i=(y,g,k)=>{let v=0;for(let u=g.value.length-1;u>=0;u--){const p=g.value[u];if(y>p.offsetLeft){k?v=u+(y>p.offsetLeft+p.clientWidth/2?1:.5):v=u+1;break}}return v},c=Ue(),d={onTouchStart(y){!e.touchable||e.readonly||c.start(y)},onTouchMove(y){e.touchable&&(c.move(y),c.isHorizontal()&&n.value&&(y.preventDefault(),r(i(c.moveX.value,n,e.allowHalf))))}},m=Math.random().toString(36).slice(-8),f=t.computed(()=>e.customIcon??te.StarFillN);return{classes:a,...d,onClick:s,toPxDesc:pe,renderIcon:(y,g)=>t.h(y,g),rateRefs:n,refRandomId:m,slots:l,customIcon:f}}}),em=["id"],tm={class:"fox-rate-item__icon--full"},om={key:0,class:"fox-rate-item__icon--half"},nm={key:1,class:"fox-rate-item__icon--half"};function lm(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:s,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+s,style:t.normalizeStyle(s<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",tm,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=e.modelValue?e.activeColor:e.voidColor})),{class:t.normalizeClass(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||s>e.modelValue}]),onClick:i=>e.onClick(1,s)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>s?(t.openBlock(),t.createElementBlock("view",om,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<s?(t.openBlock(),t.createElementBlock("view",nm,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):t.createCommentVNode("",!0)],12,em))),128))],34)}const vt=J(_f,[["render",lm]]);function am(e,o,l,n){return{props:{...ue,...de,...Vn},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,m=Ee(a,"modelValue"),f=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const y={...he(a,Vn),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},g=[],k=t.h(n,y);g.push(k);const v={default:()=>g};if(r.slots.default){const b=r.slots.default();v.label=()=>b}const u=he(a,de,ue);return u["content-class"]=d,t.h(l,u,v)}}}}const{componentName:rm,create:sm,scope:im}=Y("rate-item"),ll=sm(am(rm,im,be,vt)),An={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeClose:{type:Function}};function cm(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(oo(e,r)===l)return a}else if(n==="item"){if(xe(l,r))return a}else if(Ss(e,r)===l)return a}return-1}function oo(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function sr(e,o){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?o[e.subTextKey]:o.text}function Ss(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function um(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function dm(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let fm=class{proxy;constructor(o){this.proxy=o}async load(o,l,n,a,r,s,i){if(Array.isArray(l)){let d=l;typeof i=="function"&&(d=d.filter(i));let m=(n-1)*a,f=m+a;f>d.length&&(f=d.length);const h=d.slice(m,f);return{totalSize:d.length,page:h}}if(typeof l=="function")return await Reflect.apply(l,null,[n,a,r,s]);const c=Ge(this.proxy,o);return c===null?(console.error(`${o} component not found api function`),{totalSize:0,page:[]}):(Be(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[l,n,a,r]))}};function mm(){const e=t.getCurrentInstance();return new fm(e.proxy)}const{componentName:pm,create:hm,scope:gm}=Y("infinite-loading"),ym=hm({props:{modelValue:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!0},threshold:{type:Number,default:200},loadText:{type:String},loadMoreText:{type:String},useCapture:{type:Boolean,default:!1}},emits:["scroll-change","load-more","update:modelValue"],components:{Loading:te.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(gm),a=n(e,["pullText","loadText","loadMoreText"]),r=t.ref(),s=is(r),i=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[pm]:!0})),d=k=>k?k.offsetTop+d(k.offsetParent):0,m=()=>{let k=0,v=0,u="down";if(s.value==window){const p=qn();r.value&&(k=d(r.value)+r.value.offsetHeight-p-window.innerHeight),v=p}else{const{scrollHeight:p,clientHeight:b,scrollTop:S}=s.value;k=p-b-S,v=S}return i.beforeScrollTop>v?u="up":u="down",i.beforeScrollTop=v,o("scroll-change",v),k<=e.threshold&&u=="down"},f=()=>{We(()=>{if(!m()||!e.hasMore||i.isInfiniting)return!1;i.isInfiniting=!0,o("update:modelValue",!0),t.nextTick(()=>o("load-more"))})},h=()=>{s.value&&s.value.addEventListener("scroll",f,e.useCapture)},y=()=>{s.value&&s.value.removeEventListener("scroll",f,e.useCapture)};t.onMounted(()=>{h()}),t.onUnmounted(()=>{y()});const g=t.ref(!1);return t.onActivated(()=>{g.value&&(g.value=!1,h())}),t.onDeactivated(()=>{g.value=!0,y()}),t.watch(()=>e.modelValue,k=>{k||(i.isInfiniting=!1)}),{classes:c,scroller:r,...t.toRefs(i),slots:l,...a}}}),vm={class:"fox-infinite__container"},km={class:"fox-infinite__bottom"},bm={key:0,class:"fox-infinite__bottom-box"},Sm={class:"fox-infinite__bottom-box__text"},Cm={class:"fox-infinite__bottom-tips"};function wm(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"scroller"},[t.createElementVNode("view",vm,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",km,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",bm,[t.renderSlot(e.$slots,"loading",{},()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[t.createVNode(s,{class:"fox-icon-loading fox-infinite__bottom-box__img"})]),t.createElementVNode("view",Sm,t.toDisplayString(e.loadText),1)])])):e.hasMore?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"finished",{key:1},()=>[t.createElementVNode("view",Cm,t.toDisplayString(e.loadMoreText),1)])])],2)}const Oo=J(ym,[["render",wm]]),{componentName:Nm,create:Bm}=Y("button"),Vm=Bm({components:{Loading:te.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o,slots:l}){const{type:n,size:a,shape:r,disabled:s,loading:i,color:c,plain:d,block:m}=t.toRefs(e),f=g=>{!i.value&&!s.value&&o("click",g)},h=t.computed(()=>{const g=Nm;return{[g]:!0,[`${g}--${n.value}`]:n.value,[`${g}--${a.value}`]:a.value,[`${g}--${r.value}`]:r.value,[`${g}--plain`]:d.value,[`${g}--block`]:m.value,[`${g}--disabled`]:s.value,[`${g}--loading`]:i.value}}),y=t.computed(()=>{const g={};return c?.value&&(d.value?(g.color=c.value,g.background="#fff",c.value?.includes("gradient")||(g.borderColor=c.value)):(g.color="#fff",g.background=c.value)),g});return{handleClick:f,classes:h,getStyle:y}}}),Am={class:"fox-button__wrap"};function $m(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:o[0]||(o[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",Am,[e.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading"})):t.createCommentVNode("",!0),e.$slots.icon&&!e.loading?t.renderSlot(e.$slots,"icon",{key:1}):t.createCommentVNode("",!0),e.$slots.default?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass({"fox-button__text":e.$slots.icon||e.loading})},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)])],6)}const Ie=J(Vm,[["render",$m]]),{create:Tm,scope:Em}=Y("searchbar"),Dm=Tm({props:{modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object,default:()=>te.CircleClose},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},emits:["change","update:modelValue","blur","focus","clear","search","click-input","click-left-icon","click-right-icon"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(Em),n=l(e,["placeholder"]),a=t.reactive({active:!1}),r=t.computed(()=>({background:e.background})),s=t.computed(()=>({background:e.inputBackground})),i=p=>{let S=p.target.value;e.maxLength&&S.length>Number(e.maxLength)&&(S=S.slice(0,Number(e.maxLength))),o("update:modelValue",S,p),o("change",S,p)},c=t.ref({}),d=p=>{let S=p.target.value;a.active=!0,c.value=e.focusStyle,o("focus",S,p)},m=p=>{setTimeout(()=>{a.active=!1},0);let S=p.target.value;e.maxLength&&S.length>Number(e.maxLength)&&(S=S.slice(0,Number(e.maxLength))),c.value={},o("blur",S,p)},f=p=>{o("update:modelValue","",p),o("change","",p),o("clear","")},h=()=>{o("search",e.modelValue)},y=p=>{o("click-input",p)},g=p=>{o("click-left-icon",e.modelValue,p)},k=p=>{o("click-right-icon",e.modelValue,p)},v=t.computed(()=>({textAlign:e.inputAlign})),u=t.ref(null);return t.onMounted(()=>{e.autofocus&&u.value.focus()}),{...n,inputsearch:u,...t.toRefs(a),valueChange:i,valueFocus:d,valueBlur:m,handleClear:f,handleSubmit:h,searchbarStyle:r,inputSearchbarStyle:s,focusCss:c,clickInput:y,leftIconClick:g,rightIconClick:k,styleSearchbar:v}}}),xm={key:0,class:"fox-searchbar__search-label"},Im={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},qm=["type","maxlength","placeholder","value","disabled","readonly"],Mm={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-search-icon"},zm={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function Pm(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:"fox-searchbar",style:t.normalizeStyle(e.searchbarStyle)},[e.label?(t.openBlock(),t.createElementBlock("span",xm,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",Im,[t.renderSlot(e.$slots,"leftout")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__search-input",e.shape]),style:t.normalizeStyle({...e.inputSearchbarStyle,...e.focusCss})},[e.$slots.leftin?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-searchbar__search-icon fox-searchbar__iptleft-search-icon",onClick:o[0]||(o[0]=(...s)=>e.leftIconClick&&e.leftIconClick(...s))},[t.renderSlot(e.$slots,"leftin")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner",e.$slots.rightin&&"fox-searchbar__input-inner-absolute"])},[t.createElementVNode("form",{class:"fox-searchbar__input-form",action:"#",onSubmit:o[5]||(o[5]=t.withModifiers((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[t.createElementVNode("input",{ref:"inputsearch",class:t.normalizeClass(["fox-searchbar__input-bar",e.clearable&&"fox-searchbar__input-bar_clear"]),type:e.inputType,maxlength:e.maxLength,placeholder:e.placeholder,value:e.modelValue,disabled:e.disabled,readonly:e.readonly,onClick:o[1]||(o[1]=(...s)=>e.clickInput&&e.clickInput(...s)),onInput:o[2]||(o[2]=(...s)=>e.valueChange&&e.valueChange(...s)),onFocus:o[3]||(o[3]=(...s)=>e.valueFocus&&e.valueFocus(...s)),onBlur:o[4]||(o[4]=(...s)=>e.valueBlur&&e.valueBlur(...s)),style:t.normalizeStyle(e.styleSearchbar)},null,46,qm)],32)],2),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner-icon",e.$slots.rightin&&"fox-searchbar__input-inner-icon-absolute"])},[e.clearable?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,onClick:o[6]||(o[6]=(...s)=>e.handleClear&&e.handleClear(...s)),class:"fox-searchbar__search-icon fox-searchbar__input-clear"},[e.$slots["clear-icon"]?t.renderSlot(e.$slots,"clear-icon",{key:0}):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.clearIcon),{key:1}))],512)),[[t.vShow,String(e.modelValue).length>0]]):t.createCommentVNode("",!0),e.$slots.rightin?(t.openBlock(),t.createElementBlock("view",Mm,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],2)],6),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",zm,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const Ko=J(Dm,[["render",Pm]]);function Lm(e,o,l){return{props:{...An},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(n,{emit:a,slots:r}){const{toLocaleRefs:s}=ae.useFoxI18n(o),i=s(n,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),c=mm(),d=t.ref([]),m=t.ref(0),f=t.ref(""),h=t.shallowRef(null),y=t.computed(()=>{const $={};return n.params&&Object.assign($,n.params),ce(f.value)||($[`${n.searchKey}`]=f.value),h.value&&Object.assign($,h.value),$});let g=!0;const k=async($,T,z)=>{try{if(u.value===!1)return;let M=null;ce(f.value)||(M=q=>{const K=oo(n,q);if(typeof K=="string"&&K.includes(f.value))return!0;const j=sr(n,q);return!!(typeof j=="string"&&j.includes(f.value))});const L=await c.load("actionsheet",$,T,z,y.value,g,M??void 0);g=!1,Array.isArray(L)?(d.value=L,m.value=1,u.value=!1):!Array.isArray(L.page)||L.page.length===0?(console.warn("[FoxUI] can not load more data"),u.value=!1):(Reflect.apply([].push,d.value,L.page),m.value=Math.ceil(d.value.length/n.pageSize),(L.totalSize&&d.value.length>=L.totalSize||z<L.page.length)&&(u.value=!1)),v.value=!1}catch(M){console.error("[FoxUI] ActionSheet load more data fail",M),u.value=!0,m.value=0,d.value=[]}setTimeout(()=>{a("loaded-data")},250)},v=t.ref(!1),u=t.ref(!0),p=async()=>{if(!n.source){v.value=!1;return}await k(n.source,m.value+1,n.pageSize)};t.watch(()=>f.value,($,T)=>{ce($)&&!ce(T)&&p()}),t.watch([()=>n.source,()=>n.pageSize,()=>n.params],async([$,T,z])=>{n.source&&p()},{immediate:!0});const b=t.computed(()=>!n.multiple&&n.isAutoBackFill),S=t.ref([]);let N=null;const C=t.ref(n.visible);t.watch(()=>n.visible,$=>{C.value!==$&&(C.value=$),$?N=[...S.value]:N=null});const V=($,T)=>{const z=[];return Array.isArray($)||($=[$]),$.forEach(M=>{let L=cm(n,T,M,n.valueType);L!==-1&&z.push(L)}),xe(z,S.value)?!1:(S.value=z,!0)};t.watch([()=>n.modelValue,()=>d.value],([$,T],[z,M])=>{if(V($,T)){const q=B();I(q)}},{deep:!0});const B=()=>{const $=[],T=[],z=[];for(let K of S.value){const j=d.value[K];T.push(j);const Z=oo(n,j);if(z.push(Z),n.valueType==="item")$.push(j);else if(n.valueType==="text")$.push(Z);else{const O=Ss(n,j);$.push(O)}}let M=null,L=null,q=null;return n.multiple?(M=$,L=z,q=T):(M=$[0]??null,L=z[0]??null,q=T[0]??null),{value:M,text:L,item:q}},I=$=>{a("update:modelValue",$.value),a("update:text",$.text),a("change",$.value,$.item,$.text)},A=()=>{N&&(S.value=N)},w=$=>{const T=S.value.indexOf($);n.multiple?T===-1?S.value.push($):S.value.splice(T,1):T===-1?S.value=[$]:S.value=[],(b.value||!n.poppable&&!n.showFooter)&&E()},P=$=>{C.value=$,a("update:visible",$)},F=()=>{const $=()=>{A(),P(!1)};if(typeof n.beforeClose=="function"){const T=n.beforeClose("close");Mt(T)?T.then(z=>{z!==!1&&$()}).catch(()=>{$()}):T!==!1&&$()}else $()},E=()=>{const $=B(),T=()=>{I($),P(!1)};if(typeof n.beforeClose=="function"){const z=n.beforeClose("confirm",$.value,$.item,$.text);Mt(z)?z.then(M=>{M!==!1&&T()}).catch(()=>{T()}):z!==!1&&T()}else T()},x=()=>{u.value=!0,m.value=0,d.value=[],n.source&&p()},U=()=>{let $=i.title.value??"";r.title&&($=r.title());const T=t.h("view",{class:["fox-actionsheet__header-title"]},[$]),z=t.h(te.Close,{class:["fox-actionsheet__header-icon"],onClick:F});return t.h("view",{class:["fox-actionsheet__header"]},[T,z])},D=()=>{let $=null;if(r.search)$=r.search();else{const T={onSearch:x,placeholder:i.seachPlaceholder.value,disabled:n.disabled,modelValue:f.value,"onUpdate:modelValue":z=>{f.value=z}};$=t.h(Ko,T,{leftin:()=>t.h(te.Search2)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[$])},W=($,T,z,M,L)=>{if(r.optionLabel)return r.optionLabel({text:$,checked:T,disabled:z,subText:M,item:L});const q=[],K=t.h("view",{class:"fox-actionsheet__list-item-text"},[$]);if(q.push(K),M){const j=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[M]);q.push(j)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},q)},H=($,T,z,M)=>{if(r.optionIcon)return r.optionIcon({checked:$,disabled:T,iconSize:z,item:M});if($){if(r.checkedIcon)return r.checkedIcon({disabled:T,item:M});{const L=n.checkedIcon??te.Checked;return t.h(L,{width:z,height:z,class:["fox-actionsheet__list-item-icon"]})}}else{if(r.icon)return r.icon({disabled:T,item:M});{const L=n.icon??te.CheckNormal;return t.h(L,{width:z,height:z,class:["fox-actionsheet__list-item-icon"]})}}},G=()=>{const $=[];for(let T=0;T<d.value.length;T++){const z=d.value[T],M=oo(n,z),L=sr(n,z),q=["fox-actionsheet__list-item"],K={};let j=um(n,z),Z=n.iconSize?se(n.iconSize):null;const O=dm(n,z,T);O&&(j=j||O.disabled,O.class&&q.push(O.class),O.style&&Object.assign(K,O.style)),j=!!(n.disabled||j);const X=S.value.includes(T);j&&q.push("is-disabled"),X&&q.push("is-checked");const Q={class:q,style:K,key:`${T}`,onClick:()=>{j||w(T)}};let ee=[];if(r.option)ee.push(r.option({item:z,checked:X,disabled:j}));else{const oe=W(M,X,j,L,z);ee.push(oe);const le=H(X,j,Z,z);ee.push(le)}const _=t.h("view",Q,ee);$.push(_)}return $},R=()=>{let $=[];if(r.buttons)$=r.buttons();else{const z=t.h(Ie,{type:"primary",block:"block",onClick:E,disabled:n.disabled},{default:()=>i.confirmText.value});$.push(z)}return t.h("view",{class:"fox-actionsheet__footer"},[$])};return $e({search:async($=null,T=!0)=>{h.value=$&&t.toRaw($),t.triggerRef(h),T&&(u.value=!0,m.value=0,d.value=[]),t.nextTick(()=>{p()})},clear:()=>{u.value=!0,m.value=0,d.value=[]},confirm:()=>{E()},cancel:()=>{F()}}),()=>{const $=[];if(n.showHeader){const Z=U();$.push(Z)}if(n.showSearchbar){const Z=D();$.push(Z)}let T=null;if(r.content)T=r.content();else{const Z=G(),O={hasMore:u.value,loadText:i.loadText.value,loadMoreText:i.loadMoreText.value,modelValue:v.value,"onUpdate:modelValue":X=>{v.value=X},onLoadMore:p};T=t.h(Oo,O,{default:()=>Z})}const z={};n.optionsHeight&&(z.height=n.optionsHeight);const M={"fox-actionsheet__list":!0};n.poppable||(M["fox-actionsheet__list--inner"]=!0);const L=t.h("view",{class:M,style:z},[T]);if($.push(L),n.showFooter&&!b.value){const Z=R();$.push(Z)}const q=t.h("view",{class:"fox-actionsheet"},$);if(!n.poppable)return q;const K=["fox-actionsheet__popup"];n.popClass&&K.push(n.popClass);const j={popClass:K.join(" "),visible:C.value,closeable:!1,"onUpdate:visible":P,position:n.position,round:"round",onClickOverlay:F,closeOnClickOverlay:n.closeOnClickOverlay};return t.h(ie,j,{default:()=>q})}}}}const{componentName:Fm,create:Rm,scope:Om}=Y("actionsheet-pane"),Uo=Rm(Lm(Fm,Om)),Km={type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Um(e,o,l,n,a,r,s){return{props:{...ue,...de,...Km,...An},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const d=Ce(t.computed(()=>i.disabled)),m=Ae(t.computed(()=>i.readonly)),{emitEvent:f}=we({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ae.useFoxI18n(o),y=h(i,["placeholder"]),g=t.ref(!1),k=Ee(i,"modelValue"),v=t.ref(""),u=t.computed(()=>Array.isArray(v.value)?v.value.join(i.separator):v.value),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ne(t.computed(()=>i.textAlign),"textAlign"),N=t.computed(()=>{const M={};return S.value&&(M["text-align"]=S.value),M}),C=t.ref(!1),V=()=>{C.value=!0},B=M=>{C.value=M},I=M=>{k.value=M,f("update:modelValue",M)},A=(M,L)=>{f("change",M,L)},w=M=>{let q=M.target.value;g.value=!0,f("focus",q,M)},P=M=>{setTimeout(()=>{g.value=!1},0);let q=M.target.value;i.maxLength&&q.length>Number(i.maxLength)&&(q=q.slice(0,Number(i.maxLength))),f("blur",q,M)},F=M=>{v.value=M,f("update:text",M)},E=t.computed(()=>({[`${p}__append`]:!0})),x=t.computed(()=>ge(i.unit)>0),U=t.computed(()=>ge(i.unit)>0&&!g.value),D=t.computed(()=>({hidden:!U.value})),W=M=>{k.value="",f("update:modelValue","",M),f("change","",M),f("clear","")},H=t.computed(()=>i.clearable&&!d.value&&!m.value),G=t.computed(()=>ge(k.value)>0&&g.value),R=M=>{G.value?W(M):V()},$=t.computed(()=>G.value&&H.value?n:a),T=t.computed(()=>({action:!0})),z=t.ref(null);return $e({search:M=>{z.value&&z.value.search(M)},clear:()=>{z.value&&z.value.clear},confirm:M=>{z.value&&z.value.confirm()},cancel:()=>{z.value&&z.value.cancel()}}),()=>{const M={class:b.value,style:N.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:V,onFocus:w,onBlur:P};s&&(M.disabled=!0);const L=[],q=t.h("input",M);L.push(q);const K=[],j={class:["action-icon"]},Z=t.h($.value,j),O={class:T.value,onClick:R},X=t.h("view",O,{default:()=>[Z]});if(K.push(X),x.value){const Ze=t.h("view",{class:D.value},[i.unit]);K.push(Ze)}const Q={class:E.value},ee=t.h("view",Q,{default:()=>K});L.push(ee);const _={default:()=>L};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const oe=he(i,An);oe.ref=z,oe.class=i.actionsheetProps,oe.disabled=d.value||m.value,oe.visible=C.value,oe["onUpdate:visible"]=B,oe.modelValue=k.value,oe["onUpdate:modelValue"]=I,oe.text=v.value,oe["onUpdate:text"]=F,oe.onChange=A,oe.poppable=!0;const le={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},Te=t.h(r,oe,le);_.hide=()=>[Te];const ve=he(i,de,ue);return t.h(l,ve,_)}}}}const{componentName:Hm,create:jm,scope:Wm}=Y("actionsheet-item"),al=jm(Um(Hm,Wm,be,te.CircleClose,te.ArrowRight,Uo)),$n={modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{componentName:Ym,create:Xm}=Y("input-number"),Qm=Xm({components:{Minus:te.Minus,Plus:te.Plus},props:{...$n},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:o}){const l=t.computed(()=>{const y=Ym;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),n=y=>Number(y).toFixed(Number(e.decimalPlaces)),a=y=>{const g=y.target;o("update:modelValue",g.valueAsNumber,y)},r=(y,g)=>{let k=n(y);o("update:modelValue",k,g),o("change",k,g)},s=(y=Number(e.modelValue))=>y<Number(e.max)&&!e.disabled,i=(y=Number(e.modelValue))=>y>Number(e.min)&&!e.disabled,c=y=>{if(o("reduce",y),i()){let g=Number(e.modelValue)-Number(e.step);r(g,y)}else o("overlimit",y,"reduce")},d=y=>{if(o("add",y),s()){let g=Number(e.modelValue)+Number(e.step);r(g,y)}else o("overlimit",y,"add")},m=y=>{e.disabled||e.readonly||o("focus",y)},f=y=>{if(e.disabled||e.readonly)return;let k=y.target.valueAsNumber;k<Number(e.min)?k=Number(e.min):k>Number(e.max)&&(k=Number(e.max)),r(k,y),o("blur",y)},h=y=>{let g=Number(y);return g<Number(e.min)?g=Number(e.min):g>Number(e.max)&&(g=Number(e.max)),g};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const y=h(e.modelValue);y!==Number(e.modelValue)&&r(y,{})}),{classes:l,change:a,blur:f,focus:m,add:d,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:pe}}}),Gm=["min","max","disabled","readonly","value"];function Zm(e,o,l,n,a,r){const s=t.resolveComponent("Minus"),i=t.resolveComponent("Plus");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:o[0]||(o[0]=(...c)=>e.reduce&&e.reduce(...c))},[t.renderSlot(e.$slots,"left-icon",{},()=>[t.createVNode(s,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxDesc(e.inputWidth),height:e.toPxDesc(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:o[1]||(o[1]=(...c)=>e.change&&e.change(...c)),onBlur:o[2]||(o[2]=(...c)=>e.blur&&e.blur(...c)),onFocus:o[3]||(o[3]=(...c)=>e.focus&&e.focus(...c))},null,44,Gm),t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:o[4]||(o[4]=(...c)=>e.add&&e.add(...c))},[t.renderSlot(e.$slots,"right-icon",{},()=>[t.createVNode(i,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2)],2)}const Qe=J(Qm,[["render",Zm]]);function Jm(e,o,l,n){return{props:{...ue,...de,...$n},emits:["change","update:modelValue"],setup(a,r){const s=Ce(t.computed(()=>a.disabled)),i=Ae(t.computed(()=>a.readonly)),{emitEvent:c}=we({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,m=Ee(a,"modelValue"),f=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const h={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},g={...he(a,$n),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":f},k=t.h(n,g,h),v=[];v.push(k);const u={default:()=>v};u.label=r.slots.default,u.fixedPreTip=r.slots.fixedPreTip,u.fixedTip=r.slots.fixedTip;const p=he(a,de,ue);return p["content-class"]=d,t.h(l,p,u)}}}}const{componentName:_m,create:ep,scope:tp}=Y("inputnumber-item"),rl=ep(Jm(_m,tp,be,Qe)),op={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1}},ir=(e,o)=>o[e.textKey],Vt=(e,o)=>o[e.valueKey],np=(e,o)=>o[e.visibleKey],cr=(e,o)=>o[e.disabledKey],lp=(e,o)=>{const l=o[e.doitKey];return me(l)},ap=(e,o)=>{const l=o[e.numKey];return l==null?null:fe(o[l])},ur=(e,o,l)=>{const n=e.itemOptions;return typeof n=="function"?n(o,l):n||null};function rp(e,o,l,n=!1){return{props:{...op},emits:["update:modelValue","change"],setup(a,{slots:r,emit:s}){t.computed(()=>{const R={};return R[`${e}`]=!0,R});const i=t.computed(()=>{const R={};return R[`${e}__titles`]=!0,R[`${a.direction}`]=!0,a.align==="left"&&(R.left=!0),a.scroll===!0&&(R.scrollable=!0),a.shape&&(R[`${a.shape}`]=!0),R}),c=t.computed(()=>({})),d=t.computed(()=>{if(!a.gutter)return 0;const R=se(a.gutter);return R<=0?0:R}),m=t.ref(a.modelValue);t.watch(()=>a.modelValue,R=>{m.value!==R&&(m.value=R,U(!1))});const f=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),h=t.computed(()=>{const R={};return g.value||(R.display="none"),R}),y=t.ref(),g=t.ref(!1),k=()=>{const R=!g.value;v(R)},v=R=>{const $=R;$?(g.value=$,setTimeout(()=>{f.value["fox-tabs-bar__popup--show"]=!0,f.value["fox-tabs-bar__popup--hide"]=!1},0)):(f.value["fox-tabs-bar__popup--show"]=!1,f.value["fox-tabs-bar__popup--hide"]=!0,y.value?y.value.addEventListener("transitionend",()=>{g.value=!1},{once:!0}):setTimeout(()=>{g.value=!1},0))},u=t.ref(),p=t.ref([]),b=(R,$)=>{p.value[$]=R},S=R=>$=>{b($,R)},N=(R,$)=>{const T=u.value,z=p.value;if(!T||!z||!z[R])return;const M=z[R];let L=0;a.direction==="vertical"?L=M.offsetTop-(T.offsetHeight-M.offsetHeight)/2:L=M.offsetLeft-(T.offsetWidth-M.offsetWidth)/2,C(T,L,$?0:.3,a.direction)},C=(R,$,T,z)=>{let M=0;const L=z==="horizontal"?R.scrollLeft:R.scrollTop,q=T===0?1:Math.round(T*1e3/16);function K(){z==="horizontal"?R.scrollLeft+=($-L)/q:R.scrollTop+=($-L)/q,++M<q&&Le(K)}K()},V=(R,$)=>{const T=Vt(a,R),z={};return z[`${e}__titles-item`]=!0,z.disabled=cr(a,R),z.active=T===m.value,a.shape&&(z[`${a.shape}`]=!0),a.ellipsis&&(z.ellipsis=!0),$&&($.class&&(z[`${$.class}`]=!0),$.disabled===!0&&(z.disabled=$.disabled)),z},B=(R,$)=>{const T={};if(d.value>0){const z=Math.abs(d.value/2);a.direction==="vertical"?(T["margin-top"]=`${z}px`,T["margin-bottom"]=`${z}px`):(T["margin-left"]=`${z}px`,T["margin-right"]=`${z}px`)}return $&&$.style&&Object.assign(T,$.style),T},I=(R,$)=>`${Vt(a,R)??$}`,A=(R,$)=>{const T=Vt(a,R),z={};z[`${e}__popup-item`]=!0,z.disabled=cr(a,R),z.active=T===m.value,a.shape&&(z[`${a.shape}`]=!0);const M=ur(a,R,$);return M&&M.disabled===!0&&(z.disabled=M.disabled),z},w=t.computed(()=>(a.data??[]).filter($=>np(a,$)!==!1)),P=(R,$)=>{const T=Vt(a,R);m.value=T,a.scroll&&N($,!1),s("update:modelValue",T),s("change",R,$)},F=(R,$)=>function(){P(R,$)},E=(R,$)=>{P(R,$),v(!1)},x=(R,$)=>function(){E(R,$)},U=R=>{if(!Array.isArray(a.data)||!a.scroll)return;const $=a.data.findIndex(T=>Vt(a,T)===m.value);$!==-1&&N($,R)};t.watch(()=>a.data,()=>{setTimeout(U,0)}),t.onMounted(()=>{U(!0)});const D=(R,$)=>{if(r.item)return r.item({item:R,index:$});const T=ur(a,R,$),z=[];if(r.text){const K=r.text({item:R,index:$});z.push(K)}else{const K=[];if(T?.doit===!0||lp(a,R)){const X={class:[`${e}__titles-item-tip`,"doit"]},Q=t.h("view",X);K.push(Q)}const j=T?.num??ap(a,R);if(j){let X="";const Q=fe(j);Q>=100?X="99+":X=`${Q}`;const ee={class:[`${e}__titles-item-tip`,"num"]},_=t.h("view",ee,[X]);K.push(_)}const Z={class:`${e}__titles-item-text`};K.push(ir(a,R));const O=t.h("view",Z,K);z.push(O)}const M={class:`${e}__titles-item-line`},L=t.h("view",M);z.push(L);const q={ref:S($),class:V(R,T),style:B(R,T),key:I(R,$),onClick:F(R,$)};return t.h("view",q,z)},W=()=>{const R=r.default?r.default():[];if(R.length===0)for(let T=0;T<w.value.length;T++){const z=w.value[T],M=D(z,T);R.push(M)}const $={ref:u,class:i.value,style:c.value};return t.h("view",$,R)},H=()=>{let R=null;r.navigation?R=r.navigation():R=t.h(l);const $={class:`${e}__navigation`,onClick:k};return t.h("view",$,[R])},G=()=>{const R=[];for(let T=0;T<w.value.length;T++){const z=w.value[T];let M=null;r.popupItem?M=r.popupItem({item:z,index:T}):M=ir(a,z);const L={class:A(z,T),key:I(z,T),onClick:x(z,T)},q=t.h("view",L,[M]);R.push(q)}const $={class:f.value,style:h.value};return t.h("view",$,R)};return()=>{const R=[],$=W();if(R.push($),a.showQuickNavigation){const z=H();R.push(z);const M=G();R.push(M)}const T={class:`${e}`};return t.h("view",T,R)}}}}const{create:sp,componentName:ip,scope:cp}=Y("tabs-bar"),sl=sp(rp(ip,cp,te.MoreH,!1)),Cs=Symbol("TabsStatesKey"),{create:up}=Y("tabs-container"),dp=up({props:{modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"}},emits:["update:modelValue","change"],setup(e,{emit:o}){const l=t.shallowRef([]),n={current:t.ref(e.modelValue??""),direction:t.ref(e.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:m=>{const f={name:m};n.current.value===m&&(f.loaded=!0),l.value.push(f),t.triggerRef(l)},remove:m=>{const f=l.value.findIndex(h=>h.name===m);f!==-1&&l.value.splice(f,1)},isLoaded:m=>{const f=l.value.findIndex(h=>h.name===m);return f!==-1?n.current.value?l.value[f].loaded??!1:f===0:!1}};t.provide(Cs,n);const a=m=>{const f=l.value.findIndex(h=>h.name===m);f!==-1&&(l.value[f].loaded=!0,t.triggerRef(l))};t.watch([()=>e.modelValue,()=>e.direction],([m,f])=>{n.current.value!==m&&(n.current.value=m??"",a(m??"")),n.direction.value!==f&&(n.direction.value=f)});const r=t.ref(null),s=t.ref(null),i=t.computed(()=>({"fox-tabs-container":!0,[`${e.direction}`]:!0})),c=t.computed(()=>{const m={},f=l.value.length;if(f<=0)return m;const h=l.value.findIndex(y=>y.name===n.current.value);return n.direction.value==="vertical"?n.tabHeight.value>0&&(m.height=`${f*n.tabHeight.value}px`,h!==-1&&(m.transform=`translate(0, -${h*n.tabHeight.value}px)`)):n.tabWidth.value>0&&(m.width=`${f*n.tabWidth.value}px`,h!==-1&&(m.transform=`translate(-${h*n.tabWidth.value}px, 0)`)),m});let d=null;return t.onMounted(()=>{if(!r.value)return;const m=()=>{const f=No(r.value);n.tabWidth.value=f.width,n.tabHeight.value=f.height};window.ResizeObserver&&(d=new window.ResizeObserver(m),d.observe(r.value)),m()}),t.onBeforeUnmount(()=>{d&&(d.disconnect(),d=null)}),{tabsRef:r,panesRef:s,classes:i,panesStyles:c}}});function fp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"tabsRef"},[t.createElementVNode("view",{class:"fox-tabs-container__panes",style:t.normalizeStyle(e.panesStyles),ref:"panesRef"},[t.renderSlot(e.$slots,"default")],4)],2)}const il=J(dp,[["render",fp]]),{create:mp}=Y("tabs-pane"),pp=mp({components:{Loading:te.Loading},props:{paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null}},setup(e,{emit:o}){const l=t.inject(Cs);t.onMounted(()=>{l.add(e.paneKey)}),t.onBeforeUnmount(()=>{l.remove(e.paneKey)});const n=t.computed(()=>{const r={};return l.direction.value==="vertical"&&l.tabHeight.value>0?r.height=`${l.tabHeight.value}px`:l.tabWidth.value>0&&(r.width=`${l.tabWidth.value}px`),r}),a=t.computed(()=>e.loaded!=null?me(e.loaded):l.isLoaded(e.paneKey));return{styles:n,isLoaded:a}}}),hp={class:"fox-tabs-pane__empty"},gp=t.createElementVNode("view",{class:"fox-tabs-pane__empty-text"},"loading",-1);function yp(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:"fox-tabs-pane",style:t.normalizeStyle(e.styles)},[e.isLoaded?t.renderSlot(e.$slots,"default",{key:0}):t.renderSlot(e.$slots,"empty",{key:1},()=>[t.createElementVNode("view",hp,[t.createVNode(s,{class:"fox-tabs-pane__empty-icon"}),gp])])],4)}const cl=J(pp,[["render",yp]]),vp={direction:{type:[String],default:"horizontal"},mode:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function kp(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function dr(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function fr(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function bp(e,o){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?o[e.visibleKey]:o.visible??null}function en(e,o){return typeof e.statusKey=="string"&&e.statusKey.length>0?o[e.statusKey]:o.statusKey??null}function tn(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let Sp=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await Reflect.apply(l,null,[n]);const a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await Reflect.apply(a,null,[l,n]))}};function Cp(){const e=t.getCurrentInstance();return new Sp(e.proxy)}function wp(e,o,l,n){return{props:{...vp},emits:["update:modelValue","change","loaded-data"],setup(a,{slots:r,emit:s}){const i=e,c=Cp(),d=t.ref([]),m=t.computed(()=>d.value.filter($=>bp(a,$)!==!1)),f=t.ref(-1),h=()=>{const $=a.modelValue,T=m.value.findIndex(z=>dr(a,z)===$);f.value!==T&&(f.value=T,a.scroll&&G(T,!1))};t.watch([()=>a.modelValue,m],()=>{h()});const y=$=>f.value===$,g=$=>{if($<0&&$>=m.value.length)return!1;const T=m.value[$],M=(tn(a,T,$)??{}).status??en(a,T);return y($)||M},k=t.computed(()=>{const $={[i]:!0};return a.mode?$[`is-${a.mode}`]=!0:a.direction&&($[`is-${a.direction}`]=!0),a.scroll&&($["is-scroll"]=!0),$}),v=t.computed(()=>({})),u=($,T,z,M)=>{const L={[`${i}__step`]:!0};return M&&(L[`${M}`]=!0),$===f.value?L["is-active"]=!0:T==="done"?L["is-done"]=!0:T==="error"?L["is-error"]=!0:T==="half"?L["is-half"]=!0:z?L["is-disabled"]=!0:L["is-normal"]=!0,L},p=($,T={})=>{const z={...T};return $===m.value.length-1?z.flex="0 0 auto":a.step?a.direction==="vertical"?z.height=a.step:z.width=a.step:z.flex="1 1 100%",z},b=($,T)=>{let z={};if(T<m.value.length-1){const M=T+1;g(T)&&g(M)?a.direction==="vertical"?z.height="100%":z.width="100%":z.opacity="0"}return z},S=$=>m.value.length-1===$,N=($,T)=>{if(a.clickNavigatePolicy==="disabled"||(a.clickNavigatePolicy==="only-back"||a.clickNavigatePolicy==="only-back-reset")&&T>f.value||f.value===T)return;const z=f.value,M=T;f.value=T,a.scroll&&G(T,!1);const L=dr(a,$);s("update:modelValue",L);const q={fromIndex:z,currentIndex:M,item:$,items:m.value,clickNavigatePolicy:a.clickNavigatePolicy};s("change",L,q)},C=t.ref(!0),V=async($,T)=>{try{const z=await c.load("stesbar",$,T);Array.isArray(z)&&(d.value=z),C.value=!1}catch(z){console.error("[FoxUI] Load StepsBar Data Fail",z),d.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>a.data,()=>a.params],async([$,T])=>{$&&V($,T)},{immediate:!0});const B=($,T,z,M)=>{let L=null;if(r.icon)L=r.icon({item:$,index:T,status:z});else if(z==="done"){const K={};a.iconSize&&(K.width=a.iconSize,K.height=a.iconSize);const j=a.icon??l;L=t.h(j,K)}else L=t.h("span",{},[`${T+1}`]);const q={class:"fox-steps-bar__icon",onClick:()=>{M||N($,T)}};return t.h("view",q,[L])},I=($,T,z)=>{const M=t.h("i",{class:"fox-steps-bar__line-inner",style:b($,T)});return t.h("view",{class:"fox-steps-bar__line"},[M])},A=()=>{let $=null;if(r.markIcon)$=r.markIcon();else{const z={};a.iconSize&&(z.width=a.markIconSize,z.height=a.markIconSize);const M=a.markIcon??n;$=t.h(M,z)}return t.h("view",{class:"fox-steps-bar__mark"},[$])},w=($,T,z,M)=>{const L=[];if(!S(T)){const j=I($,T);L.push(j)}const q=B($,T,z,M);L.push(q);const K={class:"fox-steps-bar__head"};return t.h("view",K,L)},P=($,T,z,M)=>{let L=null;r.main?L=r.main({item:$,index:T,status:z}):L=kp(a,$);const q={class:"fox-steps-bar__main",onClick:()=>{M||N($,T)}};return t.h("view",q,[L])},F=($,T,z)=>{let M=null;if(r.sub){M=r.sub({item:$,index:T,status:z});const L={class:"fox-steps-bar__sub"};return t.h("view",L,[M])}return null},E=($,T)=>{const z=tn(a,$,T)??{},M=z.status??en(a,$);let L=fr(a,$);z.disabled===!0&&(L=!0),a.disabled===!0&&(L=!0);const q=[],K=B($,T,M,L);K&&q.push(K);const j=P($,T,M,L);j&&q.push(j);const Z=I($,T);Z&&q.push(Z);const O=t.h("view",{class:"fox-steps-bar__head"},q),X=z.class,Q=z.style??{},ee={ref:H(T),class:u(T,M,L,X),style:p(T,Q)};return t.h("view",ee,[O])},x=($,T)=>{const z=tn(a,$,T)??{},M=z.status??en(a,$);let L=fr(a,$);z.disabled===!0&&(L=!0),a.disabled===!0&&(L=!0);const q=[],K=a.layout;for(let X of K)if(X==="head"){const Q=w($,T,M,L);q.push(Q)}else if(X==="main"){const Q=P($,T,M,L);q.push(Q)}else if(X==="sub"){const Q=F($,T,M);q.push(Q)}else if(X==="mark"){const Q=A();q.push(Q)}const j=z.class,Z=z.style??{},O={ref:H(T),class:u(T,M,L,j),style:p(T,Z)};return t.h("view",O,q)},U=t.ref(),D=t.ref([]),W=($,T)=>{D.value[T]=$},H=$=>T=>{W(T,$)},G=($,T)=>{const z=U.value,M=D.value;if(!z||!M||!M[$])return;const L=M[$];let q=0;a.direction==="vertical"?q=L.offsetTop-(z.offsetHeight-L.offsetHeight)/2:q=L.offsetLeft-(z.offsetWidth-L.offsetWidth)/2,R(z,q,T?0:.3,a.direction)},R=($,T,z,M)=>{let L=0;const q=M==="horizontal"?$.scrollLeft:$.scrollTop,K=z===0?1:Math.round(z*1e3/16);function j(){M==="horizontal"?$.scrollLeft+=(T-q)/K:$.scrollTop+=(T-q)/K,++L<K&&Le(j)}j()};return()=>{const $=[];if(a.mode==="simple")for(let z=0;z<m.value.length;z++){const M=m.value[z],L=E(M,z);$.push(L)}else for(let z=0;z<m.value.length;z++){const M=m.value[z],L=x(M,z);$.push(L)}const T={ref:U,class:k.value,style:v.value};return t.h("view",T,$)}}}}const{componentName:Np,create:Bp,scope:Vp}=Y("steps-bar"),ul=Bp(wp(Np,Vp,te.Checklist,te.ArrowRight)),mr=10;function Ap(e,o){return e>o&&e>mr?"horizontal":o>e&&o>mr?"vertical":""}function $p(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},o=()=>e.direction==="vertical",l=()=>e.direction==="horizontal",n=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const i=s.touches[0];e.deltaX=i.clientX-e.startX,e.deltaY=i.clientY-e.startY,e.moveX=i.clientX,e.moveY=i.clientY}else e.deltaX=s.clientX-e.startX,e.deltaY=s.clientY-e.startY,e.moveX=s.clientX,e.moveY=s.clientY;e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=Ap(e.offsetX,e.offsetY))},start:s=>{if(n(),s.touches){const i=s.touches[0];e.startX=i.clientX,e.startY=i.clientY}else e.startX=s.clientX,e.startY=s.clientY;e.startTime=Date.now()},reset:n,isVertical:o,isHorizontal:l,state:e}}function Tp(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Ep(e){e.stopPropagation()}function Dp(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&Ep(e)}class xp{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(o,l){this.startMove=o,this.updateMove=l,this.isTouch=Tp()}open(o){Array.isArray(o)||(o=[o]),this.els=o;const l=$p(),n=(a,r,s,i)=>{this.updateMove({x:a,y:r})};this.touchstart=a=>{this.moving||(l.start(a),this.startMove({x:l.state.startX,y:l.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=a=>{this.moving&&(l.move(a),Dp(a,!0),n(l.state.deltaX,l.state.deltaY))},this.touchend=()=>{n(l.state.deltaX,l.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),l.reset(),this.moving=!1},this.els.forEach(a=>{this.touchstart&&a.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(o=>{this.touchstart&&o.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Ip(e,o){return new xp(e,o)}const qp={top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},draggable:{type:[Boolean]}},Mp=(e,o,l,n=!1)=>({props:{...qp},emits:["click"],setup(a,{slots:r,emit:s}){const i=t.reactive({top:a.top,right:a.right,bottom:a.bottom,left:a.left}),c=t.computed(()=>({[`${e}`]:!0})),d=t.computed(()=>{const p={};return ce(i.top)||(p.top=i.top),ce(i.right)||(p.right=i.right),ce(i.bottom)||(p.bottom=i.bottom),ce(i.left)||(p.left=i.left),ce(a.width)||(p.width=a.width),ce(a.height)||(p.height=a.height),ce(a.color)||(p.color=a.color),ce(a.background)||(p.background=a.background),p}),m=t.computed(()=>({[`${e}__icon`]:!0})),f=()=>{s("click")},h=t.ref(null),y=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},g={x:0,y:0},u=Ip(p=>{if(!h.value)return;const b=h.value;y(),i.left=b.offsetLeft,i.top=b.offsetTop,b.style.left=`${i.left}px`,b.style.top=`${i.top}px`,b.style.right=null,b.style.bottom=null,g.x=i.left,g.y=i.top},p=>{if(!h.value)return;const b=h.value;y(),i.left=g.x+p.x,i.top=g.y+p.y,b.style.left=`${i.left}px`,b.style.top=`${i.top}px`});return t.onMounted(()=>{if(a.draggable&&h.value){const p=[h.value];u.open(p)}}),t.onBeforeUnmount(()=>{a.draggable&&h.value&&u.close()}),()=>{let p=[];const b=typeof r.default=="function"?r.default():[];if(b&&b.length>0)p=b;else{const N=t.h(l,{class:m.value});p.push(N)}const S={ref:N=>{h.value=N},class:c.value,style:d.value,onClick:f};return t.h("view",S,p)}}}),{componentName:zp,create:Pp,scope:Lp}=Y("floating-button"),dl=Pp(Mp(zp,Lp,te.Uploader,!1)),Fp={width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},Rp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Op(e,o,l){return{props:{...Fp},setup(n,{attrs:a,slots:r}){const{toLocaleRefs:s}=ae.useFoxI18n(o),i=s(n,["confirmText","cancelText"]),c=e,d=t.ref(!0),m=S=>{d.value=S},f=S=>{if(typeof n.unmount=="function")try{n.unmount()}catch(N){console.error(N)}if(typeof n.callback=="function")try{n.callback(S)}catch(N){console.error(N)}},h=()=>{f("confirm")},y=()=>{f("cancel")},g=()=>{f("close")},k=(S,N)=>Rp(S)?(N.src=S,t.h("img",N)):typeof S=="string"?(Array.isArray(N.class)?N.class.push(S):N.class&&typeof N.class=="object"?N[`${S}`]=!0:typeof N.class=="string"?N.class=`${N.class}, ${S}`:N.class=S,t.h(n.tag,N)):t.h(S,N),v=()=>{const S=[];if(n.icon){const C={class:[`${c}__header-icon`]},V=k(n.icon,C);S.push(V)}if(n.title){const C=t.h("view",{class:`${c}__header-title`},[n.title]);S.push(C)}if(n.showClose&&n.closeIcon){const C={class:[`${c}__header-close-icon`],onClick:g},V=k(n.closeIcon,C);S.push(V)}const N={class:[`${c}__header`]};return t.h("view",N,S)},u=(S,N)=>{const C=[];if(N){const B={class:`${c}__group-title`},I=t.h("view",B,[N]);C.push(I)}if(S){const B=[];Array.isArray(S)||(S=[S]);for(let I of S){const A={class:`${c}__group-row`,innerHTML:I},w=t.h("view",A);B.push(w)}if(B.length>0){const I={class:`${c}__group-rows`},A=t.h("view",I,B);C.push(A)}}if(C.length===0)return null;const V={class:`${c}__group`};return t.h("view",V,C)},p=()=>{const S=[];if(typeof n.message=="string")S.push(n.message);else if(Array.isArray(n.message))for(let C of n.message)if(typeof C=="string"){const V=u(C);S.push(V)}else{const V=u(C.content,C.title);S.push(V)}else if(typeof n.message=="function"){const C=n.message();S.push(C)}else{const C=n.message;S.push(C)}const N={class:`${c}__body`};return t.h("view",N,S)},b=()=>{const S=[];if(n.showCancelButton){const C={class:[`${c}__footer-button`],style:{},onClick:y};n.cancelButtonClass&&C.class.push(n.cancelButtonClass),n.cancleButtonStyle&&typeof n.cancleButtonStyle=="object"&&Object.assign(C.style,n.cancleButtonStyle);const V=t.h("button",C,[n.cancelButtonText??i.cancelText.value]);S.push(V)}if(n.showConfirmButton){const C={class:[`${c}__footer-button`],style:{},onClick:h};n.confirmButtonClass&&C.class.push(n.confirmButtonClass),n.confirmButtonStyle&&typeof n.confirmButtonStyle=="object"&&Object.assign(C.style,n.confirmButtonStyle);const V=t.h("button",C,[n.confirmButtonText??i.confirmText.value]);S.push(V)}if(S.length===0)return null;const N={class:`${c}__footer`};return t.h("view",N,S)};return()=>{const S=[],N=v();N&&S.push(N);const C=p();C&&S.push(C);const V=b();V&&S.push(V);const B={class:{[`${c}`]:!0,[`${c}--${n.type||"info"}`]:!0}},I=t.h("view",B,S),A=[`${c}__popup`];n.popClass&&A.push(n.popClass);const w={};n.width&&(w.width=typeof n.width=="number"?`${n.width}px`:n.width),n.height&&(w.height=typeof n.height=="number"?`${n.height}px`:n.height);const P={popClass:A.join(" "),style:w,visible:d.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":m,position:n.position,round:"round",onClickOverlay:g,closeOnClickOverlay:n.closeOnClickOverlay};return t.h(l,P,{default:()=>I})}}}}const{componentName:Kp,create:Up,scope:Hp}=Y("messagebox"),jp=Up(Op(Kp,Hp,ie)),Wp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M82.5121%201.93968L81.7498%206.07825C81.6498%206.6214%2081.1284%206.98064%2080.5853%206.8806C80.4326%206.85251%2080.2886%206.78925%2080.1646%206.69578L77.1586%204.43061C76.7175%204.09823%2076.6294%203.47123%2076.9618%203.03016C77.0552%202.90617%2077.1762%202.80562%2077.3153%202.73655L81.0834%200.863097C81.5779%200.617235%2082.1782%200.818843%2082.4241%201.31339C82.5204%201.50712%2082.5512%201.72688%2082.5121%201.93968Z'%20fill='%23FFD1C9'%20%3e%3c/path%3e%3cpath%20d='M3.08218%20102.2L6.53454%2094.2358C6.75419%2093.7291%207.34251%2093.4968%207.84925%2093.7164C7.99216%2093.7778%208.11815%2093.872%208.21791%2093.9909L13.2085%2099.9384C13.5635%20100.361%2013.5081%20100.992%2013.0852%20101.347C12.9665%20101.447%2012.8261%20101.518%2012.675%20101.554L4.23203%20103.571C3.69484%20103.699%203.15538%20103.367%203.02699%20102.83C2.97674%20102.62%202.99607%20102.399%203.08218%20102.2Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23FF5959'%20%3e%3c/circle%3e%3cpath%20d='M59.935%2049.6213C61.3827%2051.069%2061.3827%2053.4162%2059.935%2054.864L45.935%2068.864C44.4873%2070.3117%2042.1401%2070.3117%2040.6924%2068.864C39.2447%2067.4162%2039.2447%2065.069%2040.6924%2063.6213L54.6924%2049.6213C56.1401%2048.1736%2058.4873%2048.1736%2059.935%2049.6213Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3cpath%20d='M40.6924%2049.6213C39.2447%2051.069%2039.2447%2053.4162%2040.6924%2054.864L54.6924%2068.864C56.1401%2070.3117%2058.4873%2070.3117%2059.935%2068.864C61.3827%2067.4162%2061.3827%2065.069%2059.935%2063.6213L45.935%2049.6213C44.4873%2048.1736%2042.1401%2048.1736%2040.6924%2049.6213Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%23FFD1C9'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L102%20110L102%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Yp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cpath%20d='M8%2087L8%2095C8%2095.5523%207.55228%2096%207%2096C6.44772%2096%206%2095.5523%206%2095L6%2087L2%2087C1.44772%2087%201%2086.5523%201%2086C1%2085.4477%201.44772%2085%202%2085L6%2085L6%2082C6%2081.4477%206.44772%2081%207%2081C7.55228%2081%208%2081.4477%208%2082L8%2085L12%2085C12.5523%2085%2013%2085.4477%2013%2086C13%2086.5523%2012.5523%2087%2012%2087L8%2087Z'%20fill-rule='evenodd'%20fill='%2396CEFF'%20%3e%3c/path%3e%3cpath%20d='M89%205L89%2010C89%2010.5523%2088.5523%2011%2088%2011C87.4477%2011%2087%2010.5523%2087%2010L87%205L85%205C84.4477%205%2084%204.55228%2084%204C84%203.44772%2084.4477%203%2085%203L87%203L87%201C87%200.447715%2087.4477%200%2088%200C88.5523%200%2089%200.447715%2089%201L89%203L91%203C91.5523%203%2092%203.44772%2092%204C92%204.55228%2091.5523%205%2091%205L89%205Z'%20fill-rule='evenodd'%20fill='%23BDE2FF'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23237FFA'%20%3e%3c/circle%3e%3crect%20x='47.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%2396CEFF'%20%3e%3c/rect%3e%3crect%20x='47.5'%20y='66'%20width='7'%20height='7'%20rx='4'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3c/svg%3e",Xp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='105'%20viewBox='0%200%20102%20105'%20fill='none'%3e%3cpath%20d='M7%2076C7.55228%2076%208%2076.4477%208%2077L7.999%2079.999L12%2080C12.5523%2080%2013%2080.4477%2013%2081C13%2081.5523%2012.5523%2082%2012%2082L7.999%2081.999L8%2090C8%2090.5523%207.55228%2091%207%2091C6.44772%2091%206%2090.5523%206%2090L5.999%2081.999L2%2082C1.44772%2082%201%2081.5523%201%2081C1%2080.4477%201.44772%2080%202%2080L5.999%2079.999L6%2077C6%2076.4477%206.44772%2076%207%2076Z'%20fill='%2338D677'%20%3e%3c/path%3e%3cpath%20d='M75%201.72421e-32C75.5523%20-1.01453e-16%2076%200.447715%2076%201L76%202.999L78%203C78.5523%203%2079%203.44772%2079%204C79%204.55228%2078.5523%205%2078%205L76%204.999L76%2010C76%2010.5523%2075.5523%2011%2075%2011C74.4477%2011%2074%2010.5523%2074%2010L74%204.999L72%205C71.4477%205%2071%204.55228%2071%204C71%203.44772%2071.4477%203%2072%203L74%202.999L74%201C74%200.447715%2074.4477%201.01453e-16%2075%201.72421e-32Z'%20fill='%238BF0AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='54'%20r='28'%20fill='%2338D677'%20%3e%3c/circle%3e%3cpath%20d='M36.8787%2051.8786C38.3265%2050.4309%2040.6736%2050.4309%2042.1213%2051.8786L50.1214%2059.8786C51.5691%2061.3263%2051.5691%2063.6735%2050.1214%2065.1212C48.6737%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212L36.8787%2057.1212C35.431%2055.6735%2035.431%2053.3263%2036.8787%2051.8786Z'%20fill='%23B3F2C6'%20%3e%3c/path%3e%3cpath%20d='M64.1214%2045.8786C65.5691%2047.3263%2065.5691%2049.6735%2064.1214%2051.1212L50.1213%2065.1212C48.6736%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212C43.431%2063.6735%2043.431%2061.3263%2044.8787%2059.8786L58.8788%2045.8786C60.3265%2044.4309%2062.6737%2044.4309%2064.1214%2045.8786Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='14.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='101.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='25'%20r='7'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3c/svg%3e",Qp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='101'%20height='110'%20viewBox='0%200%20101%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M81.512%201.93968L80.7498%206.07825C80.6498%206.6214%2080.1284%206.98064%2079.5852%206.8806C79.4326%206.85251%2079.2886%206.78925%2079.1645%206.69578L76.1585%204.43061C75.7175%204.09823%2075.6293%203.47123%2075.9617%203.03016C76.0552%202.90617%2076.1761%202.80562%2076.3152%202.73655L80.0833%200.863097C80.5779%200.617235%2081.1781%200.818843%2081.424%201.31339C81.5203%201.50712%2081.5512%201.72688%2081.512%201.93968Z'%20fill='%23FEFAE0'%20%3e%3c/path%3e%3cpath%20d='M2.08224%20102.2L5.5346%2094.2358C5.75425%2093.7291%206.34257%2093.4968%206.84931%2093.7164C6.99222%2093.7778%207.11822%2093.872%207.21798%2093.9909L12.2086%2099.9384C12.5636%20100.361%2012.5082%20100.992%2012.0853%20101.347C11.9666%20101.447%2011.8261%20101.518%2011.675%20101.554L3.23209%20103.571C2.6949%20103.699%202.15544%20103.367%202.02705%20102.83C1.97681%20102.62%201.99613%20102.399%202.08224%20102.2Z'%20fill='%23FEE789'%20%3e%3c/path%3e%3ccircle%20cx='50'%20cy='59'%20r='28'%20fill='%23FAB007'%20%3e%3c/circle%3e%3crect%20x='46.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%23FEE789'%20%3e%3c/rect%3e%3crect%20x='46.5'%20y='66'%20width='7'%20height='7'%20rx='3.5'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='84.5'%20cy='106.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='94'%20cy='30'%20r='7'%20fill='%23FEE789'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L101%20110L101%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Gp=new Do,Zp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Jp=e=>{let o=document.body,l=e.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):l&&(o=e.teleport));const n=document.createElement("view"),a=`messagebox-${Gp.get()}`;n.id=a,n.classList.add("fox-messagebox__root"),e.zIndex&&(n.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const s=document.querySelector(`#${a}`);s&&s.parentNode?.removeChild(s)};const r=t.createVNode(jp,e);o.appendChild(n),t.render(r,n)},tt={show:(e,o,l,n)=>{const a={...Zp};o&&!Array.isArray(o)&&typeof o=="object"?Object.assign(a,o):(o&&(a.message=o),l&&typeof l=="object"?Object.assign(a,l):(typeof l=="string"&&(a.title=l),n&&typeof n=="object"?Object.assign(a,n):typeof n=="string"&&(a.type=n)));const r=a.type??"info";return a.icon||(r==="success"?a.icon=Xp:r==="warning"?a.icon=Qp:r==="error"?a.icon=Wp:a.icon=Yp),e==="alert"?(a.showCancelButton=!1,a.showConfirmButton=!0):e==="confirm"&&(a.showCancelButton=!0,a.showConfirmButton=!0),a.showClose&&!a.closeIcon&&(a.closeIcon=te.Close),new Promise((s,i)=>{const c=a.callback;a.callback=d=>{if(typeof c=="function")try{c(d)}catch(m){console.error(m)}s({action:d})},Jp(a)})},alert:(e,o,l)=>tt.show("alert",e,o,l),confirm:(e,o,l)=>tt.show("confirm",e,o,l),install(e){e.config.globalProperties.$alert=tt.alert,e.config.globalProperties.$confirm=tt.confirm}},_p=(e,o,l)=>{o=o??{bubbles:!1,cancelable:!1,detail:void 0};const n=document.createEvent("Events");let a=!0,r=!0;for(let i in o)i==="bubbles"?a=!!o[i]:i==="cancelable"?r=!!o[i]:n[i]=o[i];n.initEvent(e,a,r),(l??document).dispatchEvent(n)},eh=new Do,th=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),oh=e=>`${e}-${eh.get()}`,nh=Symbol.for("InnerPageScopeKey"),lh=Symbol.for("PageWrapperKey"),ah="FoxLeave",rh="FoxLeaveEnd",sh={width:{type:[String,Number]},height:{type:[String,Number]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!0},showDelay:{type:Number,default:10},showClose:{type:Boolean,default:!0},closeIcon:{type:Object},showHeader:{type:Boolean,default:!1},popClass:{type:String},popStyle:{type:Object},position:{type:String,default:"center"},mode:{type:String}};function ih(e,o,l,n){return{props:{...ze,...sh},emits:["update:visible"],setup(a,{attrs:r,slots:s,emit:i}){t.provide(nh,!0);const c={};t.provide(lh,c);const d=C=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),m=()=>{d()},f=e,h=C=>{y.value=C,i("update:visible",C)},y=t.ref(!1),g=(C,V)=>th(C)?(V.src=C,t.h("img",V)):typeof C=="string"?(Array.isArray(V.class)?V.class.push(C):V.class&&typeof V.class=="object"?V[`${C}`]=!0:typeof V.class=="string"?V.class=`${V.class}, ${C}`:V.class=C,t.h(a.tag,V)):t.h(C,V),k=()=>{if(!a.showHeader)return null;const C=[];if(s.header){const B=s.header();C.push(B)}else if(a.title){const B=t.h("view",{class:`${f}__header-title`},[a.title]);C.push(B)}if(C.length===0)return null;const V={class:[`${f}__header`]};return t.h("view",V,C)},v=()=>{if(!a.showClose)return null;const C={class:[`${f}__close-icon`],onClick:m},V=a.closeIcon??n;return g(V,C)};let u=null;const p=C=>{_p(rh,{},u)},b=oh(e),S=()=>{h(!0)},N=()=>{if(!u)return;const C=u.querySelector(".fox-overlay");C&&(C.classList.add("overlay-fade-leave-active"),C.classList.add("overlay-fade-leave-to"));const V=u.querySelector(".fox-popup");V&&(V.classList.add(`fox-popup-slide-${a.position}-leave-active`),V.classList.add(`fox-popup-slide-${a.position}-leave-to`),V.addEventListener("animationend",p,{once:!0}),V.addEventListener("transitionend",p,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{u=document.querySelector(`.${b}`),u?.addEventListener(ah,N,{once:!0}),S()}),()=>{const C=[],V=k();V&&C.push(V);const B=v();B&&C.push(B);const I=s.default?s.default():[];Reflect.apply([].push,C,I);const A={[`${f}`]:!0};a.mode&&(A[`${f}--${a.mode}`]=!0);const w={class:A},P=t.h("view",w,C),F=[`${f}__popup`,b];a.popClass&&F.push(a.popClass),a.position&&F.push(`${f}__popup--${a.position}`);const E={};a.width&&(E.width=typeof a.width=="number"?`${a.width}px`:a.width),a.height&&(E.height=typeof a.height=="number"?`${a.height}px`:a.height);const U={...he(a,ze),popClass:F.join(" "),style:E,visible:y.value,teleportDisable:!0,closeable:!1,position:a.position,closeOnClickOverlay:a.closeOnClickOverlay,onClickOverlay:m,"onUpdate:visible":h},D=t.h(l,U,{default:()=>P});return t.h("div",{class:[`${f}__root`,b]},[D])}}}}const{componentName:ch,create:uh,scope:dh}=Y("popup-wrapper"),fl=uh(ih(ch,dh,ie,te.Close));function fh(e,o){const l=document.createRange();l.setStart(e,0),l.setEnd(e,e.childNodes.length);const n=l.getBoundingClientRect().width;if(n>0){o(n);return}e.classList.add("is-selectable"),setTimeout(()=>{l.setStart(e,0),l.setEnd(e,e.childNodes.length);const a=l.getBoundingClientRect().width;e.classList.remove("is-selectable"),o(a)},500)}const mh={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1,default:!0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function ph(e,o,l=!1){return{props:{...mh},emits:["click"],setup(n,a){const r=t.ref(!0),s=t.ref(null),i=t.computed(()=>{const y={[`${e}`]:!0,"is-truncated":n.truncated};return n.type&&(y[`${e}--${n.type??"default"}`]=!0),n.size&&(y[`${e}--${n.size}`]=!0),y}),c=t.computed(()=>{const y={},g=n.textColor??n.color;return g&&(y.color=g),y}),d=y=>{if(y&&me(n.showOverflowTooltip)){const g=y.clientWidth;fh(y,k=>{r.value=k<=g})}};let m=null;t.onMounted(()=>{if(!me(n.showOverflowTooltip))return;const y=s.value;d(y),y&&window.ResizeObserver&&(m=new window.ResizeObserver(()=>{d(y)}),m.observe(y))}),t.onUnmounted(()=>{m?.disconnect()});const f=(y,g)=>{let k=null;if(typeof n.highlightFilter=="string"&&n.highlightFilter.length>0){const v=n.highlightFilter;if(y.indexOf(v)!==-1){const p=y.replace(new RegExp(v,"g"),`<span>${v}</span>`);g.innerHTML=p,g.class["is-highlight"]=!0,k=t.h(n.tag,g)}}else if(typeof n.highlightFilter=="function"){const v=n.highlightFilter(y);v&&(g.innerHTML=v,g.class["is-highlight"]=!0,k=t.h(n.tag,g))}return k},h=y=>{a.emit("click",y)};return()=>{const y={onClick:h,class:i.value,style:c.value,ref:s};let g=null;if(me(n.numberFormat)&&typeof a.slots.default=="function"){const p=a.slots.default();if(Array.isArray(p)&&p.length===1){const b=p[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const S=fe(n.digits),N=fe(n.decimalLength),C=me(n.autoPadding);let V=`${p[0].children}`,B=V.split("").reverse().join("");B=po(B,N,C,S,n.separator),V=B.split("").reverse().join(""),n.highlightFilter!==void 0&&(g=f(V,y)),g||(y.innerHTML=V,g=t.h(n.tag,y))}}}else{if(n.highlightFilter!==void 0&&typeof a.slots.default=="function"){const p=a.slots.default();if(Array.isArray(p)&&p.length===1){const b=p[0].type.toString();if(b==="Symbol(Text)"||b==="Symbol(v-txt)"){const S=`${p[0].children}`;g=f(S,y),g||(y.innerHTML=S,g=t.h(n.tag,y))}}}g||(g=t.h(n.tag,y,{default:a.slots.default}))}if(!n.mark&&!n.icon&&!a.slots.mark)return g;let v=null;if(n.icon){const p={[`${e}__mark-wrap`]:!0};n.type&&(p[`${e}__mark-wrap--${n.type}`]=!0);const b={},S=n.color;S&&(b.color=S);const N={class:p,style:b};v=t.h("view",N,t.h(n.icon))}else if(a.slots.mark){const p={[`${e}__mark-wrap`]:!0};n.type&&(p[`${e}__mark-wrap--${n.type}`]=!0);const b={},S=n.color;S&&(b.color=S);const N={class:p,style:b};v=t.h("view",N,{default:a.slots.mark})}else{const p={[`${e}__mark`]:!0};n.type&&(p[`${e}__mark--${n.type??"default"}`]=!0);const b={},S=n.color;S&&(b["background-color"]=S);const N={class:p,style:b};v=t.h("view",N)}const u={class:{"fox-text__wrap":!0,"text-left":n.textPosition==="left","text-right":n.textPosition==="right"}};return t.h("view",u,[v,g])}}}}const{componentName:hh,create:gh,scope:yh}=Y("text"),ml=gh(ph(hh,yh,!1));function vh(e,o,l,n,a){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=o[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[a]){let c=o;for(let d=0;c&&d<r.length;d++){let m=r[d],f=c.find(h=>h[n]===m);if(!f)break;s.push(f[l])}return s}if(Array.isArray(i))for(let c=0;c<o.length&&c<r.length;c++){let d=o[c],m=r[c];const f=d.find(h=>h[n]===m);if(!f)break;s.push(f[l])}else{let c=o;for(let d=0;c&&d<r.length;d++){let m=r[d],f=c.find(h=>h[n]===m);if(!f)break;s.push(f[l]),c=f[a]}}return s}class kh{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const a=Ge(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(Be(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}}function bh(){const e=t.getCurrentInstance();return new kh(e.proxy)}const Sh={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Ch(e,o,l=!1){return{props:{...Sh},setup(n,{attrs:a,slots:r}){const s=bh(),i=t.ref([]);t.watch([()=>n.source,()=>n.params],async([m,f])=>{i.value=await s.load(n.sourceType,m,f)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let m=vh(n.modelValue,i.value,n.textKey,n.valueKey,n.childrenKey);return m.length==0?n.emptyText??"":m.length===1?n.optionType=="item"?`${n.modelValue}${n.separator}${m[0]}`:m[0]:m.join(n.separator)}),d=n.resolveTag?t.resolveComponent(n.tag):n.tag;return()=>{const m={...a};return r.default?r.default({text:c.value,value:n.modelValue}):n.resolveTag?n.emptyText!==void 0&&n.emptyText===c.value?t.h(n.emptyTag??"span",{...a,class:n.emptyClass},c.value):t.h(d,m,{default:()=>c.value}):t.h(d,m,c.value)}}}}const{componentName:wh,create:Nh,scope:Bh}=Y("mapping"),pl=Nh(Ch(wh,Bh,!1));function Vh(e,o){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return Kr(l.name,()=>l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:t2,create:Ah,scope:o2}=Y("domain-provider"),hl=Ah(Vh()),$h={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function Th(e,o){return{inheritAttrs:!1,props:$h,setup(l,{slots:n}){if(st&&window.IntersectionObserver){const a=new WeakMap;let r=new Map;const s=(h,y)=>{if(m===null){r.set(h,{visible:null,callback:y});return}a.has(h)&&m.unobserve(h),a.set(h,{visible:null,callback:y}),m.observe(h)},i=h=>{if(m===null){r.delete(h);return}a.has(h)&&(a.delete(h),m.unobserve(h))};let c=l.initialVisibleObserverSize;Ii({acquire:()=>{const h=c>0;return c--,h},get disabled(){return l.disabled},get initialHeight(){return l.initialInvisibleObserverHeight},observe:s,unobserve:i});let m=null;const f=(h,y,g)=>{m=new IntersectionObserver(k=>{for(let v of k){let u=!1;v.intersectionRatio>0&&(u=!0);const p=a.get(v.target);if(p)try{if(l.loadPolicy==="lazy"&&!u&&p.visible!==null)return;p.visible=u,p.callback(u)}catch(b){console.error(b)}}},{root:h,rootMargin:y,threshold:g}),r.forEach((k,v)=>{a.set(v,k),m?.observe(v)}),r.clear()};t.watch([()=>l.root,()=>l.disabled],([h,y])=>{if(y||!h||m)return;let g=null;typeof h=="string"?g=document.querySelector(h):g=h,g&&f(g,l.rootMargin,l.threshold)},{immediate:!0}),t.onUnmounted(()=>{m&&(m.disconnect(),m=null)})}return()=>typeof n.default=="function"?n.default():null}}}const{componentName:n2,create:Eh,scope:l2}=Y("rolling-provider"),gl=Eh(Th()),{componentName:Dh,create:xh}=Y("cell"),Ih=xh({components:{Right:te.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:o}){const l=t.computed(()=>{const r=Dh;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),n=t.computed(()=>({borderRadius:pe(e.roundRadius)}));return{handleClick:r=>{o("click",r)},classes:l,baseStyle:n}}}),qh={key:0,class:"fox-cell__icon"},Mh={key:1,class:"fox-cell__title"},zh={class:"title"},Ph={class:"fox-cell__title-desc"};function Lh(e,o,l,n,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:o[0]||(o[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",qh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Mh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",zh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Ph,t.toDisplayString(e.subTitle),1)],64)):t.renderSlot(e.$slots,"title",{key:1},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),7)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"link",{},()=>[e.isLink?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const yl=J(Ih,[["render",Lh]]),{componentName:Fh,create:Rh}=Y("cell-group"),Oh=Rh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Fh]:!0}))}}}),Kh={key:1,class:"fox-cell-group__title"},Uh={key:3,class:"fox-cell-group__desc"},Hh={class:"fox-cell-group__wrap"};function jh(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):e.title?(t.openBlock(),t.createElementBlock("view",Kh,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.$slots.desc?t.renderSlot(e.$slots,"desc",{key:2}):e.desc?(t.openBlock(),t.createElementBlock("view",Uh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Hh,[t.renderSlot(e.$slots,"default")])],2)}const vl=J(Oh,[["render",jh]]),{componentName:Wh,create:Yh}=Y("image"),Xh=Yh({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:te.Image,ImageError:te.ImageError},emits:["click","load","error"],setup(e,{emit:o}){const l=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),n=t.computed(()=>{const y=Wh;return{[y]:!0,[`${y}-round`]:e.round}}),a=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const y={threshold:[0],rootMargin:"0px"};a.value=new IntersectionObserver(g=>{g.forEach(k=>{k.isIntersecting&&(r.value=!0,a.value.disconnect())})},y),s.value&&a.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{a.value&&a.value.disconnect()});const c=t.computed(()=>{let y={};return e.width&&(y.width=pe(e.width)),e.height&&(y.height=pe(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=pe(e.radius)),y}),d=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,y=>{l.isError=!1,l.loading=!0});const m=()=>{l.loading=!1,o("load")},f=()=>{l.isError=!0,l.loading=!1,o("error")},h=y=>{o("click",y)};return{...t.toRefs(l),imageClick:h,classes:n,styles:d,stylebox:c,error:f,load:m,show:r,imgRef:s}}}),Qh=["src","date-src","alt"],Gh={key:0,class:"fox-img-loading"},Zh={key:1,class:"fox-img-error"};function Jh(e,o,l,n,a,r){const s=t.resolveComponent("Image"),i=t.resolveComponent("ImageError");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.stylebox),onClick:o[2]||(o[2]=(...c)=>e.imageClick&&e.imageClick(...c))},[t.createElementVNode("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:o[0]||(o[0]=(...c)=>e.load&&e.load(...c)),onError:o[1]||(o[1]=(...c)=>e.error&&e.error(...c)),style:t.normalizeStyle(e.styles)},null,44,Qh),e.loading?(t.openBlock(),t.createElementBlock("div",Gh,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,width:"16px",height:"20px",name:"image"})),t.renderSlot(e.$slots,"loading")])):t.createCommentVNode("",!0),e.isError&&!e.loading?(t.openBlock(),t.createElementBlock("div",Zh,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,width:"16px",height:"20px",name:"imageError"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}const kl=J(Xh,[["render",Jh]]),{create:_h}=Y("layout"),bl=_h({}),{componentName:eg,create:tg}=Y("col"),og=tg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const o=eg,l=t.inject("gutter"),n=t.computed(()=>({[o]:!0,[`${o}-gutter`]:l,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),a=t.computed(()=>({paddingLeft:l/2+"px",paddingRight:l/2+"px"}));return{classes:n,style:a}}});function ng(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const Sl=J(og,[["render",ng]]),{componentName:lg,create:ag}=Y("row"),rg=ag({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const o=lg;t.provide("gutter",e.gutter);const l=(a,r)=>a?r?`fox-row-${a}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
|
|
6
6
|
${l("",e.type)}
|
|
7
7
|
${l("justify",e.justify)}
|
|
8
8
|
${l("align",e.align)}
|
|
@@ -10,4 +10,4 @@
|
|
|
10
10
|
${o}
|
|
11
11
|
`:`
|
|
12
12
|
${o}
|
|
13
|
-
`)}}});function og(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Cl=J(tg,[["render",og]]),{componentName:ng,create:lg}=W("divider"),ag=lg({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=ng;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 rg(e,o,l,n,a,r){return e.direction==="horizontal"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes)},null,2))}const wl=J(ag,[["render",rg]]);function sg(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 ig(e,o,l){const n=sg(e.subTree.children,l);o.sort((a,r)=>n.indexOf(a.vnode)-n.indexOf(r.vnode))}function cg(e,o){const l=t.shallowReactive([]),n=t.getCurrentInstance(),a=i=>{i.proxy&&(l.push(t.markRaw(i)),ig(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:dr}=W("grid"),bs=Symbol("grid"),ug={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}},dg={props:ug,setup(e,{slots:o}){cg(bs,`${dr}-item`)({props:e});const l=t.computed(()=>{const a=dr;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),n=t.computed(()=>{const a={};return e.gutter&&(a.paddingLeft=fe(e.gutter)),a});return()=>t.h("view",{class:l.value,style:n.value},o.default?.())}},{create:fg}=W("grid"),Nl=fg(dg);function mg(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:pg,componentName:fr}=W("grid-item"),hg=pg({props:{text:{type:String}},emits:["click"],setup(e,{emit:o}){const l=mg(bs);if(!l.parent)return{};const n=l.index,a=l.parent.props,r=t.computed(()=>({[fr]:!0})),s=t.computed(()=>{const d={flexBasis:`${100/+a.columnNum}%`};return a.square?d.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(d.paddingRight=fe(a.gutter),n.value>=a.columnNum&&(d.marginTop=fe(a.gutter))),d}),i=t.computed(()=>{const d=`${fr}__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)}}}}),gg={class:"fox-grid-item__text"};function yg(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",gg,[e.text?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.text),1)],64)):t.renderSlot(e.$slots,"text",{key:1})])],2)],6)}const Bl=J(hg,[["render",yg]]),{componentName:vg,create:kg}=W("navbar"),bg=kg({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 b=vg;return{[b]:!0,[`${b}--border`]:l.value,[`${b}--fixed`]:n.value,[`${b}--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 v(){o("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:m,styles:f,handleLeft:h,handleCenter:y,handleCenterIcon:g,handleRight:v}}}),Sg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Cg={key:1,class:"fox-navbar__text"},wg={class:"fox-navbar__title"},Ng={key:0,class:"fox-navbar__text"},Bg={key:1,class:"fox-navbar__text"},Vg={class:"fox-navbar__title"},Ag={key:0,class:"fox-navbar__text"};function $g(e,o,l,n,a,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Sg,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:o[0]||(o[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Cg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",wg,[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",Ng,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",Bg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Vg,[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",Ag,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Vl=J(bg,[["render",$g]]),Tg=(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:Eg,create:Dg,scope:xg}=W("fixednav"),Ig=Dg(Tg(Eg,xg,{[at.name]:at,Left:te.Left})),qg={class:"fox-fixednav__list"},Mg=["onClick"],zg=["src"],Lg={class:"span"},Pg={key:0,class:"b"},Fg={class:"text"};function Rg(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",qg,[(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,zg),t.createElementVNode("view",Lg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Pg,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Mg))),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",Fg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Al=J(Ig,[["render",Rg]]),{componentName:Og,create:Kg}=W("menu"),Ug=Kg({components:{ArrowUp2:te.ArrowUp2,ArrowDown2:te.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:o,slots:l}){const n=t.ref(),a=t.ref(0),r=t.ref(!1),s=()=>{const b=t.reactive([]),u=t.reactive([]);return{children:b,linkChildren:k=>{const S=C=>{C.proxy&&(u.push(C),b.push(C.proxy))},N=C=>{if(C.proxy){let B=u.indexOf(C);B>-1&&u.splice(B,1);let V=b.indexOf(C.proxy);B>-1&&b.splice(V,1)}};t.provide("menuParent",Object.assign({removeLink:N,link:S,children:b,internalChildren:u},k))}}},{children:i,linkChildren:c}=s(),d=t.computed(()=>i.some(b=>b.state.showWrapper)),m=t.computed(()=>({[Og]:!0,"scroll-fixed":r.value})),f=()=>{if(n.value){const b=Ve(n);e.direction==="down"?a.value=b.bottom:a.value=window.innerHeight-b.top}};c({props:e,offset:a});const h=b=>{i.forEach((u,p)=>{p===b?(f(),u.toggle()):u.state.showPopup&&u.toggle(!1,{immediate:!0})})},y=b=>Math.max(0,"scrollTop"in b?b.scrollTop:b.pageYOffset),g=()=>{const{scrollFixed:b}=e,u=y(window);r.value=u>(typeof b=="boolean"?30:Number(b))},v=b=>{let u="";const{titleClass:p}=e;return b&&(u+="active"),p&&(u+=` ${p}`),u};return t.onMounted(()=>{const{scrollFixed:b}=e;b&&window.addEventListener("scroll",g)}),t.onUnmounted(()=>{const{scrollFixed:b}=e;b&&window.removeEventListener("scroll",g)}),{toggleItem:h,children:i,opened:d,classes:m,barRef:n,getClasses:v}}}),Hg=["onClick"],jg={class:"fox-menu__title-text"},Wg={class:"fox-menu__title-icon"};function Yg(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",jg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Wg,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Hg))),128))],2),t.renderSlot(e.$slots,"default")],2)}const $l=J(Ug,[["render",Yg]]),{componentName:Xg,create:Qg}=W("menu-item"),Gg=Qg({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[ie.name]:ie,Check:te.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:o,slots:l}){const n=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),a=()=>{const y=t.inject("menuParent",null);if(y){const g=t.getCurrentInstance(),{link:v,removeLink:b}=y;return v(g),t.onUnmounted(()=>{b(g)}),{parent:y}}},{parent:r}=a(),s=t.computed(()=>({[Xg]:!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")}}}}),Zg={class:"fox-menu-item__content fox-menu-item__overflow"},Jg=["onClick"];function _g(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",Zg,[(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,Jg))),128)),t.renderSlot(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}const Tl=J(Gg,[["render",_g]]),{create:ey}=W("tabbar"),ty=ey({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 oy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[t.renderSlot(e.$slots,"default")],2)}const El=J(ty,[["render",oy]]),{create:ny}=W("tabbar-item"),ly=ny({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}}}),ay={class:"fox-tabbar-item_icon-box"},ry={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},sy={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},iy={key:1,class:"fox-tabbar-item_icon-box_dot"},cy={key:2},uy={key:0};function dy(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",ay,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",ry,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",sy,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",iy)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",cy,[(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",uy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Dl=J(ly,[["render",dy]]),{componentName:fy,create:my}=W("elevator"),py=my({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(()=>({[fy]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${n.scrollY+n.fixedTop}px, 0)`})),s=t.computed(()=>l.value.clientHeight),i=(u,p)=>{const k="data-";return u.getAttribute(k+p)},c=u=>{t.nextTick(()=>{!n.listGroup.includes(u)&&u!=null&&n.listGroup.push(u)})},d=()=>{let u=0;n.listHeight.push(u);for(let p=0;p<n.listGroup.length;p++){let k=n.listGroup[p];u+=Math.floor(k.clientHeight),n.listHeight.push(u)}},m=u=>{!u&&u!==0||(u<0&&(u=0),u>n.listHeight.length-2&&(u=n.listHeight.length-2),n.codeIndex=u,l.value.scrollTo(0,n.listHeight[u]))},f=u=>{n.scrollStart=!0;let p=i(u.target,"index"),k=u.touches[0];n.touchState.y1=k.pageY,n.anchorIndex=+p,n.codeIndex=+p,m(+p)},h=u=>{let p=u.touches[0];n.touchState.y2=p.pageY;let k=(n.touchState.y2-n.touchState.y1)/e.spaceHeight|0;n.codeIndex=n.anchorIndex+k,m(n.codeIndex)},y=()=>{n.scrollStart=!1},g=(u,p)=>{o.emit("click-item",u,p),n.currentData=p,n.currentKey=u},v=u=>{o.emit("click-index",u)},b=u=>{let k=u.target.scrollTop;const S=n.listHeight;n.scrollY=k;for(let N=0;N<S.length-1;N++){let C=S[N],B=S[N+1];if(n.scrollY>=C&&n.scrollY<B){n.currentIndex=N,n.diff=B-n.scrollY;return}}n.currentIndex=S.length-2};return t.onMounted(()=>{l.value.addEventListener("scroll",b)}),$e({scrollTo:m}),t.watch(()=>n.listGroup.length,()=>{n.listHeight=[],t.nextTick(d)}),t.watch(()=>n.diff,u=>{const p=n.listHeight;let k=u>0&&u<e.titleHeight?u-e.titleHeight:0;n.scrollY+s.value===p[p.length-1]&&k!==0&&(k=0),n.fixedTop!==k&&(n.fixedTop=k)}),t.watch(()=>n.currentIndex,u=>{o.emit("change",u)}),{classes:a,...t.toRefs(n),fixedStyle:r,clientHeight:s,setListGroup:c,listview:l,touchStart:f,touchMove:h,touchEnd:y,handleClickItem:g,handleClickIndex:v}}}),hy={class:"fox-elevator__list__item__code"},gy=["onClick"],yy=["innerHTML"],vy={class:"fox-elevator__fixed-title"},ky={class:"fox-elevator__bars__inner"},by=["data-index","onClick"];function Sy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",hy,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,yy))],10,gy))),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",vy,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",ky,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:s[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":i,key:s[e.acceptKey],onClick:c=>e.handleClickIndex(s[e.acceptKey])},t.toDisplayString(s[e.acceptKey]),11,by))),128))])],32)],2)}const Rt=J(py,[["render",Sy]]),{componentName:t2,create:Cy,scope:wy}=W("pagination"),Ny=Cy({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(wy),n=l(e,["prevText","nextText"]),{modelValue:a,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:y,itemsPerPage:g}=t.toRefs(e),v=+h.value||Math.ceil(+y.value/+g.value);return Math.max(1,v)}),d=(h,y)=>{h>c.value||h<1||(h!=a.value&&o("update:modelValue",h),y&&o("change",h))},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 v=1,b=y;const u=y>g;u&&(v=Math.max(a.value-Math.floor(g/2),1),b=v+g-1,b>y&&(b=y,v=b-g+1));for(var p=v;p<=b;p++){const k=m(p,p,a.value==p);h.push(k)}if(u&&g>0&&i.value){if(v>1){const k=m(v-1,"...");h.unshift(k)}if(b<y){const k=m(b+1,"...");h.push(k)}}return h});return t.watchEffect(()=>{d(a.value,!1)}),{...n,modelValue:a,select:d,countRef:c,mode:r,pages:f,forceEllipses:i}}}),By={class:"fox-pagination"},Vy={key:0,class:"fox-pagination-contain"},Ay=["onClick"],$y={key:1,class:"fox-pagination-contain"},Ty={class:"fox-pagination-simple"};function Ey(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",By,[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",Vy,[(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,Ay))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",$y,[t.createElementVNode("view",Ty,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:o[1]||(o[1]=s=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const xl=J(Ny,[["render",Ey]]),{componentName:mr,create:Dy}=W("indicator"),xy=Dy({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=mr;return{[a]:!0,[`${a}--block`]:o.value,[`${a}--align__${l.value}`]:o.value&&l.value}}),componentName:mr,padZero:Je}}});function Iy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,s=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[s===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(s)||s),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const Il=J(xy,[["render",Iy]]),{componentName:qy,create:My}=W("side-navbar"),zy=My({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(()=>({[qy]:!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}}}),Ly={class:"fox-side-navbar__content"},Py={class:"fox-side-navbar__content__list",ref:"list"};function Fy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Ly,[t.createElementVNode("view",Py,[t.renderSlot(e.$slots,"default")],512)])],2)}const ql=J(zy,[["render",Fy]]),{componentName:Ry,create:Oy}=W("side-navbar-item"),Ky=Oy({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,o)=>({classes:t.computed(()=>({[Ry]:!0})),handleClick:()=>{o.emit("click")}})}),Uy=["ikey"],Hy={class:"fox-side-navbar-item__title"};function jy(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",Hy,t.toDisplayString(e.title),1)],10,Uy)}const Ml=J(Ky,[["render",jy]]),{componentName:Wy,create:Yy}=W("sub-side-navbar"),Xy=Yy({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(()=>({[Wy]:!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}}}),Qy=["ikey"],Gy={class:"fox-sub-side-navbar__title__text"},Zy={class:"fox-sub-side-navbar__title__icon"};function Jy(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",Gy,t.toDisplayString(e.title),1),t.createElementVNode("span",Zy,[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,Qy)}const zl=J(Xy,[["render",Jy]]),{componentName:_y,create:ev}=W("range"),tv=ev({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:T,max:E,min:x}=e;return Object.keys(T).map(parseFloat).sort((R,Y)=>R-Y).filter(R=>R>=x&&R<=E)}),d=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const T=_y;return{[T]:!0,[`${T}-disabled`]:e.disabled,[`${T}-vertical`]:e.vertical,[`${T}-show-number`]:!e.hiddenRange}}),f=t.computed(()=>{const T="fox-range-container";return{[T]:!0,[`${T}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),y=t.computed(()=>({borderColor:e.buttonColor})),g=T=>!!e.range&&Array.isArray(T),v=()=>{const{modelValue:T,min:E}=e;return g(T)?`${(T[1]-T[0])*100/d.value}%`:`${(T-Number(E))*100/d.value}%`},b=()=>{const{modelValue:T,min:E}=e;return g(T)?`${(T[0]-Number(E))*100/d.value}%`:"0%"},u=t.computed(()=>e.vertical?{height:v(),top:b(),background:e.activeColor,transition:s.value?"none":void 0}:{width:v(),left:b(),background:e.activeColor,transition:s.value?"none":void 0}),p=T=>{const E="fox-range-mark",{modelValue:x,max:$,min:H}=e;let R=Number(H),Y=Number($);if(e.range){const[I,M]=x;R=I,Y=M}else Y=x;let Q=T<=Y&&T>=R;return{[`${E}-text`]:!0,[`${E}-text-active`]:Q}},k=T=>{const{min:E,vertical:x}=e;let $={left:`${(T-Number(E))/d.value*100}%`};return x&&($={top:`${(T-Number(E))/d.value*100}%`}),$},S=T=>{const{modelValue:E,max:x,min:$}=e;let H=Number($),R=Number(x);if(e.range){const[I,M]=E;H=I,R=M}return{background:T<=R&&T>=H?e.activeColor:e.inactiveColor}},N=T=>{const{min:E,max:x,step:$}=e;return T=Math.max(+E,Math.min(T,+x)),Math.round(T/+$)*+$},C=(T,E)=>JSON.stringify(T)===JSON.stringify(E),B=T=>T[0]>T[1]?T.slice(0).reverse():T,V=(T,E)=>{g(T)?T=B(T).map(N):T=N(T),C(T,e.modelValue)||o("update:modelValue",T),E&&!C(T,n)&&o("change",T)},D=T=>{if(e.disabled)return;const{min:E,modelValue:x}=e,$=Ve(r);let H=T.clientX-$.left,R=$.width;e.vertical&&(H=T.clientY-$.top,R=$.height);const Y=Number(E)+H/R*d.value;if(g(x)){const[Q,I]=x,M=(Q+I)/2;Y<=M?V([Y,I],!0):V([Q,Y],!0)}else V(Y,!0)},w=T=>{e.disabled||(i.start(T),a=e.modelValue,g(a)?n=a.map(N):n=N(a),s.value="start")},A=T=>{if(e.disabled)return;s.value==="start"&&o("drag-start"),i.move(T),s.value="draging";const E=Ve(r);let x=i.deltaX.value,$=E.width,H=x/$*d.value;e.vertical&&(x=i.deltaY.value,$=E.height,H=x/$*d.value),g(n)?a[l.value]=n[l.value]+H:a=n+H,V(a),T.stopPropagation(),T.preventDefault()},L=()=>{e.disabled||(s.value==="draging"&&(V(a,!0),o("drag-end")),s.value="")},F=T=>ho(e.modelValue)&&typeof T=="number"?e.modelValue[T]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:h,buttonStyle:y,onClick:D,onTouchStart:w,onTouchMove:A,onTouchEnd:L,...t.toRefs(e),barStyle:u,curValue:F,buttonIndex:l,containerClasses:f,markClassName:p,marksStyle:k,marksList:c,tickStyle:S}}}),ov={key:0,class:"fox-range-min"},nv={key:0,class:"fox-range-mark"},lv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],av={key:0,class:"number"},rv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],sv={key:0,class:"number"},iv={key:1,class:"fox-range-max"};function cv(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",ov,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",nv,[(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",av,t.toDisplayString(e.curValue(s)),1))],4))],42,lv)),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",sv,t.toDisplayString(e.curValue()),1))],4))],40,rv))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",iv,t.toDisplayString(+e.max),1))],2)}const Ot=J(tv,[["render",cv]]),{create:uv,scope:dv}=W("short-password"),fv=uv({components:{[ie.name]:ie,Tips:te.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(dv),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}}}),mv={class:"fox-short-password-title"},pv={class:"fox-short-password-subtitle"},hv={class:"fox-short-password-wrapper"},gv={key:0,class:"fox-short-password__item-icon"},yv={class:"fox-short-password__message"},vv={class:"fox-short-password--error"},kv={key:0,class:"fox-short-password--forget"};function bv(e,o,l,n,a,r){const s=t.resolveComponent("Tips"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(i,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":o[2]||(o[2]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("view",mv,t.toDisplayString(e.title),1),t.createElementVNode("view",pv,t.toDisplayString(e.desc),1),t.createElementVNode("div",hv,[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",gv)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",yv,[t.createElementVNode("view",vv,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",kv,[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(fv,[["render",bv]]);class Sv{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Cv=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 wv{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const Ss=(e,{args:o=[],done:l,canceled:n})=>{if(e){const a=e.apply(null,o);qt(a)?a.then(r=>{r?l(r):n&&n()}).catch(()=>{}):a?l():n&&n()}else l()},{create:Nv}=W("progress"),Bv=Nv({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}}}),Vv={class:"fox-progress"},Av={key:0,class:"fox-progress-text"};function $v(e,o,l,n,a,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",Vv,[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",Av,[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 Kt=J(Bv,[["render",$v]]),{componentName:Tv,create:Ev,scope:Dv}=W("uploader"),xv=Ev({components:{[Kt.name]:Kt,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(Dv),n=t.reactive(e.fileList);let a=[];const r=t.computed(()=>({[Tv]:!0})),s=()=>{let p={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(p.capture="camera"),t.h("input",p)},i=p=>{p.value=""},c=p=>{o("file-item-click",{fileItem:p})},d=(p,k)=>{const S=new Sv;S.url=e.url,S.formData=p.formData,S.timeout=e.timeout*1,S.method=e.method,S.xhrState=e.xhrState,S.headers=e.headers,S.withCredentials=e.withCredentials,S.beforeXhrUpload=e.beforeXhrUpload;try{S.sourceFile=p.formData.get(e.name)}catch{}S.onStart=C=>{p.status="ready",p.message=l("readyUpload"),m(k),o("start",C)},S.onProgress=(C,B)=>{p.status="uploading",p.message=l("uploading"),p.percentage=(C.loaded/C.total*100).toFixed(0),o("progress",{event:C,option:B,percentage:p.percentage})},S.onSuccess=(C,B)=>{p.status="success",p.message=l("success"),o("success",{responseText:C,option:B,fileItem:p}),o("update:fileList",n)},S.onFailure=(C,B)=>{p.status="error",p.message=l("error"),o("failure",{responseText:C,option:B,fileItem:p})};let N=new Cv(S);e.autoUpload?N.upload():a.push(new Promise((C,B)=>{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(k=>k.upload())})},h=p=>{p.forEach((k,S)=>{const N=new FormData;for(const[B,V]of Object.entries(e.data))N.append(B,V);N.append(e.name,k);const C=t.reactive(new wv);if(C.name=k.name,C.status="ready",C.type=k.type,C.formData=N,C.message=l("waitingUpload"),d(C,S),e.isPreview&&k.type.includes("image")){const B=new FileReader;B.onload=V=>{C.url=V.target.result,n.push(C)},B.readAsDataURL(k)}else n.push(C)})},y=p=>{const k=e.maximum*1,S=e.maximize*1,N=new Array;p=p.filter(B=>B.size>S?(N.push(B),!1):!0),N.length&&o("oversize",N);let C=p.length+n.length;return C>k&&p.splice(p.length-(C-k)),p},g=(p,k)=>{n.splice(k,1),o("delete",{file:p,fileList:n,index:k})},v=(p,k)=>{m(k),Ss(e.beforeDelete,{args:[p,n],done:()=>g(p,k)})},b=p=>{if(e.disabled)return;const k=p.target;let{files:S}=k;e.beforeUpload?e.beforeUpload(S).then(N=>u(N)):u(S),o("change",{fileList:n,event:p}),e.clearInput&&i(k)},u=p=>{const k=y(new Array().slice.call(p));h(k)};return{onChange:b,onDelete:v,fileList:n,classes:r,fileItemClick:c,clearUploadQueue:m,submit:f,renderInput:s}}}),Iv={key:0,class:"fox-uploader__slot"},qv={key:0,class:"fox-uploader__preview-img"},Mv={key:0,class:"fox-uploader__preview__progress"},zv={class:"fox-uploader__preview__progress__msg"},Lv=["onClick"],Pv=["onClick","src"],Fv={key:3,class:"fox-uploader__preview-img__file"},Rv=["onClick"],Ov={class:"file__name_tips"},Kv={class:"tips"},Uv={key:1,class:"fox-uploader__preview-list"},Hv=["onClick"],jv={class:"file__name_tips"};function Wv(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",Iv,[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",qv,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",Mv,[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",zv,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,Lv)):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,Pv)):(t.openBlock(),t.createElementBlock("view",Fv,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",Ov,t.toDisplayString(h.name),1)],8,Rv)])),t.createElementVNode("view",Kv,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",Uv,[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",jv,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,Hv),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=J(xv,[["render",Wv]]),Yv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5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93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:Qv,scope:Gv}=W("number-keyboard"),Zv=Qv({components:{[ie.name]:ie},props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(Gv),n=l(e,["confirmText"]),a=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:u}=e;let p={id:"lock",type:"lock"},k=Array.isArray(u)?u:[u];return k.length===1&&(p={id:k[0],type:"custom"}),[...c(),p,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const u=[];for(let p=1;p<=9;p++)u.push({id:p,type:"number"});return e.randomKeys?u.sort(()=>Math.random()>.5?1:-1):u}function d(){const u=c(),{customKey:p}=e;let k=Array.isArray(p)?p:[p];return k.length>2&&(k=[k[0],k[1]]),k.length==2&&e.title&&e.type!="rightColumn"&&(k=[k[0]]),k.length===1?e.title&&e.type!="rightColumn"?u.push({id:k[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):u.push({id:0,type:"number"},{id:k[0],type:"custom"}):k.length===2&&u.push({id:k[0],type:"custom"},{id:0,type:"number"},{id:k[1],type:"custom"}),u}const m=t.computed(()=>e.type=="rightColumn"||e.title!=""?d():i()),f=()=>{e.visible&&o("blur")},h=u=>{const p=s.value;p&&!p.contains(u.target)&&f()};t.watch(()=>e.visible,u=>{r.value=u,u?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function y(u,p){p.stopPropagation(),a.value=u.id,(u.type=="number"||u.type=="custom")&&(o("input",u.id),e.modelValue.length<Number(e.maxlength)&&o("update:modelValue",e.modelValue+u.id)),u.type=="lock"&&b(),u.type=="delete"&&(o("delete"),o("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function g(u){u.stopPropagation()}function v(u){u.preventDefault(),a.value=void 0}function b(){o("update:visible",!1),o("close")}return{...n,delImg:Yv,lockImg:Xv,clickKeyIndex:a,defaultKey:i,closeBoard:b,onTouchEnd:v,onTouchMove:g,onTouchstart:y,keysList:m,genCustomKeys:d,getBasicKeys:c,root:s,show:r}}}),Jv={ref:"root"},_v={class:"fox-number-keyboard"},e0={key:0,class:"fox-number-keyboard__header"},t0={class:"fox-number-keyboard__title"},o0={class:"fox-number-keyboard__body"},n0={class:"fox-number-keyboard__keys"},l0=["onTouchstart"],a0=["src"],r0=["src"],s0={key:0,class:"fox-number-keyboard__sidebar"},i0={class:"fox-key__wrapper"},c0=["src"];function u0(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",Jv,[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",_v,[e.title?(t.openBlock(),t.createElementBlock("div",e0,[t.createElementVNode("h3",t0,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",o0,[t.createElementVNode("div",n0,[(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,a0)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,r0)):t.createCommentVNode("",!0)],42,l0)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",s0,[t.createElementVNode("div",i0,[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,c0)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:o[6]||(o[6]=i=>e.closeBoard())},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},t.toDisplayString(e.confirmText),3)])])):t.createCommentVNode("",!0)])])]),_:1},8,["visible","popClass"])],512)}const Fl=J(Zv,[["render",u0]]),{componentName:d0,create:f0}=W("swipe"),m0=f0({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(()=>({[d0]:!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)`})),v=p=>{d=p>0?"right":"left";let k=p;switch(d){case"left":c&&m===d?k=-i.value:k=Math.abs(p)>i.value?-i.value:p;break;case"right":c&&m===d?k=r.value:k=Math.abs(p)>r.value?r.value:p;break}f.offset=k},b=Ue();return{classes:l,touchStyle:g,...{onTouchStart(p){e.disabled||b.start(p)},onTouchMove(p){e.disabled||(b.move(p),b.isHorizontal()&&(f.moving=!0,v(b.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}}}),p0={class:"fox-swipe__left",ref:"leftRef"},h0={class:"fox-swipe__content"},g0={class:"fox-swipe__right",ref:"rightRef"};function y0(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",p0,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",h0,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",g0,[t.renderSlot(e.$slots,"right")],512)],38)}const Ut=J(m0,[["render",y0]]),{componentName:v0,create:k0}=W("action-sheet"),b0=k0({components:{[ie.name]:ie,Loading:te.Loading},props:{...ze,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:o}){const l=!!t.useSlots().default,n=t.computed(()=>({[v0]:!0}));return{slotDefault:l,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{o("cancel"),o("update:visible",!1)},chooseItem:(c,d)=>{!c.disable&&!c.loading&&(o("choose",c,d),o("update:visible",!1))},close:c=>{o("close",c),o("update:visible",!1)},classes:n}}}),S0={key:0,class:"fox-action-sheet__title"},C0={key:1},w0={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},N0={key:1,class:"fox-action-sheet__menu"},B0=["onClick"],V0={key:1},A0={class:"fox-action-sheet__subdesc"};function $0(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.title?(t.openBlock(),t.createElementBlock("view",S0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",C0,[e.description?(t.openBlock(),t.createElementBlock("view",w0,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",N0,[(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",V0,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",A0,t.toDisplayString(c[e.optionSubTag]),1)],14,B0))),128))])):t.createCommentVNode("",!0),e.cancelTxt?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-action-sheet__cancel",onClick:o[0]||(o[0]=(...c)=>e.cancelActionSheet&&e.cancelActionSheet(...c))},t.toDisplayString(e.cancelTxt),1)):t.createCommentVNode("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}const Rl=J(b0,[["render",$0]]),{componentName:T0,create:E0}=W("backtop"),Ol=E0({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(()=>({[T0]:!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 v(){var b=e.duration-Math.max(0,n.startTime-+new Date+e.duration),u=b*-n.scrollTop/e.duration+n.scrollTop;i(u),g=We(v),(b==e.duration||u==0)&&gr(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 v=[];if(typeof l.default=="function")v.push(l.default());else{const u=t.h(te.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});v.push(u)}const b=t.h("div",{class:a.value,style:r.value,onClick:f},v);return g.push(b),g}}}),{componentName:D0,create:x0}=W("drag"),I0=x0({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(()=>({[D0]:!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 v=n.screenWidth-n.elWidth-n.boundary.right;g>v?g=v:g<n.boundary.left?g=n.boundary.left:g=g<n.screenWidth/2?n.boundary.left:v,e.direction!="y"&&e.attract&&(g<n.screenWidth/2?Pe(()=>{s(h)}):Pe(()=>{i(h,v)})),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 q0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:o[0]||(o[0]=s=>e.touchStart(s)),onTouchmove:o[1]||(o[1]=s=>e.touchMove(s)),onTouchend:o[2]||(o[2]=s=>e.touchEnd(s))},[t.renderSlot(e.$slots,"default")],34)}const Kl=J(I0,[["render",q0]]),M0={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}},z0=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function L0(e,o,l,n,a){return{props:{...ze,...M0},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 B=r.beforeClose(C);qt(B)?B.then(V=>{V&&(y(!1),c("closed",C))}):B===!0&&(y(!1),c("closed",C))}else y(!1),c("closed",C)},v=()=>{g("confirm")},b=()=>{g("cancel")},u=()=>{g("close")},p=(C,B)=>z0(C)?(B.src=C,t.h("img",B)):typeof C=="string"?(Array.isArray(B.class)?B.class.push(C):B.class&&typeof B.class=="object"?B[`${C}`]=!0:typeof B.class=="string"?B.class=`${B.class}, ${C}`:B.class=C,t.h(r.tag,B)):t.h(C,B),k=()=>{const C=[];if(i.header){const V=i.header();C.push(V)}else{if(r.title){const V=t.h("view",{class:`${f}__header-title`},[r.title]);C.push(V)}if(r.showClose){const V={class:[`${f}__header-close-icon`],onClick:u},D=r.closeIcon??a,w=p(D,V);C.push(w)}}if(C.length===0)return null;const B={class:[`${f}__header`]};return t.h("view",B,C)},S=()=>{const C=[];if(i.default)C.push(i.default());else{const V={class:[`${f}__content`]};if(r.textAlign&&V.class.push(r.textAlign),typeof r.content=="string"){V.innerHTML=r.content;const D=t.h("view",V);C.push(D)}else if(typeof r.content=="function"){const D=t.h("view",V,[r.content()]);C.push(D)}else{const D=t.h("view",V,[r.content]);C.push(D)}}if(C.length===0)return null;const B={class:[`${f}__body`]};return t.h("view",B,C)},N=()=>{if(!r.showFooter)return null;const C=[];if(i.footer)C.push(i.footer());else if(r.plain){if(r.showCancelButton){const V={class:[`${f}__footer-button`,`${f}__footer-cancel`],style:{},onClick:b};r.cancelButtonClass&&V.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(V.style,r.cancleButtonStyle);const D=t.h("view",V,[r.cancelButtonText??m.cancelText.value]);C.push(D)}if(r.showConfirmButton){const V={class:[`${f}__footer-button`,`${f}__footer-confirm`],style:{},onClick:v};r.confirmButtonClass&&V.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(V.style,r.confirmButtonStyle);const D=t.h("view",V,[r.confirmButtonText??m.confirmText.value]);C.push(D)}}else{if(r.showCancelButton){const V={class:[`${f}__footer-button`,`${f}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:b};r.cancelButtonClass&&V.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(V.style,r.cancleButtonStyle);const D=t.h(n,V,{default:()=>[r.cancelButtonText??m.cancelText.value]});C.push(D)}if(r.showConfirmButton){const V={class:[`${f}__footer-button`,`${f}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:v};r.confirmButtonClass&&V.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(V.style,r.confirmButtonStyle);const D=t.h(n,V,{default:()=>[r.confirmButtonText??m.confirmText.value]});C.push(D)}}if(C.length===0)return null;const B={class:[`${f}__footer`,`${f}__footer--${r.footerDirection}`]};return t.h("view",B,C)};return()=>{const C=[],B=k();B&&C.push(B);const V=S();V&&C.push(V);const D=N();D&&C.push(D);const w={class:{[`${f}`]:!0,[`${f}--plain`]:r.plain}},A=t.h("view",w,C),L=[`${f}__popup`];r.popClass&&L.push(r.popClass);const F={};r.width&&(F.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(F.height=typeof r.height=="number"?`${r.height}px`:r.height);const E={...me(r,ze),popClass:L.join(" "),style:F,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:r.position,onClickOverlay:u,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(l,E,{default:()=>A})}}}}const{componentName:P0,create:F0,scope:R0}=W("dialog"),Cs=F0(L0(P0,R0,ie,Ie,te.Close));class O0{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 K0{options=new O0;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(Cs,l)}},c=t.createVNode(i);n.appendChild(r),t.render(c,r)}}const Ht=function(e){return new K0(e)};Ht.install=e=>{e.use(Cs),e.config.globalProperties.$dialog=Ht};const{componentName:U0,create:H0,scope:j0}=W("pull-refresh"),W0=H0({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(j0),a=n(e,["pullingText","loosingText","loadingText"]),r=Ue(),s=t.ref(),i=as(s),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal"}),d=t.computed(()=>({[U0]:!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=fe(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})},v=()=>c.status!=="loading"&&c.status!=="complete",b=()=>i.value==window?qn()==0:i.value&&i.value.scrollTop==0,u=S=>{v()&&(b()?(r.start(S),c.isPullRefresh=!0):(c.distance=0,c.isPullRefresh=!1))},p=S=>{if(v()){r.move(S);const{deltaY:N}=r;r.isVertical()&&N.value>0&&c.isPullRefresh&&(S.cancelable&&S.preventDefault(),g(y(N.value)))}},k=()=>{c.isPullRefresh&&v()&&r.deltaY.value&&(c.status==="loosing"?(g(+e.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):g(0)),setTimeout(()=>{r.reset()},0)};return t.watch(()=>e.modelValue,S=>{S?g(+e.headHeight,!0):g(0)}),{classes:d,scroller:s,...t.toRefs(c),touchStart:u,touchMove:p,touchEnd:k,getStyle:f,slots:l,getHeightStyle:h,getPullStatus:m}}}),Y0={class:"fox-pull-refresh-container-topbox-text"};function X0(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",Y0,t.toDisplayString(e.getPullStatus),1),e.status=="pulling"?t.renderSlot(e.$slots,"pulling",{key:1}):t.createCommentVNode("",!0),e.status=="loosing"?t.renderSlot(e.$slots,"loosing",{key:2}):t.createCommentVNode("",!0),e.status=="loading"?t.renderSlot(e.$slots,"loading",{key:3}):t.createCommentVNode("",!0)],4),t.renderSlot(e.$slots,"default")],4)],34)}const Ul=J(W0,[["render",X0]]),{create:Q0}=W("notify"),G0=Q0({components:{[ie.name]:ie},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:o}){const l=()=>{e.onClick&&e.onClick()};let n=null;const a=()=>{n&&clearTimeout(n),n=null},r=()=>{o("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,d=>{s.value=e.visible;const m=e.duration;d&&m&&(n=setTimeout(()=>{r()},m))},{immediate:!0});return{onAfterLeave:()=>{a(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:l,isShowPopup:s}}});function Z0(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.isShowPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.isShowPopup=i),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:o[0]||(o[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}const Hl=J(G0,[["render",Z0]]),Tn={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let dt=[],Dt=[];const ws=e=>{if(e){const o=document.getElementById(e);Dt=Dt.filter(l=>l.id!==e),dt=dt.filter(l=>l!==e),o&&document.body.removeChild(o)}else dt.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),Dt=[],dt=[]},J0=e=>{const o=document.getElementById(e.id);if(o){const l=Dt.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}},Vt=e=>{e.unmount=ws;let o;if(e.id){if(o=e.id,dt.find(r=>r===e.id))return J0(e)}else o=new Date().getTime()+"";e={...Tn,...e},e.id=o,dt.push(e.id),Dt.push(e);const l=document.createElement("view");l.id="notify-"+e.id;const n={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(l)},e.duration)}),()=>t.h(Hl,e)}},a=t.createVNode(n);document.body.appendChild(l),t.render(a,l)},At=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},jl={text(e,o={}){return At(e),Vt({...o,msg:e})},primary(e,o={}){return At(e),Vt({...o,msg:e,type:"primary"})},success(e,o={}){return At(e),Vt({...o,msg:e,type:"success"})},danger(e,o={}){return At(e),Vt({...o,msg:e,type:"danger"})},warn(e,o={}){return At(e),Vt({...o,msg:e,type:"warning"})},hide(){ws()},install(e){e.use(Hl)}},{create:_0}=W("toast"),ek=_0({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()}}}}),tk={key:1,class:"fox-toast-title"},ok=["innerHTML"];function nk(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",tk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,ok)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Wl=J(ek,[["render",nk]]),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=[],xt=[];const Ns=e=>{if(e){const o=document.getElementById(e);xt=xt.filter(l=>l.id!==e),ft=ft.filter(l=>l!==e),o&&document.body.removeChild(o)}else ft.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),xt=[],ft=[]},lk=e=>{const o=document.getElementById(e.id);if(o){const l=xt.find(a=>a.id===e.id);l?e={...En,...l,...e}:e={...En,...e};const n=t.createVNode(Wl,e);return t.render(n,o),Ct}},$t=e=>{e.unmount=Ns;let o;if(e.id){if(o=e.id,ft.find(a=>a===e.id))return lk(e)}else o=new Date().getTime()+"";e={...En,...e},e.id=o,ft.push(e.id),xt.push(e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(Wl,e);return t.render(n,l),document.body.appendChild(l),Ct},Jt=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Ct={text(e,o={}){return Jt(e),$t({...o,type:"text",msg:e})},success(e,o={}){return Jt(e),$t({icon:te.Success,...o,msg:e,type:"success"})},fail(e,o={}){return Jt(e),$t({icon:te.Failure,...o,msg:e,type:"fail"})},warn(e,o={}){return Jt(e),$t({icon:te.Tips,...o,msg:e,type:"warn"})},loading(e,o={}){return $t({icon:te.Loading,...o,msg:e,type:"loading"})},hide(e){Ns(e)},install(e){e.use(Wl),e.config.globalProperties.$toast=Ct}},{componentName:n2,create:ak}=W("audio"),rk=ak({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,[Ot.name]:Ot},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var v=["webkitVisibilityState","visibilitychange"];try{for(let b=0;b<v.length;b++)document.addEventListener(v[b],()=>{document.hidden?n.value.pause():a.playing&&setTimeout(()=>{n.value.play()},200)})}catch(b){b.message}});const r=v=>{const b=n.value;e.autoplay&&b&&b.paused&&b.play(),a.second=b.duration,a.duration=g(b.duration),o("can-play",v)},s=v=>{a.currentTime=parseInt(v.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,n.value.currentTime=a.currentTime,o("fastBack",a.currentTime)},c=()=>{const v=n.value;a.playing?(v.pause(),a.handPlaying=!1):(v.play(),a.handPlaying=!0),a.playing=!a.playing,o("play",a.playing)},d=()=>{a.currentTime++,n.value.currentTime=a.currentTime,o("forward",a.currentTime)},m=v=>{a.currentDuration=g(v),a.percent=v/a.second*100},f=()=>{a.playing=!1,o("ended")},h=v=>{const b=n.value;b.currentTime=a.second*v/100,o("changeProgress",b.currentTime)},y=()=>{a.hanMuted=!a.hanMuted,o("mute",a.hanMuted)},g=v=>{if(!v)return"00:00:00";let b=parseInt(v),u=Math.floor(b/3600),p=Math.floor((b-u*3600)/60),k=b-u*3600-p*60,S="";return S+=("0"+u.toString()).slice(-2)+":",S+=("0"+p.toString()).slice(-2)+":",S+=("0"+k.toString()).slice(-2),S};return t.watch(()=>a.currentTime,v=>{m(v)}),t.provide("audioParent",{children:[],props:e,audioData:a,handleMute:y,forward:d,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(a),audioRef:n,fastBack:i,forward:d,changeStatus:c,progressChange:h,audioEnd:f,onTimeupdate:s,handleMute:y,onCanplay:r,slots:l}}}),sk={class:"fox-audio"},ik={key:0,class:"fox-audio__progress"},ck={class:"fox-audio__time"},uk={class:"fox-audio__bar"},dk=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),fk={class:"fox-audio__time"},mk={key:1,class:"fox-audio__icon"},pk=["controls","src","preload","autoplay","loop","muted"];function hk(e,o,l,n,a,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",sk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",ik,[t.createElementVNode("div",ck,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",uk,[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(()=>[dk]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",fk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",mk,[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,pk)])}const Yl=J(rk,[["render",hk]]),{componentName:l2,create:gk,scope:yk}=W("audio-operate"),vk=gk({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(yk),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}}}),kk={class:"fox-audio-operate"};function bk(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",kk,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:o[0]||(o[0]=(...i)=>e.fastBack&&e.fastBack(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:o[1]||(o[1]=(...i)=>e.changeStatus&&e.changeStatus(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:o[2]||(o[2]=(...i)=>e.forward&&e.forward(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:o[3]||(o[3]=(...i)=>e.handleMute&&e.handleMute(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("mute")),1)]),_:1},8,["type"])),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)])}const Xl=J(vk,[["render",bk]]),{componentName:Sk,create:Ck}=W("avatar"),wk=Ck({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(()=>({[Sk]:!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 v=0;v<g.length;v++)g[v]&&g[v].classList&&g[v].classList[0]=="fox-avatar"&&g[v].setAttribute("data-index",v+1);d.index=i?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=s?.props?.maxCount&&(d.showMax=!0)};return{classes:m,styles:f,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(d)}}});function Nk(e,o,l,n,a,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const jt=J(wk,[["render",Nk]]),{componentName:Bk,create:Vk}=W("avatar-group"),Ak=Vk({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(()=>({[Bk]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:n,index:a}),{classes:r,avatarGroupRef:n}}});function $k(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const Ql=J(Ak,[["render",$k]]);var no=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(no||{});function Tk(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:Ek,create:Dk}=W("list"),pr=document.documentElement.clientHeight||document.body.clientHeight||667,xk=Dk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:pr},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,pr)),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(()=>({[Ek]:!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(B=>B.nodeType===1);const p=u[0];u.forEach((B,V)=>{if(!B)return;const D=Ve(B),{height:w}=D,L=r.cachePositions[V+r.start].height-w;L&&(r.cachePositions[V+r.start].bottom-=L,r.cachePositions[V+r.start].height=w,r.cachePositions[V+r.start].dValue=L)});let k=0;p&&(k=r.start);const S=r.cachePositions.length;let N=r.cachePositions[k].dValue;r.cachePositions[k].dValue=0;for(let B=k+1;B<S;++B){const V=r.cachePositions[B];r.cachePositions[B].top=r.cachePositions[B-1].bottom,r.cachePositions[B].bottom=r.cachePositions[B].bottom-N,V.dValue!==0&&(N+=V.dValue,V.dValue=0)}const C=r.cachePositions[S-1].bottom;r.phantomHeight=C},g=(u=0)=>{let p=Tk(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},v=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,l.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},b=()=>{const u=l.value?.scrollTop,{originStartIndex:p}=r,k=g(u);k!==p&&(r.originStartIndex=k,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&o("scroll-bottom")),o(u>r.scrollTop?"scroll-up":"scroll-down",u),r.scrollTop=u};return t.watch(()=>e.listData,u=>{if(r.list=u.slice(),r.list.length===u.length)h(),y();else{v();return}}),t.watch(()=>r.start,()=>{a.value&&r.list.length>0&&y()}),{...t.toRefs(r),list:l,phantom:n,actualContent:a,getTransform:f,visibleData:m,classes:d,getContainerHeight:s,handleScrollEvent:b}}});function Ik(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:o[0]||(o[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform()}),ref:"actualContent"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:s},[t.renderSlot(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}const Gl=J(xk,[["render",Ik]]),{componentName:qk,create:Mk}=W("circleprogress"),zk=Mk({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(()=>({[qk]:!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 v={key:"",value:""};v.key=y,v.value=m[y],h.push(v)}),h});return{classes:a,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:d,slotDefault:l,refRandomId:n}}}),Lk={viewBox:"0 0 100 100"},Pk=["id"],Fk=["offset","stop-color"],Rk=["d","stroke-width"],Ok=["d","stroke","stroke-linecap","stroke-width"],Kk={class:"fox-circleprogress-text"},Uk={key:0};function Hk(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",Lk,[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,Fk))),128))],8,Pk)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,Rk),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,Ok)])),t.createElementVNode("div",Kk,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Uk,t.toDisplayString(e.progress)+"%",1))])],6)}const Zl=J(zk,[["render",Hk]]),{componentName:jk,create:Wk}=W("noticebar"),Yk=Wk({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(()=>({[jk]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),d=t.computed(()=>{let B={};return e.color&&(B.color=e.color),e.background&&(B.background=e.background),e.direction=="vertical"&&(B.height=`${e.height}px`),B}),m=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),f=t.computed(()=>{let B={};if(e.complexAm)B={transform:`translateY(${r.distance}px)`};else if(r.animate){let V=~~(e.height/e.speed/4);B={transition:`all ${V==0?~~(e.height/e.speed):V}s`,"margin-top":`-${e.height}px`}}return B});t.watch(()=>e.text,B=>{h()}),t.watch(()=>e.list,B=>{r.scrollList=[...B]});const h=B=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!n.value||!a.value)return;const V=n.value.getBoundingClientRect().width,D=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?D>V:e.scrollable,r.isCanScroll?(r.wrapWidth=V,r.offsetWidth=D,r.duration=D/e.speed,r.animationClass="play"):r.animationClass=""},0)},y=B=>{o("click",B)},g=B=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",B)},v=B=>{r.firstRound=!1,o("across-end",B),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},b=()=>{u(),r.timer=setInterval(u,~~(e.height/e.speed/4*1e3)+e.standTime)},u=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},p=()=>{r.timer=setInterval(()=>{let B=100;for(let V=0;V<B;V++)k(V,!(V<B-1))},e.standTime+100*e.speed)},k=(B,V)=>{setTimeout(()=>{r.distance-=e.height/100,V&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},B*e.speed)},S=B=>{o("click",B)},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():b()},e.standTime)):h(e.text)}),t.watch(()=>l.default?l.default():[],B=>{e.direction==="vertical"&&l.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),C(B))});const C=B=>{B&&B.length>0&&(r.scrollList=B[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:v,go:S,handleClickIcon:N,slots:l,toPxDesc:fe,wrapContentClass:c}}}),Xk={class:"fox-noticebar__page-lefticon"},Qk={ref:"wrap",class:"fox-noticebar__page-wrap"},Gk={class:"showNotica"},Zk=["onClick"];function Jk(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",Xk,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",Qk,[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",Gk,[(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,Zk))),128))],4)),t.createElementVNode("view",{class:"go",onClick:o[4]||(o[4]=d=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const Jl=J(Yk,[["render",Jk]]),_k="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX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JfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:a2,create:ob,scope:nb}=W("empty"),lb={empty:_k,error:eb,network:tb},ab=ob({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:o}=ae.useFoxI18n(nb),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:lb[n.value];return{...l,imageUrl:i,imgStyle:r}}}),rb={class:"fox-empty"},sb=["src"],ib={key:1,class:"fox-empty-description"};function cb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",rb,[t.createElementVNode("view",{class:"fox-empty-image",style:t.normalizeStyle(e.imgStyle)},[e.$slots.image?t.renderSlot(e.$slots,"image",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.imageUrl?(t.openBlock(),t.createElementBlock("img",{key:0,class:"img",src:e.imageUrl},null,8,sb)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",ib,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const _l=J(ab,[["render",cb]]),{create:ub,scope:db}=W("video"),fb=ub({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(db),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,B=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];n.player.$player=C,n.progressBar.progressElm=B,n.progressBar.pos=B.getBoundingClientRect(),n.videoSet.progress.width=Math.round(B.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 B=Math.floor(C/3600);B<10&&(B="0"+B);var V=Math.floor(C%3600/60);V<10&&(V="0"+V);var D=Math.round(C%3600%60);D<10&&(D="0"+D);var w="";return B!=0?w=B+":"+V+":"+D:w=V+":"+D,w},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},v=()=>{n.state.isMuted=!n.state.isMuted,n.videoElm.muted=n.state.isMuted},b=()=>{},u=C=>{let V=C.targetTouches[0].pageX-n.progressBar.pos.left;V<=0&&(V=0),V>=n.videoSet.progress.width&&(V=n.videoSet.progress.width),n.videoSet.progress.current=V;let D=n.videoSet.progress.current/n.videoSet.progress.width;n.videoElm.duration&&k(D,n.videoElm.duration)},p=C=>{let V=C.changedTouches[0].pageX-n.progressBar.pos.left;n.videoSet.progress.current=V;let D=V/n.videoSet.progress.width;n.videoElm.duration&&k(D,n.videoElm.duration)},k=(C,B)=>{n.videoElm.currentTime=Math.floor(C*B)},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:v,touchSlidSrart:b,touchSlidMove:u,touchSlidEnd:p,retry:S,fullScreen:N,t:l}}}),mb={class:"fox-video",ref:"videocon"},pb=["muted","autoplay","loop","poster","controls","preload"],hb=["src","type"],gb={class:"fox-video-controller__now"},yb={class:"fox-video-controller__progress"},vb={class:"fox-video-controller__progress-value",ref:"progressBar"},kb=t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1),bb=[kb],Sb={class:"fox-video-controller__played",ref:"playedBar"},Cb={class:"fox-video-controller__total"},wb={class:"fox-video-error"},Nb={class:"fox-video-error-tip"};function Bb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",mb,[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,hb)],40,pb),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",gb,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",yb,[t.createElementVNode("div",vb,[t.createElementVNode("div",{class:"buffered",style:t.normalizeStyle({width:`${e.videoSet.loaded}%`})},null,4),t.createElementVNode("div",{class:"fox-video-controller__ball",style:t.normalizeStyle({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:o[4]||(o[4]=t.withModifiers(s=>e.touchSlidMove(s),["stop","prevent"])),onTouchstart:o[5]||(o[5]=t.withModifiers(s=>e.touchSlidSrart(),["stop"])),onTouchend:o[6]||(o[6]=t.withModifiers(s=>e.touchSlidEnd(s),["stop"]))},bb,36),t.createElementVNode("div",Sb,null,512)],512)]),t.createElementVNode("div",Cb,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",wb,[t.createElementVNode("p",Nb,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:o[9]||(o[9]=(...s)=>e.retry&&e.retry(...s))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const kt=J(fb,[["render",Bb]]),{create:Vb,componentName:Ab}=W("steps"),ea=Vb({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=Ab;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:$b,componentName:Tb}=W("step"),Eb=$b({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=Tb;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{o.onEmit(n.value)};return{...t.toRefs(l),index:n,classes:s,handleClickStep:i}}}),Db={class:"fox-step-head"},xb=t.createElementVNode("view",{class:"fox-step-line"},null,-1),Ib={class:"fox-step-icon-inner"},qb={key:1,class:"fox-step-inner"},Mb={class:"fox-step-main"},zb={class:"fox-step-title"},Lb={key:0},Pb={key:0,class:"fox-step-content"},Fb=["innerHTML"];function Rb(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",Db,[xb,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",Ib,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",qb,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",Mb,[t.createElementVNode("view",zb,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Lb,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",Pb,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,Fb)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ta=J(Eb,[["render",Rb]]),{create:Ob,componentName:on}=W("swiper"),Kb=Ob({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 $=on;return{[`${$}-inner`]:!0,[`${$}-vertical`]:i.value}}),d=t.computed(()=>{const $=on;return{[`${$}-pagination`]:!0,[`${$}-pagination-vertical`]:i.value}}),m=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),f=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>a.children.length),y=t.computed(()=>a[i.value?"height":"width"]),g=t.computed(()=>h.value*y.value),v=t.computed(()=>a.rect?(i.value?a.rect.height:a.rect.width)-y.value*h.value:0),b=t.computed(()=>(a.active+h.value)%h.value),u=()=>{let $=0;$=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${$}px)`,[i.value?"height":"width"]:`${y.value*h.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},p=$=>{let H=[];const R=a.childrenVNode.length;let Y=l?.default?.();if(Y=Y.filter(Q=>Q.children&&Array.isArray(Q.children)),Y.forEach(Q=>{H=H.concat(Q.children)}),!R)a.childrenVNode=H.slice(),$.proxy&&a.children.push($.proxy);else if(R>H.length)a.children=a.children.filter(Q=>$.proxy!==Q);else if(R<H.length){for(let Q=0;Q<R;Q++)if(H[Q].key!==a.childrenVNode[Q].key){$.proxy&&a.children.splice(Q,0,$.proxy),$.vnode&&a.childrenVNode.splice(Q,0,$.vnode);break}R!==H.length&&($.proxy&&a.children.push($.proxy),$.vnode&&a.childrenVNode.push($.vnode))}else a.childrenVNode=H.slice(),$.proxy&&a.children.push($.proxy)},k=($,H=0)=>{let R=$*y.value;e.loop||(R=Math.min(R,-v.value));let Y=H-R;return e.loop||(Y=Fe(Y,v.value,0)),Y},S=$=>{const{active:H}=a;return $?e.loop?Fe(H+$,-1,h.value):Fe(H+$,0,h.value-1):H},N=({pace:$=0,offset:H=0,isEmit:R=!1})=>{if(h.value<=1)return;const{active:Y}=a,Q=S($),I=k(Q,H);if(e.loop){if(a.children[0]&&I!==v.value){const M=I<v.value;a.children[0].setOffset(M?g.value:0)}if(a.children[h.value-1]&&I!==0){const M=I>0;a.children[h.value-1].setOffset(M?-g.value:0)}}a.active=Q,a.offset=I,R&&Y!==a.active&&o("change",b.value),u()},C=()=>{a.moving=!0,a.active<=-1&&N({pace:h.value}),a.active>=h.value&&N({pace:-h.value})},B=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},V=$=>{C(),r.reset(),We(()=>{We(()=>{a.moving=!1,N({pace:$,isEmit:!0})})})},D=()=>{V(-1)},w=()=>{V(1)},A=$=>{C(),r.reset(),We(()=>{a.moving=!1;let H;e.loop&&h.value===$?H=a.active===0?0:$:H=$%h.value,N({pace:H-a.active,isEmit:!0})})},L=()=>{e.autoPlay<=0||h.value<=1||(B(),a.autoplayTimer=setTimeout(()=>{w(),L()},Number(e.autoPlay)))},F=($=+e.initPage)=>{B(),a.rect=n.value.getBoundingClientRect(),$=Math.min(h.value-1,$),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=$,a.offset=k(a.active),a.moving=!0,u(),L()},T=$=>{e.isPreventDefault&&$.preventDefault(),e.isStopPropagation&&$.stopPropagation(),e.touchable&&(r.start($),a.touchTime=Date.now(),B(),C())},E=$=>{e.touchable&&a.moving&&(r.move($),f.value&&N({offset:m.value}))},x=$=>{if(!e.touchable||!a.moving)return;const H=m.value/(Date.now()-a.touchTime);if((Math.abs(H)>.3||Math.abs(m.value)>+(y.value/2).toFixed(2))&&f.value){let Y=0;const Q=i.value?r.offsetY.value:r.offsetX.value;e.loop?Y=Q>0?m.value>0?-1:1:0:Y=-Math[m.value>0?"ceil":"floor"](m.value/y.value),N({pace:Y,isEmit:!0})}else m.value&&N({pace:0});a.moving=!1,u(),L()};return t.provide("parent",{props:e,size:y,relation:p}),$e({prev:D,next:w,to:A}),t.onDeactivated(()=>{B()}),t.onBeforeUnmount(()=>{B()}),t.watch(()=>e.initPage,$=>{t.nextTick(()=>{F(Number($))})}),t.watch(()=>a.children.length,()=>{t.nextTick(()=>{F()})}),t.watch(()=>e.autoPlay,$=>{$>0?L():B()}),{state:a,classes:s,classesInner:c,classesPagination:d,container:n,activePagination:b,onTouchStart:T,onTouchMove:E,onTouchEnd:x}}});function Ub(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.classesInner),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classesPagination)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(s,i)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===i}),key:i},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const bt=J(Kb,[["render",Ub]]),{create:Hb,componentName:jb}=W("swiper-item"),Wb=Hb({setup(e,{slots:o}){const l=t.inject("parent");l.relation(t.getCurrentInstance());const n=t.reactive({offset:0}),a=t.computed(()=>({[jb]:!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 Yb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const St=J(Wb,[["render",Yb]]),Bs={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:Xb}=W("image-preview-item"),Qb=Xb({props:{...Bs,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},contentClose:{type:Boolean,default:!0}},emits:["close","scale"],components:{[kt.name]:kt,[St.name]:St},setup(e,{emit:o}){const l=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),n=Ue(),a=t.computed(()=>{const{rootWidth:D,rootHeight:w}=e,A=w/D;return l.imageRatio>A}),r=t.computed(()=>{const D=e.image;if(D&&D.src){const{scale:w,moveX:A,moveY:L,moving:F,zooming:T}=l,E={transitionDuration:T||F?"0s":".3s"};if(w!==1){const x=A/w,$=L/w;E.transform=`scale(${w}, ${w}) translate(${x}px, ${$}px)`}return E}return{}}),s=t.computed(()=>{if(l.imageRatio){const{rootWidth:D,rootHeight:w}=e,A=a.value?w/l.imageRatio:D;return Math.max(0,(l.scale*A-D)/2)}return 0}),i=t.computed(()=>{if(l.imageRatio){const{rootWidth:D,rootHeight:w}=e,A=a.value?w:D*l.imageRatio;return Math.max(0,(l.scale*A-w)/2)}return 0}),c=D=>{const{naturalWidth:w,naturalHeight:A}=D.target;l.imageRatio=A/w},d=()=>{m(1),l.moveX=0,l.moveY=0},m=D=>{D=Fe(D,+e.minZoom,+e.maxZoom+1),D!==l.scale&&(l.scale=D,o("scale",{scale:D,index:e.initNo}))},f=()=>{const D=l.scale>1?1:2;m(D),l.moveX=0,l.moveY=0},h=D=>Math.sqrt((D[0].clientX-D[1].clientX)**2+(D[0].clientY-D[1].clientY)**2);let y,g,v,b,u,p,k;const S=D=>{const{touches:w}=D,{offsetX:A}=n;n.start(D),k=w.length,y=l.moveX,g=l.moveY,p=Date.now(),l.moving=k===1&&l.scale!==1,l.zooming=k===2&&!A.value,l.zooming&&(v=l.scale,b=h(D.touches))},N=D=>{const{touches:w}=D;if(n.move(D),(l.moving||l.zooming)&&fn(D,!0),l.moving){const{deltaX:A,deltaY:L}=n,F=A.value+y,T=L.value+g;l.moveX=Fe(F,-s.value,s.value),l.moveY=Fe(T,-i.value,i.value)}if(l.zooming&&w.length===2){const A=h(w),L=v*A/b;m(L)}},C=()=>{if(k==1&&e.video&&e.video.source||k>1)return;const{offsetX:D,offsetY:w}=n,A=Date.now()-p,L=250,F=5;D.value<F&&w.value<F&&A<L&&(u?(clearTimeout(u),u=null,f()):u=setTimeout(()=>{e.contentClose&&o("close"),u=null},L))},B=D=>{let w=!1;(l.moving||l.zooming)&&(w=!0,l.moving&&y===l.moveX&&g===l.moveY&&(w=!1),D.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,v=1,l.scale<1&&d(),l.scale>e.maxZoom&&(l.scale=+e.maxZoom))),fn(D,w),C(),n.reset()},V=()=>{o("close")};return t.watch(()=>e.initNo,d),t.watch(()=>e.show,D=>{D||d()}),{...t.toRefs(l),onTouchStart:S,onTouchMove:N,onTouchEnd:B,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:V}}}),Gb=["src"];function Zb(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,Gb)):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 Jb=J(Qb,[["render",Zb]]),{create:_b}=W("image-preview"),eS=_b({props:{...Bs,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:Jb,CircleClose:te.CircleClose,[ie.name]:ie,[bt.name]:bt},setup(e,{emit:o}){const l=t.ref(),n=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),a=t.computed(()=>{const m="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${m}-right`:`${m}-left`}`}),r=t.computed(()=>ho(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=m=>{m!==n.active&&(n.active=m,o("change",n.active))},i=()=>{Ss(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}}}),tS={class:"fox-image-preview",ref:"swipeRef"},oS={key:0,class:"fox-image-preview-index"};function nS(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",tS,[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",oS,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 Vs=J(eS,[["render",nS]]);class lS{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 aS{options=new lS;constructor(o){const l=Object.assign(this.options,o),{unmount:n}=ri(l,{name:"image-preview",components:[ie,kt,bt,St,at],wrapper:()=>({setup(){return()=>(l.onClose=()=>{l.show=!1,t.nextTick(()=>{n()})},t.h(Vs,l))}})})}}const Ho=e=>new aS(e);Ho.install=e=>{e.use(Vs)};function rS(e){const o=t.getCurrentInstance();if(o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const{componentName:r2,create:sS}=W("countup"),iS=sS({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref([]),a=V=>{V&&n.value.push(V)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:d}=t.reactive(e);t.watch(()=>e.customChangeNum,(V,D)=>{f(),b(0)}),t.watch(()=>e.machinePrizeLevel,(V,D)=>{r.prizeLevelTrun=V}),t.watch(()=>e.initNum,(V,D)=>{r.current=V,r.valFlag=!1,m()}),t.watch(()=>e.endNum,(V,D)=>{r.current=e.initNum,r.valFlag=!1,m()});const m=()=>{if(r.valFlag)return!1;s&&(i||c?d!="machine"&&b():(v(),setTimeout(()=>{r.valFlag=!0},300)))},f=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(V,D,w)=>{const A=(V.toString().split(".")[1]||"").length,L=(D.toString().split(".")[1]||"").length,F=Math.pow(10,Math.max(A,L));return w=="-"?Number((V*F-D*F).toFixed(0))/F:Number((V*F+D*F).toFixed(0))/F},y=V=>{let{num_total_len:D,pointNum:w,initDigit1:A,initDigit2:L,sortFlag:F}=r,T=F=="add"||F=="equal"?String(L)[V-(D-w)]:10-Number(String(L)[V-(D-w)]),E=F=="add"||F=="equal"?String(A)[V]:10-Number(String(A)[V]),x=V>D-w-1?-T*100+"%":V<=String(A).length-1?-E*100+"%":0;return x=="-1000%"&&(x=0),x},g=V=>{let{num_total_len:D,pointNum:w,initDigit1:A,initDigit2:L,sortFlag:F}=r,T=String(L)[V-(D-w)];return V>D-w-1?T||0:V<=String(A).length-1?String(A)[V]:0},v=()=>{let{endNum:V,initNum:D,speed:w,toFixed:A}=e,L=setInterval(()=>{if(D>V)if(r.current<=V||r.current<=w)r.current=V.toFixed(A),clearInterval(L),o("scroll-end"),r.valFlag=!1;else{let F=parseFloat(String(r.current))-parseFloat(String(w));r.current=F.toFixed(A)}else if(r.current>=V)r.current=V.toFixed(A),clearInterval(L),o("scroll-end"),r.valFlag=!1;else{let F=parseFloat(String(r.current))+parseFloat(String(w));r.current=F.toFixed(A)}},e.during)},b=V=>{let{initNum:D,endNum:w,toFixed:A,customBgImg:L}=e;L&&(D=e.customChangeNum);let F,T,E,x;D!=0?(A!=0&&(D=Number(D.toFixed(A))),String(D).indexOf(".")>-1?(F=String(D).split(".")[0].length,T=String(D).split(".")[1].length):(F=String(D).length,T=0)):(F=1,T=0),w!=0?(A!=0&&(w=Number(w.toFixed(A))),String(w).indexOf(".")>-1?(E=String(w).split(".")[0].length,x=String(w).split(".")[1].length):(E=String(w).length,x=0)):(E=1,x=0);let $=F>=E?F:E,H=T>=x?T:x;r.num_total_len=$+H,r.pointNum=H,D>w?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(D,w,"-"),r.numberVal=Number(String(D))):D<w?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(w,D,"-"),r.numberVal=Number(String(w))):r.sortFlag="equal";var R=1;for(let Q=0;Q<r.pointNum;Q++)R*=10;var Y=r.numberVal*R;if(r.relNum=Y,A!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(Y).length),String(D).indexOf(".")>-1){let Q=String(D).split(".");r.initDigit1=Number(Q[0]),r.initDigit2=Number(Q[1])}else r.initDigit1=D,r.initDigit2=0;i&&!L?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let Q=n.value[r.num_total_len-1];u(Q)}):V!==0&&S()},u=V=>{f();var D=1;r.pointNum!=0&&(D=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{p(V),r.totalCount=h(r.totalCount,D,"-"),r.totalCount<=0&&(f(),o("scroll-end"),r.valFlag=!1)},e.during)},p=V=>{let D=V.getAttribute("turn-number"),w;if(r.sortFlag=="add"?w=parseInt(String(D))+1:w=parseInt(String(D))-1>=0?parseInt(String(D))-1:9,V.setAttribute("turn-number",String(w)),(V.style.transition=="none 0s ease 0s"||w==1||!V.style.transition)&&(V.style.transition=`all linear ${e.during}ms`),w==10||r.sortFlag=="reduce"&&w==0){var A=null;V.style.top=`-${r.sortFlag=="add"?w*100:(10-w)*100}%`,V.setAttribute("turn-number","0"),A=setTimeout(()=>{A&&clearTimeout(A),V.style.transition="none",V.style.top="0",k(V,w)},.975*e.during)}else V.style.top=`-${r.sortFlag=="add"?w*100:(10-w)*100}%`;V.style.top=="-100%"&&r.sortFlag=="reduce"&&p(V.previousSibling)},k=(V,D)=>{setTimeout(()=>{D==10&&V.previousSibling&&p(V.previousSibling)},200)},S=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{o("scroll-end"),r.valFlag=!1})})},N=()=>{for(r.notPrize=[];r.notPrize.length<3;){var V=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(V)==-1&&r.notPrize.push(V)}};rS({machineLuck:()=>{const V=e.machineTurnMore<0?0:e.machineTurnMore;let D=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&N();for(let w=0;w<e.machineNum;w++)setTimeout(()=>{let A=D*(w+1+parseFloat(String(V)));r.prizeYPrev.length!=0&&(r.prizeY[w]=r.prizeYPrev[w]);let L=r.prizeYPrev[w]?r.prizeYPrev[w]:0,F=A+L+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(D-L);r.prizeLevelTrun<0&&(F+=e.numHeight*r.notPrize[w]),B(w,F,L)},500*w)}});const B=(V,D,w)=>{let A=setInterval(()=>{if(w<=D)w+=10,r.prizeY[V]=parseFloat(String(w));else if(clearInterval(A),A=null,r.finshMachine+=1,r.prizeY[V]=D,r.finshMachine==e.machineNum){let L=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(T=>{let E=T;for(;E>L;)E-=L;r.prizeYPrev.push(E)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(o("scroll-end",!1),r.valFlag=!1):(o("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{m()})}),t.onUnmounted(()=>{f(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:l,setRef:a,topNumber:y,turnNumber:g}}}),cS={class:"fox-countup"},uS=["turn-number"];function dS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",cS,[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,uS))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px",top:0,left:e.numWidth*(e.num_total_len-e.pointNum)+"px"})},".",4)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.current),1)],64))],64))])}const oa=J(iS,[["render",dS]]),fS=e=>{if(!e)return Date.now();let o=Number(e),l=o>0?+o:o.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:mS,create:pS}=W("countdown"),hS=pS({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(()=>({[mS]:!0})),r=t.computed(()=>c(n.restTime)),s=()=>{n.handleEndTime=e.endTime,n.diffTime=Date.now()-fS(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 v=y;let b={d:0,h:0,m:0,s:0,ms:0};const u=1e3,p=60*u,k=60*p,S=24*k;return v>0&&(b.d=v>=u?Math.floor(v/S):0,b.h=Math.floor(v%S/k),b.m=Math.floor(v%k/p),b.s=Math.floor(v%p/u),b.ms=Math.floor(v%u)),g=="custom"?b:d({...b})},d=y=>{let{d:g,h:v,m:b,s:u,ms:p}=y,k=e.format;if(k.includes("DD")?k=k.replace("DD",Je(g)):v+=Number(g)*24,k.includes("HH")?k=k.replace("HH",Je(v)):b+=Number(v)*60,k.includes("mm")?k=k.replace("mm",Je(b)):u+=Number(b)*60,k.includes("ss")?k=k.replace("ss",Je(u)):p+=Number(u)*1e3,k.includes("S")){const S=Je(p,3).toString();k.includes("SSS")?k=k.replace("SSS",S):k.includes("SS")?k=k.replace("SS",S.slice(0,2)):k.includes("S")&&(k=k.replace("SS",S.slice(0,1)))}return k},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}}}),gS=["innerHTML"];function yS(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,gS))],2)}const na=J(hS,[["render",yS]]),{create:vS}=W("badge"),kS=vS({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const o=t.reactive({}),l=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),n=t.computed(()=>{if(e.dot)return;const a=e.value,r=e.max;return typeof a=="number"&&typeof r=="number"&&r<a?`${r}+`:a});return{state:o,stl:l,content:n}}}),bS={class:"fox-badge"},SS=["textContent"];function CS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",bS,[t.withDirectives(t.createElementVNode("view",{class:"fox-badge__icon",style:t.normalizeStyle(e.stl)},[t.renderSlot(e.$slots,"icon")],4),[[t.vShow,!e.hidden&&!e.dot&&e.$slots.icon]]),t.renderSlot(e.$slots,"default"),t.withDirectives(t.createElementVNode("view",{textContent:t.toDisplayString(e.content),class:t.normalizeClass(["fox-badge__content fox-badge__content--sup",{"fox-badge__content--dot":e.dot,"fox-badge__content--bubble":!e.dot&&e.bubble}]),style:t.normalizeStyle(e.stl)},null,14,SS),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const la=J(kS,[["render",CS]]),{componentName:wS,create:NS}=W("tag"),BS=NS({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=wS;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 VS(e,o,l,n,a,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const Wt=J(BS,[["render",VS]]),{create:AS}=W("popover"),$S=AS({components:{FoxPopup:ie},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:o}){const l=t.ref(),n=t.ref(),a=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const p="fox-popover-arrow",k=e.location,S=k.split("-")[0];return`${p} ${p}-${S} ${p}--${k}`}),c=t.computed(()=>{const p={},{bgColor:k,arrowOffset:S,location:N}=e,C=N.split("-")[0],B=N.split("-")[1],V=16;return k&&(p[`border${d(C)}Color`]=k),e.arrowOffset!=0&&(["bottom","top"].includes(C)&&(B||(p.left=`calc(50% + ${S}px)`),B=="start"&&(p.left=`${V+S}px`),B=="end"&&(p.right=`${V-S}px`)),["left","right"].includes(C)&&(B||(p.top=`calc(50% - ${S}px)`),B=="start"&&(p.top=`${V-S}px`),B=="end"&&(p.bottom=`${V+S}px`))),p}),d=p=>(p=p.toLowerCase(),p=p.replace(/\b\w+\b/g,k=>k.substring(0,1).toUpperCase()+k.substring(1)),p),m=t.computed(()=>{let p={};if(!r.value||!s.value)return{};const k=s.value.width,S=s.value.height,{width:N,height:C,left:B,top:V}=r.value,{location:D,offset:w}=e,A=D.split("-")[0],L=D.split("-")[1];let F=0,T=0;if(ho(w)&&w.length==2&&(F+=Number(w[1]),T+=Number(w[0])),N){if(["bottom","top"].includes(A)){const E=A=="bottom"?C+F:-(S+F);p.top=`${V+E}px`,L||(p.left=`${-(k-N)/2+B+T}px`),L=="start"&&(p.left=`${B+T}px`),L=="end"&&(p.left=`${r.value.right+T}px`)}if(["left","right"].includes(A)){const E=A=="left"?-(k+F):N+F;p.left=`${B+E}px`,L||(p.top=`${V-S/2+C/2-4+T}px`),L=="start"&&(p.top=`${V+T}px`),L=="end"&&(p.top=`${V+C+T}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")},v=()=>{o("update:visible",!1),o("close")},b=(p,k)=>{!p.disabled&&o("choose",p,k),e.closeOnClickAction&&v()},u=p=>{const k=l.value,S=n.value;let N=k&&!k.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&&v()};return{showPopup:a,openPopover:g,popoverArrow:i,closePopover:v,chooseItem:b,popoverRef:l,popoverContentRef:n,getRootPosition:m,customStyle:f,popoverArrowStyle:c,renderIcon:jr}}}),TS={ref:"popoverContentRef",class:"fox-popover-content-group"},ES=["onClick"],DS={class:"fox-popover-menu-item-name"};function xS(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",TS,[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",DS,t.toDisplayString(i.name),1)],10,ES))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Yt=J($S,[["render",xS]]),IS=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:qS}=W("skeleton"),MS=qS(IS({[jt.name]:jt})),zS={key:0},LS={key:1,class:"fox-skeleton"},PS={key:0,class:"fox-skeleton-animation"},FS={class:"fox-skeleton-content"};function RS(e,o,l,n,a,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",LS,[e.animated?(t.openBlock(),t.createElementBlock("view",PS)):t.createCommentVNode("",!0),t.createElementVNode("view",FS,[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",zS,[t.renderSlot(e.$slots,"default")]))}const aa=J(MS,[["render",RS]]),{create:OS,componentName:KS}=W("collapse"),US=OS({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(()=>({[KS]:!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 HS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const ra=J(US,[["render",HS]]),{create:jS,componentName:WS}=W("collapse-item"),YS=jS({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=WS;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:jr,wrapperRef:o,contentRef:l,open:m,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:d}}}),XS={class:"fox-collapse-item__title-main"},QS={class:"fox-collapse-item__title-main-value"},GS=["innerHTML"],ZS={key:2,class:"fox-collapse-item__title-label"},JS={key:0,class:"fox-collapse-item__title-sub"},_S=["innerHTML"],e1={key:0,class:"fox-collapse__item-extraWrapper"},t1={class:"fox-collapse__item-extraWrapper__extraRender"},o1={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function n1(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",XS,[t.createElementVNode("view",QS,[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,GS)),e.label?(t.openBlock(),t.createElementBlock("view",ZS,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",JS,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,_S)),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",e1,[t.createElementVNode("div",t1,[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",o1,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const sa=J(YS,[["render",n1]]),l1=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:a1,create:r1,scope:s1}=W("table"),i1=r1({components:{RenderColumn:l1,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(s1),a=t.reactive({curData:e.data}),r=t.computed(()=>({[a1]:!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(v=>v.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}}}),c1={class:"fox-table__main__head"},u1={class:"fox-table__main__head__tr"},d1=["onClick"],f1={class:"fox-table__main__body"},m1={key:1},p1={key:0,class:"fox-table__nodata"},h1={key:0,class:"fox-table__nodata__text"},g1={key:1,class:"fox-table__summary"},y1=["innerHTML"];function v1(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",c1,[t.createElementVNode("view",u1,[(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,d1))),128))])]),t.createElementVNode("view",f1,[(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",m1,t.toDisplayString(c[d]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",p1,[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",h1,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",g1,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,y1)])):t.createCommentVNode("",!0)],2)}const ia=J(i1,[["render",v1]]),{componentName:k1,create:b1}=W("ellipsis"),S1=b1({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:o}){const l=t.ref(null);let n=null,a=0;const r=t.ref(),s=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>({[k1]:!0}));t.watch(()=>e.content,(v,b)=>{v!=b&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!l.value)return;const v=window.getComputedStyle(l.value);n=document.createElement("div"),Array.prototype.slice.apply(v).forEach(p=>{n.style.setProperty(p,v.getPropertyValue(p))}),n.style.position="fixed",n.style.left="999999px",n.style.top="999999px",n.style.zIndex="-1000",n.style.height="auto",n.style.minHeight="auto",n.style.maxHeight="auto",n.style.textOverflow="clip",n.style.whiteSpace="normal",n.style.webkitLineClamp="unset",n.style.display="block";const u=h(v.lineHeight==="normal"?e.lineHeight:v.lineHeight);a=Math.floor(u*(Number(e.rows)+.5)+h(v.paddingTop)+h(v.paddingBottom)),n.innerText=e.content,document.body.appendChild(n),d()},d=()=>{if(n.offsetHeight<=a)s.exceeded=!1,document.body.removeChild(n);else{s.exceeded=!0;const v=e.content.length,b=Math.floor((0+v)/2),u=e.direction==="middle"?f([0,b],[b,v]):m(0,v);r.value=u,document.body.removeChild(n)}},m=(v,b)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(b-v<=1)return e.direction==="end"?{leading:e.content.slice(0,v)+e.symbol}:{tailing:e.symbol+e.content.slice(b,p)};const k=Math.round((v+b)/2);return e.direction==="end"?n.innerText=e.content.slice(0,k)+e.symbol+u:n.innerText=u+e.symbol+e.content.slice(k,p),n.offsetHeight<=a?e.direction==="end"?m(k,b):m(v,k):e.direction==="end"?m(v,k):m(k,b)},f=(v,b)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(v[1]-v[0]<=1&&b[1]-b[0]<=1)return{leading:e.content.slice(0,v[0])+e.symbol,tailing:e.symbol+e.content.slice(b[1],p)};const k=Math.floor((v[0]+v[1])/2),S=Math.ceil((b[0]+b[1])/2);return n.innerText=e.content.slice(0,k)+e.symbol+u+e.symbol+e.content.slice(S,p),n.offsetHeight<=a?f([k,v[1]],[b[0],S]):f([v[0],k],[S,b[1]])},h=v=>{if(!v)return 0;const b=v.match(/^\d*(\.\d*)?/);return b?Number(b[0]):0},y=v=>{v==1?(s.expanded=!0,o("change","expand")):(s.expanded=!1,o("change","collapse"))},g=()=>{o("click")};return{...t.toRefs(s),root:l,ellipsis:r,classes:i,clickHandle:y,handleClick:g}}}),C1={key:0},w1={key:1},N1={key:2};function B1(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",C1,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",w1,[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",N1,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:o[1]||(o[1]=t.withModifiers(s=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const ca=J(S1,[["render",B1]]),{componentName:V1,create:A1}=W("animate"),$1=A1({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,[`${V1}-${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}}}),T1={class:"fox-animate"};function E1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",T1,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...s)=>e.handleClick&&e.handleClick(...s)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const ua=J($1,[["render",E1]]),{componentName:D1,create:x1}=W("watermark"),I1=x1({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:v,fontSize:b,fontFamily:u}=e,p=()=>{const S=document.createElement("canvas"),N=window.devicePixelRatio,C=S.getContext("2d"),B=`${(a+s)*N}px`,V=`${(r+i)*N}px`,D=s*N,w=i*N;if(S.setAttribute("width",B),S.setAttribute("height",V),C){if(d){C.translate(D/2,w/2),C.rotate(Math.PI/180*Number(c));const A=new Image;A.crossOrigin="anonymous",A.referrerPolicy="no-referrer",A.src=d,A.onload=()=>{C.drawImage(A,-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(D/2,w/2),C.rotate(Math.PI/180*Number(c));const A=Number(b)*N;C.font=`${y} normal ${g} ${A}px/${w}px ${u}`,C.fillStyle=v,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,v,b,u],()=>{p()});const k=t.computed(()=>{const S=D1;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...t.toRefs(l),classes:k}}});function q1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}const da=J(I1,[["render",q1]]);function M1(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:z1,create:L1}=W("trend-arrow"),P1=L1({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(()=>({[z1]:!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?"+":"-":""}${M1(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 F1(e,o,l,n,a,r){const s=t.resolveComponent("TriangleUp"),i=t.resolveComponent("TriangleDown");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.arrowLeft?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?t.renderSlot(e.$slots,"up-icon",{key:1},()=>[t.createVNode(s,{color:e.riseColor},null,8,["color"])]):t.createCommentVNode("",!0),Number(e.rate)!==0&&!e.rateTrend?t.renderSlot(e.$slots,"down-icon",{key:2},()=>[t.createVNode(i,{color:e.dropColor},null,8,["color"])]):t.createCommentVNode("",!0),e.arrowLeft?(t.openBlock(),t.createElementBlock("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)):t.createCommentVNode("",!0)],2)}const fa=J(P1,[["render",F1]]),{create:R1}=W("tour"),O1=R1({components:{[Yt.name]:Yt,Close:te.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:o}){const l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),n=t.ref({}),a=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:m,maskWidth:f,maskHeight:h}=e,{width:y,height:g,left:v,top:b}=n.value,u=[v+y/2,b+g/2],p=Number(f||y),k=Number(h||g);return{width:`${p+ +m[1]*2}px`,height:`${k+ +m[0]*2}px`,top:`${u[1]-k/2-+m[0]}px`,left:`${u[0]-p/2-+m[1]}px`}}),s=m=>{m=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,i()}),o("change",l.active)},i=()=>{const m=document.querySelector(`#${e.steps[l.active].target}`),f=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}}}),K1={key:0,class:"fox-tour-content"},U1={key:0,class:"fox-tour-content-top"},H1={class:"fox-tour-content-inner"},j1={class:"fox-tour-content-bottom"},W1={class:"fox-tour-content-bottom-init"},Y1={class:"fox-tour-content-bottom-operate"},X1={key:1,class:"fox-tour-content fox-tour-content-tile"},Q1={class:"fox-tour-content-inner"};function G1(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",K1,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",U1,[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",H1,t.toDisplayString(c.content),1),t.createElementVNode("div",j1,[t.createElementVNode("div",W1,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",Y1,[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",X1,[t.createElementVNode("div",Q1,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const ma=J(O1,[["render",G1]]),{componentName:s2,create:Z1,scope:J1}=W("address"),_1=Z1({components:{Location:te.Location,Location2:te.Location2,Check:te.Check,Close:te.Close,Left:te.Left,[ie.name]:ie,[Rt.name]:Rt},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(J1),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=E=>{if(!Array.isArray(E))throw new TypeError("params muse be array.");if(!E.length)return[];E.forEach($=>{if(!$.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const x=[];return E=E.sort(($,H)=>$.title.localeCompare(H.title)),E.forEach($=>{const H=x.findIndex(R=>R.title===$.title);H<=-1?x.push({title:$.title,list:[].concat($)}):x[H].list.push($)}),x};let g=t.ref([]),v=t.reactive({});const b=t.ref("self"),u=t.ref(20),p=()=>{const E=e.modelValue,x=E.length;if(x>0){if(i.value=x-1,h.value.length==0){i.value=0;return}for(let $=0;$<x;$++){let H=[];switch($){case 0:H=e.province;break;case 1:H=e.city;break;case 2:H=e.country;break;default:H=e.town}g.value[$]=H.filter(R=>R.id==E[$])[0]}S()}},k=(E,x)=>E&&E.name||i.value<x&&E?E.name:e.columnsPlaceholder[x]||l("select"),S=()=>{B(),t.nextTick(()=>{const E=a.value&&a.value.getElementsByClassName("active")[0];if(E){const x=E.offsetLeft;u.value=x||20}})},N=E=>{const x=i.value;c.value=i.value;const $={custom:d.value[x]};g.value[x]=E;for(let H=x+2;H<4;H++)g.value.splice(H,1);x<3?(i.value=x+1,S(),$.next=d.value[i.value],$.value=E,o("change",$)):(w(),o("update:modelValue"))},C=(E,x)=>{c.value=i.value,k(E,x)&&(i.value=x,S())},B=()=>{const E=m.value,x=c.value,$=f.value[i.value];E?.scrollTop&&(f.value[x]=E?.scrollTop),t.nextTick(()=>{E?.scrollTo({top:$,behavior:"auto"})})},V=E=>{const x=e.existAddress;let $={};x.forEach(H=>{H&&H.selectedAddress&&($=H),H.selectedAddress=!1}),E.selectedAddress=!0,v=E,o("selected",$,E,x),w()},D=()=>{g.value=[],i.value=0,S()},w=(E="self")=>{b.value=E=="cross"?"cross":"self",r.value=!1},A=()=>{b.value="mask"},L=()=>{const E={addressIdStr:"",addressStr:"",province:g.value[0],city:g.value[1],country:g.value[2],town:g.value[3]},x={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach($=>{const H=g.value[$];E.addressIdStr+=`${$?"_":""}${H&&H.id||0}`,E.addressStr+=H&&H.name||""}),x.data=E):x.data=v,D(),b.value=="self"?o("close",x):o("close-mask",{closeWay:b}),o("update:visible",!1)},F=()=>{const E=s.value;s.value=E=="exist"?"custom":"exist",D(),o("switch-module",{type:s.value})},T=(E,x)=>{N(x)};return t.watch(()=>e.visible,E=>{r.value=E}),t.watch(()=>r.value,E=>{E&&p()}),{showPopup:r,privateType:s,tabIndex:i,tabName:d,selectedRegion:g,switchModule:F,closeWay:b,close:L,getTabName:k,nextAreaList:N,regionLine:n,tabRegion:a,lineDistance:u,changeRegionTab:C,selectedExist:V,clickOverlay:A,handClose:w,handleElevatorItem:T,initCustomSelected:p,...t.toRefs(e),t:l,regionList:h,transformData:y,scrollDom:m}}}),eC={class:"fox-address"},tC={class:"fox-address__header"},oC={class:"fox-address__header__title"},nC={key:0,class:"fox-address__custom"},lC={class:"fox-address__region",ref:"tabRegion"},aC=["onClick"],rC={key:0,class:"active fox-address__region-item"},sC={key:0,class:"fox-address__detail"},iC={class:"fox-address__detail-list",ref:"scrollDom"},cC=["onClick"],uC={key:1,class:"fox-address__elevator-group"},dC={key:1,class:"fox-address__exist"},fC={class:"fox-address__exist-group"},mC={class:"fox-address__exist-group-list"},pC=["onClick"],hC={class:"fox-address__exist-item-info"},gC={key:0,class:"fox-address__exist-item-info-name"},yC={key:1,class:"fox-address__exist-item-info-phone"},vC={class:"fox-address__exist-item-info-bottom"},kC={class:"fox-address__exist-choose-btn"};function bC(e,o,l,n,a,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),d=t.resolveComponent("fox-elevator"),m=t.resolveComponent("Location2"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:o[3]||(o[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":o[4]||(o[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",eC,[t.createElementVNode("view",tC,[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",oC,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",nC,[t.createElementVNode("view",lC,[(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,aC))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",rC,[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",sC,[t.createElementVNode("ul",iC,[(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,cC))),128))],512)])):(t.openBlock(),t.createElementBlock("view",uC,[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",dC,[t.createElementVNode("div",fC,[t.createElementVNode("ul",mC,[(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",hC,[h.name?(t.openBlock(),t.createElementBlock("div",gC,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",yC,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",vC,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,pC))),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",kC,t.toDisplayString(e.customAndExistTitle||e.t("chooseAnotherAddress")),1)])):t.createCommentVNode("",!0)])),t.renderSlot(e.$slots,"bottom")])]),_:3},8,["lock-scroll","onClose","onClickOverlay","visible","teleportDisable","teleport"])}const pa=J(_1,[["render",bC]]),{componentName:SC,create:CC}=W("barrage"),wC=CC({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const o=new Date().getTime(),l=!!t.useSlots().default,n=t.computed(()=>({[SC]:!0}));let a=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),d=t.ref(e.top),m=t.ref(0),f=e.speeds,h=t.ref(0);t.onMounted(()=>{y(),l&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(v(),m.value=0,g("hidden")):document.visibilityState==="visible"&&y()})}),t.onUnmounted(()=>{i.value=[],v()});const y=()=>{h.value=a.value.offsetWidth,l&&g("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${h.value}px`),u()},300)},g=k=>{let N=document.getElementsByClassName("slotBody"+o)?.[0]?.children||[];const C=[];N&&Array.from(N).forEach(B=>{k=="init"?(B.style.opacity="0",C.push(B)):(B.classList="",B.style={})}),k=="init"&&(i.value=C)},v=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,k=>{e.danmu.length>0&&(i.value=[...k])});const b=k=>{const S=m.value%i.value.length;!e.loop&&m.value===i.value.length?i.value.splice(i.value.length,0,k):i.value.splice(S,0,k)},u=()=>{v(),s=setTimeout(()=>{p()},e.frequency)},p=()=>{const k=e.loop?m.value%i.value.length:m.value;let S=document.createElement("view");l&&typeof i.value[k]=="object"?(S=i.value[k],S?.classList?.add("fox-barrage__item")):(S.innerHTML=i.value[k],S.classList.add("fox-barrage__item"),r.value.appendChild(S)),t.nextTick(()=>{const N=S.offsetHeight;if(S?.classList?.add("move"),S.style.animationDuration=`${f}ms`,S.style.top=k%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:b}}});function NC(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"dmBody",class:t.normalizeClass(e.classes)},[t.createElementVNode("div",{ref:"dmContainer",class:t.normalizeClass(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["slotBody","slotBody"+e.classTime])},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)],2)],2)}const ha=J(wC,[["render",NC]]),{componentName:BC,create:VC,scope:AC}=W("signature"),$C=VC({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(AC),n=l(e,["unSupportTpl","reSign","confirmText"]),a=t.ref(null),r=t.ref(null),s=t.computed(()=>({[BC]:!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 k=i.isSupportTouch?p.touches[0]:p;o("signing",k);let S=a.value.getBoundingClientRect(),N=k.clientX-S.left,C=k.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")},v=()=>{u(a.value)},b=p=>{if(!p)return!0;var k=document.createElement("canvas");return k.width=p.width,k.height=p.height,p?.toDataURL()==k.toDataURL()},u=p=>{let k;switch(e.type){case"png":k=p.toDataURL("image/png");break;case"jpg":k=p.toDataURL("image/jpeg",.8);break}const S=b(p)?"请绘制签名":p,N=b(p)?"":k;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:v,clear:g,classes:s}}}),TC={class:"fox-signature-inner",ref:"wrap"},EC=["height","width"],DC={key:0,class:"fox-signature-unsopport"};function xC(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",TC,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,EC),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",DC,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(s,{class:"fox-signature-btn",type:"default",onClick:o[0]||(o[0]=i=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(s,{class:"fox-signature-btn",type:"primary",onClick:o[1]||(o[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const ga=J($C,[["render",xC]]),{componentName:IC,create:qC,scope:MC}=W("time-select"),zC=qC({components:{[ie.name]:ie},props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!0},teleportDisable:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,o)=>{const{t:l}=ae.useFoxI18n(MC),n=t.computed(()=>({[IC]:!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}}}),LC={class:"fox-time-select__title"},PC={class:"fox-time-select__title__fixed"},FC={key:0},RC={class:"fox-time-select__content"},OC={class:"fox-time-select__content__pannel"},KC={class:"fox-time-select__content__detail"};function UC(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",LC,[t.createElementVNode("view",PC,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",FC,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",RC,[t.createElementVNode("view",OC,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",KC,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const ya=J(zC,[["render",UC]]),{componentName:HC,create:jC}=W("time-pannel"),WC=jC({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(()=>({[HC]:!0,"fox-time-pannel--curr":n.currentKey==e.pannelKey})),r=s=>{o.emit("change",s)};return{...t.toRefs(n),classes:a,handlePannel:r}}});function YC(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=s=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const va=J(WC,[["render",YC]]),{componentName:XC,create:QC}=W("time-detail"),GC=QC({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(()=>({[XC]:!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}}}),ZC={class:"fox-time-detail__detail fox-time-detail__detail--moring"},JC={class:"fox-time-detail__detail__list"},_C=["onClick"];function ew(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",ZC,[t.createElementVNode("view",JC,[(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,_C))),128))])])],2)}const ka=J(GC,[["render",ew]]),{componentName:i2,create:tw,scope:ow}=W("sku-header"),nw=tw({props:{goods:{type:Object,default:{}}},emits:[],components:{[Xe.name]:Xe},setup(e,{emit:o,slots:l}){const{t:n}=ae.useFoxI18n(ow);return{getSlots:r=>l[r],t:n}}}),lw={class:"fox-sku-header"},aw=["src"],rw={class:"fox-sku-header-right"},sw={key:3,class:"fox-sku-header-right-extra"};function iw(e,o,l,n,a,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",lw,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,aw),t.createElementVNode("view",rw,[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",sw,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const cw=J(nw,[["render",iw]]),{componentName:c2,create:uw}=W("sku-select"),dw=uw({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})}}}}),fw={class:"fox-sku-select"},mw={class:"fox-sku-select-item-title"},pw={class:"fox-sku-select-item-skus"},hw=["onClick"];function gw(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",fw,[(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",mw,t.toDisplayString(s.name),1),t.createElementVNode("view",pw,[(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,hw))),128))])]))),128))])}const yw=J(dw,[["render",gw]]),{componentName:u2,create:vw}=W("sku-stepper"),kw=vw({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)}}}}),bw={class:"fox-sku-stepper"},Sw={class:"fox-sku-stepper-title"},Cw=["innerHTML"],ww={class:"fox-sku-stepper-count"};function Nw(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",bw,[t.createElementVNode("view",Sw,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,Cw),t.createElementVNode("view",ww,[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 Bw=J(kw,[["render",Nw]]),{componentName:d2,create:Vw}=W("sku-operate"),Aw=Vw({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]}}}),$w={key:0,class:"fox-sku-operate"},Tw={key:0,class:"fox-sku-operate-desc"},Ew={key:1,class:"fox-sku-operate-btn"},Dw=["onClick"];function xw(e,o,l,n,a,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",$w,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",Tw,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",Ew,[(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,Dw))),128))]))])):t.createCommentVNode("",!0)}const Iw=J(Aw,[["render",xw]]),{componentName:f2,create:qw,scope:Mw}=W("sku"),zw=qw({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:cw,SkuSelect:yw,SkuStepper:Bw,SkuOperate:Iw,[ie.name]:ie},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(Mw),a=n(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,b=>{r.value=b}),t.watch(()=>r.value,b=>{b==!1&&v()}),t.onMounted(()=>{});const i=b=>l[b],c=b=>{o("select-sku",b)},d=b=>{s.value=b,o("change-stepper",b)},m=b=>{o("add",b)},f=b=>{o("reduce",b)},h=b=>{o("over-limit",b)},y=b=>{o("click-btn-operate",{type:b,value:s.value})},g=b=>{b=="icon"&&o("click-close-icon"),b=="overlay"&&o("click-overlay"),b=="close"&&o("close"),r.value=!1},v=()=>{o("update:visible",!1)};return{showPopup:r,closePopup:g,selectSku:c,changeStepper:d,stepperOverLimit:h,clickBtnOperate:y,add:m,reduce:f,getSlots:i,...a}}}),Lw={class:"fox-sku"},Pw={class:"fox-sku-content"};function Fw(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",Lw,[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",Pw,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(d,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const ba=J(zw,[["render",Fw]]),{create:Rw}=W("card"),Ow=Rw({components:{[Xe.name]:Xe,[Wt.name]:Wt},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:o,slots:l}){return{isHaveSlot:a=>l[a]}}}),Kw={class:"fox-card"},Uw={class:"fox-card__left"},Hw=["src"],jw={class:"fox-card__right"},Ww={class:"fox-card__right__title"},Yw={key:0,class:"fox-card__right__price"},Xw={class:"fox-card__right__other"},Qw={class:"fox-card__right__shop"},Gw={class:"fox-card__right__shop__name"};function Zw(e,o,l,n,a,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",Kw,[t.createElementVNode("div",Uw,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,Hw)]),t.createElementVNode("div",jw,[t.createElementVNode("div",Ww,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",Yw,[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",Xw,[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",Qw,[t.createElementVNode("div",Gw,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Sa=J(Ow,[["render",Zw]]),{create:Jw,scope:_w}=W("ecard"),eN=Jw({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(_w),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}}}),tN={class:"fox-ecard"},oN={class:"fox-ecard__title"},nN={class:"fox-ecard__list"},lN=["onClick"],aN={class:"fox-ecard__list__input--con"},rN=["placeholder"],sN={class:"fox-ecard__list__step"};function iN(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",tN,[t.createElementVNode("view",oN,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",nN,[(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,lN))),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",aN,[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,rN),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",sN,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(s,{modelValue:e.stepValue,"onUpdate:modelValue":o[3]||(o[3]=i=>e.stepValue=i),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const Ca=J(eN,[["render",iN]]),{create:cN,scope:uN}=W("address-list-item"),dN=cN({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(uN);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}}}),fN={class:"fox-address-list-item__info"},mN={class:"fox-address-list-item__info-contact"},pN={class:"fox-address-list-item__info-contact-name"},hN={class:"fox-address-list-item__info-contact-tel"},gN={key:0,class:"fox-address-list-item__info-contact-default"},yN={class:"fox-address-list-item__info-handle"},vN={class:"fox-address-list-item__addr"};function kN(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",fN,[t.createElementVNode("div",mN,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",pN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",hN,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",gN,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",yN,[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",vN,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const hr=J(dN,[["render",kN]]),{create:bN}=W("address-list-general"),SN=bN({props:{item:{type:Object,default:{}},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1}},emits:["delIcon","editIcon","clickItem","longDown","longCopy","longSet","longDel","swipeDel"],components:{ItemContents:hr,[Ie.name]:Ie,[Ut.name]:Ut},setup(e,{emit:o}){const l=()=>t.h(hr,{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}}}}),CN={key:0,class:"fox-address-list-general"},wN={class:"fox-address-list-swipe"};function NN(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",wN,[(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",CN,[(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 BN=J(SN,[["render",NN]]),{componentName:VN,create:AN,scope:$N}=W("address-list"),TN=AN({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:BN,[Ie.name]:Ie},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n($N),n=t.ref([]),a=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[VN]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(n.value=e.data.map(v=>xr(a,v,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(v,b)=>{o("delIcon",v,b),v.stopPropagation()},c=(v,b)=>{o("editIcon",v,b),v.stopPropagation()},d=(v,b)=>{o("clickItem",v,b),v.stopPropagation()},m=(v,b)=>{o("longCopy",v,b),v.stopPropagation()},f=(v,b)=>{o("longSet",v,b),v.stopPropagation()},h=(v,b)=>{o("longDel",v,b),v.stopPropagation()},y=(v,b)=>{o("swipeDel",v,b),v.stopPropagation()},g=v=>{o("add",v),v.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:d,clickLongCopy:m,clickLongSet:f,clickLongDel:h,clickSwipeDel:y,addAddress:g,dataArray:n,t:l}}});function EN(e,o,l,n,a,r){const s=t.resolveComponent("general-shell"),i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,d)=>(t.openBlock(),t.createBlock(s,{key:d,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:o[0]||(o[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const wa=J(TN,[["render",EN]]),{componentName:m2,create:DN}=W("category"),xN=DN({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}}}),IN={class:"fox-category"},qN={class:"fox-category__cateList"},MN={key:0},zN=["onClick"];function LN(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",IN,[t.createElementVNode("div",qN,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",MN,[(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,zN)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Na=J(xN,[["render",LN]]),{componentName:p2,create:PN}=W("category-pane"),FN=PN({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:o}){return{onChange:n=>{o("onChange",n)}}}}),RN={class:"fox-category-pane"},ON={key:0,class:"fox-category-pane__cateListRight"},KN={class:"fox-category-pane__childTitle"},UN={key:0,class:"fox-category-pane__childItemList"},HN=["onClick"],jN=["src"],WN={class:"fox-category-pane__skuImg"},YN={key:1,class:"fox-category-pane__cateListRight"},XN={class:"fox-category-pane__childTitle"},QN={key:0,class:"fox-category-pane__childItemList"},GN=["onClick"],ZN={class:"fox-category-pane__skuName"},JN={key:2,class:"fox-category-pane__selfItemList"},_N=["onClick"];function eB(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",RN,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",ON,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",KN,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",UN,[(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,jN),t.createElementVNode("div",WN,t.toDisplayString(c?.catName),1)],8,HN))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(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("div",ZN,t.toDisplayString(c?.catName),1)],8,GN))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",JN,[(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,_N))),128))])):t.createCommentVNode("",!0)])}const Ba=J(FN,[["render",eB]]),{componentName:h2,create:tB}=W("comment-header"),oB=tB({components:{[vt.name]:vt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:o}){return{handleClick:()=>{o("handleClick")}}}}),nB={class:"fox-comment-header__user"},lB={class:"fox-comment-header__user-avter"},aB=["src"],rB={class:"fox-comment-header__user-score"},sB={key:0,class:"fox-comment-header__time"};function iB(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",nB,[t.createElementVNode("view",lB,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,aB)):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",rB,[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",sB,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 cB=J(oB,[["render",iB]]),{componentName:g2,create:uB}=W("comment-images"),dB=uB({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}}}),fB=["onClick"],mB=["src"],pB=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),hB=["onClick"],gB=["src"],yB={key:0,class:"fox-comment-images__mask"};function vB(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,mB),pB],8,fB))),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,gB),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",yB,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,hB)):t.createCommentVNode("",!0)],64))),128))],2)}const kB=J(dB,[["render",vB]]),{componentName:y2,create:bB,scope:SB}=W("comment-bottom"),CB=bB({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:te.Fabulous,Comment:te.Comment,MoreX:te.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(SB),n=t.ref(!1),a=t.ref([]);return t.onMounted(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&a.value.push(c)})}),{showPopver:n,operate:i=>{i=="more"&&(n.value=!n.value),o("clickOperate",i)},mergeOp:a,handleClick:()=>{o("handleClick")},t:l}}}),wB={class:"fox-comment-bottom"},NB={key:0},BB={class:"fox-comment-bottom__cpx"},VB=["onClick"];function AB(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",wB,[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",NB,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",BB,[(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,VB))),128))])])}const $B=J(CB,[["render",AB]]),{componentName:TB,create:EB,scope:DB}=W("comment"),xB=EB({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:cB,CommentImages:kB,CommentBottom:$B,Right:te.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(DB),n=t.computed(()=>({[TB]:!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}}}),IB=["innerHTML"],qB={class:"fox-comment__follow-title"},MB={class:"fox-comment__follow-com"},zB={key:0,class:"fox-comment__follow-img"};function LB(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,IB),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",qB,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",MB,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",zB,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",e.follow.images.length))+" ",1),t.createVNode(c,{width:"12px"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(d,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const Va=J(xB,[["render",LB]]),PB=[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,ie,kl,bl,Sl,Cl,Mt,wl,Nl,Bl,Vl,Al,$l,Tl,El,Dl,Rt,xl,zt,Lt,Il,ql,Ml,zl,Ot,Ko,Io,Mo,qo,Qe,vt,yt,Ll,Pl,Fl,Ut,Rl,Ol,Kl,Ht,Oo,Ul,jl,Ro,Ct,Yl,Xl,jt,Ql,Gl,Kt,Zl,Jl,_l,kt,ea,ta,bt,St,Xe,Ho,oa,na,la,Wt,Yt,aa,ra,sa,ia,ca,ua,da,fa,ma,pa,ha,ga,ya,va,ka,ba,Sa,Ca,wa,Na,Ba,Va],FB=new ai(PB,"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=jt;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=Ht;exports.Divider=wl;exports.Domain=bo;exports.DomainKey=De;exports.DomainProvider=hl;exports.Drag=Kl;exports.Ecard=Ca;exports.Elevator=Rt;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=jt;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=Ht;exports.FoxDivider=wl;exports.FoxDomainProvider=hl;exports.FoxDrag=Kl;exports.FoxEcard=Ca;exports.FoxElevator=Rt;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=yt;exports.FoxPickerItem=Qn;exports.FoxPopover=Yt;exports.FoxPopup=ie;exports.FoxPopupWrapper=fl;exports.FoxPrice=Xe;exports.FoxProgress=Kt;exports.FoxPullRefresh=Ul;exports.FoxRadio=zo;exports.FoxRadioGroup=Lo;exports.FoxRadioItem=el;exports.FoxRange=Ot;exports.FoxRate=vt;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=Mt;exports.FoxSubSideNavBar=zl;exports.FoxSwipe=Ut;exports.FoxSwiper=bt;exports.FoxSwiperItem=St;exports.FoxSwitch=Ro;exports.FoxSwitchItem=ol;exports.FoxTabPane=Lt;exports.FoxTabbar=El;exports.FoxTabbarItem=Dl;exports.FoxTable=ia;exports.FoxTabs=zt;exports.FoxTabsBar=sl;exports.FoxTabsContainer=il;exports.FoxTabsPane=cl;exports.FoxTag=Wt;exports.FoxText=ml;exports.FoxTextarea=xo;exports.FoxTextareaItem=Xn;exports.FoxTimeDetail=ka;exports.FoxTimePannel=va;exports.FoxTimeSelect=ya;exports.FoxToast=Ct;exports.FoxTour=ma;exports.FoxTrendArrow=fa;exports.FoxUploader=Pl;exports.FoxVideo=kt;exports.FoxWaterMark=da;exports.Grid=Nl;exports.GridItem=Bl;exports.Group=Un;exports.HeaderBar=Rn;exports.HintText=ot;exports.Image=kl;exports.ImagePreview=Ho;exports.Indicator=Il;exports.InfiniteLoading=Oo;exports.InputItem=Wn;exports.InputNumber=Qe;exports.InputnumberItem=rl;exports.Item=be;exports.Layout=bl;exports.LinkItem=nl;exports.List=Gl;exports.Mapping=pl;exports.Menu=$l;exports.MenuItem=Tl;exports.MessageBox=tt;exports.MoneyItem=Yn;exports.Navbar=Vl;exports.NoticeBar=Jl;exports.Notify=jl;exports.NumberKeyboard=Fl;exports.OverLay=at;exports.Page=Pn;exports.Pagination=xl;exports.Picker=yt;exports.PickerItem=Qn;exports.Popover=Yt;exports.Popup=ie;exports.PopupWrapper=fl;exports.Price=Xe;exports.PriorityPolicy=co;exports.Progress=Kt;exports.PullRefresh=Ul;exports.Radio=zo;exports.RadioGroup=Lo;exports.RadioItem=el;exports.Range=Ot;exports.Rate=vt;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=Mt;exports.SubSideNavBar=zl;exports.Swipe=Ut;exports.Swiper=bt;exports.SwiperItem=St;exports.Switch=Ro;exports.SwitchItem=ol;exports.TabPane=Lt;exports.Tabbar=El;exports.TabbarItem=Dl;exports.Table=ia;exports.Tabs=zt;exports.TabsBar=sl;exports.TabsContainer=il;exports.TabsPane=cl;exports.Tag=Wt;exports.Text=ml;exports.Textarea=xo;exports.TextareaItem=Xn;exports.TimeDetail=ka;exports.TimePannel=va;exports.TimeSelect=ya;exports.Toast=Ct;exports.Tour=ma;exports.TrendArrow=fa;exports.UniqueID=Do;exports.Uploader=Pl;exports.ValidateSchema=Pr;exports.ValidateSchemaKey=Re;exports.Video=kt;exports.WaterMark=da;exports.cancelRaf=gr;exports.clamp=Fe;exports.clearNonNumber=dn;exports.clone=un;exports.compareTo=sn;exports.createBroadcast=vo;exports.createValidateSchema=ko;exports.debounce=ht;exports.debounceRef=Qs;exports.decimalLength=Dr;exports.default=FB;exports.defineBroadcast=Rs;exports.defineConfigDomain=Fr;exports.defineDataItem=Or;exports.defineDomain=Ln;exports.defineItem=we;exports.definePageState=Kr;exports.deleteGlobalValidator=Hs;exports.disabledProperty=Ce;exports.divide=xn;exports.excludeProps=In;exports.extend=nt;exports.floatData=xr;exports.getGlobalValidateCheckEvents=Mr;exports.getGlobalValidateResetEvents=Lr;exports.getPageContentAreaHeight=so;exports.getPageContentAreaWidth=io;exports.getPageFooterAreaHeight=wo;exports.getPageHeaderAreaHeight=Co;exports.getRootDomain=mt;exports.getScrollTopRoot=qn;exports.hasSymbol=Nr;exports.includeProps=me;exports.indexOf=Ps;exports.installRules=Rr;exports.integerLength=Er;exports.isArray=ho;exports.isArrayLike=Vr;exports.isBrowser=st;exports.isDate=Oe;exports.isESModule=Is;exports.isEmptyString=ce;exports.isEqual=xe;exports.isFunction=ao;exports.isHidden=yo;exports.isInnerPage=Js;exports.isMap=Es;exports.isNil=Sr;exports.isNumberString=Tr;exports.isObject=Be;exports.isPlainObject=cn;exports.isPromise=qt;exports.isRegExp=$r;exports.isSet=Ds;exports.isString=Cr;exports.isSubPage=_s;exports.isSymbol=xs;exports.isWindow=Br;exports.lastIndexOf=Fs;exports.makeArray=Ls;exports.merge=Ar;exports.multiply=vr;exports.negate=kr;exports.nextTick=Ms;exports.numberFormat=po;exports.objectToString=wr;exports.once=Gs;exports.padZero=Je;exports.preventDefault=fn;exports.property=Ne;exports.raf=Pe;exports.readonlyProperty=Ae;exports.setGlobalValidateCheckEvents=js;exports.setGlobalValidateHandler=Ks;exports.setGlobalValidateMessages=Ys;exports.setGlobalValidateResetEvents=Ws;exports.setGlobalValidator=Us;exports.throttle=ro;exports.toBoolean=he;exports.toNumber=pe;exports.toPadding=Me;exports.toPx=se;exports.toPxDesc=fe;exports.toTypeString=go;exports.toValue=Ee;exports.tryTimes=zn;exports.typeOf=lt;exports.unNumberFormat=br;exports.updatePageState=mn;exports.useBroadcast=Tt;exports.useDomain=Ke;exports.useExpose=$e;exports.useInnerSize=Fn;exports.usePageState=So;exports.usePosition=Zr;exports.useRect=Ve;exports.useSize=No;exports.useTouch=Ue;exports.valueLength=ge;
|
|
13
|
+
`)}}});function sg(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Cl=J(rg,[["render",sg]]),{componentName:ig,create:cg}=Y("divider"),ug=cg({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,o){return{classes:t.computed(()=>{const n=ig;let a={[n]:!0},r={};return e.direction==="horizontal"?r={...a,[`${n}-center`]:o.slots.default,[`${n}-left`]:e.contentPosition==="left",[`${n}-right`]:e.contentPosition==="right",[`${n}-dashed`]:e.dashed,[`${n}-hairline`]:e.hairline}:r={...a,[`${n}-vertical`]:e.direction==="vertical"},r})}}});function dg(e,o,l,n,a,r){return e.direction==="horizontal"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes)},null,2))}const wl=J(ug,[["render",dg]]);function fg(e,o){const l=[],n=a=>{Array.isArray(a)&&a.forEach(r=>{if(t.isVNode(r)){if(o){if(r.type&&r.type.name===o){l.push(r);return}}else l.push(r);r.component?.subTree&&n(r.component.subTree.children),r.children&&n(r.children)}})};return n(e),l}function mg(e,o,l){const n=fg(e.subTree.children,l);o.sort((a,r)=>n.indexOf(a.vnode)-n.indexOf(r.vnode))}function pg(e,o){const l=t.shallowReactive([]),n=t.getCurrentInstance(),a=i=>{i.proxy&&(l.push(t.markRaw(i)),mg(n,l,o))},r=i=>{l.splice(l.indexOf(t.markRaw(i)),1)},s=Object.assign;return i=>(t.provide(e,s({add:a,remove:r,internalChildren:l},i)),{internalChildren:l})}const{componentName:pr}=Y("grid"),ws=Symbol("grid"),hg={columnNum:{type:[Number,String],default:4},border:{type:Boolean,default:!0},gutter:{type:[Number,String],default:0},center:{type:Boolean,default:!0},square:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},direction:{type:String},clickable:{type:Boolean,default:!1}},gg={props:hg,setup(e,{slots:o}){pg(ws,`${pr}-item`)({props:e});const l=t.computed(()=>{const a=pr;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),n=t.computed(()=>{const a={};return e.gutter&&(a.paddingLeft=pe(e.gutter)),a});return()=>t.h("view",{class:l.value,style:n.value},o.default?.())}},{create:yg}=Y("grid"),Nl=yg(gg);function vg(e){const o=t.inject(e,null);if(o){const l=t.getCurrentInstance(),{add:n,remove:a,internalChildren:r}=o;n(l),t.onUnmounted(()=>a(l));const s=t.computed(()=>r.indexOf(l));return{parent:o,index:s}}return{parent:null,index:t.ref(-1)}}const{create:kg,componentName:hr}=Y("grid-item"),bg=kg({props:{text:{type:String}},emits:["click"],setup(e,{emit:o}){const l=vg(ws);if(!l.parent)return{};const n=l.index,a=l.parent.props,r=t.computed(()=>({[hr]:!0})),s=t.computed(()=>{const d={flexBasis:`${100/+a.columnNum}%`};return a.square?d.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(d.paddingRight=pe(a.gutter),n.value>=a.columnNum&&(d.marginTop=pe(a.gutter))),d}),i=t.computed(()=>{const d=`${hr}__content`;return{[`${d}`]:!0,[`${d}--border`]:a.border,[`${d}--surround`]:a.border&&a.gutter,[`${d}--center`]:a.center,[`${d}--square`]:a.square,[`${d}--reverse`]:a.reverse,[`${d}--${a.direction}`]:!!a.direction,[`${d}--clickable`]:a.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:d=>{o("click",d)}}}}),Sg={class:"fox-grid-item__text"};function Cg(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:o[0]||(o[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",Sg,[e.text?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.text),1)],64)):t.renderSlot(e.$slots,"text",{key:1})])],2)],6)}const Bl=J(bg,[["render",Cg]]),{componentName:wg,create:Ng}=Y("navbar"),Bg=Ng({components:{Left:te.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:o}){const{border:l,fixed:n,safeAreaInsetTop:a,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let d=t.ref();const m=t.computed(()=>{const v=wg;return{[v]:!0,[`${v}--border`]:l.value,[`${v}--fixed`]:n.value,[`${v}--safe-area-inset-top`]:a.value}}),f=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{n.value&&r.value&&t.nextTick(()=>{d.value=c?.value?.getBoundingClientRect().height,i.value.style.height=d.value+"px"})});function h(){o("on-click-back")}function y(){o("on-click-title")}function g(){o("on-click-icon")}function k(){o("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:m,styles:f,handleLeft:h,handleCenter:y,handleCenterIcon:g,handleRight:k}}}),Vg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Ag={key:1,class:"fox-navbar__text"},$g={class:"fox-navbar__title"},Tg={key:0,class:"fox-navbar__text"},Eg={key:1,class:"fox-navbar__text"},Dg={class:"fox-navbar__title"},xg={key:0,class:"fox-navbar__text"};function Ig(e,o,l,n,a,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Vg,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:o[0]||(o[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Ag,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",$g,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:o[1]||(o[1]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:o[3]||(o[3]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:o[2]||(o[2]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:o[4]||(o[4]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",Tg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6)],512)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:o[5]||(o[5]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Eg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Dg,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:o[6]||(o[6]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:o[8]||(o[8]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:o[7]||(o[7]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:o[9]||(o[9]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",xg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Vl=J(Bg,[["render",Ig]]),qg=(e,o,l)=>({components:l,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{default:"",type:String},activeText:{default:"",type:String},unActiveText:{default:"",type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(n,{emit:a}){const{toLocaleRefs:r}=ae.useFoxI18n(o),s=r(n,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:n.visible,[n.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(f=!n.visible)=>{a("update:visible",f)},selected:(f,h)=>{a("selected",{item:f,event:h}),c.value=f.id},current:c}}}),{componentName:Mg,create:zg,scope:Pg}=Y("fixednav"),Lg=zg(qg(Mg,Pg,{[at.name]:at,Left:te.Left})),Fg={class:"fox-fixednav__list"},Rg=["onClick"],Og=["src"],Kg={class:"span"},Ug={key:0,class:"b"},Hg={class:"text"};function jg(e,o,l,n,a,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Left");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(s,{key:0,visible:e.visible,"z-index":200,onClick:o[0]||(o[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",Fg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:m=>e.selected(c,m),key:c.id||d},[t.createElementVNode("img",{src:c.icon},null,8,Og),t.createElementVNode("view",Kg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Ug,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Rg))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:o[1]||(o[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{color:"#fff"}),t.createElementVNode("view",Hg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Al=J(Lg,[["render",jg]]),{componentName:Wg,create:Yg}=Y("menu"),Xg=Yg({components:{ArrowUp2:te.ArrowUp2,ArrowDown2:te.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:o,slots:l}){const n=t.ref(),a=t.ref(0),r=t.ref(!1),s=()=>{const v=t.reactive([]),u=t.reactive([]);return{children:v,linkChildren:b=>{const S=C=>{C.proxy&&(u.push(C),v.push(C.proxy))},N=C=>{if(C.proxy){let V=u.indexOf(C);V>-1&&u.splice(V,1);let B=v.indexOf(C.proxy);V>-1&&v.splice(B,1)}};t.provide("menuParent",Object.assign({removeLink:N,link:S,children:v,internalChildren:u},b))}}},{children:i,linkChildren:c}=s(),d=t.computed(()=>i.some(v=>v.state.showWrapper)),m=t.computed(()=>({[Wg]:!0,"scroll-fixed":r.value})),f=()=>{if(n.value){const v=Ve(n);e.direction==="down"?a.value=v.bottom:a.value=window.innerHeight-v.top}};c({props:e,offset:a});const h=v=>{i.forEach((u,p)=>{p===v?(f(),u.toggle()):u.state.showPopup&&u.toggle(!1,{immediate:!0})})},y=v=>Math.max(0,"scrollTop"in v?v.scrollTop:v.pageYOffset),g=()=>{const{scrollFixed:v}=e,u=y(window);r.value=u>(typeof v=="boolean"?30:Number(v))},k=v=>{let u="";const{titleClass:p}=e;return v&&(u+="active"),p&&(u+=` ${p}`),u};return t.onMounted(()=>{const{scrollFixed:v}=e;v&&window.addEventListener("scroll",g)}),t.onUnmounted(()=>{const{scrollFixed:v}=e;v&&window.removeEventListener("scroll",g)}),{toggleItem:h,children:i,opened:d,classes:m,barRef:n,getClasses:k}}}),Qg=["onClick"],Gg={class:"fox-menu__title-text"},Zg={class:"fox-menu__title-icon"};function Jg(e,o,l,n,a,r){const s=t.resolveComponent("ArrowUp2"),i=t.resolveComponent("ArrowDown2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:m=>!c.disabled&&e.toggleItem(d),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",Gg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Zg,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Qg))),128))],2),t.renderSlot(e.$slots,"default")],2)}const $l=J(Xg,[["render",Jg]]),{componentName:_g,create:ey}=Y("menu-item"),ty=ey({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[ie.name]:ie,Check:te.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:o,slots:l}){const n=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),a=()=>{const y=t.inject("menuParent",null);if(y){const g=t.getCurrentInstance(),{link:k,removeLink:v}=y;return k(g),t.onUnmounted(()=>{v(g)}),{parent:y}}},{parent:r}=a(),s=t.computed(()=>({[_g]:!0})),i=t.computed(()=>{const y={height:r.offset.value+"px"};return r.props.direction==="down"?y:{...y,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const y=e.options?.find(g=>g.value===e.modelValue);return y?y.text:""},state:n,parent:r,toggle:(y=!n.showPopup,g={})=>{y!==n.showPopup&&(n.showPopup=y,n.isShowPlaceholderElement=y,y&&(n.showWrapper=!0,o("open")))},onClick:y=>{n.showPopup=!1,n.isShowPlaceholderElement=!1,y.value!==e.modelValue&&(o("update:modelValue",y.value),o("change",y.value))},handleClose:()=>{o("close"),n.showWrapper=!1,n.isShowPlaceholderElement=!1},handleClickOutside:()=>{n.showPopup=!1,o("close")}}}}),oy={class:"fox-menu-item__content fox-menu-item__overflow"},ny=["onClick"];function ly(e,o,l,n,a,r){const s=t.resolveComponent("Check"),i=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:o[0]||(o[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:t.normalizeStyle(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),t.createVNode(i,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",top:"auto"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":o[1]||(o[1]=c=>e.state.showPopup=c),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:t.withCtx(()=>[t.createElementVNode("view",oy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:m=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps(e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass([c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),7)],14,ny))),128)),t.renderSlot(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}const Tl=J(ty,[["render",ly]]),{create:ay}=Y("tabbar"),ry=ay({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,o){function l(a){n.value!==a&&(n.value=a,o.emit("update:modelValue",a),o.emit("change",a,n.children[a]))}const n=t.reactive({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:l});return t.provide("parent",n),t.watch(()=>e.modelValue,a=>{n.value=a}),{changeIndex:l}}});function sy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[t.renderSlot(e.$slots,"default")],2)}const El=J(ry,[["render",sy]]),{create:iy}=Y("tabbar-item"),cy=iy({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,o){const l=t.inject("parent"),n=t.reactive({size:l.size,inactiveColor:l.inactiveColor,activeColor:l.activeColor,value:l.value,index:0}),a=t.getCurrentInstance();a!==null&&(d=>{if(d.proxy){let m=l.children.length;n.index=m;let f=Object.assign(d.proxy,{index:m});l.children.push(f)}})(a);const r=t.computed(()=>n.index===n.value);function s(c){l&&typeof l.changeIndex=="function"&&l.changeIndex(c)}const i=t.computed(()=>l?l.value:null);return t.watch(i,c=>{n.value=c}),{state:n,active:r,change:s}}}),uy={class:"fox-tabbar-item_icon-box"},dy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},fy={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},my={key:1,class:"fox-tabbar-item_icon-box_dot"},py={key:2},hy={key:0};function gy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:t.normalizeStyle({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:o[0]||(o[0]=s=>e.change(e.state.index))},[t.createElementVNode("view",uy,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",dy,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",fy,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",my)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",py,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.icon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):t.createCommentVNode("",!0),!e.icon&&e.activeImg?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:t.normalizeStyle({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?(t.openBlock(),t.createElementBlock("view",hy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Dl=J(cy,[["render",gy]]),{componentName:yy,create:vy}=Y("elevator"),ky=vy({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,o){const l=t.ref(null),n=t.reactive({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),a=t.computed(()=>({[yy]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${n.scrollY+n.fixedTop}px, 0)`})),s=t.computed(()=>l.value.clientHeight),i=(u,p)=>{const b="data-";return u.getAttribute(b+p)},c=u=>{t.nextTick(()=>{!n.listGroup.includes(u)&&u!=null&&n.listGroup.push(u)})},d=()=>{let u=0;n.listHeight.push(u);for(let p=0;p<n.listGroup.length;p++){let b=n.listGroup[p];u+=Math.floor(b.clientHeight),n.listHeight.push(u)}},m=u=>{!u&&u!==0||(u<0&&(u=0),u>n.listHeight.length-2&&(u=n.listHeight.length-2),n.codeIndex=u,l.value.scrollTo(0,n.listHeight[u]))},f=u=>{n.scrollStart=!0;let p=i(u.target,"index"),b=u.touches[0];n.touchState.y1=b.pageY,n.anchorIndex=+p,n.codeIndex=+p,m(+p)},h=u=>{let p=u.touches[0];n.touchState.y2=p.pageY;let b=(n.touchState.y2-n.touchState.y1)/e.spaceHeight|0;n.codeIndex=n.anchorIndex+b,m(n.codeIndex)},y=()=>{n.scrollStart=!1},g=(u,p)=>{o.emit("click-item",u,p),n.currentData=p,n.currentKey=u},k=u=>{o.emit("click-index",u)},v=u=>{let b=u.target.scrollTop;const S=n.listHeight;n.scrollY=b;for(let N=0;N<S.length-1;N++){let C=S[N],V=S[N+1];if(n.scrollY>=C&&n.scrollY<V){n.currentIndex=N,n.diff=V-n.scrollY;return}}n.currentIndex=S.length-2};return t.onMounted(()=>{l.value.addEventListener("scroll",v)}),$e({scrollTo:m}),t.watch(()=>n.listGroup.length,()=>{n.listHeight=[],t.nextTick(d)}),t.watch(()=>n.diff,u=>{const p=n.listHeight;let b=u>0&&u<e.titleHeight?u-e.titleHeight:0;n.scrollY+s.value===p[p.length-1]&&b!==0&&(b=0),n.fixedTop!==b&&(n.fixedTop=b)}),t.watch(()=>n.currentIndex,u=>{o.emit("change",u)}),{classes:a,...t.toRefs(n),fixedStyle:r,clientHeight:s,setListGroup:c,listview:l,touchStart:f,touchMove:h,touchEnd:y,handleClickItem:g,handleClickIndex:k}}}),by={class:"fox-elevator__list__item__code"},Sy=["onClick"],Cy=["innerHTML"],wy={class:"fox-elevator__fixed-title"},Ny={class:"fox-elevator__bars__inner"},By=["data-index","onClick"];function Vy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",by,t.toDisplayString(s[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===i.id&&e.currentKey===s[e.acceptKey]}]),key:i.id,onClick:c=>e.handleClickItem(s[e.acceptKey],i)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:1,item:i}):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:i.name},null,8,Cy))],10,Sy))),128))]))),128)),e.isSticky?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__list__fixed",style:t.normalizeStyle(e.fixedStyle)},[t.createElementVNode("span",wy,t.toDisplayString(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):t.createCommentVNode("",!0)],4),e.indexList.length?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__code--current"},t.toDisplayString(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-elevator__bars",onTouchstart:o[0]||(o[0]=(...s)=>e.touchStart&&e.touchStart(...s)),onTouchmove:o[1]||(o[1]=t.withModifiers((...s)=>e.touchMove&&e.touchMove(...s),["stop","prevent"])),onTouchend:o[2]||(o[2]=(...s)=>e.touchEnd&&e.touchEnd(...s))},[t.createElementVNode("view",Ny,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:s[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":i,key:s[e.acceptKey],onClick:c=>e.handleClickIndex(s[e.acceptKey])},t.toDisplayString(s[e.acceptKey]),11,By))),128))])],32)],2)}const Ot=J(ky,[["render",Vy]]),{componentName:a2,create:Ay,scope:$y}=Y("pagination"),Ty=Ay({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n($y),n=l(e,["prevText","nextText"]),{modelValue:a,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:y,itemsPerPage:g}=t.toRefs(e),k=+h.value||Math.ceil(+y.value/+g.value);return Math.max(1,k)}),d=(h,y)=>{h>c.value||h<1||(h!=a.value&&o("update:modelValue",h),y&&o("change",h))},m=(h,y,g=!1)=>({number:h,text:y,active:g}),f=t.computed(()=>{if(r.value=="simple")return;let h=[];const y=c.value,g=+s.value;let k=1,v=y;const u=y>g;u&&(k=Math.max(a.value-Math.floor(g/2),1),v=k+g-1,v>y&&(v=y,k=v-g+1));for(var p=k;p<=v;p++){const b=m(p,p,a.value==p);h.push(b)}if(u&&g>0&&i.value){if(k>1){const b=m(k-1,"...");h.unshift(b)}if(v<y){const b=m(v+1,"...");h.push(b)}}return h});return t.watchEffect(()=>{d(a.value,!1)}),{...n,modelValue:a,select:d,countRef:c,mode:r,pages:f,forceEllipses:i}}}),Ey={class:"fox-pagination"},Dy={key:0,class:"fox-pagination-contain"},xy=["onClick"],Iy={key:1,class:"fox-pagination-contain"},qy={class:"fox-pagination-simple"};function My(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",Ey,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:o[0]||(o[0]=s=>e.select(e.modelValue-1,!0))},[t.renderSlot(e.$slots,"prev-text",{},()=>[t.createTextVNode(t.toDisplayString(e.prevText),1)])],2),e.mode=="multi"?(t.openBlock(),t.createElementBlock("view",Dy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(s,i)=>(t.openBlock(),t.createElementBlock("view",{key:i+"pagination",class:t.normalizeClass(["fox-pagination-item",s.active?"active":""]),onClick:c=>e.select(s.number,!0)},[t.renderSlot(e.$slots,"page",{item:s},()=>[t.createTextVNode(t.toDisplayString(s.text),1)])],10,xy))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Iy,[t.createElementVNode("view",qy,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:o[1]||(o[1]=s=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const xl=J(Ty,[["render",My]]),{componentName:gr,create:zy}=Y("indicator"),Py=zy({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:o,align:l}=t.toRefs(e);return{classes:t.computed(()=>{const a=gr;return{[a]:!0,[`${a}--block`]:o.value,[`${a}--align__${l.value}`]:o.value&&l.value}}),componentName:gr,padZero:Je}}});function Ly(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,s=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[s===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(s)||s),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const Il=J(Py,[["render",Ly]]),{componentName:Fy,create:Ry}=Y("side-navbar"),Oy=Ry({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const o=t.ref(null),l=t.reactive({count:1,observer:null}),n=t.computed(()=>({[Fy]:!0})),a=(s,i=1)=>{for(let c=0;c<s.length;c++){let d=s[c];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*i+"px",d.className.includes("fox-side-navbar-item")||a(Array.from(d.children[1].children),++l.count))}l.count--},r=()=>{let s=o.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),a(s))};return t.onMounted(()=>{r(),l.observer=new MutationObserver(function(){l.count=1,r()}),l.observer.observe(o.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(l),list:o,classes:n}}}),Ky={class:"fox-side-navbar__content"},Uy={class:"fox-side-navbar__content__list",ref:"list"};function Hy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",Ky,[t.createElementVNode("view",Uy,[t.renderSlot(e.$slots,"default")],512)])],2)}const ql=J(Oy,[["render",Hy]]),{componentName:jy,create:Wy}=Y("side-navbar-item"),Yy=Wy({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,o)=>({classes:t.computed(()=>({[jy]:!0})),handleClick:()=>{o.emit("click")}})}),Xy=["ikey"],Qy={class:"fox-side-navbar-item__title"};function Gy(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[t.createElementVNode("span",Qy,t.toDisplayString(e.title),1)],10,Xy)}const Ml=J(Yy,[["render",Gy]]),{componentName:Zy,create:Jy}=Y("sub-side-navbar"),_y=Jy({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:te.ArrowDown2,ArrowUp2:te.ArrowUp2},emits:["title-click"],setup:(e,o)=>{const l=t.reactive({direction:""}),n=t.computed(()=>({[Zy]:!0})),a=t.computed(()=>({height:l.direction?"0px":"auto"})),r=()=>{o.emit("title-click"),l.direction=l.direction?"":"up"};return t.onMounted(()=>{l.direction=e.open?"":"up"}),{...t.toRefs(l),classes:n,style:a,handleClick:r}}}),ev=["ikey"],tv={class:"fox-sub-side-navbar__title__text"},ov={class:"fox-sub-side-navbar__title__icon"};function nv(e,o,l,n,a,r){const s=t.resolveComponent("ArrowDown2"),i=t.resolveComponent("ArrowUp2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-sub-side-navbar__title",onClick:o[0]||(o[0]=t.withModifiers((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[t.createElementVNode("span",tv,t.toDisplayString(e.title),1),t.createElementVNode("span",ov,[e.direction?(t.openBlock(),t.createBlock(i,{key:1})):(t.openBlock(),t.createBlock(s,{key:0}))])]),t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,ev)}const zl=J(_y,[["render",nv]]),{componentName:lv,create:av}=Y("range"),rv=av({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:o}){const l=t.ref(0);let n,a;const r=t.ref(),s=t.ref(),i=Ue(),c=t.computed(()=>{const{marks:E,max:x,min:U}=e;return Object.keys(E).map(parseFloat).sort((H,G)=>H-G).filter(H=>H>=U&&H<=x)}),d=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const E=lv;return{[E]:!0,[`${E}-disabled`]:e.disabled,[`${E}-vertical`]:e.vertical,[`${E}-show-number`]:!e.hiddenRange}}),f=t.computed(()=>{const E="fox-range-container";return{[E]:!0,[`${E}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),y=t.computed(()=>({borderColor:e.buttonColor})),g=E=>!!e.range&&Array.isArray(E),k=()=>{const{modelValue:E,min:x}=e;return g(E)?`${(E[1]-E[0])*100/d.value}%`:`${(E-Number(x))*100/d.value}%`},v=()=>{const{modelValue:E,min:x}=e;return g(E)?`${(E[0]-Number(x))*100/d.value}%`:"0%"},u=t.computed(()=>e.vertical?{height:k(),top:v(),background:e.activeColor,transition:s.value?"none":void 0}:{width:k(),left:v(),background:e.activeColor,transition:s.value?"none":void 0}),p=E=>{const x="fox-range-mark",{modelValue:U,max:D,min:W}=e;let H=Number(W),G=Number(D);if(e.range){const[$,T]=U;H=$,G=T}else G=U;let R=E<=G&&E>=H;return{[`${x}-text`]:!0,[`${x}-text-active`]:R}},b=E=>{const{min:x,vertical:U}=e;let D={left:`${(E-Number(x))/d.value*100}%`};return U&&(D={top:`${(E-Number(x))/d.value*100}%`}),D},S=E=>{const{modelValue:x,max:U,min:D}=e;let W=Number(D),H=Number(U);if(e.range){const[$,T]=x;W=$,H=T}return{background:E<=H&&E>=W?e.activeColor:e.inactiveColor}},N=E=>{const{min:x,max:U,step:D}=e;return E=Math.max(+x,Math.min(E,+U)),Math.round(E/+D)*+D},C=(E,x)=>JSON.stringify(E)===JSON.stringify(x),V=E=>E[0]>E[1]?E.slice(0).reverse():E,B=(E,x)=>{g(E)?E=V(E).map(N):E=N(E),C(E,e.modelValue)||o("update:modelValue",E),x&&!C(E,n)&&o("change",E)},I=E=>{if(e.disabled)return;const{min:x,modelValue:U}=e,D=Ve(r);let W=E.clientX-D.left,H=D.width;e.vertical&&(W=E.clientY-D.top,H=D.height);const G=Number(x)+W/H*d.value;if(g(U)){const[R,$]=U,T=(R+$)/2;G<=T?B([G,$],!0):B([R,G],!0)}else B(G,!0)},A=E=>{e.disabled||(i.start(E),a=e.modelValue,g(a)?n=a.map(N):n=N(a),s.value="start")},w=E=>{if(e.disabled)return;s.value==="start"&&o("drag-start"),i.move(E),s.value="draging";const x=Ve(r);let U=i.deltaX.value,D=x.width,W=U/D*d.value;e.vertical&&(U=i.deltaY.value,D=x.height,W=U/D*d.value),g(n)?a[l.value]=n[l.value]+W:a=n+W,B(a),E.stopPropagation(),E.preventDefault()},P=()=>{e.disabled||(s.value==="draging"&&(B(a,!0),o("drag-end")),s.value="")},F=E=>ho(e.modelValue)&&typeof E=="number"?e.modelValue[E]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:h,buttonStyle:y,onClick:I,onTouchStart:A,onTouchMove:w,onTouchEnd:P,...t.toRefs(e),barStyle:u,curValue:F,buttonIndex:l,containerClasses:f,markClassName:p,marksStyle:b,marksList:c,tickStyle:S}}}),sv={key:0,class:"fox-range-min"},iv={key:0,class:"fox-range-mark"},cv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],uv={key:0,class:"number"},dv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],fv={key:0,class:"number"},mv={key:1,class:"fox-range-max"};function pv(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",sv,t.toDisplayString(+e.min),1)),t.createElementVNode("view",{ref:"root",style:t.normalizeStyle(e.wrapperStyle),class:t.normalizeClass(e.classes),onClick:o[9]||(o[9]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",iv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,s=>(t.openBlock(),t.createElementBlock("span",{key:s,class:t.normalizeClass(e.markClassName(s)),style:t.normalizeStyle(e.marksStyle(s))},[t.createTextVNode(t.toDisplayString(s)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(s))},null,4)],6))),128))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-range-bar",style:t.normalizeStyle(e.barStyle)},[e.range?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList([0,1],s=>t.createElementVNode("view",{key:s,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":s==0,"fox-range-button-wrapper-right":s==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(s),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(i=>{typeof s=="number"&&(e.buttonIndex=s),e.onTouchStart(i)},["stop","prevent"]),onTouchmove:o[0]||(o[0]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:o[1]||(o[1]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:o[2]||(o[2]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:o[3]||(o[3]=i=>i.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",uv,t.toDisplayString(e.curValue(s)),1))],4))],42,cv)),64)):(t.openBlock(),t.createElementBlock("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:o[4]||(o[4]=t.withModifiers(s=>{e.onTouchStart(s)},["stop","prevent"])),onTouchmove:o[5]||(o[5]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:o[6]||(o[6]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:o[7]||(o[7]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:o[8]||(o[8]=s=>s.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",fv,t.toDisplayString(e.curValue()),1))],4))],40,dv))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",mv,t.toDisplayString(+e.max),1))],2)}const Kt=J(rv,[["render",pv]]),{create:hv,scope:gv}=Y("short-password"),yv=hv({components:{[ie.name]:ie,Tips:te.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(gv),n=l(e,["title","desc","tips"]),a=t.ref(e.modelValue),r=t.computed(()=>d(Number(e.length))),s=t.ref(e.visible),i=f=>{f.stopPropagation(),o("focus")};t.watch(()=>e.visible,f=>{s.value=f}),t.watch(()=>e.modelValue,f=>{a.value=f,String(f).length===r.value&&o("complete",f)});const c=()=>{o("update:visible",!1),o("close")},d=f=>Math.min(Math.max(4,f),6);return{comLen:r,realInput:a,onTouchStart:i,range:d,close:c,onTips:()=>{o("tips")},show:s,...n}}}),vv={class:"fox-short-password-title"},kv={class:"fox-short-password-subtitle"},bv={class:"fox-short-password-wrapper"},Sv={key:0,class:"fox-short-password__item-icon"},Cv={class:"fox-short-password__message"},wv={class:"fox-short-password--error"},Nv={key:0,class:"fox-short-password--forget"};function Bv(e,o,l,n,a,r){const s=t.resolveComponent("Tips"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(i,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":o[2]||(o[2]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("view",vv,t.toDisplayString(e.title),1),t.createElementVNode("view",kv,t.toDisplayString(e.desc),1),t.createElementVNode("div",bv,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:o[0]||(o[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?(t.openBlock(),t.createElementBlock("view",Sv)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",Cv,[t.createElementVNode("view",wv,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",Nv,[t.createVNode(s,{class:"icon",width:"11px",height:"11px"}),t.createElementVNode("view",{onClick:o[1]||(o[1]=(...c)=>e.onTips&&e.onTips(...c))},t.toDisplayString(e.tips),1)])):t.createCommentVNode("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}const Pl=J(yv,[["render",Bv]]);class Vv{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Av=class{options;constructor(o){this.options=o}upload(){const o=this.options,l=new XMLHttpRequest;if(l.timeout=o.timeout,l.upload){l.upload.addEventListener("progress",n=>{o.onProgress?.(n,o)},!1),l.onreadystatechange=()=>{l.readyState===4&&(l.status==o.xhrState?o.onSuccess?.(l.responseText,o):o.onFailure?.(l.responseText,o))},l.withCredentials=o.withCredentials,l.open(o.method,o.url,!0);for(const[n,a]of Object.entries(o.headers))l.setRequestHeader(n,a);o.onStart?.(o),o.beforeXhrUpload?o.beforeXhrUpload(l,o):l.send(o.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}};class $v{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const Ns=(e,{args:o=[],done:l,canceled:n})=>{if(e){const a=e.apply(null,o);Mt(a)?a.then(r=>{r?l(r):n&&n()}).catch(()=>{}):a?l():n&&n()}else l()},{create:Tv}=Y("progress"),Ev=Tv({components:{Checked:te.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const o=!!t.useSlots().default,l=t.ref(e.strokeWidth+"px"),n=t.ref(),a=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),s=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),i=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:l,percentage:r,bgStyle:s,textStyle:i,progressOuter:n,insideText:a,slotDefault:o}}}),Dv={class:"fox-progress"},xv={key:0,class:"fox-progress-text"};function Iv(e,o,l,n,a,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",Dv,[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-outer",[e.showText&&!e.textInside?"fox-progress-outer-part":"",e.size?"fox-progress-"+e.size:""]]),ref:"progressOuter",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-inner",e.status=="active"?"fox-active":""]),style:t.normalizeStyle(e.bgStyle)},null,6),e.showText&&e.textInside&&!e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-progress-text fox-progress-insidetext",ref:"insideText",style:t.normalizeStyle({lineHeight:e.height,left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`,background:e.textBackground||e.strokeColor})},[t.createElementVNode("span",{style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)],4)):t.createCommentVNode("",!0),e.showText&&e.textInside&&e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:1,ref:"insideText",style:t.normalizeStyle({position:"absolute",top:"50%",left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`})},[t.renderSlot(e.$slots,"default")],4)):t.createCommentVNode("",!0)],6),e.showText&&!e.textInside?(t.openBlock(),t.createElementBlock("div",xv,[e.status=="active"||e.status==""?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)):e.status=="icon"?t.renderSlot(e.$slots,"icon-name",{key:1},()=>[t.createVNode(s,{width:"15px",height:"15px",color:"#439422"})]):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const Ut=J(Ev,[["render",Iv]]),{componentName:qv,create:Mv,scope:zv}=Y("uploader"),Pv=Mv({components:{[Ut.name]:Ut,Photograph:te.Photograph,Failure:te.Failure,Loading:te.Loading,Del:te.Del,Link:te.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,o)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(zv),n=t.reactive(e.fileList);let a=[];const r=t.computed(()=>({[qv]:!0})),s=()=>{let p={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(p.capture="camera"),t.h("input",p)},i=p=>{p.value=""},c=p=>{o("file-item-click",{fileItem:p})},d=(p,b)=>{const S=new Vv;S.url=e.url,S.formData=p.formData,S.timeout=e.timeout*1,S.method=e.method,S.xhrState=e.xhrState,S.headers=e.headers,S.withCredentials=e.withCredentials,S.beforeXhrUpload=e.beforeXhrUpload;try{S.sourceFile=p.formData.get(e.name)}catch{}S.onStart=C=>{p.status="ready",p.message=l("readyUpload"),m(b),o("start",C)},S.onProgress=(C,V)=>{p.status="uploading",p.message=l("uploading"),p.percentage=(C.loaded/C.total*100).toFixed(0),o("progress",{event:C,option:V,percentage:p.percentage})},S.onSuccess=(C,V)=>{p.status="success",p.message=l("success"),o("success",{responseText:C,option:V,fileItem:p}),o("update:fileList",n)},S.onFailure=(C,V)=>{p.status="error",p.message=l("error"),o("failure",{responseText:C,option:V,fileItem:p})};let N=new Av(S);e.autoUpload?N.upload():a.push(new Promise((C,V)=>{C(N)}))},m=(p=-1)=>{p>-1?a.splice(p,1):(a=[],n.splice(0,n.length))},f=()=>{Promise.all(a).then(p=>{p.forEach(b=>b.upload())})},h=p=>{p.forEach((b,S)=>{const N=new FormData;for(const[V,B]of Object.entries(e.data))N.append(V,B);N.append(e.name,b);const C=t.reactive(new $v);if(C.name=b.name,C.status="ready",C.type=b.type,C.formData=N,C.message=l("waitingUpload"),d(C,S),e.isPreview&&b.type.includes("image")){const V=new FileReader;V.onload=B=>{C.url=B.target.result,n.push(C)},V.readAsDataURL(b)}else n.push(C)})},y=p=>{const b=e.maximum*1,S=e.maximize*1,N=new Array;p=p.filter(V=>V.size>S?(N.push(V),!1):!0),N.length&&o("oversize",N);let C=p.length+n.length;return C>b&&p.splice(p.length-(C-b)),p},g=(p,b)=>{n.splice(b,1),o("delete",{file:p,fileList:n,index:b})},k=(p,b)=>{m(b),Ns(e.beforeDelete,{args:[p,n],done:()=>g(p,b)})},v=p=>{if(e.disabled)return;const b=p.target;let{files:S}=b;e.beforeUpload?e.beforeUpload(S).then(N=>u(N)):u(S),o("change",{fileList:n,event:p}),e.clearInput&&i(b)},u=p=>{const b=y(new Array().slice.call(p));h(b)};return{onChange:v,onDelete:k,fileList:n,classes:r,fileItemClick:c,clearUploadQueue:m,submit:f,renderInput:s}}}),Lv={key:0,class:"fox-uploader__slot"},Fv={key:0,class:"fox-uploader__preview-img"},Rv={key:0,class:"fox-uploader__preview__progress"},Ov={class:"fox-uploader__preview__progress__msg"},Kv=["onClick"],Uv=["onClick","src"],Hv={key:3,class:"fox-uploader__preview-img__file"},jv=["onClick"],Wv={class:"file__name_tips"},Yv={class:"tips"},Xv={key:1,class:"fox-uploader__preview-list"},Qv=["onClick"],Gv={class:"file__name_tips"};function Zv(e,o,l,n,a,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),d=t.resolveComponent("Del"),m=t.resolveComponent("fox-progress"),f=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",Lv,[t.renderSlot(e.$slots,"default"),Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(h,y)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:h.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",Fv,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",Rv,[h.status!="ready"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[h.status=="error"?(t.openBlock(),t.createBlock(s,{key:0,color:"#fff"})):(t.openBlock(),t.createBlock(i,{key:1,name:"loading",color:"#fff"}))],64)):t.createCommentVNode("",!0),t.createElementVNode("view",Ov,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:g=>e.onDelete(h,y)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,Kv)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:g=>e.fileItemClick(h),src:h.url},null,8,Uv)):(t.openBlock(),t.createElementBlock("view",Hv,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",Wv,t.toDisplayString(h.name),1)],8,jv)])),t.createElementVNode("view",Yv,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",Xv,[t.createElementVNode("view",{onClick:g=>e.fileItemClick(h),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[h.status]])},[t.createVNode(c,{class:"fox-uploader__preview-img__file__link"}),t.createElementVNode("view",Gv,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:g=>e.onDelete(h,y)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,Qv),h.status=="uploading"?(t.openBlock(),t.createBlock(m,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(f,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const Ll=J(Pv,[["render",Zv]]),Jv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2F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Cz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:e0,scope:t0}=Y("number-keyboard"),o0=e0({components:{[ie.name]:ie},props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(t0),n=l(e,["confirmText"]),a=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:u}=e;let p={id:"lock",type:"lock"},b=Array.isArray(u)?u:[u];return b.length===1&&(p={id:b[0],type:"custom"}),[...c(),p,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const u=[];for(let p=1;p<=9;p++)u.push({id:p,type:"number"});return e.randomKeys?u.sort(()=>Math.random()>.5?1:-1):u}function d(){const u=c(),{customKey:p}=e;let b=Array.isArray(p)?p:[p];return b.length>2&&(b=[b[0],b[1]]),b.length==2&&e.title&&e.type!="rightColumn"&&(b=[b[0]]),b.length===1?e.title&&e.type!="rightColumn"?u.push({id:b[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):u.push({id:0,type:"number"},{id:b[0],type:"custom"}):b.length===2&&u.push({id:b[0],type:"custom"},{id:0,type:"number"},{id:b[1],type:"custom"}),u}const m=t.computed(()=>e.type=="rightColumn"||e.title!=""?d():i()),f=()=>{e.visible&&o("blur")},h=u=>{const p=s.value;p&&!p.contains(u.target)&&f()};t.watch(()=>e.visible,u=>{r.value=u,u?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function y(u,p){p.stopPropagation(),a.value=u.id,(u.type=="number"||u.type=="custom")&&(o("input",u.id),e.modelValue.length<Number(e.maxlength)&&o("update:modelValue",e.modelValue+u.id)),u.type=="lock"&&v(),u.type=="delete"&&(o("delete"),o("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function g(u){u.stopPropagation()}function k(u){u.preventDefault(),a.value=void 0}function v(){o("update:visible",!1),o("close")}return{...n,delImg:Jv,lockImg:_v,clickKeyIndex:a,defaultKey:i,closeBoard:v,onTouchEnd:k,onTouchMove:g,onTouchstart:y,keysList:m,genCustomKeys:d,getBasicKeys:c,root:s,show:r}}}),n0={ref:"root"},l0={class:"fox-number-keyboard"},a0={key:0,class:"fox-number-keyboard__header"},r0={class:"fox-number-keyboard__title"},s0={class:"fox-number-keyboard__body"},i0={class:"fox-number-keyboard__keys"},c0=["onTouchstart"],u0=["src"],d0=["src"],f0={key:0,class:"fox-number-keyboard__sidebar"},m0={class:"fox-key__wrapper"},p0=["src"];function h0(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",n0,[t.createVNode(s,{visible:e.show,"onUpdate:visible":o[7]||(o[7]=i=>e.show=i),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",l0,[e.title?(t.openBlock(),t.createElementBlock("div",a0,[t.createElementVNode("h3",r0,t.toDisplayString(e.title),1),e.type=="default"?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-number-keyboard__close",onClick:o[0]||(o[0]=i=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",s0,[t.createElementVNode("div",i0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,i=>(t.openBlock(),t.createElementBlock("div",{key:"key"+i.id,class:t.normalizeClass(["fox-key__wrapper",{"fox-key__wrapper--wider":i.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{"fox-key--active":i.id==e.clickKeyIndex},{"fox-key--lock":i.type=="lock"},{"fox-key--delete":i.type=="delete"}]),onTouchstart:c=>e.onTouchstart(i,c),onTouchmove:o[1]||(o[1]=c=>e.onTouchMove(c)),onTouchend:o[2]||(o[2]=c=>e.onTouchEnd(c))},[i.type=="number"||i.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.id),1)],64)):t.createCommentVNode("",!0),i.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,u0)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,d0)):t.createCommentVNode("",!0)],42,c0)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",f0,[t.createElementVNode("div",m0,[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:o[3]||(o[3]=i=>e.onTouchstart({id:"delete",type:"delete"},i)),onTouchmove:o[4]||(o[4]=i=>e.onTouchMove(i)),onTouchend:o[5]||(o[5]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("img",{src:e.delImg},null,8,p0)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:o[6]||(o[6]=i=>e.closeBoard())},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},t.toDisplayString(e.confirmText),3)])])):t.createCommentVNode("",!0)])])]),_:1},8,["visible","popClass"])],512)}const Fl=J(o0,[["render",h0]]),{componentName:g0,create:y0}=Y("swipe"),v0=y0({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:o}){const l=t.computed(()=>({[g0]:!0})),n=p=>p.value?.clientWidth||0,a=t.ref(),r=t.computed(()=>n(a)),s=t.ref(),i=t.computed(()=>n(s));let c=!1,d="",m="";const f=t.reactive({offset:0,moving:!1}),h=(p="")=>{c=!0,p&&(f.offset=p==="left"?-i.value:r.value),o("open",{name:e.name,position:d||p})},y=()=>{f.offset=0,c=!1,o("close",{name:e.name,position:d})},g=t.computed(()=>({transform:`translate3d(${f.offset}px, 0, 0)`})),k=p=>{d=p>0?"right":"left";let b=p;switch(d){case"left":c&&m===d?b=-i.value:b=Math.abs(p)>i.value?-i.value:p;break;case"right":c&&m===d?b=r.value:b=Math.abs(p)>r.value?r.value:p;break}f.offset=b},v=Ue();return{classes:l,touchStyle:g,...{onTouchStart(p){e.disabled||v.start(p)},onTouchMove(p){e.disabled||(v.move(p),v.isHorizontal()&&(f.moving=!0,k(v.deltaX.value),e.touchMovePreventDefault&&p.preventDefault(),e.touchMoveStopPropagation&&p.stopPropagation()))},onTouchEnd(){if(f.moving)switch(f.moving=!1,m=d,d){case"left":Math.abs(f.offset)<=i.value/2?y():(f.offset=-i.value,h());break;case"right":Math.abs(f.offset)<=r.value/2?y():(f.offset=r.value,h());break}}},leftRef:a,rightRef:s,open:h,close:y}}}),k0={class:"fox-swipe__left",ref:"leftRef"},b0={class:"fox-swipe__content"},S0={class:"fox-swipe__right",ref:"rightRef"};function C0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",k0,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",b0,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",S0,[t.renderSlot(e.$slots,"right")],512)],38)}const Ht=J(v0,[["render",C0]]),{componentName:w0,create:N0}=Y("action-sheet"),B0=N0({components:{[ie.name]:ie,Loading:te.Loading},props:{...ze,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:o}){const l=!!t.useSlots().default,n=t.computed(()=>({[w0]:!0}));return{slotDefault:l,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{o("cancel"),o("update:visible",!1)},chooseItem:(c,d)=>{!c.disable&&!c.loading&&(o("choose",c,d),o("update:visible",!1))},close:c=>{o("close",c),o("update:visible",!1)},classes:n}}}),V0={key:0,class:"fox-action-sheet__title"},A0={key:1},$0={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},T0={key:1,class:"fox-action-sheet__menu"},E0=["onClick"],D0={key:1},x0={class:"fox-action-sheet__subdesc"};function I0(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.title?(t.openBlock(),t.createElementBlock("view",V0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",A0,[e.description?(t.openBlock(),t.createElementBlock("view",$0,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",T0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:t.normalizeStyle({color:e.isHighlight(c)||c.color}),key:d,onClick:m=>e.chooseItem(c,d)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",D0,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",x0,t.toDisplayString(c[e.optionSubTag]),1)],14,E0))),128))])):t.createCommentVNode("",!0),e.cancelTxt?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-action-sheet__cancel",onClick:o[0]||(o[0]=(...c)=>e.cancelActionSheet&&e.cancelActionSheet(...c))},t.toDisplayString(e.cancelTxt),1)):t.createCommentVNode("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}const Rl=J(B0,[["render",I0]]),{componentName:q0,create:M0}=Y("backtop"),Ol=M0({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:o,slots:l}){const n=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),a=t.computed(()=>({[q0]:!0,show:n.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){n.scrollEl instanceof Window?n.scrollTop=n.scrollEl.pageYOffset:n.scrollTop=n.scrollEl.scrollTop,n.backTop=n.scrollTop>=e.distance}function i(g=0){n.scrollEl instanceof Window?window.scrollTo(0,g):n.scrollEl.scrollTop=g}function c(){let g=We(function k(){var v=e.duration-Math.max(0,n.startTime-+new Date+e.duration),u=v*-n.scrollTop/e.duration+n.scrollTop;i(u),g=We(k),(v==e.duration||u==0)&&kr(g)})}function d(){n.scrollEl.addEventListener("scroll",s,!1),n.scrollEl.addEventListener("resize",s,!1)}function m(){n.scrollEl.removeEventListener("scroll",s,!1),n.scrollEl.removeEventListener("resize",s,!1)}function f(g){n.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),o("click",g)}function h(){y.value?n.scrollEl=y.value.el:e.elId&&document.getElementById(e.elId)&&(n.scrollEl=document.getElementById(e.elId)),d()}t.onMounted(()=>{e.distance==0&&(n.backTop=!0),h()}),t.onUnmounted(()=>{m()}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1,h())}),t.onDeactivated(()=>{n.keepAlive=!0,m()});const y=t.computed(()=>{if(typeof l.content=="function"){const g=l.content();return Array.isArray(g)?g[0]:g}return null});return()=>{const g=[];y.value&&g.push(y.value);const k=[];if(typeof l.default=="function")k.push(l.default());else{const u=t.h(te.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});k.push(u)}const v=t.h("div",{class:a.value,style:r.value,onClick:f},k);return g.push(v),g}}}),{componentName:z0,create:P0}=Y("drag"),L0=P0({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:o}){const l=t.ref(),n=t.reactive({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),a=t.computed(()=>({[z0]:!0}));function r(){const f=document.documentElement;n.elWidth=l.value.offsetWidth,n.elHeight=l.value.offsetHeight,n.screenWidth=f.clientWidth,n.screenHeight=f.clientHeight}function s(f){n.boundary.left?+f.style.left.split("px")[0]>n.boundary.left?(f.style.left=+f.style.left.split("px")[0]-10+"px",Le(()=>{s(f)})):f.style.left=`${n.boundary.left}px`:+f.style.left.split("px")[0]>10?(f.style.left=+f.style.left.split("px")[0]-10+"px",Le(()=>{s(f)})):f.style.left="0px"}function i(f,h){h-parseInt(f.style.left.split("px")[0])>10?(f.style.left=parseInt(f.style.left.split("px")[0])+10+"px",Le(()=>{i(f,h)})):f.style.left=h+"px"}function c(f){f.preventDefault();const h=f.currentTarget;if(f.targetTouches.length===1){const y=f.targetTouches[0];n.nx=y.clientX-n.position.x,n.ny=y.clientY-n.position.y,n.xPum=n.startLeft+n.nx,n.yPum=n.startTop+n.ny;const g=n.screenWidth-n.elWidth-n.boundary.right;Math.abs(n.xPum)>g?n.xPum=g:n.xPum<=n.boundary.left&&(n.xPum=n.boundary.left),n.yPum<n.boundary.top?n.yPum=n.boundary.top:n.yPum>n.screenHeight-n.elHeight-n.boundary.bottom&&(n.yPum=n.screenHeight-n.elHeight-n.boundary.bottom),e.direction!="y"&&(h.style.left=n.xPum+"px"),e.direction!="x"&&(h.style.top=n.yPum+"px")}}function d(f){const h=f.currentTarget;let g=f.changedTouches[0].clientX;const k=n.screenWidth-n.elWidth-n.boundary.right;g>k?g=k:g<n.boundary.left?g=n.boundary.left:g=g<n.screenWidth/2?n.boundary.left:k,e.direction!="y"&&e.attract&&(g<n.screenWidth/2?Le(()=>{s(h)}):Le(()=>{i(h,k)})),e.direction!="x"&&(h.style.top=n.yPum+"px")}function m(f){const h=f.currentTarget,y=f.touches[0],g=f.targetTouches[0];n.startTop=h.offsetTop,n.startLeft=h.offsetLeft,n.position.x=y.clientX,n.position.y=y.clientY,n.nx=g.clientX-n.position.x,n.ny=g.clientY-n.position.y,n.xPum=n.startLeft+n.nx,n.yPum=n.startTop+n.ny}return t.onMounted(()=>{r(),n.boundary=e.boundary}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1)}),t.onDeactivated(()=>{n.keepAlive=!0;const f=l;f.value.removeEventListener("touchstart",m),f.value.removeEventListener("touchmove",c),f.value.removeEventListener("touchend",d)}),{classes:a,myDrag:l,touchStart:m,touchMove:c,touchEnd:d}}});function F0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:o[0]||(o[0]=s=>e.touchStart(s)),onTouchmove:o[1]||(o[1]=s=>e.touchMove(s)),onTouchend:o[2]||(o[2]=s=>e.touchEnd(s))},[t.renderSlot(e.$slots,"default")],34)}const Kl=J(L0,[["render",F0]]),R0={width:{type:[String,Number]},height:{type:[String,Number]},plain:{type:[Boolean]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},showClose:{type:Boolean,default:!1},closeIcon:{type:Object},content:{type:[String,Object]},showFooter:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},cancelButtonText:{type:String},cancelText:{type:String},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},confirmButtonText:{type:String},confirmText:{type:String},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},footerDirection:{type:String,default:"horizontal"},popClass:{type:String},popStyle:{type:Object},beforeClose:{type:Function}},O0=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function K0(e,o,l,n,a){return{props:{...ze,...R0},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:d}=ae.useFoxI18n(o),m=d(r,["confirmText","cancelText"]),f=e,h=t.ref(r.visible);t.watch(()=>r.visible,C=>{h.value!==C&&(h.value=C,C&&c("opened"))});const y=C=>{h.value=C,c("update:visible",C),c("update",C)},g=C=>{if(c(C),!(C==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const V=r.beforeClose(C);Mt(V)?V.then(B=>{B&&(y(!1),c("closed",C))}):V===!0&&(y(!1),c("closed",C))}else y(!1),c("closed",C)},k=()=>{g("confirm")},v=()=>{g("cancel")},u=()=>{g("close")},p=(C,V)=>O0(C)?(V.src=C,t.h("img",V)):typeof C=="string"?(Array.isArray(V.class)?V.class.push(C):V.class&&typeof V.class=="object"?V[`${C}`]=!0:typeof V.class=="string"?V.class=`${V.class}, ${C}`:V.class=C,t.h(r.tag,V)):t.h(C,V),b=()=>{const C=[];if(i.header){const B=i.header();C.push(B)}else{if(r.title){const B=t.h("view",{class:`${f}__header-title`},[r.title]);C.push(B)}if(r.showClose){const B={class:[`${f}__header-close-icon`],onClick:u},I=r.closeIcon??a,A=p(I,B);C.push(A)}}if(C.length===0)return null;const V={class:[`${f}__header`]};return t.h("view",V,C)},S=()=>{const C=[];if(i.default)C.push(i.default());else{const B={class:[`${f}__content`]};if(r.textAlign&&B.class.push(r.textAlign),typeof r.content=="string"){B.innerHTML=r.content;const I=t.h("view",B);C.push(I)}else if(typeof r.content=="function"){const I=t.h("view",B,[r.content()]);C.push(I)}else{const I=t.h("view",B,[r.content]);C.push(I)}}if(C.length===0)return null;const V={class:[`${f}__body`]};return t.h("view",V,C)},N=()=>{if(!r.showFooter)return null;const C=[];if(i.footer)C.push(i.footer());else if(r.plain){if(r.showCancelButton){const B={class:[`${f}__footer-button`,`${f}__footer-cancel`],style:{},onClick:v};r.cancelButtonClass&&B.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(B.style,r.cancleButtonStyle);const I=t.h("view",B,[r.cancelButtonText??m.cancelText.value]);C.push(I)}if(r.showConfirmButton){const B={class:[`${f}__footer-button`,`${f}__footer-confirm`],style:{},onClick:k};r.confirmButtonClass&&B.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(B.style,r.confirmButtonStyle);const I=t.h("view",B,[r.confirmButtonText??m.confirmText.value]);C.push(I)}}else{if(r.showCancelButton){const B={class:[`${f}__footer-button`,`${f}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:v};r.cancelButtonClass&&B.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(B.style,r.cancleButtonStyle);const I=t.h(n,B,{default:()=>[r.cancelButtonText??m.cancelText.value]});C.push(I)}if(r.showConfirmButton){const B={class:[`${f}__footer-button`,`${f}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:k};r.confirmButtonClass&&B.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(B.style,r.confirmButtonStyle);const I=t.h(n,B,{default:()=>[r.confirmButtonText??m.confirmText.value]});C.push(I)}}if(C.length===0)return null;const V={class:[`${f}__footer`,`${f}__footer--${r.footerDirection}`]};return t.h("view",V,C)};return()=>{const C=[],V=b();V&&C.push(V);const B=S();B&&C.push(B);const I=N();I&&C.push(I);const A={class:{[`${f}`]:!0,[`${f}--plain`]:r.plain}},w=t.h("view",A,C),P=[`${f}__popup`];r.popClass&&P.push(r.popClass);const F={};r.width&&(F.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(F.height=typeof r.height=="number"?`${r.height}px`:r.height);const x={...he(r,ze),popClass:P.join(" "),style:F,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":y,position:r.position,onClickOverlay:u,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(l,x,{default:()=>w})}}}}const{componentName:U0,create:H0,scope:j0}=Y("dialog"),Bs=H0(K0(U0,j0,ie,Ie,te.Close));class W0{title="";content="";cancelText="";confirmText="";textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=o=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1}class Y0{options=new W0;constructor(o){let l=Object.assign(this.options,o),n=document.body,a=l.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):n=l.teleport);const r=document.createElement("view"),s=`dialog-${l.id}`;r.id=s;const i={setup(){return l.onUpdate=d=>{if(d===!1){const m=document.querySelector(`#${s}`);m&&m.parentNode?.removeChild(m)}},l?.onOpened&&l?.onOpened(),()=>t.h(Bs,l)}},c=t.createVNode(i);n.appendChild(r),t.render(c,r)}}const jt=function(e){return new Y0(e)};jt.install=e=>{e.use(Bs),e.config.globalProperties.$dialog=jt};const{componentName:X0,create:Q0,scope:G0}=Y("pull-refresh"),Z0=Q0({props:{modelValue:{type:Boolean,default:!1},pullingText:{type:String},loosingText:{type:String},loadingText:{type:String},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},emits:["change","refresh","update:modelValue"],components:{Loading:te.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(G0),a=n(e,["pullingText","loosingText","loadingText"]),r=Ue(),s=t.ref(),i=is(s),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal"}),d=t.computed(()=>({[X0]:!0})),m=t.computed(()=>{switch(c.status){case"pulling":return l.pulling?"":a.pullingText.value;case"loosing":return l.loosing?"":a.loosingText.value;case"loading":return l.loading?"":a.loadingText.value}}),f=t.computed(()=>({transitionDuration:`${e.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=t.computed(()=>{const S={};return e.headHeight!=50&&(S.height=pe(e.headHeight)),S}),y=S=>{const N=+(e.pullDistance||e.headHeight);let C=S;return S>N&&(S<N*2?C=(S+N)/2:C=N+S/4),Math.round(C)},g=(S,N)=>{const C=+(e.pullDistance||e.headHeight);c.distance=S,N?c.status="loading":S===0?c.status="normal":S<C?c.status="pulling":c.status="loosing",o("change",{status:c.status,distance:S})},k=()=>c.status!=="loading"&&c.status!=="complete",v=()=>i.value==window?qn()==0:i.value&&i.value.scrollTop==0,u=S=>{k()&&(v()?(r.start(S),c.isPullRefresh=!0):(c.distance=0,c.isPullRefresh=!1))},p=S=>{if(k()){r.move(S);const{deltaY:N}=r;r.isVertical()&&N.value>0&&c.isPullRefresh&&(S.cancelable&&S.preventDefault(),g(y(N.value)))}},b=()=>{c.isPullRefresh&&k()&&r.deltaY.value&&(c.status==="loosing"?(g(+e.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):g(0)),setTimeout(()=>{r.reset()},0)};return t.watch(()=>e.modelValue,S=>{S?g(+e.headHeight,!0):g(0)}),{classes:d,scroller:s,...t.toRefs(c),touchStart:u,touchMove:p,touchEnd:b,getStyle:f,slots:l,getHeightStyle:h,getPullStatus:m}}}),J0={class:"fox-pull-refresh-container-topbox-text"};function _0(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),ref:"scroller",onTouchstart:o[0]||(o[0]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:o[1]||(o[1]=(...i)=>e.touchMove&&e.touchMove(...i)),onTouchend:o[2]||(o[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[t.createElementVNode("div",{class:"fox-pull-refresh-container",style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("div",{class:"fox-pull-refresh-container-topbox",style:t.normalizeStyle(e.getHeightStyle)},[e.status=="loading"&&!e.slots.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading fox-pull-refresh-container-topbox-icon"})):t.createCommentVNode("",!0),t.createElementVNode("div",J0,t.toDisplayString(e.getPullStatus),1),e.status=="pulling"?t.renderSlot(e.$slots,"pulling",{key:1}):t.createCommentVNode("",!0),e.status=="loosing"?t.renderSlot(e.$slots,"loosing",{key:2}):t.createCommentVNode("",!0),e.status=="loading"?t.renderSlot(e.$slots,"loading",{key:3}):t.createCommentVNode("",!0)],4),t.renderSlot(e.$slots,"default")],4)],34)}const Ul=J(Z0,[["render",_0]]),{create:ek}=Y("notify"),tk=ek({components:{[ie.name]:ie},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:o}){const l=()=>{e.onClick&&e.onClick()};let n=null;const a=()=>{n&&clearTimeout(n),n=null},r=()=>{o("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,d=>{s.value=e.visible;const m=e.duration;d&&m&&(n=setTimeout(()=>{r()},m))},{immediate:!0});return{onAfterLeave:()=>{a(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:l,isShowPopup:s}}});function ok(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.isShowPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.isShowPopup=i),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:o[0]||(o[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}const Hl=J(tk,[["render",ok]]),Tn={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let dt=[],xt=[];const Vs=e=>{if(e){const o=document.getElementById(e);xt=xt.filter(l=>l.id!==e),dt=dt.filter(l=>l!==e),o&&document.body.removeChild(o)}else dt.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),xt=[],dt=[]},nk=e=>{const o=document.getElementById(e.id);if(o){const l=xt.find(a=>a.id===e.id);l?e={...Tn,...l,...e}:e={...Tn,...e};const n=t.createVNode(Hl,e);return t.render(n,o),n.component.data}},At=e=>{e.unmount=Vs;let o;if(e.id){if(o=e.id,dt.find(r=>r===e.id))return nk(e)}else o=new Date().getTime()+"";e={...Tn,...e},e.id=o,dt.push(e.id),xt.push(e);const l=document.createElement("view");l.id="notify-"+e.id;const n={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(l)},e.duration)}),()=>t.h(Hl,e)}},a=t.createVNode(n);document.body.appendChild(l),t.render(a,l)},$t=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},jl={text(e,o={}){return $t(e),At({...o,msg:e})},primary(e,o={}){return $t(e),At({...o,msg:e,type:"primary"})},success(e,o={}){return $t(e),At({...o,msg:e,type:"success"})},danger(e,o={}){return $t(e),At({...o,msg:e,type:"danger"})},warn(e,o={}){return $t(e),At({...o,msg:e,type:"warning"})},hide(){Vs()},install(e){e.use(Hl)}},{create:lk}=Y("toast"),ak=lk({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:o}){let l=null;const n=t.reactive({mounted:!1});t.onMounted(()=>{n.mounted=!0});const a=()=>{l&&(clearTimeout(l),l=null)},r=()=>{n.mounted=!1},s=()=>{a(),e.duration&&(l=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),o("close"))};e.duration&&s(),t.watch(()=>e.duration,y=>{y&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const y=se(e.iconSize);return t.h(e.icon,{width:y,height:y,color:e.iconColor})},m=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),f=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:r,clickCover:i,renderIcon:d,hasIcon:c,toastBodyClass:m,toastIconWrapperClass:f,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),rk={key:1,class:"fox-toast-title"},sk=["innerHTML"];function ik(e,o,l,n,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:o[0]||(o[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",rk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,sk)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Wl=J(ak,[["render",ik]]),En={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1};let ft=[],It=[];const As=e=>{if(e){const o=document.getElementById(e);It=It.filter(l=>l.id!==e),ft=ft.filter(l=>l!==e),o&&document.body.removeChild(o)}else ft.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),It=[],ft=[]},ck=e=>{const o=document.getElementById(e.id);if(o){const l=It.find(a=>a.id===e.id);l?e={...En,...l,...e}:e={...En,...e};const n=t.createVNode(Wl,e);return t.render(n,o),Ct}},Tt=e=>{e.unmount=As;let o;if(e.id){if(o=e.id,ft.find(a=>a===e.id))return ck(e)}else o=new Date().getTime()+"";e={...En,...e},e.id=o,ft.push(e.id),It.push(e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(Wl,e);return t.render(n,l),document.body.appendChild(l),Ct},Jt=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Ct={text(e,o={}){return Jt(e),Tt({...o,type:"text",msg:e})},success(e,o={}){return Jt(e),Tt({icon:te.Success,...o,msg:e,type:"success"})},fail(e,o={}){return Jt(e),Tt({icon:te.Failure,...o,msg:e,type:"fail"})},warn(e,o={}){return Jt(e),Tt({icon:te.Tips,...o,msg:e,type:"warn"})},loading(e,o={}){return Tt({icon:te.Loading,...o,msg:e,type:"loading"})},hide(e){As(e)},install(e){e.use(Wl),e.config.globalProperties.$toast=Ct}},{componentName:s2,create:uk}=Y("audio"),dk=uk({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:te.Service,[Kt.name]:Kt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var k=["webkitVisibilityState","visibilitychange"];try{for(let v=0;v<k.length;v++)document.addEventListener(k[v],()=>{document.hidden?n.value.pause():a.playing&&setTimeout(()=>{n.value.play()},200)})}catch(v){v.message}});const r=k=>{const v=n.value;e.autoplay&&v&&v.paused&&v.play(),a.second=v.duration,a.duration=g(v.duration),o("can-play",k)},s=k=>{a.currentTime=parseInt(k.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,n.value.currentTime=a.currentTime,o("fastBack",a.currentTime)},c=()=>{const k=n.value;a.playing?(k.pause(),a.handPlaying=!1):(k.play(),a.handPlaying=!0),a.playing=!a.playing,o("play",a.playing)},d=()=>{a.currentTime++,n.value.currentTime=a.currentTime,o("forward",a.currentTime)},m=k=>{a.currentDuration=g(k),a.percent=k/a.second*100},f=()=>{a.playing=!1,o("ended")},h=k=>{const v=n.value;v.currentTime=a.second*k/100,o("changeProgress",v.currentTime)},y=()=>{a.hanMuted=!a.hanMuted,o("mute",a.hanMuted)},g=k=>{if(!k)return"00:00:00";let v=parseInt(k),u=Math.floor(v/3600),p=Math.floor((v-u*3600)/60),b=v-u*3600-p*60,S="";return S+=("0"+u.toString()).slice(-2)+":",S+=("0"+p.toString()).slice(-2)+":",S+=("0"+b.toString()).slice(-2),S};return t.watch(()=>a.currentTime,k=>{m(k)}),t.provide("audioParent",{children:[],props:e,audioData:a,handleMute:y,forward:d,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(a),audioRef:n,fastBack:i,forward:d,changeStatus:c,progressChange:h,audioEnd:f,onTimeupdate:s,handleMute:y,onCanplay:r,slots:l}}}),fk={class:"fox-audio"},mk={key:0,class:"fox-audio__progress"},pk={class:"fox-audio__time"},hk={class:"fox-audio__bar"},gk=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),yk={class:"fox-audio__time"},vk={key:1,class:"fox-audio__icon"},kk=["controls","src","preload","autoplay","loop","muted"];function bk(e,o,l,n,a,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",fk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",mk,[t.createElementVNode("div",pk,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",hk,[t.createVNode(s,{modelValue:e.percent,"onUpdate:modelValue":o[0]||(o[0]=c=>e.percent=c),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:t.withCtx(()=>[gk]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",yk,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",vk,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:o[1]||(o[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):(t.openBlock(),t.createBlock(i,{key:1}))],2)])):t.createCommentVNode("",!0),e.type=="none"?(t.openBlock(),t.createElementBlock("div",{key:2,onClick:o[2]||(o[2]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type!="none"?t.renderSlot(e.$slots,"default",{key:3}):t.createCommentVNode("",!0),t.createElementVNode("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:o[3]||(o[3]=(...c)=>e.onTimeupdate&&e.onTimeupdate(...c)),onCanplay:o[4]||(o[4]=(...c)=>e.onCanplay&&e.onCanplay(...c)),onEnded:o[5]||(o[5]=(...c)=>e.audioEnd&&e.audioEnd(...c)),muted:e.hanMuted},null,40,kk)])}const Yl=J(dk,[["render",bk]]),{componentName:i2,create:Sk,scope:Ck}=Y("audio-operate"),wk=Sk({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(Ck),n=t.inject("audioParent"),a=t.reactive(n),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(a),customSlot:r,t:l}}}),Nk={class:"fox-audio-operate"};function Bk(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Nk,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:o[0]||(o[0]=(...i)=>e.fastBack&&e.fastBack(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:o[1]||(o[1]=(...i)=>e.changeStatus&&e.changeStatus(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:o[2]||(o[2]=(...i)=>e.forward&&e.forward(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:o[3]||(o[3]=(...i)=>e.handleMute&&e.handleMute(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("mute")),1)]),_:1},8,["type"])),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)])}const Xl=J(wk,[["render",Bk]]),{componentName:Vk,create:Ak}=Y("avatar"),$k=Ak({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:o,shape:l,bgColor:n,color:a}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),d=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const g=s?.avatarGroupRef?.value?.children;g&&y(g)});const m=t.computed(()=>({[Vk]:!0,[`fox-avatar-${o.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${l.value||s?.props?.shape||"normal"}`]:!0})),f=t.computed(()=>({width:r.indexOf(o.value)>-1?"":`${o.value}px`,height:r.indexOf(o.value)>-1?"":`${o.value}px`,backgroundColor:`${n.value}`,color:`${a.value}`,marginLeft:d.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),y=g=>{d.maxIndex=g.length;for(let k=0;k<g.length;k++)g[k]&&g[k].classList&&g[k].classList[0]=="fox-avatar"&&g[k].setAttribute("data-index",k+1);d.index=i?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=s?.props?.maxCount&&(d.showMax=!0)};return{classes:m,styles:f,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(d)}}});function Tk(e,o,l,n,a,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const Wt=J($k,[["render",Tk]]),{componentName:Ek,create:Dk}=Y("avatar-group"),xk=Dk({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:o,slots:l}){t.toRefs(e);const n=t.ref(null),a=t.ref(0),r=t.computed(()=>({[Ek]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:n,index:a}),{classes:r,avatarGroupRef:n}}});function Ik(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const Ql=J(xk,[["render",Ik]]);var no=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(no||{});function qk(e,o,l){let n=0,a=e.length-1,r=null;for(;n<=a;){r=Math.floor((n+a)/2);const s=e[r],i=l(s,o);if(i===1)return r;i===2?n=r+1:i===3&&(a=r-1)}return r}const{componentName:Mk,create:zk}=Y("list"),yr=document.documentElement.clientHeight||document.body.clientHeight||667,Pk=zk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:yr},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref(null),a=t.ref(null),r=t.reactive({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),s=t.computed(()=>Math.min(e.containerHeight,yr)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),d=t.computed(()=>({[Mk]:!0})),m=t.computed(()=>r.list.slice(r.start,c.value)),f=()=>{if(a.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let u=0;u<r.list.length;++u)r.cachePositions[u]={index:u,height:e.height,top:u*e.height,bottom:(u+1)*(e.height+e.margin),dValue:0}},y=()=>{let u=a.value.childNodes;u=Array.from(u).filter(V=>V.nodeType===1);const p=u[0];u.forEach((V,B)=>{if(!V)return;const I=Ve(V),{height:A}=I,P=r.cachePositions[B+r.start].height-A;P&&(r.cachePositions[B+r.start].bottom-=P,r.cachePositions[B+r.start].height=A,r.cachePositions[B+r.start].dValue=P)});let b=0;p&&(b=r.start);const S=r.cachePositions.length;let N=r.cachePositions[b].dValue;r.cachePositions[b].dValue=0;for(let V=b+1;V<S;++V){const B=r.cachePositions[V];r.cachePositions[V].top=r.cachePositions[V-1].bottom,r.cachePositions[V].bottom=r.cachePositions[V].bottom-N,B.dValue!==0&&(N+=B.dValue,B.dValue=0)}const C=r.cachePositions[S-1].bottom;r.phantomHeight=C},g=(u=0)=>{let p=qk(r.cachePositions,u,(S,N)=>{const C=S.bottom;return C===N?no.eq:C<N?no.lt:no.gt});return r.cachePositions[p].bottom<u&&(p+=1),p},k=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,l.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},v=()=>{const u=l.value?.scrollTop,{originStartIndex:p}=r,b=g(u);b!==p&&(r.originStartIndex=b,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&o("scroll-bottom")),o(u>r.scrollTop?"scroll-up":"scroll-down",u),r.scrollTop=u};return t.watch(()=>e.listData,u=>{if(r.list=u.slice(),r.list.length===u.length)h(),y();else{k();return}}),t.watch(()=>r.start,()=>{a.value&&r.list.length>0&&y()}),{...t.toRefs(r),list:l,phantom:n,actualContent:a,getTransform:f,visibleData:m,classes:d,getContainerHeight:s,handleScrollEvent:v}}});function Lk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:o[0]||(o[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform()}),ref:"actualContent"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:s},[t.renderSlot(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}const Gl=J(Pk,[["render",Lk]]),{componentName:Fk,create:Rk}=Y("circleprogress"),Ok=Rk({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:o}){const l=!!t.useSlots().default,n=Math.random().toString(36).slice(-8),a=t.computed(()=>({[Fk]:!0})),r=t.computed(()=>{const m=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${m} 0 90 a 45 45 0 1, ${m} 0 -90`}),s=t.computed(()=>Be(e.color)?`url(#${n})`:e.color),i=t.computed(()=>{let m=283,f=m*Number(e.progress)/100;return{stroke:Be(e.color)?`url(#${n})`:e.color,strokeDasharray:`${f}px ${m}px`}}),c=t.computed(()=>({stroke:e.pathColor})),d=t.computed(()=>{if(!Be(e.color))return;let m=e.color;const f=Object.keys(m).sort((y,g)=>parseFloat(y)-parseFloat(g));let h=[];return f.map((y,g)=>{let k={key:"",value:""};k.key=y,k.value=m[y],h.push(k)}),h});return{classes:a,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:d,slotDefault:l,refRandomId:n}}}),Kk={viewBox:"0 0 100 100"},Uk=["id"],Hk=["offset","stop-color"],jk=["d","stroke-width"],Wk=["d","stroke","stroke-linecap","stroke-width"],Yk={class:"fox-circleprogress-text"},Xk={key:0};function Qk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",Kk,[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.stop,(s,i)=>(t.openBlock(),t.createElementBlock("stop",{key:i,offset:s.key,"stop-color":s.value},null,8,Hk))),128))],8,Uk)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,jk),t.createElementVNode("path",{class:"fox-circleprogress-hover",style:t.normalizeStyle(e.hoverStyle),d:e.path,fill:"none",stroke:e.hoverColor,"stroke-linecap":e.strokeLinecap,"stroke-width":e.strokeWidth},null,12,Wk)])),t.createElementVNode("div",Yk,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Xk,t.toDisplayString(e.progress)+"%",1))])],6)}const Zl=J(Ok,[["render",Qk]]),{componentName:Gk,create:Zk}=Y("noticebar"),Jk=Zk({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:te.Notice,CircleClose:te.CircleClose},emits:["click","close","across-end"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=t.computed(()=>({[Gk]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),d=t.computed(()=>{let V={};return e.color&&(V.color=e.color),e.background&&(V.background=e.background),e.direction=="vertical"&&(V.height=`${e.height}px`),V}),m=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),f=t.computed(()=>{let V={};if(e.complexAm)V={transform:`translateY(${r.distance}px)`};else if(r.animate){let B=~~(e.height/e.speed/4);V={transition:`all ${B==0?~~(e.height/e.speed):B}s`,"margin-top":`-${e.height}px`}}return V});t.watch(()=>e.text,V=>{h()}),t.watch(()=>e.list,V=>{r.scrollList=[...V]});const h=V=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!n.value||!a.value)return;const B=n.value.getBoundingClientRect().width,I=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?I>B:e.scrollable,r.isCanScroll?(r.wrapWidth=B,r.offsetWidth=I,r.duration=I/e.speed,r.animationClass="play"):r.animationClass=""},0)},y=V=>{o("click",V)},g=V=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",V)},k=V=>{r.firstRound=!1,o("across-end",V),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},v=()=>{u(),r.timer=setInterval(u,~~(e.height/e.speed/4*1e3)+e.standTime)},u=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},p=()=>{r.timer=setInterval(()=>{let V=100;for(let B=0;B<V;B++)b(B,!(B<V-1))},e.standTime+100*e.speed)},b=(V,B)=>{setTimeout(()=>{r.distance-=e.height/100,B&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},V*e.speed)},S=V=>{o("click",V)},N=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(l.default?C(l.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?p():v()},e.standTime)):h(e.text)}),t.watch(()=>l.default?l.default():[],V=>{e.direction==="vertical"&&l.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),C(V))});const C=V=>{V&&V.length>0&&(r.scrollList=V[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:d,contentStyle:m,horseLampStyle:f,wrap:n,content:a,handleClick:y,onClickIcon:g,onAnimationEnd:k,go:S,handleClickIcon:N,slots:l,toPxDesc:pe,wrapContentClass:c}}}),_k={class:"fox-noticebar__page-lefticon"},eb={ref:"wrap",class:"fox-noticebar__page-wrap"},tb={class:"showNotica"},ob=["onClick"];function nb(e,o,l,n,a,r){const s=t.resolveComponent("Notice"),i=t.resolveComponent("CircleClose"),c=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:o[3]||(o[3]=(...d)=>e.handleClick&&e.handleClick(...d))},[t.createElementVNode("view",_k,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",eb,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:o[0]||(o[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":o[1]||(o[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__page-righticon",onClick:o[2]||(o[2]=t.withModifiers((...d)=>e.onClickIcon&&e.onClickIcon(...d),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",tb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(d,m)=>(t.openBlock(),t.createBlock(c,{key:m,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:d},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(d,m)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:m,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:f=>e.go(d)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(d),1)])],12,ob))),128))],4)),t.createElementVNode("view",{class:"go",onClick:o[4]||(o[4]=d=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const Jl=J(Jk,[["render",nb]]),lb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVF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nLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:c2,create:sb,scope:ib}=Y("empty"),cb={empty:lb,error:ab,network:rb},ub=sb({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:o}=ae.useFoxI18n(ib),l=o(e,["description"]),{image:n,imageSize:a}=t.toRefs(e),r=t.computed(()=>a.value?typeof a.value=="number"?`width:${a.value}px;height:${a.value}px`:`width:${a.value};height:${a.value}`:""),i=n.value.startsWith("https://")||n.value.startsWith("http://")||n.value.startsWith("//")?n.value:cb[n.value];return{...l,imageUrl:i,imgStyle:r}}}),db={class:"fox-empty"},fb=["src"],mb={key:1,class:"fox-empty-description"};function pb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",db,[t.createElementVNode("view",{class:"fox-empty-image",style:t.normalizeStyle(e.imgStyle)},[e.$slots.image?t.renderSlot(e.$slots,"image",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.imageUrl?(t.openBlock(),t.createElementBlock("img",{key:0,class:"img",src:e.imageUrl},null,8,fb)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",mb,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const _l=J(ub,[["render",pb]]),{create:hb,scope:gb}=Y("video"),yb=hb({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(gb),n=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),a=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,C=>{C.src&&t.nextTick(()=>{n.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,C=>{n.state.isMuted=C?C.muted:!1},{immediate:!0});const s=()=>{n.videoElm=a.value,e.options.autoplay&&setTimeout(()=>{n.videoElm.play()},200),e.options.touchPlay&&(n.showTouchMask=!0),e.options.playsinline&&(n.videoElm.setAttribute("playsinline",e.options.playsinline),n.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),n.videoElm.setAttribute("x5-video-player-type","h5-page"),n.videoElm.setAttribute("x5-video-player-fullscreen",!1)),g(),n.showToolbox?i():(n.videoElm.addEventListener("play",()=>{n.state.playing=!0,o("play",n.videoElm)}),n.videoElm.addEventListener("pause",()=>{n.state.playing=!1,o("pause",n.videoElm)}),n.videoElm.addEventListener("ended",h),n.videoElm.addEventListener("timeupdate",ro(f,1e3)))},i=()=>{const C=a.value,V=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];n.player.$player=C,n.progressBar.progressElm=V,n.progressBar.pos=V.getBoundingClientRect(),n.videoSet.progress.width=Math.round(V.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return n.state.playing=!0,!1;if(n.state.playing=!n.state.playing,n.videoElm)if(n.state.playing)try{setTimeout(()=>{n.videoElm.play()},200),n.videoElm.addEventListener("progress",()=>{m()}),n.videoElm.addEventListener("timeupdate",ro(f,1e3)),n.videoElm.addEventListener("ended",h),o("play",n.videoElm)}catch{y()}else n.videoElm.pause(),o("pause",n.videoElm)},d=C=>{var V=Math.floor(C/3600);V<10&&(V="0"+V);var B=Math.floor(C%3600/60);B<10&&(B="0"+B);var I=Math.round(C%3600%60);I<10&&(I="0"+I);var A="";return V!=0?A=V+":"+B+":"+I:A=B+":"+I,A},m=()=>{n.videoSet.loaded&&(n.videoSet.loaded=n.videoElm.buffered.end(0)/n.videoElm.duration*100)},f=()=>{const C=n.videoElm.currentTime/n.videoElm.duration;n.videoSet.progress.current=Math.round(n.videoSet.progress.width*C),n.videoSet.totalTime=d(n.videoElm.duration),n.videoSet.displayTime=d(n.videoElm.currentTime),o("time",n.videoSet.displayTime,n.videoSet.totalTime)},h=()=>{n.state.playing=!1,n.state.isEnd=!0,n.videoSet.displayTime="00:00",n.videoSet.progress.current=0,n.videoElm.currentTime=0,o("playend",n.videoElm)},y=()=>{n.state.isError=!0},g=()=>{n.state.vol=e.options.volume},k=()=>{n.state.isMuted=!n.state.isMuted,n.videoElm.muted=n.state.isMuted},v=()=>{},u=C=>{let B=C.targetTouches[0].pageX-n.progressBar.pos.left;B<=0&&(B=0),B>=n.videoSet.progress.width&&(B=n.videoSet.progress.width),n.videoSet.progress.current=B;let I=n.videoSet.progress.current/n.videoSet.progress.width;n.videoElm.duration&&b(I,n.videoElm.duration)},p=C=>{let B=C.changedTouches[0].pageX-n.progressBar.pos.left;n.videoSet.progress.current=B;let I=B/n.videoSet.progress.width;n.videoElm.duration&&b(I,n.videoElm.duration)},b=(C,V)=>{n.videoElm.currentTime=Math.floor(C*V)},S=()=>{n.state.isError=!1,s()},N=()=>{n.state.fullScreen?(n.state.fullScreen=!1,document.webkitCancelFullScreen()):(n.state.fullScreen=!0,n.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:a,...t.toRefs(e),...t.toRefs(n),handleError:y,isDisabled:r,play:c,handleMuted:k,touchSlidSrart:v,touchSlidMove:u,touchSlidEnd:p,retry:S,fullScreen:N,t:l}}}),vb={class:"fox-video",ref:"videocon"},kb=["muted","autoplay","loop","poster","controls","preload"],bb=["src","type"],Sb={class:"fox-video-controller__now"},Cb={class:"fox-video-controller__progress"},wb={class:"fox-video-controller__progress-value",ref:"progressBar"},Nb=t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1),Bb=[Nb],Vb={class:"fox-video-controller__played",ref:"playedBar"},Ab={class:"fox-video-controller__total"},$b={class:"fox-video-error"},Tb={class:"fox-video-error-tip"};function Eb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",vb,[t.createElementVNode("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:o[0]||(o[0]=(...s)=>e.handleError&&e.handleError(...s))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,bb)],40,kb),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:o[1]||(o[1]=(...s)=>e.play&&e.play(...s))},null,512)):t.createCommentVNode("",!0),e.showToolbox&&!e.isDisabled?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:o[2]||(o[2]=(...s)=>e.play&&e.play(...s))},null,512)),[[t.vShow,!e.state.playing]]):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[t.createElementVNode("div",{class:"fox-video-controller__playbtn",onClick:o[3]||(o[3]=(...s)=>e.play&&e.play(...s))}),t.createElementVNode("div",Sb,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",Cb,[t.createElementVNode("div",wb,[t.createElementVNode("div",{class:"buffered",style:t.normalizeStyle({width:`${e.videoSet.loaded}%`})},null,4),t.createElementVNode("div",{class:"fox-video-controller__ball",style:t.normalizeStyle({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:o[4]||(o[4]=t.withModifiers(s=>e.touchSlidMove(s),["stop","prevent"])),onTouchstart:o[5]||(o[5]=t.withModifiers(s=>e.touchSlidSrart(),["stop"])),onTouchend:o[6]||(o[6]=t.withModifiers(s=>e.touchSlidEnd(s),["stop"]))},Bb,36),t.createElementVNode("div",Vb,null,512)],512)]),t.createElementVNode("div",Ab,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:o[7]||(o[7]=(...s)=>e.handleMuted&&e.handleMuted(...s))},null,2),t.createElementVNode("div",{class:"fox-video-controller__full",onClick:o[8]||(o[8]=(...s)=>e.fullScreen&&e.fullScreen(...s))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",$b,[t.createElementVNode("p",Tb,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:o[9]||(o[9]=(...s)=>e.retry&&e.retry(...s))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const kt=J(yb,[["render",Eb]]),{create:Db,componentName:xb}=Y("steps"),ea=Db({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:o,slots:l}){const n=t.reactive({children:[]}),a=t.computed(()=>{const i=xb;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&n.children.push(i)},s=i=>{o("click-step",i)};return t.provide("parent",{relation:r,state:n,props:e,onEmit:s}),()=>t.h("view",{class:a.value},l.default?.())}}),{create:Ib,componentName:qb}=Y("step"),Mb=Ib({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=t.getCurrentInstance(),o=t.inject("parent");o.relation(e);const l=t.reactive({dot:o.props.progressDot}),n=t.computed(()=>o.state.children.indexOf(e)+1),a=()=>{const c=n.value;return c<+o.props.current?"finish":c===+o.props.current?"process":"wait"},r=t.computed(()=>a()),s=t.computed(()=>{const c=qb;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{o.onEmit(n.value)};return{...t.toRefs(l),index:n,classes:s,handleClickStep:i}}}),zb={class:"fox-step-head"},Pb=t.createElementVNode("view",{class:"fox-step-line"},null,-1),Lb={class:"fox-step-icon-inner"},Fb={key:1,class:"fox-step-inner"},Rb={class:"fox-step-main"},Ob={class:"fox-step-title"},Kb={key:0},Ub={key:0,class:"fox-step-content"},Hb=["innerHTML"];function jb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[t.createElementVNode("view",zb,[Pb,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",Lb,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",Fb,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",Rb,[t.createElementVNode("view",Ob,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",Kb,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",Ub,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,Hb)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ta=J(Mb,[["render",jb]]),{create:Wb,componentName:on}=Y("swiper"),Yb=Wb({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:o,slots:l}){const n=t.ref(),a=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=Ue(),s=t.computed(()=>({[on]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const D=on;return{[`${D}-inner`]:!0,[`${D}-vertical`]:i.value}}),d=t.computed(()=>{const D=on;return{[`${D}-pagination`]:!0,[`${D}-pagination-vertical`]:i.value}}),m=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),f=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>a.children.length),y=t.computed(()=>a[i.value?"height":"width"]),g=t.computed(()=>h.value*y.value),k=t.computed(()=>a.rect?(i.value?a.rect.height:a.rect.width)-y.value*h.value:0),v=t.computed(()=>(a.active+h.value)%h.value),u=()=>{let D=0;D=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${D}px)`,[i.value?"height":"width"]:`${y.value*h.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},p=D=>{let W=[];const H=a.childrenVNode.length;let G=l?.default?.();if(G=G.filter(R=>R.children&&Array.isArray(R.children)),G.forEach(R=>{W=W.concat(R.children)}),!H)a.childrenVNode=W.slice(),D.proxy&&a.children.push(D.proxy);else if(H>W.length)a.children=a.children.filter(R=>D.proxy!==R);else if(H<W.length){for(let R=0;R<H;R++)if(W[R].key!==a.childrenVNode[R].key){D.proxy&&a.children.splice(R,0,D.proxy),D.vnode&&a.childrenVNode.splice(R,0,D.vnode);break}H!==W.length&&(D.proxy&&a.children.push(D.proxy),D.vnode&&a.childrenVNode.push(D.vnode))}else a.childrenVNode=W.slice(),D.proxy&&a.children.push(D.proxy)},b=(D,W=0)=>{let H=D*y.value;e.loop||(H=Math.min(H,-k.value));let G=W-H;return e.loop||(G=Fe(G,k.value,0)),G},S=D=>{const{active:W}=a;return D?e.loop?Fe(W+D,-1,h.value):Fe(W+D,0,h.value-1):W},N=({pace:D=0,offset:W=0,isEmit:H=!1})=>{if(h.value<=1)return;const{active:G}=a,R=S(D),$=b(R,W);if(e.loop){if(a.children[0]&&$!==k.value){const T=$<k.value;a.children[0].setOffset(T?g.value:0)}if(a.children[h.value-1]&&$!==0){const T=$>0;a.children[h.value-1].setOffset(T?-g.value:0)}}a.active=R,a.offset=$,H&&G!==a.active&&o("change",v.value),u()},C=()=>{a.moving=!0,a.active<=-1&&N({pace:h.value}),a.active>=h.value&&N({pace:-h.value})},V=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},B=D=>{C(),r.reset(),We(()=>{We(()=>{a.moving=!1,N({pace:D,isEmit:!0})})})},I=()=>{B(-1)},A=()=>{B(1)},w=D=>{C(),r.reset(),We(()=>{a.moving=!1;let W;e.loop&&h.value===D?W=a.active===0?0:D:W=D%h.value,N({pace:W-a.active,isEmit:!0})})},P=()=>{e.autoPlay<=0||h.value<=1||(V(),a.autoplayTimer=setTimeout(()=>{A(),P()},Number(e.autoPlay)))},F=(D=+e.initPage)=>{V(),a.rect=n.value.getBoundingClientRect(),D=Math.min(h.value-1,D),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=D,a.offset=b(a.active),a.moving=!0,u(),P()},E=D=>{e.isPreventDefault&&D.preventDefault(),e.isStopPropagation&&D.stopPropagation(),e.touchable&&(r.start(D),a.touchTime=Date.now(),V(),C())},x=D=>{e.touchable&&a.moving&&(r.move(D),f.value&&N({offset:m.value}))},U=D=>{if(!e.touchable||!a.moving)return;const W=m.value/(Date.now()-a.touchTime);if((Math.abs(W)>.3||Math.abs(m.value)>+(y.value/2).toFixed(2))&&f.value){let G=0;const R=i.value?r.offsetY.value:r.offsetX.value;e.loop?G=R>0?m.value>0?-1:1:0:G=-Math[m.value>0?"ceil":"floor"](m.value/y.value),N({pace:G,isEmit:!0})}else m.value&&N({pace:0});a.moving=!1,u(),P()};return t.provide("parent",{props:e,size:y,relation:p}),$e({prev:I,next:A,to:w}),t.onDeactivated(()=>{V()}),t.onBeforeUnmount(()=>{V()}),t.watch(()=>e.initPage,D=>{t.nextTick(()=>{F(Number(D))})}),t.watch(()=>a.children.length,()=>{t.nextTick(()=>{F()})}),t.watch(()=>e.autoPlay,D=>{D>0?P():V()}),{state:a,classes:s,classesInner:c,classesPagination:d,container:n,activePagination:v,onTouchStart:E,onTouchMove:x,onTouchEnd:U}}});function Xb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.classesInner),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classesPagination)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(s,i)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===i}),key:i},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const bt=J(Yb,[["render",Xb]]),{create:Qb,componentName:Gb}=Y("swiper-item"),Zb=Qb({setup(e,{slots:o}){const l=t.inject("parent");l.relation(t.getCurrentInstance());const n=t.reactive({offset:0}),a=t.computed(()=>({[Gb]:!0})),r=t.computed(()=>{const i={},c=l?.props.direction;return l?.size.value&&(i[c==="horizontal"?"width":"height"]=`${l?.size.value}px`),n.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${n.offset}px)`),i}),s=i=>{n.offset=i};return t.onUnmounted(()=>{l.relation(t.getCurrentInstance(),"unmount")}),$e({setOffset:s}),{style:r,classes:a}}});function Jb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const St=J(Zb,[["render",Jb]]),$s={show:{type:Boolean,default:!1},initNo:{type:Number,default:0},showIndex:{type:Boolean,default:!0},minZoom:{type:Number,default:1/3},maxZoom:{type:Number,default:3}},{create:_b}=Y("image-preview-item"),eS=_b({props:{...$s,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},contentClose:{type:Boolean,default:!0}},emits:["close","scale"],components:{[kt.name]:kt,[St.name]:St},setup(e,{emit:o}){const l=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),n=Ue(),a=t.computed(()=>{const{rootWidth:I,rootHeight:A}=e,w=A/I;return l.imageRatio>w}),r=t.computed(()=>{const I=e.image;if(I&&I.src){const{scale:A,moveX:w,moveY:P,moving:F,zooming:E}=l,x={transitionDuration:E||F?"0s":".3s"};if(A!==1){const U=w/A,D=P/A;x.transform=`scale(${A}, ${A}) translate(${U}px, ${D}px)`}return x}return{}}),s=t.computed(()=>{if(l.imageRatio){const{rootWidth:I,rootHeight:A}=e,w=a.value?A/l.imageRatio:I;return Math.max(0,(l.scale*w-I)/2)}return 0}),i=t.computed(()=>{if(l.imageRatio){const{rootWidth:I,rootHeight:A}=e,w=a.value?A:I*l.imageRatio;return Math.max(0,(l.scale*w-A)/2)}return 0}),c=I=>{const{naturalWidth:A,naturalHeight:w}=I.target;l.imageRatio=w/A},d=()=>{m(1),l.moveX=0,l.moveY=0},m=I=>{I=Fe(I,+e.minZoom,+e.maxZoom+1),I!==l.scale&&(l.scale=I,o("scale",{scale:I,index:e.initNo}))},f=()=>{const I=l.scale>1?1:2;m(I),l.moveX=0,l.moveY=0},h=I=>Math.sqrt((I[0].clientX-I[1].clientX)**2+(I[0].clientY-I[1].clientY)**2);let y,g,k,v,u,p,b;const S=I=>{const{touches:A}=I,{offsetX:w}=n;n.start(I),b=A.length,y=l.moveX,g=l.moveY,p=Date.now(),l.moving=b===1&&l.scale!==1,l.zooming=b===2&&!w.value,l.zooming&&(k=l.scale,v=h(I.touches))},N=I=>{const{touches:A}=I;if(n.move(I),(l.moving||l.zooming)&&fn(I,!0),l.moving){const{deltaX:w,deltaY:P}=n,F=w.value+y,E=P.value+g;l.moveX=Fe(F,-s.value,s.value),l.moveY=Fe(E,-i.value,i.value)}if(l.zooming&&A.length===2){const w=h(A),P=k*w/v;m(P)}},C=()=>{if(b==1&&e.video&&e.video.source||b>1)return;const{offsetX:I,offsetY:A}=n,w=Date.now()-p,P=250,F=5;I.value<F&&A.value<F&&w<P&&(u?(clearTimeout(u),u=null,f()):u=setTimeout(()=>{e.contentClose&&o("close"),u=null},P))},V=I=>{let A=!1;(l.moving||l.zooming)&&(A=!0,l.moving&&y===l.moveX&&g===l.moveY&&(A=!1),I.touches.length||(l.zooming&&(l.moveX=Fe(l.moveX,-s.value,s.value),l.moveY=Fe(l.moveY,-i.value,i.value),l.zooming=!1),l.moving=!1,y=0,g=0,k=1,l.scale<1&&d(),l.scale>e.maxZoom&&(l.scale=+e.maxZoom))),fn(I,A),C(),n.reset()},B=()=>{o("close")};return t.watch(()=>e.initNo,d),t.watch(()=>e.show,I=>{I||d()}),{...t.toRefs(l),onTouchStart:S,onTouchMove:N,onTouchEnd:V,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:B}}}),tS=["src"];function oS(e,o,l,n,a,r){const s=t.resolveComponent("fox-video"),i=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(i,{onClick:e.closeSwiper},{default:t.withCtx(()=>[t.createElementVNode("view",{style:t.normalizeStyle(e.imageStyle),class:"fox-image-preview-box",onTouchstart:o[1]||(o[1]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:o[2]||(o[2]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:o[3]||(o[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:o[4]||(o[4]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[e.image&&e.image.src?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:o[0]||(o[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,tS)):t.createCommentVNode("",!0),e.video&&e.video.source?(t.openBlock(),t.createBlock(s,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):t.createCommentVNode("",!0)],36)]),_:1},8,["onClick"])}const nS=J(eS,[["render",oS]]),{create:lS}=Y("image-preview"),aS=lS({props:{...$s,images:{type:Array,default:()=>[]},videos:{type:Array,default:()=>[]},contentClose:{type:Boolean,default:!0},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},autoplay:{type:[Number,String],default:0},teleport:{type:[String,Element],default:"body"},teleportDisable:{ype:Boolean,default:!1},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},beforeClose:Function,isLoop:{type:Boolean,default:!0}},emits:["close","change"],components:{ImagePreviewItem:nS,CircleClose:te.CircleClose,[ie.name]:ie,[bt.name]:bt},setup(e,{emit:o}){const l=t.ref(),n=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),a=t.computed(()=>{const m="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${m}-right`:`${m}-left`}`}),r=t.computed(()=>ho(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=m=>{m!==n.active&&(n.active=m,o("change",n.active))},i=()=>{Ns(e.beforeClose,{args:[n.active],done:()=>c()})},c=()=>{n.showPop=!1,o("close")},d=()=>{if(l.value){const m=Ve(l.value);n.rootHeight=m.height,n.rootWidth=m.width}};return t.watch(()=>e.show,m=>{n.showPop=m,m&&(s(e.initNo),d())}),t.watch(()=>e.initNo,m=>{m!=n.active&&s(m)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:l,...t.toRefs(n),onClose:i,mergeImages:r,setActive:s,iconClasses:a}}}),rS={class:"fox-image-preview",ref:"swipeRef"},sS={key:0,class:"fox-image-preview-index"};function iS(e,o,l,n,a,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":o[1]||(o[1]=m=>e.showPop=m),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",rS,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(m,f)=>(t.openBlock(),t.createBlock(s,{key:f,video:f<e.videos.length?m:{},image:f>=e.videos.length?m:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",sS,t.toDisplayString(e.active+1)+" / "+t.toDisplayString(e.mergeImages.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.iconClasses),onClick:o[0]||(o[0]=(...m)=>e.onClose&&e.onClose(...m))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Ts=J(aS,[["render",iS]]);class cS{show=!1;images=[];videos=[];contentClose=!0;initNo=0;paginationVisible=!1;paginationColor="";autoplay=0;isWrapTeleport=!1;showIndex=!0;closeable=!1;closeIconPosition="top-right";beforeClose;maxZoom=3;minZoom=1/3;isLoop=!0;teleport="body"}class uS{options=new cS;constructor(o){const l=Object.assign(this.options,o),{unmount:n}=ci(l,{name:"image-preview",components:[ie,kt,bt,St,at],wrapper:()=>({setup(){return()=>(l.onClose=()=>{l.show=!1,t.nextTick(()=>{n()})},t.h(Ts,l))}})})}}const Ho=e=>new uS(e);Ho.install=e=>{e.use(Ts)};function dS(e){const o=t.getCurrentInstance();if(o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const{componentName:u2,create:fS}=Y("countup"),mS=fS({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref([]),a=B=>{B&&n.value.push(B)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:d}=t.reactive(e);t.watch(()=>e.customChangeNum,(B,I)=>{f(),v(0)}),t.watch(()=>e.machinePrizeLevel,(B,I)=>{r.prizeLevelTrun=B}),t.watch(()=>e.initNum,(B,I)=>{r.current=B,r.valFlag=!1,m()}),t.watch(()=>e.endNum,(B,I)=>{r.current=e.initNum,r.valFlag=!1,m()});const m=()=>{if(r.valFlag)return!1;s&&(i||c?d!="machine"&&v():(k(),setTimeout(()=>{r.valFlag=!0},300)))},f=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(B,I,A)=>{const w=(B.toString().split(".")[1]||"").length,P=(I.toString().split(".")[1]||"").length,F=Math.pow(10,Math.max(w,P));return A=="-"?Number((B*F-I*F).toFixed(0))/F:Number((B*F+I*F).toFixed(0))/F},y=B=>{let{num_total_len:I,pointNum:A,initDigit1:w,initDigit2:P,sortFlag:F}=r,E=F=="add"||F=="equal"?String(P)[B-(I-A)]:10-Number(String(P)[B-(I-A)]),x=F=="add"||F=="equal"?String(w)[B]:10-Number(String(w)[B]),U=B>I-A-1?-E*100+"%":B<=String(w).length-1?-x*100+"%":0;return U=="-1000%"&&(U=0),U},g=B=>{let{num_total_len:I,pointNum:A,initDigit1:w,initDigit2:P,sortFlag:F}=r,E=String(P)[B-(I-A)];return B>I-A-1?E||0:B<=String(w).length-1?String(w)[B]:0},k=()=>{let{endNum:B,initNum:I,speed:A,toFixed:w}=e,P=setInterval(()=>{if(I>B)if(r.current<=B||r.current<=A)r.current=B.toFixed(w),clearInterval(P),o("scroll-end"),r.valFlag=!1;else{let F=parseFloat(String(r.current))-parseFloat(String(A));r.current=F.toFixed(w)}else if(r.current>=B)r.current=B.toFixed(w),clearInterval(P),o("scroll-end"),r.valFlag=!1;else{let F=parseFloat(String(r.current))+parseFloat(String(A));r.current=F.toFixed(w)}},e.during)},v=B=>{let{initNum:I,endNum:A,toFixed:w,customBgImg:P}=e;P&&(I=e.customChangeNum);let F,E,x,U;I!=0?(w!=0&&(I=Number(I.toFixed(w))),String(I).indexOf(".")>-1?(F=String(I).split(".")[0].length,E=String(I).split(".")[1].length):(F=String(I).length,E=0)):(F=1,E=0),A!=0?(w!=0&&(A=Number(A.toFixed(w))),String(A).indexOf(".")>-1?(x=String(A).split(".")[0].length,U=String(A).split(".")[1].length):(x=String(A).length,U=0)):(x=1,U=0);let D=F>=x?F:x,W=E>=U?E:U;r.num_total_len=D+W,r.pointNum=W,I>A?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(I,A,"-"),r.numberVal=Number(String(I))):I<A?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(A,I,"-"),r.numberVal=Number(String(A))):r.sortFlag="equal";var H=1;for(let R=0;R<r.pointNum;R++)H*=10;var G=r.numberVal*H;if(r.relNum=G,w!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(G).length),String(I).indexOf(".")>-1){let R=String(I).split(".");r.initDigit1=Number(R[0]),r.initDigit2=Number(R[1])}else r.initDigit1=I,r.initDigit2=0;i&&!P?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let R=n.value[r.num_total_len-1];u(R)}):B!==0&&S()},u=B=>{f();var I=1;r.pointNum!=0&&(I=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{p(B),r.totalCount=h(r.totalCount,I,"-"),r.totalCount<=0&&(f(),o("scroll-end"),r.valFlag=!1)},e.during)},p=B=>{let I=B.getAttribute("turn-number"),A;if(r.sortFlag=="add"?A=parseInt(String(I))+1:A=parseInt(String(I))-1>=0?parseInt(String(I))-1:9,B.setAttribute("turn-number",String(A)),(B.style.transition=="none 0s ease 0s"||A==1||!B.style.transition)&&(B.style.transition=`all linear ${e.during}ms`),A==10||r.sortFlag=="reduce"&&A==0){var w=null;B.style.top=`-${r.sortFlag=="add"?A*100:(10-A)*100}%`,B.setAttribute("turn-number","0"),w=setTimeout(()=>{w&&clearTimeout(w),B.style.transition="none",B.style.top="0",b(B,A)},.975*e.during)}else B.style.top=`-${r.sortFlag=="add"?A*100:(10-A)*100}%`;B.style.top=="-100%"&&r.sortFlag=="reduce"&&p(B.previousSibling)},b=(B,I)=>{setTimeout(()=>{I==10&&B.previousSibling&&p(B.previousSibling)},200)},S=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{o("scroll-end"),r.valFlag=!1})})},N=()=>{for(r.notPrize=[];r.notPrize.length<3;){var B=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(B)==-1&&r.notPrize.push(B)}};dS({machineLuck:()=>{const B=e.machineTurnMore<0?0:e.machineTurnMore;let I=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&N();for(let A=0;A<e.machineNum;A++)setTimeout(()=>{let w=I*(A+1+parseFloat(String(B)));r.prizeYPrev.length!=0&&(r.prizeY[A]=r.prizeYPrev[A]);let P=r.prizeYPrev[A]?r.prizeYPrev[A]:0,F=w+P+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(I-P);r.prizeLevelTrun<0&&(F+=e.numHeight*r.notPrize[A]),V(A,F,P)},500*A)}});const V=(B,I,A)=>{let w=setInterval(()=>{if(A<=I)A+=10,r.prizeY[B]=parseFloat(String(A));else if(clearInterval(w),w=null,r.finshMachine+=1,r.prizeY[B]=I,r.finshMachine==e.machineNum){let P=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(E=>{let x=E;for(;x>P;)x-=P;r.prizeYPrev.push(x)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(o("scroll-end",!1),r.valFlag=!1):(o("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{m()})}),t.onUnmounted(()=>{f(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:l,setRef:a,topNumber:y,turnNumber:g}}}),pS={class:"fox-countup"},hS=["turn-number"];function gS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",pS,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__machine",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+d,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,hS))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px",top:0,left:e.numWidth*(e.num_total_len-e.pointNum)+"px"})},".",4)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.current),1)],64))],64))])}const oa=J(mS,[["render",gS]]),yS=e=>{if(!e)return Date.now();let o=Number(e),l=o>0?+o:o.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:vS,create:kS}=Y("countdown"),bS=kS({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:o,slots:l}){const n=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),a=t.computed(()=>({[vS]:!0})),r=t.computed(()=>c(n.restTime)),s=()=>{n.handleEndTime=e.endTime,n.diffTime=Date.now()-yS(e.startTime),n.counting||(n.counting=!0),i()},i=()=>{window!==void 0&&(n.timer=requestAnimationFrame(()=>{if(n.counting){const y=Date.now()-n.diffTime,g=Math.max(n.handleEndTime-y,0);n.restTime=g,g||(n.counting=!1,f(),o("on-end")),g>0&&i()}}))},c=(y,g)=>{const k=y;let v={d:0,h:0,m:0,s:0,ms:0};const u=1e3,p=60*u,b=60*p,S=24*b;return k>0&&(v.d=k>=u?Math.floor(k/S):0,v.h=Math.floor(k%S/b),v.m=Math.floor(k%b/p),v.s=Math.floor(k%p/u),v.ms=Math.floor(k%u)),g=="custom"?v:d({...v})},d=y=>{let{d:g,h:k,m:v,s:u,ms:p}=y,b=e.format;if(b.includes("DD")?b=b.replace("DD",Je(g)):k+=Number(g)*24,b.includes("HH")?b=b.replace("HH",Je(k)):v+=Number(k)*60,b.includes("mm")?b=b.replace("mm",Je(v)):u+=Number(v)*60,b.includes("ss")?b=b.replace("ss",Je(u)):p+=Number(u)*1e3,b.includes("S")){const S=Je(p,3).toString();b.includes("SSS")?b=b.replace("SSS",S):b.includes("SS")?b=b.replace("SS",S.slice(0,2)):b.includes("S")&&(b=b.replace("SS",S.slice(0,1)))}return b},m=()=>{!n.counting&&!e.autoStart&&(n.counting=!0,n.handleEndTime=Date.now()+Number(n.restTime),i(),o("on-restart",n.restTime))},f=()=>{cancelAnimationFrame(n.timer),n.counting=!1,o("on-paused",n.restTime)},h=()=>{e.autoStart||(f(),n.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():n.restTime=e.time}),t.watch(()=>n.restTime,y=>{let g=c(y,"custom");o("update:modelValue",g),o("input",g)}),t.watch(()=>e.paused,(y,g)=>{g?(n.counting||(n.counting=!0,n.handleEndTime=Date.now()+Number(n.restTime),i()),o("on-restart",n.restTime)):n.counting&&f()}),t.watch(()=>e.endTime,y=>{s()}),t.watch(()=>e.startTime,y=>{s()}),{...t.toRefs(e),slots:l,classes:a,start:m,pause:f,renderTime:r,reset:h}}}),SS=["innerHTML"];function CS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,SS))],2)}const na=J(bS,[["render",CS]]),{create:wS}=Y("badge"),NS=wS({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const o=t.reactive({}),l=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),n=t.computed(()=>{if(e.dot)return;const a=e.value,r=e.max;return typeof a=="number"&&typeof r=="number"&&r<a?`${r}+`:a});return{state:o,stl:l,content:n}}}),BS={class:"fox-badge"},VS=["textContent"];function AS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",BS,[t.withDirectives(t.createElementVNode("view",{class:"fox-badge__icon",style:t.normalizeStyle(e.stl)},[t.renderSlot(e.$slots,"icon")],4),[[t.vShow,!e.hidden&&!e.dot&&e.$slots.icon]]),t.renderSlot(e.$slots,"default"),t.withDirectives(t.createElementVNode("view",{textContent:t.toDisplayString(e.content),class:t.normalizeClass(["fox-badge__content fox-badge__content--sup",{"fox-badge__content--dot":e.dot,"fox-badge__content--bubble":!e.dot&&e.bubble}]),style:t.normalizeStyle(e.stl)},null,14,VS),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const la=J(NS,[["render",AS]]),{componentName:$S,create:TS}=Y("tag"),ES=TS({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:te.Close},emits:["close","click"],setup(e,{emit:o}){return{classes:t.computed(()=>{const s=$S;return{[s]:!0,[`${s}--${e.type}`]:!0,[`${s}--plain`]:e.plain,[`${s}--round`]:e.round,[`${s}--mark`]:e.mark,[`${s}--symbol`]:e.symbol,[`${s}--text`]:e.text,[`${s}--light`]:e.light}}),getStyle:()=>{const s={};return e.textColor?s.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(s.color=e.color),e.plain?(s.background="#fff",s["border-color"]=e.color):!e.text&&e.color&&(s.background=e.color),s},onClose:s=>{s.stopPropagation(),o("close",s)},onClick:s=>{o("click",s)}}}});function DS(e,o,l,n,a,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const Yt=J(ES,[["render",DS]]),{create:xS}=Y("popover"),IS=xS({components:{FoxPopup:ie},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:o}){const l=t.ref(),n=t.ref(),a=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const p="fox-popover-arrow",b=e.location,S=b.split("-")[0];return`${p} ${p}-${S} ${p}--${b}`}),c=t.computed(()=>{const p={},{bgColor:b,arrowOffset:S,location:N}=e,C=N.split("-")[0],V=N.split("-")[1],B=16;return b&&(p[`border${d(C)}Color`]=b),e.arrowOffset!=0&&(["bottom","top"].includes(C)&&(V||(p.left=`calc(50% + ${S}px)`),V=="start"&&(p.left=`${B+S}px`),V=="end"&&(p.right=`${B-S}px`)),["left","right"].includes(C)&&(V||(p.top=`calc(50% - ${S}px)`),V=="start"&&(p.top=`${B-S}px`),V=="end"&&(p.bottom=`${B+S}px`))),p}),d=p=>(p=p.toLowerCase(),p=p.replace(/\b\w+\b/g,b=>b.substring(0,1).toUpperCase()+b.substring(1)),p),m=t.computed(()=>{let p={};if(!r.value||!s.value)return{};const b=s.value.width,S=s.value.height,{width:N,height:C,left:V,top:B}=r.value,{location:I,offset:A}=e,w=I.split("-")[0],P=I.split("-")[1];let F=0,E=0;if(ho(A)&&A.length==2&&(F+=Number(A[1]),E+=Number(A[0])),N){if(["bottom","top"].includes(w)){const x=w=="bottom"?C+F:-(S+F);p.top=`${B+x}px`,P||(p.left=`${-(b-N)/2+V+E}px`),P=="start"&&(p.left=`${V+E}px`),P=="end"&&(p.left=`${r.value.right+E}px`)}if(["left","right"].includes(w)){const x=w=="left"?-(b+F):N+F;p.left=`${V+x}px`,P||(p.top=`${B-S/2+C/2-4+E}px`),P=="start"&&(p.top=`${B+E}px`),P=="end"&&(p.top=`${B+C+E}px`)}}return p}),f=t.computed(()=>{const p={};return e.bgColor&&(p.background=e.bgColor),p}),h=()=>{let p=Ve(l.value);e.targetId&&(p=Ve(document.querySelector(`#${e.targetId}`))),r.value=p,setTimeout(()=>{s.value={height:n.value?.clientHeight,width:n.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,p=>{a.value=p,p?(window.addEventListener("touchstart",u,!0),h()):window.removeEventListener("touchstart",u,!0)});const y=p=>{o("update",p),o("update:visible",p)},g=()=>{y(!e.visible),o("open")},k=()=>{o("update:visible",!1),o("close")},v=(p,b)=>{!p.disabled&&o("choose",p,b),e.closeOnClickAction&&k()},u=p=>{const b=l.value,S=n.value;let N=b&&!b.contains(p.target);if(e.targetId){const C=document.querySelector(`#${e.targetId}`);N=C&&!C.contains(p.target)}N&&S&&!S.contains(p.target)&&e.closeOnClickOutside&&k()};return{showPopup:a,openPopover:g,popoverArrow:i,closePopover:k,chooseItem:v,popoverRef:l,popoverContentRef:n,getRootPosition:m,customStyle:f,popoverArrowStyle:c,renderIcon:Xr}}}),qS={ref:"popoverContentRef",class:"fox-popover-content-group"},MS=["onClick"],zS={class:"fox-popover-menu-item-name"};function PS(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.targetId?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:o[0]||(o[0]=(...i)=>e.openPopover&&e.openPopover(...i))},[t.renderSlot(e.$slots,"reference")],512)),t.createElementVNode("view",{class:t.normalizeClass(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:t.normalizeStyle(e.getRootPosition)},[t.createVNode(s,{visible:e.showPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.showPopup=i),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:t.normalizeStyle(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:t.withCtx(()=>[t.createElementVNode("view",qS,[e.showArrow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.popoverArrowStyle)},null,6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(d=>e.chooseItem(i,c),["stop"])},[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",zS,t.toDisplayString(i.name),1)],10,MS))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Xt=J(IS,[["render",PS]]),LS=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(o){const{avatarShape:l,round:n,avatarSize:a}=t.toRefs(o),r=t.computed(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${l.value}`]:l.value}});return{avatarShape:l,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:n.value}),getStyle:()=>a.value?{width:a.value,height:a.value}:{width:"50px",height:"50px"}}}}),{create:FS}=Y("skeleton"),RS=FS(LS({[Wt.name]:Wt})),OS={key:0},KS={key:1,class:"fox-skeleton"},US={key:0,class:"fox-skeleton-animation"},HS={class:"fox-skeleton-content"};function jS(e,o,l,n,a,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",KS,[e.animated?(t.openBlock(),t.createElementBlock("view",US)):t.createCommentVNode("",!0),t.createElementVNode("view",HS,[e.avatar?(t.openBlock(),t.createBlock(s,{key:0,class:t.normalizeClass(e.avatarClass),shape:e.avatarShape,style:t.normalizeStyle(e.getStyle())},null,8,["class","shape","style"])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-skeleton-content__line",style:t.normalizeStyle({width:e.width})},[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockTitle")),style:t.normalizeStyle({height:e.height})},null,6)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.row),i=>(t.openBlock(),t.createElementBlock("view",{key:i,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockLine")),style:t.normalizeStyle({height:e.height})},null,6))),128))],4)])])):(t.openBlock(),t.createElementBlock("view",OS,[t.renderSlot(e.$slots,"default")]))}const aa=J(RS,[["render",jS]]),{create:WS,componentName:YS}=Y("collapse"),XS=WS({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref(e.modelValue||(e.accordion?"":[])),a=t.computed(()=>({[YS]:!0}));t.watch(()=>e.modelValue,c=>{n.value=c});const r=(c,d,m=!0)=>{n.value=c,o("update:modelValue",c),o("change",c,d,m)},s=c=>{if(e.accordion)n.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(n.value))if(n.value.includes(c)){const d=n.value.filter(m=>m!==c);r(d,c,!1)}else{const d=n.value.concat([c]);r(d,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?n.value===c:Array.isArray(n.value)?n.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:l,classes:a}}});function QS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const ra=J(XS,[["render",QS]]),{create:GS,componentName:ZS}=Y("collapse-item"),JS=GS({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:te.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const o=t.ref(null),l=t.ref(null),n=t.inject("collapseParent"),a=t.reactive(n),r=t.computed(()=>{const h=ZS;return{[h]:!0,[h+"__border"]:e.border}}),s=t.computed(()=>a?a.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{a.updateVal(e.name)},d=()=>{s.value&&(i.value="auto")},m=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},f=()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?m():f()}),{classes:r,renderIcon:Xr,wrapperRef:o,contentRef:l,open:m,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:d}}}),_S={class:"fox-collapse-item__title-main"},e1={class:"fox-collapse-item__title-main-value"},t1=["innerHTML"],o1={key:2,class:"fox-collapse-item__title-label"},n1={key:0,class:"fox-collapse-item__title-sub"},l1=["innerHTML"],a1={key:0,class:"fox-collapse__item-extraWrapper"},r1={class:"fox-collapse__item-extraWrapper__extraRender"},s1={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function i1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:o[0]||(o[0]=(...s)=>e.toggle&&e.toggle(...s))},[t.createElementVNode("view",_S,[t.createElementVNode("view",e1,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.title,class:"fox-collapse-item__title-mtitle"},null,8,t1)),e.label?(t.openBlock(),t.createElementBlock("view",o1,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",n1,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,l1)),t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title-icon",{"fox-collapse-item__title-icon--expanded":e.expanded}]),style:t.normalizeStyle({transform:"rotate("+(e.expanded?e.rotate:0)+"deg)"})},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.icon))))],6)],2),e.$slots.extra?(t.openBlock(),t.createElementBlock("view",a1,[t.createElementVNode("div",r1,[t.renderSlot(e.$slots,"extra")])])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:t.normalizeStyle({willChange:"height",height:e.wrapperHeight}),onTransitionend:o[1]||(o[1]=(...s)=>e.onTransitionEnd&&e.onTransitionEnd(...s))},[t.createElementVNode("view",s1,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const sa=J(JS,[["render",i1]]),c1=t.defineComponent({setup(e){return()=>t.h("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}}),{componentName:u1,create:d1,scope:f1}=Y("table"),m1=d1({components:{RenderColumn:c1,DownArrow:te.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:o,slots:l}){const{t:n}=ae.useFoxI18n(f1),a=t.reactive({curData:e.data}),r=t.computed(()=>({[u1]:!0})),s=y=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${y.align?y.align:""}`]:!0}),i=y=>y.stylehead?y.stylehead:"",c=y=>y.stylecolumn?y.stylecolumn:"",d=y=>e.columns.filter(g=>g.key===y)[0],m=y=>{const g=e.columns.filter(k=>k.key===y);return g[0].stylecolumn?g[0].stylecolumn:""},f=y=>{y.sorter&&(o("sorter",y),a.curData=typeof y.sorter=="function"?a.curData.sort(y.sorter):y.sorter==="default"?a.curData.sort():a.curData)},h=()=>e.columns.map(y=>[y.key,y.render]);return t.watch(()=>e.data,y=>{a.curData=y.slice()}),{...t.toRefs(a),classes:r,cellClasses:s,getColumnItem:d,getColumnItemStyle:m,handleSorterClick:f,sortDataItem:h,t:n,stylehead:i,stylecolumn:c}}}),p1={class:"fox-table__main__head"},h1={class:"fox-table__main__head__tr"},g1=["onClick"],y1={class:"fox-table__main__body"},v1={key:1},k1={key:0,class:"fox-table__nodata"},b1={key:0,class:"fox-table__nodata__text"},S1={key:1,class:"fox-table__summary"},C1=["innerHTML"];function w1(e,o,l,n,a,r){const s=t.resolveComponent("DownArrow"),i=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",p1,[t.createElementVNode("view",h1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:d=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,g1))),128))])]),t.createElementVNode("view",y1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([d,m])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:t.normalizeStyle(e.getColumnItemStyle(d))},[typeof c[d]=="function"||typeof m=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[m,c[d]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",v1,t.toDisplayString(c[d]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",k1,[t.createElementVNode("div",{class:t.normalizeClass(["fox-table__nodata",{"fox-table__nodata--border":e.bordered}])},[t.renderSlot(e.$slots,"nodata"),e.$slots.nodata?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",b1,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",S1,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,C1)])):t.createCommentVNode("",!0)],2)}const ia=J(m1,[["render",w1]]),{componentName:N1,create:B1}=Y("ellipsis"),V1=B1({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:o}){const l=t.ref(null);let n=null,a=0;const r=t.ref(),s=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>({[N1]:!0}));t.watch(()=>e.content,(k,v)=>{k!=v&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!l.value)return;const k=window.getComputedStyle(l.value);n=document.createElement("div"),Array.prototype.slice.apply(k).forEach(p=>{n.style.setProperty(p,k.getPropertyValue(p))}),n.style.position="fixed",n.style.left="999999px",n.style.top="999999px",n.style.zIndex="-1000",n.style.height="auto",n.style.minHeight="auto",n.style.maxHeight="auto",n.style.textOverflow="clip",n.style.whiteSpace="normal",n.style.webkitLineClamp="unset",n.style.display="block";const u=h(k.lineHeight==="normal"?e.lineHeight:k.lineHeight);a=Math.floor(u*(Number(e.rows)+.5)+h(k.paddingTop)+h(k.paddingBottom)),n.innerText=e.content,document.body.appendChild(n),d()},d=()=>{if(n.offsetHeight<=a)s.exceeded=!1,document.body.removeChild(n);else{s.exceeded=!0;const k=e.content.length,v=Math.floor((0+k)/2),u=e.direction==="middle"?f([0,v],[v,k]):m(0,k);r.value=u,document.body.removeChild(n)}},m=(k,v)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(v-k<=1)return e.direction==="end"?{leading:e.content.slice(0,k)+e.symbol}:{tailing:e.symbol+e.content.slice(v,p)};const b=Math.round((k+v)/2);return e.direction==="end"?n.innerText=e.content.slice(0,b)+e.symbol+u:n.innerText=u+e.symbol+e.content.slice(b,p),n.offsetHeight<=a?e.direction==="end"?m(b,v):m(k,b):e.direction==="end"?m(k,b):m(b,v)},f=(k,v)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(k[1]-k[0]<=1&&v[1]-v[0]<=1)return{leading:e.content.slice(0,k[0])+e.symbol,tailing:e.symbol+e.content.slice(v[1],p)};const b=Math.floor((k[0]+k[1])/2),S=Math.ceil((v[0]+v[1])/2);return n.innerText=e.content.slice(0,b)+e.symbol+u+e.symbol+e.content.slice(S,p),n.offsetHeight<=a?f([b,k[1]],[v[0],S]):f([k[0],b],[S,v[1]])},h=k=>{if(!k)return 0;const v=k.match(/^\d*(\.\d*)?/);return v?Number(v[0]):0},y=k=>{k==1?(s.expanded=!0,o("change","expand")):(s.expanded=!1,o("change","collapse"))},g=()=>{o("click")};return{...t.toRefs(s),root:l,ellipsis:r,classes:i,clickHandle:y,handleClick:g}}}),A1={key:0},$1={key:1},T1={key:2};function E1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[2]||(o[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",A1,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",$1,[t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.leading),1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:o[0]||(o[0]=t.withModifiers(s=>e.clickHandle(1),["stop"]))},t.toDisplayString(e.expandText),1)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.tailing),1)])):t.createCommentVNode("",!0),e.exceeded&&e.expanded?(t.openBlock(),t.createElementBlock("view",T1,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:o[1]||(o[1]=t.withModifiers(s=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const ca=J(V1,[["render",E1]]),{componentName:D1,create:x1}=Y("animate"),I1=x1({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:o}){const{type:l,loop:n,action:a}=t.toRefs(e),r=t.reactive({clicked:!1});let s=t.computed(()=>({"fox-animate__container":!0,[`${D1}-${l.value}`]:a.value==="initial"||r.clicked?l.value:!1,loop:n.value}));const i=c=>{r.clicked=!0,n.value||setTimeout(()=>{r.clicked=!1},1e3),o("click",c)};return{...t.toRefs(r),classes:s,handleClick:i}}}),q1={class:"fox-animate"};function M1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",q1,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...s)=>e.handleClick&&e.handleClick(...s)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const ua=J(I1,[["render",M1]]),{componentName:z1,create:P1}=Y("watermark"),L1=P1({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:o}){const l=t.reactive({base64Url:""}),{zIndex:n,gapX:a,gapY:r,width:s,height:i,rotate:c,image:d,imageWidth:m,imageHeight:f,content:h,fontStyle:y,fontWeight:g,fontColor:k,fontSize:v,fontFamily:u}=e,p=()=>{const S=document.createElement("canvas"),N=window.devicePixelRatio,C=S.getContext("2d"),V=`${(a+s)*N}px`,B=`${(r+i)*N}px`,I=s*N,A=i*N;if(S.setAttribute("width",V),S.setAttribute("height",B),C){if(d){C.translate(I/2,A/2),C.rotate(Math.PI/180*Number(c));const w=new Image;w.crossOrigin="anonymous",w.referrerPolicy="no-referrer",w.src=d,w.onload=()=>{C.drawImage(w,-m*N/2,-f*N/2,m*N,f*N),C.restore(),l.base64Url=S.toDataURL()}}else if(h){C.textBaseline="middle",C.textAlign="center",C.translate(I/2,A/2),C.rotate(Math.PI/180*Number(c));const w=Number(v)*N;C.font=`${y} normal ${g} ${w}px/${A}px ${u}`,C.fillStyle=k,C.fillText(h,0,0),C.restore(),l.base64Url=S.toDataURL()}}else throw new Error("当前环境不支持Canvas")};p(),t.watch(()=>[n,a,r,s,i,c,d,m,f,h,y,g,k,v,u],()=>{p()});const b=t.computed(()=>{const S=z1;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...t.toRefs(l),classes:b}}});function F1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}const da=J(L1,[["render",F1]]);function R1(e,o=2){return Object.is(parseFloat(e),NaN)?console.log(`传入的值:${e}不是一个数字`):(e=parseFloat(e),(Math.round((e+Number.EPSILON)*Math.pow(10,o))/Math.pow(10,o)).toFixed(o))}const{componentName:O1,create:K1}=Y("trend-arrow"),U1=K1({components:{TriangleUp:te.TriangleUp,TriangleDown:te.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const o=t.reactive({rateTrend:e.rate>0}),l=t.computed(()=>({[O1]:!0})),n=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;o.rateTrend=r>0;const d=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?o.rateTrend?"+":"-":""}${R1(Number(d),s)}%`}),a=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:d}=e;return{color:d===0?c:i?o.rateTrend?s:r:c}});return{...t.toRefs(o),classes:l,calcRate:n,calcStyle:a}}});function H1(e,o,l,n,a,r){const s=t.resolveComponent("TriangleUp"),i=t.resolveComponent("TriangleDown");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.arrowLeft?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?t.renderSlot(e.$slots,"up-icon",{key:1},()=>[t.createVNode(s,{color:e.riseColor},null,8,["color"])]):t.createCommentVNode("",!0),Number(e.rate)!==0&&!e.rateTrend?t.renderSlot(e.$slots,"down-icon",{key:2},()=>[t.createVNode(i,{color:e.dropColor},null,8,["color"])]):t.createCommentVNode("",!0),e.arrowLeft?(t.openBlock(),t.createElementBlock("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)):t.createCommentVNode("",!0)],2)}const fa=J(U1,[["render",H1]]),{create:j1}=Y("tour"),W1=j1({components:{[Xt.name]:Xt,Close:te.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:o}){const l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),n=t.ref({}),a=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:m,maskWidth:f,maskHeight:h}=e,{width:y,height:g,left:k,top:v}=n.value,u=[k+y/2,v+g/2],p=Number(f||y),b=Number(h||g);return{width:`${p+ +m[1]*2}px`,height:`${b+ +m[0]*2}px`,top:`${u[1]-b/2-+m[0]}px`,left:`${u[0]-p/2-+m[1]}px`}}),s=m=>{m=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,i()}),o("change",l.active)},i=()=>{const m=document.querySelector(`#${e.steps[l.active].target}`),f=Ve(m);n.value=f},c=()=>{l.showTour=!1,l.showPopup=!1,o("close",l.active),o("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{l.active=0,i()}),t.watch(()=>e.modelValue,m=>{m&&i(),l.active=0,l.showTour=m,l.showPopup=m}),{...t.toRefs(l),classes:a,maskStyle:r,changeStep:s,close:c,handleClickMask:d}}}),Y1={key:0,class:"fox-tour-content"},X1={key:0,class:"fox-tour-content-top"},Q1={class:"fox-tour-content-inner"},G1={class:"fox-tour-content-bottom"},Z1={class:"fox-tour-content-bottom-init"},J1={class:"fox-tour-content-bottom-operate"},_1={key:1,class:"fox-tour-content fox-tour-content-tile"},eC={class:"fox-tour-content-inner"};function tC(e,o,l,n,a,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-popover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour-masked",onClick:o[0]||(o[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":o[5]||(o[5]=m=>e.showPopup=m),location:c.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:c.popoverOffset||[0,12],arrowOffset:c.arrowOffset||0},{content:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",Y1,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",X1,[t.createElementVNode("div",{onClick:o[1]||(o[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",Q1,t.toDisplayString(c.content),1),t.createElementVNode("div",G1,[t.createElementVNode("div",Z1,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",J1,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:o[2]||(o[2]=m=>e.changeStep("prev"))},t.toDisplayString(e.prevStepTxt),1)):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:o[3]||(o[3]=(...m)=>e.close&&e.close(...m))},t.toDisplayString(e.completeTxt),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:o[4]||(o[4]=m=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",_1,[t.createElementVNode("div",eC,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const ma=J(W1,[["render",tC]]),{componentName:d2,create:oC,scope:nC}=Y("address"),lC=oC({components:{Location:te.Location,Location2:te.Location2,Check:te.Check,Close:te.Close,Left:te.Left,[ie.name]:ie,[Ot.name]:Ot},inheritAttrs:!1,props:{...ze,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(nC),n=t.ref(null),a=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),d=t.ref(["province","city","country","town"]),m=t.ref(null),f=t.ref([0,0,0,0]),h=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),y=x=>{if(!Array.isArray(x))throw new TypeError("params muse be array.");if(!x.length)return[];x.forEach(D=>{if(!D.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const U=[];return x=x.sort((D,W)=>D.title.localeCompare(W.title)),x.forEach(D=>{const W=U.findIndex(H=>H.title===D.title);W<=-1?U.push({title:D.title,list:[].concat(D)}):U[W].list.push(D)}),U};let g=t.ref([]),k=t.reactive({});const v=t.ref("self"),u=t.ref(20),p=()=>{const x=e.modelValue,U=x.length;if(U>0){if(i.value=U-1,h.value.length==0){i.value=0;return}for(let D=0;D<U;D++){let W=[];switch(D){case 0:W=e.province;break;case 1:W=e.city;break;case 2:W=e.country;break;default:W=e.town}g.value[D]=W.filter(H=>H.id==x[D])[0]}S()}},b=(x,U)=>x&&x.name||i.value<U&&x?x.name:e.columnsPlaceholder[U]||l("select"),S=()=>{V(),t.nextTick(()=>{const x=a.value&&a.value.getElementsByClassName("active")[0];if(x){const U=x.offsetLeft;u.value=U||20}})},N=x=>{const U=i.value;c.value=i.value;const D={custom:d.value[U]};g.value[U]=x;for(let W=U+2;W<4;W++)g.value.splice(W,1);U<3?(i.value=U+1,S(),D.next=d.value[i.value],D.value=x,o("change",D)):(A(),o("update:modelValue"))},C=(x,U)=>{c.value=i.value,b(x,U)&&(i.value=U,S())},V=()=>{const x=m.value,U=c.value,D=f.value[i.value];x?.scrollTop&&(f.value[U]=x?.scrollTop),t.nextTick(()=>{x?.scrollTo({top:D,behavior:"auto"})})},B=x=>{const U=e.existAddress;let D={};U.forEach(W=>{W&&W.selectedAddress&&(D=W),W.selectedAddress=!1}),x.selectedAddress=!0,k=x,o("selected",D,x,U),A()},I=()=>{g.value=[],i.value=0,S()},A=(x="self")=>{v.value=x=="cross"?"cross":"self",r.value=!1},w=()=>{v.value="mask"},P=()=>{const x={addressIdStr:"",addressStr:"",province:g.value[0],city:g.value[1],country:g.value[2],town:g.value[3]},U={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(D=>{const W=g.value[D];x.addressIdStr+=`${D?"_":""}${W&&W.id||0}`,x.addressStr+=W&&W.name||""}),U.data=x):U.data=k,I(),v.value=="self"?o("close",U):o("close-mask",{closeWay:v}),o("update:visible",!1)},F=()=>{const x=s.value;s.value=x=="exist"?"custom":"exist",I(),o("switch-module",{type:s.value})},E=(x,U)=>{N(U)};return t.watch(()=>e.visible,x=>{r.value=x}),t.watch(()=>r.value,x=>{x&&p()}),{showPopup:r,privateType:s,tabIndex:i,tabName:d,selectedRegion:g,switchModule:F,closeWay:v,close:P,getTabName:b,nextAreaList:N,regionLine:n,tabRegion:a,lineDistance:u,changeRegionTab:C,selectedExist:B,clickOverlay:w,handClose:A,handleElevatorItem:E,initCustomSelected:p,...t.toRefs(e),t:l,regionList:h,transformData:y,scrollDom:m}}}),aC={class:"fox-address"},rC={class:"fox-address__header"},sC={class:"fox-address__header__title"},iC={key:0,class:"fox-address__custom"},cC={class:"fox-address__region",ref:"tabRegion"},uC=["onClick"],dC={key:0,class:"active fox-address__region-item"},fC={key:0,class:"fox-address__detail"},mC={class:"fox-address__detail-list",ref:"scrollDom"},pC=["onClick"],hC={key:1,class:"fox-address__elevator-group"},gC={key:1,class:"fox-address__exist"},yC={class:"fox-address__exist-group"},vC={class:"fox-address__exist-group-list"},kC=["onClick"],bC={class:"fox-address__exist-item-info"},SC={key:0,class:"fox-address__exist-item-info-name"},CC={key:1,class:"fox-address__exist-item-info-phone"},wC={class:"fox-address__exist-item-info-bottom"},NC={class:"fox-address__exist-choose-btn"};function BC(e,o,l,n,a,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),d=t.resolveComponent("fox-elevator"),m=t.resolveComponent("Location2"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:o[3]||(o[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":o[4]||(o[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",aC,[t.createElementVNode("view",rC,[t.createElementVNode("view",{class:"fox-address__header-back",onClick:o[0]||(o[0]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.renderSlot(e.$slots,"back-icon",{},()=>[t.withDirectives(t.createVNode(s,{size:"14px"},null,512),[[t.vShow,e.type=="exist"&&e.privateType=="custom"]])])]),t.createElementVNode("view",sC,t.toDisplayString(e.privateType=="custom"?e.customAddressTitle||e.t("selectRegion"):e.existAddressTitle||e.t("deliveryTo")),1),t.createElementVNode("view",{class:"fox-address__header-close",onClick:o[1]||(o[1]=h=>e.handClose("cross"))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{color:"#cccccc",size:"14px"})])])]),["custom","custom2"].includes(e.privateType)?(t.openBlock(),t.createElementBlock("view",iC,[t.createElementVNode("view",cC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,y)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",y==e.tabIndex?"active":""]),key:y,onClick:g=>e.changeRegionTab(h,y)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,y)),1)],10,uC))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",dC,[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(null,e.selectedRegion.length)),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-address__region-line",ref:"regionLine",style:t.normalizeStyle({left:e.lineDistance+"px"})},null,4)],512),e.privateType=="custom"?(t.openBlock(),t.createElementBlock("view",fC,[t.createElementVNode("ul",mC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,y)=>(t.openBlock(),t.createElementBlock("li",{key:y,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick:g=>e.nextAreaList(h)},[t.createElementVNode("div",null,[e.selectedRegion[e.tabIndex]?.id==h.id?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(h.name),1)])],10,pC))),128))],512)])):(t.openBlock(),t.createElementBlock("view",hC,[t.createVNode(d,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",gC,[t.createElementVNode("div",yC,[t.createElementVNode("ul",vC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,y)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:y,onClick:g=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(m,{class:"fox-address-select-icon",size:"13px"})]),h.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",bC,[h.name?(t.openBlock(),t.createElementBlock("div",SC,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",CC,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",wC,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,kC))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:o[2]||(o[2]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.createElementVNode("div",NC,t.toDisplayString(e.customAndExistTitle||e.t("chooseAnotherAddress")),1)])):t.createCommentVNode("",!0)])),t.renderSlot(e.$slots,"bottom")])]),_:3},8,["lock-scroll","onClose","onClickOverlay","visible","teleportDisable","teleport"])}const pa=J(lC,[["render",BC]]),{componentName:VC,create:AC}=Y("barrage"),$C=AC({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const o=new Date().getTime(),l=!!t.useSlots().default,n=t.computed(()=>({[VC]:!0}));let a=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),d=t.ref(e.top),m=t.ref(0),f=e.speeds,h=t.ref(0);t.onMounted(()=>{y(),l&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(k(),m.value=0,g("hidden")):document.visibilityState==="visible"&&y()})}),t.onUnmounted(()=>{i.value=[],k()});const y=()=>{h.value=a.value.offsetWidth,l&&g("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${h.value}px`),u()},300)},g=b=>{let N=document.getElementsByClassName("slotBody"+o)?.[0]?.children||[];const C=[];N&&Array.from(N).forEach(V=>{b=="init"?(V.style.opacity="0",C.push(V)):(V.classList="",V.style={})}),b=="init"&&(i.value=C)},k=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,b=>{e.danmu.length>0&&(i.value=[...b])});const v=b=>{const S=m.value%i.value.length;!e.loop&&m.value===i.value.length?i.value.splice(i.value.length,0,b):i.value.splice(S,0,b)},u=()=>{k(),s=setTimeout(()=>{p()},e.frequency)},p=()=>{const b=e.loop?m.value%i.value.length:m.value;let S=document.createElement("view");l&&typeof i.value[b]=="object"?(S=i.value[b],S?.classList?.add("fox-barrage__item")):(S.innerHTML=i.value[b],S.classList.add("fox-barrage__item"),r.value.appendChild(S)),t.nextTick(()=>{const N=S.offsetHeight;if(S?.classList?.add("move"),S.style.animationDuration=`${f}ms`,S.style.top=b%c.value*(N+d.value)+20+"px",S.style.opacity="1",!l){const C=S.offsetWidth;S.style.width=C+20+"px"}S.addEventListener("animationend",()=>{l?S.classList.remove("move"):r.value.removeChild(S)}),!(!e.loop&&m.value>=i.value.length-1)&&(m.value++,m.value>=i.value.length&&(m.value=0),S.removeEventListener("animationend",()=>{}),u())})};return{classTime:o,classes:n,danmuList:i,dmBody:a,dmContainer:r,add:v}}});function TC(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"dmBody",class:t.normalizeClass(e.classes)},[t.createElementVNode("div",{ref:"dmContainer",class:t.normalizeClass(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["slotBody","slotBody"+e.classTime])},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)],2)],2)}const ha=J($C,[["render",TC]]),{componentName:EC,create:DC,scope:xC}=Y("signature"),IC=DC({props:{customClass:{type:String,default:""},lineWidth:{type:Number,default:2},strokeStyle:{type:String,default:()=>document.getElementsByTagName("body")[0].className.indexOf("fox-theme-dark")==-1?"#000":"#fff"},type:{type:String,default:"png"},unSupportTpl:{type:String,default:""}},components:{[Ie.name]:Ie},emits:["start","end","signing","confirm","clear"],setup(e,{emit:o}){const{toLocaleRefs:l}=ae.useFoxI18n(xC),n=l(e,["unSupportTpl","reSign","confirmText"]),a=t.ref(null),r=t.ref(null),s=t.computed(()=>({[EC]:!0,[`${e.customClass}`]:e.customClass})),i=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let p=document.createElement("canvas");return!!(p.getContext&&p.getContext("2d"))},d=()=>{a.value.addEventListener(i.events[0],m,!1)},m=p=>{p.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,o("start"),a.value.addEventListener(i.events[1],f,!1),a.value.addEventListener(i.events[2],h,!1),a.value.addEventListener(i.events[3],y,!1)},f=p=>{p.preventDefault();let b=i.isSupportTouch?p.touches[0]:p;o("signing",b);let S=a.value.getBoundingClientRect(),N=b.clientX-S.left,C=b.clientY-S.top;i.ctx.lineTo(N,C),i.ctx.stroke()},h=p=>{p.preventDefault(),o("end"),a.value.removeEventListener(i.events[1],f,!1),a.value.removeEventListener(i.events[2],h,!1)},y=p=>{p.preventDefault(),a.value.removeEventListener(i.events[1],f,!1),a.value.removeEventListener(i.events[2],h,!1)},g=()=>{a.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),o("clear")},k=()=>{u(a.value)},v=p=>{if(!p)return!0;var b=document.createElement("canvas");return b.width=p.width,b.height=p.height,p?.toDataURL()==b.toDataURL()},u=p=>{let b;switch(e.type){case"png":b=p.toDataURL("image/png");break;case"jpg":b=p.toDataURL("image/jpeg",.8);break}const S=v(p)?"请绘制签名":p,N=v(p)?"":b;o("confirm",S,N)};return t.onMounted(()=>{c()&&(i.ctx=a.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,d())}),{...n,...t.toRefs(i),canvas:a,wrap:r,isCanvasSupported:c,confirm:k,clear:g,classes:s}}}),qC={class:"fox-signature-inner",ref:"wrap"},MC=["height","width"],zC={key:0,class:"fox-signature-unsopport"};function PC(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",qC,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,MC),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",zC,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(s,{class:"fox-signature-btn",type:"default",onClick:o[0]||(o[0]=i=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(s,{class:"fox-signature-btn",type:"primary",onClick:o[1]||(o[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const ga=J(IC,[["render",PC]]),{componentName:LC,create:FC,scope:RC}=Y("time-select"),OC=FC({components:{[ie.name]:ie},props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!0},teleportDisable:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,o)=>{const{t:l}=ae.useFoxI18n(RC),n=t.computed(()=>({[LC]:!0})),a=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),s=t.computed(()=>e.currentTime),i=()=>{o.emit("update:visible",!1),o.emit("select",s.value)};return t.provide("currentKey",r),t.provide("currentTime",s),{classes:n,popStyle:a,props:e,close:i,t:l}}}),KC={class:"fox-time-select__title"},UC={class:"fox-time-select__title__fixed"},HC={key:0},jC={class:"fox-time-select__content"},WC={class:"fox-time-select__content__pannel"},YC={class:"fox-time-select__content__detail"};function XC(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{position:"bottom",closeable:"",round:"",teleportDisable:e.teleportDisable,visible:e.visible,style:t.normalizeStyle(e.popStyle),"lock-scroll":e.lockScroll,onClickOverlay:e.close,onClickCloseIcon:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",KC,[t.createElementVNode("view",UC,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",HC,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",jC,[t.createElementVNode("view",WC,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",YC,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const ya=J(OC,[["render",XC]]),{componentName:QC,create:GC}=Y("time-pannel"),ZC=GC({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,o)=>{const l=t.inject("currentKey"),n=t.reactive({currentKey:l}),a=t.computed(()=>({[QC]:!0,"fox-time-pannel--curr":n.currentKey==e.pannelKey})),r=s=>{o.emit("change",s)};return{...t.toRefs(n),classes:a,handlePannel:r}}});function JC(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=s=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const va=J(ZC,[["render",JC]]),{componentName:_C,create:ew}=Y("time-detail"),tw=ew({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,o)=>{const l=t.inject("currentKey"),n=t.inject("currentTime"),a=t.reactive({currentKey:l,currentTime:n}),r=t.computed(()=>({[_C]:!0})),s=d=>{let m=a.currentTime.find(f=>f.key==a.currentKey);if(m)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":m.list.filter(f=>f===d).length>0}},i=t.computed(()=>e.times.find(d=>d.key==a.currentKey).list),c=d=>{o.emit("select",d)};return{classes:r,...t.toRefs(a),getClass:s,renderData:i,handleTime:c}}}),ow={class:"fox-time-detail__detail fox-time-detail__detail--moring"},nw={class:"fox-time-detail__detail__list"},lw=["onClick"];function aw(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",ow,[t.createElementVNode("view",nw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.renderData,s=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.getClass(s)),key:s,onClick:i=>e.handleTime(s)},t.toDisplayString(s),11,lw))),128))])])],2)}const ka=J(tw,[["render",aw]]),{componentName:f2,create:rw,scope:sw}=Y("sku-header"),iw=rw({props:{goods:{type:Object,default:{}}},emits:[],components:{[Xe.name]:Xe},setup(e,{emit:o,slots:l}){const{t:n}=ae.useFoxI18n(sw);return{getSlots:r=>l[r],t:n}}}),cw={class:"fox-sku-header"},uw=["src"],dw={class:"fox-sku-header-right"},fw={key:3,class:"fox-sku-header-right-extra"};function mw(e,o,l,n,a,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",cw,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,uw),t.createElementVNode("view",dw,[e.getSlots("sku-header-price")?t.renderSlot(e.$slots,"sku-header-price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.goods.price,needSymbol:!0,thousands:!1},null,8,["price"])),e.getSlots("sku-header-extra")?t.renderSlot(e.$slots,"sku-header-extra",{key:2}):t.createCommentVNode("",!0),e.goods.skuId&&!e.getSlots("sku-header-extra")?(t.openBlock(),t.createElementBlock("view",fw,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const pw=J(iw,[["render",mw]]),{componentName:m2,create:hw}=Y("sku-select"),gw=hw({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:o}){const l=t.ref([]);return t.watch(()=>e.sku,a=>{l.value=[].slice.call(a)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(l.value=[].slice.call(e.sku))}),{skuInfo:l,changeSaleChild:(a,r,s,i)=>{a.checkFlag||a.disable||o("selectSku",{sku:a,skuIndex:r,parentSku:s,parentIndex:i})}}}}),yw={class:"fox-sku-select"},vw={class:"fox-sku-select-item-title"},kw={class:"fox-sku-select-item-skus"},bw=["onClick"];function Sw(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",yw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:s.id},[t.createElementVNode("view",vw,t.toDisplayString(s.name),1),t.createElementVNode("view",kw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:m=>e.changeSaleChild(c,d,s,i),key:c.name},t.toDisplayString(c.name),11,bw))),128))])]))),128))])}const Cw=J(gw,[["render",Sw]]),{componentName:p2,create:ww}=Y("sku-stepper"),Nw=ww({props:{stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},stepperExtraText:{type:[Function,Boolean],default:!1},stepperTitle:{type:String,default:"购买数量"}},emits:["click","changeSku","changeStepper","clickBtnOptions","overLimit","reduce","add"],components:{[Qe.name]:Qe},setup(e,{emit:o}){const l=t.ref(e.stepperMin);return t.onMounted(()=>{l.value=e.stepperMin}),{goodsCount:l,add:c=>{o("add",c)},reduce:c=>{o("reduce",c)},overlimit:(c,d)=>{o("overLimit",{action:d,value:parseInt(l.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&<(c)=="function"?c():""},changeStepper:c=>{l.value=c,o("changeStepper",c)}}}}),Bw={class:"fox-sku-stepper"},Vw={class:"fox-sku-stepper-title"},Aw=["innerHTML"],$w={class:"fox-sku-stepper-count"};function Tw(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",Bw,[t.createElementVNode("view",Vw,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,Aw),t.createElementVNode("view",$w,[t.createVNode(s,{modelValue:e.goodsCount,"onUpdate:modelValue":o[0]||(o[0]=i=>e.goodsCount=i),min:e.stepperMin,max:e.stepperMax,onAdd:e.add,onReduce:e.reduce,onOverlimit:e.overlimit,onChange:e.changeStepper},null,8,["modelValue","min","max","onAdd","onReduce","onOverlimit","onChange"])])])}const Ew=J(Nw,[["render",Tw]]),{componentName:h2,create:Dw}=Y("sku-operate"),xw=Dw({props:{btnOptions:{type:Array,default:()=>["confirm"]},btnExtraText:{type:String,default:""},buyText:{type:String,default:"立即购买"},addCartText:{type:String,default:"加入购物车"},confirmText:{type:String,default:"确定"}},emits:["click","changeSku","changeBuyCount","clickBtnOperate"],setup(e,{emit:o,slots:l}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{o("clickBtnOperate",s)},getSlots:s=>l[s]}}}),Iw={key:0,class:"fox-sku-operate"},qw={key:0,class:"fox-sku-operate-desc"},Mw={key:1,class:"fox-sku-operate-btn"},zw=["onClick"];function Pw(e,o,l,n,a,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",Iw,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",qw,t.toDisplayString(e.btnExtraText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"operate-btn"),e.getSlots("operate-btn")?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Mw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.btnOptions,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass([`fox-sku-operate-btn-${s}`,"fox-sku-operate-btn-item"]),key:i,onClick:c=>e.clickBtnOperate(s)},t.toDisplayString(e.getBtnDesc(s)),11,zw))),128))]))])):t.createCommentVNode("",!0)}const Lw=J(xw,[["render",Pw]]),{componentName:g2,create:Fw,scope:Rw}=Y("sku"),Ow=Fw({props:{...ze,sku:{type:Array,default:[]},goods:{type:Object,default:{}},stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},btnOptions:{type:Array,default:()=>["confirm"]},stepperTitle:{type:String,default:""},stepperExtraText:{type:[Function,Boolean],default:!1},btnExtraText:{type:String,default:""},buyText:{type:String,default:""},addCartText:{type:String,default:""},confirmText:{type:String,default:""}},emits:["update:visible","select-sku","change-stepper","click-btn-operate","click-close-icon","click-overlay","close","reduce","add","over-limit"],components:{SkuHeader:pw,SkuSelect:Cw,SkuStepper:Ew,SkuOperate:Lw,[ie.name]:ie},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ae.useFoxI18n(Rw),a=n(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,v=>{r.value=v}),t.watch(()=>r.value,v=>{v==!1&&k()}),t.onMounted(()=>{});const i=v=>l[v],c=v=>{o("select-sku",v)},d=v=>{s.value=v,o("change-stepper",v)},m=v=>{o("add",v)},f=v=>{o("reduce",v)},h=v=>{o("over-limit",v)},y=v=>{o("click-btn-operate",{type:v,value:s.value})},g=v=>{v=="icon"&&o("click-close-icon"),v=="overlay"&&o("click-overlay"),v=="close"&&o("close"),r.value=!1},k=()=>{o("update:visible",!1)};return{showPopup:r,closePopup:g,selectSku:c,changeStepper:d,stepperOverLimit:h,clickBtnOperate:y,add:m,reduce:f,getSlots:i,...a}}}),Kw={class:"fox-sku"},Uw={class:"fox-sku-content"};function Hw(e,o,l,n,a,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),d=t.resolveComponent("sku-operate"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":o[0]||(o[0]=f=>e.showPopup=f),onClickCloseIcon:o[1]||(o[1]=f=>e.closePopup("icon")),onClickOverlay:o[2]||(o[2]=f=>e.closePopup("overlay")),onClose:o[3]||(o[3]=f=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",Kw,[t.renderSlot(e.$slots,"sku-header"),e.getSlots("sku-header")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,goods:e.goods},t.createSlots({_:2},[e.getSlots("sku-header-price")?{name:"sku-header-price",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-price")]),key:"0"}:void 0,e.getSlots("sku-header-extra")?{name:"sku-header-extra",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-extra")]),key:"1"}:void 0]),1032,["goods"])),t.createElementVNode("view",Uw,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(d,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const ba=J(Ow,[["render",Hw]]),{create:jw}=Y("card"),Ww=jw({components:{[Xe.name]:Xe,[Yt.name]:Yt},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:o,slots:l}){return{isHaveSlot:a=>l[a]}}}),Yw={class:"fox-card"},Xw={class:"fox-card__left"},Qw=["src"],Gw={class:"fox-card__right"},Zw={class:"fox-card__right__title"},Jw={key:0,class:"fox-card__right__price"},_w={class:"fox-card__right__other"},eN={class:"fox-card__right__shop"},tN={class:"fox-card__right__shop__name"};function oN(e,o,l,n,a,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",Yw,[t.createElementVNode("div",Xw,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,Qw)]),t.createElementVNode("div",Gw,[t.createElementVNode("div",Zw,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",Jw,[e.isHaveSlot("price")?t.renderSlot(e.$slots,"price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.price},null,8,["price"])),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:2}):(t.openBlock(),t.createBlock(s,{key:3,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",_w,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(i,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(i,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",eN,[t.createElementVNode("div",tN,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Sa=J(Ww,[["render",oN]]),{create:nN,scope:lN}=Y("ecard"),aN=nN({components:{[Qe.name]:Qe},props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:Array,default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"¥"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(lN),n=t.ref(null),a=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,y)=>{n.value=y,s.value=e.cardAmountMin,a.value=h.price,o("change",h),o("update:modelValue",h.price)},d=h=>{let g=h.target.value.replace(/[^\d]/g,"");r.value=g,a.value=g,Number(g)>e.cardAmountMax&&(r.value=e.cardAmountMax,a.value=e.cardAmountMax),Number(g)<e.cardAmountMin&&(r.value=e.cardAmountMin,a.value=e.cardAmountMin),o("inputChange",Number(r.value)),o("update:modelValue",Number(r.value))},m=()=>{n.value="input",s.value=e.cardAmountMin,a.value=r.value,o("update:modelValue",r.value),o("inputClick")},f=h=>{s.value=h,o("changeStep",s.value,a.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:f,change:d,inputClick:m,stepValue:s,currentIndex:n,inputValue:r,money:i,t:l}}}),rN={class:"fox-ecard"},sN={class:"fox-ecard__title"},iN={class:"fox-ecard__list"},cN=["onClick"],uN={class:"fox-ecard__list__input--con"},dN=["placeholder"],fN={class:"fox-ecard__list__step"};function mN(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",rN,[t.createElementVNode("view",sN,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",iN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:d=>e.handleClick(i,c)},t.toDisplayString(i.price),11,cN))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:o[2]||(o[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",uN,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":o[0]||(o[0]=i=>e.inputValue=i),onInput:o[1]||(o[1]=(...i)=>e.change&&e.change(...i)),placeholder:e.placeholder||e.t("placeholder")},null,40,dN),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",fN,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(s,{modelValue:e.stepValue,"onUpdate:modelValue":o[3]||(o[3]=i=>e.stepValue=i),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const Ca=J(aN,[["render",mN]]),{create:pN,scope:hN}=Y("address-list-item"),gN=pN({components:{Del:te.Del,Edit:te.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(hN);return{delClick:s=>{o("delIcon",s,e.item),s.stopPropagation()},editClick:s=>{o("editIcon",s,e.item),s.stopPropagation()},contentsClick:s=>{o("clickItem",s,e.item),s.stopPropagation()},t:l}}}),yN={class:"fox-address-list-item__info"},vN={class:"fox-address-list-item__info-contact"},kN={class:"fox-address-list-item__info-contact-name"},bN={class:"fox-address-list-item__info-contact-tel"},SN={key:0,class:"fox-address-list-item__info-contact-default"},CN={class:"fox-address-list-item__info-handle"},wN={class:"fox-address-list-item__addr"};function NN(e,o,l,n,a,r){const s=t.resolveComponent("Del"),i=t.resolveComponent("Edit");return t.openBlock(),t.createElementBlock("div",{class:"fox-address-list-item",onClick:o[0]||(o[0]=(...c)=>e.contentsClick&&e.contentsClick(...c))},[t.createElementVNode("div",yN,[t.createElementVNode("div",vN,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",kN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",bN,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",SN,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",CN,[t.renderSlot(e.$slots,"content-icon",{},()=>[t.createVNode(s,{name:"del",class:"fox-address-list-item__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(i,{name:"edit",class:"fox-address-list-item__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",wN,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const vr=J(gN,[["render",NN]]),{create:BN}=Y("address-list-general"),VN=BN({props:{item:{type:Object,default:{}},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1}},emits:["delIcon","editIcon","clickItem","longDown","longCopy","longSet","longDel","swipeDel"],components:{ItemContents:vr,[Ie.name]:Ie,[Ht.name]:Ht},setup(e,{emit:o}){const l=()=>t.h(vr,{item:e.item,onDelIcon(N){s(N)},onEditIcon(N){i(N)},onClickItem(N){c(N)}});let n=null;const a=t.ref(!1),r=t.ref(!1),s=N=>{o("delIcon",N,e.item),N.stopPropagation()},i=N=>{o("editIcon",N,e.item),N.stopPropagation()},c=N=>{a.value||(o("clickItem",N,e.item),N.stopPropagation())},d=N=>{o("longDel",N,e.item),N.stopPropagation()},m=N=>{n=0,r.value=!0,o("longDown",N,e.item)};return{renderCompontent:l,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:d,holddownstart:N=>{n=setTimeout(()=>{m(N)},300)},holddownmove:()=>{clearTimeout(n)},holddownend:()=>{clearTimeout(n)},copyCLick:N=>{o("longCopy",N,e.item),N.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:N=>{o("longSet",N,e.item),N.stopPropagation()},maskClick:N=>{n!=0&&(r.value=!1),N.stopPropagation(),N.preventDefault()},swipeDelClick:N=>{o("swipeDel",N,e.item),N.stopPropagation()},swipestart:()=>{a.value=!1},swipemove:()=>{a.value=!0}}}}),AN={key:0,class:"fox-address-list-general"},$N={class:"fox-address-list-swipe"};function TN(e,o,l,n,a,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(i,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(s,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>[t.createTextVNode("删除")]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",$N,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchmove:e.swipemove,onTouchstart:e.swipestart},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchmove","onTouchstart"]))])]),_:3})):(t.openBlock(),t.createElementBlock("div",AN,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchstart:e.holddownstart,onTouchend:e.holddownend,onTouchmove:e.holddownmove},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchstart","onTouchend","onTouchmove"])),e.longPress&&e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list-general__mask",onClick:o[3]||(o[3]=(...c)=>e.maskClick&&e.maskClick(...c))},[t.renderSlot(e.$slots,"longpress-all",{},()=>[t.createElementVNode("div",{class:"fox-address-list-general__mask-copy",onClick:o[0]||(o[0]=(...c)=>e.copyCLick&&e.copyCLick(...c))},"复制地址"),t.createElementVNode("div",{class:"fox-address-list-general__mask-set",onClick:o[1]||(o[1]=(...c)=>e.setDefault&&e.setDefault(...c))},"设置默认"),t.createElementVNode("div",{class:"fox-address-list-general__mask-del",onClick:o[2]||(o[2]=(...c)=>e.delLongClick&&e.delLongClick(...c))},"删除地址")])])):t.createCommentVNode("",!0),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-address-list__mask-bottom",onClick:o[4]||(o[4]=(...c)=>e.hideMaskClick&&e.hideMaskClick(...c))})):t.createCommentVNode("",!0)]))}const EN=J(VN,[["render",TN]]),{componentName:DN,create:xN,scope:IN}=Y("address-list"),qN=xN({props:{data:{type:Array,default:[]},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1},showBottomButton:{type:Boolean,default:!0},dataOptions:{type:Object,default:{}}},components:{GeneralShell:EN,[Ie.name]:Ie},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(IN),n=t.ref([]),a=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[DN]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(n.value=e.data.map(k=>Mr(a,k,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(k,v)=>{o("delIcon",k,v),k.stopPropagation()},c=(k,v)=>{o("editIcon",k,v),k.stopPropagation()},d=(k,v)=>{o("clickItem",k,v),k.stopPropagation()},m=(k,v)=>{o("longCopy",k,v),k.stopPropagation()},f=(k,v)=>{o("longSet",k,v),k.stopPropagation()},h=(k,v)=>{o("longDel",k,v),k.stopPropagation()},y=(k,v)=>{o("swipeDel",k,v),k.stopPropagation()},g=k=>{o("add",k),k.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:d,clickLongCopy:m,clickLongSet:f,clickLongDel:h,clickSwipeDel:y,addAddress:g,dataArray:n,t:l}}});function MN(e,o,l,n,a,r){const s=t.resolveComponent("general-shell"),i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,d)=>(t.openBlock(),t.createBlock(s,{key:d,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:o[0]||(o[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const wa=J(qN,[["render",MN]]),{componentName:y2,create:zN}=Y("category"),PN=zN({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:o,slots:l}){const n=t.ref(0),a=t.ref(!1);return{getChildList:s=>{n.value=s,o("change",s)},checkIndex:n,categoryLeft:a}}}),LN={class:"fox-category"},FN={class:"fox-category__cateList"},RN={key:0},ON=["onClick"];function KN(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",LN,[t.createElementVNode("div",FN,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",RN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.category,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category__cateListLeft",key:i},[t.createElementVNode("div",{class:t.normalizeClass([e.checkIndex==i?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(i)},t.toDisplayString(s.catName),11,ON)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Na=J(PN,[["render",KN]]),{componentName:v2,create:UN}=Y("category-pane"),HN=UN({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:o}){return{onChange:n=>{o("onChange",n)}}}}),jN={class:"fox-category-pane"},WN={key:0,class:"fox-category-pane__cateListRight"},YN={class:"fox-category-pane__childTitle"},XN={key:0,class:"fox-category-pane__childItemList"},QN=["onClick"],GN=["src"],ZN={class:"fox-category-pane__skuImg"},JN={key:1,class:"fox-category-pane__cateListRight"},_N={class:"fox-category-pane__childTitle"},eB={key:0,class:"fox-category-pane__childItemList"},tB=["onClick"],oB={class:"fox-category-pane__skuName"},nB={key:2,class:"fox-category-pane__selfItemList"},lB=["onClick"];function aB(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",jN,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",WN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",YN,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",XN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,GN),t.createElementVNode("div",ZN,t.toDisplayString(c?.catName),1)],8,QN))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",JN,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",_N,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",eB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("div",oB,t.toDisplayString(c?.catName),1)],8,tB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",nB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.customCategory,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__skuName",key:i,onClick:c=>e.onChange(s)},t.toDisplayString(s?.catName),9,lB))),128))])):t.createCommentVNode("",!0)])}const Ba=J(HN,[["render",aB]]),{componentName:k2,create:rB}=Y("comment-header"),sB=rB({components:{[vt.name]:vt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:o}){return{handleClick:()=>{o("handleClick")}}}}),iB={class:"fox-comment-header__user"},cB={class:"fox-comment-header__user-avter"},uB=["src"],dB={class:"fox-comment-header__user-score"},fB={key:0,class:"fox-comment-header__time"};function mB(e,o,l,n,a,r){const s=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:o[1]||(o[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",iB,[t.createElementVNode("view",cB,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,uB)):t.createCommentVNode("",!0)]),e.type=="default"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},[t.createElementVNode("span",null,t.toDisplayString(e.info.nickName),1),t.renderSlot(e.$slots,"labels")],2),t.createElementVNode("view",dB,[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":o[0]||(o[0]=i=>e.info.score=i),size:"12",spacing:"5",readonly:"",onChange:e.handleClick},null,8,["modelValue","onChange"])])],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("span",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},t.toDisplayString(e.info.nickName),3),t.renderSlot(e.$slots,"labels")],2))]),e.info.time?(t.openBlock(),t.createElementBlock("view",fB,t.toDisplayString(e.info.time),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.type=="complex"?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__${e.type}-score`])},[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":o[2]||(o[2]=i=>e.info.score=i),size:"12",spacing:"3",readonly:""},null,8,["modelValue"]),t.createElementVNode("i",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-i`])},null,2),t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-size`])},t.toDisplayString(e.info.size),3)],2)):t.createCommentVNode("",!0)])}const pB=J(sB,[["render",mB]]),{componentName:b2,create:hB}=Y("comment-images"),gB=hB({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:te.Right},emits:["click","clickImages"],setup(e,{emit:o}){const l=t.ref(!1),n=t.ref(1),a=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),a.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),a.value=e.videos.concat(e.images)}),{isShowImage:l,initIndex:n,showImages:(s,i)=>{const{videos:c,images:d}=e,m=s=="img"?i-c.length:i;o("clickImages",{type:s,index:m,value:s=="img"?d[m]:c[m]})},totalImages:a}}}),yB=["onClick"],vB=["src"],kB=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),bB=["onClick"],SB=["src"],CB={key:0,class:"fox-comment-images__mask"};function wB(e,o,l,n,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:d=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,vB),kB],8,yB))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:d=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,SB),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",CB,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,bB)):t.createCommentVNode("",!0)],64))),128))],2)}const NB=J(gB,[["render",wB]]),{componentName:S2,create:BB,scope:VB}=Y("comment-bottom"),AB=BB({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:te.Fabulous,Comment:te.Comment,MoreX:te.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(VB),n=t.ref(!1),a=t.ref([]);return t.onMounted(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&a.value.push(c)})}),{showPopver:n,operate:i=>{i=="more"&&(n.value=!n.value),o("clickOperate",i)},mergeOp:a,handleClick:()=>{o("handleClick")},t:l}}}),$B={class:"fox-comment-bottom"},TB={key:0},EB={class:"fox-comment-bottom__cpx"},DB=["onClick"];function xB(e,o,l,n,a,r){const s=t.resolveComponent("Fabulous"),i=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",$B,[t.createElementVNode("view",{onClick:o[0]||(o[0]=(...d)=>e.handleClick&&e.handleClick(...d)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",TB,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",EB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(d,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${d}`]),onClick:f=>e.operate(d)},[d!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[d]),1),d=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),d=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:o[1]||(o[1]=f=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,DB))),128))])])}const IB=J(AB,[["render",xB]]),{componentName:qB,create:MB,scope:zB}=Y("comment"),PB=MB({props:{headerType:{type:String,default:"default"},imagesRows:{type:String,default:"one"},ellipsis:{type:[String,Number,Boolean],default:!1},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]},info:{type:Object,default:()=>({})},follow:{type:Object,default:()=>({})},labels:{type:Function,default:()=>""},operation:{type:Array,default:["replay","like","more"]}},components:{CommentHeader:pB,CommentImages:NB,CommentBottom:IB,Right:te.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:o}){const{t:l}=ae.useFoxI18n(zB),n=t.computed(()=>({[qB]:!0})),a=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:n,conEllipsis:a,clickOperate:c=>{o("clickOperate",c)},handleClick:()=>{o("click",e.info)},clickImages:c=>{o("clickImages",c)},t:l}}}),LB=["innerHTML"],FB={class:"fox-comment__follow-title"},RB={class:"fox-comment__follow-com"},OB={key:0,class:"fox-comment__follow-img"};function KB(e,o,l,n,a,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),d=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:o[0]||(o[0]=(...m)=>e.handleClick&&e.handleClick(...m)),innerHTML:e.info.content},null,12,LB),t.createVNode(i,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:o[1]||(o[1]=(...m)=>e.handleClick&&e.handleClick(...m))},[t.createElementVNode("view",FB,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",RB,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",OB,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",e.follow.images.length))+" ",1),t.createVNode(c,{width:"12px"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(d,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const Va=J(PB,[["render",KB]]),UB=[Ln,Rn,On,Kn,Un,be,Hn,jn,Wn,Yn,Xn,xo,Qn,Gn,Jn,_n,zo,Po,el,Lo,Fo,tl,ol,ot,nl,ll,Uo,al,rl,sl,il,cl,ul,dl,tt,fl,ml,pl,hl,gl,Ie,yl,vl,at,ie,kl,bl,Sl,Cl,zt,wl,Nl,Bl,Vl,Al,$l,Tl,El,Dl,Ot,xl,Pt,Lt,Il,ql,Ml,zl,Kt,Ko,Io,Mo,qo,Qe,vt,yt,Pl,Ll,Fl,Ht,Rl,Ol,Kl,jt,Oo,Ul,jl,Ro,Ct,Yl,Xl,Wt,Ql,Gl,Ut,Zl,Jl,_l,kt,ea,ta,bt,St,Xe,Ho,oa,na,la,Yt,Xt,aa,ra,sa,ia,ca,ua,da,fa,ma,pa,ha,ga,ya,va,ka,ba,Sa,Ca,wa,Na,Ba,Va],HB=new ii(UB,"4.0.0");exports.ActionSheet=Rl;exports.ActionsheetItem=al;exports.ActionsheetPane=Uo;exports.Address=pa;exports.AddressList=wa;exports.Animate=ua;exports.Audio=Yl;exports.AudioOperate=Xl;exports.Avatar=Wt;exports.AvatarGroup=Ql;exports.BackTop=Ol;exports.Badge=la;exports.Barrage=ha;exports.Broadcast=Mn;exports.BroadcastKey=ke;exports.Button=Ie;exports.Calendar=Mo;exports.CalendarItem=_n;exports.Card=Sa;exports.Cascader=Io;exports.CascaderItem=Gn;exports.Category=Na;exports.CategoryPane=Ba;exports.Cell=yl;exports.CellGroup=vl;exports.Checkbox=Lo;exports.CheckboxGroup=Fo;exports.CheckboxItem=tl;exports.CircleProgress=Zl;exports.Col=Sl;exports.Collapse=ra;exports.CollapseItem=sa;exports.Comment=Va;exports.Content=Kn;exports.CountDown=na;exports.CountUp=oa;exports.DataItemsKey=ut;exports.DateItem=Jn;exports.DatePicker=qo;exports.DateUtils=ne;exports.Dialog=jt;exports.Divider=wl;exports.Domain=bo;exports.DomainKey=De;exports.DomainProvider=hl;exports.Drag=Kl;exports.Ecard=Ca;exports.Elevator=Ot;exports.Ellipsis=ca;exports.Empty=_l;exports.FixedNav=Al;exports.FloatingButton=dl;exports.FooterBar=On;exports.FoxActionSheet=Rl;exports.FoxActionsheetItem=al;exports.FoxActionsheetPane=Uo;exports.FoxAddress=pa;exports.FoxAddressList=wa;exports.FoxAnimate=ua;exports.FoxAudio=Yl;exports.FoxAudioOperate=Xl;exports.FoxAvatar=Wt;exports.FoxAvatarGroup=Ql;exports.FoxBackTop=Ol;exports.FoxBadge=la;exports.FoxBarrage=ha;exports.FoxButton=Ie;exports.FoxCalendar=Mo;exports.FoxCalendarItem=_n;exports.FoxCard=Sa;exports.FoxCascader=Io;exports.FoxCascaderItem=Gn;exports.FoxCategory=Na;exports.FoxCategoryPane=Ba;exports.FoxCell=yl;exports.FoxCellGroup=vl;exports.FoxCheckbox=Lo;exports.FoxCheckboxGroup=Fo;exports.FoxCheckboxItem=tl;exports.FoxCircleProgress=Zl;exports.FoxCol=Sl;exports.FoxCollapse=ra;exports.FoxCollapseItem=sa;exports.FoxComment=Va;exports.FoxContent=Kn;exports.FoxCountDown=na;exports.FoxCountUp=oa;exports.FoxDateItem=Jn;exports.FoxDatePicker=qo;exports.FoxDialog=jt;exports.FoxDivider=wl;exports.FoxDomainProvider=hl;exports.FoxDrag=Kl;exports.FoxEcard=Ca;exports.FoxElevator=Ot;exports.FoxEllipsis=ca;exports.FoxEmpty=_l;exports.FoxFixedNav=Al;exports.FoxFloatingButton=dl;exports.FoxFooterBar=On;exports.FoxGrid=Nl;exports.FoxGridItem=Bl;exports.FoxGroup=Un;exports.FoxHeaderBar=Rn;exports.FoxHintText=ot;exports.FoxImage=kl;exports.FoxImagePreview=Ho;exports.FoxIndicator=Il;exports.FoxInfiniteLoading=Oo;exports.FoxInputItem=Wn;exports.FoxInputNumber=Qe;exports.FoxInputnumberItem=rl;exports.FoxItem=be;exports.FoxLayout=bl;exports.FoxLinkItem=nl;exports.FoxList=Gl;exports.FoxMapping=pl;exports.FoxMenu=$l;exports.FoxMenuItem=Tl;exports.FoxMessageBox=tt;exports.FoxMoneyItem=Yn;exports.FoxNavbar=Vl;exports.FoxNoticeBar=Jl;exports.FoxNotify=jl;exports.FoxNumberKeyboard=Fl;exports.FoxOverLay=at;exports.FoxPage=Ln;exports.FoxPagination=xl;exports.FoxPicker=yt;exports.FoxPickerItem=Qn;exports.FoxPopover=Xt;exports.FoxPopup=ie;exports.FoxPopupWrapper=fl;exports.FoxPrice=Xe;exports.FoxProgress=Ut;exports.FoxPullRefresh=Ul;exports.FoxRadio=zo;exports.FoxRadioGroup=Po;exports.FoxRadioItem=el;exports.FoxRange=Kt;exports.FoxRate=vt;exports.FoxRateItem=ll;exports.FoxRollingProvider=gl;exports.FoxRow=Cl;exports.FoxRowItem=Hn;exports.FoxSearchBar=Ko;exports.FoxShortPassword=Pl;exports.FoxSideNavBar=ql;exports.FoxSideNavBarItem=Ml;exports.FoxSignature=ga;exports.FoxSkeleton=aa;exports.FoxSku=ba;exports.FoxSlotItem=jn;exports.FoxStep=ta;exports.FoxSteps=ea;exports.FoxStepsBar=ul;exports.FoxSticky=zt;exports.FoxSubSideNavBar=zl;exports.FoxSwipe=Ht;exports.FoxSwiper=bt;exports.FoxSwiperItem=St;exports.FoxSwitch=Ro;exports.FoxSwitchItem=ol;exports.FoxTabPane=Lt;exports.FoxTabbar=El;exports.FoxTabbarItem=Dl;exports.FoxTable=ia;exports.FoxTabs=Pt;exports.FoxTabsBar=sl;exports.FoxTabsContainer=il;exports.FoxTabsPane=cl;exports.FoxTag=Yt;exports.FoxText=ml;exports.FoxTextarea=xo;exports.FoxTextareaItem=Xn;exports.FoxTimeDetail=ka;exports.FoxTimePannel=va;exports.FoxTimeSelect=ya;exports.FoxToast=Ct;exports.FoxTour=ma;exports.FoxTrendArrow=fa;exports.FoxUploader=Ll;exports.FoxVideo=kt;exports.FoxWaterMark=da;exports.Grid=Nl;exports.GridItem=Bl;exports.Group=Un;exports.HeaderBar=Rn;exports.HintText=ot;exports.Image=kl;exports.ImagePreview=Ho;exports.Indicator=Il;exports.InfiniteLoading=Oo;exports.InputItem=Wn;exports.InputNumber=Qe;exports.InputnumberItem=rl;exports.Item=be;exports.Layout=bl;exports.LinkItem=nl;exports.List=Gl;exports.Mapping=pl;exports.Menu=$l;exports.MenuItem=Tl;exports.MessageBox=tt;exports.MoneyItem=Yn;exports.Navbar=Vl;exports.NoticeBar=Jl;exports.Notify=jl;exports.NumberKeyboard=Fl;exports.OverLay=at;exports.Page=Ln;exports.Pagination=xl;exports.Picker=yt;exports.PickerItem=Qn;exports.Popover=Xt;exports.Popup=ie;exports.PopupWrapper=fl;exports.Price=Xe;exports.PriorityPolicy=co;exports.Progress=Ut;exports.PullRefresh=Ul;exports.Radio=zo;exports.RadioGroup=Po;exports.RadioItem=el;exports.Range=Kt;exports.Rate=vt;exports.RateItem=ll;exports.RollingProvider=gl;exports.Row=Cl;exports.RowItem=Hn;exports.SearchBar=Ko;exports.ShortPassword=Pl;exports.SideNavBar=ql;exports.SideNavBarItem=Ml;exports.Signature=ga;exports.Skeleton=aa;exports.Sku=ba;exports.SlotItem=jn;exports.Step=ta;exports.Steps=ea;exports.StepsBar=ul;exports.Sticky=zt;exports.SubSideNavBar=zl;exports.Swipe=Ht;exports.Swiper=bt;exports.SwiperItem=St;exports.Switch=Ro;exports.SwitchItem=ol;exports.TabPane=Lt;exports.Tabbar=El;exports.TabbarItem=Dl;exports.Table=ia;exports.Tabs=Pt;exports.TabsBar=sl;exports.TabsContainer=il;exports.TabsPane=cl;exports.Tag=Yt;exports.Text=ml;exports.Textarea=xo;exports.TextareaItem=Xn;exports.TimeDetail=ka;exports.TimePannel=va;exports.TimeSelect=ya;exports.Toast=Ct;exports.Tour=ma;exports.TrendArrow=fa;exports.UniqueID=Do;exports.Uploader=Ll;exports.ValidateSchema=Or;exports.ValidateSchemaKey=Re;exports.Video=kt;exports.WaterMark=da;exports.cancelRaf=kr;exports.clamp=Fe;exports.clearNonNumber=dn;exports.clone=un;exports.compareTo=sn;exports.createBroadcast=vo;exports.createValidateSchema=ko;exports.debounce=ht;exports.debounceRef=Js;exports.decimalLength=qr;exports.default=HB;exports.defineBroadcast=Us;exports.defineConfigDomain=Kr;exports.defineDataItem=Hr;exports.defineDomain=Pn;exports.defineItem=we;exports.definePageState=jr;exports.deleteGlobalValidator=Ys;exports.disabledProperty=Ce;exports.divide=xn;exports.excludeProps=In;exports.extend=nt;exports.floatData=Mr;exports.getGlobalValidateCheckEvents=Lr;exports.getGlobalValidateResetEvents=Rr;exports.getPageContentAreaHeight=so;exports.getPageContentAreaWidth=io;exports.getPageFooterAreaHeight=wo;exports.getPageHeaderAreaHeight=Co;exports.getRootDomain=mt;exports.getScrollTopRoot=qn;exports.hasSymbol=Ar;exports.includeProps=he;exports.indexOf=Os;exports.installRules=Ur;exports.integerLength=Ir;exports.isArray=ho;exports.isArrayLike=Tr;exports.isBrowser=st;exports.isDate=Oe;exports.isESModule=zs;exports.isEmptyString=ce;exports.isEqual=xe;exports.isFunction=ao;exports.isHidden=yo;exports.isInnerPage=ti;exports.isMap=Is;exports.isNil=Nr;exports.isNumberString=xr;exports.isObject=Be;exports.isPlainObject=cn;exports.isPromise=Mt;exports.isRegExp=Dr;exports.isSet=qs;exports.isString=Br;exports.isSubPage=oi;exports.isSymbol=Ms;exports.isWindow=$r;exports.lastIndexOf=Ks;exports.makeArray=Rs;exports.merge=Er;exports.multiply=Sr;exports.negate=Cr;exports.nextTick=Ls;exports.numberFormat=po;exports.objectToString=Vr;exports.once=_s;exports.padZero=Je;exports.preventDefault=fn;exports.property=Ne;exports.raf=Le;exports.readonlyProperty=Ae;exports.setGlobalValidateCheckEvents=Xs;exports.setGlobalValidateHandler=js;exports.setGlobalValidateMessages=Gs;exports.setGlobalValidateResetEvents=Qs;exports.setGlobalValidator=Ws;exports.throttle=ro;exports.toBoolean=me;exports.toNumber=fe;exports.toPadding=Me;exports.toPx=se;exports.toPxDesc=pe;exports.toTypeString=go;exports.toValue=Ee;exports.tryTimes=zn;exports.typeOf=lt;exports.unNumberFormat=wr;exports.updatePageState=mn;exports.useBroadcast=Et;exports.useDomain=Ke;exports.useExpose=$e;exports.useInnerSize=Fn;exports.usePageState=So;exports.usePosition=es;exports.useRect=Ve;exports.useSize=No;exports.useTouch=Ue;exports.valueLength=ge;
|