@fox-js/foxui 4.0.1-14 → 4.0.1-16
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 +10 -20
- package/dist/index.esm.js +12199 -11813
- package/dist/index.umd.js +11 -21
- package/dist/locale/index.d.ts +27 -9
- package/dist/locale/index.esm.js +31 -13
- package/dist/locale/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +261 -31
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1,23 +1,13 @@
|
|
|
1
1
|
"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-base v4.0.0 Tue
|
|
3
|
-
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),
|
|
2
|
+
* @fox-js/foxui-base v4.0.0 Tue Jul 18 2023 15:23:03 GMT+0800 (中国标准时间)
|
|
3
|
+
*/Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),Ze=require("@fox-js/validator"),G=require("@fox-js/icons-vue"),ie=require("@fox-js/i18n"),xt=window,Xr=typeof window<"u";function Qr(){return typeof xt<"u"?xt.requestAnimationFrame||xt.webkitRequestAnimationFrame||function(e){xt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function ul(e){Xr?cancelAnimationFrame(e):clearTimeout(e)}const Ye=Qr();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-5 Mon Jan 30 2023 14:39:30 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function Lt(e,n="0"){let o=0,l=-1;e[0]=="-"&&(o++,l=1,e=e.substring(1),e.length),n[0]=="-"&&(o++,l=2,n=n.substring(1),n.length),e=pe(e),n=pe(n),[e,n]=Ln(pe(e),pe(n)),o==1&&(l==1?e=Gt(e):n=Gt(n));let r=Zo(e,n);return o?o==2?"-"+pe(r):e.length<r.length?pe(r.substring(1)):"-"+pe(Gt(r)):pe(r)}function Gt(e){let n="",o=e.length,l=e.split(".")[1],r=l?l.length:0;for(let a=0;a<o;a++)e[a]>="0"&&e[a]<="9"?n+=9-parseInt(e[a]):n+=e[a];let i=r>0?"0."+new Array(r).join("0")+"1":"1";return Zo(n,i)}function pe(e){let n=e.split(".");for(n[0]||(n[0]="0");n[0][0]=="0"&&n[0].length>1;)n[0]=n[0].substring(1);return n[0]+(n[1]?"."+n[1]:"")}function Ln(e,n){let o=e.split("."),l=n.split("."),r=o[0].length,i=l[0].length;return r>i?l[0]=new Array(Math.abs(r-i)+1).join("0")+(l[0]?l[0]:""):o[0]=new Array(Math.abs(r-i)+1).join("0")+(o[0]?o[0]:""),r=o[1]?o[1].length:0,i=l[1]?l[1].length:0,(r||i)&&(r>i?l[1]=(l[1]?l[1]:"")+new Array(Math.abs(r-i)+1).join("0"):o[1]=(o[1]?o[1]:"")+new Array(Math.abs(r-i)+1).join("0")),e=o[0]+(o[1]?"."+o[1]:""),n=l[0]+(l[1]?"."+l[1]:""),[e,n]}function Zo(e,n){[e,n]=Ln(e,n);let o="",l=0;for(let r=e.length-1;r>=0;r--){if(e[r]==="."){o="."+o;continue}let i=parseInt(e[r])+parseInt(n[r])+l;o=i%10+o,l=Math.floor(i/10)}return l?l.toString()+o:o}var ie=(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))(ie||{});function kt(e,n=0,o=ie.HALF_EVEN){if(o===ie.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let l=!1;e[0]==="-"&&(l=!0,e=e.substring(1));let r=e.split("."),i=r[0],a=r[1];if(n<0){if(n=-n,i.length<=n)return"0";{let c=i.substr(0,i.length-n);return e=c+"."+i.substr(i.length-n)+a,c=kt(e,0,o),(l?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return i.length,fo(r[1],i,l,o)?(l?"-":"")+Zt(i):(l?"-":"")+i;if(r[1]){if(r[1].length<n)return(l?"-":"")+i+"."+r[1]+new Array(n-r[1].length+1).join("0")}else return(l?"-":"")+i+"."+new Array(n+1).join("0");a=r[1].substring(0,n);let s=r[1].substring(n);return s&&fo(s,a,l,o)&&(a=Zt(a),a.length>n)?(l?"-":"")+Zt(i,parseInt(a[0]))+"."+a.substring(1):(l?"-":"")+i+"."+a}function fo(e,n,o,l){if(!e||e===new Array(e.length+1).join("0")||l===ie.DOWN||!o&&l===ie.FLOOR||o&&l===ie.CEILING)return!1;if(l===ie.UP||o&&l===ie.FLOOR||!o&&l===ie.CEILING)return!0;let r="5"+new Array(e.length).join("0");if(e>r)return!0;if(e<r)return!1;switch(l){case ie.HALF_DOWN:return!1;case ie.HALF_UP:return!0;case ie.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function Zt(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let o=e.length-1,l="";for(let r=o;r>=0;r--){let i=parseInt(e[r])+n;i==10?(n=1,i=0):n=0,l+=i}return n&&(l+=n),l.split("").reverse().join("")}function on(e,n){e=e.toString(),n=n.toString();let o=0;e[0]=="-"&&(o++,e=e.substr(1)),n[0]=="-"&&(o++,n=n.substr(1)),e=at(e),n=at(n);let l=0,r=0;e.indexOf(".")!=-1&&(l=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(r=n.length-n.indexOf(".")-1);let i=l+r;if(e=at(e.replace(".","")),n=at(n.replace(".","")),e.length<n.length){let f=e;e=n,n=f}if(n=="0")return"0";let a=n.length,s=0,c=[],m=a-1,d="";for(let f=0;f<a;f++)c[f]=e.length-1;for(let f=0;f<2*e.length;f++){let g=0;for(let k=n.length-1;k>=m&&k>=0;k--)c[k]>-1&&c[k]<e.length&&(g+=parseInt(e[c[k]--])*parseInt(n[k]));g+=s,s=Math.floor(g/10),d=g%10+d,m--}return d=at(Sr(d,i)),o==1&&(d="-"+d),d}function Sr(e,n){return n==0?e:(e=n>=e.length?new Array(n-e.length+1).join("0")+e:e,e.substr(0,e.length-n)+"."+e.substr(e.length-n,n))}function at(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,n,o=8){if(n==0)throw new Error("Cannot divide by 0");if(e=e.toString(),n=n.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),n=n.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let l=0;n[0]=="-"&&(n=n.substring(1),l++),e[0]=="-"&&(e=e.substring(1),l++);var r=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=pe(n.replace(".","")),r>=0){let m=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(m==-1)e=pe(e+new Array(r+1).join("0"));else if(r>m)e=e.replace(".",""),e=pe(e+new Array(r-m+1).join("0"));else if(r<m){e=e.replace(".","");let d=e.length-m+r;e=pe(e.substring(0,d)+"."+e.substring(d))}else r==m&&(e=pe(e.replace(".","")))}let i=0,a=n.length,s="",c=e.indexOf(".")>-1&&e.indexOf(".")<a?e.substring(0,a+1):e.substring(0,a);if(e=e.indexOf(".")>-1&&e.indexOf(".")<a?e.substring(a+1):e.substring(a),c.indexOf(".")>-1){let m=c.length-c.indexOf(".")-1;c=c.replace(".",""),a>c.length&&(m+=a-c.length,c=c+new Array(a-c.length+1).join("0")),i=m,s="0."+new Array(m).join("0")}for(o=o+2;i<=o;){let m=0;for(;parseInt(c)>=parseInt(n);)c=Lt(c,"-"+n),m++;s+=m,e?(e[0]=="."&&(s+=".",i++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(i||(s+="."),i++,c=c+"0")}return(l==1?"-":"")+pe(kt(s,o-2))}function an(e,n){return e=e.toString(),n=n.toString(),n=rn(n),Lt(e,n)}function rn(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function mo(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),po(e),po(n);let o="";e[0]=="-"&&(o="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let l=an(e,on(n,kt(ln(e,n),0,ie.FLOOR)));return o+l}function po(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function ho(e,n){let o=!1;if(e[0]=="-"&&n[0]!="-")return-1;if(e[0]!="-"&&n[0]=="-")return 1;if(e[0]=="-"&&n[0]=="-"&&(e=e.substr(1),n=n.substr(1),o=!0),[e,n]=Ln(e,n),e.localeCompare(n)==0)return 0;for(let l=0;l<e.length;l++)if(e[l]!=n[l])return e[l]>n[l]?o?-1:1:o?1:-1;return 0}class J{value;static RoundingModes=ie;static validate(n){if(n){if(n=n.toString(),isNaN(n))throw Error("Parameter is not a number: "+n);n[0]=="+"&&(n=n.substring(1))}else n="0";if(n.startsWith(".")?n="0"+n:n.startsWith("-.")&&(n="-0"+n.substr(1)),/e/i.test(n)){let[o,l]=n.split(/[eE]/);o=pe(o);let r="";o[0]=="-"&&(r="-",o=o.substring(1)),o.indexOf(".")>=0?(l=parseInt(l)+o.indexOf("."),o=o.replace(".","")):l=parseInt(l)+o.length,o.length<l?n=r+o+new Array(l-o.length+1).join("0"):o.length>=l&&l>0?n=r+pe(o.substring(0,l))+(o.length>l?"."+o.substring(l):""):n=r+"0."+new Array(-l+1).join("0")+o}return n}constructor(n="0"){this.value=J.validate(n)}getValue(){return this.value}static getPrettyValue(n,o,l){if(!(o||l))o=3,l=",";else if(!(o&&l))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=J.validate(n);let r=n.charAt(0)=="-";r&&(n=n.substring(1));var i=n.indexOf(".");i=i>0?i:n.length;for(var a="",s=i;s>0;)s<o?(o=s,s=0):s-=o,a=n.substring(s,s+o)+(s<i-o&&s>=0?l:"")+a;return(r?"-":"")+a+n.substring(i)}getPrettyValue(n,o){return J.getPrettyValue(this.value,n,o)}static round(n,o=0,l=ie.HALF_EVEN){if(n=J.validate(n),isNaN(o))throw Error("Precision is not a number: "+o);return kt(n,o,l)}round(n=0,o=ie.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new J(kt(this.value,n,o))}static floor(n){return n=J.validate(n),n.indexOf(".")===-1?n:J.round(n,0,ie.FLOOR)}floor(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,ie.FLOOR)}static ceil(n){return n=J.validate(n),n.indexOf(".")===-1?n:J.round(n,0,ie.CEILING)}ceil(){return this.value.indexOf(".")===-1?new J(this.value):new J(this.value).round(0,ie.CEILING)}static add(n,o){return n=J.validate(n),o=J.validate(o),Lt(n,o)}add(n){return new J(Lt(this.value,n.getValue()))}static subtract(n,o){return n=J.validate(n),o=J.validate(o),an(n,o)}subtract(n){return new J(an(this.value,n.getValue()))}static multiply(n,o){return n=J.validate(n),o=J.validate(o),on(n,o)}multiply(n){return new J(on(this.value,n.getValue()))}static divide(n,o,l){return n=J.validate(n),o=J.validate(o),ln(n,o,l)}divide(n,o){return new J(ln(this.value,n.getValue(),o))}static modulus(n,o){return n=J.validate(n),o=J.validate(o),mo(n,o)}modulus(n){return new J(mo(this.value,n.getValue()))}static compareTo(n,o){return n=J.validate(n),o=J.validate(o),ho(n,o)}compareTo(n){return ho(this.value,n.getValue())}static negate(n){return n=J.validate(n),rn(n)}negate(){return new J(rn(this.value))}}function Jo(e,n){return J.multiply(`${e}`,`${n}`)}function On(e,n,o=8){return J.divide(`${e}`,`${n}`,o)}function sn(e,n){return e=`${e}`,n=`${n}`,J.compareTo(e,n)}function _o(e){return J.negate(e)}function Fn(e,n=-1,o=!1,l=3,r=","){let i=`${e}`;if(i.length==0||i==="-")return"";let a=i.charAt(0);a=="-"?i=i.substring(1):a="";let s=i,c="",m=i.indexOf(".");m!=-1&&(s=i.substring(0,m),c=i.substring(m+1)),n!=-1&&(n<c.length?c=c.substring(0,n):o&&n>c.length&&(c=c.padEnd(n,"0")));let d;if(l>0){let f="",g=s.split("").reverse();for(let k=0;k<g.length;k++)f+=g[k]+((k+1)%l==0&&k+1!=g.length?r:"");c.length==0?d=`${a}${f.split("").reverse().join("")}`:d=`${a}${f.split("").reverse().join("")}.${c}`}else c.length==0?d=`${a}${s}`:d=`${a}${s}.${c}`;return d}function el(e){let n=`${e}`,o=n.charAt(0);o=="-"?n=n.substring(1):o="";let l=n.replace(/[^\d\.-]/g,"");return`${o}${l}`}const br=Array.isArray,Cr=e=>Yt(e)==="[object Map]",wr=e=>Yt(e)==="[object Set]",De=e=>e instanceof Date,cn=e=>typeof e=="function",Nr=e=>typeof e=="string",Br=e=>typeof e=="symbol",Ve=e=>e!==null&&typeof e=="object",Wt=e=>Ve(e)&&cn(e.then)&&cn(e.catch),tl=Object.prototype.toString,Yt=e=>tl.call(e),un=e=>Yt(e)==="[object Object]",nl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Vr(e){return e.__esModule||nl&&e[Symbol.toStringTag]==="Module"}const Ar=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function Ue(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},o=1,l=e.length,r=!1;for(typeof n=="boolean"&&(r=n,n=e[o]??{},o++),typeof n!="object"&&(n={});o<l;o++)if(e[o]!==null&&e[o]!==void 0){let i=e[o];for(let a in i){let s=n[a],c=i[a];if(s!==c)if(r===!0&&c&&typeof c=="object"){let m;Array.isArray(c)?m=s&&Array.isArray(s)?s:[]:m=s&&typeof s=="object"?s:{},n[a]=Ue(r,m,c)}else c!==void 0&&(n[a]=c)}}return n}function dn(e,n,o=!1){if(!o)Ue(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let r in n){let i=e[r],a=n[r];if(i!==a)if(typeof a=="object"){if(!Array.isArray(a)&&!un(a))continue;i=dn(i,a,o),e[r]=i}else{if(typeof a=="function")continue;e[r]=a}}const l=Object.getOwnPropertySymbols(n);for(let r of l){let i=e[r],a=n[r];if(i!==a)if(typeof a=="object"){if(!Array.isArray(a)&&!un(a))continue;i=dn(i,a,o),e[r]=i}else{if(typeof a=="function")continue;e[r]=a}}}return e}const Jt=Ar?Promise.resolve():null;function Er(e,...n){Jt!==null?n&&n.length>0?Jt.then(()=>{e(n)}):Jt.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function ve(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":Boolean(e)}function oe(e){return typeof e=="number"?e:Number(e)}const Tr={"[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 Ot(e){let o=Object.prototype.toString.call(e);return e==null?String(e):Tr[o]||"object"}function ol(e){return!e||e.offsetParent===null}function ll(e){return e&&typeof e=="object"&&"setInterval"in e}function al(e){let n=!!e&&"length"in e&&e.length,o=Ot(e);return o==="function"||ll(e)?!1:o==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function rl(e,n){let o=+n.length,l=0,r=e.length;for(;l<o;l++)e[r++]=n[l];return e.length=r,e}function $r(e,n=[]){let o=n;return e!=null&&(al(Object(e))?rl(o,typeof e=="string"?[e]:e):o.push(e)),o}function Ae(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let o=Ot(e),l=Ot(n);if(o!==l)return!1;if(o==="object"){let r=Object.keys(e),i=Object.keys(n);if(r.length!==i.length)return!1;for(let a=0;a<r.length;a++){let s=r[a],c=e[s],m=n[s];if(!Ae(c,m))return!1}return!0}else if(o==="array"){if(e.length!==n.length)return!1;for(let r=0;r<e.length;r++){let i=e[r],a=n[r];if(!Ae(i,a))return!1}return!0}return!1}const Ye=typeof window<"u",Fe=Ye&&window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout;function sl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ye=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function il(e){return ye(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ye(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function cl(e){if(e==null)return 0;let n=`${e}`;if(n.length==0)return 0;n.charAt(0)=="-"&&(n=n.substring(1)),n=n.replace(/[^\d\.-]/g,"");const o=n.indexOf(".");return o==-1?n.length:o}function ul(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const o=n.indexOf(".");return o==-1?0:n.length-(o+1)}function go(e,n,o){const l=e.indexOf(n);return l===-1?e:n==="-"&&l!==0?e.slice(0,l):e.slice(0,l+1)+e.slice(l).replace(o,"")}function fn(e,n=!0,o=!0){n?e=go(e,".",/\./g):e=e.replace(/\./g,""),o?e=go(e,"-",/-/g):e=e.replace(/-/,"");const l=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(l,"")}function dl(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(o=>{if(Ae(e,o))return!0}):n.indexOf(e)}function Dr(e,n){if(typeof e=="object"||Array.isArray(e)){let o=n.reverse().findIndex(l=>{if(Ae(e,l))return!0});return o!==-1&&(o=n.length-1-o),o}return n.lastIndexOf(e)}function ce(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ke(e,...n){const o={};return n.forEach(l=>{for(const r in l)o[r]=e[r]}),o}function fl(e,...n){const o=[];n.forEach(r=>{Reflect.apply([].push,o,Reflect.ownKeys(r))});const l={};for(const r in e)o.includes(r)||(l[r]=e[r]);return l}const ml=(e,n,o)=>{const l=Object.assign({},e),r=Object.assign({},o);return Object.keys(n).length>0?(Object.keys(l).forEach(i=>{r.hasOwnProperty(i)?typeof r[i]=="string"&&(l[i]=n[r[i]]):n[i]&&(l[i]=n[i])}),l):e},Ne=Symbol.for("BroadcastKey");class Ir{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,o,l){this.parent=n,this.proxy=o,this.name=l,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const o=this.children.findIndex(l=>n===l);o!==-1&&this.children.splice(o,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,o,...l){if(n.maxLevel!==void 0&&n.maxLevel!==null&&n.maxLevel>0){if(n.level=n.level??0,n.level>n.maxLevel)return[];n.level++}let r=!1;!n.name||n.name==="*"?r=!0:!n.name||n.name==="+"?(r=!1,n.name="*"):sl(n.name)&&this.name&&n.name.test(this.name)?r=!0:typeof n.name=="function"?r=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(r=!0);const i=[];if(r){const a=this.callbacks.get(o);if(typeof a=="function"){const c=Reflect.apply(a,this.proxy,[...l]);c!=null&&i.push(c)}const s=this.proxy??{};if(typeof s[o]=="function"){const c=Reflect.apply(s[o],s,[...l]);c!=null&&i.push(c)}}return this.children.forEach(a=>{const s=Reflect.apply(a.emit,a,[{...n},o,...l]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,i,[...s])}),i}emitToChildren(n,o,...l){const r=[];return this.children.forEach(i=>{const a=Reflect.apply(i.emit,i,[{...n},o,...l]);a!=null&&Array.isArray(a)&&Reflect.apply([].push,r,[...a])}),r}on(n,o){this.callbacks.set(n,o)}}function Un(e,n,o,l){const r=new Ir(n,e,o);if(l&&typeof l=="object")for(const i in l)r.on(i,l[i]);return r}function Tt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ne]??t.inject(Ne,null):t.inject(Ne,null)}const $t=e=>e.default??e;class qr{error(n,o){const l=o,r=Tt(o);r?r.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof l.setErrorTip=="function"&&l.setErrorTip(n)}reset(n){const o=n,l=Tt(n);l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}success(n){const o=n,l=Tt(n);l?l.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof o.setErrorTip=="function"&&o.setErrorTip("")}decorate(n,o,l){Array.isArray(n)||(n=[n]);const r=l,i=Tt(l),a=o.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),s=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!a&&s?i?i.emit({name:"*"},"setRequired",!0):typeof r.setRequired=="function"&&r.setRequired(!0):a&&!s&&(i?i.emit({name:"*"},"setRequired",!1):typeof r.setRequired=="function"&&r.setRequired(!1),this.reset(l))}getValue(n){return n.modelValue}}let zr=new qr,Mr=["blur","clear"];function Pr(){return Mr}let xr=["focus","change"];function Rr(){return xr}function rt(...e){const n=[];return e.forEach(o=>{o.forEach(l=>{const r=n.findIndex(i=>i.type===l.type);r!==-1&&n.splice(r,1),n.push(l)})}),n}function Dt(e){return e.forEach(n=>{n.type==="required"&&(n.required===null||n.required===void 0)&&(n.required=!0),!n.type&&(n.required===!0||n.required===!1)&&(n.type="required")}),e}const Le=Symbol("ValidateSchemaKey");class Lr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,o,l){this.parent=n,this.descriptor=o,this.proxy=l,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let n=this.proxy.$attrs;n&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const o=Dt(rt(this.attrRules,this.rules)),l=[];for(let i in n){let a=n[i];if(this.hasValidator(i,!0)){if(a===!1)continue;let c={type:i};a!==null&&typeof a=="object"&&Object.assign(c,a),l.push(c);continue}let s=this.getValidator(i);if(s!==null){let c={type:i,validator:s};l.push(c)}}this.attrRules=Dt(l);const r=rt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(r,o)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...o){const l=this.descriptor.validateHandler;if(l&&typeof l[n]=="function")return Reflect.apply(l[n],l,[...o]);const r=zr;return r&&typeof r[n]=="function"?Reflect.apply(r[n],r,[...o]):null}decorate(n,o){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,o,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(n){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",n,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(n,o,l=!1){l?$t(Et).setValidator(n,o):this.validators[n]=o}getValidator(n){let o=this.validators[n]??null;return o||(o=this.parent?.getValidator(n)??null),o}deleteValidator(n,o=!1){o?$t(Et).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,o=!1){if(o)return $t(Et).hasValidator(n);{let l=Reflect.has(this.validators,n);return!l&&this.parent!==null&&(l=this.parent.hasValidator(n,!1)),l}}setRule(n){const o=rt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Dt(n):this.rules=Dt([n]);const l=rt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,o)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let o=rt(this.attrRules,this.rules);const l=this.descriptor.fieldName??"value";if(o.length>0){const r={[`${l}`]:o},i=this.getValue(),a={[`${l}`]:i},s=$t(Et),c=new s(r),m=this.proxy??a;return c.validate(a,{context:m}).then(f=>{if(f.pass)this.success();else{let g="error";Array.isArray(f.errors)&&f.errors.length>0&&(g=f.errors[0].message??g,f.errors=[f.errors[0]],f.errors[0].ref=m),this.error(g)}return f}).catch(f=>{const g=f.message??`${f}`;return this.error(g),f})}}return Promise.resolve({pass:!0})}}function Hn(e,n,o){if(o.valueName=o.valueName??"modelValue",o.valueType=o.valueType??"string",!o.validateHandler&&o.valueName!=="modelValue"){const r=o.valueName;o.validateHandler={getValue(i){return i[r]}}}return new Lr(n,o,e)}const yo=Symbol("EventEmitterKey");class Or{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,o){let l=this.register.get(n);if(l&&Array.isArray(l)){let r=l.findIndex(i=>i===o);r!==-1&&l.splice(r,1)}}on(n,o){let l=this.register.get(n);l||(l=new Array,this.register.set(n,l)),l.push(o)}emit(n,...o){const l=this.register.get(n);l&&l.forEach(r=>{try{Reflect.apply(r,null,[n,...o])}catch(i){console.error(i.message,i)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...o])}}function mn(e,n){let o=null;return function(...l){o&&clearTimeout(o),o=setTimeout(()=>{o=null,Reflect.apply(e,null,[...l])},n)}}function Kn(e,n){let o=0;return function(...l){const r=new Date().getTime();r-o<n||(o=r,Reflect.apply(e,null,[...l]))}}const Be=Symbol("DomainKey"),st=Symbol("DataItemsKey");class jn{_parent=null;get parent(){return this._parent}set parent(n){this._parent=n}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(n){this._broadcast=n}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(n){this._validateSchema=n}_props=t.reactive({});constructor(n=null){this._name=n}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(n,o=[]){for(const l in n){const r=n[l];o.length>0&&o.indexOf(r)!==-1||(this._props[l]=r)}}has(n){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,o){this._props[n]=o}get(n,o){if(Reflect.has(this._props,n)){const l=this._props[n];if(l!=null)return l}return this.parent==null?o:this.parent.get(n,o)}getForParent(n,o){return this.parent==null?o:this.parent.get(n,o)}getForSelf(n){return this._props[n]}getAll(n){const o=[];let l=this;for(;l!=null;){if(Reflect.has(l._props,n)){const r=l._props[n];o.push(r)}l=l._parent}return o}}const Fr=new jn;function gt(){return Fr}function ze(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Be]??t.inject(Be,null):t.inject(Be,null)}const _t=Symbol("OriginalDateKey");function pl(e,n,o=[],l){const r=t.getCurrentInstance(),i=r?.proxy;let a=t.inject(Be,null);a===null&&(a=gt());const s=e||n.prop||n.name,c=new jn(s);c.parent=a;const m=h=>{i[_t]||g(h),c.set("modelValue",h)},d=()=>c.getForSelf("modelValue")??null,f=()=>i[_t]??null,g=h=>{const S={};Ue(!0,S,t.toRaw(h)),i[_t]=S};t.isReactive(n)?t.watchEffect(()=>{c.merge(n,o)}):c.merge(n,o),n.modelValue&&g(n.modelValue),i[Be]=c,t.provide(Be,c);let k=null,b=null;if(r!==null){const h=t.inject(Ne,null);k=Un(i,h,s,l),c.broadcast=k,i[Ne]=k,t.provide(Ne,k),i.broadcast=(u,p,...w)=>Reflect.apply(k.emit,k,[u,p,...w]);const S=t.inject(Le,null);b=Hn(i,S,{componentName:""}),c.validateSchema=b,i[Le]=b,t.provide(Le,b),i[st]=new Map,i.validate=(u=!0)=>{const p=[];let w=null;const y={deep:!1};if(u===!0)w={name:"*"};else if(Array.isArray(u)&&u.length>0){const v=u;w={name:C=>C?v.indexOf(C)!==-1:!1}}else if(u!=null&&typeof u=="object"){const v=u;if(y.ignoreHidden=v.ignoreHidden,Array.isArray(v.include)&&v.include.length>0){const C=v.include;w={name:N=>N?C.indexOf(N)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const C=v.exclude;w={name:N=>N?C.indexOf(N)===-1:!1}}else w={name:"*"}}if(w){const v=k?.emitToChildren(w,"validate",y);v&&Reflect.apply([].push,p,v)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(v=>{let C=[];return v.forEach(N=>{N.pass===!1&&Array.isArray(N.errors)&&(C=[...C,...N.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},i.setNameValidateRules=(u,p=!0)=>{if(p){const w=Reflect.ownKeys(u),y=[...w],v={name:C=>{const N=w.includes(C);if(N){const V=y.findIndex(A=>C===A);V!==-1&&y.splice(V,1)}return N}};k?.emitToChildren(v,"setNameValidateRules",u,!1),y.length>0&&y.forEach(C=>{let N=String(C);const A=Kr(c,N,{componentName:"",fieldName:N,pureDataValidate:!0},k,b);i[st].set(N,A);const E=u[N];E&&A.validateSchema.setRule(E)})}},i.clearValidate=(u=!0)=>{let p=null;if(u===!0)p={name:"*"};else if(Array.isArray(u)&&u.length>0){const w=u;p={name:y=>y?w.indexOf(y)!==-1:!1}}else if(u!=null&&typeof u=="object"){const w=u;if(Array.isArray(w.include)&&w.include.length>0){const y=w.include;p={name:v=>v?y.indexOf(v)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const y=w.exclude;p={name:v=>v?y.indexOf(v)===-1:!1}}else p={name:"*"}}p&&k?.emitToChildren(p,"clearValidate",!1)},i.resetFields=u=>{const p=d();if(!p)return;const w={};if(Ue(!0,w,f()??{}),Array.isArray(u))u.forEach(y=>{p[y]=w[y]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(v=>{p[v]=w[v]});else if(u&&Array.isArray(u.exclude)){let y=u.exclude??[];Reflect.ownKeys(w).forEach(v=>{y.includes(v)||(p[v]=w[v])})}else Object.assign(p,w);i.clearValidate(u)},i.setModelValue=(u,p)=>{!p||p===s?m(u):k?.emitToChildren({name:p},"setModelValue",u)},i.getModelValue=()=>d()}return t.onUnmounted(()=>{c.destroy(),i[Be]=void 0,i[st]&&(i[st].clear(),i[st]=void 0),k!==null&&(k.destroy(),i[Ne]=void 0),b!==null&&(b.destroy(),i[Le]=void 0)}),c}function Ur(e,n,o=[]){const r=t.getCurrentInstance()?.proxy;let i=t.inject(Be,null);i===null&&(i=gt());const a=e||n.prop||n.name,s=new jn(a);return s.parent=i,t.isReactive(n)?t.watchEffect(()=>{s.merge(n,o)}):s.merge(n,o),r[Be]=s,t.provide(Be,s),t.onUnmounted(()=>{s.destroy(),r[Be]=void 0}),s}function Hr(e,n,o){const r=ze(e)?.get("rules");if(!r)return;let i=r[o];i&&(Array.isArray(i)||(i=[i]),i.forEach(a=>{n.setRule(a)}))}function Ce(e,n,o){const r=t.getCurrentInstance()?.proxy,i=n??"",a=t.inject(Ne,null),s=Un(r,a,i,o);r[Ne]=s,t.provide(Ne,s),r.broadcast=(b,h,...S)=>Reflect.apply(s.emit,s,[b,h,...S]);const c=t.inject(Le,null);e.fieldName=e.fieldName??i;const m=Hn(r,c,e);r[Le]=m,t.provide(Le,m),Hr(r,m,i),r.validate=(b=null)=>{const h=[];let S=!1,u=!1;if(Array.isArray(b)&&b.indexOf(i)!==-1)u=!0,S=!0;else if(b&&typeof b=="object"){const p=b;p.ignoreHidden===!0&&ol(r.$el)?u=!1:(Array.isArray(p.include)&&p.include.indexOf(i)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(i),u=!0),S=p.deep??!1}else typeof b=="boolean"&&(S=b),u=!0;if(u){const p=m?.validate();h.push(p)}if(S){let p=null;const w={deep:!1};if(b===!0)p={name:"*"};else if(Array.isArray(b)&&b.length>0){const y=b;p={name:v=>v?y.indexOf(v)!==-1:!1}}else if(b!=null&&typeof b=="object"){const y=b;if(w.ignoreHidden=y.ignoreHidden,Array.isArray(y.include)&&y.include.length>0){const v=y.include;p={name:C=>C?v.indexOf(C)!==-1:!1}}else if(Array.isArray(y.exclude)&&y.exclude.length>0){const v=y.exclude;p={name:C=>C?v.indexOf(C)===-1:!1}}else p={name:"*"}}if(p){const y=s.emitToChildren(p,"validate",w);Reflect.apply([].push,h,y)}}return h.length==1?h[0]:h.length>1?Promise.all(h).then(p=>{let w=[];return p.forEach(y=>{y.pass===!1&&Array.isArray(y.errors)&&(w=[...w,...y.errors])}),w.length>0?{pass:!1,errors:w}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=b=>m?.setRule(b),r.setNameValidateRules=(b,h=!1)=>{const S=b[i];if(S&&m?.setRule(S),h){const u={name:p=>Reflect.ownKeys(b).includes(p)};s.emitToChildren(u,"setNameValidateRules",b,!1)}},r.clearValidate=(b=null)=>{(!Array.isArray(b)||b.indexOf(n??"")!==-1)&&m?.clear();let h=null;if(b===!0)h={name:"*"};else if(Array.isArray(b)&&b.length>0){const S=b;h={name:u=>u?S.indexOf(u)!==-1:!1}}else if(b!=null&&typeof b=="object"){const S=b;if(Array.isArray(S.include)&&S.include.length>0){const u=S.include;h={name:p=>p?u.indexOf(p)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const u=S.exclude;h={name:p=>p?u.indexOf(p)===-1:!1}}else h={name:"*"}}h&&s.emitToChildren(h,"clearValidate",!1)};const d=new Or(r);r[yo]=d;const f=Kn((b="validate")=>{b==="reset"?m.clear():m.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Pr()).forEach(b=>{d.on(b,h=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Rr()).forEach(b=>{d.on(b,h=>{f("reset")})}),t.onUnmounted(()=>{s.destroy(),r[Ne]=void 0,m.destroy(),r[Le]=void 0,d.destroy(),r[yo]=void 0}),{broadcast:s,validateSchema:m,emitEvent:(b,...h)=>{Reflect.apply(d.emit,d,[b,...h])},onEvent:(b,h)=>{Reflect.apply(d.on,d,[h])},offEvent:(b,h)=>{Reflect.apply(d.off,d,[h])}}}function Kr(e,n,o,l,r){const i={},a=n??"";o.fieldName=a,o.validateHandler={getValue(m){const d=e.getForSelf("modelValue");return d?d[a]:null}};const s=Hn({},r,o);i.validate=(m=null)=>{const d=[];let f=!1,g=!1;if(Array.isArray(m)&&m.indexOf(a)!==-1)g=!0,f=!0;else if(m&&typeof m=="object"){const k=m;Array.isArray(k.include)&&k.include.indexOf(a)!==-1||Array.isArray(k.exclude)&&k.exclude.indexOf(a),g=!0,f=k.deep??!1}else typeof m=="boolean"&&(f=m),g=!0;if(g){const k=s?.validate();d.push(k)}if(f){let k=null;const b={deep:!1};if(m===!0)k={name:"*"};else if(Array.isArray(m)&&m.length>0){const h=m;k={name:S=>S?h.indexOf(S)!==-1:!1}}else if(m!=null&&typeof m=="object"){const h=m;if(Array.isArray(h.include)&&h.include.length>0){const S=h.include;k={name:u=>u?S.indexOf(u)!==-1:!1}}else if(Array.isArray(h.exclude)&&h.exclude.length>0){const S=h.exclude;k={name:u=>u?S.indexOf(u)===-1:!1}}else k={name:"*"}}if(k){const h=c.emitToChildren(k,"validate",b);Reflect.apply([].push,d,h)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(k=>{let b=[];return k.forEach(h=>{h.pass===!1&&Array.isArray(h.errors)&&(b=[...b,...h.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},i.setValidateRule=m=>s?.setRule(m),i.setNameValidateRules=m=>{const d=m[a];d&&s?.setRule(d)};const c=Un(null,l,a,i);return{broadcast:c,validateSchema:s}}const Z=e=>e?`${le(e)}px`:"";function le(e,n=-1){if(typeof e=="number")return e>0&&e<1&&n>0?e*n:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let o=e.indexOf("px");if(o!==-1)return Number(e.substring(0,o));if(o=e.indexOf("rem"),o!==-1){let r=Number(e.substring(0,o)),i=1;if(Ye){const{fontSize:a}=window.getComputedStyle(document.documentElement,null),s=a.indexOf("px");s>0&&(i=Number(a.substring(0,s)))}return r*=i,r}if(o=e.indexOf("%"),o!==-1)return Number(e.substring(0,o))*n;const l=Number(e);return isNaN(l)?0:l}const He="PageStateKey";function Me(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=le(e.top)),e.left!==null&&e.left!==void 0&&(n.left=le(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=le(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=le(e.right))),n}function vo(e,n,o={},l=!0,r=-1,i=-1,a=0,s=0){if(e.headerHeight=le(o.headerHeight??n.headerHeight),e.headerPadding=Me(o.headerPadding??n.headerPadding),e.footerHeight=le(o.footerHeight??n.footerHeight),e.footerPadding=Me(o.footerPadding??n.footerPadding),e.contentPadding=Me(o.contentPadding??n.contentPadding),l){const c=o.height??n.height;c?e.height=le(c,i):e.height=le(i)-le(a,i)-le(s,i),e.width=le(o.width??n.width??0,r)}}function jr(e,n={}){const o={top:null,left:null,bottom:null,right:null},l={width:0,height:0,headerHeight:0,headerPadding:{...o},footerHeight:0,footerPadding:{...o},contentPadding:{...o},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},r=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});r&&(l.safeAreaTop=le(r.top),l.safeAreaBottom=le(r.bottom),l.safeAreaLeft=le(r.left),l.safeAreaRight=le(r.right));const i=e.get("pageLayout");if(!i)return null;const a=e.get("rootWidth")??-1,s=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,m=e.get("footerBarHeight")??0;vo(l,i,n,!0,a,s,c,m);const d=t.reactive(l),f=e.getForParent(He);f&&(l.height=pn(e,f),l.width=hn(e,f),t.watch([()=>f.height,()=>f.width,()=>f.contentPadding,()=>f.headerMounted,()=>f.footerMounted],()=>{d.height=pn(e,f),d.width=hn(e,f)}));const g=!f;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([k,b,h=-1,S=-1,u=0,p=0])=>{vo(d,b,n,g,h,S,u,p)}),e.set(He,d),d}function Wn(e){return e.get(He)}function Yn(e,n){return n=n??e.get(He),n&&n.headerMounted?n.headerHeight+n.safeAreaTop:0}function Xn(e,n){return n=n??e.get(He),n&&n.footerMounted?n.footerHeight+n.safeAreaBottom:0}function pn(e,n){if(n=n??e.get(He),n){const o=Yn(e,n),l=Xn(e,n);return n.height-o-l-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function hn(e,n){return n=n??e.get(He),n?n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}var Ke=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Ke||{});function en(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Se(e,n,o=1,l){const r=ze();return r==null?e:o===0?t.computed(()=>{const i=r.getAll(n);for(let s=i.length-1;s>=0;s--){const c=i[s];if(en(c,l))return c}const a=e.value;return en(a,l)?a:null}):t.computed(()=>{const i=e.value;return en(i,l)?i:r?.get(n)})}function Pe(e){return Se(e,"readonly",0,function(o){return ve(o)})}function Ee(e){return Se(e,"disabled",0,function(o){return ve(o)})}function Ie(e,n="modelValue",o){const l=t.toRef(e,n);let r=l.value;typeof o=="function"&&(r=o(l.value));const i=t.ref(r);return t.watch(l,a=>{if(typeof o=="function"){const s=o(a);s!==i.value&&(i.value=s)}else a!==i.value&&(i.value=a)}),i}const hl=new Map,Ft=new Map;let gn=null;function Wr(e){gn=e}function gl(e,n,o){if(o){let l=Ft.get(o);l||(l=new Map,Ft.set(o,l)),l.set(e,n)}else hl.set(e,n)}function wt(e,n,o){!o&&gn&&(o=gn(e)??void 0);let l=null;if(o){let r=Ft.get(o);r&&(l=r.get(n))}return l||(l=hl.get(n)),l}function Yr(e,n){for(let o in e){const l=e[o];gl(o,l,n)}}function Xr(e){Ft.delete(e)}function Qr(){return{top:0,left:0,bottom:0,right:0}}function Gr(e=0,n=0){if(Ye){const o=document.documentElement.clientWidth||document.body.clientWidth,l=document.documentElement.clientHeight||document.body.clientHeight,r={width:o,height:l-le(e,l)-le(n,l),headerHeight:44,footerHeight:44};return{rootWidth:o,rootHeight:l,pageLayout:r}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Zr{packages;_version;get version(){return this._version}constructor(n,o){this.packages=n,this._version=o}install(n,o){o?.install!==!1&&this.packages.forEach(i=>{i.install?n.use(i):i.name&&n.component(i.name,i)});const l=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],r=gt();if(this.initPageLayout(o,r),o.autoAdjustPageLayout!==!1&&window.ResizeObserver){const i=Kn(()=>{const s={...o},c=document.documentElement.clientWidth||document.body.clientWidth,m=document.documentElement.clientHeight||document.body.clientHeight;s.width=c,s.height=m,this.initPageLayout(s,r)},150);new window.ResizeObserver(i).observe(window.document.body)}for(const i in o)l.indexOf(i)===-1&&r.set(i,o[i])}initPageLayout(n,o){const l=n.headerBarHeight??0,r=n.footerBarHeight??0,i=Ue({},Qr(),n.safeAreaInset),a=Gr(l,r),s=Ue({},a.pageLayout,n.pageLayout);o=o??gt(),o.set("safeAreaInset",i),o.set("headerBarHeight",l),o.set("footerBarHeight",r),o.set("pageLayout",s),o.set("rootWidth",a.rootWidth),o.set("rootHeight",a.rootHeight)}setScopeGetter(n){Wr(n)}setAPI(n,o,l){gl(n,o,l)}getAPI(n,o,l){return wt(n,o,l)}batchSetAPI(n,o){Yr(n,o)}clearScopeAPI(n){Xr(n)}getRootDomain(){return gt()}}function O(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(o){return o.baseName=e,o.name=n,o.install=l=>{l.component(o.name,o)},t.defineComponent(o)},createDemo(o){return o.baseName=e,o.name="demo-"+e,t.defineComponent(o)}}}const 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}},me={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,String],required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:[Object,String],required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:[Object,String],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:{}}},yl={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},vl={name:{type:String,required:!1},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"flex"},title:{type:String,default:""},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}},kl=[];for(const e in vl)kl.push(e);function Nt(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}const Jr=Symbol.for("InnerPageScopeKey"),_r=(e,n)=>({inheritAttrs:!0,props:{...ue,...yl,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1}},setup(o,l){const r=pl(o.name,o);if(r){const m=jr(r,o);Nt({getPageContentHeight:()=>pn(r,m),getPageContentWidth:()=>hn(r,m),getPageHeaderHeight:()=>Yn(r,m),getPageFooterHeight:()=>Xn(r,m)});const d=t.inject(Jr,!1);m&&d&&(m.contentHeight="100%")}const i=t.computed(()=>({[e]:!0})),a=t.computed(()=>({})),s=t.getCurrentInstance(),c=m=>{const d=s?.proxy;d&&typeof d.setNameValidateRules=="function"&&d.setNameValidateRules(m,!0)};return t.watch(()=>o.rules,(m,d)=>{if(!m&&!d)return;const f=t.toRaw(d),g=t.toRaw(m),k=g?Reflect.ownKeys(g):[];(f?Reflect.ownKeys(f):[]).forEach(h=>{k.includes(h)||(g[h]=[])}),c(g)},{deep:!0}),t.onMounted(()=>{if(o.rules){const m=t.toRaw(o.rules);c(m)}}),{classes:i,styles:a}}}),{componentName:es,create:ts,scope:y1}=O("page"),ns=ts(_r(es));function os(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const K=(e,n)=>{const o=e.__vccOpts||e;for(const[l,r]of n)o[l]=r;return o},Sl=K(ns,[["render",os]]),ls=(e,n)=>({props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[String,Object],required:!1,default:"left"},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[String,Object],required:!1,default:""},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[String,Object],required:!1,default:""},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(o,l){const r=ze(),i=r?Wn(r):null;i&&(i.headerMounted=!0);const a=t.computed(()=>({[e]:!0})),s=o.height!==null&&o.height!==void 0?le(o.height):null,c=t.computed(()=>{const N={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const V=Me(o.padding??i.footerPadding);return Object.assign(N,V),s&&(i.headerHeight=s),N.height=i.headerHeight,N.safeAreaTop=i.safeAreaTop,N.safeAreaTop&&(N.top=N.safeAreaTop+(V.top??0),N.height=N.height+i.safeAreaTop),console.debug("[header] height",N.height),console.debug("[header] safeBottom",N.safeAreaTop),N}if(s&&(N.height=s),o.padding){const V=Me(o.padding);Object.assign(N,V)}return N});t.onUnmounted(()=>{i&&(i.headerMounted=!1)});const m=t.computed(()=>{const N={};return c.value.height!==null&&c.value.height!==void 0&&(N.height=`${c.value.height}px`),c.value.top!==null&&c.value.top!==void 0&&(N.paddingTop=`${c.value.top}px`),c.value.left!==null&&c.value.left!==void 0&&(N.paddingLeft=`${c.value.left}px`),c.value.right!==null&&c.value.right!==void 0&&(N.paddingRight=`${c.value.right}px`),c.value.bottom!==null&&c.value.bottom!==void 0&&(N.paddingBottom=`${c.value.bottom}px`),N}),d=t.computed(()=>{const N={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(N.top=`${c.value.safeAreaTop}px`),N}),f=t.computed(()=>{const N={};return c.value.safeAreaTop!==null&&c.value.safeAreaTop!==void 0&&(N.top=`${c.value.safeAreaTop}px`),N}),g=t.computed(()=>o.leftShow?o.leftIcon||o.leftText||l.slots.left:!1),k=t.computed(()=>!(c.value.height!==null&&c.value.height!==void 0&&c.value.height<=0)),b=t.computed(()=>o.titleShow?o.title||o.titleIcon||l.slots.default:!1),h=t.computed(()=>o.rightShow?o.rightIcon||o.rightText||l.slots.right:!1),S=t.computed(()=>{let N={};return typeof o.leftIcon=="object"?Object.assign(N,o.leftIcon):N.name=o.leftIcon,N}),u=t.computed(()=>{let N={};return typeof o.titleIcon=="object"?Object.assign(N,o.titleIcon):N.name=o.titleIcon,N}),p=t.computed(()=>{let N={};return typeof o.rightIcon=="object"?Object.assign(N,o.rightIcon):N.name=o.rightIcon,N});function w(){l.emit("back")}function y(){l.emit("click-title")}function v(){l.emit("click-right")}function C(){l.emit("click-right-text")}return{classes:a,styles:m,mHeaderShow:k,leftStyles:d,rightStyles:f,mLeftShow:g,mTitleShow:b,mRightShow:h,mLeftIcon:S,mTitleIcon:u,mRightIcon:p,handleLeft:w,handleCenter:y,handleRight:v,handleRightText:C}}}),{componentName:as,create:rs,scope:v1}=O("header-bar"),ss=rs(ls(as)),is={key:1,class:"fox-header-bar__title"};function cs(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return e.mHeaderShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:t.normalizeStyle(e.leftStyles)},[t.renderSlot(e.$slots,"left",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(a,{key:0,color:e.mLeftIcon.color,name:e.mLeftIcon.name,onClick:e.handleLeft},null,8,["color","name","onClick"])):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...s)=>e.handleLeft&&e.handleLeft(...s))},t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0),e.mTitleShow?(t.openBlock(),t.createElementBlock("view",is,[t.renderSlot(e.$slots,"default",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"text-title",onClick:n[1]||(n[1]=(...s)=>e.handleTitle&&e.handleTitle(...s))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon-title",color:e.mTitleIcon.color,name:e.mTitleIcon.name,onClick:e.handleCenter},null,8,["color","name","onClick"])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),e.mRightShow?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:t.normalizeStyle(e.rightStyles)},[t.renderSlot(e.$slots,"right",{},()=>[e.rightText?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[2]||(n[2]=(...s)=>e.handleRightText&&e.handleRightText(...s))},t.toDisplayString(e.rightText),1)):t.createCommentVNode("",!0),e.rightIcon?(t.openBlock(),t.createBlock(a,{key:1,class:"right-icon",color:e.mRightIcon.color,name:e.mRightIcon.name,onClick:e.handleRight},null,8,["color","name","onClick"])):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0)])],6)):t.createCommentVNode("",!0)}const bl=K(ss,[["render",cs]]);function us(e,n){return{props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,l){const r=ze(),i=r?Wn(r):null;i&&(i.footerMounted=!0);const a=t.computed(()=>{const d=e;let f=e;return o.align==="left"?f=`${f}__left`:o.align==="right"?f=`${f}__right`:f=`${f}__center`,{[d]:!0,[f]:!0}}),s=o.height!==null&&o.height!==void 0?le(o.height):null,c=t.computed(()=>{const d={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&i){const f=Me(o.padding??i.footerPadding);return Object.assign(d,f),s&&(i.footerHeight=s),d.height=i.footerHeight,d.safeAreaBottom=i.safeAreaBottom,d.safeAreaBottom&&(d.height=d.height+i.safeAreaBottom,d.bottom=d.safeAreaBottom+(f.bottom??0)),d}if(s&&(d.height=s),o.padding){const f=Me(o.padding);Object.assign(d,f)}return d});t.onUnmounted(()=>{i&&(i.footerMounted=!1)});const m=t.computed(()=>{const d={};return c.value.height!==null&&c.value.height!==void 0&&(d.height=Z(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(d.paddingTop=Z(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(d.paddingLeft=Z(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(d.paddingRight=Z(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(d.paddingBottom=Z(c.value.bottom)),d});return{classes:a,styles:m}}}}const{componentName:ds,create:fs,scope:k1}=O("footer-bar"),ms=fs(us(ds));function ps(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Cl=K(ms,[["render",ps]]);function hs(e,n){return{props:{padding:{type:[Object],required:!1}},setup(o){const l=ze(),r=t.computed(()=>({[e]:!0})),i=t.computed(()=>{const a={};if(l){const s=Wn(l);if(s){if(o.padding){const f=Me(o.padding);Object.assign(s.contentPadding,f)}const c=Yn(l,s),m=Xn(l,s);let d="";if(s.contentHeight?d=`${s.contentHeight}`:d=`${s.height}px`,console.debug("[content]page height:",d),console.debug("[content]header height:",c),console.debug("[content]footer height:",m),console.debug("[content]padding:",s.contentPadding),a.height=d,s.contentPadding.top||c>0){const f=(s&&s.contentPadding&&s.contentPadding.top)??0;a.paddingTop=`${c+f}px`}if(s.contentPadding.bottom||m>0){const f=(s&&s.contentPadding&&s.contentPadding.bottom)??0;a.paddingBottom=`${m+f}px`}return s.contentPadding.left&&(a.paddingLeft=`${s.contentPadding.left}px`),s.contentPadding.right&&(a.paddingRight=`${s.contentPadding.right}px`),a}}if(o.padding){const s=Me(o.padding);s.left&&(a.paddingLeft=`${s.left}px`),s.top&&(a.paddingTop=`${s.top}px`),s.right&&(a.paddingRight=`${s.right}px`),s.bottom&&(a.paddingBottom=`${s.bottom}px`)}return a});return{classes:r,styles:i}}}}const{componentName:gs,create:ys,scope:S1}=O("content"),vs=ys(hs(gs));function ks(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const wl=K(vs,[["render",ks]]),_e="GroupStateKey",Nl=Symbol.for("GroupScopeKey");function lt(){return t.inject(Nl,!1)}function Xt(e=!0){t.provide(Nl,e)}function Ss(e,n={}){const l={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(l,n);const r=t.shallowRef(l),i=t.markRaw({layout:r,passport:0,order:{index:0}});return e.set(_e,i),i}function ko(e,n,o=-1,l=-1,r=!1,i){const a=e.get(_e);if(!a)return;const s=e.get("groupLayout")??{};o===-1&&(o=s.column??1),l===-1&&(l=s.gutter??0),i||(i=s.minItemWidth??-1),i=le(i);const c=()=>{const m=n===""||n===-1,d=le(n);let f=oe(o);const g=le(l);if(!m){let h=(d-(f-1)*g)/f;for(;i!==-1&&f>1&&h<i;)f--,h=(d-(f-1)*g)/f}let k=!1;const b=a.layout;b.value.width=n,b.value.column!==f&&(b.value.column=f,k=!0),b.value.gutter!==g&&(b.value.gutter=g,k=!0),k&&t.triggerRef(b)};if(r)c();else{const m=++a.passport;setTimeout(()=>{m===a.passport&&c()},50)}}function je(e,n=!1){let o;return n?o=e.getForParent(_e):o=e.get(_e),o.layout}function Qn(e,n=!1){let o;return n?o=e.getForParent(_e):o=e.get(_e),o.order}function fe(e,n=1){return n==="stretch"?-1:(n=oe(n),n===-1?100:100*n/e)}function bs(e){return e===window}const be=e=>{const n=t.unref(e);if(bs(n)){const o=n.innerWidth,l=n.innerHeight;return{top:0,left:0,right:o,bottom:l,width:o,height:l}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};class Gn{seed=new Date().getTime();constructor(n){this.seed=n??new Date().getTime()}get(){let n=this.seed++;return this.seed<0&&(this.seed=0),n}}new Gn;const Re=(e,n)=>e?n?`fox-group__${e}-${n}`:"":`fox-group__${n}`,Cs=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const n=e.type,o=(n.props&&n.props.span&&n.props.span.default)??1;return typeof o=="function"?o():o}return e.props.span},ws=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const o=e.type,l=(o.props&&o.props.offset&&o.props.offset.default)??0;return typeof l=="function"?l():l}const n=oe(e.props.offset);return n<0?0:n},Ns=e=>{if(!e.props||e.props.foxItemType===null||e.props.foxItemType===void 0){const n=e.type,o=(n.props&&n.props.foxItemType&&n.props.foxItemType.default)??"Item";return typeof o=="function"?o():o}return e.props.foxItemType??"Item"},Bs=e=>{if(!e.props||e.props.foxSubItemCount===null||e.props.foxSubItemCount===void 0){const o=e.type,l=(o.props&&o.props.foxSubItemCount&&o.props.foxSubItemCount.default)??"Item";return typeof l=="function"?l():l}const n=oe(e.props.foxSubItemCount);return n<0?1:n},{componentName:Vs,create:As}=O("group"),Bl=As({props:{...ue,...yl,...vl},setup(e,n){const o=pl(e.name,e,kl),l=Ss(o,{type:e.type}),r=lt();Xt(!0);const i=t.computed(()=>r&&o?je(o,!0).value:null),a=t.getCurrentInstance(),s=y=>{const v=a?.proxy;v&&typeof v.setNameValidateRules=="function"&&v.setNameValidateRules(y,!0)};t.watch(()=>e.rules,(y,v)=>{if(!y&&!v)return;const C=t.toRaw(v),N=t.toRaw(y),V=N?Reflect.ownKeys(N):[];(C?Reflect.ownKeys(C):[]).forEach(E=>{V.includes(E)||(N[E]=[])}),s(N)},{deep:!0}),t.onMounted(()=>{if(e.rules){const y=t.toRaw(e.rules);s(y)}});const c=Vs,m=t.computed(()=>{const y={};if(i.value){const v=je(o,!0);if(v.value.type==="flex"){if(e.width){const V=Z(e.width);y.width=V}else{const V=fe(v.value.column,e.span);V>0&&(y.width=`${V}%`)}if(e.height){const V=Z(e.height);y.height=V}const C=fe(v.value.column,e.offset);C>0&&(y["margin-left"]=`${C}%`);const N=v.value.gutter/2;N>0&&(y["padding-left"]=`${N}px`,y["padding-right"]=`${N}px`)}else if(v.value.type==="flow"){if(e.width){const V=Z(e.width);y.width=V}else{const V=fe(v.value.column,e.span);V>0&&(y.width=`${V}%`)}if(e.height){const V=Z(e.height);y.height=V}const C=fe(v.value.column,e.offset);C>0&&(y["margin-left"]=`${C}%`);const N=v.value.gutter/2;if(N>0){const V=o?Qn(o,!0):null;if(V){let A=oe(e.offset)+oe(e.span);(A===-1||A>v.value.column)&&(A=v.value.column);const E=Math.ceil((V.index+1)/v.value.column),q=Math.ceil((V.index+A)/v.value.column);if(E===q){const U=(V.index+1)%v.value.column,L=(V.index+A)%v.value.column,z=U===1?0:N,$=L===0?0:N;y["padding-left"]=`${z}px`,y["padding-right"]=`${$}px`}else{const U=A%v.value.column,L=0,z=U===0?0:N;y["padding-left"]=`${L}px`,y["padding-right"]=`${z}px`}V.index+=A}else y["padding-left"]=`${N}px`,y["padding-right"]=`${N}px`}}}else{if(e.width){const v=Z(e.width);y.width=v}if(e.height){const v=Z(e.height);y.height=v}}return y}),d=t.computed(()=>e.type==="flex"?{[`${Re("",e.type)}`]:!0,[`${Re("justify",e.justify)}`]:!0,[`${Re("align",e.align)}`]:!0,[`${Re("flex",e.flexWrap)}`]:!0,[`${c}__gutter`]:!0}:e.type==="flow"?{[`${Re("",e.type)}`]:!0,[`${Re("justify",e.justify)}`]:!0,[`${Re("align",e.align)}`]:!0}:{[`${Re("",e.type)}`]:!0,[`${c}__gutter`]:!0}),f=t.toRef(e,"title"),g=t.toRef(e,"gutter"),k=t.toRef(e,"column"),b=t.computed(()=>r?!0:ve(e.isWrap)),h=t.ref([]),S=y=>{h.value.push(y)},u=t.ref(-1);if(ko(o,u.value,k.value,g.value,!0,e.minItemWidth),e.autoLayout){t.watch([u,k,g],([v,C,N])=>{l.order.index=0,ko(o,v,C,N,!1,e.minItemWidth)});let y=null;t.onMounted(()=>{if(Ye&&h.value&&h.value.length>0){const v=h.value[0];u.value=be(v).width,window.ResizeObserver&&(y=new window.ResizeObserver(()=>{const C=be(v).width;C>0&&C!==u.value&&(u.value=C)}),y.observe(v))}}),t.onUnmounted(()=>{y?.disconnect()})}const p=(y,v,C,N)=>{const V={...d.value};return v===0&&(V[`${c}__first`]=!0),C>=N-1&&(V[`${c}__last`]=!0),t.h("view",{ref:S,key:`${v}`,class:V},y)},w=y=>{if(typeof y.type=="symbol"){if(Array.isArray(y.children)){const v=[...y.children];for(let C=v.length-1;C>=0;C--){const N=v[C],V=w(N);V===null?v.splice(C,1):V.length>0&&Reflect.apply([].splice,v,[C,1,...V])}return v}return null}return[]};return()=>{l.order.index=0;const y=[];let v=0;if(n.slots.title){const A={key:`${v++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},E=t.h("view",A,[n.slots.title()]);y.push(E)}else if(f.value){const A={key:`${v++}`,class:{[`${c}__title`]:!0,[`${c}__first`]:!0}},E=[];if(e.showMark){const L={class:{[`${c}__title-mark`]:!0}};e.markColor&&(L.style={background:e.markColor});const z=t.h("view",L);E.push(z)}const q=t.h("view",{class:{[`${c}__title-text`]:!0}},[f.value]);E.push(q),n.slots.toolbar&&E.push(n.slots.toolbar());const U=t.h("view",A,E);y.push(U)}const C=n.slots.default?n.slots.default():[];let N=[],V=0;if(e.type==="flex"){for(let A=0;A<C.length;A++){const E=w(C[A]);if(E===null)continue;E.length>0&&Reflect.apply([].splice,C,[A,1,...E]);const q=C[A];if(Ns(q)==="fragment"){let I=Bs(q);I>l.layout.value.column?I=l.layout.value.column:I<=0&&(I=1);const P=V+I;if(P>l.layout.value.column){const B=p([...N],v++,A-1,C.length);y.push(B),V=I,N=[q]}else N.push(q),V=P;continue}const L=Cs(q),z=ws(q);if(L==="stretch"){if(V<l.layout.value.column){N.push(q);const I=p([...N],v++,A,C.length);y.push(I)}else{const I=p([...N],v++,A-1,C.length);y.push(I);const P=p([q],v++,A,C.length);y.push(P)}V=0,N=[];continue}let $=oe(L);if($===-1){if(N.length>0){const P=p([...N],v++,A-1,C.length);y.push(P)}const I=p([q],v++,A,C.length);y.push(I),V=0,N=[];continue}$>l.layout.value.column?$=l.layout.value.column:$<=0&&($=1);const D=V+$+z;if(D>l.layout.value.column){const I=p([...N],v++,A-1,C.length);y.push(I),V=$+z,N=[q]}else N.push(q),V=D}if(N.length>0){const A=p([...N],v++,C.length,C.length);y.push(A)}}else if(e.type==="flow"){const A=p(C,v++,0,C.length);y.push(A)}else for(let A=0;A<C.length;A++){const E=C[A],q=p([E],v++,A,C.length);y.push(q)}return b.value?t.h("view",{class:{[`${c}`]:!0},style:m.value},[y]):y}}});function Es(e){return e===window}const Ts=/matrix\((.+)\)/,$s=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Es(n))return{x:0,y:0};let o=0,l=0,r=n;for(;r!==null;)o+=r.offsetLeft,l+=r.offsetTop,r=r.offsetParent;let i=0,a=0,s=0,c=0;for(r=n;r!==document;){a+=r.scrollTop,i+=r.scrollLeft;const{transform:m}=window.getComputedStyle(r);if(m){const d=Ts.exec(m);if(d){let g=d[1].split(/\s*,\s*/);g.length==6&&(s+=Number(g[4]),c+=Number(g[5]))}}r=r.parentNode}return o-=i,l-=a,o+=s,l+=c,{x:o,y:l}};class Ds{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const o=this.watchedListeners.indexOf(n);o!==-1&&this.watchedListeners.splice(o,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class Is{monitorRegister=new WeakMap;watch(n,o){let l=n.parentNode;const r=document.body.parentNode;for(;l&&l!==r;){let i=this.monitorRegister.get(l);i||(i=new Ds,l.addEventListener("scroll",i.listen),l===document.body&&l.addEventListener("resize",i.listen),this.monitorRegister.set(l,i)),i.add(o),l=l.parentNode}}unwatch(n,o){let l=n.parentNode;const r=document.body.parentNode;for(;l&&l!==r;){let i=this.monitorRegister.get(l);i&&(i.remove(o),i.size()===0&&(this.monitorRegister.delete(l),l.removeEventListener("scroll",i.listen),l===document.body&&l.removeEventListener("resize",i.listen))),l=l.parentNode}}}const So=new Is,Vl={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:qs,create:zs}=O("price"),Ms=zs({props:{...Vl},setup(e){const n=t.computed(()=>({[qs]:!0})),o=t.computed(()=>e.needSymbol?e.symbol:""),l=t.computed(()=>ce(e.price)==0?"":Fn(e.price,e.decimalLength,!0,oe(e.digits),e.separator)),r=t.computed(()=>{let a=l.value;if(a.length==0)return"";let s=a.indexOf(".");return a.substring(0,s)}),i=t.computed(()=>{let a=l.value;if(a.length==0)return"";let s=a.indexOf(".");return a.substring(s+1)});return{classes:n,showSymbol:o,intText:r,decimalText:i}}}),Ps=["innerHTML"],xs=["innerHTML"];function Rs(e,n,o,l,r,i){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,Ps)):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,xs)):t.createCommentVNode("",!0)],2)}const Zn=K(Ms,[["render",Rs]]),{componentName:It,create:Ls}=O("hint-text"),Os=Ls({components:{Price:Zn},props:{...Vl,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},popupHeight:{type:Boolean,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,n){const o=t.ref({x:0,y:0}),l=t.ref(0),r=t.ref(0),i=t.ref(e.placement),a=10,s=4,c=t.ref(0),m=t.computed(()=>({[It]:!0})),d=t.ref(null),f=(C,N,V=10)=>{if(!Ye||!e.autoFit||N===!1||!C)return;const A=$s(e.reference);o.value=A,A.y<e.reference.offsetHeight&&(i.value="bottom");const E=be(e.reference);l.value=E.width,r.value=E.height,setTimeout(()=>{if(!d.value)return;const q=document.documentElement.clientWidth||document.body.clientWidth,U=d.value.offsetWidth;let L=q-(U+le(o.value.x));L<0?c.value=L:c.value=0},V)},g=mn(()=>{f(e.message,e.visible)},10),k=t.computed(()=>e.visible&&b.value),b=t.ref(!0),h=mn(C=>{const N=C[0];N&&(b.value=N.isIntersecting)},10),S=new IntersectionObserver(h);t.watch([()=>e.message,()=>e.visible],([C,N])=>{f(C,N)}),t.onMounted(()=>{f(e.message,e.visible),So.watch(e.reference,g),S.observe(e.reference)}),t.onBeforeMount(()=>{So.unwatch(e.reference,g),S.unobserve(e.reference),S.disconnect()});const u=t.computed(()=>{const C={left:`${le(o.value.x)+c.value}px`,height:Z(e.popupHeight)};return e.placement==="bottom"?C.top=Z(o.value.y+r.value+a):C.top=Z(o.value.y-e.popupHeight-a-s),e.autoFit?C["min-width"]=Z(l.value):C.width=Z(l.value),C}),p=t.computed(()=>({[`${It}__content`]:!0})),w=t.computed(()=>({})),y=t.computed(()=>({[`${It}__arrow`]:!0,[`${It}__arrow-${e.placement}`]:!0})),v=t.computed(()=>e.placement==="bottom"?{top:`${-a}px`,left:`${le(-c.value+20)}px`}:{top:"100%",left:`${le(-c.value+20)}px`});return{show:k,tipRef:d,classes:m,styles:u,textClasses:p,textStyles:w,arrowClasses:y,arrowStyles:v}}}),Fs={key:1,class:"text"};function Us(e,n,o,l,r,i){const a=t.resolveComponent("Price");return t.openBlock(),t.createBlock(t.Transition,{name:"hint-text-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(a,{key:0,price:e.message,position:"before"},null,8,["price"])):(t.openBlock(),t.createElementBlock("span",Fs,t.toDisplayString(e.message),1))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])]),_:1})}const Qt=K(Os,[["render",Us]]),yn={},Hs=new Gn,Je=new Map,vn=e=>{if(e){const n=document.getElementById(e);Je.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of Je.keys()){const o=document.getElementById(n);o&&o.parentNode?.removeChild(o)}Je.clear()}},Ks=e=>{const n=document.getElementById(e.id);if(n){const o=Je.get(e.id);o?e={...yn,...o,...e}:e={...yn,...e};const l=t.createVNode(Qt,e);return t.render(l,n),e.id}},js=e=>{e.unmount=vn;let n;if(e.id){if(n=e.id,Je.has(n))return Ks(e)}else n=`hinttext_${Hs.get()}`;e={...yn,...e},e.id=n,Je.set(n,e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(Qt,e);return t.render(l,o),document.body.appendChild(o),n},Ws=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Mt={show(e,n,o={},l=!0){return l&&vn(),Ws(n),js({...o,message:n,reference:e})},hide(e){vn(e)},install(e){e.config.globalProperties.$hintText=Mt}},{componentName:bo,create:Ys}=O("item"),Xs=Ys({inheritAttrs:!0,props:{...ue,...me},setup(e,n){Ce({componentName:bo,validate:!1},e.prop??n.attrs.name);const o=ze(),l=lt();Xt(!1);const r=t.computed(()=>l&&o?je(o,!1).value:null),i=bo,a=t.computed(()=>{const B={[i]:!0,[`${i}__gutter`]:r.value&&r.value.type!=="flow",[`${i}__stretch`]:e.span==="stretch",[`${i}__input--border`]:e.hasBorder};return B[e.errorMarkClass]=!!A.value,B[e.warnMarkClass]=!!N.value,B[e.infoMarkClass]=!!v.value,B}),s=t.computed(()=>{const B={};if(r.value)if(r.value.type==="flex"){if(e.width)B.width=Z(e.width);else{const T=fe(r.value.column,e.span);T>0&&(B.width=`${T}%`)}const x=fe(r.value.column,e.offset);x>0&&(B["margin-left"]=`${x}%`);const R=r.value.gutter/2;R>0&&(B["padding-left"]=`${R}px`,B["padding-right"]=`${R}px`)}else if(r.value.type==="flow"){if(e.width)B.width=Z(e.width);else{const T=fe(r.value.column,e.span);T>0&&(B.width=`${T}%`)}const x=fe(r.value.column,e.offset);x>0&&(B["margin-left"]=`${x}%`);const R=r.value.gutter/2;if(R>0){const T=o?Qn(o,!1):null;if(T){let F=oe(e.offset)+oe(e.span);(F===-1||F>r.value.column)&&(F=r.value.column);const M=Math.ceil((T.index+1)/r.value.column),H=Math.ceil((T.index+F)/r.value.column);if(M===H){const j=(T.index+1)%r.value.column,W=(T.index+F)%r.value.column,Y=j===1?0:R,X=W===0?0:R;B["padding-left"]=`${Y}px`,B["padding-right"]=`${X}px`}else{const j=F%r.value.column,W=0,Y=j===0?0:R;B["padding-left"]=`${W}px`,B["padding-right"]=`${Y}px`}T.index+=F}else B["padding-left"]=`${R}px`,B["padding-right"]=`${R}px`}}else return e.width&&(B.width=Z(e.width)),B;else e.width&&(B.width=Z(e.width));return B}),c=t.ref(null),m=t.computed({get:()=>c.value??ve(e.isRequired),set:B=>{c.value=B}}),d=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof n.slots.label=="function"),f=Se(t.toRef(e,"labelPosition"),"labelPosition",Ke.Near),g=t.computed(()=>f&&f.value==="top"?"top":f&&f.value==="right"?"right":"left"),k=t.computed(()=>({[`${i}__main`]:!0,[`${i}__main--${g.value}`]:!0})),b=t.computed(()=>({label:!0,[`label--${g.value}`]:!0})),h=Se(t.toRef(e,"labelWidth"),"labelWidth",Ke.Near),S=t.computed(()=>h&&h.value?{width:`${Z(h.value)}`}:{}),u=t.computed(()=>({["label--string"]:!0,["label--required"]:m.value})),p=t.computed(()=>({content:!0,[e.contentClass]:!0})),w=t.computed(()=>({...e.contentStyle})),y=t.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Nt({setRequired(B){m.value=B},setErrorTip(B){y.errorTip=B},setErrorIcon(B){y.errorIcon=B},setWarnTip(B){y.warnTip=B},setWarnIcon(B){y.warnIcon=B},setInfoTip(B){y.infoTip=B},setInfoIcon(B){y.infoIcon=B}});const v=t.computed(()=>e.infoTip||y.infoTip),C=t.computed(()=>e.infoIcon||y.infoIcon),N=t.computed(()=>e.warnTip||y.warnTip),V=t.computed(()=>e.warnIcon||y.warnIcon),A=t.computed(()=>e.errorTip||y.errorTip),E=t.computed(()=>e.errorIcon||y.errorIcon),q=t.computed(()=>A.value?"error":N.value?"warn":v.value?"info":""),U=t.computed(()=>q.value.length>0),L=t.computed(()=>q.value==="error"?A.value:q.value==="warn"?N.value:q.value==="info"?v.value:""),z=t.computed(()=>q.value==="error"?E.value:q.value==="warn"?V.value:q.value==="info"?C.value:null),$=t.computed(()=>{let B={[`${i}__tip`]:!0,[`${i}__tip--${q.value}`]:!0};return q.value==="error"&&e.errorClass?B[`${e.errorClass}`]=!0:q.value==="warn"&&e.warnClass?B[`${e.warnClass}`]=!0:q.value==="info"&&e.infoClass&&(B[`${e.infoClass}`]=!0),B}),D=t.computed(()=>{let B={};return f&&f.value==="top"?B["padding-left"]="0px":h&&h.value&&(B["padding-left"]=Z(h.value)),B}),I=t.ref();let P="";return t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([B,x,R,T])=>{I.value&&(B&&!ye(x)?P?Mt.show(I.value,x,{...T,id:P,type:R}):P=Mt.show(I.value,x,{...T,type:R}):Mt.hide(P))}),{classes:a,styles:s,mainClasses:k,hasLabel:d,labelClasses:b,labelStyles:S,labelStringClasses:u,contentClasses:p,contentStyles:w,contentRef:I,hasTip:U,mTip:L,mIcon:z,tipClasses:$,tipStyles:D}}}),Qs={class:"text"};function Gs(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("view",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2)],6)):t.createCommentVNode("",!0),t.createElementVNode("view",{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")],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createBlock(a,{key:0,class:"icon",name:e.mIcon},null,8,["name"])):t.createCommentVNode("",!0),t.createElementVNode("view",Qs,t.toDisplayString(e.mTip),1)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],6)}const Te=K(Xs,[["render",Gs]]);function Zs(e,n){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(o,l){const r=e,i=t.computed(()=>({[r]:!0,[`${r}__stretch`]:o.span==="stretch",[`${r}__${o.align}`]:!0})),a=ze(),s=lt();Xt(!1);const c=t.computed(()=>{const d={};if(s&&a){const f=je(a,!1);if(f.value.type!=="flex")return o.width&&(d.width=Z(o.width)),d;if(o.width)d.width=Z(o.width);else{const b=fe(f.value.column,o.span);b>0&&(d.width=`${b}%`)}const g=fe(f.value.column,o.offset);g>0&&(d["margin-left"]=`${g}%`);const k=f.value.gutter/2;k>0&&(d["padding-left"]=`${k}px`,d["padding-right"]=`${k}px`)}else o.width&&(d.width=Z(o.width));return d}),m=t.computed(()=>({[`${r}__content`]:!0}));return()=>{const d=[];if(l.slots.default){const b=l.slots.default();if(o.divide)for(let h=0;h<b.length;h++){if(h>0){const S=t.h("view",{class:{[`${r}__divide`]:!0}});d.push(S)}d.push(b[h])}else Reflect.apply([].push,d,b)}const f={class:m.value},g=t.h("view",f,d),k={class:i.value,style:c.value};return t.h("view",k,[g])}}}}const{componentName:Js,create:_s,scope:b1}=O("row-item"),Al=_s(Zs(Js));function ei(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(o,l){const r=ze(),i=lt();Xt(!1);const a=t.computed(()=>i&&r?je(r,!1).value:null),s=e,c=t.computed(()=>({[s]:!0,[`${s}__gutter`]:a.value&&a.value.type!=="flow",[`${s}__stretch`]:o.span==="stretch"})),m=t.computed(()=>{const d={};if(a.value)if(a.value.type==="flex"){if(o.width)d.width=Z(o.width);else{const k=fe(a.value.column,o.span);k>0&&(d.width=`${k}%`)}const f=fe(a.value.column,o.offset);f>0&&(d["margin-left"]=`${f}%`);const g=a.value.gutter/2;g>0&&(d["padding-left"]=`${g}px`,d["padding-right"]=`${g}px`)}else if(a.value.type==="flow"){if(o.width)d.width=Z(o.width);else{const k=fe(a.value.column,o.span);k>0&&(d.width=`${k}%`)}const f=fe(a.value.column,o.offset);f>0&&(d["margin-left"]=`${f}%`);const g=a.value.gutter/2;if(g>0){const k=r?Qn(r,!1):null;if(k){let b=oe(o.offset)+oe(o.span);(b===-1||b>a.value.column)&&(b=a.value.column);const h=Math.ceil((k.index+1)/a.value.column),S=Math.ceil((k.index+b)/a.value.column);if(h===S){const u=(k.index+1)%a.value.column,p=(k.index+b)%a.value.column,w=u===1?0:g,y=p===0?0:g;d["padding-left"]=`${w}px`,d["padding-right"]=`${y}px`}else{const u=b%a.value.column,p=0,w=u===0?0:g;d["padding-left"]=`${p}px`,d["padding-right"]=`${w}px`}k.index+=b}else d["padding-left"]=`${g}px`,d["padding-right"]=`${g}px`}}else return o.width&&(d.width=Z(o.width)),d;else o.width&&(d.width=Z(o.width));return d});return()=>{const d={class:c.value,style:m.value};return l.slots&&typeof l.slots.default=="function"?t.h("view",d,l.slots.default()):t.h("view",d)}}}}const{componentName:ti,create:ni,scope:C1}=O("slot-item"),El=ni(ei(ti)),{componentName:Co,create:oi}=O("icon"),re=oi({props:{name:{type:String,default:""},size:{type:[String,Number],default:""},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"},color:{type:String,default:""},tag:{type:String,default:"i"}},emits:["click"],setup(e,{emit:n,slots:o}){const l=i=>{n("click",i)},r=t.computed(()=>e.name?e.name.indexOf("/")!==-1:!1);return()=>{const i=r.value;return t.h(i?"img":e.tag,{class:i?`${Co}__img`:`${e.fontClassName} ${Co} ${e.classPrefix}-${e.name}`,style:{color:e.color,fontSize:Z(e.size),width:Z(e.size),height:Z(e.size)},onClick:l,src:i?e.name:""},o.default?.())}}}),wo={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 li(e,n,o,l){return{props:{...ue,...me,...wo},emits:["change","update:modelValue","blur","focus","clear"],setup(r,i){const a=Ee(t.computed(()=>r.disabled)),s=Pe(t.computed(()=>r.readonly)),{emitEvent:c}=Ce({componentName:e,get validate(){return!a.value&&!s.value}},r.prop??i.attrs.name),{toLocaleRefs:m}=_.useFoxI18n(n),d=m(r,["placeholder"]),f=t.ref(!1),g=Ie(r,"modelValue"),k=e,b=t.computed(()=>({[k]:!0,[`${k}__disabled`]:a.value,[`${k}__readonly`]:s.value})),h=Se(t.computed(()=>r.textAlign),"textAlign"),S=t.computed(()=>f.value?{textAlign:"left"}:{textAlign:h.value??"right"}),u=z=>{let D=z.target.value;r.type==="digit"&&(D=fn(D,!0)),r.type==="number"&&(D=fn(D,!1)),r.maxLength&&D.length>Number(r.maxLength)&&(D=D.slice(0,Number(r.maxLength))),g.value=D,c("update:modelValue",D,z),c("change",D,z)};let p=Ie(r,"hintText"),w=t.ref(!1);const y=z=>{let D=z.target.value;f.value=!0,ye(p.value)||(w.value=!0),c("focus",D,z)},v=z=>{setTimeout(()=>{w.value&&(w.value=!1),f.value=!1},0);let D=z.target.value;r.maxLength&&D.length>Number(r.maxLength)&&(D=D.slice(0,Number(r.maxLength))),c("blur",D,z)},C=t.computed(()=>({[`${k}__append`]:!0})),N=t.computed(()=>ce(r.unit)>0),V=t.computed(()=>!U.value),A=t.computed(()=>({hidden:!V.value})),E=z=>{g.value="",c("update:modelValue","",z),c("change","",z),c("clear","")},q=t.computed(()=>ve(r.clearable)&&!a.value&&!s.value),U=t.computed(()=>{let z=ce(g.value)>0;return ve(r.clearable)&&z&&f.value}),L=t.computed(()=>({action:!0,hidden:!U.value}));return()=>{const z={class:b.value,style:S.value,type:r.type,maxlength:r.maxLength,placeholder:d.placeholder.value,disabled:a.value,readonly:s.value,value:g.value,"adjust-position":r.adjustPosition,"always-system":r.alwaysSystem,onInput:u,onFocus:y,onBlur:v},$=[],D=t.h("input",z);$.push(D);const I=[];if(q.value){const M={name:"close-little",size:"10px"},H=t.h(l,M),j={class:L.value,onClick:E},W=t.h("view",j,{default:()=>[H]});I.push(W)}if(N.value){const M=t.h("view",{class:A.value},[r.unit]);I.push(M)}const P={class:C.value},B=t.h("view",P,{default:()=>I});$.push(B);const x={default:()=>$};if(i.slots.default){const M=i.slots.default();x.label=()=>M}if(i.slots.prepend){const M=i.slots.prepend();x.prepend=()=>M}if(i.slots.append){const M=i.slots.append();x.append=()=>M}const T={...fl(r,wo),hintText:p.value,hintVisible:w.value};return t.h(o,T,x)}}}}const{componentName:ai,create:ri,scope:si}=O("input-item"),Tl=ri(li(ai,si,Te,re));function No(e,n=0){let o=`${e}`,l=o.indexOf(".");if(l==-1)return o;let r=l;for(let i=o.length-1;i>=l;i--)if(o.charAt(i)!="0"){r=i;break}return r-l<n?r=l+n+1:r!=l&&(r+=1),r>o.length?o=o.padEnd(r,"0"):o=o.substring(0,r),o}function Bo(e,n,o=20){if(typeof n=="string"&&(n=oe(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let l=Jo(`${e}`,`${n}`);return No(l)}else{let l=On(`${e}`,_o(`${n}`),20);return No(l)}}function ii(e,n=-1,o=!1,l=3,r=","){return Fn(e,n,o,l,r)}function Vo(e,n,o,l,r=!0){if(e=="")return"";if(e=el(e),n=oe(n),n==1)return e;if(l)e=Bo(e,n),o&&(e=="0"&&r?e=`${e}.`.padEnd(oe(o)+2,"0"):e=On(e,1,oe(o)));else{let i=-1*n;e=Bo(e,i)}return e}function Ao(e,n){let o={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let l=ve(n.minInclude),r=sn(e,n.min);if(l&&r==-1||!l&&(r==0||r==-1)){let i="请输入不小于 {0} 的数值";o.message=i.replace("{0}",n.min),o.minValid=!1}}if(n.max!=null){let l=ve(n.maxInclude),r=sn(e,n.max);(l&&r==1||!l&&(r==0||r==1))&&(o.maxValid=!1)}return o}function ci(e,n,o,l){return{props:{...ue,...me,clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}},emits:["change","update:modelValue","blur","focus","clear"],setup(r,i){const a=Ee(t.computed(()=>r.disabled)),s=Pe(t.computed(()=>r.readonly)),{emitEvent:c}=Ce({componentName:e,get validate(){return!a.value&&!s.value}},r.prop??i.attrs.name),m=t.ref(!1),d=Ie(r,"modelValue"),f=t.ref("");t.watch([()=>d.value,()=>r.rates,()=>r.precision],([P,B,x])=>{if(ye(P)){f.value="";return}const R=Vo(P,B,x,!1);f.value!==R&&(f.value=R)},{immediate:!0});const g=t.computed(()=>{let P="";return m.value&&(P=f.value),P}),{t:k}=_.useFoxI18n(n),b=t.computed(()=>{let P=r.placeholder??"";return!m.value&&!ye(f.value)?P=ii(f.value,r.decimalLength,r.autoPadding,r.digits,r.separator):P=k(["placeholder",P]),P}),h=e,S=t.computed(()=>({[h]:!0,[`${h}__disabled`]:a.value,[`${h}__placeholder`]:f.value.length>0})),u=Se(t.computed(()=>r.textAlign),"textAlign"),p=t.computed(()=>m.value?{textAlign:"left"}:{textAlign:u.value??"right"}),w=t.ref(""),y=t.computed(()=>{let P=w.value;return ye(P)&&(P=r.errorTip??""),P}),v=t.ref(""),C=t.ref(!1),N=P=>{let x=P.target.value;if(ye(x)){f.value="",d.value="",c("update:modelValue","",P),c("change","",P),ve(r.showTip)&&C.value&&(C.value=!1);return}if(x.length>=2){let R=x;if(R.charAt(0)=="-"&&(R=R.substring(1)),R.length>=2&&R.charAt(0)=="0"&&R.charAt(1)!="."){t.triggerRef(f);return}}if(x!="-"){if(!il(x)){t.triggerRef(f);return}if(r.integerLength!=-1&&cl(x)>Number(r.integerLength)){t.triggerRef(f);return}if(r.decimalLength&&r.decimalLength!=-1&&ul(x)>Number(r.decimalLength)){t.triggerRef(f);return}let R=Ao(x,r);if(R.maxValid===!1){w.value=R.message,t.triggerRef(f);return}}else if(r.min!=null&&oe(r.min)>=0){t.triggerRef(f);return}v.value=x,ve(r.showTip)&&(C.value=x.length>0),f.value=x,d.value=Vo(x,r.rates,r.precision,!0),c("update:modelValue",d.value,P),c("change",d.value,P)},V=P=>{if(m.value=!0,ve(r.showTip)){let B=f.value;ye(B)&&(B=r.hintText),ye(B)||(v.value=B,C.value=!0)}w.value="",c("focus",d.value,P)},A=P=>{if(setTimeout(()=>{m.value=!1,ve(r.showTip)&&C.value===!0&&(C.value=!1)},0),!ye(f.value)){let B=Ao(f.value,r);if(B.minValid===!1||B.maxValid){w.value=B.message;return}}c("update:modelValue",d.value,P),c("blur",d.value,P)},E=t.computed(()=>({[`${h}__append`]:!0})),q=t.computed(()=>ce(r.unit)>0),U=t.computed(()=>!D.value),L=t.computed(()=>({hidden:!U.value})),z=P=>{d.value="",c("update:modelValue","",P),c("change","",P),c("clear","")},$=t.computed(()=>ve(r.clearable)&&!a.value&&!s.value),D=t.computed(()=>{let P=ce(d.value)>0;return ve(r.clearable)&&P&&m.value}),I=t.computed(()=>({action:!0,hidden:!D.value}));return()=>{let P={class:S.value,style:p.value,type:"digit",maxlength:r.maxLength,placeholder:b.value,disabled:a.value,readonly:s.value,value:g.value,"adjust-position":r.adjustPosition,"always-system":r.alwaysSystem,onInput:N,onFocus:V,onBlur:A},B=[],x=t.h("input",P);B.push(x);let R=[];if($.value){let W={name:"close-little",size:"10px"},Y=t.h(l,W),X={class:I.value,onClick:z},G=t.h("view",X,{default:()=>[Y]});R.push(G)}if(q.value){let W=t.h("view",{class:L.value},[r.unit]);R.push(W)}let T={class:E.value},F=t.h("view",T,{default:()=>R});B.push(F);let M={default:()=>B};if(i.slots.default){let W=i.slots.default();M.label=()=>W}if(i.slots.prepend){let W=i.slots.prepend();M.prepend=()=>W}if(i.slots.append){let W=i.slots.append();M.append=()=>W}let H={...r,errorTip:y.value,hintText:v.value,hintVisible:C.value,hintType:"number"};return t.h(o,H,M)}}}}const{componentName:ui,create:di,scope:fi}=O("money-item"),$l=di(ci(ui,fi,Te,re)),kn={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:mi,create:pi,scope:hi}=O("textarea"),gi=pi({props:{...kn},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:o}=_.useFoxI18n(hi);const l=o(e,["placeholder"]),r=t.ref(),i=t.computed(()=>{const g=mi;return{[g]:!0,[`${g}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(s)});const a=t.computed(()=>({textAlign:e.textAlign})),s=()=>{let g=r.value;g.style.height="auto";let k=g.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:b,minHeight:h}=e.autosize;b!==void 0&&(k=Math.min(k,b)),h!==void 0&&(k=Math.max(k,h))}k&&(g.style.height=k+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(s)});const c=(g,k)=>{e.maxLength&&g.length>Number(e.maxLength)&&(g=g.substring(0,Number(e.maxLength))),n("update:modelValue",g,k),n("change",g,k)};return{...l,textareaRef:r,classes:i,styles:a,change:g=>{const k=g.target;c(k.value,g)},focus:g=>{e.disabled||e.readonly||n("focus",g)},blur:g=>{if(e.disabled||e.readonly)return;let b=g.target.value;c(b,g),n("blur",{value:b,event:g})}}}}),yi=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],vi={key:0,class:"fox-textarea__limit"};function ki(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:t.normalizeStyle(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...a)=>e.change&&e.change(...a)),onBlur:n[1]||(n[1]=(...a)=>e.blur&&e.blur(...a)),onFocus:n[2]||(n[2]=(...a)=>e.focus&&e.focus(...a)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,yi),e.limitShow?(t.openBlock(),t.createElementBlock("view",vi,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const Jn=K(gi,[["render",ki]]);function Si(e,n,o,l){return{props:{...ue,...me,...kn},emits:["update:modelValue","change","blur","focus"],setup(r,i){const a=Ee(t.computed(()=>r.disabled)),s=Pe(t.computed(()=>r.readonly)),{emitEvent:c}=Ce({componentName:e,get validate(){return!a.value&&!s.value}},r.prop??i.attrs.name),m=Ie(r,"modelValue"),d=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};let f=Ie(r,"hintText"),g=t.ref(!1);const k=h=>{ye(f.value)||(g.value=!0),c("focus",m.value,h)},b=h=>{setTimeout(()=>{g.value&&(g.value=!1)},0),c("blur",m.value,h)};return()=>{const S={...ke(r,kn),disabled:a.value,readonly:s.value,value:m.value,["onUpdate:modelValue"]:d,onFocus:k,onBlur:b},u=[],p=t.h(l,S);u.push(p);const w={default:()=>u};if(i.slots.default){const C=i.slots.default();w.label=()=>C}const y=ke(r,me,ue);return t.h(o,y,w)}}}}const{componentName:bi,create:Ci,scope:wi}=O("textarea-item"),Dl=Ci(Si(bi,wi,Te,Jn));let it=0;const Eo="fox-overflow-hidden",Ni=e=>[()=>{e()&&(!it&&document.body.classList.add(Eo),it++)},()=>{e()&&it&&(it--,!it&&document.body.classList.remove(Eo))}],Il={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},overlayClass:{type:String,default:""},lockScroll:{type:Boolean,default:!1},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:Bi,create:Vi}=O("overlay"),Ai=Vi({props:Il,emits:["click","update:visible"],setup(e,{emit:n}){const o=t.computed(()=>({[Bi]:!0,[e.overlayClass]:!0}));t.watch(()=>e.visible,c=>{c?l():r()});const l=()=>{e.lockScroll&&e.visible&&document.body.classList.add("fox-overflow-hidden")},r=()=>{document.body.classList.remove("fox-overflow-hidden")};t.onDeactivated(r),t.onBeforeUnmount(r),t.onMounted(l),t.onActivated(l);const i=t.computed(()=>({animationDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return{classes:o,style:i,touchmove:c=>{e.lockScroll&&c.preventDefault()},onClick:c=>{n("click",c),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function Ei(e,n,o,l,r,i){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onTouchmove:n[0]||(n[0]=t.withModifiers((...a)=>e.touchmove&&e.touchmove(...a),["stop"])),onClick:n[1]||(n[1]=(...a)=>e.onClick&&e.onClick(...a)),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],38),[[t.vShow,e.visible]])]),_:3})}const Ut=K(Ai,[["render",Ei]]),Oe={...Il,position:{type:String,default:"center"},transition:String,style:{type:Object},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},closeIcon:{type:String,default:"close"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},isWrapTeleport:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!1}},{componentName:Ti,create:$i}=O("popup");let To=2e3;const Di=$i({components:{[Ut.name]:Ut,[re.name]:re},props:{...Oe},emits:["click","click-close-icon","open","close","opened","closed","update:visible","click-overlay"],setup(e,{emit:n}){const o=t.ref(),l=t.reactive({zIndex:e.zIndex,showSlot:!0,transitionName:`popup-fade-${e.position}`,overLayCount:1,keepAlive:!1,closed:e.closeable}),[r,i]=Ni(()=>e.lockScroll),a=t.computed(()=>({[Ti]:!0,round:e.round,[`popup-${e.position}`]:!0,[`popup-${e.position}--safebottom`]:e.position==="bottom"&&e.safeAreaInsetBottom,[e.popClass]:!0})),s=t.computed(()=>({zIndex:l.zIndex,animationDuration:e.duration?`${e.duration}s`:"initial",...e.style})),c=()=>{e.zIndex!=2e3&&(To=Number(e.zIndex)),n("update:visible",!0),r(),l.zIndex=++To,e.destroyOnClose&&(l.showSlot=!0),n("open")},m=()=>{i(),n("update:visible",!1),n("close"),e.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+e.duration*1e3)},d=h=>{n("click",h)},f=h=>{n("click-close-icon",h),m()},g=h=>{e.closeOnClickOverlay&&(n("click-overlay",h),m())},k=h=>{n("opened",h)},b=h=>{n("closed",h)};return t.onMounted(()=>{e.transition?l.transitionName=e.transition:l.transitionName=`popup-slide-${e.position}`,e.visible&&c()}),t.onBeforeUnmount(()=>{e.visible&&m()}),t.onBeforeMount(()=>{e.visible&&i()}),t.onActivated(()=>{l.keepAlive&&(n("update:visible",!0),l.keepAlive=!1)}),t.onDeactivated(()=>{e.visible&&(m(),l.keepAlive=!0)}),t.watch(()=>e.visible,h=>{h?c():m()}),t.watch(()=>e.position,h=>{h==="center"?l.transitionName="popup-fade":l.transitionName=`popup-slide-${h}`}),t.watch(()=>e.closeable,h=>{l.closed=h}),{...t.toRefs(l),popStyle:s,classes:a,onClick:d,onClickCloseIcon:f,onClickOverlay:g,onOpened:k,onClosed:b,popupRef:o}}});function Ii(e,n,o,l,r,i){const a=t.resolveComponent("fox-overlay"),s=t.resolveComponent("fox-icon");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:!e.isWrapTeleport},[e.overlay?(t.openBlock(),t.createBlock(a,{key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,class:t.normalizeClass(e.overlayClass),style:t.normalizeStyle(e.overlayStyle),"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,onClick:e.onClickOverlay},null,8,["visible","close-on-click-overlay","class","style","z-index","lock-scroll","duration","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[1]=(...c)=>e.onClick&&e.onClick(...c)),ref:"popupRef"},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:n[0]||(n[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["foxui-popup__close-icon","foxui-popup__close-icon--"+e.closeIconPosition])},[t.createVNode(s,{name:e.closeIcon,size:"12px"},null,8,["name"])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const he=K(Di,[["render",Ii]]),$o=10;function qi(e,n){return e>n&&e>$o?"horizontal":n>e&&n>$o?"vertical":""}function Bt(){const e=t.ref(0),n=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),i=t.ref(0),a=t.ref(0),s=t.ref(0),c=t.ref(0),m=t.ref(0),d=t.ref(""),f=()=>d.value==="vertical",g=()=>d.value==="horizontal",k=()=>{a.value=0,s.value=0,c.value=0,m.value=0,d.value="",o.value=0};return{move:S=>{const u=S.touches[0];a.value=u.clientX-e.value,s.value=u.clientY-n.value,r.value=u.clientX,i.value=u.clientY,c.value=Math.abs(a.value),m.value=Math.abs(s.value),l.value=Date.now()-o.value,d.value||(d.value=qi(c.value,m.value))},start:S=>{k(),e.value=S.touches[0].clientX,n.value=S.touches[0].clientY,o.value=Date.now()},reset:k,startX:e,startY:n,startTime:o,duration:l,moveX:r,moveY:i,deltaX:a,deltaY:s,offsetX:c,offsetY:m,direction:d,isVertical:f,isHorizontal:g}}const ql={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}},Sn={...Oe,...ql,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let zl=36;function zi(){return zl}function Mi(e){zl=e}function $e(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function bn(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function Pi(e,n,o){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=o),n.children=o}function We(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Do(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let xi=class{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const r=wt(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ve(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}};function Ri(){const e=t.getCurrentInstance();return new xi(e.proxy)}function Io(e,n,o){const l=$e(e,n),r=$e(e,o);if(l!==r)return!1;const i=We(e,n),a=We(e,o);return i===a}function Li(e,n,o,l){if(o.length==0)return[];Array.isArray(n)||(n=[n]);const r=[],i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const s=n[a];let m=o[a].findIndex(d=>{if(i==="text")return $e(e,d)===s;if(i==="value"){let f=We(e,d);return f==null&&(f=$e(e,d)),f===s}else if(i==="item")return Io(e,d,s)});if(m==-1)break;r.push(m)}else{let a=o[0];for(let s=0;s<n.length;s++){const c=n[s];let m=a.findIndex(f=>{if(i==="text")return $e(e,f)===c;if(i==="value"){let g=We(e,f);return g==null&&(g=$e(e,f)),g===c}else if(i==="item")return Io(e,f,c)});if(m==-1)break;r.push(m);const d=bn(e,a[m]);if(!Array.isArray(d))break;a=d}}return r}function qo(e,n,o,l){if(o.length==0)return null;const r={texts:[],values:[]},i=e.valueType??"value";if(l==="singleColumn"||l==="multipleColumn")for(let a=0;a<n.length&&a<o.length;a++){const s=o[a];let c=n[a];c<0&&c>=s.length&&(c=0);const m=s[c],d=$e(e,m);if(r.texts.push(d),i==="text")r.values.push(d);else if(i==="value"){let f=We(e,m);f==null&&(f=d),r.values.push(f)}else r.values.push(m)}else{let a=o[0];for(let s=0;s<n.length;s++){let c=n[s];c<0&&c>=a.length&&(c=0);const m=a[c],d=$e(e,m);if(r.texts.push(d),i==="text")r.values.push(d);else if(i==="value"){let f=We(e,m);f==null&&(f=d),r.values.push(f)}else{const f=Object.assign({},m);f.children=null,r.values.push(f)}if(!Array.isArray(m.children))break;a=m.children}}return r}function zo(e){return{text:e,value:e}}const Oi=15,Fi=300,Ui=200,{create:Hi}=O("picker-column");function Ki(e){e.stopPropagation()}function ji(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&Ki(e)}const Wi=Hi({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},...ql},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const o=t.computed(()=>({"fox-picker__list":!0})),l=t.computed(()=>({height:`${oe(e.visibleItemCount)*+e.itemHeight}px`})),r=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),i=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),a=V=>V>=f.currIndex+8||V<=f.currIndex-8,s=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${f.deg})`,top:`${i.value}px`})),c=V=>`transform: rotate3d(1, 0, 0, ${-f.rotation*V}deg) translate3d(0px, 0px, 104px)`,m=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${f.scrollDistance+i.value}px, 0)`})),d=t.ref(null),f=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),g=t.toRef(e,"source"),k=V=>$e(e,V),b=V=>We(e,V),h=Bt(),S=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},u=(V,A=!1,E=!1)=>{if(f.currIndex=V,A){const q=()=>{f.moving=!1,n("update:modelValue",V),n("change",V)};E?f.transitionEndTrigger=q:q()}},p=(V,A,E)=>{let q=V+f.startDistance;if(A==="end"){const U=-(g.value.length-1)*e.itemHeight;q<U&&(q=U,(!E||E<=0)&&(E=e.swipeDuration)),q>0&&(q=0,(!E||E<=0)&&(E=e.swipeDuration));let L=Math.abs(Math.round(-q/e.itemHeight));const z=-L*e.itemHeight,$=`${(L+1)*f.rotation}deg`,D=E?E>0:!1;u(L,!0,D),w(z,A,E,$)}else{let U=(-q/e.itemHeight+1)*f.rotation;const L=(g.value.length+1)*f.rotation,z=0;if(U=Math.min(Math.max(U,z),L),e.threeDimensional&&(U<z||U>L))return;w(q,null,void 0,`${U}deg`)}},w=(V=0,A,E=Ui,q)=>{A==="end"?f.scrollTime=E:f.scrollTime=0,f.deg=q,f.scrollDistance=V},y=(V,A)=>(V=Math.abs(V/A)/.003*(V<0?-1:1),V),v=V=>{if(!e.readonly){if(f.moving){const A=d.value,{transform:E}=window.getComputedStyle(A);f.scrollDistance=+E.slice(7,E.length-1).split(", ")[5]}f.startDistance=f.scrollDistance,h.start(V),f.transitionEndTrigger=null}},C=V=>{e.readonly||(f.moving=!0,h.move(V),h.isVertical()&&(f.moving=!0,ji(V,!0)),p(h.deltaY.value,"",0))},N=()=>{if(e.readonly)return;const V=h.deltaY.value,A=h.duration.value;if(A<Fi&&Math.abs(V)>Oi){const q=y(V,A);p(q,"end",e.swipeDuration)}else p(V,"end",0)};return t.watch(()=>e.modelValue,V=>{if(f.currIndex!==V){f.currIndex=V;const A=-V*e.itemHeight;p(A)}}),t.onMounted(()=>{const V=-e.modelValue*e.itemHeight;p(V)}),{classes:o,styles:l,contentClasses:r,source:g,itemText:k,itemValue:b,...t.toRefs(f),roller:d,getItemText:$e,onTouchStart:v,onTouchMove:C,onTouchEnd:N,isHidden:a,setRollerStyle:c,touchRollerStyle:s,touchTileStyle:m,stopMomentum:S}}}),Yi={key:1,class:"fox-picker__item-tile"};function Xi(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTransitionend:n[4]||(n[4]=(...a)=>e.stopMomentum&&e.stopMomentum(...a))},[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,(a,s)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${s}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(s+1)}]),style:t.normalizeStyle(e.setRollerStyle(s+1))},t.toDisplayString(e.itemText(a)),7)):(t.openBlock(),t.createElementBlock("view",Yi,t.toDisplayString(e.itemText(a)),1))],64))),128))],6)],38)}const Mo=K(Wi,[["render",Xi]]),{create:Qi,componentName:Gi,scope:Zi}=O("picker"),Ji=Qi({components:{[Mo.name]:Mo,[he.name]:he},props:{...Sn},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:o,t:l}=_.useFoxI18n(Zi),r=o(e,["title","cancelText","clearText","confirmText"]),i=t.ref(null),a=t.ref(zi());t.watch(()=>e.visible,A=>{A&&a.value<=0&&setTimeout(()=>{if(i.value){const E=be(i.value);a.value=E.height,Mi(a.value)}},50)});const s=t.computed(()=>({[Gi]:!0})),c=Ri(),m=t.ref("singleColumn");let d=t.ref([]);t.watch([()=>e.source,()=>e.params],async([A,E])=>{if(A){let q=await c.load("picker",A,E);if(q.length>0){let U=q[0];if(Array.isArray(U)){if(typeof U[0]=="string"){let L=q,z=[];L.forEach($=>{let D=$.map(I=>zo(I));z.push(D)}),d.value=z}else d.value=q;m.value="multipleColumn"}else if(typeof U=="string"){let L=q,z=[],$=L.map(D=>zo(D));z.push($),d.value=z,m.value="singleColumn"}else{const L=bn(e,U);Array.isArray(L)?(m.value="cascade",d.value=[q]):(m.value="singleColumn",d.value=[q])}}else d.value=[]}},{immediate:!0});const f=t.ref([]),g=t.ref(e.modelValue),k=t.ref([]);t.watch([()=>e.modelValue,()=>d.value],([A,E])=>{let q=Li(e,A,E,m.value);if(!Ae(q,k.value)){k.value=q;let U=qo(e,q,E,m.value);U&&(f.value=U.texts,n("update:text",f.value))}});const b=t.ref(e.visible);t.watch(()=>e.visible,A=>{b.value=A});const h=A=>{let E=Do(e,A);return Ve(E)?E.defaultIndex??0:0},S=A=>{if(e.readonly===!0)return!0;let E=Do(e,A);return Ve(E)?E.readonly??!1:!1},u=(A,E,q=!1)=>{let U=k.value;U[A]=E;for(let z=0;z<A;z++)U[z]==null&&(U[z]=h(z));if(m.value==="cascade")for(let z=A+1;z<w.value.length;z++){let $=h(z);z<U.length?U[z]=$:U.push($)}else for(let z=U.length;z<w.value.length;z++){let $=h(z);U.push($)}k.value=U;let L=qo(e,U,d.value,m.value);if(L&&(f.value=L.texts,g.value=L.values),q)if(m.value==="singleColumn"){let z=L&&L.values.length>0?L.values[0]:"";n("change",z)}else n("change",L?.values)},p=A=>A<k.value.length?k.value[A]:h(A),w=t.computed(()=>{if(d.value.length==0)return[];if(m.value=="singleColumn"||m.value=="multipleColumn")return d.value;let A=[],E=0,q=d.value[0],U=0;for(;;){let L=q.map(D=>{let I=Object.assign({},D);return Pi(e,I,null),I});A.push(L),E>=k.value.length?U=0:U=k.value[E],(U<0||U>=q.length)&&(U=0);let z=q[U];const $=bn(e,z);if(!Array.isArray($))break;q=$,E++}return A}),y=t.computed(()=>oe(+e.visibleItemCount-1)/2*a.value);return{...r,pickerLineRef:i,classes:s,columns:w,dataType:m,show:b,itemHeight:a,top:y,isReadonly:S,getIndex:p,change:(A,E)=>{u(A,E,!0)},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{if(e.readonly===!0){n("update:visible",!1);return}let A=d.value.length-1;for(;A>=0&&!(k.value[A]===null||k.value[A]===void 0);A--);if(A>=0&&u(A,0,!1),m.value==="singleColumn"){let E=g.value.length>0?g.value[0]:"";e.readonly||(n("update:modelValue",E),n("update:text",f.value)),n("confirm",E)}else e.readonly||(n("update:modelValue",g.value),n("update:text",f.value)),n("confirm",g.value);n("update:visible",!1)},clear:()=>{if(e.readonly===!0){n("update:visible",!1);return}m.value==="singleColumn"?(n("update:modelValue",""),n("change","")):(n("update:modelValue",[]),n("change",[])),n("clear",""),n("update:visible",!1)}}}}),_i={class:"fox-picker__bar"},ec={class:"fox-picker__title"},tc={class:"fox-picker__bar__action"},nc={class:"fox-picker__column"};function oc(e,n,o,l,r,i){const a=t.resolveComponent("fox-picker-column"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(s,{position:"bottom",visible:e.show,"onUpdate:visible":n[3]||(n[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,isWrapTeleport:e.isWrapTeleport},{default:t.withCtx(()=>[t.createElementVNode("view",_i,[t.createElementVNode("view",ec,t.toDisplayString(e.title),1),t.createElementVNode("view",tc,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:n[0]||(n[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:n[1]||(n[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:n[2]||(n[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",nc,[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,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:"fox-picker__columnitem"},[t.createVNode(a,{source:c,readonly:e.isReadonly(m),"column-index":m,modelValue:e.getIndex(m),"onUpdate:modelValue":d=>e.change(m,d),"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","isWrapTeleport"])],2)}const St=K(Ji,[["render",oc]]);function lc(e,n,o,l,r,i=!0){return{props:{...ue,...me,...Sn,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1}},emits:["change","update:modelValue","blur","focus","clear"],setup(a,s){const c=Ee(t.computed(()=>a.disabled)),m=Pe(t.computed(()=>a.readonly)),{emitEvent:d}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!c.value&&!m.value}},a.prop??s.attrs.name),{toLocaleRefs:f}=_.useFoxI18n(n),g=f(a,["placeholder"]),k=t.ref(!1),b=Ie(a,"modelValue"),h=t.ref([]),S=t.computed(()=>Array.isArray(h.value)?h.value.join(" "):h.value),u="fox-input-item",p=t.computed(()=>({[u]:!0,[`${u}__disabled`]:c.value})),w=Se(t.computed(()=>a.textAlign),"textAlign"),y=t.computed(()=>({textAlign:w.value??"right"})),v=t.ref(!1),C=()=>{v.value=!0},N=R=>{v.value=R},V=R=>{b.value=R,d("update:modelValue",R,{}),d("change",R,{})},A=R=>{let F=R.target.value;k.value=!0,d("focus",F,R)},E=R=>{setTimeout(()=>{k.value=!1},0);let F=R.target.value;a.maxLength&&F.length>Number(a.maxLength)&&(F=F.slice(0,Number(a.maxLength))),d("blur",F,R)},q=t.computed(()=>({[`${u}__append`]:!0})),U=t.computed(()=>ce(a.unit)>0),L=t.computed(()=>ce(a.unit)>0&&!k.value),z=t.computed(()=>({hidden:!L.value})),$=R=>{b.value="",d("update:modelValue","",R),d("change","",R),d("clear","")},D=t.computed(()=>a.clearable&&!c.value&&!m.value),I=t.computed(()=>ce(b.value)>0&&k.value),P=R=>{I.value?$(R):C()},B=t.computed(()=>I.value&&D.value?"close-little":"arrow-right"),x=t.computed(()=>({action:!0}));return()=>{const R={class:p.value,style:y.value,type:"text",maxlength:a.maxLength,placeholder:g.placeholder.value,readonly:!0,unselectable:"on",value:S.value,onClick:C,onFocus:A,onBlur:E};i&&(R.disabled=!0);const T=[],F=t.h("input",R);T.push(F);const M=[],H={name:B.value,size:"10px"},j=t.h(l,H),W={class:x.value,onClick:P},Y=t.h("view",W,{default:()=>[j]});if(M.push(Y),U.value){const te=t.h("view",{class:z.value},[a.unit]);M.push(te)}const X={class:q.value},G=t.h("view",X,{default:()=>M});T.push(G);const ne={default:()=>T};if(s.slots.default){const te=s.slots.default();ne.label=()=>te}if(s.slots.prepend){const te=s.slots.prepend();ne.prepend=()=>te}if(s.slots.append){const te=s.slots.append();ne.append=()=>te}const ee=ke(a,Sn);ee.disabled=!1,ee.readonly=c.value||m.value,ee.visible=v.value,ee["onUpdate:visible"]=N,ee.modelValue=b.value,ee["onUpdate:modelValue"]=V,ee.text=h.value,ee["onUpdate:text"]=te=>{h.value=te};const ae=t.h(r,ee);ne.hide=()=>[ae];const se=ke(a,me,ue);return t.h(o,se,ne)}}}}const{componentName:ac,create:rc,scope:sc}=O("picker-item"),Ml=rc(lc(ac,sc,Te,re,St,!1));let ic={...Oe,modelValue:{type:[Array],required:!0},visible:{type:Boolean,required:!0},title:{type:String,required:!1},options:{type:[Array,String],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"},poppable:{type:Boolean,default:!0},convertConfig:{type:Object,required:!1}};const Pt=(e,n,o)=>e.map(l=>{const{value:r="value",text:i="text",children:a="children"}=o??{},{[r]:s,[i]:c,[a]:m,...d}=l,f={loading:!1,...d,level:n?(n&&n.level||0)+1:0,value:s,text:c,children:m,_parent:n};return f.children&&f.children.length&&(f.children=Pt(f.children,f,o)),f}),Pl=(e,n)=>{let o=0,l;for(;(l=e[o++])&&n(l)!==!0;)l.children&&l.children.length&&Pl(l.children,n)},cc={topId:null,idKey:"id",pidKey:"pid",sortKey:""},uc=(e,n)=>{const o={...cc,...n||{}},{topId:l,idKey:r,pidKey:i,sortKey:a}=o;let s=[],c={};return e.forEach(m=>{m={...m};const{[r]:d,[i]:f}=m,g=c[f]=c[f]||[];!s.length&&f===l&&(s=g),g.push(m),m.children=c[d]||(c[d]=[])}),a&&Object.keys(c).forEach(m=>{c[m].length>1&&c[m].sort((d,f)=>d[a]-f[a])}),c=null,s};class Po{nodes;config;constructor(n,o){this.config={value:"value",text:"text",children:"children",...o||{}},this.nodes=Pt(n,null,this.config)}updateChildren(n,o){o?o.children=Pt(n,o,this.config):this.nodes=Pt(n,null,this.config)}getNodeByValue(n){let o;return Pl(this.nodes,l=>{if(l.value===n)return o=l,!0}),o}getPathNodesByValue(n){if(!n.length)return[];const o=[];let l=this.nodes;for(;l&&l.length;){const r=l.find(i=>i.value===n[i.level]);if(!r)break;o.push(r),l=r.children}return o}isLeaf(n,o){const{leaf:l,children:r}=n,i=Array.isArray(r)&&Boolean(r.length);return l||!i&&!o}hasChildren(n,o){if(this.isLeaf(n,o))return!1;const{children:r}=n;return Array.isArray(r)&&Boolean(r.length)}}const{create:dc,scope:fc}=O("cascaderpane"),mc=dc({props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:n}){const o=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),l=t.ref(0),r=t.ref(!1),i=t.ref(e.modelValue),a=t.ref(new Po([],{})),s=t.ref([]),c=t.computed(()=>o.value.lazy&&Boolean(o.value.lazyLoad)),m=new Map;let d;const f=async()=>{m.clear(),s.value=[],l.value=0,r.value=!1,d=null;let{options:u}=e;o.value.convertConfig&&(u=uc(u,o.value.convertConfig)),a.value=new Po(u,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),c.value&&!a.value.nodes.length&&await k({root:!0,loading:!0,text:"",value:""}),s.value=[{nodes:a.value.nodes,selectedNode:null}],g()},g=async()=>{const u=i.value;if(u===void 0||!a.value.nodes.length)return;if(u.length===0){l.value=0,s.value=[{nodes:a.value.nodes,selectedNode:null}];return}let p=u;if(c.value&&Array.isArray(u)&&u.length){p=[];let w=a.value.nodes.find(y=>y.value===u[0]);if(w){p=[w.value],r.value=!0;const y=await u.slice(1).reduce(async(v,C)=>{const N=await v;await k(N);const V=N?.children?.find(A=>A.value===C);return V&&p.push(C),Promise.resolve(V)},Promise.resolve(w));await k(y),r.value=!1}}p.length&&u===e.modelValue&&a.value.getPathNodesByValue(p).map((y,v)=>{l.value=v,S.handleNode(y,!0)})},k=async u=>{if(!u)return;if(!o.value.lazyLoad){u.leaf=!0;return}if(a.value.isLeaf(u,c.value)||a.value.hasChildren(u,c.value))return;u.loading=!0;const p=u.root?null:u;let w=m.get(u);w||(w=new Promise(v=>{o.value.lazyLoad?.(u,v)}),m.set(u,w));const y=await w;Array.isArray(y)&&y.length>0?a.value.updateChildren(y,p):u.leaf=!0,u.loading=!1,m.delete(u)},b=u=>{const p=u.map(w=>w.value);i.value=p,n("change",p,u),n("update:modelValue",p,u)},{t:h}=_.useFoxI18n(fc),S={async handleNode(u,p){const{disabled:w,loading:y}=u;if(!(!p&&w||!s.value[l.value])){if(a.value.isLeaf(u,c.value)){if(u.leaf=!0,s.value[l.value].selectedNode=u,s.value=s.value.slice(0,u.level+1),!p){const v=s.value.map(C=>C.selectedNode);b(v),n("pathChange",v)}return}if(a.value.hasChildren(u,c.value)){const v=u.level+1;if(s.value[l.value].selectedNode=u,s.value=s.value.slice(0,v),s.value.push({nodes:u.children||[],selectedNode:null}),l.value=v,!p){const C=s.value.map(N=>N.selectedNode);n("pathChange",C)}return}d=u,!y&&(await k(u),d===u&&(s.value[l.value].selectedNode=u,S.handleNode(u,p)))}},handleTabClick(u){d=null,l.value=Number(u.paneKey)},formatTabTitle(u){return u.selectedNode?u.selectedNode.text:h("select")},isSelected(u,p){return u.selectedNode&&u.selectedNode.value===p.value}};return t.watch([o,()=>e.options],()=>{f()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,u=>{u!==i.value&&(i.value=u,g())}),t.watch(()=>e.visible,u=>{u&&Array.isArray(i.value)&&i.value.length>0&&g()}),{panes:s,initLoading:r,tabsCursor:l,...S}}}),pc={role:"menu",class:"fox-cascader__pane"},hc=["aria-checked","aria-disabled","onClick"],gc={class:"fox-cascader__item__title"},yc=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function vc(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon"),s=t.resolveComponent("fox-tabpane"),c=t.resolveComponent("fox-tabs");return t.openBlock(),t.createBlock(c,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=m=>e.tabsCursor=m),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(m,d)=>(t.openBlock(),t.createBlock(s,{title:e.formatTabTitle(m),key:d},{default:t.withCtx(()=>[t.createElementVNode("view",pc,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.nodes,f=>(t.openBlock(),t.createElementBlock("view",{key:f.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(m,f),disabled:f.disabled}]),"aria-checked":e.isSelected(m,f),"aria-disabled":f.disabled||void 0,role:"menuitemradio",onClick:g=>e.handleNode(f,!1)},[t.createElementVNode("view",gc,t.toDisplayString(f.text),1),f.loading?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(a,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,hc))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(s,{key:1,title:"Loading..."},{default:t.withCtx(()=>[yc]),_:1}))]),_:1},8,["modelValue","onClick"])}const xo=K(mc,[["render",vc]]),{create:kc}=O("cascader"),Sc=kc({components:{[xo.name]:xo},props:{...ic},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const o=t.ref(e.modelValue?e.modelValue:[]),l=t.computed({get(){return e.visible},set(a){n("update:visible",a)}}),r=(a,s)=>{o.value=a,l.value=!1,n("change",a,s),n("update:modelValue",a)},i=a=>{n("pathChange",a)};return t.watch(()=>e.modelValue,a=>{a!==o.value&&(a?o.value=a:o.value=[])}),{onChange:r,onPathChange:i,innerValue:o,innerVisible:l}}}),bc=["innerHTML"];function Cc(e,n,o,l,r,i){const a=t.resolveComponent("fox-cascaderpane"),s=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(s,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:!e.closeable,"close-icon":e.closeIcon,"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,bc)):t.createCommentVNode("",!0),t.createVNode(a,{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","close-icon-position"])):(t.openBlock(),t.createBlock(a,{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 _n=K(Sc,[["render",Cc]]);function bt(e,n){const o=e.textKey??"text";return n[o]??""}function Ct(e,n){const o=e.valueKey??"value";return n[o]}function xl(e,n){const o=e.childrenKey??"children";return n[o]}function qt(e,n=[]){const o={texts:[],values:[]};for(let l=0;l<n.length;l++){const r=n[l],i=bt(e,r),a=Ct(e,r);o.texts.push(i),o.values.push(a??"")}return o}function Rl(e,n,o,l,r=[]){const i=o[l];for(let a=0;a<n.length;a++)if(bt(e,n[a])===i){const c=Ct(e,n[a])??"",m={[e.textKey]:i,[e.valueKey]:c};r.push(m);const d=xl(e,n[a]);Array.isArray(d)&&Rl(e,d,o,l+1,r);return}}function Ll(e,n,o,l,r=[]){const i=o[l];for(let a=0;a<n.length;a++)if(Ct(e,n[a])===i){const c=bt(e,n[a])??"",m={[e.textKey]:c,[e.valueKey]:i};r.push(m);const d=xl(e,n[a]);Array.isArray(d)&&Ll(e,d,o,l+1,r);return}}function tn(e,n,o){if(n===o)return!0;if(n.length!==o.length)return!1;for(let l=0;l<n.length;l++){const r=bt(e,n[l]),i=bt(e,o[l]);if(r!==i)return!1;const a=Ct(e,n[l]),s=Ct(e,o[l]);if(a!==s)return!1}return!0}let wc=class{proxy;constructor(n){this.proxy=n}async load(n,o){const l="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(o);const r=wt(this.proxy,l);return r===null?(console.error(`${l} component not found api function`),[]):(Ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await r(n,o))}};function Nc(){const e=t.getCurrentInstance();return new wc(e.proxy)}function Bc(e,n,o,l,r,i=!1){return{props:{...ue,...me,modelValue:{type:[Array,String]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}},emits:["update:modelValue","change","pathChange","blur","focus","clear"],setup(a,s){const c=Ee(t.computed(()=>a.disabled)),m=Pe(t.computed(()=>a.readonly)),{emitEvent:d}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!c.value&&!m.value}},a.prop??s.attrs.name),{toLocaleRefs:f}=_.useFoxI18n(n),g=f(a,["placeholder"]),k=t.ref(!1),b=Nc(),h=t.ref([]);t.watch([()=>a.source,()=>a.params],async([H,j])=>{H&&(h.value=await b.load(H,j))},{immediate:!0});const S=t.ref([]),u=t.computed(()=>Array.isArray(S.value)?S.value.join(" "):S.value),p=t.ref([]),w=t.ref([]);t.watch([()=>a.modelValue],async([H])=>{if(a.lazy===!0){w.value.length==0&&(S.value=Array.isArray(H)?H:[],p.value=Array.isArray(H)?H:[]);return}if(a.valueType==="item"){let j=H;if(!tn(a,j,w.value)){w.value=j;let W=qt(a,j);S.value=W.texts,p.value=W.values}}else if(a.valueType==="text"){let j=H,W=[];if(Rl(a,h.value,j,0,W),!tn(a,W,w.value)){w.value=W;let Y=qt(a,W);j.value=Y.texts,p.value=Y.values}}else{let j=[];if(Ll(a,h.value,H,0,j),!tn(a,j,w.value)){w.value=j;let W=qt(a,j);S.value=W.texts,p.value=W.values}}},{immediate:!0});const y="fox-input-item",v=t.computed(()=>({[y]:!0,[`${y}__disabled`]:c.value})),C=Se(t.computed(()=>a.textAlign),"textAlign"),N=t.computed(()=>({textAlign:C.value??"right"})),V=t.ref(!1),A=()=>{c.value===!0||m.value===!0||(V.value=!0)},E=H=>{V.value=H},q=(H,j)=>{let W=j.map(X=>{if(X==null)return X;let G={...X};return Reflect.deleteProperty(G,"text"),G[a.textKey]=X.text??"",Reflect.deleteProperty(G,"value"),G[a.valueKey]=X.value??"",G});w.value=W;let Y=qt(a,W);S.value=Y.texts,p.value=Y.values,a.valueType==="text"?(d("change",S.value,W),d("update:modelValue",S.value)):a.valueType==="item"?(d("change",W,W),d("update:modelValue",W)):(d("change",p.value,W),d("update:modelValue",p.value))},U=H=>{let j=H.map(W=>{if(W==null)return W;let Y={...W};return Reflect.deleteProperty(Y,"text"),Y[a.textKey]=W.text??"",Reflect.deleteProperty(Y,"value"),Y[a.valueKey]=W.value??"",Y});d("pathChange",j)},L=H=>{k.value=!0,d("focus",p.value,H)},z=H=>{setTimeout(()=>{k.value=!1},0),d("blur",p.value,H)},$=t.computed(()=>({[`${y}__append`]:!0})),D=t.computed(()=>ce(a.unit)>0),I=t.computed(()=>ce(a.unit)>0&&!k.value),P=t.computed(()=>({hidden:!I.value})),B=H=>{w.value=[],S.value=[],p.value=[],d("update:modelValue",[],H),d("change",[],H),d("clear",[])},x=t.computed(()=>a.clearable&&!c.value&&!m.value),R=t.computed(()=>{let H=p.value&&p.value.length>0;return a.clearable&&H&&k.value}),T=H=>{R.value?B(H):A()},F=t.computed(()=>R.value&&x.value?"close-little":"arrow-right"),M=t.computed(()=>({action:!0}));return()=>{const H={class:v.value,style:N.value,type:"text",maxlength:a.maxLength,placeholder:g.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:A,onFocus:L,onBlur:z};i&&(H.disabled=!0);const j=[],W=t.h("input",H);j.push(W);const Y=[],X={name:F.value,size:"10px"},G=t.h(l,X),ne={class:M.value,onClick:T},ee=t.h("view",ne,{default:()=>[G]});if(Y.push(ee),D.value){const we=t.h("view",{class:P.value},[a.unit]);Y.push(we)}const ae={class:$.value},se=t.h("view",ae,{default:()=>Y});j.push(se);const de={default:()=>j};if(s.slots.default){const we=s.slots.default();de.label=()=>we}if(s.slots.prepend){const we=s.slots.prepend();de.prepend=()=>we}if(s.slots.append){const we=s.slots.append();de.append=()=>we}let te={};te.visible=V.value,te["onUpdate:visible"]=E,te.modelValue=p.value,te.onChange=q,te.onPathChange=U,te.options=h.value,te.title=a.title,te.lazy=a.lazy,te.lazyLoad=a.lazyLoad,te.valueKey=a.valueKey,te.textKey=a.textKey,te.childrenKey=a.childrenKey,te.convertConfig=a.convertConfig;const At=t.h(r,te);de.hide=()=>[At];const ge=ke(a,me,ue);return t.h(o,ge,de)}}}}const{componentName:Vc,create:Ac,scope:Ec}=O("cascader-item"),Ol=Ac(Bc(Vc,Ec,Te,re,_n,!1));var xe=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Cn={},Tc={get exports(){return Cn},set exports(e){Cn=e}};(function(e,n){(function(o,l){e.exports=l()})(xe,function(){var o=1e3,l=6e4,r=36e5,i="millisecond",a="second",s="minute",c="hour",m="day",d="week",f="month",g="quarter",k="year",b="date",h="Invalid Date",S=/^(\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("_")},w=function(L,z,$){var D=String(L);return!D||D.length>=z?L:""+Array(z+1-D.length).join($)+L},y={s:w,z:function(L){var z=-L.utcOffset(),$=Math.abs(z),D=Math.floor($/60),I=$%60;return(z<=0?"+":"-")+w(D,2,"0")+":"+w(I,2,"0")},m:function L(z,$){if(z.date()<$.date())return-L($,z);var D=12*($.year()-z.year())+($.month()-z.month()),I=z.clone().add(D,f),P=$-I<0,B=z.clone().add(D+(P?-1:1),f);return+(-(D+($-I)/(P?I-B:B-I))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:f,y:k,w:d,d:m,D:b,h:c,m:s,s:a,ms:i,Q:g}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},v="en",C={};C[v]=p;var N=function(L){return L instanceof q},V=function L(z,$,D){var I;if(!z)return v;if(typeof z=="string"){var P=z.toLowerCase();C[P]&&(I=P),$&&(C[P]=$,I=P);var B=z.split("-");if(!I&&B.length>1)return L(B[0])}else{var x=z.name;C[x]=z,I=x}return!D&&I&&(v=I),I||!D&&v},A=function(L,z){if(N(L))return L.clone();var $=typeof z=="object"?z:{};return $.date=L,$.args=arguments,new q($)},E=y;E.l=V,E.i=N,E.w=function(L,z){return A(L,{locale:z.$L,utc:z.$u,x:z.$x,$offset:z.$offset})};var q=function(){function L($){this.$L=V($.locale,null,!0),this.parse($)}var z=L.prototype;return z.parse=function($){this.$d=function(D){var I=D.date,P=D.utc;if(I===null)return new Date(NaN);if(E.u(I))return new Date;if(I instanceof Date)return new Date(I);if(typeof I=="string"&&!/Z$/i.test(I)){var B=I.match(S);if(B){var x=B[2]-1||0,R=(B[7]||"0").substring(0,3);return P?new Date(Date.UTC(B[1],x,B[3]||1,B[4]||0,B[5]||0,B[6]||0,R)):new Date(B[1],x,B[3]||1,B[4]||0,B[5]||0,B[6]||0,R)}}return new Date(I)}($),this.$x=$.x||{},this.init()},z.init=function(){var $=this.$d;this.$y=$.getFullYear(),this.$M=$.getMonth(),this.$D=$.getDate(),this.$W=$.getDay(),this.$H=$.getHours(),this.$m=$.getMinutes(),this.$s=$.getSeconds(),this.$ms=$.getMilliseconds()},z.$utils=function(){return E},z.isValid=function(){return this.$d.toString()!==h},z.isSame=function($,D){var I=A($);return this.startOf(D)<=I&&I<=this.endOf(D)},z.isAfter=function($,D){return A($)<this.startOf(D)},z.isBefore=function($,D){return this.endOf(D)<A($)},z.$g=function($,D,I){return E.u($)?this[D]:this.set(I,$)},z.unix=function(){return Math.floor(this.valueOf()/1e3)},z.valueOf=function(){return this.$d.getTime()},z.startOf=function($,D){var I=this,P=!!E.u(D)||D,B=E.p($),x=function(Y,X){var G=E.w(I.$u?Date.UTC(I.$y,X,Y):new Date(I.$y,X,Y),I);return P?G:G.endOf(m)},R=function(Y,X){return E.w(I.toDate()[Y].apply(I.toDate("s"),(P?[0,0,0,0]:[23,59,59,999]).slice(X)),I)},T=this.$W,F=this.$M,M=this.$D,H="set"+(this.$u?"UTC":"");switch(B){case k:return P?x(1,0):x(31,11);case f:return P?x(1,F):x(0,F+1);case d:var j=this.$locale().weekStart||0,W=(T<j?T+7:T)-j;return x(P?M-W:M+(6-W),F);case m:case b:return R(H+"Hours",0);case c:return R(H+"Minutes",1);case s:return R(H+"Seconds",2);case a:return R(H+"Milliseconds",3);default:return this.clone()}},z.endOf=function($){return this.startOf($,!1)},z.$set=function($,D){var I,P=E.p($),B="set"+(this.$u?"UTC":""),x=(I={},I[m]=B+"Date",I[b]=B+"Date",I[f]=B+"Month",I[k]=B+"FullYear",I[c]=B+"Hours",I[s]=B+"Minutes",I[a]=B+"Seconds",I[i]=B+"Milliseconds",I)[P],R=P===m?this.$D+(D-this.$W):D;if(P===f||P===k){var T=this.clone().set(b,1);T.$d[x](R),T.init(),this.$d=T.set(b,Math.min(this.$D,T.daysInMonth())).$d}else x&&this.$d[x](R);return this.init(),this},z.set=function($,D){return this.clone().$set($,D)},z.get=function($){return this[E.p($)]()},z.add=function($,D){var I,P=this;$=Number($);var B=E.p(D),x=function(F){var M=A(P);return E.w(M.date(M.date()+Math.round(F*$)),P)};if(B===f)return this.set(f,this.$M+$);if(B===k)return this.set(k,this.$y+$);if(B===m)return x(1);if(B===d)return x(7);var R=(I={},I[s]=l,I[c]=r,I[a]=o,I)[B]||1,T=this.$d.getTime()+$*R;return E.w(T,this)},z.subtract=function($,D){return this.add(-1*$,D)},z.format=function($){var D=this,I=this.$locale();if(!this.isValid())return I.invalidDate||h;var P=$||"YYYY-MM-DDTHH:mm:ssZ",B=E.z(this),x=this.$H,R=this.$m,T=this.$M,F=I.weekdays,M=I.months,H=function(X,G,ne,ee){return X&&(X[G]||X(D,P))||ne[G].slice(0,ee)},j=function(X){return E.s(x%12||12,X,"0")},W=I.meridiem||function(X,G,ne){var ee=X<12?"AM":"PM";return ne?ee.toLowerCase():ee},Y={YY:String(this.$y).slice(-2),YYYY:this.$y,M:T+1,MM:E.s(T+1,2,"0"),MMM:H(I.monthsShort,T,M,3),MMMM:H(M,T),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:H(I.weekdaysMin,this.$W,F,2),ddd:H(I.weekdaysShort,this.$W,F,3),dddd:F[this.$W],H:String(x),HH:E.s(x,2,"0"),h:j(1),hh:j(2),a:W(x,R,!0),A:W(x,R,!1),m:String(R),mm:E.s(R,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:B};return P.replace(u,function(X,G){return G||Y[X]||B.replace(":","")})},z.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},z.diff=function($,D,I){var P,B=E.p(D),x=A($),R=(x.utcOffset()-this.utcOffset())*l,T=this-x,F=E.m(this,x);return F=(P={},P[k]=F/12,P[f]=F,P[g]=F/3,P[d]=(T-R)/6048e5,P[m]=(T-R)/864e5,P[c]=T/r,P[s]=T/l,P[a]=T/o,P)[B]||T,I?F:E.a(F)},z.daysInMonth=function(){return this.endOf(f).$D},z.$locale=function(){return C[this.$L]},z.locale=function($,D){if(!$)return this.$L;var I=this.clone(),P=V($,D,!0);return P&&(I.$L=P),I},z.clone=function(){return E.w(this.$d,this)},z.toDate=function(){return new Date(this.valueOf())},z.toJSON=function(){return this.isValid()?this.toISOString():null},z.toISOString=function(){return this.$d.toISOString()},z.toString=function(){return this.$d.toUTCString()},L}(),U=q.prototype;return A.prototype=U,[["$ms",i],["$s",a],["$m",s],["$H",c],["$W",m],["$M",f],["$y",k],["$D",b]].forEach(function(L){U[L[1]]=function(z){return this.$g(z,L[0],L[1])}}),A.extend=function(L,z){return L.$i||(L(z,q,A),L.$i=!0),A},A.locale=V,A.isDayjs=N,A.unix=function(L){return A(1e3*L)},A.en=C[v],A.Ls=C,A.p={},A})})(Tc);const qe=Cn;var wn={},$c={get exports(){return wn},set exports(e){wn=e}};(function(e,n){(function(o,l){e.exports=l()})(xe,function(){var o={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"},l=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,r=/\d\d/,i=/\d\d?/,a=/\d*[^-_:/,()\s\d]+/,s={},c=function(h){return(h=+h)+(h>68?1900:2e3)},m=function(h){return function(S){this[h]=+S}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(h){(this.zone||(this.zone={})).offset=function(S){if(!S||S==="Z")return 0;var u=S.match(/([+-]|\d\d)/g),p=60*u[1]+(+u[2]||0);return p===0?0:u[0]==="+"?-p:p}(h)}],f=function(h){var S=s[h];return S&&(S.indexOf?S:S.s.concat(S.f))},g=function(h,S){var u,p=s.meridiem;if(p){for(var w=1;w<=24;w+=1)if(h.indexOf(p(w,0,S))>-1){u=w>12;break}}else u=h===(S?"pm":"PM");return u},k={A:[a,function(h){this.afternoon=g(h,!1)}],a:[a,function(h){this.afternoon=g(h,!0)}],S:[/\d/,function(h){this.milliseconds=100*+h}],SS:[r,function(h){this.milliseconds=10*+h}],SSS:[/\d{3}/,function(h){this.milliseconds=+h}],s:[i,m("seconds")],ss:[i,m("seconds")],m:[i,m("minutes")],mm:[i,m("minutes")],H:[i,m("hours")],h:[i,m("hours")],HH:[i,m("hours")],hh:[i,m("hours")],D:[i,m("day")],DD:[r,m("day")],Do:[a,function(h){var S=s.ordinal,u=h.match(/\d+/);if(this.day=u[0],S)for(var p=1;p<=31;p+=1)S(p).replace(/\[|\]/g,"")===h&&(this.day=p)}],M:[i,m("month")],MM:[r,m("month")],MMM:[a,function(h){var S=f("months"),u=(f("monthsShort")||S.map(function(p){return p.slice(0,3)})).indexOf(h)+1;if(u<1)throw new Error;this.month=u%12||u}],MMMM:[a,function(h){var S=f("months").indexOf(h)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,m("year")],YY:[r,function(h){this.year=c(h)}],YYYY:[/\d{4}/,m("year")],Z:d,ZZ:d};function b(h){var S,u;S=h,u=s&&s.formats;for(var p=(h=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(A,E,q){var U=q&&q.toUpperCase();return E||u[q]||o[q]||u[U].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(L,z,$){return z||$.slice(1)})})).match(l),w=p.length,y=0;y<w;y+=1){var v=p[y],C=k[v],N=C&&C[0],V=C&&C[1];p[y]=V?{regex:N,parser:V}:v.replace(/^\[|\]$/g,"")}return function(A){for(var E={},q=0,U=0;q<w;q+=1){var L=p[q];if(typeof L=="string")U+=L.length;else{var z=L.regex,$=L.parser,D=A.slice(U),I=z.exec(D)[0];$.call(E,I),A=A.replace(I,"")}}return function(P){var B=P.afternoon;if(B!==void 0){var x=P.hours;B?x<12&&(P.hours+=12):x===12&&(P.hours=0),delete P.afternoon}}(E),E}}return function(h,S,u){u.p.customParseFormat=!0,h&&h.parseTwoDigitYear&&(c=h.parseTwoDigitYear);var p=S.prototype,w=p.parse;p.parse=function(y){var v=y.date,C=y.utc,N=y.args;this.$u=C;var V=N[1];if(typeof V=="string"){var A=N[2]===!0,E=N[3]===!0,q=A||E,U=N[2];E&&(U=N[2]),s=this.$locale(),!A&&U&&(s=u.Ls[U]),this.$d=function(D,I,P){try{if(["x","X"].indexOf(I)>-1)return new Date((I==="X"?1e3:1)*D);var B=b(I)(D),x=B.year,R=B.month,T=B.day,F=B.hours,M=B.minutes,H=B.seconds,j=B.milliseconds,W=B.zone,Y=new Date,X=T||(x||R?1:Y.getDate()),G=x||Y.getFullYear(),ne=0;x&&!R||(ne=R>0?R-1:Y.getMonth());var ee=F||0,ae=M||0,se=H||0,de=j||0;return W?new Date(Date.UTC(G,ne,X,ee,ae,se,de+60*W.offset*1e3)):P?new Date(Date.UTC(G,ne,X,ee,ae,se,de)):new Date(G,ne,X,ee,ae,se,de)}catch{return new Date("")}}(v,V,C),this.init(),U&&U!==!0&&(this.$L=this.locale(U).$L),q&&v!=this.format(V)&&(this.$d=new Date("")),s={}}else if(V instanceof Array)for(var L=V.length,z=1;z<=L;z+=1){N[1]=V[z-1];var $=u.apply(this,N);if($.isValid()){this.$d=$.$d,this.$L=$.$L,this.init();break}z===L&&(this.$d=new Date(""))}else w.call(this,y)}}})})($c);const Dc=wn;var Nn={},Ic={get exports(){return Nn},set exports(e){Nn=e}};(function(e,n){(function(o,l){e.exports=l()})(xe,function(){return function(o,l,r){var i=l.prototype,a=i.format;r.en.ordinal=function(s){var c=["th","st","nd","rd"],m=s%100;return"["+s+(c[(m-20)%10]||c[m]||c[0])+"]"},i.format=function(s){var c=this,m=this.$locale();if(!this.isValid())return a.bind(this)(s);var d=this.$utils(),f=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(g){switch(g){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return m.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return m.ordinal(c.week(),"W");case"w":case"ww":return d.s(c.week(),g==="w"?1:2,"0");case"W":case"WW":return d.s(c.isoWeek(),g==="W"?1:2,"0");case"k":case"kk":return d.s(String(c.$H===0?24:c.$H),g==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return g}});return a.bind(this)(f)}}})})(Ic);const qc=Nn;var Bn={},zc={get exports(){return Bn},set exports(e){Bn=e}};(function(e,n){(function(o,l){e.exports=l()})(xe,function(){return function(o,l,r){var i=l.prototype,a=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,g,k,b,h){var S=f.name?f:f.$locale(),u=a(S[g]),p=a(S[k]),w=u||p.map(function(v){return v.slice(0,b)});if(!h)return w;var y=S.weekStart;return w.map(function(v,C){return w[(C+(y||0))%7]})},c=function(){return r.Ls[r.locale()]},m=function(f,g){return f.formats[g]||function(k){return k.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(b,h,S){return h||S.slice(1)})}(f.formats[g.toUpperCase()])},d=function(){var f=this;return{months:function(g){return g?g.format("MMMM"):s(f,"months")},monthsShort:function(g){return g?g.format("MMM"):s(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):s(f,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):s(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):s(f,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return m(f.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return d.bind(this)()},r.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return r.weekdays()},weekdaysShort:function(){return r.weekdaysShort()},weekdaysMin:function(){return r.weekdaysMin()},months:function(){return r.months()},monthsShort:function(){return r.monthsShort()},longDateFormat:function(g){return m(f,g)},meridiem:f.meridiem,ordinal:f.ordinal}},r.months=function(){return s(c(),"months")},r.monthsShort=function(){return s(c(),"monthsShort","months",3)},r.weekdays=function(f){return s(c(),"weekdays",null,null,f)},r.weekdaysShort=function(f){return s(c(),"weekdaysShort","weekdays",3,f)},r.weekdaysMin=function(f){return s(c(),"weekdaysMin","weekdays",2,f)}}})})(zc);const Mc=Bn;var Vn={},Pc={get exports(){return Vn},set exports(e){Vn=e}};(function(e,n){(function(o,l){e.exports=l()})(xe,function(){var o="week",l="year";return function(r,i,a){var s=i.prototype;s.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var m=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(l).add(1,l).date(m),f=a(this).endOf(o);if(d.isBefore(f))return 1}var g=a(this).startOf(l).date(m).startOf(o).subtract(1,"millisecond"),k=this.diff(g,o,!0);return k<0?a(this).startOf("week").week():Math.ceil(k)},s.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Pc);const xc=Vn;var An={},Rc={get exports(){return An},set exports(e){An=e}};(function(e,n){(function(o,l){e.exports=l()})(xe,function(){return function(o,l){l.prototype.weekYear=function(){var r=this.month(),i=this.week(),a=this.year();return i===1&&r===11?a+1:r===0&&i>=52?a-1:a}}})})(Rc);const Lc=An;var En={},Oc={get exports(){return En},set exports(e){En=e}};(function(e,n){(function(o,l){e.exports=l()})(xe,function(){return function(o,l,r){l.prototype.dayOfYear=function(i){var a=Math.round((r(this).startOf("day")-r(this).startOf("year"))/864e5)+1;return i==null?a:this.add(i-a,"day")}}})})(Oc);const Fc=En;var Tn={},Uc={get exports(){return Tn},set exports(e){Tn=e}};(function(e,n){(function(o,l){e.exports=l()})(xe,function(){return function(o,l){l.prototype.isSameOrAfter=function(r,i){return this.isSame(r,i)||this.isAfter(r,i)}}})})(Uc);const Hc=Tn;var $n={},Kc={get exports(){return $n},set exports(e){$n=e}};(function(e,n){(function(o,l){e.exports=l()})(xe,function(){return function(o,l){l.prototype.isSameOrBefore=function(r,i){return this.isSame(r,i)||this.isBefore(r,i)}}})})(Kc);const jc=$n;qe.extend(Mc);qe.extend(qc);qe.extend(Dc);qe.extend(xc);qe.extend(Lc);qe.extend(Fc);qe.extend(Hc);qe.extend(jc);const Q={format(e,n){return qe(e).format(n)},parser(e,n){return qe(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,o){const r=new Date(e+"/"+n+"/"+o).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][r]},getMonthPreDay(e,n){let l=new Date(e+"/"+n+"/01").getDay();return l==0&&(l=7),l},getMonthDays(e,n){return/^0/.test(n)&&(n=n.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][n]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,n){n=n||"-";const o=e.getFullYear(),l=this.getNumTwoBit(e.getMonth()+1),r=this.getNumTwoBit(e.getDate());return[o,l,r].join(n)},getDay(e){e=e||0;let n=new Date;const o=e*(1e3*60*60*24);return n=new Date(n.getTime()+o),this.date2Str(n)},compareDate(e,n){let o;typeof e=="string"?o=new Date(e.replace("-","/").replace("-","/")):o=e;let l;return typeof n=="string"?l=new Date(n.replace("-","/").replace("-","/")):l=n,!(o>=l)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let o;typeof e=="string"?o=new Date(e).getTime():o=e.getTime();let l;return typeof n=="string"?l=new Date(n).getTime():l=n,o==l},inScope4Day(e,n,o){const l=new Date(new Date(n).setDate(n.getDate()+o)),r=e.getTime(),i=l.getTime(),a=n.getTime();return i>a?r>=a&&r<=i:r>=i&&r<=a},inScope4Month(e,n,o){const l=new Date(new Date(n).setMonth(n.getMonth()+o)),r=e.getTime(),i=l.getTime(),a=n.getTime();return i>a?r>=a&&r<=i:r>=i&&r<=a}},Ro=new Date().getFullYear(),eo={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss",["month-day"]:"MM-DD",datehour:"YYYY-MM-DD HH"},Ht=(e,n,o)=>{let l;if(De(n)?l=n:typeof n=="string"&&ce(n)>0?l=Q.parser(n,o):l=new Date,l.toString()==="Invalid Date")return null;let r=Math.max(l.getTime(),e.minDate.getTime());return r=Math.min(r,e.maxDate.getTime()),new Date(r)},Dn=(e,n,o)=>{De(n)||(n=e.minDate);let l=Math.max(n.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),Q.format(new Date(l),o)};let In={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(Ro-10,0,1),validator:De},maxDate:{type:Date,default:()=>new Date(Ro+10,11,31),validator:De},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},isWrapTeleport:{type:Boolean,default:!0}};const{create:Wc,scope:Yc}=O("date-picker"),Xc=Wc({components:{[St.name]:St},props:{...In},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:o}=_.useFoxI18n(Yc),l={day:o("day"),year:o("year"),month:o("month"),hour:o("hour"),minute:o("minute"),seconds:o("seconds")},r=t.ref(!1);t.watch(()=>e.visible,u=>{r.value=u});function i(u,p){return new Date(u,p,0).getDate()}const a=(u,p)=>{const w=e[`${u}Date`],y=w.getFullYear();let v=1,C=1,N=0,V=0;u==="max"&&(v=12,C=i(p.getFullYear(),p.getMonth()+1),N=23,V=59);const A=V;return p.getFullYear()===y&&(v=w.getMonth()+1,p.getMonth()+1===v&&(C=w.getDate(),p.getDate()===C&&(N=w.getHours(),p.getHours()===N&&(V=w.getMinutes())))),{[`${u}Year`]:y,[`${u}Month`]:v,[`${u}Date`]:C,[`${u}Hour`]:N,[`${u}Minute`]:V,[`${u}Seconds`]:A}},s=t.computed(()=>{if(!g.value)return[];const{maxYear:u,maxDate:p,maxMonth:w,maxHour:y,maxMinute:v,maxSeconds:C}=a("max",g.value),{minYear:N,minDate:V,minMonth:A,minHour:E,minMinute:q,minSeconds:U}=a("min",g.value);let L=[{type:"year",range:[N,u]},{type:"month",range:[A,w]},{type:"day",range:[V,p]},{type:"hour",range:[E,y]},{type:"minute",range:[q,v]},{type:"seconds",range:[U,C]}];switch(e.type){case"date":L=L.slice(0,3);break;case"datetime":L=L.slice(0,5);break;case"time":L=L.slice(3,6);break;case"month-day":L=L.slice(1,3);break;case"datehour":L=L.slice(0,4);break}return L}),c=(u,p,w)=>{if(!(p>u))return null;const y=[];for(;u<=p;)e.isShowChinese?y.push({text:u+l[w],value:u}):y.push({text:`${u}`,value:u}),w==="minute"?u+=e.minuteStep:u++;return y},m=t.computed(()=>{let u=[];return s.value.forEach(p=>{let w=c(p.range[0],p.range[1],p.type);w&&u.push(w)}),u}),d=(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(),g=t.ref(null);t.watchEffect(()=>{let u,p=e.modelValue;if(typeof p=="string"?p.length==0?u=new Date:e.valueFormat?u=Ht(e,e.modelValue,e.valueFormat):u=Ht(e,p,eo[e.type]):De(p)?u=p:u=new Date,!!u&&(!g.value||u.getTime()!==g.value.getTime())){g.value=u;let w=[];s.value.forEach(y=>{let v=d(y.type,u);w.push(v)}),f.value=w}});const k=u=>{if(e.type==="date"){let p=u;g.value=new Date(p[0],p[1]-1,Math.min(p[2],i(p[0],p[1])))}else if(e.type==="datetime"){let p=u;g.value=new Date(p[0],p[1]-1,Math.min(p[2],i(p[0],p[1])),p[3],p[4])}else if(e.type==="datehour"){let p=u;g.value=new Date(p[0],p[1]-1,Math.min(p[2],i(p[0],p[1])),p[3])}else if(e.type==="time"){let p=u,w=g.value??new Date,y=new Date(w.getFullYear(),w.getMonth(),w.getDate(),p[0],p[1],p[2]);g.value=y}else if(e.type==="month-day"){let p=u,w=g.value??new Date,y=new Date(w.getFullYear(),p[0]-1,p[1]);g.value=y}f.value=u};return{columns:m,dateIndexs:f,show:r,onClose:()=>{r.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:u=>{k(u),r.value=!1;let p=g.value??new Date;if(e.valueFormat){let w=Dn(e,p,e.valueFormat);n("update:modelValue",w)}else n("update:modelValue",p);n("update:visible",!1),n("confirm",u)},onClear:()=>{n("clear")}}}});function Qc(e,n,o,l,r,i){const a=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(a,{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,isWrapTeleport:e.isWrapTeleport},{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","isWrapTeleport"])}const to=K(Xc,[["render",Qc]]);function Gc(e){let n=e.format;if(!n){let o=e.type??"date";n=eo[o]}return n}function Zc(e,n,o,l,r,i=!1){return{props:{...ue,...me,...In,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(a,s){const c=Ee(t.computed(()=>a.disabled)),m=Pe(t.computed(()=>a.readonly)),{emitEvent:d}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!c.value&&!m.value}},a.prop??s.attrs.name),{toLocaleRefs:f}=_.useFoxI18n(n),g=f(a,["placeholder"]),k=t.ref(!1),h=Ie(a,"modelValue",T=>T==null?null:typeof T=="string"?T.length==0?null:a.valueFormat?Ht(a,T,a.valueFormat)??T:Ht(a,T,eo[a.type])??T:De(T)?T:null),S=t.computed(()=>{if(!h.value)return"";const T=Gc(a);return Dn(a,h.value,T)}),u="fox-input-item",p=t.computed(()=>({[u]:!0,[`${u}__disabled`]:c.value})),w=Se(t.computed(()=>a.textAlign),"textAlign"),y=t.computed(()=>({textAlign:w.value??"right"})),v=t.ref(!1),C=()=>{v.value=!0},N=()=>{v.value=!1};s.expose({showPicker:C,hidePicker:N});const V=T=>{v.value=T},A=T=>{if(h.value=T,a.valueFormat){let F=Dn(a,T,a.valueFormat);d("update:modelValue",F,{}),d("change",F,{})}else d("update:modelValue",T,{}),d("change",T,{})},E=T=>{let M=T.target.value;k.value=!0,d("focus",M,T)},q=T=>{setTimeout(()=>{k.value=!1},0);let M=T.target.value;a.maxLength&&M.length>Number(a.maxLength)&&(M=M.slice(0,Number(a.maxLength))),d("blur",M,T)},U=t.computed(()=>({[`${u}__append`]:!0})),L=t.computed(()=>ce(a.unit)>0),z=t.computed(()=>ce(a.unit)>0&&!k.value),$=t.computed(()=>({hidden:!z.value})),D=T=>{h.value="",d("update:modelValue","",T),d("change","",T),d("clear",""),N()},I=t.computed(()=>a.clearable&&!c.value&&!m.value),P=t.computed(()=>{let T=ce(h.value)>0;return a.clearable&&T&&k.value}),B=T=>{P.value?D(T):C()},x=t.computed(()=>P.value&&I.value?"close-little":"date"),R=t.computed(()=>({action:!0}));return()=>{const T={class:p.value,style:y.value,type:"text",maxlength:a.maxLength,placeholder:g.placeholder.value,readonly:!0,unselectable:"on",value:S.value,onClick:C,onFocus:E,onBlur:q};i&&(T.disabled=!0);const F=[],M=t.h("input",T);F.push(M);const H=[],j={name:x.value,size:"10px"},W=t.h(l,j),Y={class:R.value,onClick:B},X=t.h("view",Y,{default:()=>[W]});if(H.push(X),L.value){const ge=t.h("view",{class:$.value},[a.unit]);H.push(ge)}const G={class:U.value},ne=t.h("view",G,{default:()=>H});F.push(ne);const ee={default:()=>F};if(s.slots.default){const ge=s.slots.default();ee.label=()=>ge}if(s.slots.prepend){const ge=s.slots.prepend();ee.prepend=()=>ge}if(s.slots.append){const ge=s.slots.append();ee.append=()=>ge}const ae=ke(a,In);ae.valueFormat=null,ae.disabled=!1,ae.readonly=c.value||m.value,ae.visible=v.value,ae["onUpdate:visible"]=V,ae.modelValue=h.value,ae["onUpdate:modelValue"]=A,ae.onClear=D;const se={};if(s.slots.top){const ge=s.slots.top();se.top=()=>ge}if(s.slots.bottom){const ge=s.slots.bottom();se.default=()=>ge}const de=t.h(r,ae,se);ee.hide=()=>[de];const te=ke(a,me,ue);return t.h(o,te,ee)}}}}const{create:Jc,componentName:_c,scope:eu}=O("date-item"),Fl=Jc(Zc(_c,eu,Te,re,to,!1)),{create:tu,scope:nu}=O("calendar-pane"),ou=tu({props:{type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},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:null},startDate:{type:String,default:Q.getDay(0)},endDate:{type:String,default:Q.getDay(365)}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:o}){const{localeArrayRef:l,toLocaleRefs:r,t:i}=_.useFoxI18n(nu),a=l("weekdays"),s=r(e,["title","confirmText","startText","endText"]),c=t.ref(null),m=t.ref(null),d=t.ref(null),f=t.ref(null),g=t.ref(0),k=t.computed(()=>u.monthsData.slice(u.defaultRange[0],u.defaultRange[1])),b=t.computed(()=>o.btn),h=t.computed(()=>o.topInfo),S=t.computed(()=>o.bottomInfo),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:"calendar-month-day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,avgHeight:0,monthsNum:0}),p=T=>T.split("-"),w=T=>Q.isEqual(u.currDate[0],T),y=T=>Q.isEqual(u.currDate[1],T),v=(T,F,M)=>F.curData[0]+"-"+F.curData[1]+"-"+Q.getNumTwoBit(+T.day),C=(T,F,M)=>{const H=v(T,F);return T.type=="curr"?!u.isRange&&Q.isEqual(u.currDate,H)||u.isRange&&(w(H)||y(H))?`${u.dayPrefix}-active`:u.propStartDate&&Q.compareDate(H,u.propStartDate)||u.propEndDate&&Q.compareDate(u.propEndDate,H)?`${u.dayPrefix}-disabled`:u.isRange&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&Q.compareDate(u.currDate[0],H)&&Q.compareDate(H,u.currDate[1])?`${u.dayPrefix}-choose`:null:`${u.dayPrefix}-disabled`},N=()=>{(u.isRange&&u.chooseData.length==2||!u.isRange)&&(n("choose",u.chooseData),e.poppable&&n("update"))},V=(T,F,M,H)=>{if(C(T,F)!=`${u.dayPrefix}-disabled`){let j=[...F.curData];j[2]=typeof T.day=="number"?Q.getNumTwoBit(T.day):T.day,j[3]=`${j[0]}-${j[1]}-${j[2]}`,j[4]=Q.getWhatDay(+j[0],+j[1],+j[2]),u.isRange?(Object.values(u.currDate).length==2?u.currDate=[j[3]]:Q.compareDate(u.currDate[0],j[3])?Array.isArray(u.currDate)&&u.currDate.push(j[3]):Array.isArray(u.currDate)&&u.currDate.unshift(j[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[...j]:Q.compareDate(u.chooseData[3],j[3])?u.chooseData=[[...u.chooseData],[...j]]:u.chooseData=[[...j],[...u.chooseData]]):(u.currDate=j[3],u.chooseData=[...j]),M||(n("select",u.chooseData),e.isAutoBackFill&&N())}},A=T=>{const F=T=="prev"?u.monthsData[0]:u.monthsData[u.monthsData.length-1];let M=parseInt(F.curData[0]),H=parseInt(F.curData[1].toString().replace(/^0/,""));switch(T){case"prev":H==1&&(M-=1),H=H==1?12:--H;break;case"next":H==12&&(M+=1),H=H==12?1:++H;break}return[M,Q.getNumTwoBit(H),Q.getMonthDays(String(M),String(H))]},E=(T,F,M)=>{let{year:H,month:j}=M;return F=="prev"&&T>=7&&(T-=7),Array.from(Array(T),(W,Y)=>({day:Y+1,type:F,year:H,month:j}))},q=(T,F,M,H)=>{let{year:j,month:W}=M;return F=="prev"&&T>=7&&(T-=7),Array.from(Array(H),(X,G)=>({day:G+1,type:F,year:j,month:W})).slice(H-T)},U=(T,F)=>{const M=Q.getMonthPreDay(+T[0],+T[1]);let H=T[1]-1,j=T[0];H<=0&&(H=12,j+=1);const W=Q.getMonthDays(T[0],T[1]),Y=Q.getMonthDays(j+"",H+""),X={year:T[0],month:T[1]},G={curData:T,title:i("monthTitle",{year:X.year,month:X.month}),monthData:[...q(M,"prev",{month:H,year:j},Y),...E(W,"curr",X)]};G.cssHeight=39+(G.monthData.length>35?384:320);let ne=0;u.monthsData.length>0&&(ne=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),G.cssScrollHeight=ne,F=="next"?(!u.endData||!Q.compareDate(`${u.endData[0]}-${u.endData[1]}-${Q.getMonthDays(u.endData[0],u.endData[1])}`,`${T[0]}-${T[1]}-${T[2]}`))&&u.monthsData.push(G):!u.startData||!Q.compareDate(`${T[0]}-${T[1]}-${T[2]}`,`${u.startData[0]}-${u.startData[1]}-01`)?u.monthsData.unshift(G):u.unLoadPrev=!0},L=()=>{let T=e.startDate?e.startDate:Q.getDay(0),F=e.endDate?e.endDate:Q.getDay(365);u.propStartDate=T,u.propEndDate=F,u.startData=p(T),u.endData=p(F),!e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length<=0?u.currDate=u.isRange?[Q.date2Str(new Date),Q.getDay(1)]:Q.date2Str(new Date):u.currDate=u.isRange?[...e.defaultValue]:e.defaultValue;const M={year:Number(u.startData[0]),month:Number(u.startData[1])},H={year:Number(u.endData[0]),month:Number(u.endData[1])};let j=H.month-M.month;H.year-M.year>0&&(j=j+12*(H.year-M.year)),U(u.startData,"next");let W=1;do U(A("next"),"next");while(W++<j);u.monthsNum=j,u.isRange&&Array.isArray(u.currDate)?(T&&Q.compareDate(u.currDate[0],T)&&u.currDate.splice(0,1,T),F&&Q.compareDate(F,u.currDate[1])&&u.currDate.splice(1,1,F),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]):(T&&Q.compareDate(u.currDate,T)?u.currDate=T:F&&!Q.compareDate(u.currDate,F)&&(u.currDate=F),u.defaultData=[...p(u.currDate)]);let Y=0,X=0;u.monthsData.forEach((ee,ae)=>{let se=i("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]});ee.title==se&&(Y=ae),u.isRange&&(se=i("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]}),ee.title==se&&(X=ae))}),z(j,Y),u.currentIndex=Y,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.isRange?(V({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),V({day:u.defaultData[5],type:"curr"},u.monthsData[X],!0)):V({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0);let G=u.monthsData[u.monthsData.length-1],ne=G.cssHeight+G.cssScrollHeight;Fe(()=>{c?.value&&m?.value&&f?.value&&(g.value=c.value.clientHeight,m.value.style.height=`${ne}px`,c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(ne/(j+1))},z=(T,F)=>{T>=3?F>0&&F<T?u.defaultRange=[F-1,F+3]:F==0?u.defaultRange=[F,F+4]:F==T&&(u.defaultRange=[F-2,F+2]):u.defaultRange=[0,T+2];let M=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=M},$=(T,F)=>u.isRange&&T.type=="curr"&&C(T,F)=="calendar-month-day-active",D=(T,F)=>$(T,F)&&w(v(T,F)),I=(T,F)=>u.currDate.length>=2&&y(v(T,F))?$(T,F):!1,P=(T,F)=>{if(u.currDate.length>=2)return Q.isEqual(u.currDate[0],u.currDate[1])},B=T=>{const F=`${T.year}-${T.month}-${T.day<10?"0"+T.day:T.day}`;return Q.isEqual(F,Q.date2Str(new Date))},x=T=>{const F=T.target.scrollTop;let M=Math.floor(F/u.avgHeight);if(M==0)F>=u.monthsData[M+1].cssScrollHeight&&(M+=1);else if(M>0&&M<u.monthsNum-1)F>=u.monthsData[M+1].cssScrollHeight&&(M+=1),F<u.monthsData[M].cssScrollHeight&&(M-=1);else{const H=Math.round(F+g.value);H<u.monthsData[M].cssScrollHeight+u.monthsData[M].cssHeight&&F>u.monthsData[M-1].cssScrollHeight&&(M-=1),M+1<=u.monthsNum&&H>=u.monthsData[M+1].cssScrollHeight+u.monthsData[M+1].cssHeight&&(M+=1),F<u.monthsData[M-1].cssScrollHeight&&(M-=1)}u.currentIndex!==M&&(u.currentIndex=M,z(u.monthsNum,M)),u.yearMonthTitle=u.monthsData[M].title},R=()=>{u.chooseData.splice(0),u.monthsData.splice(0),L()};return L(),t.watch(()=>e.defaultValue,T=>{T&&e.poppable&&R()}),{weeks:a,compConthsData:k,showTopBtn:b,topInfo:h,bottomInfo:S,rangeTip:P,mothsViewScroll:x,getClass:C,isStartTip:D,isEndTip:I,chooseDay:V,isCurrDay:B,confirm:N,monthsPanel:m,months:c,weeksPanel:d,viewArea:f,...t.toRefs(u),...t.toRefs(e),...s}}}),lu={key:0,class:"calendar-title"},au={key:1,class:"calendar-top-slot"},ru={key:2,class:"calendar-curr-month"},su={class:"calendar-weeks",ref:"weeksPanel"},iu={class:"calendar-months-panel",ref:"monthsPanel"},cu={class:"calendar-month-title"},uu={class:"calendar-month-con"},du=["onClick"],fu={class:"calendar-day"},mu={key:0,class:"calendar-curr-tips calendar-curr-tips-top"},pu={key:1,class:"calendar-curr-tips calendar-curr-tips-bottom"},hu={key:2,class:"calendar-curr-tip-curr"},gu={key:4,class:"calendar-day-tip"},yu={key:0,class:"fox-calendar-footer"};function vu(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar fox-calendar-taro",{"fox-calendar-tile":!e.poppable,"fox-calendar-nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar-header",{"fox-calendar-header-tile":!e.poppable}])},[e.showTitle?(t.openBlock(),t.createElementBlock("view",lu,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",au,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",ru,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",su,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(a,s)=>(t.openBlock(),t.createElementBlock("view",{class:"calendar-week-item",key:s},t.toDisplayString(a),1))),128))],512)],2),t.createElementVNode("view",{class:"fox-calendar-content",ref:"months",onScroll:n[0]||(n[0]=(...a)=>e.mothsViewScroll&&e.mothsViewScroll(...a))},[t.createElementVNode("view",iu,[t.createElementVNode("view",{class:"viewArea",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(a,s)=>(t.openBlock(),t.createElementBlock("view",{class:"calendar-month",key:s},[t.createElementVNode("view",cu,t.toDisplayString(a.title),1),t.createElementVNode("view",uu,[t.createElementVNode("view",{class:t.normalizeClass(["calendar-month-item",e.type==="range"?"month-item-range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.monthData,(c,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["calendar-month-day",e.getClass(c,a)]),onClick:d=>e.chooseDay(c,a)},[t.createElementVNode("view",fu,[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",mu,[t.renderSlot(e.$slots,"topInfo",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",pu,[t.renderSlot(e.$slots,"bottomInfo",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",hu," 今天 ")):t.createCommentVNode("",!0),e.isStartTip(c,a)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["calendar-day-tip",{"calendar-curr-tips-top":e.rangeTip(c,a)}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,a)?(t.openBlock(),t.createElementBlock("view",gu,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,du))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",yu,[t.createElementVNode("view",{class:"calendar-confirm-btn",onClick:n[1]||(n[1]=(...a)=>e.confirm&&e.confirm(...a))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const Lo=K(ou,[["render",vu]]),ct=e=>typeof e=="string"?e:De(e)?Q.date2Str(e):"",Ul=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),qn={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},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,Date,Array],default:null},startDate:{type:[String,Date],default:Q.getDay(0)},endDate:{type:[String,Date],default:Q.getDay(365)}},{create:ku}=O("calendar"),Su=ku({components:{[Lo.name]:Lo},props:{...qn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:o}){const l=t.computed(()=>e.type==="range"),r=t.computed(()=>{let p;if(Ul(e.defaultValue))p=l.value?[Q.date2Str(new Date),Q.getDay(1)]:Q.date2Str(new Date);else if(l.value)if(Array.isArray(e.defaultValue)&&e.defaultValue.length==2){let w=ct(e.defaultValue[0]),y=ct(e.defaultValue[1]);p=[w,y]}else p=[Q.date2Str(new Date),Q.getDay(1)];else{let w=Array.isArray(e.defaultValue)?e.defaultValue[0]:e.defaultValue;p=ct(w??new Date)}return p}),i=t.computed(()=>ct(e.startDate)),a=t.computed(()=>ct(e.endDate)),s=t.computed(()=>o.btn),c=t.computed(()=>o.topInfo),m=t.computed(()=>o.day),d=t.computed(()=>o.bottomInfo);let f=t.ref(e.visible);const g=t.ref(null),k=()=>{f.value=!1,n("update:visible",!1)},b=()=>{f.value=!1,n("close"),n("update:visible",!1)},h=p=>{b(),n("choose",p)},S=()=>{b()},u=p=>{n("select",p)};return t.watch(()=>e.visible,p=>{f.value=p}),{defaultValue:r,startDateStr:i,endDateStr:a,closePopup:S,update:k,close:b,choose:h,select:u,calendarRef:g,showTopBtn:s,topInfo:c,dayInfo:m,bottomInfo:d}}});function bu(e,n,o,l,r,i){const a=t.resolveComponent("fox-calendar-pane"),s=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(s,{key:0,visible:e.visible,position:"bottom",round:"",closeable:!0,onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,"destroy-on-close":!0,style:{height:"85vh"}},{default:t.withCtx(()=>[e.visible?(t.openBlock(),t.createBlock(a,{key:0,props:"",ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"show-today":e.showToday,"start-date":e.startDateStr,"end-date":e.endDateStr,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle},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:"topInfo",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"topInfo",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottomInfo",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottomInfo",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","show-today","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title"])):t.createCommentVNode("",!0)]),_:3},8,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(a,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDateStr,"end-date":e.endDateStr,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle},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:"topInfo",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"topInfo",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottomInfo",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottomInfo",{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","onClose","onChoose","onSelect","show-title","show-sub-title"]))}const no=K(Su,[["render",bu]]),nn=(e,n)=>{let o;return De(e)?o=e:typeof e=="string"&&ce(e)>0?o=Q.parser(e,n):o=new Date,o},Xe=(e,n,o)=>(De(n)||(n=new Date),Q.format(n,o)),Qe=e=>{let n=`${e.getFullYear()}`,o=`${e.getMonth()+1}`,l=`${e.getDate()}`,r=Q.date2Str(e),i=Q.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,o,l,r,i]};function Cu(e,n,o,l,r,i=!1){return{props:{...ue,...me,...qn,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(a,s){const c=Ee(t.computed(()=>a.disabled)),m=Pe(t.computed(()=>a.readonly)),{emitEvent:d}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!c.value&&!m.value}},a.prop??s.attrs.name),{toLocaleRefs:f}=_.useFoxI18n(n),g=f(a,["placeholder"]),k=t.ref(!1),b=t.computed(()=>a.type==="range"),h=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),S=()=>{h.startDate!==null&&(h.startDate=null,h.endDate=null,h.startArray=[],h.endArray=[])},u=(M,H="one",j="YYYY-MM-DD")=>{if(Ul(M)){S();return}if(b.value&&Array.isArray(M)&&M.length==2){let W,Y;typeof M[0]=="string"?(W=nn(M[0],j),Y=nn(M[1],j)):(W=M[0],Y=M[1]);let X=Qe(W),G=Qe(Y);(h.startDate===null||h.startDate.getTime()!==W.getTime()||h.endDate?.getTime()!==Y.getTime())&&(h.startDate=W,h.startArray=X,h.endDate=Y,h.endArray=G)}else{let W;typeof M=="string"?W=nn(M,j):W=M;let Y=Qe(W);(h.startDate===null||h.startDate.getTime()!==W.getTime())&&(h.startDate=W,h.startArray=Y)}};u(a.modelValue,a.type,a.valueFormat),t.watch(()=>a.modelValue,M=>{u(M,a.type,a.valueFormat)});const p=t.computed(()=>{if(h.startDate===null)return"";if(b.value){let M=Xe(a,h.startDate,a.format),H=Xe(a,h.endDate,a.format);return`${M} ${a.rangeSeparator} ${H}`}else{let M=Xe(a,h.startDate,a.format);return a.showWeek&&(M=`${M} ${h.startArray[4]}`),M}}),w=t.computed(()=>{if(h.startDate===null)return null;if(b.value){let M=Q.date2Str(h.startDate),H=Q.date2Str(h.endDate??new Date);return[M,H]}else return Q.date2Str(h.startDate)}),y="fox-input-item",v=t.computed(()=>({[y]:!0,[`${y}__disabled`]:c.value})),C=Se(t.computed(()=>a.textAlign),"textAlign"),N=t.computed(()=>({textAlign:C.value??"right"})),V=t.ref(!1),A=()=>{m.value||c.value||(V.value=!0)},E=M=>{V.value=M},q=M=>{if(M){if(b.value&&Array.isArray(M)){let H=M[0],j=oe(H[0]),W=oe(H[1]),Y=oe(H[2]),X=new Date(j,W-1,Y),G=M[1];j=oe(G[0]),W=oe(G[1]),Y=oe(G[2]);let ne=new Date(j,W-1,Y);if(h.startDate=X,h.startArray=Qe(X),h.endDate=ne,h.endArray=Qe(ne),a.valueFormat){let ee=Xe(a,X,a.valueFormat),ae=Xe(a,ne,a.valueFormat);d("update:modelValue",[ee,ae],{})}else d("update:modelValue",[X,ne],{})}else{let H=M,j=oe(H[0]),W=oe(H[1]),Y=oe(H[2]),X=new Date(j,W-1,Y);if(h.startDate=X,h.startArray=Qe(X),a.valueFormat){let G=Xe(a,X,a.valueFormat);d("update:modelValue",G,{})}else d("update:modelValue",X,{})}d("change",M,{})}},U=M=>{let j=M.target.value;k.value=!0,d("focus",j,M)},L=M=>{setTimeout(()=>{k.value=!1},0);let j=M.target.value;a.maxLength&&j.length>Number(a.maxLength)&&(j=j.slice(0,Number(a.maxLength))),d("blur",j,M)},z=t.computed(()=>({[`${y}__append`]:!0})),$=t.computed(()=>ce(a.unit)>0),D=t.computed(()=>ce(a.unit)>0&&!k.value),I=t.computed(()=>({hidden:!D.value})),P=M=>{S(),d("update:modelValue",null,M),d("change","",M),d("clear","")},B=t.computed(()=>a.clearable&&!c.value&&!m.value),x=t.computed(()=>{let M=ce(p.value)>0;return a.clearable&&M&&k.value}),R=M=>{x.value?P(M):A()},T=t.computed(()=>x.value&&B.value?"close-little":"date"),F=t.computed(()=>({action:!0}));return()=>{const M={class:v.value,style:N.value,type:"text",maxlength:a.maxLength,placeholder:g.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:A,onFocus:U,onBlur:L};i&&(M.disabled=!0);const H=[],j=t.h("input",M);H.push(j);const W=[],Y={name:T.value,size:"10px"},X=t.h(r,Y),G={class:F.value,onClick:R},ne=t.h("view",G,{default:()=>[X]});if(W.push(ne),$.value){const we=t.h("view",{class:I.value},[a.unit]);W.push(we)}const ee={class:z.value},ae=t.h("view",ee,{default:()=>W});H.push(ae);const se={default:()=>H};s.slots.default&&(se.label=s.slots.default),s.slots.prepend&&(se.prepend=s.slots.prepend),s.slots.append&&(se.append=s.slots.append);const de=ke(a,qn);de.visible=V.value,de["onUpdate:visible"]=E,de["default-value"]=w.value,de.onChoose=q;const te={};if(s.slots.btn){const we=s.slots.btn();te.btn=()=>we}s.slots.day&&(te.day=s.slots.day),s.slots.topInfo&&(te.topInfo=s.slots.topInfo),s.slots.bottomInfo&&(te.bottomInfo=s.slots.bottomInfo);const At=t.h(o,de,te);se.hide=()=>[At];const ge=ke(a,me,ue);return t.h(l,ge,se)}}}}const{componentName:wu,create:Nu,scope:Bu}=O("calendar-item"),Hl=Nu(Cu(wu,Bu,no,Te,re,!1)),zn={justify:{type:String,default:"space-between"},align:{type:String,default:"flex-start"},wrap:{type:String,default:"nowrap"},labelWidth:{type:[String,Number]},labelPosition:{type:String},position:{type:String,default:"left"},shape:{type:String,default:"round"},disabled:{type:Boolean,default:!1},iconName:{type:String,required:!1,default:"check-normal"},iconActiveName:{type:String,required:!1,default:"check-checked"},iconSize:{type:[String,Number],required:!1,default:""},iconClassPrefix:{type:String,default:"fox-icon"},iconFontClassName:{type:String,default:"foxui-iconfont"}};function Vu(e,n){return{props:{...zn,modelValue:{type:[String,Number,Boolean,Object],required:!1},value:{type:[String,Number,Boolean,Object],required:!1}},emits:["click","update:modelValue"],setup(o,l){const r=(S,u)=>`${e}__${S}-${u}`,i=t.computed(()=>`
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
${r("justify",o.justify)}
|
|
12
|
-
${r("align",o.align)}
|
|
13
|
-
${r("flex",o.wrap)}
|
|
14
|
-
${e}
|
|
15
|
-
`);let a=t.inject("parent",null);const s=t.computed(()=>a===null?o.value===void 0||o.value===null?!1:Ae(o.value,o.modelValue):a.currentValue===null?!1:dl(o.value,a.currentValue)!==-1),c=t.computed(()=>a&&a.disabled||o.disabled),m=t.computed(()=>c.value?"fox-checkbox__icon--disable":s.value?o.indeterminate?"fox-checkbox__icon--indeterminate":"fox-checkbox__icon":"fox-checkbox__icon--unchecked"),d=()=>{const{iconName:p,iconSize:w,iconActiveName:y,iconClassPrefix:v,iconFontClassName:C,iconIndeterminateName:N}=t.toRefs(o);return t.h(n,{name:s.value?o.indeterminate?N.value:y.value:p.value,size:w.value,class:m.value,classPrefix:v.value,fontClassName:C.value})},f=t.computed(()=>{let p={[`${e}__label`]:!0,[`${e}__label--disabled`]:c.value};return o.labelPosition&&(o.labelPosition==="top"?p[`${e}__label--top`]=!0:o.labelPosition==="right"?p[`${e}__label--right`]=!0:p[`${e}__label--left`]=!0),p}),g=t.computed(()=>o.labelWidth?{width:Z(o.labelWidth)}:{}),k=()=>t.h("view",{class:f.value,style:g.value},l.slots.default?.());let b="";const h=p=>{if(c.value)return;a&&a.updateValue(o.value),b="click";let w=s.value?null:o.value;l.emit("update:modelValue",w),l.emit("click",w,p)};t.watch(()=>o.modelValue,p=>{b=="click"?b="":l.emit("change",p)});const S={toggle(){if(c.value)return;a&&a.updateValue(o.value);let p=s.value?null:o.value;l.emit("update:modelValue",p)},select(){if(c.value||s.value)return;a&&a.updateValue(o.value);let p=o.value;l.emit("update:modelValue",p)},clear(){c.value||s.value||(a&&a.updateValue(o.value),l.emit("update:modelValue",null))}};l.expose(S);const u=()=>t.h("view",{class:`${e}__button ${s.value&&`${e}__button--active`} ${o.disabled?`${e}__button--disabled`:""}`},l.slots.default?.());return()=>{let p=[];return o.shape==="button"?p=[u()]:o.position==="left"?p=[k(),d()]:p=[d(),k()],t.h("view",{class:i.value,onClick:h},{default:()=>p})}}}),{componentName:Pu,create:xu}=O("checkbox"),lo=xu(Mu(Pu,re));function Fo(e,n,o,l="value"){for(let r=0;r<n.length;r++){let i=n[r];if(l==="text"){if(Rt(e,i)===o)return r}else if(l==="item"){if(Ae(o,i))return r}else if(ht(e,i)===o)return r}return-1}function Rt(e,n){return typeof e.textName=="string"&&e.textName.length>0?n[e.textName]:n.text}function ht(e,n){return typeof e.valueName=="string"&&e.valueName.length>0?n[e.valueName]:n.value}function Ru(e,n,o){return typeof e.itemOptions=="function"?e.itemOptions(n,o):e.itemOptions}class Lu{proxy;constructor(n){this.proxy=n}async load(n,o,l){if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);let r=wt(this.proxy,n);return r===null?(console.error(`${n} component not found api function`),[]):(Ve(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await r(o,l))}}function Ou(){const e=t.getCurrentInstance();return new Lu(e.proxy)}function Fu(e,n){return{props:{...Mn,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textName:{type:String,required:!1,default:"text"},valueName:{type:String,required:!1,default:"value"},itemOptions:{type:[Object,Function],required:!1},column:{type:[String,Number],required:!1,default:1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},disabled:{type:[String,Boolean],required:!1},modelValue:{type:[Array,String],default:[]}},emits:["change","update:modelValue"],setup(o,l){const r=Ee(t.computed(()=>o.disabled)),{emitEvent:i}=Ce({componentName:e,get validate(){return!r.value}},o.prop??l.attrs.name),a=ze(),s=lt(),c=Se(t.toRef(o,"labelPosition"),"labelPosition",Ke.Near),m=Se(t.toRef(o,"labelWidth"),"labelWidth",Ke.Near),d=t.computed(()=>{if(s&&a){const v=je(a,!1);if(v.value.type!=="flex")return{};const C={},N=fe(v.value.column,o.span);N>0&&(C.width=`${N}%`);const V=fe(v.value.column,o.offset);V>0&&(C["margin-left"]=`${V}%`);const A=v.value.gutter/2;return A>0&&(C["padding-left"]=`${A}px`,C["padding-right"]=`${A}px`),C}return{}});let f=Ou(),g=t.ref([]);t.watchEffect(async()=>{o.source&&(g.value=await f.load("checkbox",o.source,o.params))});let k=t.ref([]);t.watch([()=>o.modelValue,()=>g.value],async([v,C])=>{let N=[];Array.isArray(v)&&v.forEach(V=>{let A=Fo(o,C,V,o.valueType);A!==-1&&N.push(A)}),k.value=N},{deep:!0});const b=t.computed(()=>{if(!o.source)return o.modelValue;let v=[];return k.value.forEach(C=>{let N=g.value[C];v.push(ht(o,N))}),v}),h=v=>{let C=[],N=[];if(g.value.length>0){let V=Fo(o,g.value,v,"value");if(V===-1)return;let A=k.value.indexOf(V);A===-1?k.value.push(V):k.value.splice(A,1),k.value.forEach(E=>{let q=g.value[E];N.push(q),o.valueType==="text"?C.push(Rt(o,q)):o.valueType==="item"?C.push(q):C.push(ht(o,q))})}else{C=b.value;let V=C.indexOf(v);V===-1?C.push(v):C.splice(V,1)}i("update:modelValue",C),i("change",C,N)},S=t.computed(()=>{let v=o.column;v<0&&(v=1);let C=100/v;return C<0&&(C=100),`${C}%`}),u=t.readonly({disabled:r,currentValue:b,updateValue:h});t.provide("parent",u);const p=function(v){},w=()=>{let v=[],C=[];k.value.forEach(N=>{let V=g.value[N];C.push(V),o.valueType==="text"?v.push(Rt(o,V)):o.valueType==="item"?v.push(V):v.push(ht(o,V))}),i("update:modelValue",v),i("change",v,C)},y={selectAll:()=>{let v=!1;for(let C=0;C<g.value.length;C++)k.value.includes(C)||(k.value.push(C),v=!0);v&&w()},clearAll:()=>{let v=!1,C=k.value.length;C>0&&(k.value.splice(0,C),v=!0),v&&w()},toggleAll:()=>{for(let v=0;v<g.value.length;v++){let C=k.value.indexOf(v);C==-1?k.value.push(v):k.value.splice(C,1)}w()},toggleReverse:()=>{let v=[];for(let C=0;C<g.value.length;C++)k.value.indexOf(C)===-1&&v.push(C);k.value=v,w()}};return l.expose(y),o.source?()=>{let v=[];return g.value.forEach((C,N)=>{let V=Rt(o,C),A=ht(o,C),E=ke(o,Mn);Object.assign(E,{style:{width:S.value},labelWidth:m.value,labelPosition:c.value,value:A});const q=Ru(o,C,N);E={...E,...q,ref:p};let U;if(l.slots.label){let L=l.slots.label?.({text:V,index:N});U=t.h(n,E,{default:()=>[L]})}else U=t.h(n,E,{default:()=>[V]});v.push(U)}),t.h("view",{class:`${e}`,style:d.value},{default:()=>v})}:()=>{let v=l.slots.default?.()??[];return t.h("view",{class:`${e}`,style:d.value,ref:p},{default:()=>v})}}}}const{componentName:Uu,create:Hu}=O("checkbox-item"),jl=Hu(Fu(Uu,lo)),Pn={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:Ku,create:ju}=O("switch"),Wu=ju({props:{...Pn},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const o=t.computed(()=>e.modelValue===e.activeValue),l=t.computed(()=>{const s=Ku;return{[s]:!0,[o.value?"switch-open":"switch-close"]:!0,[`${s}-disable`]:e.disable,[`${s}-base`]:!0}}),r=t.computed(()=>({backgroundColor:o.value?e.activeColor:e.inactiveColor}));let i="";const a=s=>{if(e.disable||e.loading)return;i="click";const c=o.value?e.inactiveValue:e.activeValue;n("update:modelValue",c),n("change",c,s)};return t.watch(()=>e.modelValue,s=>{i=="click"?i="":n("change",s)}),{classes:l,style:r,onClick:a}}}),Yu={class:"switch-button"};function Xu(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",Yu,[e.loading?(t.openBlock(),t.createBlock(a,{key:0,name:e.name,size:e.size,color:e.color},null,8,["name","size","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.modelValue]]),t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label close"},t.toDisplayString(e.inactiveText),513),[[t.vShow,!e.modelValue]])],64)):t.createCommentVNode("",!0)])],6)}const ao=K(Wu,[["render",Xu]]);function Qu(e,n,o,l){return{props:{...ue,...me,...Pn},emits:["change","update:modelValue"],setup(r,i){const a=Ee(t.computed(()=>r.disabled)),s=Pe(t.computed(()=>r.readonly)),{emitEvent:c}=Ce({componentName:e,get validate(){return!a.value&&!s.value}},r.prop??i.attrs.name),m=e,d=Ie(r,"modelValue"),f=g=>{d.value=g,c("update:modelValue",g,{}),c("change",g,{})};return()=>{const k={...ke(r,Pn),disabled:a.value,readonly:s.value,value:d.value,["onUpdate:modelValue"]:f},b=[],h=t.h(l,k);b.push(h);const S={default:()=>b};if(i.slots.default){const w=i.slots.default();S.label=()=>w}const u=ke(r,me,ue);return u["content-class"]=m,t.h(o,u,S)}}}}const{componentName:Gu,create:Zu,scope:Ju}=O("switch-item"),Wl=Zu(Qu(Gu,Ju,Te,ao));function _u(e,n,o,l){return{props:{...ue,...me,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},iconName:{type:[String],required:!1,default:""},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur"],setup(r,i){const{emitEvent:a}=Ce({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},r.prop??i.attrs.name),{toLocaleRefs:s}=_.useFoxI18n(n),c=s(r,["placeholder"]),m=Ee(t.computed(()=>r.disabled)),d=Pe(t.computed(()=>r.readonly)),f=Ie(r,"modelValue"),g=t.computed(()=>({[`${e}`]:!0,[`${e}__disabled`]:m.value,[`${e}__placeholder`]:!m.value&&ye(f.value)})),k=Se(t.computed(()=>r.textAlign),"textAlign"),b=t.computed(()=>({textAlign:k.value??"right"})),h=t.computed(()=>ye(f.value)?c.placeholder.value:f.value),S=()=>{a("focus",f.value)},u=()=>{a("blur",f.value)},p=t.computed(()=>({[`${e}__append`]:!0})),w=t.computed(()=>ce(r.unit)>0),y=N=>{m.value==!0||d.value==!0||a("click")},v=t.computed(()=>"arrow-right"),C=t.computed(()=>({action:!0}));return()=>{const N={tabIndex:0,class:g.value,style:b.value,innerHTML:h.value,onFocus:S,onBlur:u,onClick:y},V=[],A=t.h("view",N);V.push(A);const E=[],q={name:v.value,size:"10px"},U=t.h(o,q),L={class:C.value,onClick:y},z=t.h("view",L,{default:()=>[U]});if(E.push(z),w.value){const x=t.h("view",{},[r.unit]);E.push(x)}const $={class:p.value},D=t.h("view",$,{default:()=>E});V.push(D);const I={default:()=>V};if(i.slots.default){const x=i.slots.default();I.label=()=>x}if(i.slots.prepend){const x=i.slots.prepend();I.prepend=()=>x}if(i.slots.append){const x=i.slots.append();I.append=()=>x}const P=ke(r,me,ue);return t.h(l,P,I)}}}}const{componentName:ed,create:td,scope:nd}=O("link-item"),Yl=td(_u(ed,nd,re,Te));function od(e,n){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(o,{slots:l}){return Ur(o.name,o.config),()=>typeof l.default=="function"?l.default():null}}}const{componentName:V1,create:ld,scope:A1}=O("domain-provider"),Xl=ld(od()),{componentName:ad,create:rd}=O("button"),sd=rd({components:{[re.name]:re},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},icon:{type:String,default:""},iconClassPrefix:{type:String,default:"fox-icon"},iconFontClassName:{type:String,default:"foxui-iconfont"}},emits:["click"],setup(e,{emit:n,slots:o}){const{type:l,size:r,shape:i,disabled:a,loading:s,icon:c,color:m,plain:d,block:f}=t.toRefs(e),g=u=>{!s.value&&!a.value&&n("click",u)},k=t.computed(()=>{const u=ad;return{[u]:!0,[`${u}--${l.value}`]:l.value,[`${u}--${r.value}`]:r.value,[`${u}--${i.value}`]:i.value,[`${u}--plain`]:d.value,[`${u}--block`]:f.value,[`${u}--disabled`]:a.value,[`${u}--loading`]:s.value}}),b=t.computed(()=>{const u={};return m?.value&&(d.value?(u.color=m.value,u.background="#fff",m.value?.includes("gradient")||(u.borderColor=m.value)):(u.color="#fff",u.background=m.value)),u}),h=t.computed(()=>typeof o.default=="function"),S=t.computed(()=>({text:c??s}));return{handleClick:g,classes:k,getStyle:b,hasText:h,textClasses:S}}}),id={class:"fox-button__warp"};function cd(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",id,[e.loading?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-icon-loading"})):t.createCommentVNode("",!0),e.icon&&!e.loading?(t.openBlock(),t.createBlock(a,{key:1,name:e.icon,"class-prefix":e.iconClassPrefix,"font-class-name":e.iconFontClassName},null,8,["name","class-prefix","font-class-name"])):t.createCommentVNode("",!0),e.hasText?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(e.textClasses)},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)])],6)}const et=K(sd,[["render",cd]]),{componentName:ud,create:dd}=O("cell"),fd=dd({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:""},icon:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:n}){const o=t.computed(()=>{const i=ud;return{[i]:!0,[`${i}--clickable`]:e.isLink,[`${i}--center`]:e.center,[`${i}--large`]:e.size=="large"}}),l=t.computed(()=>({borderRadius:Z(e.roundRadius)}));return{handleClick:i=>{n("click",i)},classes:o,baseStyle:l}}}),md={key:0,class:"fox-cell__icon"},pd={key:1,class:"fox-cell__title"},hd={class:"title"},gd={class:"fox-cell__title-desc"};function yd(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.renderSlot(e.$slots,"default",{},()=>[e.icon||e.$slots.icon?(t.openBlock(),t.createElementBlock("view",md,[e.$slots.icon?t.renderSlot(e.$slots,"icon",{key:0}):e.icon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon",name:e.icon},null,8,["name"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.title||e.subTitle?(t.openBlock(),t.createElementBlock("view",pd,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("view",hd,t.toDisplayString(e.title),1),t.createElementVNode("view",gd,t.toDisplayString(e.subTitle),1)],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.title),1)],64))])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-cell__value",style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),5)):t.createCommentVNode("",!0),e.$slots.link?t.renderSlot(e.$slots,"link",{key:3}):e.isLink?(t.openBlock(),t.createBlock(a,{key:4,class:"fox-cell__link",name:"right"})):t.createCommentVNode("",!0)])],6)}const Ql=K(fd,[["render",yd]]),{componentName:vd,create:kd}=O("cell-group"),Sd=kd({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[vd]:!0}))}}}),bd={key:1,class:"fox-cell-group__title"},Cd={key:3,class:"fox-cell-group__desc"},wd={class:"fox-cell-group__warp"};function Nd(e,n,o,l,r,i){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",bd,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",Cd,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",wd,[t.renderSlot(e.$slots,"default")])],2)}const Gl=K(Sd,[["render",Nd]]),{componentName:Bd,create:Vd}=O("image"),Ad=Vd({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}},emits:["click","load","error"],setup(e,{emit:n}){const o=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),l=t.computed(()=>{const m=Bd;return{[m]:!0,[`${m}-round`]:e.round}}),r=t.computed(()=>{let m={};return e.width&&(m.width=Z(e.width)),e.height&&(m.height=Z(e.height)),e.radius!==void 0&&e.radius!==null&&(m.overflow="hidden",m.borderRadius=Z(e.radius)),m}),i=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,m=>{o.isError=!1,o.loading=!0});const a=()=>{o.loading=!1,n("load")},s=()=>{o.isError=!0,o.loading=!1,n("error")},c=m=>{n("click",m)};return{...t.toRefs(o),imageClick:c,classes:l,styles:i,stylebox:r,error:s,load:a}}}),Ed=["src","alt"],Td={key:0,class:"fox-img-loading"},$d={key:1,class:"fox-img-error"};function Dd(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.stylebox),onClick:n[2]||(n[2]=(...s)=>e.imageClick&&e.imageClick(...s))},[t.createElementVNode("img",{class:"fox-img",src:e.src,alt:e.alt,onLoad:n[0]||(n[0]=(...s)=>e.load&&e.load(...s)),onError:n[1]||(n[1]=(...s)=>e.error&&e.error(...s)),style:t.normalizeStyle(e.styles)},null,44,Ed),e.loading?(t.openBlock(),t.createElementBlock("view",Td,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,name:"image"})),t.renderSlot(e.$slots,"loading")])):t.createCommentVNode("",!0),e.isError&&!e.loading?(t.openBlock(),t.createElementBlock("view",$d,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,name:"image-error"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}const Zl=K(Ad,[["render",Dd]]),{create:Id}=O("layout"),Jl=Id({}),{componentName:qd,create:zd}=O("col"),Md=zd({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=qd,o=t.inject("gutter"),l=t.computed(()=>({[n]:!0,[`${n}-gutter`]:o,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),r=t.computed(()=>({paddingLeft:o/2+"px",paddingRight:o/2+"px"}));return{classes:l,style:r}}});function Pd(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const _l=K(Md,[["render",Pd]]),{componentName:xd,create:Rd}=O("row"),Ld=Rd({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const n=xd;t.provide("gutter",e.gutter);const o=(r,i)=>r?i?`fox-row-${r}-${i}`:"":`fox-row-${i}`;return{classes:t.computed(()=>e.type==="flex"?`
|
|
16
|
-
${o("",e.type)}
|
|
17
|
-
${o("justify",e.justify)}
|
|
18
|
-
${o("align",e.align)}
|
|
19
|
-
${o("flex",e.flexWrap)}
|
|
20
|
-
${n}
|
|
5
|
+
*/function Wt(e,o="0"){let l=0,n=-1;e[0]=="-"&&(l++,n=1,e=e.substring(1),e.length),o[0]=="-"&&(l++,n=2,o=o.substring(1),o.length),e=Se(e),o=Se(o),[e,o]=ln(Se(e),Se(o)),l==1&&(n==1?e=Bo(e):o=Bo(o));let a=dl(e,o);return l?l==2?"-"+Se(a):e.length<a.length?Se(a.substring(1)):"-"+Se(Bo(a)):Se(a)}function Bo(e){let o="",l=e.length,n=e.split(".")[1],a=n?n.length:0;for(let s=0;s<l;s++)e[s]>="0"&&e[s]<="9"?o+=9-parseInt(e[s]):o+=e[s];let r=a>0?"0."+new Array(a).join("0")+"1":"1";return dl(o,r)}function Se(e){let o=e.split(".");for(o[0]||(o[0]="0");o[0][0]=="0"&&o[0].length>1;)o[0]=o[0].substring(1);return o[0]+(o[1]?"."+o[1]:"")}function ln(e,o){let l=e.split("."),n=o.split("."),a=l[0].length,r=n[0].length;return a>r?n[0]=new Array(Math.abs(a-r)+1).join("0")+(n[0]?n[0]:""):l[0]=new Array(Math.abs(a-r)+1).join("0")+(l[0]?l[0]:""),a=l[1]?l[1].length:0,r=n[1]?n[1].length:0,(a||r)&&(a>r?n[1]=(n[1]?n[1]:"")+new Array(Math.abs(a-r)+1).join("0"):l[1]=(l[1]?l[1]:"")+new Array(Math.abs(a-r)+1).join("0")),e=l[0]+(l[1]?"."+l[1]:""),o=n[0]+(n[1]?"."+n[1]:""),[e,o]}function dl(e,o){[e,o]=ln(e,o);let l="",n=0;for(let a=e.length-1;a>=0;a--){if(e[a]==="."){l="."+l;continue}let r=parseInt(e[a])+parseInt(o[a])+n;l=r%10+l,n=Math.floor(r/10)}return n?n.toString()+l:l}var me=(e=>(e[e.CEILING=0]="CEILING",e[e.DOWN=1]="DOWN",e[e.FLOOR=2]="FLOOR",e[e.HALF_DOWN=3]="HALF_DOWN",e[e.HALF_EVEN=4]="HALF_EVEN",e[e.HALF_UP=5]="HALF_UP",e[e.UNNECESSARY=6]="UNNECESSARY",e[e.UP=7]="UP",e))(me||{});function Bt(e,o=0,l=me.HALF_EVEN){if(l===me.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let n=!1;e[0]==="-"&&(n=!0,e=e.substring(1));let a=e.split("."),r=a[0],s=a[1];if(o<0){if(o=-o,r.length<=o)return"0";{let c=r.substr(0,r.length-o);return e=c+"."+r.substr(r.length-o)+s,c=Bt(e,0,l),(n?"-":"")+c+new Array(o+1).join("0")}}if(o==0)return r.length,Vn(a[1],r,n,l)?(n?"-":"")+Vo(r):(n?"-":"")+r;if(a[1]){if(a[1].length<o)return(n?"-":"")+r+"."+a[1]+new Array(o-a[1].length+1).join("0")}else return(n?"-":"")+r+"."+new Array(o+1).join("0");s=a[1].substring(0,o);let i=a[1].substring(o);return i&&Vn(i,s,n,l)&&(s=Vo(s),s.length>o)?(n?"-":"")+Vo(r,parseInt(s[0]))+"."+s.substring(1):(n?"-":"")+r+"."+s}function Vn(e,o,l,n){if(!e||e===new Array(e.length+1).join("0")||n===me.DOWN||!l&&n===me.FLOOR||l&&n===me.CEILING)return!1;if(n===me.UP||l&&n===me.FLOOR||!l&&n===me.CEILING)return!0;let a="5"+new Array(e.length).join("0");if(e>a)return!0;if(e<a)return!1;switch(n){case me.HALF_DOWN:return!1;case me.HALF_UP:return!0;case me.HALF_EVEN:default:return parseInt(o[o.length-1])%2==1}}function Vo(e,o=0){o||(o=1),typeof e=="number"&&e.toString();let l=e.length-1,n="";for(let a=l;a>=0;a--){let r=parseInt(e[a])+o;r==10?(o=1,r=0):o=0,n+=r}return o&&(n+=o),n.split("").reverse().join("")}function Mo(e,o){e=e.toString(),o=o.toString();let l=0;e[0]=="-"&&(l++,e=e.substr(1)),o[0]=="-"&&(l++,o=o.substr(1)),e=ht(e),o=ht(o);let n=0,a=0;e.indexOf(".")!=-1&&(n=e.length-e.indexOf(".")-1),o.indexOf(".")!=-1&&(a=o.length-o.indexOf(".")-1);let r=n+a;if(e=ht(e.replace(".","")),o=ht(o.replace(".","")),e.length<o.length){let f=e;e=o,o=f}if(o=="0")return"0";let s=o.length,i=0,c=[],d=s-1,m="";for(let f=0;f<s;f++)c[f]=e.length-1;for(let f=0;f<2*e.length;f++){let h=0;for(let y=o.length-1;y>=d&&y>=0;y--)c[y]>-1&&c[y]<e.length&&(h+=parseInt(e[c[y]--])*parseInt(o[y]));h+=i,i=Math.floor(h/10),m=h%10+m,d--}return m=ht(Gr(m,r)),l==1&&(m="-"+m),m}function Gr(e,o){return o==0?e:(e=o>=e.length?new Array(o-e.length+1).join("0")+e:e,e.substr(0,e.length-o)+"."+e.substr(e.length-o,o))}function ht(e){for(;e[0]=="0";)e=e.substr(1);if(e.indexOf(".")!=-1)for(;e[e.length-1]=="0";)e=e.substr(0,e.length-1);return e==""||e=="."?e="0":e[e.length-1]=="."&&(e=e.substr(0,e.length-1)),e[0]=="."&&(e="0"+e),e}function zo(e,o,l=8){if(o==0)throw new Error("Cannot divide by 0");if(e=e.toString(),o=o.toString(),e=e.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),o=o.replace(/(\.\d*?[1-9])0+$/g,"$1").replace(/\.0+$/,""),e==0)return"0";let n=0;o[0]=="-"&&(o=o.substring(1),n++),e[0]=="-"&&(e=e.substring(1),n++);var a=o.indexOf(".")>0?o.length-o.indexOf(".")-1:-1;if(o=Se(o.replace(".","")),a>=0){let d=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(d==-1)e=Se(e+new Array(a+1).join("0"));else if(a>d)e=e.replace(".",""),e=Se(e+new Array(a-d+1).join("0"));else if(a<d){e=e.replace(".","");let m=e.length-d+a;e=Se(e.substring(0,m)+"."+e.substring(m))}else a==d&&(e=Se(e.replace(".","")))}let r=0,s=o.length,i="",c=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(0,s+1):e.substring(0,s);if(e=e.indexOf(".")>-1&&e.indexOf(".")<s?e.substring(s+1):e.substring(s),c.indexOf(".")>-1){let d=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(d+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=d,i="0."+new Array(d).join("0")}for(l=l+2;r<=l;){let d=0;for(;parseInt(c)>=parseInt(o);)c=Wt(c,"-"+o),d++;i+=d,e?(e[0]=="."&&(i+=".",r++,e=e.substring(1)),c=c+e.substring(0,1),e=e.substring(1)):(r||(i+="."),r++,c=c+"0")}return(n==1?"-":"")+Se(Bt(i,l-2))}function xo(e,o){return e=e.toString(),o=o.toString(),o=Po(o),Wt(e,o)}function Po(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function An(e,o){if(o==0)throw new Error("Cannot divide by 0");e=e.toString(),o=o.toString(),En(e),En(o);let l="";e[0]=="-"&&(l="-",e=e.substr(1)),o[0]=="-"&&(o=o.substr(1));let n=xo(e,Mo(o,Bt(zo(e,o),0,me.FLOOR)));return l+n}function En(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Tn(e,o){let l=!1;if(e[0]=="-"&&o[0]!="-")return-1;if(e[0]!="-"&&o[0]=="-")return 1;if(e[0]=="-"&&o[0]=="-"&&(e=e.substr(1),o=o.substr(1),l=!0),[e,o]=ln(e,o),e.localeCompare(o)==0)return 0;for(let n=0;n<e.length;n++)if(e[n]!=o[n])return e[n]>o[n]?l?-1:1:l?1:-1;return 0}class ae{value;static RoundingModes=me;static validate(o){if(o){if(o=o.toString(),isNaN(o))throw Error("Parameter is not a number: "+o);o[0]=="+"&&(o=o.substring(1))}else o="0";if(o.startsWith(".")?o="0"+o:o.startsWith("-.")&&(o="-0"+o.substr(1)),/e/i.test(o)){let[l,n]=o.split(/[eE]/);l=Se(l);let a="";l[0]=="-"&&(a="-",l=l.substring(1)),l.indexOf(".")>=0?(n=parseInt(n)+l.indexOf("."),l=l.replace(".","")):n=parseInt(n)+l.length,l.length<n?o=a+l+new Array(n-l.length+1).join("0"):l.length>=n&&n>0?o=a+Se(l.substring(0,n))+(l.length>n?"."+l.substring(n):""):o=a+"0."+new Array(-n+1).join("0")+l}return o}constructor(o="0"){this.value=ae.validate(o)}getValue(){return this.value}static getPrettyValue(o,l,n){if(!(l||n))l=3,n=",";else if(!(l&&n))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");o=ae.validate(o);let a=o.charAt(0)=="-";a&&(o=o.substring(1));var r=o.indexOf(".");r=r>0?r:o.length;for(var s="",i=r;i>0;)i<l?(l=i,i=0):i-=l,s=o.substring(i,i+l)+(i<r-l&&i>=0?n:"")+s;return(a?"-":"")+s+o.substring(r)}getPrettyValue(o,l){return ae.getPrettyValue(this.value,o,l)}static round(o,l=0,n=me.HALF_EVEN){if(o=ae.validate(o),isNaN(l))throw Error("Precision is not a number: "+l);return Bt(o,l,n)}round(o=0,l=me.HALF_EVEN){if(isNaN(o))throw Error("Precision is not a number: "+o);return new ae(Bt(this.value,o,l))}static floor(o){return o=ae.validate(o),o.indexOf(".")===-1?o:ae.round(o,0,me.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,me.FLOOR)}static ceil(o){return o=ae.validate(o),o.indexOf(".")===-1?o:ae.round(o,0,me.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ae(this.value):new ae(this.value).round(0,me.CEILING)}static add(o,l){return o=ae.validate(o),l=ae.validate(l),Wt(o,l)}add(o){return new ae(Wt(this.value,o.getValue()))}static subtract(o,l){return o=ae.validate(o),l=ae.validate(l),xo(o,l)}subtract(o){return new ae(xo(this.value,o.getValue()))}static multiply(o,l){return o=ae.validate(o),l=ae.validate(l),Mo(o,l)}multiply(o){return new ae(Mo(this.value,o.getValue()))}static divide(o,l,n){return o=ae.validate(o),l=ae.validate(l),zo(o,l,n)}divide(o,l){return new ae(zo(this.value,o.getValue(),l))}static modulus(o,l){return o=ae.validate(o),l=ae.validate(l),An(o,l)}modulus(o){return new ae(An(this.value,o.getValue()))}static compareTo(o,l){return o=ae.validate(o),l=ae.validate(l),Tn(o,l)}compareTo(o){return Tn(this.value,o.getValue())}static negate(o){return o=ae.validate(o),Po(o)}negate(){return new ae(Po(this.value))}}function fl(e,o){return ae.multiply(`${e}`,`${o}`)}function an(e,o,l=8){return ae.divide(`${e}`,`${o}`,l)}function Lo(e,o){return e=`${e}`,o=`${o}`,ae.compareTo(e,o)}function ml(e){return ae.negate(e)}function rn(e,o=-1,l=!1,n=3,a=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",d=r.indexOf(".");d!=-1&&(i=r.substring(0,d),c=r.substring(d+1)),o!=-1&&(o<c.length?c=c.substring(0,o):l&&o>c.length&&(c=c.padEnd(o,"0")));let m;if(n>0){let f="",h=i.split("").reverse();for(let y=0;y<h.length;y++)f+=h[y]+((y+1)%n==0&&y+1!=h.length?a:"");c.length==0?m=`${s}${f.split("").reverse().join("")}`:m=`${s}${f.split("").reverse().join("")}.${c}`}else c.length==0?m=`${s}${i}`:m=`${s}${i}.${c}`;return m}function pl(e){let o=`${e}`,l=o.charAt(0);l=="-"?o=o.substring(1):l="";let n=o.replace(/[^\d\.-]/g,"");return`${l}${n}`}const lt=typeof window<"u",Qe=Ye,mo=Array.isArray,Zr=e=>po(e)==="[object Map]",Jr=e=>po(e)==="[object Set]",Oe=e=>e instanceof Date,Yt=e=>typeof e=="function",hl=e=>typeof e=="string",_r=e=>typeof e=="symbol",De=e=>e!==null&&typeof e=="object",sn=e=>De(e)&&Yt(e.then)&&Yt(e.catch),gl=Object.prototype.toString,po=e=>gl.call(e),Ro=e=>po(e)==="[object Object]",yl=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function es(e){return e.__esModule||yl&&e[Symbol.toStringTag]==="Module"}const ts=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function _e(...e){let o=e[0]!==void 0&&e[0]!==null?e[0]:{},l=1,n=e.length,a=!1;for(typeof o=="boolean"&&(a=o,o=e[l]??{},l++),typeof o!="object"&&(o={});l<n;l++)if(e[l]!==null&&e[l]!==void 0){let r=e[l];for(let s in r){let i=o[s],c=r[s];if(i!==c)if(a===!0&&c&&typeof c=="object"){let d;Array.isArray(c)?d=i&&Array.isArray(i)?i:[]:d=i&&typeof i=="object"?i:{},o[s]=_e(a,d,c)}else c!==void 0&&(o[s]=c)}}return o}function Oo(e,o,l=!1){if(!l)_e(!0,e,o);else{if(typeof o!="object")return{};typeof e!="object"&&(e={});for(let a in o){let r=e[a],s=o[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Ro(s))continue;r=Oo(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}const n=Object.getOwnPropertySymbols(o);for(let a of n){let r=e[a],s=o[a];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!Ro(s))continue;r=Oo(r,s,l),e[a]=r}else{if(typeof s=="function")continue;e[a]=s}}}return e}const Ao=ts?Promise.resolve():null;function os(e,...o){Ao!==null?o&&o.length>0?Ao.then(()=>{e(o)}):Ao.then(e):o&&o.length>0?setTimeout(()=>{e(o)}):setTimeout(e)}function ge(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":Boolean(e)}function ue(e){return typeof e=="number"?e:Number(e)}const ns={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function et(e){let l=Object.prototype.toString.call(e);return e==null?String(e):ns[l]||"object"}function vl(e){return!e||e.offsetParent===null}function kl(e){return e&&typeof e=="object"&&"setInterval"in e}function bl(e){let o=!!e&&"length"in e&&e.length,l=et(e);return l==="function"||kl(e)?!1:l==="array"||o===0||typeof o=="number"&&o>0&&o-1 in e}function Sl(e,o){let l=+o.length,n=0,a=e.length;for(;n<l;n++)e[a++]=o[n];return e.length=a,e}function ls(e,o=[]){let l=o;return e!=null&&(bl(Object(e))?Sl(l,typeof e=="string"?[e]:e):l.push(e)),l}function Fe(e,o){if(e==o)return!0;if(e===void 0||o===void 0)return!1;let l=et(e),n=et(o);if(l!==n)return!1;if(l==="object"){let a=Object.keys(e),r=Object.keys(o);if(a.length!==r.length)return!1;for(let s=0;s<a.length;s++){let i=a[s],c=e[i],d=o[i];if(!Fe(c,d))return!1}return!0}else if(l==="array"){if(e.length!==o.length)return!1;for(let a=0;a<e.length;a++){let r=e[a],s=o[a];if(!Fe(r,s))return!1}return!0}return!1}function Cl(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const Ce=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function wl(e){return Ce(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),Ce(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Nl(e){if(e==null)return 0;let o=`${e}`;if(o.length==0)return 0;o.charAt(0)=="-"&&(o=o.substring(1)),o=o.replace(/[^\d\.-]/g,"");const l=o.indexOf(".");return l==-1?o.length:l}function Bl(e){if(e==null)return 0;const o=`${e}`;if(o.length==0)return 0;const l=o.indexOf(".");return l==-1?0:o.length-(l+1)}function $n(e,o,l){const n=e.indexOf(o);return n===-1?e:o==="-"&&n!==0?e.slice(0,n):e.slice(0,n+1)+e.slice(n).replace(l,"")}function Fo(e,o=!0,l=!0){o?e=$n(e,".",/\./g):e=e.replace(/\./g,""),l?e=$n(e,"-",/-/g):e=e.replace(/-/,"");const n=o?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(n,"")}function as(e,o){return typeof e=="object"||Array.isArray(e)?o.findIndex(l=>{if(Fe(e,l))return!0}):o.indexOf(e)}function rs(e,o){if(typeof e=="object"||Array.isArray(e)){let l=o.reverse().findIndex(n=>{if(Fe(e,n))return!0});return l!==-1&&(l=o.length-1-l),l}return o.lastIndexOf(e)}function pe(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ke(e,...o){const l={};return o.forEach(n=>{for(const a in n)l[a]=e[a]}),l}function Vl(e,...o){const l=[];o.forEach(a=>{Reflect.apply([].push,l,Reflect.ownKeys(a))});const n={};for(const a in e)l.includes(a)||(n[a]=e[a]);return n}const Al=(e,o,l)=>{const n=Object.assign({},e),a=Object.assign({},l);return Object.keys(o).length>0?(Object.keys(n).forEach(r=>{a.hasOwnProperty(r)?typeof a[r]=="string"&&(n[r]=o[a[r]]):o[r]&&(n[r]=o[r])}),n):e};function Uo(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&e.stopPropagation()}const Ge=(e,o=2)=>{for(e+="";e.length<o;)e="0"+e;return e.toString()},Le=(e,o,l)=>Math.min(Math.max(e,o),l),cn=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,ye=Symbol.for("BroadcastKey");class un{parent;children=[];callbacks=new Map;proxy=null;name;constructor(o,l,n){this.parent=o,this.proxy=l,this.name=n,o!==null&&o.addChild(this)}addChild(o){this.children.push(o)}removeChild(o){const l=this.children.findIndex(n=>o===n);l!==-1&&this.children.splice(l,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(o,l,...n){if(o.maxLevel!==void 0&&o.maxLevel!==null&&o.maxLevel>0){if(o.level=o.level??0,o.level>o.maxLevel)return[];o.level++}let a=!1;!o.name||o.name==="*"?a=!0:!o.name||o.name==="+"?(a=!1,o.name="*"):Cl(o.name)&&this.name&&o.name.test(this.name)?a=!0:typeof o.name=="function"?a=Reflect.apply(o.name,null,[this.name]):o.name===this.name&&(a=!0);const r=[];if(a){const s=this.callbacks.get(l);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...n]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[l]=="function"){const c=Reflect.apply(i[l],i,[...n]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...o},l,...n]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(o,l,...n){const a=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...o},l,...n]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,a,[...s])}),a}on(o,l){this.callbacks.set(o,l)}}function ho(e,o,l,n){const a=new un(o,e,l);if(n&&typeof n=="object")for(const r in n)a.on(r,n[r]);return a}function ss(e,o,l){const n=l;if(n[ye])return n[ye];const a=t.inject(ye,null),r=new un(a,l,e);if(o&&typeof o=="object")for(const s in o)r.on(s,o[s]);return n[ye]=r,t.provide(ye,r),t.onUnmounted(()=>{r.destroy(),n[ye]=void 0}),r}function St(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ye]??t.inject(ye,null):t.inject(ye,null)}const Je=e=>e.default??e;class is{error(o,l){const n=l,a=St(l);a?a.emit({name:"*",maxLevel:1},"setErrorTip",o):typeof n.setErrorTip=="function"&&n.setErrorTip(o)}reset(o){const l=o,n=St(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}success(o){const l=o,n=St(o);n?n.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof l.setErrorTip=="function"&&l.setErrorTip("")}decorate(o,l,n){Array.isArray(o)||(o=[o]);const a=n,r=St(n),s=l.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=o.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof a.setRequired=="function"&&a.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof a.setRequired=="function"&&a.setRequired(!1),this.reset(n))}getValue(o){return o.modelValue}}let El=new is;function cs(e){El=e}function us(e,o){Je(Ze).setValidator(e,o)}function ds(e){Je(Ze).deleteValidator(e)}let Tl=["blur","clear"];function fs(e){Tl=e}function $l(){return Tl}let Dl=["focus","change"];function ms(e){Dl=e}function Il(){return Dl}function ps(e){Je(Ze).messages(e)}function gt(...e){const o=[];return e.forEach(l=>{l.forEach(n=>{const a=o.findIndex(r=>r.type===n.type);a!==-1&&o.splice(a,1),o.push(n)})}),o}function Pt(e){return e.forEach(o=>{o.type==="required"&&(o.required===null||o.required===void 0)&&(o.required=!0),!o.type&&(o.required===!0||o.required===!1)&&(o.type="required")}),e}const Re=Symbol("ValidateSchemaKey");class ql{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(o,l,n){this.parent=o,this.descriptor=l,this.proxy=n,(this.descriptor.validate??!0)&&this.init()}init(){if(this.descriptor.pureDataValidate===!0||!this.descriptor.valueName||!this.proxy)return;let o=this.proxy.$attrs;o&&(this.scope=t.effectScope(),this.scope.run(()=>{t.watchEffect(()=>{const l=Pt(gt(this.attrRules,this.rules)),n=[];for(let r in o){let s=o[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),n.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};n.push(c)}}this.attrRules=Pt(n);const a=gt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(a,l)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(o,...l){const n=this.descriptor.validateHandler;if(n&&typeof n[o]=="function")return Reflect.apply(n[o],n,[...l]);const a=El;return a&&typeof a[o]=="function"?Reflect.apply(a[o],a,[...l]):null}decorate(o,l){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",o,l,this.proxy)}success(){this.descriptor.pureDataValidate!==!0&&this.execHandler("success",this.proxy)}error(o){this.descriptor.pureDataValidate!==!0&&this.execHandler("error",o,this.proxy)}getValue(){return this.proxy===null?null:this.execHandler("getValue",this.proxy)}setValidator(o,l,n=!1){n?Je(Ze).setValidator(o,l):this.validators[o]=l}getValidator(o){let l=this.validators[o]??null;return l||(l=this.parent?.getValidator(o)??null),l}deleteValidator(o,l=!1){l?Je(Ze).deleteValidator(o):Reflect.deleteProperty(this.validators,o)}hasValidator(o,l=!1){if(l)return Je(Ze).hasValidator(o);{let n=Reflect.has(this.validators,o);return!n&&this.parent!==null&&(n=this.parent.hasValidator(o,!1)),n}}setRule(o){const l=gt(this.attrRules,this.rules);o===null?this.rules=[]:Array.isArray(o)?this.rules=Pt(o):this.rules=Pt([o]);const n=gt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(n,l)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let l=gt(this.attrRules,this.rules);const n=this.descriptor.fieldName??"value";if(l.length>0){const a={[`${n}`]:l},r=this.getValue(),s={[`${n}`]:r},i=Je(Ze),c=new i(a),d=this.proxy??s;return c.validate(s,{context:d}).then(f=>{if(f.pass)this.success();else{let h="error";Array.isArray(f.errors)&&f.errors.length>0&&(h=f.errors[0].message??h,f.errors=[f.errors[0]],f.errors[0].ref=d),this.error(h)}return f}).catch(f=>{const h=f.message??`${f}`;return this.error(h),f})}}return Promise.resolve({pass:!0})}}function go(e,o,l){if(l.valueName=l.valueName??"modelValue",l.valueType=l.valueType??"string",!l.validateHandler&&l.valueName!=="modelValue"){const a=l.valueName;l.validateHandler={getValue(r){return r[a]}}}return new ql(o,l,e)}const Dn=Symbol("EventEmitterKey");class hs{register=new Map;proxy;constructor(o){this.proxy=o}destroy(){this.proxy=null,this.register.clear()}off(o,l){let n=this.register.get(o);if(n&&Array.isArray(n)){let a=n.findIndex(r=>r===l);a!==-1&&n.splice(a,1)}}on(o,l){let n=this.register.get(o);n||(n=new Array,this.register.set(o,n)),n.push(l)}emit(o,...l){const n=this.register.get(o);n&&n.forEach(a=>{try{Reflect.apply(a,null,[o,...l])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[o,...l])}}function Vt(e,o){let l=null;return function(...n){l&&clearTimeout(l),l=setTimeout(()=>{l=null,Reflect.apply(e,null,[...n])},o)}}function Xt(e,o){let l=0;return function(...n){const a=new Date().getTime();a-l<o||(l=a,Reflect.apply(e,null,[...n]))}}function gs(e,o){const l=Vt((n,a)=>{e=n,a()},o);return t.customRef((n,a)=>({get(){return n(),e},set(r){l(r,a)}}))}function ys(e){let o=!1;return function(...l){o||(o=!0,Reflect.apply(e,null,[...l]))}}const Ae=Symbol("DomainKey"),it=Symbol("DataItemsKey");class yo{_parent=null;get parent(){return this._parent}set parent(o){this._parent=o}_name=null;get name(){return this._name}_broadcast=null;get broadcast(){return this._broadcast}set broadcast(o){this._broadcast=o}_validateSchema=null;get validateSchema(){return this._validateSchema}set validateSchema(o){this._validateSchema=o}_props=t.reactive({});constructor(o=null){this._name=o}destroy(){this._parent=null,this._broadcast=null,this._validateSchema=null,this._props={}}merge(o,l=[]){for(const n in o){const a=o[n];l.length>0&&l.indexOf(a)!==-1||(this._props[n]=a)}}has(o){if(Reflect.has(this._props,o)){const l=this._props[o];if(l!=null)return!0}return this.parent==null?!1:this.parent.has(o)}delete(o){Reflect.deleteProperty(this._props,o)}set(o,l){this._props[o]=l}get(o,l){if(Reflect.has(this._props,o)){const n=this._props[o];if(n!=null)return n}return this.parent==null?l:this.parent.get(o,l)}getForParent(o,l){return this.parent==null?l:this.parent.get(o,l)}getForSelf(o){return this._props[o]}getAll(o){const l=[];let n=this;for(;n!=null;){if(Reflect.has(n._props,o)){const a=n._props[o];l.push(a)}n=n._parent}return l}}const vs=new yo;function dt(){return vs}function Ue(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ae]??t.inject(Ae,null):t.inject(Ae,null)}const Eo=Symbol("OriginalDateKey");function dn(e,o,l=[],n){const a=t.getCurrentInstance(),r=a?.proxy;let s=t.inject(Ae,null);s===null&&(s=dt());const i=e||o.prop||o.name,c=new yo(i);c.parent=s;const d=v=>{r[Eo]||h(v),c.set("modelValue",v)},m=()=>c.getForSelf("modelValue")??null,f=()=>r[Eo]??null,h=v=>{const g={};_e(!0,g,t.toRaw(v)),r[Eo]=g};t.isReactive(o)?t.watchEffect(()=>{c.merge(o,l)}):c.merge(o,l),o.modelValue&&h(o.modelValue),r[Ae]=c,t.provide(Ae,c);let y=null,k=null;if(a!==null){const v=t.inject(ye,null);y=ho(r,v,i,n),c.broadcast=y,r[ye]=y,t.provide(ye,y),r.broadcast=(u,p,...b)=>Reflect.apply(y.emit,y,[u,p,...b]);const g=t.inject(Re,null);k=go(r,g,{componentName:""}),c.validateSchema=k,r[Re]=k,t.provide(Re,k),r[it]=new Map,r.validate=(u=!0)=>{const p=[];let b=null;const S={deep:!1};if(u===!0)b={name:"*"};else if(Array.isArray(u)&&u.length>0){const B=u;b={name:E=>E?B.indexOf(E)!==-1:!1}}else if(u!=null&&typeof u=="object"){const B=u;if(S.ignoreHidden=B.ignoreHidden,Array.isArray(B.include)&&B.include.length>0){const E=B.include;b={name:I=>I?E.indexOf(I)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const E=B.exclude;b={name:I=>I?E.indexOf(I)===-1:!1}}else b={name:"*"}}if(b){const B=y?.emitToChildren(b,"validate",S);B&&Reflect.apply([].push,p,B)}return p.length==1?p[0]:p.length>1?Promise.all(p).then(B=>{let E=[];return B.forEach(I=>{I.pass===!1&&Array.isArray(I.errors)&&(E=[...E,...I.errors])}),E.length>0?{pass:!1,errors:E}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(u,p=!0)=>{if(p){const b=Reflect.ownKeys(u),S=[...b],B={name:E=>{const I=b.includes(E);if(I){const V=S.findIndex(C=>E===C);V!==-1&&S.splice(V,1)}return I}};y?.emitToChildren(B,"setNameValidateRules",u,!1),S.length>0&&S.forEach(E=>{let I=String(E);const C=xl(c,I,{componentName:"",fieldName:I,pureDataValidate:!0},y,k);r[it].set(I,C);const w=u[I];w&&C.validateSchema.setRule(w)})}},r.clearValidate=(u=!0)=>{let p=null;if(u===!0)p={name:"*"};else if(Array.isArray(u)&&u.length>0){const b=u;p={name:S=>S?b.indexOf(S)!==-1:!1}}else if(u!=null&&typeof u=="object"){const b=u;if(Array.isArray(b.include)&&b.include.length>0){const S=b.include;p={name:B=>B?S.indexOf(B)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const S=b.exclude;p={name:B=>B?S.indexOf(B)===-1:!1}}else p={name:"*"}}p&&y?.emitToChildren(p,"clearValidate",!1)},r.resetFields=u=>{const p=m();if(!p)return;const b={};if(_e(!0,b,f()??{}),Array.isArray(u))u.forEach(S=>{p[S]=b[S]});else if(u&&Array.isArray(u.include))(u.include??[]).forEach(B=>{p[B]=b[B]});else if(u&&Array.isArray(u.exclude)){let S=u.exclude??[];Reflect.ownKeys(b).forEach(B=>{S.includes(B)||(p[B]=b[B])})}else Object.assign(p,b);r.clearValidate(u)},r.setModelValue=(u,p)=>{!p||p===i?d(u):y?.emitToChildren({name:p},"setModelValue",u)},r.getModelValue=()=>m()}return t.onUnmounted(()=>{c.destroy(),r[Ae]=void 0,r[it]&&(r[it].clear(),r[it]=void 0),y!==null&&(y.destroy(),r[ye]=void 0),k!==null&&(k.destroy(),r[Re]=void 0)}),c}function Ml(e,o,l=[]){const a=t.getCurrentInstance()?.proxy;let r=t.inject(Ae,null);r===null&&(r=dt());const s=e||o.prop||o.name,i=new yo(s);return i.parent=r,t.isReactive(o)?t.watchEffect(()=>{i.merge(o,l)}):i.merge(o,l),a[Ae]=i,t.provide(Ae,i),t.onUnmounted(()=>{i.destroy(),a[Ae]=void 0}),i}function zl(e,o,l){const a=Ue(e)?.get("rules");if(!a)return;let r=a[l];r&&(Array.isArray(r)||(r=[r]),r.forEach(s=>{o.setRule(s)}))}function Be(e,o,l){const a=t.getCurrentInstance()?.proxy,r=o??"",s=t.inject(ye,null),i=ho(a,s,r,l);a[ye]=i,t.provide(ye,i),a.broadcast=(k,v,...g)=>Reflect.apply(i.emit,i,[k,v,...g]);const c=t.inject(Re,null);e.fieldName=e.fieldName??r;const d=go(a,c,e);a[Re]=d,t.provide(Re,d),zl(a,d,r),a.validate=(k=null)=>{const v=[];let g=!1,u=!1;if(Array.isArray(k)&&k.indexOf(r)!==-1)u=!0,g=!0;else if(k&&typeof k=="object"){const p=k;p.ignoreHidden===!0&&vl(a.$el)?u=!1:(Array.isArray(p.include)&&p.include.indexOf(r)!==-1||Array.isArray(p.exclude)&&p.exclude.indexOf(r),u=!0),g=p.deep??!1}else typeof k=="boolean"&&(g=k),u=!0;if(u){const p=d?.validate();v.push(p)}if(g){let p=null;const b={deep:!1};if(k===!0)p={name:"*"};else if(Array.isArray(k)&&k.length>0){const S=k;p={name:B=>B?S.indexOf(B)!==-1:!1}}else if(k!=null&&typeof k=="object"){const S=k;if(b.ignoreHidden=S.ignoreHidden,Array.isArray(S.include)&&S.include.length>0){const B=S.include;p={name:E=>E?B.indexOf(E)!==-1:!1}}else if(Array.isArray(S.exclude)&&S.exclude.length>0){const B=S.exclude;p={name:E=>E?B.indexOf(E)===-1:!1}}else p={name:"*"}}if(p){const S=i.emitToChildren(p,"validate",b);Reflect.apply([].push,v,S)}}return v.length==1?v[0]:v.length>1?Promise.all(v).then(p=>{let b=[];return p.forEach(S=>{S.pass===!1&&Array.isArray(S.errors)&&(b=[...b,...S.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},a.setValidateRule=k=>d?.setRule(k),a.setNameValidateRules=(k,v=!1)=>{const g=k[r];if(g&&d?.setRule(g),v){const u={name:p=>Reflect.ownKeys(k).includes(p)};i.emitToChildren(u,"setNameValidateRules",k,!1)}},a.clearValidate=(k=null)=>{(!Array.isArray(k)||k.indexOf(o??"")!==-1)&&d?.clear();let v=null;if(k===!0)v={name:"*"};else if(Array.isArray(k)&&k.length>0){const g=k;v={name:u=>u?g.indexOf(u)!==-1:!1}}else if(k!=null&&typeof k=="object"){const g=k;if(Array.isArray(g.include)&&g.include.length>0){const u=g.include;v={name:p=>p?u.indexOf(p)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const u=g.exclude;v={name:p=>p?u.indexOf(p)===-1:!1}}else v={name:"*"}}v&&i.emitToChildren(v,"clearValidate",!1)};const m=new hs(a);a[Dn]=m;const f=Vt((k="validate")=>{k==="reset"?d.clear():d.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:$l()).forEach(k=>{m.on(k,v=>{f("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Il()).forEach(k=>{m.on(k,v=>{f("reset")})}),t.onUnmounted(()=>{i.destroy(),a[ye]=void 0,d.destroy(),a[Re]=void 0,m.destroy(),a[Dn]=void 0}),{broadcast:i,validateSchema:d,emitEvent:(k,...v)=>{Reflect.apply(m.emit,m,[k,...v])},onEvent:(k,v)=>{Reflect.apply(m.on,m,[v])},offEvent:(k,v)=>{Reflect.apply(m.off,m,[v])}}}function xl(e,o,l,n,a){const r={},s=o??"";l.fieldName=s,l.validateHandler={getValue(d){const m=e.getForSelf("modelValue");return m?m[s]:null}};const i=go({},a,l);r.validate=(d=null)=>{const m=[];let f=!1,h=!1;if(Array.isArray(d)&&d.indexOf(s)!==-1)h=!0,f=!0;else if(d&&typeof d=="object"){const y=d;Array.isArray(y.include)&&y.include.indexOf(s)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(s),h=!0,f=y.deep??!1}else typeof d=="boolean"&&(f=d),h=!0;if(h){const y=i?.validate();m.push(y)}if(f){let y=null;const k={deep:!1};if(d===!0)y={name:"*"};else if(Array.isArray(d)&&d.length>0){const v=d;y={name:g=>g?v.indexOf(g)!==-1:!1}}else if(d!=null&&typeof d=="object"){const v=d;if(Array.isArray(v.include)&&v.include.length>0){const g=v.include;y={name:u=>u?g.indexOf(u)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const g=v.exclude;y={name:u=>u?g.indexOf(u)===-1:!1}}else y={name:"*"}}if(y){const v=c.emitToChildren(y,"validate",k);Reflect.apply([].push,m,v)}}return m.length==1?m[0]:m.length>1?Promise.all(m).then(y=>{let k=[];return y.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(k=[...k,...v.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=d=>i?.setRule(d),r.setNameValidateRules=d=>{const m=d[s];m&&i?.setRule(m)};const c=ho(null,n,s,r);return{broadcast:c,validateSchema:i}}const le=e=>e?`${se(e)}px`:"";function se(e,o=-1){if(typeof e=="number")return e>0&&e<1&&o>0?e*o:e;if(e=e.trim().toLocaleLowerCase(),e.length===0)return 0;let l=e.indexOf("px");if(l!==-1)return Number(e.substring(0,l));if(l=e.indexOf("rem"),l!==-1){let a=Number(e.substring(0,l)),r=1;if(lt){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return a*=r,a}if(l=e.indexOf("%"),l!==-1)return Number(e.substring(0,l))*o;const n=Number(e);return isNaN(n)?0:n}const Xe="PageStateKey";function Me(e){const o={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(o.top=se(e.top)),e.left!==null&&e.left!==void 0&&(o.left=se(e.left)),e.bottom!==null&&e.bottom!==void 0&&(o.bottom=se(e.bottom)),e.right!==null&&e.right!==void 0&&(o.right=se(e.right))),o}function Ko(e,o,l={},n=!0,a=-1,r=-1,s=0,i=0){if(e.headerHeight=se(l.headerHeight??o.headerHeight),e.headerPadding=Me(l.headerPadding??o.headerPadding),e.footerHeight=se(l.footerHeight??o.footerHeight),e.footerPadding=Me(l.footerPadding??o.footerPadding),e.contentPadding=Me(l.contentPadding??o.contentPadding),n){const c=l.height??o.height;c?e.height=se(c,r):e.height=se(r)-se(s,r)-se(i,r),e.width=se(l.width??o.width??0,a)}}function Pl(e,o={}){const l={top:null,left:null,bottom:null,right:null},n={width:0,height:0,headerHeight:0,headerPadding:{...l},footerHeight:0,footerPadding:{...l},contentPadding:{...l},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},a=Object.assign(e.get("safeAreaInset")??{},o.safeAreaInset??{});a&&(n.safeAreaTop=se(a.top),n.safeAreaBottom=se(a.bottom),n.safeAreaLeft=se(a.left),n.safeAreaRight=se(a.right));const r=e.get("pageLayout");if(!r)return null;const s=e.get("rootWidth")??-1,i=e.get("rootHeight")??-1,c=e.get("headerBarHeight")??0,d=e.get("footerBarHeight")??0;Ko(n,r,o,!0,s,i,c,d);const m=t.reactive(n),f=e.getForParent(Xe);f&&(n.height=Qt(e,f),n.width=Gt(e,f),t.watch([()=>f.height,()=>f.width,()=>f.contentPadding,()=>f.headerMounted,()=>f.footerMounted],()=>{m.height=Qt(e,f),m.width=Gt(e,f)}));const h=!f;return t.watch([()=>o.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([y,k,v=-1,g=-1,u=0,p=0])=>{Ko(m,k,o,h,v,g,u,p)}),e.set(Xe,m),m}function vo(e){return e.get(Xe)}function ko(e,o){return o=o??e.get(Xe),o&&o.headerMounted?o.headerHeight+o.safeAreaTop:0}function bo(e,o){return o=o??e.get(Xe),o&&o.footerMounted?o.footerHeight+o.safeAreaBottom:0}function Qt(e,o){if(o=o??e.get(Xe),o){const l=ko(e,o),n=bo(e,o);return o.height-l-n-(o.contentPadding.top??0)-(o.contentPadding.bottom??0)}return 0}function Gt(e,o){return o=o??e.get(Xe),o?o.width-(o.contentPadding.left??0)-(o.contentPadding.right??0):0}function ks(e,o){const l=e.get("isInnerPage");return typeof l=="function"?Reflect.apply(l,{},[o,e]):!1}function bs(e){return!!e.getForParent(Xe)}var Zt=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(Zt||{});function To(e,o){return e==null?!1:typeof o=="function"?o(e):!0}function Ee(e,o,l=1,n){const a=Ue();return a==null?e:l===0?t.computed(()=>{const r=a.getAll(o);for(let i=r.length-1;i>=0;i--){const c=r[i];if(To(c,n))return c}const s=e.value;return To(s,n)?s:null}):t.computed(()=>{const r=e.value;return To(r,n)?r:a?.get(o)})}function Ie(e){return Ee(e,"readonly",0,function(l){return ge(l)})}function Ne(e){return Ee(e,"disabled",0,function(l){return ge(l)})}function ze(e,o="modelValue",l){const n=t.toRef(e,o);let a=n.value;typeof l=="function"&&(a=l(n.value));const r=t.ref(a);return t.watch(n,s=>{if(typeof l=="function"){const i=l(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const Ll=new Map,Jt=new Map;let Ho=null;function Ss(e){Ho=e}function Rl(e,o,l){if(l){let n=Jt.get(l);n||(n=new Map,Jt.set(l,n)),n.set(e,o)}else Ll.set(e,o)}function Mt(e,o,l){!l&&Ho&&(l=Ho(e)??void 0);let n=null;if(l){let a=Jt.get(l);a&&(n=a.get(o))}return n||(n=Ll.get(o)),n}function Cs(e,o){for(let l in e){const n=e[l];Rl(l,n,o)}}function ws(e){Jt.delete(e)}function Ns(){return{top:0,left:0,bottom:0,right:0}}function Bs(e=0,o=0){if(lt){const l=document.documentElement.clientWidth||document.body.clientWidth,n=document.documentElement.clientHeight||document.body.clientHeight,a={width:l,height:n-se(e,n)-se(o,n),headerHeight:44,footerHeight:44};return{rootWidth:l,rootHeight:n,pageLayout:a}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:44,footerHeight:44}}}class Vs{packages;_version;get version(){return this._version}constructor(o,l){this.packages=o,this._version=l}install(o,l){l?.install!==!1&&this.packages.forEach(r=>{r.install?o.use(r):r.name&&o.component(r.name,r)});const n=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],a=dt();if(this.initPageLayout(l,a),l.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=Xt(()=>{const i={...l},c=document.documentElement.clientWidth||document.body.clientWidth,d=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=d,this.initPageLayout(i,a)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in l)n.indexOf(r)===-1&&a.set(r,l[r])}initPageLayout(o,l){const n=o.headerBarHeight??0,a=o.footerBarHeight??0,r=_e({},Ns(),o.safeAreaInset),s=Bs(n,a),i=_e({},s.pageLayout,o.pageLayout);l=l??dt(),l.set("safeAreaInset",r),l.set("headerBarHeight",n),l.set("footerBarHeight",a),l.set("pageLayout",i),l.set("rootWidth",s.rootWidth),l.set("rootHeight",s.rootHeight)}setScopeGetter(o){Ss(o)}setAPI(o,l,n){Rl(o,l,n)}getAPI(o,l,n){return Mt(o,l,n)}batchSetAPI(o,l){Cs(o,l)}clearScopeAPI(o){ws(o)}getRootDomain(){return dt()}}function U(e){const o="fox-"+e;return{componentName:o,scope:e.replace("-",""),create(l){return l.baseName=e,l.name=o,l.install=n=>{n.component(l.name,l)},t.defineComponent(l)},createDemo(l){return l.baseName=e,l.name="demo-"+e,t.defineComponent(l)}}}const As=(e,o)=>{let l=document.body;const n=e.teleport||"body";n!="body"&&(hl(n)?l=document.querySelector(n):l=e.teleport);const a=document.createElement("view"),r=o.name?o.name+"-":"",s=e.id||new Date().getTime();a.id=r+s;let i={};Yt(o.wrapper)?i=o.wrapper(l,a):i=o.wrapper;const c=t.createApp(i,e),d=o.components;return d&&d.forEach(m=>{c.use(m)}),l.appendChild(a),{instance:c.mount(a),unmount:()=>{c.unmount(),l.removeChild(a)}}},Ol=(e,o)=>e?t.h(e,o):"",de={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},fe={prop:{type:String,required:!1},label:{type:String,required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},isRequired:{type:[String,Boolean],required:!1,default:!1},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1},infoMarkClass:{type:String,required:!1,default:"is-info"},warnMarkClass:{type:String,required:!1,default:"is-warn"},errorMarkClass:{type:String,required:!1,default:"is-error"},errorTip:{type:String,required:!1},errorIcon:{type:Object,required:!1},errorClass:{type:String,required:!1},warnTip:{type:String,required:!1},warnIcon:{type:Object,required:!1},warnClass:{type:String,required:!1},infoTip:{type:String,required:!1},infoIcon:{type:Object,required:!1},infoClass:{type:String,required:!1},contentClass:{type:String,required:!1,default:"content--default"},contentStyle:{type:Object,required:!1,default:{}},hintType:{type:String,required:!1,default:"text"},hintText:{type:[String,Number],required:!1},hintVisible:{type:[Boolean,String],required:!1,default:!0},hintProps:{type:Object,required:!1,default:{}},appearListen:{type:[Boolean,String],required:!1,default:!1}},Fl={column:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},justify:{type:[String],required:!1,default:"start"},align:{type:[String],required:!1,default:"start"},flexWrap:{type:[String],default:"nowrap"}},Ul={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},type:{type:[String],required:!1,default:"flex"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!1},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1}},Kl=[];for(const e in Ul)Kl.push(e);function Te(e,o=null){if(o||(o=t.getCurrentInstance()),o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const Es=Symbol.for("InnerPageScopeKey"),Ts=(e,o)=>({inheritAttrs:!0,props:{...de,...Fl,name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1}},setup(l,n){const a=dn(l.name,l);if(a){const d=Pl(a,l);Te({getPageContentHeight:()=>Qt(a,d),getPageContentWidth:()=>Gt(a,d),getPageHeaderHeight:()=>ko(a,d),getPageFooterHeight:()=>bo(a,d)});const m=t.inject(Es,!1);d&&m&&(d.contentHeight="100%")}const r=t.computed(()=>({[e]:!0})),s=t.computed(()=>({})),i=t.getCurrentInstance(),c=d=>{const m=i?.proxy;m&&typeof m.setNameValidateRules=="function"&&m.setNameValidateRules(d,!0)};return t.watch(()=>l.rules,(d,m)=>{if(!d&&!m)return;const f=t.toRaw(m),h=t.toRaw(d),y=h?Reflect.ownKeys(h):[];(f?Reflect.ownKeys(f):[]).forEach(v=>{y.includes(v)||(h[v]=[])}),c(h)},{deep:!0}),t.onMounted(()=>{if(l.rules){const d=t.toRaw(l.rules);c(d)}}),{classes:r,styles:s}}}),{componentName:$s,create:Ds,scope:mw}=U("page"),Is=Ds(Ts($s));function qs(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const W=(e,o)=>{const l=e.__vccOpts||e;for(const[n,a]of o)l[n]=a;return l},Hl=W(Is,[["render",qs]]),Ms=(e,o,l)=>({props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:l},leftText:{type:String,required:!1,default:""},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(n,a){const r=Ue(),s=r?vo(r):null;s&&(s.headerMounted=!0);const i=t.computed(()=>({[e]:!0})),c=n.height!==null&&n.height!==void 0?se(n.height):null,d=t.computed(()=>{const q={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const L=Me(n.padding??s.footerPadding);return Object.assign(q,L),c&&(s.headerHeight=c),q.height=s.headerHeight,q.safeAreaTop=s.safeAreaTop,q.safeAreaTop&&(q.top=q.safeAreaTop+(L.top??0),q.height=q.height+s.safeAreaTop),console.debug("[header] height",q.height),console.debug("[header] safeBottom",q.safeAreaTop),q}if(c&&(q.height=c),n.padding){const L=Me(n.padding);Object.assign(q,L)}return q});t.onUnmounted(()=>{s&&(s.headerMounted=!1)});const m=t.computed(()=>{const q={};return d.value.height!==null&&d.value.height!==void 0&&(q.height=`${d.value.height}px`),d.value.top!==null&&d.value.top!==void 0&&(q.paddingTop=`${d.value.top}px`),d.value.left!==null&&d.value.left!==void 0&&(q.paddingLeft=`${d.value.left}px`),d.value.right!==null&&d.value.right!==void 0&&(q.paddingRight=`${d.value.right}px`),d.value.bottom!==null&&d.value.bottom!==void 0&&(q.paddingBottom=`${d.value.bottom}px`),q}),f=t.computed(()=>{const q={};return d.value.safeAreaTop!==null&&d.value.safeAreaTop!==void 0&&(q.top=`${d.value.safeAreaTop}px`),q}),h=t.computed(()=>{const q={};return d.value.safeAreaTop!==null&&d.value.safeAreaTop!==void 0&&(q.top=`${d.value.safeAreaTop}px`),q}),y=t.computed(()=>!!n.leftShow),k=t.computed(()=>!(d.value.height!==null&&d.value.height!==void 0&&d.value.height<=0)),v=t.computed(()=>n.titleShow?n.title||n.titleIcon||a.slots.titleIcon||a.slots.default:!1),g=t.computed(()=>n.rightShow?n.rightText||n.rightIcon||a.slots.rightIcon||a.slots.right:!1),u=t.computed(()=>n.leftIcon),p=t.computed(()=>u.value||a.slots.leftIcon),b=t.computed(()=>n.titleIcon),S=t.computed(()=>n.titleIcon||a.slots.titleIcon),B=t.computed(()=>n.rightIcon),E=t.computed(()=>n.rightIcon||a.slots.rightIcon);function I(){a.emit("back")}function V(){a.emit("click-title")}function C(){a.emit("click-right")}function w(){a.emit("click-right-text")}return{classes:i,styles:m,mHeaderShow:k,leftStyles:f,rightStyles:h,mLeftShow:y,mTitleShow:v,mRightShow:g,mLeftIcon:u,hasLeftIcon:p,mTitleIcon:b,hasTitleIcon:S,mRightIcon:B,hasRightIcon:E,handleLeft:I,handleCenter:V,handleRight:C,handleRightText:w}}}),{componentName:zs,create:xs,scope:Ps}=U("header-bar"),Ls=xs(Ms(zs,Ps,G.Left)),Rs={key:1,class:"fox-header-bar__title"},Os={key:0,class:"title-text"};function Fs(e,o,l,n,a,r){return e.mHeaderShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"all",{},()=>[e.mLeftShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-header-bar__left",style:t.normalizeStyle(e.leftStyles)},[t.renderSlot(e.$slots,"left",{},()=>[e.hasLeftIcon?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:o[0]||(o[0]=(...s)=>e.handleLeft&&e.handleLeft(...s)),class:"left-icon"},[t.renderSlot(e.$slots,"leftIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mLeftIcon)))])])):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[1]||(o[1]=(...s)=>e.handleLeft&&e.handleLeft(...s))},t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0),e.mTitleShow?(t.openBlock(),t.createElementBlock("view",Rs,[t.renderSlot(e.$slots,"default",{},()=>[e.title?(t.openBlock(),t.createElementBlock("view",Os,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.hasTitleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[2]||(o[2]=(...s)=>e.handleCenter&&e.handleCenter(...s)),class:"title-icon"},[t.renderSlot(e.$slots,"titleIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mTitleIcon)))])])):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),e.mRightShow?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-header-bar__right",style:t.normalizeStyle(e.rightStyles)},[t.renderSlot(e.$slots,"right",{},()=>[e.rightText?(t.openBlock(),t.createElementBlock("view",{key:0,onClick:o[3]||(o[3]=(...s)=>e.handleRightText&&e.handleRightText(...s))},t.toDisplayString(e.rightText),1)):t.createCommentVNode("",!0),e.hasRightIcon?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[4]||(o[4]=(...s)=>e.handleRight&&e.handleRight(...s)),class:"right-icon"},[t.renderSlot(e.$slots,"rightIcon",{},()=>[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.mRightIcon)))])])):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0)])],6)):t.createCommentVNode("",!0)}const jl=W(Ls,[["render",Fs]]);function Us(e,o){return{props:{height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(l,n){const a=Ue(),r=a?vo(a):null;r&&(r.footerMounted=!0);const s=t.computed(()=>{const m=e;let f=e;return l.align==="left"?f=`${f}__left`:l.align==="right"?f=`${f}__right`:f=`${f}__center`,{[m]:!0,[f]:!0}}),i=l.height!==null&&l.height!==void 0?se(l.height):null,c=t.computed(()=>{const m={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(a&&r){const f=Me(l.padding??r.footerPadding);return Object.assign(m,f),i&&(r.footerHeight=i),m.height=r.footerHeight,m.safeAreaBottom=r.safeAreaBottom,m.safeAreaBottom&&(m.height=m.height+r.safeAreaBottom,m.bottom=m.safeAreaBottom+(f.bottom??0)),m}if(i&&(m.height=i),l.padding){const f=Me(l.padding);Object.assign(m,f)}return m});t.onUnmounted(()=>{r&&(r.footerMounted=!1)});const d=t.computed(()=>{const m={};return c.value.height!==null&&c.value.height!==void 0&&(m.height=le(c.value.height)),c.value.top!==null&&c.value.top!==void 0&&(m.paddingTop=le(c.value.top)),c.value.left!==null&&c.value.left!==void 0&&(m.paddingLeft=le(c.value.left)),c.value.right!==null&&c.value.right!==void 0&&(m.paddingRight=le(c.value.right)),c.value.bottom!==null&&c.value.bottom!==void 0&&(m.paddingBottom=le(c.value.bottom)),m});return{classes:s,styles:d}}}}const{componentName:Ks,create:Hs,scope:pw}=U("footer-bar"),js=Hs(Us(Ks));function Ws(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Wl=W(js,[["render",Ws]]);function Ys(e,o){return{props:{padding:{type:[Object],required:!1}},setup(l){const n=Ue(),a=t.computed(()=>({[e]:!0})),r=t.computed(()=>{const s={};if(n){const i=vo(n);if(i){if(l.padding){const f=Me(l.padding);Object.assign(i.contentPadding,f)}const c=ko(n,i),d=bo(n,i);let m="";if(i.contentHeight?m=`${i.contentHeight}`:m=`${i.height}px`,console.debug("[content]page height:",m),console.debug("[content]header height:",c),console.debug("[content]footer height:",d),console.debug("[content]padding:",i.contentPadding),s.height=m,i.contentPadding.top||c>0){const f=(i&&i.contentPadding&&i.contentPadding.top)??0;s.paddingTop=`${c+f}px`}if(i.contentPadding.bottom||d>0){const f=(i&&i.contentPadding&&i.contentPadding.bottom)??0;s.paddingBottom=`${d+f}px`}return i.contentPadding.left&&(s.paddingLeft=`${i.contentPadding.left}px`),i.contentPadding.right&&(s.paddingRight=`${i.contentPadding.right}px`),s}}if(l.padding){const i=Me(l.padding);i.left&&(s.paddingLeft=`${i.left}px`),i.top&&(s.paddingTop=`${i.top}px`),i.right&&(s.paddingRight=`${i.right}px`),i.bottom&&(s.paddingBottom=`${i.bottom}px`)}return s});return{classes:a,styles:r}}}}const{componentName:Xs,create:Qs,scope:hw}=U("content"),Gs=Qs(Ys(Xs));function Zs(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const Yl=W(Gs,[["render",Zs]]),mt="GroupStateKey",Xl=Symbol.for("GroupScopeKey");function So(){return t.inject(Xl,!1)}function Co(e=!0){t.provide(Xl,e)}function Js(e,o={}){const n={type:"form",width:e.get("width",-1),column:-1,gutter:-1};Object.assign(n,o);const a=t.shallowRef(n),r=t.markRaw({layout:a,passport:0,order:{index:0}});return e.set(mt,r),r}function In(e,o,l=-1,n=-1,a=!1,r){const s=e.get(mt);if(!s)return;const i=e.get("groupLayout")??{};l===-1&&(l=i.column??1),n===-1&&(n=i.gutter??0),r||(r=i.minItemWidth??-1),r=se(r);const c=()=>{const d=o===""||o===-1,m=se(o);let f=ue(l);const h=se(n);if(!d){let v=(m-(f-1)*h)/f;for(;r!==-1&&f>1&&v<r;)f--,v=(m-(f-1)*h)/f}let y=!1;const k=s.layout;k.value.width=o,k.value.column!==f&&(k.value.column=f,y=!0),k.value.gutter!==h&&(k.value.gutter=h,y=!0),y&&t.triggerRef(k)};if(a)c();else{const d=++s.passport;setTimeout(()=>{d===s.passport&&c()},50)}}function At(e,o=!1){let l;return o?l=e.getForParent(mt):l=e.get(mt),l.layout}function fn(e,o=!1){let l;return o?l=e.getForParent(mt):l=e.get(mt),l.order}function we(e,o=1){return o==="stretch"?-1:(o=ue(o),o===-1?100:100*o/e)}function _s(e){return e===window}const ve=e=>{const o=t.unref(e);if(_s(o)){const l=o.innerWidth,n=o.innerHeight;return{top:0,left:0,right:l,bottom:n,width:l,height:n}}return o&&o.getBoundingClientRect?o.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}},We=(e,o)=>e?o?`fox-group__${e}-${o}`:"":`fox-group__${o}`,ei=e=>{if(!e.props||e.props.span===null||e.props.span===void 0){const o=e.type,l=(o.props&&o.props.span&&o.props.span.default)??1;return typeof l=="function"?l():l}return e.props.span},ti=e=>{if(!e.props||e.props.offset===null||e.props.offset===void 0){const l=e.type,n=(l.props&&l.props.offset&&l.props.offset.default)??0;return typeof n=="function"?n():n}const o=ue(e.props.offset);return o<0?0:o},oi=e=>{if(!e.props||e.props.foxItemType===null||e.props.foxItemType===void 0){const o=e.type,l=(o.props&&o.props.foxItemType&&o.props.foxItemType.default)??"Item";return typeof l=="function"?l():l}return e.props.foxItemType??"Item"},ni=e=>{if(!e.props||e.props.foxSubItemCount===null||e.props.foxSubItemCount===void 0){const l=e.type,n=(l.props&&l.props.foxSubItemCount&&l.props.foxSubItemCount.default)??"Item";return typeof n=="function"?n():n}const o=ue(e.props.foxSubItemCount);return o<0?1:o};function $o(e){let o=e.offsetHeight;if(o<=0){const l=e.cloneNode(!0),n=e.offsetWidth;l.style=`width: ${n}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(l),o=l.offsetHeight,document.body.removeChild(l)}return o}function li(e,o,l){return{props:{...de,...Fl,...Ul},emits:["update:collapse"],setup(n,a){const r=dn(n.name,n,Kl),s=Js(r,{type:n.type}),i=So();Co(!0);const c=t.computed(()=>i&&r?At(r,!0).value:null),d=t.getCurrentInstance(),m=R=>{const O=d?.proxy;O&&typeof O.setNameValidateRules=="function"&&O.setNameValidateRules(R,!0)};t.watch(()=>n.rules,(R,O)=>{if(!R&&!O)return;const X=t.toRaw(O),K=t.toRaw(R),N=K?Reflect.ownKeys(K):[];(X?Reflect.ownKeys(X):[]).forEach(P=>{N.includes(P)||(K[P]=[])}),m(K)},{deep:!0});const f=e,h=t.computed(()=>{const R={};if(R.height=q.value,c.value){const O=At(r,!0);if(O.value.type==="flex"){if(n.width){const N=le(n.width);R.width=N}else{const N=we(O.value.column,n.span);N>0&&(R.width=`${N}%`)}const X=we(O.value.column,n.offset);X>0&&(R["margin-left"]=`${X}%`);const K=O.value.gutter/2;K>0&&(R["padding-left"]=`${K}px`,R["padding-right"]=`${K}px`)}else if(O.value.type==="flow"){if(n.width){const N=le(n.width);R.width=N}else{const N=we(O.value.column,n.span);N>0&&(R.width=`${N}%`)}const X=we(O.value.column,n.offset);X>0&&(R["margin-left"]=`${X}%`);const K=O.value.gutter/2;if(K>0){const N=r?fn(r,!0):null;if(N){let D=ue(n.offset)+ue(n.span);(D===-1||D>O.value.column)&&(D=O.value.column);const P=Math.ceil((N.index+1)/O.value.column),F=Math.ceil((N.index+D)/O.value.column);if(P===F){const Q=(N.index+1)%O.value.column,ee=(N.index+D)%O.value.column,Z=Q===1?0:K,J=ee===0?0:K;R["padding-left"]=`${Z}px`,R["padding-right"]=`${J}px`}else{const Q=D%O.value.column,ee=0,Z=Q===0?0:K;R["padding-left"]=`${ee}px`,R["padding-right"]=`${Z}px`}N.index+=D}else R["padding-left"]=`${K}px`,R["padding-right"]=`${K}px`}}}else if(n.width){const O=le(n.width);R.width=O}return A.value&&(R["box-sizing"]="content-box"),R}),y=t.computed(()=>n.type==="flex"?{[`${We("",n.type)}`]:!0,[`${We("justify",n.justify)}`]:!0,[`${We("align",n.align)}`]:!0,[`${We("flex",n.flexWrap)}`]:!0,[`${f}__gutter`]:!0}:n.type==="flow"?{[`${We("",n.type)}`]:!0,[`${We("justify",n.justify)}`]:!0,[`${We("align",n.align)}`]:!0}:{[`${We("",n.type)}`]:!0,[`${f}__gutter`]:!0}),k=t.toRef(n,"title"),v=t.toRef(n,"gutter"),g=t.toRef(n,"column"),u=t.computed(()=>i?!0:ge(n.isWrap)),p=[],b=R=>{p.push(R)},S=()=>{let R=p.length;p.splice(0,R)},B=t.ref(-1);In(r,B.value,g.value,v.value,!0,n.minItemWidth),n.autoLayout&&t.watch([B,g,v],([R,O,X])=>{s.order.index=0,In(r,R,O,X,!1,n.minItemWidth)});const E=t.computed(()=>A.value?n.expandText??"":n.collapseText??""),I=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),V=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,["is-expand"]:!A.value,["is-collapse"]:A.value})),C=t.ref(),w=t.ref(),q=t.computed(()=>M.value||le(n.height)||""),L=t.ref(!1),M=t.ref(""),A=t.ref(!1);let T=-1;const z=(R,O=!0)=>{const X=C.value;if(X&&L.value!==R){if(T=T===-1?$o(X):T,A.value=!0,O)if(X.style["will-change"]="height",X.ontransitionend=function(){X.ontransitionend=null,this.style["will-change"]="auto",R||(M.value="",A.value=!1)},R){let K=0;n.collapseHeight?K=n.collapseHeight:w.value&&w.value.classList.contains(`${e}__header`)&&(K=$o(w.value)),M.value=`${T}px`,t.nextTick(()=>{M.value=`${K}px`})}else M.value=`${T}px`;else if(R){let K=0;n.collapseHeight?K=n.collapseHeight:w.value&&w.value.classList.contains(`${e}__header`)&&(K=$o(w.value)),M.value=`${K}px`}else A.value=!1,M.value=`${T}px`;L.value=R,a.emit("update:collapse",R)}};t.watch(()=>n.collapse,R=>{z(R)});const $=()=>{x()},x=R=>{R=R??!L.value,z(R)};Te({toggleCollapse:x});let H=null;t.onMounted(()=>{if(n.rules){const R=t.toRaw(n.rules);m(R)}if(lt&&(z(ge(n.collapse),!1),n.autoLayout&&Array.isArray(p)&&p.length>0)){const R=p[0];B.value=ve(R).width,window.ResizeObserver&&(H=new window.ResizeObserver(()=>{const O=ve(R).width;O>0&&O!==B.value&&(B.value=O)}),H.observe(R))}}),t.onUnmounted(()=>{H?.disconnect()});const j=(R,O,X,K)=>{const N={...y.value};return O===0&&(N[`${f}__first`]=!0),X>=K-1&&(N[`${f}__last`]=!0),t.h("div",{ref:b,key:`${O}`,class:N},R)},Y=R=>{if(typeof R.type=="symbol"){if(Array.isArray(R.children)){const O=[...R.children];for(let X=O.length-1;X>=0;X--){const K=O[X],N=Y(K);N===null?O.splice(X,1):N.length>0&&Reflect.apply([].splice,O,[X,1,...N])}return O}return null}return[]};return()=>{s.order.index=0;const R=[];let O=0;if(a.slots.header){const D={key:`${O++}`,ref:w,class:{[`${f}__header`]:!0,[`${f}__first`]:!0}},P=t.h("div",D,[a.slots.header()]);R.push(P)}else{const D=[];if(k.value){if(n.showMark){const F={class:{[`${f}__header-mark`]:!0}};n.markColor&&(F.style={background:n.markColor});const Q=t.h("div",F);D.push(Q)}const P=t.h("div",{class:{[`${f}__header-title`]:!0}},[k.value]);D.push(P)}if(a.slots.toolbar&&D.push(a.slots.toolbar()),n.showCollapse){const P=[];if(E.value){const ee={class:I.value},Z=t.h("span",ee,[E.value]);P.push(Z)}const F={class:V.value},Q=l(n.collapseIcon,F);if(Q&&P.push(Q),P.length>0){const ee=t.h("div",{class:{[`${f}__header-collapse`]:!0},onClick:$},P);D.push(ee)}}if(D.length>0){const P={key:`${O++}`,ref:w,class:{[`${f}__header`]:!0,[`${f}__first`]:!0}},F=t.h("div",P,D);R.push(F)}}S();const X=a.slots.default?a.slots.default():[];let K=[],N=0;if(n.type==="flex"){for(let D=0;D<X.length;D++){const P=Y(X[D]);if(P===null)continue;P.length>0&&Reflect.apply([].splice,X,[D,1,...P]);const F=X[D];if(oi(F)==="fragment"){let oe=ni(F);oe>s.layout.value.column?oe=s.layout.value.column:oe<=0&&(oe=1);const re=N+oe;if(re>s.layout.value.column){const te=j([...K],O++,D-1,X.length);R.push(te),N=oe,K=[F]}else K.push(F),N=re;continue}const ee=ei(F),Z=ti(F);if(ee==="stretch"){if(N<s.layout.value.column){K.push(F);const oe=j([...K],O++,D,X.length);R.push(oe)}else{const oe=j([...K],O++,D-1,X.length);R.push(oe);const re=j([F],O++,D,X.length);R.push(re)}N=0,K=[];continue}let J=ue(ee);if(J===-1){if(K.length>0){const re=j([...K],O++,D-1,X.length);R.push(re)}const oe=j([F],O++,D,X.length);R.push(oe),N=0,K=[];continue}J>s.layout.value.column?J=s.layout.value.column:J<=0&&(J=1);const ne=N+J+Z;if(ne>s.layout.value.column){const oe=j([...K],O++,D-1,X.length);R.push(oe),N=J+Z,K=[F]}else K.push(F),N=ne}if(K.length>0){const D=j([...K],O++,X.length,X.length);R.push(D)}}else if(n.type==="flow"){const D=j(X,O++,0,X.length);R.push(D)}else for(let D=0;D<X.length;D++){const P=X[D],F=j([P],O++,D,X.length);R.push(F)}if(u.value){const D=n.tag||"div";return t.h(D,{ref:C,prop:n.name,class:{[`${f}`]:!0,"is-collapse":A.value},style:h.value},[R])}else return R}}}}const{componentName:ai,create:ri,scope:si}=U("group"),ii=(e=G.RectUp,o={})=>t.h(e,o),Ql=ri(li(ai,si,ii));function ci(e){return e===window}const ui=/matrix\((.+)\)/,Gl=e=>{const o=t.unref(e);if(!o)return{x:0,y:0};if(ci(o))return{x:0,y:0};let l=0,n=0,a=o;for(;a!==null;)l+=a.offsetLeft,n+=a.offsetTop,a=a.offsetParent;let r=0,s=0,i=0,c=0;for(a=o;a!==document;){s+=a.scrollTop,r+=a.scrollLeft;const{transform:d}=window.getComputedStyle(a);if(d){const m=ui.exec(d);if(m){let h=m[1].split(/\s*,\s*/);h.length==6&&(i+=Number(h[4]),c+=Number(h[5]))}}a=a.parentNode}return l-=r,n-=s,l+=i,n+=c,{x:l,y:n}};class di{watchedListeners=[];add(o){this.watchedListeners.push(o)}remove(o){const l=this.watchedListeners.indexOf(o);l!==-1&&this.watchedListeners.splice(l,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(o=>{try{o()}catch{}})}}class fi{monitorRegister=new WeakMap;watch(o,l){let n=o.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r||(r=new di,n.addEventListener("scroll",r.listen),n===document.body&&n.addEventListener("resize",r.listen),this.monitorRegister.set(n,r)),r.add(l),n=n.parentNode}}unwatch(o,l){let n=o.parentNode;const a=document.body.parentNode;for(;n&&n!==a;){let r=this.monitorRegister.get(n);r&&(r.remove(l),r.size()===0&&(this.monitorRegister.delete(n),n.removeEventListener("scroll",r.listen),n===document.body&&n.removeEventListener("resize",r.listen))),n=n.parentNode}}}const qn=new fi,Zl={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:mi,create:pi}=U("price"),hi=pi({props:{...Zl},setup(e){const o=t.computed(()=>({[mi]:!0})),l=t.computed(()=>e.needSymbol?e.symbol:""),n=t.computed(()=>pe(e.price)==0?"":rn(e.price,e.decimalLength,!0,ue(e.digits),e.separator)),a=t.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=n.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:o,showSymbol:l,intText:a,decimalText:r}}}),gi=["innerHTML"],yi=["innerHTML"];function vi(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.needSymbol&&e.position=="before"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,gi)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--${e.size}`)},t.toDisplayString(e.intText),3),e.decimalText.length!=0?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`fox-price--decimal-${e.size}`)},".",2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(`fox-price--decimal-${e.size}`)},t.toDisplayString(e.decimalText),3),e.needSymbol&&e.position=="after"?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-price--symbol",`fox-price--symbol-${e.size}`]),innerHTML:e.showSymbol},null,10,yi)):t.createCommentVNode("",!0)],2)}const tt=W(hi,[["render",vi]]),{componentName:Lt,create:ki}=U("hint-text"),bi=ki({components:{Price:tt},props:{...Zl,type:{type:String,default:"number"},placement:{type:String,default:"top"},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},popupHeight:{type:Number,default:40},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function}},setup(e,o){const l=t.ref({x:0,y:0}),n=t.ref(0),a=t.ref(0),r=t.ref(e.placement),s=10,i=4,c=t.ref(0),d=t.computed(()=>({[Lt]:!0})),m=t.ref(null),f=(E,I,V=10)=>{if(!lt||!e.autoFit||I===!1||!E)return;const C=Gl(e.reference);l.value=C,C.y<e.reference.offsetHeight&&(r.value="bottom");const w=ve(e.reference);n.value=w.width,a.value=w.height,setTimeout(()=>{if(!m.value)return;const q=document.documentElement.clientWidth||document.body.clientWidth,L=m.value.offsetWidth;let M=q-(L+se(l.value.x));M<0?c.value=M:c.value=0},V)},h=Vt(()=>{f(e.message,e.visible)},10),y=t.computed(()=>e.visible&&k.value),k=t.ref(!0),v=Vt(E=>{const I=E[0];I&&(k.value=I.isIntersecting)},10),g=new IntersectionObserver(v);t.watch([()=>e.message,()=>e.visible],([E,I])=>{f(E,I)}),t.onMounted(()=>{f(e.message,e.visible),qn.watch(e.reference,h),g.observe(e.reference)}),t.onBeforeMount(()=>{qn.unwatch(e.reference,h),g.unobserve(e.reference),g.disconnect()});const u=t.computed(()=>{const E={left:`${se(l.value.x)+c.value}px`,height:le(e.popupHeight)};return e.placement==="bottom"?E.top=le(l.value.y+a.value+s):E.top=le(l.value.y-e.popupHeight-s-i),e.autoFit?E["min-width"]=le(n.value):E.width=le(n.value),E}),p=t.computed(()=>({[`${Lt}__content`]:!0})),b=t.computed(()=>({})),S=t.computed(()=>({[`${Lt}__arrow`]:!0,[`${Lt}__arrow-${e.placement}`]:!0})),B=t.computed(()=>e.placement==="bottom"?{top:`${-s}px`,left:`${se(-c.value+20)}px`}:{top:"100%",left:`${se(-c.value+20)}px`});return{show:y,tipRef:m,classes:d,styles:u,textClasses:p,textStyles:b,arrowClasses:S,arrowStyles:B}}}),Si={key:1,class:"text"};function Ci(e,o,l,n,a,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createBlock(t.Transition,{name:"hint-text-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before"},null,8,["price"])):(t.openBlock(),t.createElementBlock("span",Si,t.toDisplayString(e.message),1))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])]),_:1})}const wo=W(bi,[["render",Ci]]);class Jl{seed=new Date().getTime();constructor(o){this.seed=o??new Date().getTime()}get(){let o=this.seed++;return this.seed<0&&(this.seed=0),o}}const jo={},wi=new Jl,ft=new Map,Wo=e=>{if(e){const o=document.getElementById(e);ft.delete(e),o&&o.parentNode?.removeChild(o)}else{for(const o of ft.keys()){const l=document.getElementById(o);l&&l.parentNode?.removeChild(l)}ft.clear()}},Ni=e=>{const o=document.getElementById(e.id);if(o){const l=ft.get(e.id);l?e={...jo,...l,...e}:e={...jo,...e};const n=t.createVNode(wo,e);return t.render(n,o),e.id}},Bi=e=>{e.unmount=Wo;let o;if(e.id){if(o=e.id,ft.has(o))return Ni(e)}else o=`hinttext_${wi.get()}`;e={...jo,...e},e.id=o,ft.set(o,e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(wo,e);return t.render(n,l),document.body.appendChild(l),o},Vi=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Ft={show(e,o,l={},n=!0){return n&&Wo(),Vi(o),Bi({...l,message:o,reference:e})},hide(e){Wo(e)},install(e){e.config.globalProperties.$hintText=Ft}},{componentName:Mn,create:Ai}=U("item"),Ei=Ai({inheritAttrs:!0,props:{...de,...fe},emits:["appear","disappear"],setup(e,o){Be({componentName:Mn,validate:!1},e.prop??o.attrs.name);const l=Ue(),n=So();Co(!1);const a=t.computed(()=>n&&l?At(l,!1).value:null),r=Mn,s=t.ref(null),i=t.computed(()=>{const N={[r]:!0,[`${r}__gutter`]:a.value&&a.value.type!=="flow",[`${r}__stretch`]:e.span==="stretch",[`${r}__input--border`]:e.hasBorder};if(N[e.errorMarkClass]=!!w.value,N[e.warnMarkClass]=!!V.value,N[e.infoMarkClass]=!!E.value,typeof s.value=="function"){const D=s.value(itemPropName);N[D]=!0}else if(typeof s.value=="string"){const D=s.value;N[D]=!0}return N}),c=t.computed(()=>{const N={};if(a.value)if(a.value.type==="flex"){if(e.width)N.width=le(e.width);else{const F=we(a.value.column,e.span);F>0&&(N.width=`${F}%`)}const D=we(a.value.column,e.offset);D>0&&(N["margin-left"]=`${D}%`);const P=a.value.gutter/2;P>0&&(N["padding-left"]=`${P}px`,N["padding-right"]=`${P}px`)}else if(a.value.type==="flow"){if(e.width)N.width=le(e.width);else{const F=we(a.value.column,e.span);F>0&&(N.width=`${F}%`)}const D=we(a.value.column,e.offset);D>0&&(N["margin-left"]=`${D}%`);const P=a.value.gutter/2;if(P>0){const F=l?fn(l,!1):null;if(F){let Q=ue(e.offset)+ue(e.span);(Q===-1||Q>a.value.column)&&(Q=a.value.column);const ee=Math.ceil((F.index+1)/a.value.column),Z=Math.ceil((F.index+Q)/a.value.column);if(ee===Z){const J=(F.index+1)%a.value.column,ne=(F.index+Q)%a.value.column,oe=J===1?0:P,re=ne===0?0:P;N["padding-left"]=`${oe}px`,N["padding-right"]=`${re}px`}else{const J=Q%a.value.column,ne=0,oe=J===0?0:P;N["padding-left"]=`${ne}px`,N["padding-right"]=`${oe}px`}F.index+=Q}else N["padding-left"]=`${P}px`,N["padding-right"]=`${P}px`}}else return e.width&&(N.width=le(e.width)),N;else e.width&&(N.width=le(e.width));return N}),d=t.ref(null),m=t.computed({get:()=>d.value??ge(e.isRequired),set:N=>{d.value=N}}),f=t.computed(()=>typeof e.label=="string"&&e.label.length>0||typeof o.slots.label=="function"),h=Ee(t.toRef(e,"labelPosition"),"labelPosition",Zt.Near),y=t.computed(()=>h&&h.value==="top"?"top":h&&h.value==="right"?"right":"left"),k=t.computed(()=>({[`${r}__main`]:!0,[`${r}__main--${y.value}`]:!0})),v=t.computed(()=>({label:!0,[`label--${y.value}`]:!0})),g=Ee(t.toRef(e,"labelWidth"),"labelWidth",Zt.Near),u=t.computed(()=>g&&g.value?{width:le(g.value)}:{}),p=t.computed(()=>({["label--string"]:!0,["label--required"]:m.value})),b=t.computed(()=>({content:!0,[e.contentClass]:!0})),S=t.computed(()=>({...e.contentStyle})),B=t.reactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Te({setRequired(N){m.value=N},setErrorTip(N){B.errorTip=N},setErrorIcon(N){B.errorIcon=N},setWarnTip(N){B.warnTip=N},setWarnIcon(N){B.warnIcon=N},setInfoTip(N){B.infoTip=N},setInfoIcon(N){B.infoIcon=N},setCustomClassName(N){s.value=N}});const E=t.computed(()=>e.infoTip||B.infoTip),I=t.computed(()=>e.infoIcon||B.infoIcon),V=t.computed(()=>e.warnTip||B.warnTip),C=t.computed(()=>e.warnIcon||B.warnIcon),w=t.computed(()=>e.errorTip||B.errorTip),q=t.computed(()=>e.errorIcon||B.errorIcon),L=t.computed(()=>w.value?"error":V.value?"warn":E.value?"info":""),M=t.computed(()=>L.value.length>0),A=t.computed(()=>L.value==="error"?w.value:L.value==="warn"?V.value:L.value==="info"?E.value:""),T=t.computed(()=>L.value==="error"?q.value:L.value==="warn"?C.value:L.value==="info"?I.value:null),z=t.computed(()=>{let N={[`${r}__tip`]:!0,[`${r}__tip--${L.value}`]:!0};return L.value==="error"&&e.errorClass?N[`${e.errorClass}`]=!0:L.value==="warn"&&e.warnClass?N[`${e.warnClass}`]=!0:L.value==="info"&&e.infoClass&&(N[`${e.infoClass}`]=!0),N}),$=t.computed(()=>{let N={};return h&&h.value==="top"||!f.value?N["padding-left"]="0px":g&&g.value&&(N["padding-left"]=le(g.value)),N}),x=()=>t.h(T.value,{width:12,height:12}),H=t.computed(()=>o.slots.fixedTip),j=t.computed(()=>({[`${r}__fixed-tip`]:!0})),Y=t.ref();let R="";t.watch([()=>e.hintVisible,()=>e.hintText,()=>e.hintType,()=>e.hintProps],([N,D,P,F])=>{Y.value&&(N&&!Ce(D)?R?Ft.show(Y.value,D,{...F,id:R,type:P},!0):R=Ft.show(Y.value,D,{...F,type:P},!0):Ft.hide(R))});let O=null;const X=()=>{O||!Y.value||(O=new IntersectionObserver(N=>{let D=!1;for(let P of N)if(P.intersectionRatio>0){D=!0,D&&o.emit("appear",P);break}D||o.emit("disappear")}),O.observe(Y.value))},K=()=>{!O||!Y.value||(O.unobserve(Y.value),O=null)};return t.watch(()=>ge(e.appearListen),N=>{N?X():K()}),t.onMounted(()=>{ge(e.appearListen)&&X()}),t.onUnmounted(K),{classes:i,styles:c,mainClasses:k,hasLabel:f,labelClasses:v,labelStyles:u,labelStringClasses:p,contentClasses:b,contentStyles:S,contentRef:Y,hasTip:M,mTip:A,mIcon:T,renderIcon:x,tipClasses:z,tipStyles:$,hasFixedTip:H,fixedTipClasses:j}}}),Ti=["prop"],$i={key:0,class:"fox-item__tip--icon"},Di={class:"fox-item__tip--text"};function Ii(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),prop:e.prop},[t.createElementVNode("div",{class:t.normalizeClass(e.mainClasses)},[e.hasLabel?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.labelClasses),style:t.normalizeStyle(e.labelStyles)},[t.createElementVNode("div",{class:t.normalizeClass(e.labelStringClasses)},[t.renderSlot(e.$slots,"label",{},()=>[t.createTextVNode(t.toDisplayString(e.label),1)])],2)],6)):t.createCommentVNode("",!0),t.createElementVNode("div",{ref:"contentRef",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.contentStyles)},[t.renderSlot(e.$slots,"prepend"),t.renderSlot(e.$slots,"default"),t.renderSlot(e.$slots,"append"),e.hasFixedTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.fixedTipClasses)},[t.renderSlot(e.$slots,"fixedTip")],2)):t.createCommentVNode("",!0)],6)],2),t.createVNode(t.Transition,{name:"fox-item__animate"},{default:t.withCtx(()=>[e.hasTip?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(e.tipClasses),style:t.normalizeStyle(e.tipStyles)},[e.mIcon?(t.openBlock(),t.createElementBlock("div",$i,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))])):t.createCommentVNode("",!0),t.createElementVNode("div",Di,t.toDisplayString(e.mTip),1)],6)):t.createCommentVNode("",!0)]),_:1}),t.renderSlot(e.$slots,"hide")],14,Ti)}const Ve=W(Ei,[["render",Ii]]);function qi(e,o){return{props:{span:{type:[Number,String],required:!1,default:-1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1},align:{type:[String],required:!1,default:"center"},contentClass:{type:[String],required:!1},contentStyle:{type:[Object]},divide:{type:[Boolean],required:!1,default:!1}},setup(l,n){const a=e,r=t.computed(()=>({[a]:!0,[`${a}__stretch`]:l.span==="stretch",[`${a}__${l.align}`]:!0})),s=Ue(),i=So();Co(!1);const c=t.computed(()=>{const m={};if(i&&s){const f=At(s,!1);if(f.value.type!=="flex")return l.width&&(m.width=le(l.width)),m;if(l.width)m.width=le(l.width);else{const k=we(f.value.column,l.span);k>0&&(m.width=`${k}%`)}const h=we(f.value.column,l.offset);h>0&&(m["margin-left"]=`${h}%`);const y=f.value.gutter/2;y>0&&(m["padding-left"]=`${y}px`,m["padding-right"]=`${y}px`)}else l.width&&(m.width=le(l.width));return m}),d=t.computed(()=>({[`${a}__content`]:!0}));return()=>{const m=[];if(n.slots.default){const k=n.slots.default();if(l.divide)for(let v=0;v<k.length;v++){if(v>0){const g=t.h("view",{class:{[`${a}__divide`]:!0}});m.push(g)}m.push(k[v])}else Reflect.apply([].push,m,k)}const f={class:d.value},h=t.h("view",f,m),y={class:r.value,style:c.value};return t.h("view",y,[h])}}}}const{componentName:Mi,create:zi,scope:gw}=U("row-item"),_l=zi(qi(Mi));function xi(e,o){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},width:{type:[String,Number],required:!1}},setup(l,n){const a=Ue(),r=So();Co(!1);const s=t.computed(()=>r&&a?At(a,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:l.span==="stretch"})),d=t.computed(()=>{const m={};if(s.value)if(s.value.type==="flex"){if(l.width)m.width=le(l.width);else{const y=we(s.value.column,l.span);y>0&&(m.width=`${y}%`)}const f=we(s.value.column,l.offset);f>0&&(m["margin-left"]=`${f}%`);const h=s.value.gutter/2;h>0&&(m["padding-left"]=`${h}px`,m["padding-right"]=`${h}px`)}else if(s.value.type==="flow"){if(l.width)m.width=le(l.width);else{const y=we(s.value.column,l.span);y>0&&(m.width=`${y}%`)}const f=we(s.value.column,l.offset);f>0&&(m["margin-left"]=`${f}%`);const h=s.value.gutter/2;if(h>0){const y=a?fn(a,!1):null;if(y){let k=ue(l.offset)+ue(l.span);(k===-1||k>s.value.column)&&(k=s.value.column);const v=Math.ceil((y.index+1)/s.value.column),g=Math.ceil((y.index+k)/s.value.column);if(v===g){const u=(y.index+1)%s.value.column,p=(y.index+k)%s.value.column,b=u===1?0:h,S=p===0?0:h;m["padding-left"]=`${b}px`,m["padding-right"]=`${S}px`}else{const u=k%s.value.column,p=0,b=u===0?0:h;m["padding-left"]=`${p}px`,m["padding-right"]=`${b}px`}y.index+=k}else m["padding-left"]=`${h}px`,m["padding-right"]=`${h}px`}}else return l.width&&(m.width=le(l.width)),m;else l.width&&(m.width=le(l.width));return m});return()=>{const m={class:c.value,style:d.value};return n.slots&&typeof n.slots.default=="function"?t.h("view",m,n.slots.default()):t.h("view",m)}}}}const{componentName:Pi,create:Li,scope:yw}=U("slot-item"),ea=Li(xi(Pi)),zn={type:{type:String,default:"text"},modelValue:{type:[String,Number],default:""},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Ri(e,o,l,n){return{props:{...de,...fe,...zn},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ne(t.computed(()=>a.disabled)),i=Ie(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),{toLocaleRefs:d}=ie.useFoxI18n(o),m=d(a,["placeholder"]),f=t.ref(!1),h=ze(a,"modelValue"),y=e,k=t.computed(()=>({[y]:!0,[`${y}__disabled`]:s.value,[`${y}__readonly`]:i.value})),v=Ee(t.computed(()=>a.textAlign),"textAlign"),g=t.computed(()=>f.value?{textAlign:"left"}:{textAlign:v.value??"right"}),u=A=>{let z=A.target.value;a.type==="digit"&&(z=Fo(z,!0)),a.type==="number"&&(z=Fo(z,!1)),a.maxLength&&z.length>Number(a.maxLength)&&(z=z.slice(0,Number(a.maxLength))),h.value=z,c("update:modelValue",z,A),c("change",z,A)};let p=ze(a,"hintText"),b=t.ref(!1);const S=A=>{let z=A.target.value;f.value=!0,Ce(p.value)||(b.value=!0),c("focus",z,A)},B=A=>{setTimeout(()=>{b.value&&(b.value=!1),f.value=!1},0);let z=A.target.value;a.maxLength&&z.length>Number(a.maxLength)&&(z=z.slice(0,Number(a.maxLength))),c("blur",z,A)},E=t.computed(()=>({[`${y}__append`]:!0})),I=t.computed(()=>pe(a.unit)>0),V=t.computed(()=>!L.value),C=t.computed(()=>({hidden:!V.value})),w=A=>{h.value="",c("update:modelValue","",A),c("change","",A),c("clear","")},q=t.computed(()=>ge(a.clearable)&&!s.value&&!i.value),L=t.computed(()=>{let A=pe(h.value)>0;return ge(a.clearable)&&A&&f.value}),M=t.computed(()=>({action:!0,hidden:!L.value}));return()=>{const A={class:k.value,style:g.value,type:a.type,maxlength:a.maxLength,placeholder:m.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:u,onFocus:S,onBlur:B},T=[],z=t.h("input",A);T.push(z);const $=[];if(q.value){const X={class:["action-icon"]},K=t.h(n,X),N={class:M.value,onClick:w},D=t.h("view",N,{default:()=>[K]});$.push(D)}if(I.value){const X=t.h("view",{class:C.value},[a.unit]);$.push(X)}const x={class:E.value},H=t.h("view",x,{default:()=>$});T.push(H);const j={default:()=>T};if(r.slots.default){const X=r.slots.default();j.label=()=>X}if(r.slots.prepend){const X=r.slots.prepend();j.prepend=()=>X}if(r.slots.append){const X=r.slots.append();j.append=()=>X}const R={...Vl(a,zn),hintText:p.value,hintVisible:b.value};return t.h(l,R,j)}}}}const{componentName:Oi,create:Fi,scope:Ui}=U("input-item"),ta=Fi(Ri(Oi,Ui,Ve,G.CloseLittle));function xn(e,o=0){let l=`${e}`,n=l.indexOf(".");if(n==-1)return l;let a=n;for(let r=l.length-1;r>=n;r--)if(l.charAt(r)!="0"){a=r;break}return a-n<o?a=n+o+1:a!=n&&(a+=1),a>l.length?l=l.padEnd(a,"0"):l=l.substring(0,a),l}function Pn(e,o,l=20){if(typeof o=="string"&&(o=ue(o)),o==1||o==-1)return`${e}`;if(o==0)return"0";if(o>0){let n=fl(`${e}`,`${o}`);return xn(n)}else{let n=an(`${e}`,ml(`${o}`),20);return xn(n)}}function Ki(e,o=-1,l=!1,n=3,a=","){return rn(e,o,l,n,a)}function Ln(e,o,l,n,a=!0){if(e=="")return"";if(e=pl(e),o=ue(o),o==1)return e;if(n)e=Pn(e,o),l&&(e=="0"&&a?e=`${e}.`.padEnd(ue(l)+2,"0"):e=an(e,1,ue(l)));else{let r=-1*o;e=Pn(e,r)}return e}function Rn(e,o){let l={maxValid:!0,minValid:!0,message:""};if(o.min!==void 0){let n=ge(o.minInclude),a=Lo(e,o.min);if(n&&a==-1||!n&&(a==0||a==-1)){let r="请输入不小于 {0} 的数值";l.message=r.replace("{0}",o.min),l.minValid=!1}}if(o.max!=null){let n=ge(o.maxInclude),a=Lo(e,o.max);(n&&a==1||!n&&(a==0||a==1))&&(l.maxValid=!1)}return l}function Hi(e,o,l,n){return{props:{...de,...fe,clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1,default:""},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}},emits:["change","update:modelValue","blur","focus","clear"],setup(a,r){const s=Ne(t.computed(()=>a.disabled)),i=Ie(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=t.ref(!1),m=ze(a,"modelValue"),f=t.ref("");t.watch([()=>m.value,()=>a.rates,()=>a.precision],([x,H,j])=>{if(Ce(x)){f.value="";return}const Y=Ln(x,H,j,!1);f.value!==Y&&(f.value=Y)},{immediate:!0});const h=t.computed(()=>{let x="";return d.value&&(x=f.value),x}),{t:y}=ie.useFoxI18n(o),k=t.computed(()=>{let x=a.placeholder??"";return!d.value&&!Ce(f.value)?x=Ki(f.value,a.decimalLength,a.autoPadding,a.digits,a.separator):x=y(["placeholder",x]),x}),v=e,g=t.computed(()=>({[v]:!0,[`${v}__disabled`]:s.value,[`${v}__placeholder`]:f.value.length>0})),u=Ee(t.computed(()=>a.textAlign),"textAlign"),p=t.computed(()=>d.value?{textAlign:"left"}:{textAlign:u.value??"right"}),b=t.ref(""),S=t.computed(()=>{let x=b.value;return Ce(x)&&(x=a.errorTip??""),x}),B=t.ref(""),E=t.ref(!1),I=x=>{let j=x.target.value;if(Ce(j)){f.value="",m.value="",c("update:modelValue","",x),c("change","",x),ge(a.showTip)&&E.value&&(E.value=!1);return}if(j.length>=2){let Y=j;if(Y.charAt(0)=="-"&&(Y=Y.substring(1)),Y.length>=2&&Y.charAt(0)=="0"&&Y.charAt(1)!="."){t.triggerRef(f);return}}if(j!="-"){if(!wl(j)){t.triggerRef(f);return}if(a.integerLength!=-1&&Nl(j)>Number(a.integerLength)){t.triggerRef(f);return}if(a.decimalLength&&a.decimalLength!=-1&&Bl(j)>Number(a.decimalLength)){t.triggerRef(f);return}let Y=Rn(j,a);if(Y.maxValid===!1){b.value=Y.message,t.triggerRef(f);return}}else if(a.min!=null&&ue(a.min)>=0){t.triggerRef(f);return}B.value=j,ge(a.showTip)&&(E.value=j.length>0),f.value=j,m.value=Ln(j,a.rates,a.precision,!0),c("update:modelValue",m.value,x),c("change",m.value,x)},V=x=>{if(d.value=!0,ge(a.showTip)){let H=f.value;Ce(H)&&(H=a.hintText),Ce(H)||(B.value=H,E.value=!0)}b.value="",c("focus",m.value,x)},C=x=>{if(setTimeout(()=>{d.value=!1,ge(a.showTip)&&E.value===!0&&(E.value=!1)},0),!Ce(f.value)){let H=Rn(f.value,a);if(H.minValid===!1||H.maxValid){b.value=H.message;return}}c("update:modelValue",m.value,x),c("blur",m.value,x)},w=t.computed(()=>({[`${v}__append`]:!0})),q=t.computed(()=>pe(a.unit)>0),L=t.computed(()=>!z.value),M=t.computed(()=>({hidden:!L.value})),A=x=>{m.value="",c("update:modelValue","",x),c("change","",x),c("clear","")},T=t.computed(()=>ge(a.clearable)&&!s.value&&!i.value),z=t.computed(()=>{let x=pe(m.value)>0;return ge(a.clearable)&&x&&d.value}),$=t.computed(()=>({action:!0,hidden:!z.value}));return()=>{let x={class:g.value,style:p.value,type:"digit",maxlength:a.maxLength,placeholder:k.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":a.adjustPosition,"always-system":a.alwaysSystem,onInput:I,onFocus:V,onBlur:C},H=[],j=t.h("input",x);H.push(j);let Y=[];if(T.value){const D={class:["action-icon"]},P=t.h(n,D),F={class:$.value,onClick:A},Q=t.h("view",F,{default:()=>[P]});Y.push(Q)}if(q.value){const D=t.h("view",{class:M.value},[a.unit]);Y.push(D)}const R={class:w.value},O=t.h("view",R,{default:()=>Y});H.push(O);const X={default:()=>H};if(r.slots.default){let D=r.slots.default();X.label=()=>D}if(r.slots.prepend){let D=r.slots.prepend();X.prepend=()=>D}if(r.slots.append){let D=r.slots.append();X.append=()=>D}let K={...a,errorTip:S.value,hintText:B.value,hintVisible:E.value,hintType:"number"};return t.h(l,K,X)}}}}const{componentName:ji,create:Wi,scope:Yi}=U("money-item"),oa=Wi(Hi(ji,Yi,Ve,G.CloseLittle)),Yo={modelValue:{type:[String,Number],default:""},textAlign:{type:String,default:""},limitShow:{type:Boolean,default:!1},maxLength:{type:[String,Number],default:""},rows:{type:[String,Number],default:"2"},placeholder:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autosize:{type:[Boolean,Object],default:!1},autofocus:{type:Boolean,default:!1}},{componentName:Xi,create:Qi,scope:Gi}=U("textarea"),Zi=Qi({props:{...Yo},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:o}){let{toLocaleRefs:l}=ie.useFoxI18n(Gi);const n=l(e,["placeholder"]),a=t.ref(),r=t.computed(()=>{const h=Xi;return{[h]:!0,[`${h}--disabled`]:e.disabled}});t.onMounted(()=>{e.modelValue&&c(String(e.modelValue)),e.autosize&&t.nextTick(i)});const s=t.computed(()=>({textAlign:e.textAlign})),i=()=>{let h=a.value;h.style.height="auto";let y=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:k,minHeight:v}=e.autosize;k!==void 0&&(y=Math.min(y,k)),v!==void 0&&(y=Math.max(y,v))}y&&(h.style.height=y+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,y)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),o("update:modelValue",h,y),o("change",h,y)};return{...n,textareaRef:a,classes:r,styles:s,change:h=>{const y=h.target;c(y.value,h)},focus:h=>{e.disabled||e.readonly||o("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let k=h.target.value;c(k,h),o("blur",{value:k,event:h})}}}}),Ji=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],_i={key:0,class:"fox-textarea__limit"};function ec(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("textarea",{ref:"textareaRef",class:"fox-textarea__textarea",style:t.normalizeStyle(e.styles),rows:e.rows,disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:o[0]||(o[0]=(...s)=>e.change&&e.change(...s)),onBlur:o[1]||(o[1]=(...s)=>e.blur&&e.blur(...s)),onFocus:o[2]||(o[2]=(...s)=>e.focus&&e.focus(...s)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Ji),e.limitShow?(t.openBlock(),t.createElementBlock("view",_i,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const mn=W(Zi,[["render",ec]]);function tc(e,o,l,n){return{props:{...de,...fe,...Yo},emits:["update:modelValue","change","blur","focus"],setup(a,r){const s=Ne(t.computed(()=>a.disabled)),i=Ie(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=ze(a,"modelValue"),m=v=>{d.value=v,c("update:modelValue",v,{}),c("change",v,{})};let f=ze(a,"hintText"),h=t.ref(!1);const y=v=>{Ce(f.value)||(h.value=!0),c("focus",d.value,v)},k=v=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",d.value,v)};return()=>{const g={...ke(a,Yo),disabled:s.value,readonly:i.value,value:d.value,["onUpdate:modelValue"]:m,onFocus:y,onBlur:k},u=[],p=t.h(n,g);u.push(p);const b={default:()=>u};if(r.slots.default){const E=r.slots.default();b.label=()=>E}const S=ke(a,fe,de);return t.h(l,S,b)}}}}const{componentName:oc,create:nc,scope:lc}=U("textarea-item"),na=nc(tc(oc,lc,Ve,mn)),at={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},position:{type:String,default:"center"},transition:{type:String,default:""},style:{type:Object,default:{}},popClass:{type:String,default:""},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},destroyOnClose:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},overlay:{type:Boolean,default:!0},round:{type:Boolean,default:!1},teleportDisable:{type:Boolean,default:!1},safeAreaInsetBottom:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object,default:{}}},la=2e3;let On=la;const ac=(e,o)=>({components:o,props:{...at},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(l,{emit:n}){const a=t.reactive({zIndex:l.zIndex,showSlot:!0,closed:l.closeable}),r=t.computed(()=>({[e]:!0,round:l.round,[`fox-popup--${l.position}`]:!0,[`fox-popup--${l.position}--safebottom`]:l.position==="bottom"&&l.safeAreaInsetBottom,[l.popClass]:!0})),s=t.computed(()=>({zIndex:a.zIndex,transitionDuration:`${l.duration}s`,...l.style})),i=t.computed(()=>l.transition?l.transition:`fox-popup-slide-${l.position}`),c=()=>{l.zIndex!==la&&(On=Number(l.zIndex)),n("update:visible",!0),a.zIndex=++On,l.destroyOnClose&&(a.showSlot=!0),n("open")},d=()=>{n("update:visible",!1),n("close"),l.destroyOnClose&&setTimeout(()=>{a.showSlot=!1},+l.duration*1e3)},m=v=>{n("click-pop",v)},f=v=>{v.stopPropagation(),n("click-close-icon",v),n("update:visible",!1)},h=v=>{n("click-overlay",v),l.closeOnClickOverlay&&n("update:visible",!1)},y=v=>{n("opend",v)},k=v=>{n("closed",v)};return t.watch(()=>l.visible,v=>{l.visible?c():d()}),t.watchEffect(()=>{a.closed=l.closeable}),{...t.toRefs(a),popStyle:s,transitionName:i,classes:r,onClick:m,onClickCloseIcon:f,onClickOverlay:h,onOpened:y,onClosed:k}}});let yt=0;const Fn="fox-overflow-hidden",Un=()=>lt?document.body:{classList:[]},rc=e=>[()=>{if(e())try{!yt&&Un().classList.add(Fn),yt++}catch{}},()=>{if(e()&&yt)try{yt--,!yt&&Un().classList.remove(Fn)}catch{}}],sc={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:ic,create:cc}=U("overlay"),uc=cc({props:{...sc},emits:["click","update:visible"],setup(e,{emit:o}){const[l,n]=rc(()=>e.lockScroll),a=t.computed(()=>({[ic]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watchEffect(()=>{e.visible?l():n()}),{classes:a,style:r,onClick:i=>{o("click",i),e.closeOnClickOverlay&&o("update:visible",!1)}}}});function dc(e,o,l,n,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"overlay-fade"},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"])),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,e.visible]])]),_:3})}const ot=W(uc,[["render",dc]]),{componentName:fc,create:mc}=U("popup"),pc=mc(ac(fc,{[ot.name]:ot,Close:G.Close}));function hc(e,o,l,n,a,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:!e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:o[1]||(o[1]=(...c)=>e.onClick&&e.onClick(...c))},[e.showSlot?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.closed?(t.openBlock(),t.createElementBlock("view",{key:1,onClick:o[0]||(o[0]=(...c)=>e.onClickCloseIcon&&e.onClickCloseIcon(...c)),class:t.normalizeClass(["fox-popup__close-icon","fox-popup__close-icon--"+e.closeIconPosition])},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{height:"12px"})])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const ce=W(pc,[["render",hc]]),Kn=10;function gc(e,o){return e>o&&e>Kn?"horizontal":o>e&&o>Kn?"vertical":""}function Ke(){const e=t.ref(0),o=t.ref(0),l=t.ref(0),n=t.ref(0),a=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),d=t.ref(0),m=t.ref(""),f=()=>m.value==="vertical",h=()=>m.value==="horizontal",y=()=>{s.value=0,i.value=0,c.value=0,d.value=0,m.value="",l.value=0};return{move:g=>{const u=g.touches[0];s.value=u.clientX-e.value,i.value=u.clientY-o.value,a.value=u.clientX,r.value=u.clientY,c.value=Math.abs(s.value),d.value=Math.abs(i.value),n.value=Date.now()-l.value,m.value||(m.value=gc(c.value,d.value))},start:g=>{y(),e.value=g.touches[0].clientX,o.value=g.touches[0].clientY,l.value=Date.now()},reset:y,startX:e,startY:o,startTime:l,duration:n,moveX:a,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:d,direction:m,isVertical:f,isHorizontal:h}}const aa={readonly:{type:Boolean,default:!1},visibleItemCount:{type:[Number,String],default:7},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},childrenKey:{type:String,required:!1,default:"children"},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3}},Xo={...at,...aa,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String,default:""},cancelText:{type:String,default:""},clearText:{type:String,default:""},confirmText:{type:String,default:""}};let ra=36;function yc(){return ra}function vc(e){ra=e}function qe(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function Qo(e,o){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?o[e.childrenKey]:o.children??null}function kc(e,o,l){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(o[e.childrenKey]=l),o.children=l}function nt(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function Hn(e,o){return typeof e.itemOptions=="function"?e.columnOptions(o):e.columnOptions}let bc=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);const a=Mt(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(De(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function Sc(){const e=t.getCurrentInstance();return new bc(e.proxy)}function jn(e,o,l){const n=qe(e,o),a=qe(e,l);if(n!==a)return!1;const r=nt(e,o),s=nt(e,l);return r===s}function Cc(e,o,l,n){if(l.length==0)return[];Array.isArray(o)||(o=[o]);const a=[],r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<o.length&&s<l.length;s++){const i=o[s];let d=l[s].findIndex(m=>{if(r==="text")return qe(e,m)===i;if(r==="value"){let f=nt(e,m);return f==null&&(f=qe(e,m)),f===i}else if(r==="item")return jn(e,m,i)});if(d==-1)break;a.push(d)}else{let s=l[0];for(let i=0;i<o.length;i++){const c=o[i];let d=s.findIndex(f=>{if(r==="text")return qe(e,f)===c;if(r==="value"){let h=nt(e,f);return h==null&&(h=qe(e,f)),h===c}else if(r==="item")return jn(e,f,c)});if(d==-1)break;a.push(d);const m=Qo(e,s[d]);if(!Array.isArray(m))break;s=m}}return a}function Wn(e,o,l,n){if(l.length==0)return null;const a={texts:[],values:[]},r=e.valueType??"value";if(n==="singleColumn"||n==="multipleColumn")for(let s=0;s<o.length&&s<l.length;s++){const i=l[s];let c=o[s];c<0&&c>=i.length&&(c=0);const d=i[c],m=qe(e,d);if(a.texts.push(m),r==="text")a.values.push(m);else if(r==="value"){let f=nt(e,d);f==null&&(f=m),a.values.push(f)}else a.values.push(d)}else{let s=l[0];for(let i=0;i<o.length;i++){let c=o[i];c<0&&c>=s.length&&(c=0);const d=s[c],m=qe(e,d);if(a.texts.push(m),r==="text")a.values.push(m);else if(r==="value"){let f=nt(e,d);f==null&&(f=m),a.values.push(f)}else{const f=Object.assign({},d);f.children=null,a.values.push(f)}if(!Array.isArray(d.children))break;s=d.children}}return a}function Yn(e){return{text:e,value:e}}const wc=15,Nc=300,Bc=200,{create:Vc}=U("picker-column");function Ac(e){e.stopPropagation()}function Ec(e,o){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),o&&Ac(e)}const Tc=Vc({props:{source:{type:Array,default:[]},columnIndex:{type:Number,required:!0,default:0},modelValue:{type:Number,required:!0,default:0},itemHeight:{type:Number,required:!0,default:35},...aa},emits:["click","change","update:modelValue"],setup(e,{emit:o}){const l=t.computed(()=>({"fox-picker__list":!0})),n=t.computed(()=>({height:`${ue(e.visibleItemCount)*+e.itemHeight}px`})),a=t.computed(()=>({"fox-picker__content":!0,"fox-picker__content-tile":!e.threeDimensional,"fox-picker__content-roller":e.threeDimensional})),r=t.computed(()=>e.itemHeight*Math.floor(+e.visibleItemCount/2)),s=V=>V>=f.currIndex+8||V<=f.currIndex-8,i=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${f.deg})`,top:`${r.value}px`})),c=V=>`transform: rotate3d(1, 0, 0, ${-f.rotation*V}deg) translate3d(0px, 0px, 104px)`,d=t.computed(()=>({transition:`transform ${f.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${f.scrollDistance+r.value}px, 0)`})),m=t.ref(null),f=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=t.toRef(e,"source"),y=V=>qe(e,V),k=V=>nt(e,V),v=Ke(),g=()=>{f.transitionEndTrigger&&(f.transitionEndTrigger(),f.transitionEndTrigger=null)},u=(V,C=!1,w=!1)=>{if(f.currIndex=V,C){const q=()=>{f.moving=!1,o("update:modelValue",V),o("change",V)};w?f.transitionEndTrigger=q:q()}},p=(V,C,w)=>{let q=V+f.startDistance;if(C==="end"){const L=-(h.value.length-1)*e.itemHeight;q<L&&(q=L,(!w||w<=0)&&(w=e.swipeDuration)),q>0&&(q=0,(!w||w<=0)&&(w=e.swipeDuration));let M=Math.abs(Math.round(-q/e.itemHeight));const A=-M*e.itemHeight,T=`${(M+1)*f.rotation}deg`,z=w?w>0:!1;u(M,!0,z),b(A,C,w,T)}else{let L=(-q/e.itemHeight+1)*f.rotation;const M=(h.value.length+1)*f.rotation,A=0;if(L=Math.min(Math.max(L,A),M),e.threeDimensional&&(L<A||L>M))return;b(q,null,void 0,`${L}deg`)}},b=(V=0,C,w=Bc,q)=>{C==="end"?f.scrollTime=w:f.scrollTime=0,f.deg=q,f.scrollDistance=V},S=(V,C)=>(V=Math.abs(V/C)/.003*(V<0?-1:1),V),B=V=>{if(!e.readonly){if(f.moving){const C=m.value,{transform:w}=window.getComputedStyle(C);f.scrollDistance=+w.slice(7,w.length-1).split(", ")[5]}f.startDistance=f.scrollDistance,v.start(V),f.transitionEndTrigger=null}},E=V=>{e.readonly||(f.moving=!0,v.move(V),v.isVertical()&&(f.moving=!0,Ec(V,!0)),p(v.deltaY.value,"",0))},I=()=>{if(e.readonly)return;const V=v.deltaY.value,C=v.duration.value;if(C<Nc&&Math.abs(V)>wc){const q=S(V,C);p(q,"end",e.swipeDuration)}else p(V,"end",0)};return t.watch(()=>e.modelValue,V=>{if(f.currIndex!==V){f.currIndex=V;const C=-V*e.itemHeight;p(C)}}),t.onMounted(()=>{const V=-e.modelValue*e.itemHeight;p(V)}),{classes:l,styles:n,contentClasses:a,source:h,itemText:y,itemValue:k,...t.toRefs(f),roller:m,getItemText:qe,onTouchStart:B,onTouchMove:E,onTouchEnd:I,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:d,stopMomentum:g}}}),$c={key:1,class:"fox-picker__item-tile"};function Dc(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:o[4]||(o[4]=(...s)=>e.stopMomentum&&e.stopMomentum(...s))},[t.createElementVNode("view",{ref:"roller",class:t.normalizeClass(e.contentClasses),style:t.normalizeStyle(e.threeDimensional?e.touchRollerStyle:e.touchTileStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.source,(s,i)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:`${e.columnIndex}_${i}`},[e.threeDimensional?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-picker__item",{"fox-picker__item-hidden":e.isHidden(i+1)}]),style:t.normalizeStyle(e.setRollerStyle(i+1))},t.toDisplayString(e.itemText(s)),7)):(t.openBlock(),t.createElementBlock("view",$c,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Xn=W(Tc,[["render",Dc]]),{create:Ic,componentName:qc,scope:Mc}=U("picker"),zc=Ic({components:{[Xn.name]:Xn,[ce.name]:ce},props:{...Xo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:o}){const{toLocaleRefs:l,t:n}=ie.useFoxI18n(Mc),a=l(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(yc());t.watch(()=>e.visible,C=>{C&&s.value<=0&&setTimeout(()=>{if(r.value){const w=ve(r.value);s.value=w.height,vc(s.value)}},50)});const i=t.computed(()=>({[qc]:!0})),c=Sc(),d=t.ref("singleColumn");let m=t.ref([]);t.watch([()=>e.source,()=>e.params],async([C,w])=>{if(C){let q=await c.load("picker",C,w);if(q.length>0){let L=q[0];if(Array.isArray(L)){if(typeof L[0]=="string"){let M=q,A=[];M.forEach(T=>{let z=T.map($=>Yn($));A.push(z)}),m.value=A}else m.value=q;d.value="multipleColumn"}else if(typeof L=="string"){let M=q,A=[],T=M.map(z=>Yn(z));A.push(T),m.value=A,d.value="singleColumn"}else{const M=Qo(e,L);Array.isArray(M)?(d.value="cascade",m.value=[q]):(d.value="singleColumn",m.value=[q])}}else m.value=[]}},{immediate:!0});const f=t.ref([]),h=t.ref(e.modelValue),y=t.ref([]);t.watch([()=>e.modelValue,()=>m.value],([C,w])=>{let q=Cc(e,C,w,d.value);if(!Fe(q,y.value)){y.value=q;let L=Wn(e,q,w,d.value);L&&(f.value=L.texts,o("update:text",f.value))}});const k=t.ref(e.visible);t.watch(()=>e.visible,C=>{k.value=C});const v=C=>{let w=Hn(e,C);return De(w)?w.defaultIndex??0:0},g=C=>{if(e.readonly===!0)return!0;let w=Hn(e,C);return De(w)?w.readonly??!1:!1},u=(C,w,q=!1)=>{let L=y.value;L[C]=w;for(let A=0;A<C;A++)L[A]==null&&(L[A]=v(A));if(d.value==="cascade")for(let A=C+1;A<b.value.length;A++){let T=v(A);A<L.length?L[A]=T:L.push(T)}else for(let A=L.length;A<b.value.length;A++){let T=v(A);L.push(T)}y.value=L;let M=Wn(e,L,m.value,d.value);if(M&&(f.value=M.texts,h.value=M.values),q)if(d.value==="singleColumn"){let A=M&&M.values.length>0?M.values[0]:"";o("change",A)}else o("change",M?.values)},p=C=>C<y.value.length?y.value[C]:v(C),b=t.computed(()=>{if(m.value.length==0)return[];if(d.value=="singleColumn"||d.value=="multipleColumn")return m.value;let C=[],w=0,q=m.value[0],L=0;for(;;){let M=q.map(z=>{let $=Object.assign({},z);return kc(e,$,null),$});C.push(M),w>=y.value.length?L=0:L=y.value[w],(L<0||L>=q.length)&&(L=0);let A=q[L];const T=Qo(e,A);if(!Array.isArray(T))break;q=T,w++}return C}),S=t.computed(()=>ue(+e.visibleItemCount-1)/2*s.value);return{...a,pickerLineRef:r,classes:i,columns:b,dataType:d,show:k,itemHeight:s,top:S,isReadonly:g,getIndex:p,change:(C,w)=>{u(C,w,!0)},close:()=>{o("close"),o("update:visible",!1)},confirm:()=>{if(e.readonly===!0){o("update:visible",!1);return}let C=m.value.length-1;for(;C>=0&&!(y.value[C]===null||y.value[C]===void 0);C--);if(C>=0&&u(C,0,!1),d.value==="singleColumn"){let w=h.value.length>0?h.value[0]:"";e.readonly||(o("update:modelValue",w),o("update:text",f.value)),o("confirm",w)}else e.readonly||(o("update:modelValue",h.value),o("update:text",f.value)),o("confirm",h.value);o("update:visible",!1)},clear:()=>{if(e.readonly===!0){o("update:visible",!1);return}d.value==="singleColumn"?(o("update:modelValue",""),o("change","")):(o("update:modelValue",[]),o("change",[])),o("clear",""),o("update:visible",!1)}}}}),xc={class:"fox-picker__bar"},Pc={class:"fox-picker__title"},Lc={class:"fox-picker__bar__action"},Rc={class:"fox-picker__column"};function Oc(e,o,l,n,a,r){const s=t.resolveComponent("fox-picker-column"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{position:"bottom",visible:e.show,"onUpdate:visible":o[3]||(o[3]=c=>e.show=c),teleport:e.teleport,"lock-scroll":e.lockScroll,"close-on-click-overlay":e.closeOnClickOverlay,onClose:e.close,round:!0,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",xc,[t.createElementVNode("view",Pc,t.toDisplayString(e.title),1),t.createElementVNode("view",Lc,[t.createElementVNode("view",{class:"fox-picker__left fox-picker__cancel fox-picker__button",onClick:o[0]||(o[0]=(...c)=>e.close&&e.close(...c))},t.toDisplayString(e.cancelText),1),t.createElementVNode("view",{class:"fox-picker__right fox-picker__confirm fox-picker__button",onClick:o[1]||(o[1]=(...c)=>e.confirm&&e.confirm(...c))},t.toDisplayString(e.confirmText),1),e.clearText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-picker__right fox-picker__clear fox-picker__button",onClick:o[2]||(o[2]=(...c)=>e.clear&&e.clear(...c))},t.toDisplayString(e.clearText),1)):t.createCommentVNode("",!0)])]),t.renderSlot(e.$slots,"top"),t.createElementVNode("view",Rc,[t.createElementVNode("view",{class:"fox-picker__mask",style:t.normalizeStyle({backgroundSize:`100% ${e.top}px`})},null,4),t.createElementVNode("view",{ref:"pickerLineRef",class:"fox-picker__hairline",style:t.normalizeStyle({top:` ${e.top}px`})},null,4),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:"fox-picker__columnitem"},[t.createVNode(s,{source:c,readonly:e.isReadonly(d),"column-index":d,modelValue:e.getIndex(d),"onUpdate:modelValue":m=>e.change(d,m),"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"item-height":e.itemHeight,"text-key":e.textKey,"value-key":e.valueKey},null,8,["source","readonly","column-index","modelValue","onUpdate:modelValue","visible-item-count","three-dimensional","swipe-duration","item-height","text-key","value-key"])]))),128))]),t.renderSlot(e.$slots,"default")]),_:3},8,["visible","teleport","lock-scroll","close-on-click-overlay","onClose","teleport-disable"])],2)}const Et=W(zc,[["render",Oc]]);function Fc(e,o,l,n,a,r,s=!0){return{props:{...de,...fe,...Xo,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const d=Ne(t.computed(()=>i.disabled)),m=Ie(t.computed(()=>i.readonly)),{emitEvent:f}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(o),y=h(i,["placeholder"]),k=t.ref(!1),v=ze(i,"modelValue"),g=t.ref([]),u=t.computed(()=>Array.isArray(g.value)?g.value.join(" "):g.value),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ee(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>({textAlign:S.value??"right"})),E=t.ref(!1),I=()=>{E.value=!0},V=R=>{E.value=R},C=R=>{v.value=R,f("update:modelValue",R,{}),f("change",R,{})},w=R=>{let X=R.target.value;k.value=!0,f("focus",X,R)},q=R=>{setTimeout(()=>{k.value=!1},0);let X=R.target.value;i.maxLength&&X.length>Number(i.maxLength)&&(X=X.slice(0,Number(i.maxLength))),f("blur",X,R)},L=t.computed(()=>({[`${p}__append`]:!0})),M=t.computed(()=>pe(i.unit)>0),A=t.computed(()=>pe(i.unit)>0&&!k.value),T=t.computed(()=>({hidden:!A.value})),z=R=>{v.value="",f("update:modelValue","",R),f("change","",R),f("clear","")},$=t.computed(()=>i.clearable&&!d.value&&!m.value),x=t.computed(()=>pe(v.value)>0&&k.value),H=R=>{x.value?z(R):I()},j=t.computed(()=>x.value&&$.value?n:a),Y=t.computed(()=>({action:!0}));return()=>{const R={class:b.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:I,onFocus:w,onBlur:q};s&&(R.disabled=!0);const O=[],X=t.h("input",R);O.push(X);const K=[],N={class:["action-icon"]},D=t.h(j.value,N),P={class:Y.value,onClick:H},F=t.h("view",P,{default:()=>[D]});if(K.push(F),M.value){const te=t.h("view",{class:T.value},[i.unit]);K.push(te)}const Q={class:L.value},ee=t.h("view",Q,{default:()=>K});O.push(ee);const Z={default:()=>O};if(c.slots.default){const te=c.slots.default();Z.label=()=>te}if(c.slots.prepend){const te=c.slots.prepend();Z.prepend=()=>te}if(c.slots.append){const te=c.slots.append();Z.append=()=>te}const J=ke(i,Xo);J.disabled=!1,J.readonly=d.value||m.value,J.visible=E.value,J["onUpdate:visible"]=V,J.modelValue=v.value,J["onUpdate:modelValue"]=C,J.text=g.value,J["onUpdate:text"]=te=>{g.value=te};const ne=t.h(r,J);Z.hide=()=>[ne];const oe=ke(i,fe,de);return t.h(l,oe,Z)}}}}const{componentName:Uc,create:Kc,scope:Hc}=U("picker-item"),sa=Kc(Fc(Uc,Hc,Ve,G.CloseLittle,G.ArrowRight,Et,!1)),Ut=(e,o,l)=>e.map(n=>{const{value:a="value",text:r="text",children:s="children"}=l??{},{[a]:i,[r]:c,[s]:d,...m}=n,f={loading:!1,...m,level:o?(o&&o.level||0)+1:0,value:i,text:c,children:d,_parent:o};return f.children&&f.children.length&&(f.children=Ut(f.children,f,l)),f}),ia=(e,o)=>{let l=0,n;for(;(n=e[l++])&&o(n)!==!0;)n.children&&n.children.length&&ia(n.children,o)},jc={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Wc=(e,o)=>{const l={...jc,...o||{}},{topId:n,idKey:a,pidKey:r,sortKey:s}=l;let i=[],c={};return e.forEach(d=>{d={...d};const{[a]:m,[r]:f}=d,h=c[f]=c[f]||[];!i.length&&f===n&&(i=h),h.push(d),d.children=c[m]||(c[m]=[])}),s&&Object.keys(c).forEach(d=>{c[d].length>1&&c[d].sort((m,f)=>m[s]-f[s])}),c=null,i},Yc=/scroll|auto|overlay/i,ca=window;function Xc(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Go(e,o=ca){let l=e;for(;l&&l!==o&&Xc(l);){const{overflowY:n}=window.getComputedStyle(l);if(Yc.test(n))return l;l=l.parentNode}return o}function ua(e,o=ca){const l=t.ref();return t.onMounted(()=>{e.value&&(l.value=Go(e.value,o))}),l}const{create:Qc}=U("sticky"),Gc=Qc({props:{position:{type:String,default:"top"},top:{type:[Number,String],default:0},bottom:{type:[Number,String],default:0},container:{type:Object},zIndex:{type:[Number,String],default:99}},emits:["change"],setup(e,{emit:o}){const l=t.ref(),n=t.ref(),a=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>a.fixed?{height:`${a.height}px`}:{}),i=t.computed(()=>a.fixed?{[e.position]:`${r.value}px`,transform:a.transform?`translate3d(0, ${a.transform}px, 0)`:void 0,position:a.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const d=e.container;if(!l.value&&!d)return;const m=ve(l),f=n.value,h=ve(f),y=ve(d);a.height=m.height;const k=()=>{let g=!1;if(e.position==="top")g=d?r.value>m.top&&y.bottom>0:r.value>m.top;else{const u=document.documentElement.clientHeight;g=d?y.bottom>0&&u-r.value-h.height>y.top:u-r.value<m.bottom}return g},v=()=>{if(d)if(e.position==="top"){const g=y.bottom-r.value-h.height;return g<0?g:0}else{const g=document.documentElement.clientHeight,u=y.bottom-(g-r.value);return u<0?u:0}return 0};a.transform=v(),a.fixed=k()};return t.watch(()=>a.fixed,d=>{o("change",d)}),t.onMounted(()=>{c(),Go(l.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Go(l.value).removeEventListener("scroll",c)}),{rootRef:l,rootStyle:s,stickyRef:n,stickyStyle:i}}});function Zc(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:"fox-sticky",ref:"rootRef",style:t.normalizeStyle(e.rootStyle)},[t.createElementVNode("div",{class:"fox-sticky__box",ref:"stickyRef",style:t.normalizeStyle(e.stickyStyle)},[t.renderSlot(e.$slots,"default")],4)],4)}const _t=W(Gc,[["render",Zc]]),Jc=(e,o,l,n)=>{const a=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(l&&l.getEnv()!==l.ENV_TYPE.WEB){let h=await n(a,l);r.value.width=h.width||0,r.value.height=h.height||0}else r.value.width=a.value?.clientWidth||0,r.value.height=a.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=Ke();let d="";const m=(h,y)=>{let k=h;switch(e.direction=="horizontal"?(d=h>0?"right":"left",k=Math.abs(k)/r.value.width*100):(d=y>0?"bottom":"top",k=y,k=Math.abs(k)/r.value?.height*100),k>85&&(k=85),d){case"left":case"top":o.isEnd()&&(k=0,i.moving=!1);break;case"right":case"bottom":k=-k,o.isBegin()&&(k=0,i.moving=!1);break}i.offset=k};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,m(c.deltaX.value,c.deltaY.value),e.direction=="horizontal"&&c.isHorizontal()&&(h.preventDefault(),h.stopPropagation()),e.direction=="vertical"&&c.isVertical()&&(h.preventDefault(),h.stopPropagation()))},onTouchEnd(){if(i.moving)switch(i.moving=!1,d){case"left":case"top":i.offset>35&&o.next();break;case"right":case"bottom":i.offset<-35&&o.prev();break}}},touchState:i,tabsContentRef:a}};class _c{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:eu}=U("tabs"),tu=eu({components:{[_t.name]:_t,JoySmile:G.JoySmile},props:{modelValue:{type:[String,Number],default:0},color:{type:String,default:""},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},type:{type:String,default:"line"},titleScroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},swipeable:{type:Boolean,default:!1},autoHeight:{type:Boolean,default:!1},background:{type:String,default:""},animatedTime:{type:[Number,String],default:300},titleGutter:{type:[Number,String],default:0},sticky:{type:Boolean,default:!1},top:{type:Number,default:0}},emits:["update:modelValue","click","change"],setup(e,{emit:o,slots:l}){const n=t.ref(null);let a;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=C=>{C.forEach((w,q)=>{let L=w.type;if(L=L.name||L,L=="fox-tab-pane"){let M=new _c;if(w.props?.title||w.props?.["pane-key"]||w.props?.paneKey){let A=et(w.props?.["pane-key"]),T=A=="number"||A=="string"?String(w.props?.["pane-key"]):null,z=et(w.props?.paneKey),$=z=="number"||z=="string"?String(w.props?.paneKey):null;M.title=w.props?.title,M.paneKey=T||$||String(q),M.disabled=w.props?.disabled}r.value.push(M)}else{if(w.children==" ")return;Array.isArray(w.children)&&s(w.children)}})},i=t.ref(e.modelValue||0),c=C=>{let w=r.value.findIndex(q=>q.paneKey==C);r.value.length==0||w==-1||(i.value=w)},d=t.computed(()=>e.titleScroll&&e.direction==="vertical"),m=t.ref(),f=t.ref([]),h=C=>{const w=m.value,q=f.value;if(!w||!q||!q[i.value])return;const L=q[i.value];let M=0;e.direction==="vertical"?M=L.offsetTop-w.offsetTop+10-(w.offsetHeight-L.offsetHeight)/2:M=L.offsetLeft-(w.offsetWidth-L.offsetWidth)/2,y(w,M,C?0:.3,e.direction)},y=(C,w,q,L)=>{let M=0;const A=L==="horizontal"?C.scrollLeft:C.scrollTop,T=q===0?1:Math.round(q*1e3/16);function z(){L==="horizontal"?C.scrollLeft+=(w-A)/T:C.scrollTop+=(w-A)/T,++M<T&&Qe(z)}z()},k=(C=l.default?.())=>{r.value=[],C=C?.filter(w=>typeof w.children!="string"),C&&C.length&&s(C),c(e.modelValue),t.nextTick(()=>{h()})},v=C=>{a=C.fixed};t.watch(()=>l.default?.(),C=>{k(C)});const g=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,C=>{if(c(C),h(),a){let w=ve(n.value).top+g(),q=Math.ceil(w-e.top);window.scrollTo({top:q,behavior:"smooth"})}}),t.onMounted(k),t.onActivated(k);const u={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,u.updateValue(r.value[i.value])},prev:()=>{i.value-=1,u.updateValue(r.value[i.value])},updateValue:C=>{o("update:modelValue",C.paneKey),o("change",C)},tabChange:(C,w)=>{o("click",C),!(C.disabled||i.value==w)&&(i.value=w,u.updateValue(C))},setTabItemRef:(C,w)=>{f.value[w]=C}},{tabsContentRef:p,touchState:b,touchMethods:S}=Jc(e,u),B=t.computed(()=>{let C=i.value*100;b.moving&&(C+=b.offset);let w={transform:e.direction=="horizontal"?`translate3d(-${C}%, 0, 0)`:`translate3d( 0,-${C}%, 0)`,transitionDuration:b.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(w={}),w}),E=t.computed(()=>({background:e.background})),I=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),V=t.computed(()=>{if(!e.titleGutter)return{};const C=le(e.titleGutter);return e.direction==="vertical"?{marginTop:C,marginBottom:C}:{marginLeft:C,marginRight:C}});return{navRef:m,tabsContentRef:p,titles:r,contentStyle:B,tabsNavStyle:E,titleStyle:V,tabsActiveStyle:I,container:n,getScrollY:d,onStickyScroll:v,...u,...S}}}),ou=["onClick"],nu=["onClick"];function lu(e,o,l,n,a,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,d),key:c.paneKey},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)],14,ou))),128))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs__titles-item",{active:c.paneKey==e.modelValue,disabled:c.disabled}]),style:t.normalizeStyle(e.titleStyle),onClick:m=>e.tabChange(c,d),key:c.paneKey,ref_for:!0,ref:m=>e.setTabItemRef(m,d)},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)],14,nu))),128))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:o[0]||(o[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:o[1]||(o[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:o[2]||(o[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:o[3]||(o[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const eo=W(tu,[["render",lu]]),{create:au}=U("tab-pane"),ru=au({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o}){const l=t.inject("tabsOpiton"),n=t.computed(()=>({display:l.animatedTime.value==0&&e.paneKey!=l.activeKey.value?"none":void 0}));return{...l,paneStyle:n}}});function su(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tab-pane",{inactive:e.paneKey!=e.activeKey&&e.autoHeight}]),style:t.normalizeStyle(e.paneStyle)},[t.renderSlot(e.$slots,"default")],6)}const to=W(ru,[["render",su]]);class Qn{nodes;config;constructor(o,l){this.config={value:"value",text:"text",children:"children",...l||{}},this.nodes=Ut(o,null,this.config)}updateChildren(o,l){l?l.children=Ut(o,l,this.config):this.nodes=Ut(o,null,this.config)}getNodeByValue(o){let l;return ia(this.nodes,n=>{if(n.value===o)return l=n,!0}),l}getPathNodesByValue(o){if(!o.length)return[];const l=[];let n=this.nodes;for(;n&&n.length;){const a=n.find(r=>r.value===o[r.level]);if(!a)break;l.push(a),n=a.children}return l}isLeaf(o,l){const{leaf:n,children:a}=o,r=Array.isArray(a)&&Boolean(a.length);return n||!r&&!l}hasChildren(o,l){if(this.isLeaf(o,l))return!1;const{children:a}=o;return Array.isArray(a)&&Boolean(a.length)}}const{create:iu,scope:cu}=U("cascader-pane"),uu=iu({components:{Loading:G.Loading,Checklist:G.Checklist,[eo.name]:eo,[to.name]:to},props:{visible:{type:Boolean,required:!0},modelValue:{type:Array,required:!0},options:{type:Array,default:()=>[]},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object,required:!1}},emits:["update:modelValue","change","pathChange"],setup(e,{emit:o}){const l=t.computed(()=>({lazy:e.lazy,lazyLoad:e.lazyLoad,valueKey:e.valueKey,textKey:e.textKey,childrenKey:e.childrenKey,convertConfig:e.convertConfig})),n=t.ref(0),a=t.ref(!1),r=t.ref(e.modelValue),s=t.ref(new Qn([],{})),i=t.ref([]),c=t.computed(()=>l.value.lazy&&Boolean(l.value.lazyLoad)),d=new Map;let m;const f=async()=>{d.clear(),i.value=[],n.value=0,a.value=!1,m=null;let{options:u}=e;l.value.convertConfig&&(u=Wc(u,l.value.convertConfig)),s.value=new Qn(u,{value:l.value.valueKey,text:l.value.textKey,children:l.value.childrenKey}),c.value&&!s.value.nodes.length&&await y({root:!0,loading:!0,text:"",value:""}),i.value=[{nodes:s.value.nodes,selectedNode:null}],h()},h=async()=>{const u=r.value;if(u===void 0||!s.value.nodes.length)return;if(u.length===0){n.value=0,i.value=[{nodes:s.value.nodes,selectedNode:null}];return}let p=u;if(c.value&&Array.isArray(u)&&u.length){p=[];let b=s.value.nodes.find(S=>S.value===u[0]);if(b){p=[b.value],a.value=!0;const S=await u.slice(1).reduce(async(B,E)=>{const I=await B;await y(I);const V=I?.children?.find(C=>C.value===E);return V&&p.push(E),Promise.resolve(V)},Promise.resolve(b));await y(S),a.value=!1}}p.length&&u===e.modelValue&&s.value.getPathNodesByValue(p).map((S,B)=>{n.value=B,g.handleNode(S,!0)})},y=async u=>{if(!u)return;if(!l.value.lazyLoad){u.leaf=!0;return}if(s.value.isLeaf(u,c.value)||s.value.hasChildren(u,c.value))return;u.loading=!0;const p=u.root?null:u;let b=d.get(u);b||(b=new Promise(B=>{l.value.lazyLoad?.(u,B)}),d.set(u,b));const S=await b;Array.isArray(S)&&S.length>0?s.value.updateChildren(S,p):u.leaf=!0,u.loading=!1,d.delete(u)},k=u=>{const p=u.map(b=>b.value);r.value=p,o("change",p,u),o("update:modelValue",p,u)},{t:v}=ie.useFoxI18n(cu),g={async handleNode(u,p){const{disabled:b,loading:S}=u;if(!(!p&&b||!i.value[n.value])){if(s.value.isLeaf(u,c.value)){if(u.leaf=!0,i.value[n.value].selectedNode=u,i.value=i.value.slice(0,u.level+1),!p){const B=i.value.map(E=>E.selectedNode);k(B),o("pathChange",B)}return}if(s.value.hasChildren(u,c.value)){const B=u.level+1;if(i.value[n.value].selectedNode=u,i.value=i.value.slice(0,B),i.value.push({nodes:u.children||[],selectedNode:null}),n.value=B,!p){const E=i.value.map(I=>I.selectedNode);o("pathChange",E)}return}m=u,!S&&(await y(u),m===u&&(i.value[n.value].selectedNode=u,g.handleNode(u,p)))}},handleTabClick(u){m=null,n.value=Number(u.paneKey)},formatTabTitle(u){return u.selectedNode?u.selectedNode.text:v("select")},isSelected(u,p){return u.selectedNode&&u.selectedNode.value===p.value}};return t.watch([l,()=>e.options],()=>{f()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,u=>{u!==r.value&&(r.value=u,h())}),t.watch(()=>e.visible,u=>{u&&Array.isArray(r.value)&&r.value.length>0&&h()}),{panes:i,initLoading:a,tabsCursor:n,...g}}}),du={role:"menu",class:"fox-cascader__pane"},fu=["aria-checked","aria-disabled","onClick"],mu={class:"fox-cascader__item__title"},pu=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function hu(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("Checklist"),c=t.resolveComponent("fox-tab-pane"),d=t.resolveComponent("fox-tabs");return t.openBlock(),t.createBlock(d,{class:"fox-cascader",modelValue:e.tabsCursor,"onUpdate:modelValue":o[0]||(o[0]=m=>e.tabsCursor=m),onClick:e.handleTabClick,"title-scroll":""},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(m,f)=>(t.openBlock(),t.createBlock(c,{title:e.formatTabTitle(m),key:f},{default:t.withCtx(()=>[t.createElementVNode("view",du,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(m.nodes,h=>(t.openBlock(),t.createElementBlock("view",{key:h.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(m,h),disabled:h.disabled}]),"aria-checked":e.isSelected(m,h),"aria-disabled":h.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(h,!1)},[t.createElementVNode("view",mu,t.toDisplayString(h.text),1),h.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(i,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,fu))),128))])]),_:2},1032,["title"]))),128)):(t.openBlock(),t.createBlock(c,{key:1,title:"Loading..."},{default:t.withCtx(()=>[pu]),_:1}))]),_:1},8,["modelValue","onClick"])}const Gn=W(uu,[["render",hu]]),{create:gu}=U("cascader"),yu=gu({components:{[Gn.name]:Gn,[ce.name]:ce},props:{...at,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:o}){const l=t.ref(e.modelValue),n=t.computed({get(){return e.visible},set(s){o("update:visible",s)}}),a=(s,i)=>{l.value=s,n.value=!1,o("change",s,i),o("update:modelValue",s)},r=s=>{o("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==l.value&&(l.value=s)}),{onChange:a,onPathChange:r,innerValue:l,innerVisible:n}}}),vu=["innerHTML"];function ku(e,o,l,n,a,r){const s=t.resolveComponent("fox-cascader-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":o[0]||(o[0]=c=>e.innerVisible=c),position:"bottom","pop-class":"fox-cascader__popup",round:"",closeable:e.closeable,"destroy-on-close":!1,"close-icon-position":e.closeIconPosition},{default:t.withCtx(()=>[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-cascader__bar",innerHTML:e.title},null,8,vu)):t.createCommentVNode("",!0),t.createVNode(s,{onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"])]),_:1},8,["visible","closeable","close-icon-position"])):(t.openBlock(),t.createBlock(s,{key:1,onChange:e.onChange,onPathChange:e.onPathChange,modelValue:e.innerValue,options:e.options,lazy:e.lazy,"lazy-load":e.lazyLoad,"value-key":e.valueKey,"text-key":e.textKey,"children-key":e.childrenKey,"convert-config":e.convertConfig,visible:e.innerVisible},null,8,["onChange","onPathChange","modelValue","options","lazy","lazy-load","value-key","text-key","children-key","convert-config","visible"]))}const pn=W(yu,[["render",ku]]);function Tt(e,o){const l=e.textKey??"text";return o[l]??""}function $t(e,o){const l=e.valueKey??"value";return o[l]}function da(e,o){const l=e.childrenKey??"children";return o[l]}function Rt(e,o=[]){const l={texts:[],values:[]};for(let n=0;n<o.length;n++){const a=o[n],r=Tt(e,a),s=$t(e,a);l.texts.push(r),l.values.push(s??"")}return l}function fa(e,o,l,n,a=[]){const r=l[n];for(let s=0;s<o.length;s++)if(Tt(e,o[s])===r){const c=$t(e,o[s])??"",d={[e.textKey]:r,[e.valueKey]:c};a.push(d);const m=da(e,o[s]);Array.isArray(m)&&fa(e,m,l,n+1,a);return}}function ma(e,o,l,n,a=[]){const r=l[n];for(let s=0;s<o.length;s++)if($t(e,o[s])===r){const c=Tt(e,o[s])??"",d={[e.textKey]:c,[e.valueKey]:r};a.push(d);const m=da(e,o[s]);Array.isArray(m)&&ma(e,m,l,n+1,a);return}}function Do(e,o,l){if(o===l)return!0;if(o.length!==l.length)return!1;for(let n=0;n<o.length;n++){const a=Tt(e,o[n]),r=Tt(e,l[n]);if(a!==r)return!1;const s=$t(e,o[n]),i=$t(e,l[n]);if(s!==i)return!1}return!0}let bu=class{proxy;constructor(o){this.proxy=o}async load(o,l){const n="cascader";if(Array.isArray(o))return o;if(typeof o=="function")return await o(l);const a=Mt(this.proxy,n);return a===null?(console.error(`${n} component not found api function`),[]):(De(l)&&t.isReactive(l)&&(l=t.toRaw(l)),await a(o,l))}};function Su(){const e=t.getCurrentInstance();return new bu(e.proxy)}function Cu(e,o,l,n,a,r,s=!1){return{props:{...de,...fe,modelValue:{type:[Array,String]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}},emits:["update:modelValue","change","pathChange","blur","focus","clear"],setup(i,c){const d=Ne(t.computed(()=>i.disabled)),m=Ie(t.computed(()=>i.readonly)),{emitEvent:f}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(o),y=h(i,["placeholder"]),k=t.ref(!1),v=Su(),g=t.ref([]);t.watch([()=>i.source,()=>i.params],async([N,D])=>{N&&(g.value=await v.load(N,D))},{immediate:!0});const u=t.ref([]),p=t.computed(()=>Array.isArray(u.value)?u.value.join(" "):u.value),b=t.ref([]),S=t.ref([]);t.watch([()=>i.modelValue],async([N])=>{if(i.lazy===!0){S.value.length==0&&(u.value=Array.isArray(N)?N:[],b.value=Array.isArray(N)?N:[]);return}if(i.valueType==="item"){let D=N;if(!Do(i,D,S.value)){S.value=D;let P=Rt(i,D);u.value=P.texts,b.value=P.values}}else if(i.valueType==="text"){let D=N,P=[];if(fa(i,g.value,D,0,P),!Do(i,P,S.value)){S.value=P;let F=Rt(i,P);D.value=F.texts,b.value=F.values}}else{let D=[];if(ma(i,g.value,N,0,D),!Do(i,D,S.value)){S.value=D;let P=Rt(i,D);u.value=P.texts,b.value=P.values}}},{immediate:!0});const B="fox-input-item",E=t.computed(()=>({[B]:!0,[`${B}__disabled`]:d.value})),I=Ee(t.computed(()=>i.textAlign),"textAlign"),V=t.computed(()=>({textAlign:I.value??"right"})),C=t.ref(!1),w=()=>{d.value===!0||m.value===!0||(C.value=!0)},q=N=>{C.value=N},L=(N,D)=>{let P=D.map(Q=>{if(Q==null)return Q;let ee={...Q};return Reflect.deleteProperty(ee,"text"),ee[i.textKey]=Q.text??"",Reflect.deleteProperty(ee,"value"),ee[i.valueKey]=Q.value??"",ee});S.value=P;let F=Rt(i,P);u.value=F.texts,b.value=F.values,i.valueType==="text"?(f("change",u.value,P),f("update:modelValue",u.value)):i.valueType==="item"?(f("change",P,P),f("update:modelValue",P)):(f("change",b.value,P),f("update:modelValue",b.value))},M=N=>{let D=N.map(P=>{if(P==null)return P;let F={...P};return Reflect.deleteProperty(F,"text"),F[i.textKey]=P.text??"",Reflect.deleteProperty(F,"value"),F[i.valueKey]=P.value??"",F});f("pathChange",D)},A=N=>{k.value=!0,f("focus",b.value,N)},T=N=>{setTimeout(()=>{k.value=!1},0),f("blur",b.value,N)},z=t.computed(()=>({[`${B}__append`]:!0})),$=t.computed(()=>pe(i.unit)>0),x=t.computed(()=>pe(i.unit)>0&&!k.value),H=t.computed(()=>({hidden:!x.value})),j=N=>{S.value=[],u.value=[],b.value=[],f("update:modelValue",[],N),f("change",[],N),f("clear",[])},Y=t.computed(()=>i.clearable&&!d.value&&!m.value),R=t.computed(()=>{let N=b.value&&b.value.length>0;return i.clearable&&N&&k.value}),O=N=>{R.value?j(N):w()},X=t.computed(()=>R.value&&Y.value?n:a),K=t.computed(()=>({action:!0}));return()=>{const N={class:E.value,style:V.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:p.value,onClick:w,onFocus:A,onBlur:T};s&&(N.disabled=!0);const D=[],P=t.h("input",N);D.push(P);const F=[],Q={class:["action-icon"]},ee=t.h(X.value,Q),Z={class:K.value,onClick:O},J=t.h("view",Z,{default:()=>[ee]});if(F.push(J),$.value){const $e=t.h("view",{class:H.value},[i.unit]);F.push($e)}const ne={class:z.value},oe=t.h("view",ne,{default:()=>F});D.push(oe);const re={default:()=>D};if(c.slots.default){const $e=c.slots.default();re.label=()=>$e}if(c.slots.prepend){const $e=c.slots.prepend();re.prepend=()=>$e}if(c.slots.append){const $e=c.slots.append();re.append=()=>$e}let te={};te.visible=C.value,te["onUpdate:visible"]=q,te.modelValue=b.value,te.onChange=L,te.onPathChange=M,te.options=g.value,te.title=i.title,te.lazy=i.lazy,te.lazyLoad=i.lazyLoad,te.valueKey=i.valueKey,te.textKey=i.textKey,te.childrenKey=i.childrenKey,te.convertConfig=i.convertConfig;const be=t.h(r,te);re.hide=()=>[be];const he=ke(i,fe,de);return t.h(l,he,re)}}}}const{componentName:wu,create:Nu,scope:Bu}=U("cascader-item"),pa=Nu(Cu(wu,Bu,Ve,G.CloseLittle,G.ArrowRight,pn,!1));var He=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function je(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ha={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){var l=1e3,n=6e4,a=36e5,r="millisecond",s="second",i="minute",c="hour",d="day",m="week",f="month",h="quarter",y="year",k="date",v="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,u=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,p={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_")},b=function(M,A,T){var z=String(M);return!z||z.length>=A?M:""+Array(A+1-z.length).join(T)+M},S={s:b,z:function(M){var A=-M.utcOffset(),T=Math.abs(A),z=Math.floor(T/60),$=T%60;return(A<=0?"+":"-")+b(z,2,"0")+":"+b($,2,"0")},m:function M(A,T){if(A.date()<T.date())return-M(T,A);var z=12*(T.year()-A.year())+(T.month()-A.month()),$=A.clone().add(z,f),x=T-$<0,H=A.clone().add(z+(x?-1:1),f);return+(-(z+(T-$)/(x?$-H:H-$))||0)},a:function(M){return M<0?Math.ceil(M)||0:Math.floor(M)},p:function(M){return{M:f,y,w:m,d,D:k,h:c,m:i,s,ms:r,Q:h}[M]||String(M||"").toLowerCase().replace(/s$/,"")},u:function(M){return M===void 0}},B="en",E={};E[B]=p;var I=function(M){return M instanceof q},V=function M(A,T,z){var $;if(!A)return B;if(typeof A=="string"){var x=A.toLowerCase();E[x]&&($=x),T&&(E[x]=T,$=x);var H=A.split("-");if(!$&&H.length>1)return M(H[0])}else{var j=A.name;E[j]=A,$=j}return!z&&$&&(B=$),$||!z&&B},C=function(M,A){if(I(M))return M.clone();var T=typeof A=="object"?A:{};return T.date=M,T.args=arguments,new q(T)},w=S;w.l=V,w.i=I,w.w=function(M,A){return C(M,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var q=function(){function M(T){this.$L=V(T.locale,null,!0),this.parse(T)}var A=M.prototype;return A.parse=function(T){this.$d=function(z){var $=z.date,x=z.utc;if($===null)return new Date(NaN);if(w.u($))return new Date;if($ instanceof Date)return new Date($);if(typeof $=="string"&&!/Z$/i.test($)){var H=$.match(g);if(H){var j=H[2]-1||0,Y=(H[7]||"0").substring(0,3);return x?new Date(Date.UTC(H[1],j,H[3]||1,H[4]||0,H[5]||0,H[6]||0,Y)):new Date(H[1],j,H[3]||1,H[4]||0,H[5]||0,H[6]||0,Y)}}return new Date($)}(T),this.$x=T.x||{},this.init()},A.init=function(){var T=this.$d;this.$y=T.getFullYear(),this.$M=T.getMonth(),this.$D=T.getDate(),this.$W=T.getDay(),this.$H=T.getHours(),this.$m=T.getMinutes(),this.$s=T.getSeconds(),this.$ms=T.getMilliseconds()},A.$utils=function(){return w},A.isValid=function(){return this.$d.toString()!==v},A.isSame=function(T,z){var $=C(T);return this.startOf(z)<=$&&$<=this.endOf(z)},A.isAfter=function(T,z){return C(T)<this.startOf(z)},A.isBefore=function(T,z){return this.endOf(z)<C(T)},A.$g=function(T,z,$){return w.u(T)?this[z]:this.set($,T)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(T,z){var $=this,x=!!w.u(z)||z,H=w.p(T),j=function(P,F){var Q=w.w($.$u?Date.UTC($.$y,F,P):new Date($.$y,F,P),$);return x?Q:Q.endOf(d)},Y=function(P,F){return w.w($.toDate()[P].apply($.toDate("s"),(x?[0,0,0,0]:[23,59,59,999]).slice(F)),$)},R=this.$W,O=this.$M,X=this.$D,K="set"+(this.$u?"UTC":"");switch(H){case y:return x?j(1,0):j(31,11);case f:return x?j(1,O):j(0,O+1);case m:var N=this.$locale().weekStart||0,D=(R<N?R+7:R)-N;return j(x?X-D:X+(6-D),O);case d:case k:return Y(K+"Hours",0);case c:return Y(K+"Minutes",1);case i:return Y(K+"Seconds",2);case s:return Y(K+"Milliseconds",3);default:return this.clone()}},A.endOf=function(T){return this.startOf(T,!1)},A.$set=function(T,z){var $,x=w.p(T),H="set"+(this.$u?"UTC":""),j=($={},$[d]=H+"Date",$[k]=H+"Date",$[f]=H+"Month",$[y]=H+"FullYear",$[c]=H+"Hours",$[i]=H+"Minutes",$[s]=H+"Seconds",$[r]=H+"Milliseconds",$)[x],Y=x===d?this.$D+(z-this.$W):z;if(x===f||x===y){var R=this.clone().set(k,1);R.$d[j](Y),R.init(),this.$d=R.set(k,Math.min(this.$D,R.daysInMonth())).$d}else j&&this.$d[j](Y);return this.init(),this},A.set=function(T,z){return this.clone().$set(T,z)},A.get=function(T){return this[w.p(T)]()},A.add=function(T,z){var $,x=this;T=Number(T);var H=w.p(z),j=function(O){var X=C(x);return w.w(X.date(X.date()+Math.round(O*T)),x)};if(H===f)return this.set(f,this.$M+T);if(H===y)return this.set(y,this.$y+T);if(H===d)return j(1);if(H===m)return j(7);var Y=($={},$[i]=n,$[c]=a,$[s]=l,$)[H]||1,R=this.$d.getTime()+T*Y;return w.w(R,this)},A.subtract=function(T,z){return this.add(-1*T,z)},A.format=function(T){var z=this,$=this.$locale();if(!this.isValid())return $.invalidDate||v;var x=T||"YYYY-MM-DDTHH:mm:ssZ",H=w.z(this),j=this.$H,Y=this.$m,R=this.$M,O=$.weekdays,X=$.months,K=function(F,Q,ee,Z){return F&&(F[Q]||F(z,x))||ee[Q].slice(0,Z)},N=function(F){return w.s(j%12||12,F,"0")},D=$.meridiem||function(F,Q,ee){var Z=F<12?"AM":"PM";return ee?Z.toLowerCase():Z},P={YY:String(this.$y).slice(-2),YYYY:this.$y,M:R+1,MM:w.s(R+1,2,"0"),MMM:K($.monthsShort,R,X,3),MMMM:K(X,R),D:this.$D,DD:w.s(this.$D,2,"0"),d:String(this.$W),dd:K($.weekdaysMin,this.$W,O,2),ddd:K($.weekdaysShort,this.$W,O,3),dddd:O[this.$W],H:String(j),HH:w.s(j,2,"0"),h:N(1),hh:N(2),a:D(j,Y,!0),A:D(j,Y,!1),m:String(Y),mm:w.s(Y,2,"0"),s:String(this.$s),ss:w.s(this.$s,2,"0"),SSS:w.s(this.$ms,3,"0"),Z:H};return x.replace(u,function(F,Q){return Q||P[F]||H.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(T,z,$){var x,H=w.p(z),j=C(T),Y=(j.utcOffset()-this.utcOffset())*n,R=this-j,O=w.m(this,j);return O=(x={},x[y]=O/12,x[f]=O,x[h]=O/3,x[m]=(R-Y)/6048e5,x[d]=(R-Y)/864e5,x[c]=R/a,x[i]=R/n,x[s]=R/l,x)[H]||R,$?O:w.a(O)},A.daysInMonth=function(){return this.endOf(f).$D},A.$locale=function(){return E[this.$L]},A.locale=function(T,z){if(!T)return this.$L;var $=this.clone(),x=V(T,z,!0);return x&&($.$L=x),$},A.clone=function(){return w.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},M}(),L=q.prototype;return C.prototype=L,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",d],["$M",f],["$y",y],["$D",k]].forEach(function(M){L[M[1]]=function(A){return this.$g(A,M[0],M[1])}}),C.extend=function(M,A){return M.$i||(M(A,q,C),M.$i=!0),C},C.locale=V,C.isDayjs=I,C.unix=function(M){return C(1e3*M)},C.en=E[B],C.Ls=E,C.p={},C})})(ha);var Vu=ha.exports;const xe=je(Vu);var ga={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){var l={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},n=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(g){this[v]=+g}},m=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(g){if(!g||g==="Z")return 0;var u=g.match(/([+-]|\d\d)/g),p=60*u[1]+(+u[2]||0);return p===0?0:u[0]==="+"?-p:p}(v)}],f=function(v){var g=i[v];return g&&(g.indexOf?g:g.s.concat(g.f))},h=function(v,g){var u,p=i.meridiem;if(p){for(var b=1;b<=24;b+=1)if(v.indexOf(p(b,0,g))>-1){u=b>12;break}}else u=v===(g?"pm":"PM");return u},y={A:[s,function(v){this.afternoon=h(v,!1)}],a:[s,function(v){this.afternoon=h(v,!0)}],S:[/\d/,function(v){this.milliseconds=100*+v}],SS:[a,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[r,d("seconds")],ss:[r,d("seconds")],m:[r,d("minutes")],mm:[r,d("minutes")],H:[r,d("hours")],h:[r,d("hours")],HH:[r,d("hours")],hh:[r,d("hours")],D:[r,d("day")],DD:[a,d("day")],Do:[s,function(v){var g=i.ordinal,u=v.match(/\d+/);if(this.day=u[0],g)for(var p=1;p<=31;p+=1)g(p).replace(/\[|\]/g,"")===v&&(this.day=p)}],M:[r,d("month")],MM:[a,d("month")],MMM:[s,function(v){var g=f("months"),u=(f("monthsShort")||g.map(function(p){return p.slice(0,3)})).indexOf(v)+1;if(u<1)throw new Error;this.month=u%12||u}],MMMM:[s,function(v){var g=f("months").indexOf(v)+1;if(g<1)throw new Error;this.month=g%12||g}],Y:[/[+-]?\d+/,d("year")],YY:[a,function(v){this.year=c(v)}],YYYY:[/\d{4}/,d("year")],Z:m,ZZ:m};function k(v){var g,u;g=v,u=i&&i.formats;for(var p=(v=g.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(C,w,q){var L=q&&q.toUpperCase();return w||u[q]||l[q]||u[L].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(M,A,T){return A||T.slice(1)})})).match(n),b=p.length,S=0;S<b;S+=1){var B=p[S],E=y[B],I=E&&E[0],V=E&&E[1];p[S]=V?{regex:I,parser:V}:B.replace(/^\[|\]$/g,"")}return function(C){for(var w={},q=0,L=0;q<b;q+=1){var M=p[q];if(typeof M=="string")L+=M.length;else{var A=M.regex,T=M.parser,z=C.slice(L),$=A.exec(z)[0];T.call(w,$),C=C.replace($,"")}}return function(x){var H=x.afternoon;if(H!==void 0){var j=x.hours;H?j<12&&(x.hours+=12):j===12&&(x.hours=0),delete x.afternoon}}(w),w}}return function(v,g,u){u.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(c=v.parseTwoDigitYear);var p=g.prototype,b=p.parse;p.parse=function(S){var B=S.date,E=S.utc,I=S.args;this.$u=E;var V=I[1];if(typeof V=="string"){var C=I[2]===!0,w=I[3]===!0,q=C||w,L=I[2];w&&(L=I[2]),i=this.$locale(),!C&&L&&(i=u.Ls[L]),this.$d=function(z,$,x){try{if(["x","X"].indexOf($)>-1)return new Date(($==="X"?1e3:1)*z);var H=k($)(z),j=H.year,Y=H.month,R=H.day,O=H.hours,X=H.minutes,K=H.seconds,N=H.milliseconds,D=H.zone,P=new Date,F=R||(j||Y?1:P.getDate()),Q=j||P.getFullYear(),ee=0;j&&!Y||(ee=Y>0?Y-1:P.getMonth());var Z=O||0,J=X||0,ne=K||0,oe=N||0;return D?new Date(Date.UTC(Q,ee,F,Z,J,ne,oe+60*D.offset*1e3)):x?new Date(Date.UTC(Q,ee,F,Z,J,ne,oe)):new Date(Q,ee,F,Z,J,ne,oe)}catch{return new Date("")}}(B,V,E),this.init(),L&&L!==!0&&(this.$L=this.locale(L).$L),q&&B!=this.format(V)&&(this.$d=new Date("")),i={}}else if(V instanceof Array)for(var M=V.length,A=1;A<=M;A+=1){I[1]=V[A-1];var T=u.apply(this,I);if(T.isValid()){this.$d=T.$d,this.$L=T.$L,this.init();break}A===M&&(this.$d=new Date(""))}else b.call(this,S)}}})})(ga);var Au=ga.exports;const Eu=je(Au);var ya={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n,a){var r=n.prototype,s=r.format;a.en.ordinal=function(i){var c=["th","st","nd","rd"],d=i%100;return"["+i+(c[(d-20)%10]||c[d]||c[0])+"]"},r.format=function(i){var c=this,d=this.$locale();if(!this.isValid())return s.bind(this)(i);var m=this.$utils(),f=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return d.ordinal(c.$D);case"gggg":return c.weekYear();case"GGGG":return c.isoWeekYear();case"wo":return d.ordinal(c.week(),"W");case"w":case"ww":return m.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return m.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return m.s(String(c.$H===0?24:c.$H),h==="k"?1:2,"0");case"X":return Math.floor(c.$d.getTime()/1e3);case"x":return c.$d.getTime();case"z":return"["+c.offsetName()+"]";case"zzz":return"["+c.offsetName("long")+"]";default:return h}});return s.bind(this)(f)}}})})(ya);var Tu=ya.exports;const $u=je(Tu);var va={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n,a){var r=n.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},i=function(f,h,y,k,v){var g=f.name?f:f.$locale(),u=s(g[h]),p=s(g[y]),b=u||p.map(function(B){return B.slice(0,k)});if(!v)return b;var S=g.weekStart;return b.map(function(B,E){return b[(E+(S||0))%7]})},c=function(){return a.Ls[a.locale()]},d=function(f,h){return f.formats[h]||function(y){return y.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(k,v,g){return v||g.slice(1)})}(f.formats[h.toUpperCase()])},m=function(){var f=this;return{months:function(h){return h?h.format("MMMM"):i(f,"months")},monthsShort:function(h){return h?h.format("MMM"):i(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(f,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(f,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return d(f.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return m.bind(this)()},a.localeData=function(){var f=c();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(h){return d(f,h)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return i(c(),"months")},a.monthsShort=function(){return i(c(),"monthsShort","months",3)},a.weekdays=function(f){return i(c(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return i(c(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return i(c(),"weekdaysMin","weekdays",2,f)}}})})(va);var Du=va.exports;const Iu=je(Du);var ka={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){var l="week",n="year";return function(a,r,s){var i=r.prototype;i.week=function(c){if(c===void 0&&(c=null),c!==null)return this.add(7*(c-this.week()),"day");var d=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var m=s(this).startOf(n).add(1,n).date(d),f=s(this).endOf(l);if(m.isBefore(f))return 1}var h=s(this).startOf(n).date(d).startOf(l).subtract(1,"millisecond"),y=this.diff(h,l,!0);return y<0?s(this).startOf("week").week():Math.ceil(y)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(ka);var qu=ka.exports;const Mu=je(qu);var ba={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n){n.prototype.weekYear=function(){var a=this.month(),r=this.week(),s=this.year();return r===1&&a===11?s+1:a===0&&r>=52?s-1:s}}})})(ba);var zu=ba.exports;const xu=je(zu);var Sa={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n,a){n.prototype.dayOfYear=function(r){var s=Math.round((a(this).startOf("day")-a(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(Sa);var Pu=Sa.exports;const Lu=je(Pu);var Ca={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n){n.prototype.isSameOrAfter=function(a,r){return this.isSame(a,r)||this.isAfter(a,r)}}})})(Ca);var Ru=Ca.exports;const Ou=je(Ru);var wa={exports:{}};(function(e,o){(function(l,n){e.exports=n()})(He,function(){return function(l,n){n.prototype.isSameOrBefore=function(a,r){return this.isSame(a,r)||this.isBefore(a,r)}}})})(wa);var Fu=wa.exports;const Uu=je(Fu);xe.extend(Iu);xe.extend($u);xe.extend(Eu);xe.extend(Mu);xe.extend(xu);xe.extend(Lu);xe.extend(Ou);xe.extend(Uu);const _={format(e,o){return xe(e).format(o)},parser(e,o){return xe(e,o).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,o,l){const a=new Date(e+"/"+o+"/"+l).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][a]},getMonthPreDay(e,o){let n=new Date(e+"/"+o+"/01").getDay();return n==0&&(n=7),n},getMonthDays(e,o){return/^0/.test(o)&&(o=o.split("")[1]),[0,31,this.isLeapYear(Number(e))?29:28,31,30,31,30,31,31,30,31,30,31][o]},getNumTwoBit(e){return e=Number(e),(e>9?"":"0")+e},date2Str:function(e,o){o=o||"-";const l=e.getFullYear(),n=this.getNumTwoBit(e.getMonth()+1),a=this.getNumTwoBit(e.getDate());return[l,n,a].join(o)},getDay(e){e=e||0;let o=new Date;const l=e*(1e3*60*60*24);return o=new Date(o.getTime()+l),this.date2Str(o)},compareDate(e,o){let l;typeof e=="string"?l=new Date(e.replace("-","/").replace("-","/")):l=e;let n;return typeof o=="string"?n=new Date(o.replace("-","/").replace("-","/")):n=o,!(l>=n)},isEqual(e,o){if(e===o)return!0;if(!e||!o)return!1;let l;typeof e=="string"?l=new Date(e).getTime():l=e;let n;return typeof o=="string"?n=new Date(o).getTime():n=o,l==n},getMonthWeek:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l));let r=a.getDay(),s=a.getDate(),i=6-r;return n!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l)),r=new Date(Number(e),0,1),s=Math.round((a.valueOf()-r.valueOf())/864e5);return Math.ceil((s+(r.getDay()+1-1))/7)},getWeekDate:function(e,o,l,n=0){const a=new Date(Number(e),parseInt(o)-1,Number(l)),r=a.getTime();let s=a.getDay();if(n===0){const c=r-s*864e5,d=r+(6-s)*864e5,m=this.date2Str(new Date(c)),f=this.date2Str(new Date(d));return[m,f]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,d=r+(7-s)*i,m=this.date2Str(new Date(c)),f=this.date2Str(new Date(d));return[m,f]}},formatResultDate:function(e){let o=[...e.split("-")];return o[2]=_.getNumTwoBit(Number(o[2])),o[3]=`${o[0]}-${o[1]}-${o[2]}`,o[4]=_.getWhatDay(+o[0],+o[1],+o[2]),o},inScope4Day(e,o,l){const n=new Date(new Date(o).setDate(o.getDate()+l)),a=e.getTime(),r=n.getTime(),s=o.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s},inScope4Month(e,o,l){const n=new Date(new Date(o).setMonth(o.getMonth()+l)),a=e.getTime(),r=n.getTime(),s=o.getTime();return r>s?a>=s&&a<=r:a>=r&&a<=s}},Zn=new Date().getFullYear(),hn={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss",["month-day"]:"MM-DD",datehour:"YYYY-MM-DD HH"},oo=(e,o,l)=>{let n;if(Oe(o)?n=o:typeof o=="string"&&pe(o)>0?n=_.parser(o,l):n=new Date,n.toString()==="Invalid Date")return null;let a=Math.max(n.getTime(),e.minDate.getTime());return a=Math.min(a,e.maxDate.getTime()),new Date(a)},Zo=(e,o,l)=>{Oe(o)||(o=e.minDate);let n=Math.max(o.getTime(),e.minDate.getTime());return n=Math.min(n,e.maxDate.getTime()),_.format(new Date(n),l)};let Jo={modelValue:{type:[String,Date]},confirmText:{type:String,default:""},cancelText:{type:String,default:""},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(Zn-10,0,1),validator:Oe},maxDate:{type:Date,default:()=>new Date(Zn+10,11,31),validator:Oe},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:Ku,scope:Hu}=U("date-picker"),ju=Ku({components:{[Et.name]:Et},props:{...Jo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(Hu),n={day:l("day"),year:l("year"),month:l("month"),hour:l("hour"),minute:l("minute"),seconds:l("seconds")},a=t.ref(!1);t.watch(()=>e.visible,u=>{a.value=u});function r(u,p){return new Date(u,p,0).getDate()}const s=(u,p)=>{const b=e[`${u}Date`],S=b.getFullYear();let B=1,E=1,I=0,V=0;u==="max"&&(B=12,E=r(p.getFullYear(),p.getMonth()+1),I=23,V=59);const C=V;return p.getFullYear()===S&&(B=b.getMonth()+1,p.getMonth()+1===B&&(E=b.getDate(),p.getDate()===E&&(I=b.getHours(),p.getHours()===I&&(V=b.getMinutes())))),{[`${u}Year`]:S,[`${u}Month`]:B,[`${u}Date`]:E,[`${u}Hour`]:I,[`${u}Minute`]:V,[`${u}Seconds`]:C}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:u,maxDate:p,maxMonth:b,maxHour:S,maxMinute:B,maxSeconds:E}=s("max",h.value),{minYear:I,minDate:V,minMonth:C,minHour:w,minMinute:q,minSeconds:L}=s("min",h.value);let M=[{type:"year",range:[I,u]},{type:"month",range:[C,b]},{type:"day",range:[V,p]},{type:"hour",range:[w,S]},{type:"minute",range:[q,B]},{type:"seconds",range:[L,E]}];switch(e.type){case"date":M=M.slice(0,3);break;case"datetime":M=M.slice(0,5);break;case"time":M=M.slice(3,6);break;case"month-day":M=M.slice(1,3);break;case"datehour":M=M.slice(0,4);break}return M}),c=(u,p,b)=>{if(!(p>u))return null;const S=[];for(;u<=p;)e.isShowChinese?S.push({text:u+n[b],value:u}):S.push({text:`${u}`,value:u}),b==="minute"?u+=e.minuteStep:u++;return S},d=t.computed(()=>{let u=[];return i.value.forEach(p=>{let b=c(p.range[0],p.range[1],p.type);b&&u.push(b)}),u}),m=(u,p)=>u==="year"?p.getFullYear():u==="month"?p.getMonth()+1:u==="day"?p.getDate():u==="hour"?p.getHours():u==="minute"?p.getMinutes():u==="seconds"?p.getSeconds():0,f=t.ref(),h=t.ref(null);t.watchEffect(()=>{let u,p=e.modelValue;if(typeof p=="string"?p.length==0?u=new Date:e.valueFormat?u=oo(e,e.modelValue,e.valueFormat):u=oo(e,p,hn[e.type]):Oe(p)?u=p:u=new Date,!!u&&(!h.value||u.getTime()!==h.value.getTime())){h.value=u;let b=[];i.value.forEach(S=>{let B=m(S.type,u);b.push(B)}),f.value=b}});const y=u=>{if(e.type==="date"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])))}else if(e.type==="datetime"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3],p[4])}else if(e.type==="datehour"){let p=u;h.value=new Date(p[0],p[1]-1,Math.min(p[2],r(p[0],p[1])),p[3])}else if(e.type==="time"){let p=u,b=h.value??new Date,S=new Date(b.getFullYear(),b.getMonth(),b.getDate(),p[0],p[1],p[2]);h.value=S}else if(e.type==="month-day"){let p=u,b=h.value??new Date,S=new Date(b.getFullYear(),p[0]-1,p[1]);h.value=S}f.value=u};return{columns:d,dateIndexs:f,show:a,onClose:()=>{a.value=!1,o("update:visible",!1),o("update:close",!1)},onConfirm:u=>{y(u),a.value=!1;let p=h.value??new Date;if(e.valueFormat){let b=Zo(e,p,e.valueFormat);o("update:modelValue",b)}else o("update:modelValue",p);o("update:visible",!1),o("confirm",u)},onClear:()=>{o("clear")}}}});function Wu(e,o,l,n,a,r){const s=t.resolveComponent("fox-picker");return t.openBlock(),t.createBlock(s,{visible:e.show,"model-value":e.dateIndexs,source:e.columns,"value-type":"value","confirm-text":e.confirmText,"cancel-text":e.cancelText,title:e.title,onConfirm:e.onConfirm,onClose:e.onClose,onClear:e.onClear,"visible-item-count":e.visibleItemCount,"three-dimensional":e.threeDimensional,"swipe-duration":e.swipeDuration,"teleport-disable":e.teleportDisable},{top:t.withCtx(()=>[t.renderSlot(e.$slots,"top")]),default:t.withCtx(()=>[t.renderSlot(e.$slots,"default")]),_:3},8,["visible","model-value","source","confirm-text","cancel-text","title","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const gn=W(ju,[["render",Wu]]);function Yu(e){let o=e.format;if(!o){let l=e.type??"date";o=hn[l]}return o}function Xu(e,o,l,n,a,r,s=!1){return{props:{...de,...fe,...Jo,format:{type:String},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const d=Ne(t.computed(()=>i.disabled)),m=Ie(t.computed(()=>i.readonly)),{emitEvent:f}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(o),y=h(i,["placeholder"]),k=t.ref(!1),g=ze(i,"modelValue",O=>O==null?null:typeof O=="string"?O.length==0?null:i.valueFormat?oo(i,O,i.valueFormat)??O:oo(i,O,hn[i.type])??O:Oe(O)?O:null),u=t.computed(()=>{if(!g.value)return"";const O=Yu(i);return Zo(i,g.value,O)}),p="fox-input-item",b=t.computed(()=>({[p]:!0,[`${p}__disabled`]:d.value})),S=Ee(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>({textAlign:S.value??"right"})),E=t.ref(!1),I=()=>{E.value=!0},V=()=>{E.value=!1};c.expose({showPicker:I,hidePicker:V});const C=O=>{E.value=O},w=O=>{if(g.value=O,i.valueFormat){let X=Zo(i,O,i.valueFormat);f("update:modelValue",X,{}),f("change",X,{})}else f("update:modelValue",O,{}),f("change",O,{})},q=O=>{let K=O.target.value;k.value=!0,f("focus",K,O)},L=O=>{setTimeout(()=>{k.value=!1},0);let K=O.target.value;i.maxLength&&K.length>Number(i.maxLength)&&(K=K.slice(0,Number(i.maxLength))),f("blur",K,O)},M=t.computed(()=>({[`${p}__append`]:!0})),A=t.computed(()=>pe(i.unit)>0),T=t.computed(()=>pe(i.unit)>0&&!k.value),z=t.computed(()=>({hidden:!T.value})),$=O=>{g.value="",f("update:modelValue","",O),f("change","",O),f("clear",""),V()},x=t.computed(()=>i.clearable&&!d.value&&!m.value),H=t.computed(()=>{let O=pe(g.value)>0;return i.clearable&&O&&k.value}),j=O=>{H.value?$(O):I()},Y=t.computed(()=>H.value&&x.value?n:a),R=t.computed(()=>({action:!0}));return()=>{const O={class:b.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:I,onFocus:q,onBlur:L};s&&(O.disabled=!0);const X=[],K=t.h("input",O);X.push(K);const N=[],D={class:["action-icon"]},P=t.h(Y.value,D),F={class:R.value,onClick:j},Q=t.h("view",F,{default:()=>[P]});if(N.push(Q),A.value){const he=t.h("view",{class:z.value},[i.unit]);N.push(he)}const ee={class:M.value},Z=t.h("view",ee,{default:()=>N});X.push(Z);const J={default:()=>X};if(c.slots.default){const he=c.slots.default();J.label=()=>he}if(c.slots.prepend){const he=c.slots.prepend();J.prepend=()=>he}if(c.slots.append){const he=c.slots.append();J.append=()=>he}const ne=ke(i,Jo);ne.valueFormat=null,ne.disabled=!1,ne.readonly=d.value||m.value,ne.visible=E.value,ne["onUpdate:visible"]=C,ne.modelValue=g.value,ne["onUpdate:modelValue"]=w,ne.onClear=$;const oe={};if(c.slots.top){const he=c.slots.top();oe.top=()=>he}if(c.slots.bottom){const he=c.slots.bottom();oe.default=()=>he}const re=t.h(r,ne,oe);J.hide=()=>[re];const te=ke(i,fe,de);return t.h(l,te,J)}}}}const{create:Qu,componentName:Gu,scope:Zu}=U("date-item"),Na=Qu(Xu(Gu,Zu,Ve,G.CloseLittle,G.Date,gn,!1)),{create:Ju,scope:_u}=U("calendar-pane"),ed=Ju({props:{type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:_.getDay(0)},endDate:{type:String,default:_.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:o,slots:l}){const{toLocaleRefs:n,t:a}=ie.useFoxI18n(_u),r=n(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(a("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),d=t.ref(null),m=t.ref(null),f=t.ref(null),h=t.ref(0),y=t.computed(()=>u.monthsData.slice(u.defaultRange[0],u.defaultRange[1])),k=t.computed(()=>l.btn),v=t.computed(()=>l["top-info"]),g=t.computed(()=>l["bottom-info"]),u=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,avgHeight:0,monthsNum:0}),p=N=>N.split("-"),b=N=>_.isEqual(u.currDate[0],N),S=N=>_.isEqual(u.currDate[1],N),B=N=>u.currDate?.length>0?u.currDate?.some(D=>_.isEqual(D,N)):!1,E=(N,D)=>D.curData[0]+"-"+D.curData[1]+"-"+_.getNumTwoBit(+N.day),I=(N,D)=>{const P=E(N,D),{type:F}=e;return N.type=="curr"?_.isEqual(u.currDate,P)||(F=="range"||F=="week")&&(b(P)||S(P))||F=="multiple"&&B(P)?`${u.dayPrefix}--active`:u.propStartDate&&_.compareDate(P,u.propStartDate)||u.propEndDate&&_.compareDate(u.propEndDate,P)?`${u.dayPrefix}--disabled`:(F=="range"||F=="week")&&Array.isArray(u.currDate)&&Object.values(u.currDate).length==2&&_.compareDate(u.currDate[0],P)&&_.compareDate(P,u.currDate[1])?`${u.dayPrefix}--choose`:null:`${u.dayPrefix}--disabled`},V=()=>{const{type:N}=e;if(N=="range"&&u.chooseData.length==2||N!="range"){let D=u.chooseData.slice(0);N=="week"&&(D={weekDate:[w(u.chooseData[0]),w(u.chooseData[1])]}),o("choose",D),e.poppable&&o("update")}},C=(N,D,P=!1)=>{if(I(N,D)!=`${u.dayPrefix}--disabled`){const{type:F}=e;let[Q,ee]=D.curData,Z=[...D.curData];if(Z[2]=_.getNumTwoBit(Number(N.day)),Z[3]=`${Z[0]}-${Z[1]}-${Z[2]}`,Z[4]=_.getWhatDay(+Z[0],+Z[1],+Z[2]),F=="multiple")if(u.currDate?.length>0){let J;u.currDate?.forEach((ne,oe)=>{ne==Z[3]&&(J=oe)}),P?u.chooseData.push([...Z]):J!==void 0?(u.currDate.splice(J,1),u.chooseData.splice(J,1)):(u.currDate.push(Z[3]),u.chooseData.push([...Z]))}else u.currDate=[Z[3]],u.chooseData=[[...Z]];else if(F=="range"){let J=Object.values(u.currDate).length;J==2||J==0?u.currDate=[Z[3]]:_.compareDate(u.currDate[0],Z[3])?Array.isArray(u.currDate)&&u.currDate.push(Z[3]):Array.isArray(u.currDate)&&u.currDate.unshift(Z[3]),u.chooseData.length==2||!u.chooseData.length?u.chooseData=[[...Z]]:_.compareDate(u.chooseData[0][3],Z[3])?u.chooseData=[...u.chooseData,[...Z]]:u.chooseData=[[...Z],...u.chooseData]}else if(F=="week"){let J=_.getWeekDate(Q,ee,N.day,e.firstDayOfWeek);u.propStartDate&&_.compareDate(J[0],u.propStartDate)&&J.splice(0,1,u.propStartDate),u.propEndDate&&_.compareDate(u.propEndDate,J[1])&&J.splice(1,1,u.propEndDate),u.currDate=J,u.chooseData=[_.formatResultDate(J[0]),_.formatResultDate(J[1])]}else u.currDate=Z[3],u.chooseData=[...Z];if(!P){let J=u.chooseData;F=="week"&&(J={weekDate:[w(u.chooseData[0]),w(u.chooseData[1])]}),o("select",J),(e.isAutoBackFill||!e.poppable)&&V()}}},w=N=>{let[D,P,F]=N;return{date:N,monthWeekNum:_.getMonthWeek(D,P,F,e.firstDayOfWeek),yearWeekNum:_.getYearWeek(D,P,F,e.firstDayOfWeek)}},q=N=>{const D=N=="prev"?u.monthsData[0]:u.monthsData[u.monthsData.length-1];let P=parseInt(D.curData[0]),F=parseInt(D.curData[1].toString().replace(/^0/,""));switch(N){case"prev":F==1&&(P-=1),F=F==1?12:--F;break;case"next":F==12&&(P+=1),F=F==12?1:++F;break}return[P+"",_.getNumTwoBit(F),_.getMonthDays(String(P),String(F))+""]},L=(N,D,P)=>{let{year:F,month:Q}=P;return D=="prev"&&N>=7&&(N-=7),Array.from(Array(N),(ee,Z)=>({day:String(Z+1),type:D,year:F,month:Q}))},M=(N,D,P,F)=>{N=N-e.firstDayOfWeek;let{year:Q,month:ee}=P;return D=="prev"&&N>=7&&(N-=7),Array.from(Array(F),(J,ne)=>({day:String(ne+1),type:D,year:Q,month:ee})).slice(F-N)},A=(N,D)=>{const P=_.getMonthPreDay(+N[0],+N[1]);let F=Number(N[1])-1,Q=Number(N[0]);F<=0&&(F=12,Q+=1);const ee=_.getMonthDays(String(N[0]),String(N[1])),Z=_.getMonthDays(Q+"",F+""),J={year:N[0],month:N[1]},ne={curData:N,title:a("monthTitle",{year:J.year,month:J.month}),monthData:[...M(P,"prev",{month:String(F),year:String(Q)},Z),...L(ee,"curr",J)],cssHeight:0,cssScrollHeight:0};ne.cssHeight=39+(ne.monthData.length>35?384:320);let oe=0;u.monthsData.length>0&&(oe=u.monthsData[u.monthsData.length-1].cssScrollHeight+u.monthsData[u.monthsData.length-1].cssHeight),ne.cssScrollHeight=oe,D=="next"?(!u.endData||!_.compareDate(`${u.endData[0]}-${u.endData[1]}-${_.getMonthDays(u.endData[0],u.endData[1])}`,`${N[0]}-${N[1]}-${N[2]}`))&&u.monthsData.push(ne):!u.startData||!_.compareDate(`${N[0]}-${N[1]}-${N[2]}`,`${u.startData[0]}-${u.startData[1]}-01`)?u.monthsData.unshift(ne):u.unLoadPrev=!0},T=()=>{let N=e.startDate?e.startDate:_.getDay(0),D=e.endDate?e.endDate:_.getDay(365);u.propStartDate=N,u.propEndDate=D,u.startData=p(N),u.endData=p(D),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(u.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const P={year:Number(u.startData[0]),month:Number(u.startData[1])},F={year:Number(u.endData[0]),month:Number(u.endData[1])};let Q=F.month-P.month;F.year-P.year>0&&(Q=Q+12*(F.year-P.year)),Q<=0&&(Q=1),A(u.startData,"next");let ee=1;do A(q("next"),"next");while(ee++<Q);if(u.monthsNum=Q,e.type=="range"&&Array.isArray(u.currDate))u.currDate.length>0&&(N&&_.compareDate(u.currDate[0],N)&&u.currDate.splice(0,1,N),D&&_.compareDate(D,u.currDate[1])&&u.currDate.splice(1,1,D),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let re=[],te={};u.currDate.forEach(be=>{N&&!_.compareDate(be,N)&&D&&!_.compareDate(D,be)&&(Object.hasOwnProperty.call(te,be)||(re.push(be),te[be]=be))}),u.currDate=[...re],u.defaultData=[...p(re[0])]}}else if(e.type=="week"&&Array.isArray(u.currDate)){if(u.currDate.length>0){let[re,te,be]=p(u.currDate[0]),he=_.getWeekDate(re,te,be,e.firstDayOfWeek);u.currDate=he,N&&_.compareDate(u.currDate[0],N)&&u.currDate.splice(0,1,N),D&&_.compareDate(D,u.currDate[1])&&u.currDate.splice(1,1,D),u.defaultData=[...p(u.currDate[0]),...p(u.currDate[1])]}}else u.currDate&&(N&&_.compareDate(u.currDate,N)?u.currDate=N:D&&!_.compareDate(u.currDate,D)&&(u.currDate=D),u.defaultData=[...p(u.currDate)]);let Z=0,J=0;u.defaultData.length>0&&u.monthsData.forEach((re,te)=>{re.title==a("monthTitle",{year:u.defaultData[0],month:u.defaultData[1]})&&(Z=te),(e.type=="range"||e.type=="week")&&re.title==a("monthTitle",{year:u.defaultData[3],month:u.defaultData[4]})&&(J=te)}),x(Q,Z),u.currentIndex=Z,u.yearMonthTitle=u.monthsData[u.currentIndex].title,u.defaultData.length>0&&(u.isRange?(C({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0),C({day:u.defaultData[5],type:"curr"},u.monthsData[J],!0)):e.type=="week"?C({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0):e.type=="multiple"?[...u.currDate].forEach(re=>{let te=p(re),be=u.currentIndex;u.monthsData.forEach((he,No)=>{he.title==a("monthTitle",{year:te[0],month:te[1]})&&(be=No)}),C({day:te[2],type:"curr"},u.monthsData[be],!0)}):C({day:u.defaultData[2],type:"curr"},u.monthsData[u.currentIndex],!0));let ne=u.monthsData[u.monthsData.length-1],oe=ne.cssHeight+ne.cssScrollHeight;Ye(()=>{c?.value&&d?.value&&f?.value&&(h.value=c.value.clientHeight,d.value.style.height=`${oe}px`,c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}),u.avgHeight=Math.floor(oe/(Q+1))};Te({scrollToDate:N=>{_.compareDate(N,u.propStartDate)?N=u.propStartDate:_.compareDate(N,u.propEndDate)||(N=u.propEndDate);let D=p(N);u.monthsData.forEach((P,F)=>{if(P.title==a("monthTitle",{year:D[0],month:D[1]})&&c.value){let Q=u.monthsData[F].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let ee=0,Z=setInterval(()=>{if(ee++,c.value){let J=Q/10;c.value.scrollTop=c.value.scrollTop+J}ee>=10&&(clearInterval(Z),c.value&&(c.value.scrollTop=u.monthsData[F].cssScrollHeight))},40)}else c.value.scrollTop=u.monthsData[F].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=u.monthsData[u.currentIndex].cssScrollHeight)}});const x=(N,D)=>{N>=3?D>0&&D<N?u.defaultRange=[D-1,D+3]:D==0?u.defaultRange=[D,D+4]:D==N&&(u.defaultRange=[D-2,D+2]):u.defaultRange=[0,N+2];let P=u.monthsData[u.defaultRange[0]].cssScrollHeight;u.translateY=P},H=(N,D)=>(e.type=="range"||e.type=="week")&&N.type=="curr"&&I(N,D)=="fox-calendar__day--active",j=(N,D)=>H(N,D)&&b(E(N,D)),Y=(N,D)=>u.currDate.length>=2&&S(E(N,D))?H(N,D):!1,R=()=>{if(u.currDate.length>=2)return _.isEqual(u.currDate[0],u.currDate[1])},O=N=>{const D=`${N.year}-${N.month}-${Number(N.day)<10?"0"+N.day:N.day}`;return _.isEqual(D,_.date2Str(new Date))},X=N=>{if(u.monthsData.length<=1)return;const D=N.target.scrollTop;let P=Math.floor(D/u.avgHeight);if(P==0)D>=u.monthsData[P+1].cssScrollHeight&&(P+=1);else if(P>0&&P<u.monthsNum-1)D>=u.monthsData[P+1].cssScrollHeight&&(P+=1),D<u.monthsData[P].cssScrollHeight&&(P-=1);else{const F=Math.round(D+h.value);F<u.monthsData[P].cssScrollHeight+u.monthsData[P].cssHeight&&D>u.monthsData[P-1].cssScrollHeight&&(P-=1),P+1<=u.monthsNum&&F>=u.monthsData[P+1].cssScrollHeight+u.monthsData[P+1].cssHeight&&(P+=1),P>=1&&D<u.monthsData[P-1].cssScrollHeight&&(P-=1)}u.currentIndex!==P&&(u.currentIndex=P,x(u.monthsNum,P)),u.yearMonthTitle=u.monthsData[P].title},K=()=>{u.chooseData.splice(0),u.monthsData.splice(0),T()};return T(),t.watch(()=>e.defaultValue,N=>{N&&e.poppable&&K()}),{weeks:i,compConthsData:y,showTopBtn:k,topInfo:v,bottomInfo:g,rangeTip:R,mothsViewScroll:X,getClass:I,isStartTip:j,isEndTip:Y,chooseDay:C,isCurrDay:O,confirm:V,months:c,...t.toRefs(u),...t.toRefs(e),...r,monthsPanel:d,weeksPanel:m,viewArea:f}}}),td={class:"fox-calendar__header"},od={key:0,class:"fox-calendar__header-title"},nd={key:1,class:"fox-calendar__header-slot"},ld={key:2,class:"fox-calendar__header-subtitle"},ad={class:"fox-calendar__weekdays",ref:"weeksPanel"},rd={class:"fox-calendar__panel",ref:"monthsPanel"},sd={class:"fox-calendar__month-title"},id={class:"fox-calendar__days"},cd=["onClick"],ud={class:"fox-calendar__day-value"},dd={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},fd={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},md={key:2,class:"fox-calendar__day-tips--curr"},pd={key:4,class:"fox-calendar__day-tip"},hd={key:0,class:"fox-calendar__footer"};function gd(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-calendar",{"fox-calendar--nopop":!e.poppable,"fox-calendar--nofooter":e.isAutoBackFill}])},[t.createElementVNode("view",td,[e.showTitle?(t.openBlock(),t.createElementBlock("view",od,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",nd,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",ld,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",ad,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weeks,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__weekday",key:i},t.toDisplayString(s),1))),128))],512)]),t.createElementVNode("view",{class:"fox-calendar__content",ref:"months",onScroll:o[0]||(o[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",rd,[t.createElementVNode("view",{class:"fox-calendar__body",ref:"viewArea",style:t.normalizeStyle({transform:`translateY(${e.translateY}px)`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.compConthsData,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-calendar__month",key:i},[t.createElementVNode("view",sd,t.toDisplayString(s.title),1),t.createElementVNode("view",id,[t.createElementVNode("view",{class:t.normalizeClass(["fox-calendar__days-item",e.type==="range"?"fox-calendar__days-item--range":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.monthData,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:m=>e.chooseDay(c,s)},[t.createElementVNode("view",ud,[t.renderSlot(e.$slots,"day",{date:c.type=="curr"?c:""},()=>[t.createTextVNode(t.toDisplayString(c.type=="curr"?c.day:""),1)])]),e.topInfo?(t.openBlock(),t.createElementBlock("view",dd,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",fd,[t.renderSlot(e.$slots,"bottom-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),!e.bottomInfo&&e.showToday&&e.isCurrDay(c)?(t.openBlock(),t.createElementBlock("view",md,t.toDisplayString(e.today),1)):t.createCommentVNode("",!0),e.isStartTip(c,s)?(t.openBlock(),t.createElementBlock("view",{key:3,class:t.normalizeClass(["fox-calendar__day-tip",{"fox-calendar__day-tips--top":e.rangeTip()}])},t.toDisplayString(e.startText),3)):t.createCommentVNode("",!0),e.isEndTip(c,s)?(t.openBlock(),t.createElementBlock("view",pd,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,cd))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",hd,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:o[1]||(o[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const Jn=W(ed,[["render",gd]]),yd=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),_o={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array]},startDate:{type:String,default:_.getDay(0)},endDate:{type:String,default:_.getDay(365)},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6}},{create:vd}=U("calendar"),kd=vd({components:{[Jn.name]:Jn,[ce.name]:ce},props:{..._o},emits:["choose","close","update:visible","select"],setup(e,{emit:o,slots:l}){const n=t.computed(()=>l.btn),a=t.computed(()=>l["top-info"]),r=t.computed(()=>l.day),s=t.computed(()=>l["bottom-info"]),i=t.ref(null);Te({scrollToDate:v=>{i.value?.scrollToDate(v)},initPosition:()=>{i.value?.initPosition()}});const m=()=>{o("update:visible",!1)},f=()=>{o("close"),o("update:visible",!1)};return{closePopup:()=>{f()},update:m,close:f,select:v=>{o("select",v)},choose:v=>{f(),o("choose",v)},calendarRef:i,showTopBtn:n,topInfo:a,dayInfo:r,bottomInfo:s}}});function bd(e,o,l,n,a,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:{height:"85vh"}}),{default:t.withCtx(()=>[t.createVNode(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const yn=W(kd,[["render",bd]]),Io=(e,o)=>{let l;return Oe(e)?l=e:typeof e=="string"&&pe(e)>0?l=_.parser(e,o):l=new Date,l},rt=(e,o,l)=>(Oe(o)||(o=new Date),_.format(o,l)),st=e=>{let o=`${e.getFullYear()}`,l=`${e.getMonth()+1}`,n=`${e.getDate()}`,a=_.date2Str(e),r=_.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[o,l,n,a,r]};function Sd(e,o,l,n,{CloseIcon:a,MarkIcon:r},s=!1){return{props:{...de,...fe,..._o,modelValue:{type:[String,Date,Array],default:null},rangeSeparator:{type:String,default:"-"},valueFormat:{type:String,default:"YYYY-MM-DD"},format:{type:String,default:"YYYY-MM-DD"},showWeek:{type:[Boolean,String],default:!1},placeholder:{type:String,default:""},textAlign:{type:String},clearable:{type:Boolean,default:!0}},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const d=Ne(t.computed(()=>i.disabled)),m=Ie(t.computed(()=>i.readonly)),{emitEvent:f}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get validate(){return!d.value&&!m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=ie.useFoxI18n(o),y=h(i,["placeholder"]),k=t.ref(!1),v=t.computed(()=>i.type==="range"),g=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),u=()=>{g.startDate!==null&&(g.startDate=null,g.endDate=null,g.startArray=[],g.endArray=[])},p=(K,N="one",D="YYYY-MM-DD")=>{if(yd(K)){u();return}if(v.value&&Array.isArray(K)&&K.length==2){let P,F;typeof K[0]=="string"?(P=Io(K[0],D),F=Io(K[1],D)):(P=K[0],F=K[1]);let Q=st(P),ee=st(F);(g.startDate===null||g.startDate.getTime()!==P.getTime()||g.endDate?.getTime()!==F.getTime())&&(g.startDate=P,g.startArray=Q,g.endDate=F,g.endArray=ee)}else{let P;typeof K=="string"?P=Io(K,D):P=K;let F=st(P);(g.startDate===null||g.startDate.getTime()!==P.getTime())&&(g.startDate=P,g.startArray=F)}};p(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,K=>{p(K,i.type,i.valueFormat)});const b=t.computed(()=>{if(g.startDate===null)return"";if(v.value){let K=rt(i,g.startDate,i.format),N=rt(i,g.endDate,i.format);return`${K} ${i.rangeSeparator} ${N}`}else{let K=rt(i,g.startDate,i.format);return i.showWeek&&(K=`${K} ${g.startArray[4]}`),K}}),S=t.computed(()=>{if(g.startDate===null)return null;if(v.value){let K=_.date2Str(g.startDate),N=_.date2Str(g.endDate??new Date);return[K,N]}else return _.date2Str(g.startDate)}),B="fox-input-item",E=t.computed(()=>({[B]:!0,[`${B}__disabled`]:d.value})),I=Ee(t.computed(()=>i.textAlign),"textAlign"),V=t.computed(()=>({textAlign:I.value??"right"})),C=t.ref(!1),w=()=>{m.value||d.value||(C.value=!0)},q=K=>{C.value=K},L=K=>{if(K){if(v.value&&Array.isArray(K)){let N=K[0],D=ue(N[0]),P=ue(N[1]),F=ue(N[2]),Q=new Date(D,P-1,F),ee=K[1];D=ue(ee[0]),P=ue(ee[1]),F=ue(ee[2]);let Z=new Date(D,P-1,F);if(g.startDate=Q,g.startArray=st(Q),g.endDate=Z,g.endArray=st(Z),i.valueFormat){let J=rt(i,Q,i.valueFormat),ne=rt(i,Z,i.valueFormat);f("update:modelValue",[J,ne],{})}else f("update:modelValue",[Q,Z],{})}else{let N=K,D=ue(N[0]),P=ue(N[1]),F=ue(N[2]),Q=new Date(D,P-1,F);if(g.startDate=Q,g.startArray=st(Q),i.valueFormat){let ee=rt(i,Q,i.valueFormat);f("update:modelValue",ee,{})}else f("update:modelValue",Q,{})}f("change",K,{})}},M=K=>{let D=K.target.value;k.value=!0,f("focus",D,K)},A=K=>{setTimeout(()=>{k.value=!1},0);let D=K.target.value;i.maxLength&&D.length>Number(i.maxLength)&&(D=D.slice(0,Number(i.maxLength))),f("blur",D,K)},T=t.computed(()=>({[`${B}__append`]:!0})),z=t.computed(()=>pe(i.unit)>0),$=t.computed(()=>pe(i.unit)>0&&!k.value),x=t.computed(()=>({hidden:!$.value})),H=K=>{u(),f("update:modelValue",null,K),f("change","",K),f("clear","")},j=t.computed(()=>i.clearable&&!d.value&&!m.value),Y=t.computed(()=>{let K=pe(b.value)>0;return i.clearable&&K&&k.value}),R=K=>{Y.value?H(K):w()},O=t.computed(()=>Y.value&&j.value?a:r),X=t.computed(()=>({action:!0}));return()=>{const K={class:E.value,style:V.value,type:"text",maxlength:i.maxLength,placeholder:y.placeholder.value,readonly:!0,unselectable:"on",value:b.value,onClick:w,onFocus:M,onBlur:A};s&&(K.disabled=!0);const N=[],D=t.h("input",K);N.push(D);const P=[],F={class:["action-icon"]},Q=t.h(O.value,F),ee={class:X.value,onClick:R},Z=t.h("view",ee,{default:()=>[Q]});if(P.push(Z),z.value){const $e=t.h("view",{class:x.value},[i.unit]);P.push($e)}const J={class:T.value},ne=t.h("view",J,{default:()=>P});N.push(ne);const oe={default:()=>N};c.slots.default&&(oe.label=c.slots.default),c.slots.prepend&&(oe.prepend=c.slots.prepend),c.slots.append&&(oe.append=c.slots.append);const re=ke(i,_o);re.visible=C.value,re["onUpdate:visible"]=q,re["default-value"]=S.value,re.onChoose=L;const te={};if(c.slots.btn){const $e=c.slots.btn();te.btn=()=>$e}c.slots.day&&(te.day=c.slots.day),c.slots.topInfo&&(te.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(te.bottomInfo=c.slots.bottomInfo);const be=t.h(l,re,te);oe.hide=()=>[be];const he=ke(i,fe,de);return t.h(n,he,oe)}}}}const{componentName:Cd,create:wd,scope:Nd}=U("calendar-item"),Ba=wd(Sd(Cd,Nd,yn,Ve,{CloseIcon:G.CloseLittle,MarkIcon:G.Date},!1)),Bd={readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},shape:{type:String,default:"round"},label:{type:[String,Number,Boolean],default:""},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}};function Vd(e,{CheckNormal:o,Checked:l}){return{props:{...Bd},setup(n,{emit:a,slots:r}){let s=t.inject("parent",null);const i=t.computed(()=>s.label.value===n.label),c=t.computed(()=>n.disabled?"fox-radio__icon--disable":i.value?"fox-radio__icon":"fox-radio__icon--unchecked"),d=t.computed(()=>s.position),m=()=>{if(i.value){if(r.checkedIcon)return r.checkedIcon();{const v=se(n.iconSize),g=n.icon??l;return t.h(g,{width:v,height:v,class:c.value})}}else{if(r.icon)return r.icon();{const v=se(n.iconSize),g=n.icon??o;return t.h(g,{width:v,height:v,class:c.value})}}},f=()=>t.h("view",{class:`${e}__label ${n.disabled?`${e}__label--disabled`:""}`},r.default?.()),h=()=>t.h("view",{class:`${e}__button ${i.value&&`${e}__button--active`} ${n.disabled?`${e}__button--disabled`:""}`},r.default?.()),y=()=>{i.value||n.disabled||n.readonly||s.updateValue(n.label)},k=d.value==="left";return()=>t.h("view",{class:`${e} ${e}--${n.shape} ${k?`${e}--reverse`:""}`,onClick:y},[n.shape=="button"?h():k?[f(),m()]:[m(),f()]])}}}const{componentName:Ad,create:Ed}=U("radio"),vn=Ed(Vd(Ad,{CheckNormal:G.CheckNormal,Checked:G.CheckChecked})),{componentName:_n,create:Td}=U("radio-group"),kn=Td({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"}},emits:["change","update:modelValue"],setup(e,{emit:o,slots:l}){const n=a=>o("update:modelValue",a);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:n}),t.watch(()=>e.modelValue,a=>o("change",a)),()=>t.h("view",{class:`${_n} ${_n}--${e.direction}`},l.default?.())}});function el(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(Kt(e,r)===l)return a}else if(n==="item"){if(Fe(l,r))return a}else if(Ct(e,r)===l)return a}return-1}function Kt(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function Ct(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function $d(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function Dd(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}let Id=class{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);let a=Mt(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(De(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}};function qd(){const e=t.getCurrentInstance();return new Id(e.proxy)}const tl={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},Md={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"}};function zd(e,o,l,n,a){return{props:{...de,...fe,...tl,...Md,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Boolean,Object],default:""}},emits:["change","update:modelValue"],setup(r,s){const i=Ie(t.computed(()=>r.readonly)),c=Ne(t.computed(()=>r.disabled)),{emitEvent:d}=Be({componentName:e,get validate(){return!c.value||!i.value}},r.prop??s.attrs.name),m=qd(),f=t.ref([]);t.watch([()=>r.source,()=>r.params],async([g,u])=>{g&&(f.value=await m.load("radio",g,u))},{immediate:!0});let h=t.ref(-1);t.watch([()=>r.modelValue,()=>f.value],async([g,u])=>{h.value=el(r,u,g,r.valueType)},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;if(h.value===-1)return null;const g=f.value[h.value];return Ct(r,g)}),k=g=>{let u=null,p=null;if(f.value.length>0){let b=el(r,f.value,g,"value");h.value=b,b>=0&&(p=f.value[b],r.valueType==="text"?u=Kt(r,p):r.valueType==="item"?u=p:u=Ct(r,p))}else u=g;d("update:modelValue",u),d("change",u,p)},v=()=>{let g=null,u=null;if(f.value.length>0&&h.value!==-1){let p=f.value[h.value];r.valueType==="text"?g=Kt(r,p):r.valueType==="item"?g=p:g=Ct(r,p)}d("update:modelValue",g),d("change",g,u)};if(Te({clear(){h.value!==-1&&(h.value=-1,v())}}),r.source){const g=()=>{const u=[],p=ke(r,tl);return f.value.forEach((b,S)=>{const B=Kt(r,b),E=Ct(r,b),I=$d(r,b);let V={...p,label:E,disabled:I};const C=Dd(r,b,S);V={...V,...C},c.value&&(V.disabled=!0),i.value&&(V.readonly=!0);const w={};s.slots.icon&&(w.icon=s.slots.icon),s.slots.checkedIcon&&(w.checkedIcon=s.slots.checkedIcon),w.default=()=>B;let q=t.h(a,V,w);u.push(q)}),u};return()=>{const u=g(),p={class:`${e}`,direction:r.direction,textPosition:r.textPosition,modelValue:y,["onUpdate:modelValue"]:k},b=t.h(n,p,{default:()=>u}),S={default:()=>b};if(s.slots.default){const I=s.slots.default();S.label=()=>I}if(s.slots.prepend){const I=s.slots.prepend();S.prepend=()=>I}if(s.slots.append){const I=s.slots.append();S.append=()=>I}const B=ke(r,fe,de);return t.h(l,B,S)}}else return()=>{const g=s.slots.options?.()??[];return t.h(n,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,modelValue:y,["update:modelValue"]:k},{default:()=>g})}}}}const{componentName:xd,create:Pd,scope:Ld}=U("radio-item"),Va=Pd(zd(xd,Ld,Ve,kn,vn)),Rd=(e,{CheckNormal:o,Checked:l,Indeterminate:n})=>({props:{modelValue:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},textPosition:{type:String,default:"right"},icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},label:{type:[String,Number,Boolean],default:""},indeterminate:{type:Boolean,default:!1},shape:{type:String,default:"round"}},emits:["change","update:modelValue"],setup(a,{emit:r,slots:s}){const i=t.inject("parent",null),c=t.reactive({partialSelect:a.indeterminate});t.watch(()=>a.indeterminate,b=>{c.partialSelect=b});const d=t.computed(()=>!!i),m=t.computed(()=>d.value?i.value.value.includes(a.label):!!a.modelValue),f=t.computed(()=>d.value?i.position:a.textPosition),h=t.computed(()=>a.disabled?"fox-checkbox__icon--disable":c.partialSelect?"fox-checkbox__icon--indeterminate":m.value?"fox-checkbox__icon":"fox-checkbox__icon--unchecked");let y="";const k=(b,S)=>{y="click",r("update:modelValue",b),r("change",b,S)};t.watch(()=>a.modelValue,b=>{y=="click"?y="":r("change",b)});const v=()=>{if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const b=se(a.iconSize),S=a.indeterminateIcon??n;return t.h(S,{width:b,height:b,class:h.value})}}else if(m.value){if(s.checkedIcon)return s.checkedIcon();{const b=se(a.iconSize),S=a.checkedIcon??l;return t.h(S,{width:b,height:b,class:h.value})}}else{if(s.icon)return s.icon();{const b=se(a.iconSize),S=a.icon??o;return t.h(S,{width:b,height:b,class:h.value})}}},g=()=>t.h("view",{class:`${e}__label ${a.disabled?`${e}__label--disabled`:""}`},s.default?.()),u=()=>t.h("view",{class:`${e}__button ${m.value&&`${e}__button--active`} ${a.disabled?`${e}__button--disabled`:""}`},s.default?.()),p=b=>{if(!(a.disabled||a.readonly)){if(m.value&&c.partialSelect){c.partialSelect=!1,k(m.value,s.default?.()[0].children);return}if(k(!m.value,s.default?.()[0].children),d.value){const S=i.value.value,B=i.max.value,{label:E}=a,I=S.indexOf(E);I>-1?S.splice(I,1):I<=-1&&(S.length<B||!B)&&S.push(E),i.updateValue(S)}}};return t.onMounted(()=>{d.value&&i.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{d.value&&i.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${a.shape} ${f.value==="left"?`${e}--reverse`:""}`,onClick:p},[a.shape=="button"?u():[v(),g()]])}}),{componentName:Od,create:Fd}=U("checkbox"),bn=Fd(Rd(Od,{CheckNormal:G.CheckNormal,Checked:G.Checked,Indeterminate:G.CheckDisabled})),{create:Ud,componentName:ol}=U("checkbox-group"),Sn=Ud({props:{modelValue:{type:Array,default:()=>[]},textPosition:{type:String,default:"right"},direction:{type:String,default:"vertical"},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:o,emit:l}){const n=t.reactive({children:[]}),a=d=>{d.proxy&&n.children.push(d.proxy)},r=d=>{d.proxy&&(n.children=n.children.filter(m=>m!==d.proxy))},s=d=>{l("update:modelValue",d),l("change",d)},i=d=>{const m=[];d&&n.children.forEach(f=>{f?.disabled||m.push(f?.label)}),l("update:modelValue",m)},c=()=>{const d=n.children.filter(m=>m?.disabled?!1:!e.modelValue.includes(m.label)).map(m=>m.label);l("update:modelValue",d)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:a,unlink:r}),t.watch(()=>e.modelValue,d=>{l("change",d)}),Te({toggleAll:i,toggleReverse:c}),()=>t.h("view",{class:`${ol} ${ol}--${e.direction}`},o.default?.())}});function nl(e,o,l,n="value"){for(let a=0;a<o.length;a++){let r=o[a];if(n==="text"){if(en(e,r)===l)return a}else if(n==="item"){if(Fe(l,r))return a}else if(Ht(e,r)===l)return a}return-1}function en(e,o){return typeof e.textKey=="string"&&e.textKey.length>0?o[e.textKey]:o.text}function Ht(e,o){return typeof e.valueKey=="string"&&e.valueKey.length>0?o[e.valueKey]:o.value}function Kd(e,o){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?o[e.disabledKey]:o.disabled??null}function Hd(e,o,l){return typeof e.itemOptions=="function"?e.itemOptions(o,l):e.itemOptions}class jd{proxy;constructor(o){this.proxy=o}async load(o,l,n){if(Array.isArray(l))return l;if(typeof l=="function")return await l(n);let a=Mt(this.proxy,o);return a===null?(console.error(`${o} component not found api function`),[]):(De(n)&&t.isReactive(n)&&(n=t.toRaw(n)),await a(l,n))}}function Wd(){const e=t.getCurrentInstance();return new jd(e.proxy)}const Yd={max:{type:Number,default:0},textPosition:{type:String,default:"right"},direction:{type:String,default:"vertical"}},ll={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}};function Xd(e,o,l,n,a){return{props:{...Yd,...ll,...de,...fe,source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Array,String],default:[]}},emits:["change","update:modelValue"],setup(r,s){const i=Ne(t.computed(()=>r.disabled)),c=Ne(t.computed(()=>r.readonly)),{emitEvent:d}=Be({componentName:e,get validate(){return!i.value||!c.value}},r.prop??s.attrs.name),m=Wd(),f=t.ref([]);t.watch([()=>r.source,()=>r.params],async([g,u])=>{g&&(f.value=await m.load("checkbox",g,u))},{immediate:!0});const h=t.ref([]);t.watch([()=>r.modelValue,()=>f.value],async([g,u])=>{const p=[];Array.isArray(g)&&g.forEach(b=>{let S=nl(r,u,b,r.valueType);S!==-1&&p.push(S)}),!Fe(p,h.value)&&(h.value=p)},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;let g=[];return h.value.forEach(u=>{let p=f.value[u];g.push(Ht(r,p))}),g}),k=g=>{let u=[],p=[];if(f.value.length>0){const b=[];Array.isArray(g)&&g.forEach(S=>{let B=nl(r,f.value,S,"value");B!==-1&&b.push(B);const E=f.value[B];p.push(E),r.valueType==="text"?u.push(en(r,E)):r.valueType==="item"?u.push(E):u.push(Ht(r,E))}),h.value=b}else u=g;d("update:modelValue",u),d("change",u,p)},v=t.ref();if(Te({toggleAll:g=>{v.value.toggleAll(g)},toggleReverse:()=>{v.value.toggleReverse()}}),r.source){const g=()=>{const u=[],p=ke(r,ll);return f.value.forEach((b,S)=>{const B=en(r,b),E=Ht(r,b),I=Kd(r,b);let V={...p,label:E,disabled:I};const C=Hd(r,b,S);V={...V,...C},i.value&&(V.disabled=!0),c.value&&(V.readonly=!0);const w={};s.slots.icon&&(w.icon=s.slots.icon),s.slots.checkedIcon&&(w.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(w.indeterminateIcon=s.slots.indeterminateIcon),w.default=()=>B;let q=t.h(a,V,w);u.push(q)}),u};return()=>{const u=g(),p={class:`${e}`,ref:v,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:y.value,["onUpdate:modelValue"]:k},b=t.h(n,p,{default:()=>u}),S={default:()=>b};if(s.slots.default){const I=s.slots.default();S.label=()=>I}if(s.slots.prepend){const I=s.slots.prepend();S.prepend=()=>I}if(s.slots.append){const I=s.slots.append();S.append=()=>I}const B=ke(r,fe,de);return t.h(l,B,S)}}else return()=>{const g=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:v,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:y,["onUpdate:modelValue"]:k},{default:()=>g})}}}}const{componentName:Qd,create:Gd,scope:Zd}=U("checkbox-item"),Aa=Gd(Xd(Qd,Zd,Ve,Sn,bn)),tn={modelValue:{type:[String,Number,Boolean],default:!1},disable:{type:Boolean,default:!1},activeColor:{type:String,default:""},inactiveColor:{type:String,default:""},activeText:{type:String,default:""},inactiveText:{type:String,default:""},activeValue:{type:[String,Number,Boolean],default:!0},inactiveValue:{type:[String,Number,Boolean],default:!1},loading:{type:Boolean,default:!1},name:{type:String,default:"loading1"},size:{type:[String,Number],default:"12px"},color:{type:String,default:""}},{componentName:Jd,create:_d}=U("switch"),ef=_d({components:{Loading1:G.Loading1},props:{...tn},emits:["change","update:modelValue","update:loading"],setup(e,{emit:o}){const l=t.computed(()=>e.modelValue===e.activeValue),n=t.computed(()=>{const i=Jd;return{[i]:!0,[l.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-disable`]:e.disable,[`${i}-base`]:!0}}),a=t.computed(()=>({backgroundColor:l.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disable||e.loading)return;r="click";const c=l.value?e.inactiveValue:e.activeValue;o("update:modelValue",c),o("change",c,i)};return t.watch(()=>e.modelValue,i=>{r=="click"?r="":o("change",i)}),{classes:n,style:a,isActive:l,onClick:s}}}),tf={class:"fox-switch-button"};function of(e,o,l,n,a,r){const s=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",tf,[e.loading?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(s,{name:"loading",color:e.activeColor},null,8,["color"])]):t.createCommentVNode("",!0),e.activeText?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label open"},t.toDisplayString(e.activeText),513),[[t.vShow,e.isActive]]),t.withDirectives(t.createElementVNode("view",{class:"fox-switch-label close"},t.toDisplayString(e.inactiveText),513),[[t.vShow,!e.isActive]])],64)):t.createCommentVNode("",!0)])],6)}const Cn=W(ef,[["render",of]]);function nf(e,o,l,n){return{props:{...de,...fe,...tn},emits:["change","update:modelValue"],setup(a,r){const s=Ne(t.computed(()=>a.disabled)),i=Ie(t.computed(()=>a.readonly)),{emitEvent:c}=Be({componentName:e,get validate(){return!s.value&&!i.value}},a.prop??r.attrs.name),d=e,m=ze(a,"modelValue"),f=h=>{m.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const y={...ke(a,tn),disabled:s.value,readonly:i.value,value:m.value,["onUpdate:modelValue"]:f},k=[],v=t.h(n,y);k.push(v);const g={default:()=>k};if(r.slots.default){const b=r.slots.default();g.label=()=>b}const u=ke(a,fe,de);return u["content-class"]=d,t.h(l,u,g)}}}}const{componentName:lf,create:af,scope:rf}=U("switch-item"),Ea=af(nf(lf,rf,Ve,Cn));function sf(e,o,l,n){return{props:{...de,...fe,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur"],setup(a,r){const{emitEvent:s}=Be({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"]},a.prop??r.attrs.name),{toLocaleRefs:i}=ie.useFoxI18n(o),c=i(a,["placeholder"]),d=Ne(t.computed(()=>a.disabled)),m=Ie(t.computed(()=>a.readonly)),f=ze(a,"modelValue"),h=t.computed(()=>({[`${e}`]:!0,[`${e}__disabled`]:d.value,[`${e}__placeholder`]:!d.value&&Ce(f.value)})),y=Ee(t.computed(()=>a.textAlign),"textAlign"),k=t.computed(()=>({textAlign:y.value??"right"})),v=t.computed(()=>Ce(f.value)?c.placeholder.value:f.value),g=()=>{s("focus",f.value)},u=()=>{s("blur",f.value)},p=t.computed(()=>({[`${e}__append`]:!0})),b=t.computed(()=>pe(a.unit)>0),S=I=>{d.value==!0||m.value==!0||s("click")},B=t.computed(()=>a.icon??l),E=t.computed(()=>({action:!0}));return()=>{const I={tabIndex:0,class:h.value,style:k.value,innerHTML:v.value,onFocus:g,onBlur:u,onClick:S},V=[],C=t.h("view",I);V.push(C);const w=[],q=se(a.iconSize);let L=r.slots.icon;if(!L){const j={width:q,height:q,class:["action-icon"]};L=t.h(B.value,j)}const M={class:E.value,onClick:S},A=t.h("view",M,{default:()=>[L]});if(w.push(A),b.value){const j=t.h("view",{},[a.unit]);w.push(j)}const T={class:p.value},z=t.h("view",T,{default:()=>w});V.push(z);const $={default:()=>V};if(r.slots.default){const j=r.slots.default();$.label=()=>j}if(r.slots.prepend){const j=r.slots.prepend();$.prepend=()=>j}if(r.slots.append){const j=r.slots.append();$.append=()=>j}const x=ke(a,fe,de);return t.h(n,x,$)}}}}const{componentName:cf,create:uf,scope:df}=U("link-item"),Ta=uf(sf(cf,df,G.ArrowRight,Ve));function ff(e,o){return{props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(l,{slots:n}){return Ml(l.name,l.config),()=>typeof n.default=="function"?n.default():null}}}const{componentName:Sw,create:mf,scope:Cw}=U("domain-provider"),$a=mf(ff()),{componentName:pf,create:hf}=U("button"),gf=hf({components:{Loading:G.Loading},props:{color:String,shape:{type:String,default:"round"},plain:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},type:{type:String,default:"default"},size:{type:String,default:"normal"},block:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:o,slots:l}){const{type:n,size:a,shape:r,disabled:s,loading:i,color:c,plain:d,block:m}=t.toRefs(e),f=k=>{!i.value&&!s.value&&o("click",k)},h=t.computed(()=>{const k=pf;return{[k]:!0,[`${k}--${n.value}`]:n.value,[`${k}--${a.value}`]:a.value,[`${k}--${r.value}`]:r.value,[`${k}--plain`]:d.value,[`${k}--block`]:m.value,[`${k}--disabled`]:s.value,[`${k}--loading`]:i.value}}),y=t.computed(()=>{const k={};return c?.value&&(d.value?(k.color=c.value,k.background="#fff",c.value?.includes("gradient")||(k.borderColor=c.value)):(k.color="#fff",k.background=c.value)),k});return{handleClick:f,classes:h,getStyle:y}}}),yf={class:"fox-button__wrap"};function vf(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:o[0]||(o[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",yf,[e.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading"})):t.createCommentVNode("",!0),e.$slots.icon&&!e.loading?t.renderSlot(e.$slots,"icon",{key:1}):t.createCommentVNode("",!0),e.$slots.default?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass({"fox-button__text":e.$slots.icon||e.loading})},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)])],6)}const Pe=W(gf,[["render",vf]]),{componentName:kf,create:bf}=U("cell"),Sf=bf({components:{Right:G.Right},props:{title:{type:String,default:""},subTitle:{type:String,default:""},desc:{type:String,default:""},descTextAlign:{type:String,default:"right"},isLink:{type:Boolean,default:!1},roundRadius:{type:[String,Number],default:""},url:{type:String,default:""},center:{type:Boolean,default:!1},size:{type:String,default:""}},emits:["click"],setup(e,{emit:o}){const l=t.computed(()=>{const r=kf;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),n=t.computed(()=>({borderRadius:le(e.roundRadius)}));return{handleClick:r=>{o("click",r)},classes:l,baseStyle:n}}}),Cf={key:0,class:"fox-cell__icon"},wf={key:1,class:"fox-cell__title"},Nf={class:"title"},Bf={class:"fox-cell__title-desc"};function Vf(e,o,l,n,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:o[0]||(o[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",Cf,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",wf,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Nf,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Bf,t.toDisplayString(e.subTitle),1)],64)):t.renderSlot(e.$slots,"title",{key:1},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),7)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"link",{},()=>[e.isLink?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const Da=W(Sf,[["render",Vf]]),{componentName:Af,create:Ef}=U("cell-group"),Tf=Ef({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Af]:!0}))}}}),$f={key:1,class:"fox-cell-group__title"},Df={key:3,class:"fox-cell-group__desc"},If={class:"fox-cell-group__wrap"};function qf(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):e.title?(t.openBlock(),t.createElementBlock("view",$f,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.$slots.desc?t.renderSlot(e.$slots,"desc",{key:2}):e.desc?(t.openBlock(),t.createElementBlock("view",Df,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",If,[t.renderSlot(e.$slots,"default")])],2)}const Ia=W(Tf,[["render",qf]]),{componentName:Mf,create:zf}=U("image"),xf=zf({props:{src:String,fit:{type:String,default:"fill"},position:{type:String,default:"center"},alt:{type:String,default:""},width:{type:String,default:"center"},height:{type:String,default:""},round:{type:Boolean,default:!1},radius:[String,Number],showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},lazyLoad:{type:Boolean,default:!1}},components:{Image:G.Image,ImageError:G.ImageError},emits:["click","load","error"],setup(e,{emit:o}){const l=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),n=t.computed(()=>{const y=Mf;return{[y]:!0,[`${y}-round`]:e.round}}),a=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const y={threshold:[0],rootMargin:"0px"};a.value=new IntersectionObserver(k=>{k.forEach(v=>{v.isIntersecting&&(r.value=!0,a.value.disconnect())})},y),s.value&&a.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{a.value&&a.value.disconnect()});const c=t.computed(()=>{let y={};return e.width&&(y.width=le(e.width)),e.height&&(y.height=le(e.height)),e.radius!==void 0&&e.radius!==null&&(y.overflow="hidden",y.borderRadius=le(e.radius)),y}),d=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,y=>{l.isError=!1,l.loading=!0});const m=()=>{l.loading=!1,o("load")},f=()=>{l.isError=!0,l.loading=!1,o("error")},h=y=>{o("click",y)};return{...t.toRefs(l),imageClick:h,classes:n,styles:d,stylebox:c,error:f,load:m,show:r,imgRef:s}}}),Pf=["src","date-src","alt"],Lf={key:0,class:"fox-img-loading"},Rf={key:1,class:"fox-img-error"};function Of(e,o,l,n,a,r){const s=t.resolveComponent("Image"),i=t.resolveComponent("ImageError");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.stylebox),onClick:o[2]||(o[2]=(...c)=>e.imageClick&&e.imageClick(...c))},[t.createElementVNode("img",{ref:"imgRef",class:"fox-img",src:e.lazyLoad?e.show?e.src:void 0:e.src,"date-src":e.lazyLoad?e.show?void 0:e.src:void 0,alt:e.alt,onLoad:o[0]||(o[0]=(...c)=>e.load&&e.load(...c)),onError:o[1]||(o[1]=(...c)=>e.error&&e.error(...c)),style:t.normalizeStyle(e.styles)},null,44,Pf),e.loading?(t.openBlock(),t.createElementBlock("div",Lf,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,width:"16px",height:"20px",name:"image"})),t.renderSlot(e.$slots,"loading")])):t.createCommentVNode("",!0),e.isError&&!e.loading?(t.openBlock(),t.createElementBlock("div",Rf,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,width:"16px",height:"20px",name:"imageError"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}const qa=W(xf,[["render",Of]]),{create:Ff}=U("layout"),Ma=Ff({}),{componentName:Uf,create:Kf}=U("col"),Hf=Kf({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const o=Uf,l=t.inject("gutter"),n=t.computed(()=>({[o]:!0,[`${o}-gutter`]:l,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),a=t.computed(()=>({paddingLeft:l/2+"px",paddingRight:l/2+"px"}));return{classes:n,style:a}}});function jf(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const za=W(Hf,[["render",jf]]),{componentName:Wf,create:Yf}=U("row"),Xf=Yf({props:{type:{type:String,default:""},gutter:{type:[String,Number],default:""},justify:{type:String,default:"start"},align:{type:String,default:"flex-start"},flexWrap:{type:String,default:"nowrap"}},setup(e){const o=Wf;t.provide("gutter",e.gutter);const l=(a,r)=>a?r?`fox-row-${a}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
|
|
6
|
+
${l("",e.type)}
|
|
7
|
+
${l("justify",e.justify)}
|
|
8
|
+
${l("align",e.align)}
|
|
9
|
+
${l("flex",e.flexWrap)}
|
|
10
|
+
${o}
|
|
21
11
|
`:`
|
|
22
|
-
${
|
|
23
|
-
`)}}});function Od(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const ea=K(Ld,[["render",Od]]),{componentName:Uo,create:Fd}=O("sticky"),ta=Fd({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:2e3}},emits:["change","scroll"],setup(e,{emit:n,slots:o}){const l=t.ref(),r=t.reactive({width:0,height:0,fixed:!1,transform:0}),i=t.computed(()=>{const{fixed:k,width:b,height:h}=r;if(k)return{width:`${b}px`,height:`${h}px`}}),a=t.computed(()=>{if(!r.fixed)return;const k={width:`${r.width}px`,height:`${r.height}px`,[e.position]:`${s.value}px`,zIndex:+e.zIndex};return r.transform&&(k.transform=`translate3d(0, ${r.transform}px, 0)`),k}),s=t.computed(()=>e.position==="top"?e.top:e.bottom),c=k=>{const b=t.unref(k);if(!b)return!1;const h=window.getComputedStyle(b),S=h.display==="none",u=b.offsetParent===null&&h.position!=="fixed";return S||u},m=()=>!(!l.value||c(l)),d=k=>Math.max(0,"scrollTop"in k?k.scrollTop:k.pageYOffset),f=()=>t.h("view",{style:a.value,class:r.fixed?`${Uo} fox-sticky--fixed`:Uo},o.default?.()),g=()=>{if(!m())return;const{container:k,position:b}=e,h=d(window),S=be(l);if((S.width||S.height)&&(r.width=S.width,r.height=S.height),b==="top")if(k){const u=be(k),p=u.bottom-+s.value-r.height;r.fixed=+s.value>S.top&&u.bottom>0,r.transform=p<0?p:0}else r.fixed=s.value>S.top;else if(b==="bottom"){const u=document.documentElement.clientHeight;if(k){const p=be(k),w=u-p.top-+s.value-r.height;r.fixed=u-+s.value<S.bottom&&u>p.top,r.transform=w<0?-w:0}else r.fixed=u-+s.value<S.bottom}n("scroll",{top:h,fixed:r.fixed})};return t.watch(()=>r.fixed,k=>{n("change",k)}),t.onMounted(()=>{window.addEventListener("scroll",g),g()}),t.onUnmounted(()=>{window.removeEventListener("scroll",g)}),()=>t.h("view",{style:i.value,ref:l},[f()])}}),{componentName:Ud,create:Hd}=O("divider"),Kd=Hd({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:t.computed(()=>{const l=Ud;let r={[l]:!0},i={};return e.direction==="horizontal"?i={...r,[`${l}-center`]:n.slots.default,[`${l}-left`]:e.contentPosition==="left",[`${l}-right`]:e.contentPosition==="right",[`${l}-dashed`]:e.dashed,[`${l}-hairline`]:e.hairline}:i={...r,[`${l}-vertical`]:e.direction==="vertical"},i})}}});function jd(e,n,o,l,r,i){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 na=K(Kd,[["render",jd]]);function Wd(e,n){const o=[],l=r=>{Array.isArray(r)&&r.forEach(i=>{if(t.isVNode(i)){if(n){if(i.type&&i.type.name===n){o.push(i);return}}else o.push(i);i.component?.subTree&&l(i.component.subTree.children),i.children&&l(i.children)}})};return l(e),o}function Yd(e,n,o){const l=Wd(e.subTree.children,o);n.sort((r,i)=>l.indexOf(r.vnode)-l.indexOf(i.vnode))}function Xd(e,n){const o=t.shallowReactive([]),l=t.getCurrentInstance(),r=s=>{s.proxy&&(o.push(t.markRaw(s)),Yd(l,o,n))},i=s=>{o.splice(o.indexOf(t.markRaw(s)),1)},a=Object.assign;return s=>(t.provide(e,a({add:r,remove:i,internalChildren:o},s)),{internalChildren:o})}const{componentName:Ho}=O("grid"),oa=Symbol("grid"),Qd={columnNum:{type:[Number,String],default:4},iconSize:{type:[Number,String],default:28},iconColor:{type:String},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}},Gd={props:Qd,setup(e,{slots:n}){Xd(oa,`${Ho}-item`)({props:e});const o=t.computed(()=>{const r=Ho;return{[r]:!0,[`${r}--border`]:e.border&&!e.gutter}}),l=t.computed(()=>{const r={};return e.gutter&&(r.paddingLeft=Z(e.gutter)),r});return()=>t.h("view",{class:o.value,style:l.value},n.default?.())}},{create:Zd}=O("grid"),la=Zd(Gd);function Jd(e){const n=t.getCurrentInstance();if(n&&n.proxy){let o=n.proxy;Object.assign(o,e)}}function _d(e){const n=t.inject(e,null);if(n){const o=t.getCurrentInstance(),{add:l,remove:r,internalChildren:i}=n;l(o),t.onUnmounted(()=>r(o));const a=t.computed(()=>i.indexOf(o));return{parent:n,index:a}}return{parent:null,index:t.ref(-1)}}const{create:ef,componentName:Ko}=O("grid-item"),tf=ef({props:{text:{type:String},icon:{type:String},iconSize:{type:[Number,String]},iconColor:{type:String}},emits:["click"],setup(e,{emit:n}){const o=_d(oa);if(!o.parent)return;const l=o.index,r=o.parent.props,i=t.computed(()=>({[Ko]:!0})),a=t.computed(()=>{const d={flexBasis:`${100/+r.columnNum}%`};return r.square?d.paddingTop=`${100/+r.columnNum}%`:r.gutter&&(d.paddingRight=Z(r.gutter),l.value>=r.columnNum&&(d.marginTop=Z(r.gutter))),d}),s=t.computed(()=>{const d=`${Ko}__content`;return{[`${d}`]:!0,[`${d}--border`]:r.border,[`${d}--surround`]:r.border&&r.gutter,[`${d}--center`]:r.center,[`${d}--square`]:r.square,[`${d}--reverse`]:r.reverse,[`${d}--${r.direction}`]:!!r.direction,[`${d}--clickable`]:r.clickable}}),c=t.computed(()=>({name:e.icon,size:e.iconSize||r.iconSize,color:e.iconColor||r.iconColor}));return{rootClass:i,rootStyle:a,contentClass:s,iconProps:c,handleClick:d=>{n("click",d)}}}}),nf={key:3,class:"fox-grid-item__text"};function of(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.$slots.icon?t.renderSlot(e.$slots,"icon",{key:0}):(t.openBlock(),t.createBlock(a,{key:1,name:e.iconProps.name,size:e.iconProps.size,color:e.iconProps.color},null,8,["name","size","color"])),e.$slots.text?t.renderSlot(e.$slots,"text",{key:2}):(t.openBlock(),t.createElementBlock("view",nf,t.toDisplayString(e.text),1))],64))],2)],6)}const aa=K(tf,[["render",of]]),{componentName:lf,create:af}=O("navbar"),rf=af({props:{leftShow:{type:Boolean,default:!0},title:{type:String,default:""},titIcon:{type:String,default:""},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:n}){const{border:o,fixed:l,safeAreaInsetTop:r,placeholder:i,zIndex:a}=t.toRefs(e),s=t.ref(null),c=t.ref(null);let m=t.ref(0);const d=t.computed(()=>{const S=lf;return{[S]:!0,[`${S}--border`]:o.value,[`${S}--fixed`]:l.value,[`${S}--safe-area-inset-top`]:r.value}}),f=t.computed(()=>({zIndex:a.value}));t.onMounted(()=>{l.value&&i.value&&t.nextTick(()=>{m=c?.value?.getBoundingClientRect().height,s.value.style.height=m+"px"})});function g(){n("on-click-back")}function k(){n("on-click-title")}function b(){n("on-click-icon")}function h(){n("on-click-right")}return{navBarWrap:s,navBarHtml:c,classes:d,styles:f,handleLeft:g,handleCenter:k,handleCenterIcon:b,handleRight:h}}}),sf={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},cf={key:1,class:"fox-navbar__text"},uf={class:"fox-navbar__title"},df={key:0,class:"fox-navbar__text"},ff={key:1,class:"fox-navbar__text"},mf={class:"fox-navbar__title"},pf={key:0,class:"fox-navbar__text"};function hf(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",sf,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:n[0]||(n[0]=(...s)=>e.handleLeft&&e.handleLeft(...s))},[e.leftShow?(t.openBlock(),t.createBlock(a,{key:0,color:"#979797",name:"left"})):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",cf,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",uf,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[1]||(n[1]=(...s)=>e.handleCenter&&e.handleCenter(...s))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titIcon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon",name:e.titIcon,onClick:e.handleCenterIcon},null,8,["name","onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[2]||(n[2]=(...s)=>e.handleRight&&e.handleRight(...s))},[e.desc?(t.openBlock(),t.createElementBlock("view",df,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6)],512)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:n[3]||(n[3]=(...s)=>e.handleLeft&&e.handleLeft(...s))},[e.leftShow?(t.openBlock(),t.createBlock(a,{key:0,color:"#979797",name:"left"})):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",ff,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",mf,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[4]||(n[4]=(...s)=>e.handleCenter&&e.handleCenter(...s))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titIcon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon",name:e.titIcon,onClick:e.handleCenterIcon},null,8,["name","onClick"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[5]||(n[5]=(...s)=>e.handleRight&&e.handleRight(...s))},[e.desc?(t.openBlock(),t.createElementBlock("view",pf,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const ra=K(rf,[["render",hf]]),gf=(e,n)=>({props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{default:"",type:String},activeText:{default:"",type:String},unActiveText:{default:"",type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(o,{emit:l}){const{toLocaleRefs:r}=_.useFoxI18n(n),i=r(o,["activeText","unActiveText"]),a=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),s=t.ref(-1);return{...i,classes:a,updateValue:(d=!o.visible)=>{l("update:visible",d)},selected:(d,f)=>{l("selected",{item:d,event:f}),s.value=d.id},current:s}}}),{componentName:yf,create:vf,scope:kf}=O("fixednav"),Sf=vf(gf(yf,kf)),bf={class:"fox-fixednav__list"},Cf=["onClick"],wf=["src"],Nf={class:"span"},Bf={key:0,class:"b"},Vf={class:"text"};function Af(e,n,o,l,r,i){const a=t.resolveComponent("fox-overlay"),s=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(a,{key:0,visible:e.visible,"z-index":200,onClick:n[0]||(n[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",bf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,m)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:d=>e.selected(c,d),key:c.id||m},[t.createElementVNode("img",{src:c.icon},null,8,wf),t.createElementVNode("view",Nf,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Bf,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Cf))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(s,{name:"left",color:"#fff"}),t.createElementVNode("view",Vf,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const sa=K(Sf,[["render",Af]]),{componentName:Ef,create:Tf}=O("menu"),$f=Tf({props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:n,slots:o}){const l=t.ref(),r=t.ref(0),i=t.ref(!1),a=()=>{const S=t.reactive([]),u=t.reactive([]);return{children:S,linkChildren:w=>{const y=v=>{v.proxy&&(u.push(v),S.push(v.proxy))};t.provide("menuParent",Object.assign({link:y,children:S,internalChildren:u},w))}}},{children:s,linkChildren:c}=a(),m=t.computed(()=>s.some(S=>S.state.showWrapper)),d=t.computed(()=>({[Ef]:!0,"scroll-fixed":i.value})),f=()=>{if(l.value){const S=be(l);e.direction==="down"?r.value=S.bottom:r.value=window.innerHeight-S.top}};c({props:e,offset:r});const g=S=>{s.forEach((u,p)=>{p===S?(f(),u.toggle()):u.state.showPopup&&u.toggle(!1,{immediate:!0})})},k=S=>Math.max(0,"scrollTop"in S?S.scrollTop:S.pageYOffset),b=()=>{const{scrollFixed:S}=e,u=k(window);i.value=u>(typeof S=="boolean"?30:Number(S))},h=S=>{let u="";const{titleClass:p}=e;return S&&(u+="active"),p&&(u+=` ${p}`),u};return t.onMounted(()=>{const{scrollFixed:S}=e;S&&window.addEventListener("scroll",b)}),t.onUnmounted(()=>{const{scrollFixed:S}=e;S&&window.removeEventListener("scroll",b)}),{toggleItem:g,children:s,opened:m,classes:d,barRef:l,getClasses:h}}}),Df=["onClick"],If={class:"fox-menu__title-text"};function qf(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");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,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-menu__item",{disabled:s.disabled,active:s.state.showPopup}]),onClick:m=>!s.disabled&&e.toggleItem(c),style:t.normalizeStyle({color:s.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(s.state.showPopup)])},[t.createElementVNode("view",If,t.toDisplayString(s.renderTitle()),1),t.createVNode(a,{name:s.titleIcon||(e.direction==="up"?"arrow-up":"down-arrow"),size:"10",class:"fox-menu__title-icon"},null,8,["name"])],2)],14,Df))),128))],2),t.renderSlot(e.$slots,"default")],2)}const ia=K($f,[["render",qf]]),{componentName:zf,create:Mf}=O("menu-item"),Pf=Mf({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},titleIcon:String,activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[re.name]:re,[he.name]:he},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:o}){const l=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),r=()=>{const k=t.inject("menuParent",null);if(k){const b=t.getCurrentInstance(),{link:h}=k;return h(b),{parent:k}}},{parent:i}=r(),a=t.computed(()=>({[zf]:!0})),s=t.computed(()=>{const k={height:i.offset.value+"px"};return i.props.direction==="down"?k:{...k,top:"auto"}});return{classes:a,placeholderElementStyle:s,renderTitle:()=>{if(e.title)return e.title;const k=e.options?.find(b=>b.value===e.modelValue);return k?k.text:""},state:l,parent:i,toggle:(k=!l.showPopup,b={})=>{k!==l.showPopup&&(l.showPopup=k,l.isShowPlaceholderElement=k,k&&(l.showWrapper=!0,n("open")))},onClick:k=>{l.showPopup=!1,l.isShowPlaceholderElement=!1,k.value!==e.modelValue&&(n("update:modelValue",k.value),n("change",k.value))},handleClose:()=>{l.showWrapper=!1,l.isShowPlaceholderElement=!1,n("close")},handleClickOutside:()=>{l.showPopup=!1,n("close")}}}}),xf={class:"fox-menu-item__content fox-menu-item__overflow"},Rf=["onClick"];function Lf(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon"),s=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:n[0]||(n[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["placeholder-element",{up:e.parent.props.direction==="up"}]),style:t.normalizeStyle(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),t.createVNode(s,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":n[1]||(n[1]=c=>e.state.showPopup=c),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop",overlayClass:"fox-menu__overlay",overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,isWrapTeleport:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:t.withCtx(()=>[t.createElementVNode("view",xf,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:d=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createBlock(a,{key:0,class:t.normalizeClass({activeTitleClass:c.value===e.modelValue,inactiveTitleClass:c.value!==e.modelValue}),name:e.optionIcon,color:e.parent.props.activeColor},null,8,["class","name","color"])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass({activeTitleClass:c.value===e.modelValue,inactiveTitleClass:c.value!==e.modelValue}),style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),7)],14,Rf))),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 ca=K(Pf,[["render",Lf]]),{create:Of}=O("tabbar"),Ff=Of({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:String,default:"20px"},deactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,n){function o(r){l.value!==r&&(l.value=r,n.emit("update:modelValue",r),n.emit("change",r,l.children[r]))}let l=t.reactive({children:[],size:e.size,value:e.modelValue,deactiveColor:e.deactiveColor,activeColor:e.activeColor,changeIndex:o});return t.provide("parent",l),t.watch(()=>e.modelValue,r=>{l.value=r}),{changeIndex:o}}});function Uf(e,n,o,l,r,i){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 ua=K(Ff,[["render",Uf]]),{create:Hf}=O("tabbar-item"),Kf=Hf({props:{title:{type:String,default:""},icon:{type:String,default:""},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},classPrefix:{type:String,default:"fox-icon"},dot:{type:Boolean,default:!1},fontClassName:{type:String,default:"foxui-iconfont"}},setup(e,n){const o=t.inject("parent"),l=t.reactive({size:o.size,deactiveColor:o.deactiveColor,activeColor:o.activeColor,value:o.value,index:0}),r=t.getCurrentInstance();r!==null&&(m=>{if(m.proxy){let d=o.children.length;l.index=d;let f=Object.assign(m.proxy,{index:d});o.children.push(f)}})(r);const i=t.computed(()=>l.index===l.value);function a(c){o&&typeof o.changeIndex=="function"&&o.changeIndex(c)}const s=t.computed(()=>o?o.value:null);return t.watch(s,c=>{l.value=c}),{state:l,active:i,change:a}}}),jf={class:"fox-tabbar-item_icon-box"},Wf={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},Yf={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},Xf={key:1,class:"fox-tabbar-item_icon-box_dot"},Qf={key:2},Gf={key:0};function Zf(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:t.normalizeStyle({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:n[0]||(n[0]=s=>e.change(e.state.index))},[t.createElementVNode("view",jf,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",Wf,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",Yf,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",Xf)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",Qf,[t.createVNode(a,{class:"fox-tabbar-item_icon-box_icon",size:e.state.size,name:e.icon,"font-class-name":e.fontClassName,"class-prefix":e.classPrefix},null,8,["size","name","font-class-name","class-prefix"])])):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",Gf,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const da=K(Kf,[["render",Zf]]),{componentName:Jf,create:_f}=O("elevator"),em=_f({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"],setup(e,n){const o=t.ref(null),l=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}),r=t.computed(()=>({[Jf]:!0})),i=t.computed(()=>({transform:`translate3d(0, ${l.scrollY+l.fixedTop}px, 0)`})),a=t.computed(()=>o.value.clientHeight),s=(u,p)=>{const w="data-";return u.getAttribute(w+p)},c=u=>{t.nextTick(()=>{!l.listGroup.includes(u)&&u!=null&&l.listGroup.push(u)})},m=()=>{let u=0;l.listHeight.push(u);for(let p=0;p<l.listGroup.length;p++){let w=l.listGroup[p];u+=w.clientHeight,l.listHeight.push(u)}},d=u=>{!u&&u!==0||(u<0&&(u=0),u>l.listHeight.length-2&&(u=l.listHeight.length-2),l.codeIndex=u,o.value.scrollTo(0,l.listHeight[u]))},f=u=>{l.scrollStart=!0;let p=s(u.target,"index"),w=u.touches[0];l.touchState.y1=w.pageY,l.anchorIndex=+p,l.codeIndex=+p,d(+p)},g=u=>{let p=u.touches[0];l.touchState.y2=p.pageY;let w=(l.touchState.y2-l.touchState.y1)/e.spaceHeight|0;l.codeIndex=l.anchorIndex+w,d(l.codeIndex)},k=()=>{l.scrollStart=!1},b=(u,p)=>{n.emit("click-item",u,p),l.currentData=p,l.currentKey=u},h=u=>{n.emit("click-index",u)},S=u=>{let w=u.target.scrollTop;const y=l.listHeight;l.scrollY=w;for(let v=0;v<y.length-1;v++){let C=y[v],N=y[v+1];if(l.scrollY>=C&&l.scrollY<N){l.currentIndex=v,l.diff=N-l.scrollY;return}}l.currentIndex=y.length-2};return t.onMounted(()=>{o.value.addEventListener("scroll",S)}),Nt({scrollTo:d}),t.watch(()=>l.listGroup.length,()=>{l.listHeight=[],t.nextTick(m)}),t.watch(()=>l.diff,u=>{const p=l.listHeight;let w=u>0&&u<e.titleHeight?u-e.titleHeight:0;l.scrollY+a.value===p[p.length-1]&&w!==0&&(w=0),l.fixedTop!==w&&(l.fixedTop=w)}),{classes:r,...t.toRefs(l),fixedStyle:i,clientHeight:a,setListGroup:c,listview:o,touchStart:f,touchMove:g,touchEnd:k,handleClickItem:b,handleClickIndex:h}}}),tm={class:"fox-elevator__list__item__code"},nm=["onClick"],om=["innerHTML"],lm={class:"fixed-title"},am={class:"fox-elevator__bars__inner"},rm=["data-index","onClick"];function sm(e,n,o,l,r,i){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,a=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:a[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",tm,t.toDisplayString(a[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.list,s=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===s.id&&e.currentKey===a[e.acceptKey]}]),key:s.id,onClick:c=>e.handleClickItem(a[e.acceptKey],s)},[t.renderSlot(e.$slots,"default",{item:s},()=>[t.createElementVNode("span",{innerHTML:s.name},null,8,om)])],10,nm))),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",lm,t.toDisplayString(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):t.createCommentVNode("",!0)],4),e.indexList.length?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__code--current"},t.toDisplayString(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-elevator__bars",onTouchstart:n[0]||(n[0]=(...a)=>e.touchStart&&e.touchStart(...a)),onTouchmove:n[1]||(n[1]=t.withModifiers((...a)=>e.touchMove&&e.touchMove(...a),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...a)=>e.touchEnd&&e.touchEnd(...a))},[t.createElementVNode("view",am,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(a,s)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:a[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":s,key:a[e.acceptKey],onClick:c=>e.handleClickIndex(a[e.acceptKey])},t.toDisplayString(a[e.acceptKey]),11,rm))),128))])],32)],2)}const fa=K(em,[["render",sm]]),{componentName:E1,create:im,scope:cm}=O("pagination"),um=im({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:o}=_.useFoxI18n(cm),l=o(e,["prevText","nextText"]),{modelValue:r,mode:i,showPageSize:a,forceEllipses:s}=t.toRefs(e),c=t.computed(()=>{const{pageCount:g,totalItems:k,itemsPerPage:b}=t.toRefs(e),h=+g.value||Math.ceil(+k.value/+b.value);return Math.max(1,h)}),m=(g,k)=>{g>c.value||g<1||(g!=r.value&&n("update:modelValue",g),k&&n("change",g))},d=(g,k,b=!1)=>({number:g,text:k,active:b}),f=t.computed(()=>{if(i.value=="simple")return;let g=[];const k=c.value,b=+a.value;let h=1,S=k;const u=k>b;u&&(h=Math.max(r.value-Math.floor(b/2),1),S=h+b-1,S>k&&(S=k,h=S-b+1));for(var p=h;p<=S;p++){const w=d(p,p,r.value==p);g.push(w)}if(u&&b>0&&s.value){if(h>1){const w=d(h-1,"...");g.unshift(w)}if(S<k){const w=d(S+1,"...");g.push(w)}}return g});return t.watchEffect(()=>{m(r.value,!1)}),{...l,modelValue:r,select:m,countRef:c,mode:i,pages:f,forceEllipses:s}}}),dm={class:"fox-pagination"},fm={key:0,class:"fox-pagination-contain"},mm=["onClick"],pm={key:1,class:"fox-pagination-contain"},hm={class:"fox-pagination-simple"};function gm(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",dm,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=a=>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",fm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(a,s)=>(t.openBlock(),t.createElementBlock("view",{key:s+"pagination",class:t.normalizeClass(["fox-pagination-item",a.active?"active":""]),onClick:c=>e.select(a.number,!0)},[t.renderSlot(e.$slots,"page",{item:a},()=>[t.createTextVNode(t.toDisplayString(a.text),1)])],10,mm))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",pm,[t.createElementVNode("view",hm,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=a=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const ma=K(um,[["render",gm]]);class ym{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const vm={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},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}},components:{},emits:["update:modelValue","click","change"],setup(e,{emit:n,slots:o}){const l=t.ref(null);let r;t.provide("activeKey",{activeKey:t.computed(()=>e.modelValue)}),t.provide("autoHeight",{autoHeight:t.computed(()=>e.autoHeight)});const i=t.ref([]),a=p=>{let w=p["pane-key"];return typeof w=="string"||typeof w=="number"||(w=p.paneKey,typeof w=="string"||typeof w=="number")?String(w):null},s=p=>{p.forEach((w,y)=>{let v=w.type;if(v=v.name||v,v=="fox-tabpane"){let C=new ym;(w.props?.title||w.props?.["pane-key"]||w.props?.paneKey)&&(C.title=w.props?.title,C.paneKey=a(w.props)||String(y),C.disabled=w.props?.disabled),i.value.push(C)}else{if(w.children==" ")return;s(w.children)}})},c=t.ref(e.modelValue||0),m=p=>{let w=i.value.findIndex(y=>y.paneKey==p);if(i.value.length!=0){if(w==-1)return;c.value=w}},d=(p=o.default?.())=>{i.value=[],p=p?.filter(w=>typeof w.children!="string"),p&&p.length&&s(p),m(e.modelValue)},f=p=>{r=p.fixed};t.watch(()=>o.default?.(),p=>{d(p)});const g=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,p=>{if(m(p),r){let w=be(l.value).top+g(),y=Math.ceil(w-e.top);window.scrollTo({top:y,behavior:"smooth"})}}),t.onMounted(d),t.onActivated(d);const k=t.computed(()=>({transform:e.direction=="horizontal"?`translate3d(-${c.value*100}%, 0, 0)`:`translate3d( 0,-${c.value*100}%, 0)`,transitionDuration:`${e.animatedTime}ms`})),b=t.computed(()=>({background:e.background})),h=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),S=t.computed(()=>({marginLeft:Z(e.titleGutter),marginRight:Z(e.titleGutter)}));return{titles:i,contentStyle:k,tabsNavStyle:b,titleStyle:S,tabsActiveStyle:h,container:l,onStickyScroll:f,...{tabChange:(p,w)=>{n("click",p),!p.disabled&&(c.value=w,n("update:modelValue",p.paneKey),n("change",p))}}}}},{create:km}=O("tabs"),Sm=km(vm),bm=["onClick"],Cm=["onClick"];function wm(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon"),s=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container",id:"container"},[e.sticky?(t.openBlock(),t.createBlock(s,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle)},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,m)=>(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:d=>e.tabChange(c,m),key:c.paneKey},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(a,{color:e.color,name:"joy-smile"},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,bm))),128))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle)},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.titles,(c,m)=>(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:d=>e.tabChange(c,m),key:c.paneKey},[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(a,{color:e.color,name:"joy-smile"},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,Cm))),128))],6)),t.createElementVNode("view",{class:"fox-tabs__content",style:t.normalizeStyle(e.contentStyle)},[t.renderSlot(e.$slots,"default")],4)],2)}const pa=K(Sm,[["render",wm]]),{create:Nm}=O("tabpane"),Bm=Nm({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const o=t.inject("activeKey"),l=t.inject("autoHeight");return{classes:t.computed(()=>({["fox-tabpane"]:!0,inactive:e.paneKey!=o.activeKey.value&&l.autoHeight.value}))}}});function Vm(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const ha=K(Bm,[["render",Vm]]),{componentName:jo,create:Am}=O("indicator"),Em=Am({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:o}=t.toRefs(e);return{classes:t.computed(()=>{const r=jo;return{[r]:!0,[`${r}--block`]:n.value,[`${r}--align__${o.value}`]:n.value&&o.value}}),componentName:jo}}});function Tm(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,a=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},[a===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&a<10?`0${a}`:a),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const ga=K(Em,[["render",Tm]]),{componentName:$m,create:Dm}=O("sidenavbar"),Im=Dm({props:{offset:{type:[String,Number],default:15}},emits:[],setup:(e,n)=>{const o=t.ref(null),l=t.reactive({count:1,observer:null}),r=t.computed(()=>({[$m]:!0})),i=(s,c=1)=>{for(let m=0;m<s.length;m++){let d=s[m];d.children[0].style.paddingLeft=e.offset*c+"px",d.className.includes("fox-sidenavbaritem")||i(Array.from(d.children[1].children),++l.count)}l.count--},a=()=>{let s=o.value.childNodes;s.length&&(s=Array.from(s).filter(c=>c.nodeType!==3).map(c=>c),i(s))};return t.onMounted(()=>{a(),l.observer=new MutationObserver(function(){l.count=1,a()}),l.observer.observe(o.value,{attributes:!1,childList:!0,characterData:!1,subtree:!1})}),{...t.toRefs(l),list:o,classes:r}}}),qm={class:"fox-sidenavbar__content"},zm={class:"fox-sidenavbar__content__list",ref:"list"};function Mm(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",qm,[t.createElementVNode("view",zm,[t.renderSlot(e.$slots,"default")],512)])],2)}const ya=K(Im,[["render",Mm]]),{componentName:Pm,create:xm}=O("sidenavbaritem"),Rm=xm({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[Pm]:!0})),handleClick:()=>{n.emit("click")}})}),Lm=["ikey"],Om={class:"fox-sidenavbaritem__title"};function Fm(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:"fox-sidenavbaritem",onClick:n[0]||(n[0]=t.withModifiers((...a)=>e.handleClick&&e.handleClick(...a),["stop"])),ikey:e.ikey},[t.createElementVNode("span",Om,t.toDisplayString(e.title),1)],8,Lm)}const va=K(Rm,[["render",Fm]]),{componentName:Um,create:Hm}=O("subsidenavbar"),Km=Hm({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},emits:["title-click"],setup:(e,n)=>{const o=t.reactive({direction:""}),l=t.computed(()=>({[Um]:!0})),r=t.computed(()=>({height:o.direction?"0px":"auto"})),i=()=>{n.emit("title-click"),o.direction=o.direction?"":"up"};return t.onMounted(()=>{o.direction=e.open?"":"up"}),{...t.toRefs(o),classes:l,style:r,handleClick:i}}}),jm=["ikey"],Wm={class:"fox-subsidenavbar__title__text"},Ym={class:"fox-subsidenavbar__title__icon"};function Xm(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-subsidenavbar__title",onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"]))},[t.createElementVNode("span",Wm,t.toDisplayString(e.title),1),t.createElementVNode("span",Ym,[t.createVNode(a,{name:"down-arrow",class:t.normalizeClass(e.direction)},null,8,["class"])])]),t.createElementVNode("view",{class:t.normalizeClass(["fox-subsidenavbar__list",e.direction?"foxFadeOut":"foxFadeIn"]),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)],10,jm)}const ka=K(Km,[["render",Xm]]),{componentName:Qm,create:Gm}=O("range"),Zm=Gm({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:n,slots:o}){const l=t.ref(0);let r,i;const a=t.ref(),s=t.ref(),c=Bt(),m=t.computed(()=>{const{marks:$,max:D,min:I}=e;return Object.keys($).map(parseFloat).sort((x,R)=>x-R).filter(x=>x>=I&&x<=D)}),d=t.computed(()=>Number(e.max)-Number(e.min)),f=t.computed(()=>{const $=Qm;return{[$]:!0,[`${$}-disabled`]:e.disabled,[`${$}-vertical`]:e.vertical,[`${$}-show-number`]:!e.hiddenRange}}),g=t.computed(()=>{const $="fox-range-container";return{[$]:!0,[`${$}-vertical`]:e.vertical}}),k=t.computed(()=>({background:e.inactiveColor})),b=t.computed(()=>({borderColor:e.buttonColor})),h=$=>!!e.range&&Array.isArray($),S=()=>{const{modelValue:$,min:D}=e;return h($)?`${($[1]-$[0])*100/d.value}%`:`${($-Number(D))*100/d.value}%`},u=()=>{const{modelValue:$,min:D}=e;return h($)?`${($[0]-Number(D))*100/d.value}%`:"0%"},p=t.computed(()=>e.vertical?{height:S(),top:u(),background:e.activeColor,transition:s.value?"none":void 0}:{width:S(),left:u(),background:e.activeColor,transition:s.value?"none":void 0}),w=$=>{const D="fox-range-mark",{modelValue:I,max:P,min:B}=e;let x=Number(B),R=Number(P);if(e.range){const[F,M]=I;x=F,R=M}else R=I;let T=$<=R&&$>=x;return{[`${D}-text`]:!0,[`${D}-text-active`]:T}},y=$=>{const{max:D,min:I,vertical:P}=e;let B={left:`${($-Number(I))/d.value*100}%`};return P&&(B={top:`${($-Number(I))/d.value*100}%`}),B},v=$=>{const{modelValue:D,max:I,min:P}=e;let B=Number(P),x=Number(I);if(e.range){const[F,M]=D;B=F,x=M}return{background:$<=x&&$>=B?e.activeColor:e.inactiveColor}},C=$=>{const{min:D,max:I,step:P}=e;return $=Math.max(+D,Math.min($,+I)),Math.round($/+P)*+P},N=($,D)=>JSON.stringify($)===JSON.stringify(D),V=$=>$[0]>$[1]?$.slice(0).reverse():$,A=($,D)=>{h($)?$=V($).map(C):$=C($),N($,e.modelValue)||n("update:modelValue",$),D&&!N($,r)&&n("change",$)},E=$=>{if(e.disabled)return;const{min:D,modelValue:I}=e,P=be(a);let B=$.clientX-P.left,x=P.width;e.vertical&&(B=$.clientY-P.top,x=P.height);const R=Number(D)+B/x*d.value;if(h(I)){const[T,F]=I,M=(T+F)/2;R<=M?A([R,F],!0):A([T,R],!0)}else A(R,!0)},q=$=>{e.disabled||(c.start($),i=e.modelValue,h(i)?r=i.map(C):r=C(i),s.value="start")},U=$=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),c.move($),s.value="draging";const D=be(a);let I=c.deltaX.value,P=D.width,B=I/P*d.value;e.vertical&&(I=c.deltaY.value,P=D.height,B=I/P*d.value),h(r)?i[l.value]=r[l.value]+B:i=r+B,A(i),$.stopPropagation(),$.preventDefault()},L=()=>{e.disabled||(s.value==="draging"&&(A(i,!0),n("drag-end")),s.value="")},z=$=>typeof $=="number"?e.modelValue[$]:e.modelValue;return{root:a,classes:f,wrapperStyle:k,buttonStyle:b,onClick:E,onTouchStart:q,onTouchMove:U,onTouchEnd:L,...t.toRefs(e),barStyle:p,curValue:z,buttonIndex:l,containerClasses:g,markClassName:w,marksStyle:y,marksList:m,tickStyle:v}}}),Jm={key:0,class:"min"},_m={key:0,class:"fox-range-mark"},ep=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],tp={key:0,class:"number"},np=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],op={key:0,class:"number"},lp={key:1,class:"max"};function ap(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Jm,t.toDisplayString(+e.min),1)),t.createElementVNode("view",{ref:"root",style:t.normalizeStyle(e.wrapperStyle),class:t.normalizeClass(e.classes),onClick:n[9]||(n[9]=t.withModifiers((...a)=>e.onClick&&e.onClick(...a),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",_m,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,a=>(t.openBlock(),t.createElementBlock("span",{key:a,class:t.normalizeClass(e.markClassName(a)),style:t.normalizeStyle(e.marksStyle(a))},[t.createTextVNode(t.toDisplayString(a)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(a))},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],a=>t.createElementVNode("view",{key:a,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":a==0,"fox-range-button-wrapper-right":a==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(a),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(s=>{typeof a=="number"&&(e.buttonIndex=a),e.onTouchStart(s)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:n[1]||(n[1]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:n[3]||(n[3]=s=>s.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",tp,t.toDisplayString(e.curValue(a)),1))],4))],42,ep)),64)):(t.openBlock(),t.createElementBlock("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=t.withModifiers(a=>{e.onTouchStart(a)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=t.withModifiers((...a)=>e.onTouchMove&&e.onTouchMove(...a),["stop","prevent"])),onTouchend:n[6]||(n[6]=t.withModifiers((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=t.withModifiers((...a)=>e.onTouchEnd&&e.onTouchEnd(...a),["stop","prevent"])),onClick:n[8]||(n[8]=a=>a.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",op,t.toDisplayString(e.curValue()),1))],4))],40,np))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",lp,t.toDisplayString(+e.max),1))],2)}const Sa=K(Zm,[["render",ap]]),{create:rp,scope:sp}=O("searchbar"),ip=rp({props:{modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"textarea"},label:{type:String,default:""},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:String,default:"circle-close"},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:n}){const{toLocaleRefs:o}=_.useFoxI18n(sp),l=o(e,["placeholder"]),r=t.reactive({active:!1}),i=t.computed(()=>({background:e.background})),a=t.computed(()=>({background:e.inputBackground})),s=p=>{let y=p.target.value;e.maxLength&&y.length>Number(e.maxLength)&&(y=y.slice(0,Number(e.maxLength))),n("update:modelValue",y,p),n("change",y,p)},c=t.ref({}),m=p=>{let y=p.target.value;r.active=!0,c.value=e.focusStyle,n("focus",y,p)},d=p=>{setTimeout(()=>{r.active=!1},0);let y=p.target.value;e.maxLength&&y.length>Number(e.maxLength)&&(y=y.slice(0,Number(e.maxLength))),c.value={},n("blur",y,p)},f=p=>{n("update:modelValue","",p),n("change","",p),n("clear","")},g=()=>{n("search",e.modelValue)},k=p=>{n("click-input",p)},b=p=>{n("click-left-icon",e.modelValue,p)},h=p=>{n("click-right-icon",e.modelValue,p)},S=t.computed(()=>({"text-align":e.inputAlign})),u=t.ref(null);return t.onMounted(()=>{e.autofocus&&u.value.focus()}),{...l,inputsearch:u,...t.toRefs(r),valueChange:s,valueFocus:m,valueBlur:d,handleClear:f,handleSubmit:g,searchbarStyle:i,inputSearchbarStyle:a,focusCss:c,clickInput:k,leftIconClick:b,rightIconClick:h,styleSearchbar:S}}}),cp={key:0,class:"fox-searchbar__search-label"},up={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},dp={class:"fox-searchbar__input-inner"},fp=["type","maxlength","placeholder","value","disabled","readonly"],mp={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function pp(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:"fox-searchbar",style:t.normalizeStyle(e.searchbarStyle)},[e.label?(t.openBlock(),t.createElementBlock("span",cp,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",up,[t.renderSlot(e.$slots,"leftout")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-searchbar__search-input",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:n[0]||(n[0]=(...s)=>e.leftIconClick&&e.leftIconClick(...s))},[t.renderSlot(e.$slots,"leftin")])):t.createCommentVNode("",!0),t.createElementVNode("view",dp,[t.createElementVNode("form",{action:"#",onSubmit:n[5]||(n[5]=t.withModifiers((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[t.createElementVNode("input",{ref:"inputsearch",class:"fox-searchbar__input-bar",type:e.inputType,maxlength:e.maxLength,placeholder:e.placeholder,value:e.modelValue,disabled:e.disabled,readonly:e.readonly,onClick:n[1]||(n[1]=(...s)=>e.clickInput&&e.clickInput(...s)),onInput:n[2]||(n[2]=(...s)=>e.valueChange&&e.valueChange(...s)),onFocus:n[3]||(n[3]=(...s)=>e.valueFocus&&e.valueFocus(...s)),onBlur:n[4]||(n[4]=(...s)=>e.valueBlur&&e.valueBlur(...s)),style:t.normalizeStyle(e.styleSearchbar)},null,44,fp)],32),e.clearable?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,onClick:n[6]||(n[6]=(...s)=>e.handleClear&&e.handleClear(...s)),class:"fox-searchbar__input-clear"},[t.createVNode(a,{name:e.clearIcon,size:"12",color:"#555"},null,8,["name"])],512)),[[t.vShow,e.modelValue.length>0]]):t.createCommentVNode("",!0)]),e.$slots.rightin?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-sarch-icon",onClick:n[7]||(n[7]=(...s)=>e.rightIconClick&&e.rightIconClick(...s))},[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],4),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",mp,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const ba=K(ip,[["render",pp]]),{componentName:hp,create:gp}=O("inputnumber"),yp=gp({props:{modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},iconLeft:{type:String,default:"minus"},iconRight:{type:String,default:"plus"}},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const o=t.computed(()=>{const g=hp;return{[g]:!0,[`${g}--disabled`]:e.disabled}}),l=g=>Number(g).toFixed(Number(e.decimalPlaces)),r=g=>{const k=g.target;n("update:modelValue",k.valueAsNumber,g)},i=(g,k)=>{let b=l(g);n("update:modelValue",b,k),n("change",b,k)},a=(g=Number(e.modelValue))=>g<Number(e.max)&&!e.disabled,s=(g=Number(e.modelValue))=>g>Number(e.min)&&!e.disabled;return{classes:o,change:r,blur:g=>{if(e.disabled||e.readonly)return;let b=g.target.valueAsNumber;b<Number(e.min)?b=Number(e.min):b>Number(e.max)&&(b=Number(e.max)),i(b,g),n("blur",g)},focus:g=>{e.disabled||e.readonly||n("focus",g)},add:g=>{if(n("add",g),a()){let k=Number(e.modelValue)+Number(e.step);i(k,g)}else n("overlimit",g,"add")},addAllow:a,reduce:g=>{if(n("reduce",g),s()){let k=Number(e.modelValue)-Number(e.step);i(k,g)}else n("overlimit",g,"reduce")},reduceAllow:s,toPxDesc:Z}}}),vp=["min","max","disabled","readonly","value"];function kp(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.toPxDesc(e.buttonSize)})},[t.createVNode(a,{name:e.iconLeft,class:t.normalizeClass(["fox-inputnumber__icon",{"fox-inputnumber__icon--disabled":!e.reduceAllow()}]),size:e.buttonSize,onClick:e.reduce},null,8,["name","class","size","onClick"]),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxDesc(e.inputWidth)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:n[0]||(n[0]=(...s)=>e.change&&e.change(...s)),onBlur:n[1]||(n[1]=(...s)=>e.blur&&e.blur(...s)),onFocus:n[2]||(n[2]=(...s)=>e.focus&&e.focus(...s))},null,44,vp),t.createVNode(a,{name:e.iconRight,class:t.normalizeClass(["fox-inputnumber__icon",{"fox-inputnumber__icon--disabled":!e.addAllow()}]),size:e.buttonSize,onClick:e.add},null,8,["name","class","size","onClick"])],6)}const Ca=K(yp,[["render",kp]]),{componentName:Sp,create:bp}=O("rate"),Cp=bp({props:{count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},iconSize:{type:[String,Number],default:18},activeColor:{type:String,default:""},voidColor:{type:String,default:""},uncheckedIcon:{type:String,default:"star-n"},checkedIcon:{type:String,default:"star-fill-n"},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:14},classPrefix:{type:String,default:"fox-icon"},fontClassName:{type:String,default:"foxui-iconfont"}},emits:["update:modelValue","change"],setup(e,{emit:n}){const o=t.ref([]),l=t.computed(()=>({[Sp]:!0})),r=f=>{n("update:modelValue",f),n("change",f)},i=(f,g)=>{if(e.disabled||e.readonly)return;let k=0;g===1&&e.modelValue===g||(k=g,e.allowHalf&&f==2&&(k-=.5)),r(k)},a=(f,g,k)=>{let b=0;for(let h=g.value.length-1;h>=0;h--){const S=g.value[h];if(f>S.offsetLeft){k?b=h+(f>S.offsetLeft+S.clientWidth/2?1:.5):b=h+1;break}}return b},s=!0,c=Bt(),m={onTouchStart(f){e.touchable&&c.start(f)},onTouchMove(f){!e.touchable||!s||(c.move(f),c.isHorizontal()&&o.value&&(f.preventDefault(),r(a(c.moveX.value,o,e.allowHalf))))}},d=Math.random().toString(36).slice(-8);return{classes:l,...m,onClick:i,toPxDesc:Z,rateRefs:o,refRandomId:d}}}),wp=["id"];function Np(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:s,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+s,style:t.normalizeStyle({marginRight:e.toPxDesc(e.spacing)})},[t.createVNode(a,{size:e.iconSize,class:t.normalizeClass(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||s>e.modelValue}]),onClick:c=>e.onClick(1,s),color:s<=e.modelValue?e.activeColor:e.voidColor,"font-class-name":e.fontClassName,"class-prefix":e.classPrefix,name:s<=e.modelValue?e.checkedIcon:e.uncheckedIcon},null,8,["size","onClick","class","color","font-class-name","class-prefix","name"]),e.allowHalf&&Number(e.modelValue)+1>s?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-rate-item__icon fox-rate-item__icon--half",onClick:c=>e.onClick(2,s),"font-class-name":e.fontClassName,"class-prefix":e.classPrefix,color:s<=Number(e.modelValue)+1?e.activeColor:e.voidColor,size:e.iconSize,name:e.checkedIcon},null,8,["onClick","font-class-name","class-prefix","color","size","name"])):e.allowHalf&&Number(e.modelValue)+1<s?(t.openBlock(),t.createBlock(a,{key:1,class:"fox-rate-item__icon fox-rate-item__icon--disabled fox-rate-item__icon--half",onClick:c=>e.onClick(2,s),"font-class-name":e.fontClassName,"class-prefix":e.classPrefix,color:e.voidColor,size:e.iconSize,name:e.uncheckedIcon},null,8,["onClick","font-class-name","class-prefix","color","size","name"])):t.createCommentVNode("",!0)],12,wp))),128))],34)}const wa=K(Cp,[["render",Np]]),{create:Bp,scope:Vp}=O("shortpassword"),Ap=Bp({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:""},noButton:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6},isWrapTeleport:{type:Boolean,default:!0}},emits:["update:modelValue","update:visible","complete","change","ok","tips","close","cancel"],setup(e,{emit:n}){const{toLocaleRefs:o}=_.useFoxI18n(Vp),l=o(e,["title","desc","tips"]),r=t.ref(e.modelValue),i=t.ref(),a=t.computed(()=>k(Number(e.length))),s=t.ref(e.visible);function c(){n("ok",r.value)}function m(){i.value.focus()}t.watch(()=>e.visible,S=>{s.value=S}),t.watch(()=>e.modelValue,S=>{r.value=S,n("update:modelValue",S)},{deep:!0,immediate:!0});function d(S){let p=S.target.value;p.length>a.value&&(p=p.slice(0,a.value),r.value=p),String(r.value).length===a.value&&n("complete",p),n("change",p),n("update:modelValue",p)}function f(){n("update:visible",!1),n("cancel")}function g(){n("update:visible",!1),n("close")}function k(S){return Math.min(Math.max(4,S),6)}function b(){n("tips")}function h(){let S=navigator.userAgent,u=S.indexOf("Android")>-1||S.indexOf("Linux")>-1;if(!!S.match(/\(i[^;]+;( U;)? CPU.+Mac OS X/))return{paddingRight:"1200px"};if(u)return{opacity:0,zindex:10}}return{...l,comLen:a,sureClick:c,realInput:r,realpwd:i,focus:m,range:k,changeValue:d,close:f,onTips:b,show:s,systemStyle:h,closeIcon:g}}}),Ep={class:"fox-shortpsd-title"},Tp={class:"fox-shortpsd-subtitle"},$p={class:"fox-input-normalw"},Dp=t.createElementVNode("div",{class:"fox-input-site"},null,-1),Ip={key:0,class:"fox-shortpsd-icon"},qp={class:"fox-shortpsd-message"},zp={class:"fox-shortpsd-error"},Mp={key:0,class:"fox-shortpsd-forget"},Pp={key:0,class:"fox-shortpsd-footer"};function xp(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(s,{style:{padding:"32px 24px 28px 24px",borderRadius:"12px",textAlign:"center"},visible:e.show,"onUpdate:visible":n[6]||(n[6]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.closeIcon,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,isWrapTeleport:e.isWrapTeleport},{default:t.withCtx(()=>[t.createElementVNode("view",Ep,t.toDisplayString(e.title),1),t.createElementVNode("view",Tp,t.toDisplayString(e.desc),1),t.createElementVNode("div",$p,[t.withDirectives(t.createElementVNode("input",{ref:"realpwd",class:"fox-input-real",type:"number",maxlength:"6",style:t.normalizeStyle(e.systemStyle()),"onUpdate:modelValue":n[0]||(n[0]=c=>e.realInput=c),onInput:n[1]||(n[1]=(...c)=>e.changeValue&&e.changeValue(...c))},null,36),[[t.vModelText,e.realInput]]),Dp,t.createElementVNode("view",{class:"fox-shortpsd-fake",onClick:n[2]||(n[2]=(...c)=>e.focus&&e.focus(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,m)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-shortpsd-li",key:m},[String(e.realInput).length>m?(t.openBlock(),t.createElementBlock("view",Ip)):t.createCommentVNode("",!0)]))),128))])]),t.createElementVNode("view",qp,[t.createElementVNode("view",zp,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",Mp,[t.createVNode(a,{class:"icon",size:"11px",name:"tips"}),t.createElementVNode("view",{onClick:n[3]||(n[3]=(...c)=>e.onTips&&e.onTips(...c))},t.toDisplayString(e.tips),1)])):t.createCommentVNode("",!0)]),e.noButton?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Pp,[t.createElementVNode("view",{class:"fox-shortpsd-cancle",onClick:n[4]||(n[4]=(...c)=>e.close&&e.close(...c))},"取消"),t.createElementVNode("view",{class:"fox-shortpsd-sure",onClick:n[5]||(n[5]=(...c)=>e.sureClick&&e.sureClick(...c))},"确认")]))]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay","isWrapTeleport"])])}const Na=K(Ap,[["render",xp]]);class Rp{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Lp=class{options;constructor(n){this.options=n}upload(){const n=this.options,o=new XMLHttpRequest;if(o.timeout=n.timeout,o.upload){o.upload.addEventListener("progress",l=>{n.onProgress?.(l,n)},!1),o.onreadystatechange=()=>{o.readyState===4&&(o.status==n.xhrState?n.onSuccess?.(o.responseText,n):n.onFailure?.(o.responseText,n))},o.withCredentials=n.withCredentials,o.open(n.method,n.url,!0);for(const[l,r]of Object.entries(n.headers))o.setRequestHeader(l,r);n.onStart?.(n),n.beforeXhrUpload?n.beforeXhrUpload(o,n):o.send(n.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}uploadTaro(n,o){const l=this.options;if(o==="WEB")this.upload();else if(l.beforeXhrUpload)l.beforeXhrUpload(n,l);else{const r=n({url:l.url,filePath:l.taroFilePath,fileType:l.fileType,header:{"Content-Type":"multipart/form-data",...l.headers},formData:l.formData,name:l.name,success(i){l.xhrState==i.statusCode?l.onSuccess?.(i,l):l.onFailure?.(i,l)},fail(i){l.onFailure?.(i,l)}});l.onStart?.(l),r.progress(i=>{l.onProgress?.(i,l)})}}};class Op{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const{componentName:Fp,create:Up,scope:Hp}=O("uploader"),Kp=Up({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:{}},uploadIcon:{type:String,default:"photograph"},uploadIconSize:{type:[String,Number],default:""},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:o}=_.useFoxI18n(Hp),l=t.reactive(e.fileList);let r=[];const i=t.computed(()=>({[Fp]:!0})),a=S=>{S.value=""},s=S=>{n("file-item-click",{fileItem:S})},c=(S,u)=>{const p=new Rp;p.url=e.url,p.formData=S.formData,p.timeout=e.timeout*1,p.method=e.method,p.xhrState=e.xhrState,p.headers=e.headers,p.withCredentials=e.withCredentials;try{p.sourceFile=S.formData.get(e.name)}catch{}p.onStart=y=>{S.status="ready",S.message=o("readyUpload"),m(u),n("start",y)},p.onProgress=(y,v)=>{S.status="uploading",S.message=o("uploading"),S.percentage=(y.loaded/y.total*100).toFixed(0),n("progress",{event:y,option:v,percentage:S.percentage})},p.onSuccess=(y,v)=>{S.status="success",S.message=o("success"),n("success",{responseText:y,option:v,fileItem:S}),n("update:fileList",l)},p.onFailure=(y,v)=>{S.status="error",S.message=o("error"),n("failure",{responseText:y,option:v,fileItem:S})};let w=new Lp(p);e.autoUpload?w.upload():r.push(new Promise((y,v)=>{y(w)}))},m=(S=-1)=>{S>-1?r.splice(S,1):(r=[],l.splice(0,l.length))},d=()=>{Promise.all(r).then(S=>{S.forEach(u=>u.upload())})},f=S=>{S.forEach((u,p)=>{const w=new FormData;for(const[v,C]of Object.entries(e.data))w.append(v,C);w.append(e.name,u);const y=t.reactive(new Op);if(y.name=u.name,y.status="ready",y.type=u.type,y.formData=w,y.message=o("waitingUpload"),c(y,p),e.isPreview&&u.type.includes("image")){const v=new FileReader;v.onload=C=>{y.url=C.target.result,l.push(y)},v.readAsDataURL(u)}else l.push(y)})},g=S=>{const u=e.maximum*1,p=e.maximize*1,w=new Array;S=S.filter(v=>v.size>p?(w.push(v),!1):!0),w.length&&n("oversize",w);let y=S.length+l.length;return y>u&&S.splice(S.length-(y-u)),S},k=(S,u)=>{l.splice(u,1),n("delete",{file:S,fileList:l,index:u})};return{onChange:S=>{if(e.disabled)return;const u=S.target;let{files:p}=u;if(e.beforeUpload)e.beforeUpload(p).then(w=>{const y=g(new Array().slice.call(w));f(y)});else{const w=g(new Array().slice.call(p));f(w)}n("change",{fileList:l,event:S}),e.clearInput&&a(u)},onDelete:(S,u)=>{m(u);let p=e.beforeDelete(S,l);Wt(p)?p.then(w=>{w&&k(S,u)}).catch(w=>{}):p&&k(S,u)},fileList:l,classes:i,fileItemClick:s,clearUploadQueue:m,submit:d}}}),jp={key:0,class:"fox-uploader__slot"},Wp=["accept","multiple","name","disabled"],Yp=["accept","multiple","name","disabled"],Xp={key:0,class:"fox-uploader__preview-img"},Qp={key:0,class:"fox-uploader__preview__progress"},Gp={class:"fox-uploader__preview__progress__msg"},Zp={key:1,class:"fox-uploader__preview__progress"},Jp={class:"fox-uploader__preview__progress__msg"},_p=["onClick","src"],eh={key:4,class:"fox-uploader__preview-img__file"},th=["onClick"],nh={class:"tips"},oh={key:1,class:"fox-uploader__preview-list"},lh=["onClick"],ah=["accept","multiple","name","disabled"],rh=["accept","multiple","name","disabled"];function sh(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon"),s=t.resolveComponent("fox-progress");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",jp,[t.renderSlot(e.$slots,"default"),e.maximum-e.fileList.length?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.capture?(t.openBlock(),t.createElementBlock("input",{key:0,class:"fox-uploader__input",type:"file",capture:"camera",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled,onChange:n[0]||(n[0]=(...c)=>e.onChange&&e.onChange(...c))},null,40,Wp)):(t.openBlock(),t.createElementBlock("input",{key:1,class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled,onChange:n[1]||(n[1]=(...c)=>e.onChange&&e.onChange(...c))},null,40,Yp))],64)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(c,m)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:c.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",Xp,[c.status=="ready"?(t.openBlock(),t.createElementBlock("view",Qp,[t.createElementVNode("view",Gp,t.toDisplayString(c.message),1)])):c.status!="success"?(t.openBlock(),t.createElementBlock("view",Zp,[t.createVNode(a,{color:"#fff",name:c.status=="error"?"failure":"loading"},null,8,["name"]),t.createElementVNode("view",Jp,t.toDisplayString(c.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createBlock(a,{key:2,onClick:d=>e.onDelete(c,m),class:"close",name:"failure"},null,8,["onClick"])):t.createCommentVNode("",!0),c.type.includes("image")&&c.url?(t.openBlock(),t.createElementBlock("img",{key:3,class:"fox-uploader__preview-img__c",onClick:d=>e.fileItemClick(c),src:c.url},null,8,_p)):(t.openBlock(),t.createElementBlock("view",eh,[t.createElementVNode("view",{onClick:d=>e.fileItemClick(c),class:"fox-uploader__preview-img__file__name"},[t.createVNode(a,{color:"#808080",name:"link"}),t.createTextVNode(" "+t.toDisplayString(c.name),1)],8,th)])),t.createElementVNode("view",nh,t.toDisplayString(c.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",oh,[t.createElementVNode("view",{onClick:d=>e.fileItemClick(c),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[c.status]])},[t.createVNode(a,{name:"link"}),t.createTextVNode(" "+t.toDisplayString(c.name),1)],10,lh),t.createVNode(a,{class:"fox-uploader__preview-img__file__del",onClick:d=>e.onDelete(c,m),color:"#808080",name:"del"},null,8,["onClick"]),c.status=="uploading"?(t.openBlock(),t.createBlock(s,{key:0,size:"small",percentage:c.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&&e.maximum-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.createVNode(a,{size:e.uploadIconSize,color:"#808080",name:e.uploadIcon},null,8,["size","name"]),e.capture?(t.openBlock(),t.createElementBlock("input",{key:0,class:"fox-uploader__input",type:"file",capture:"camera",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled,onChange:n[2]||(n[2]=(...c)=>e.onChange&&e.onChange(...c))},null,40,ah)):(t.openBlock(),t.createElementBlock("input",{key:1,class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled,onChange:n[3]||(n[3]=(...c)=>e.onChange&&e.onChange(...c))},null,40,rh))],2)):t.createCommentVNode("",!0)],2)}const Ba=K(Kp,[["render",sh]]),ih="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENDIChXaW5kb3dzKSIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDozOUNBQTQ0MkY3RTMxMUVBQjIzNEJCQkYxNDZGQjg5OCIgeG1wTU06R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V2pgznz/y91noevSOECBbhxtwVt7dFpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:uh,scope:dh}=O("numberkeyboard"),fh=uh({props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},value:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},isWrapTeleport:{type:Boolean,default:!0},teleport:{type:[String,Element],default:"body"},popClass:{type:String,default:""}},emits:["input","delete","close","update:value"],setup(e,{emit:n}){const{toLocaleRefs:o}=_.useFoxI18n(dh),l=o(e,["confirmText"]),r=t.ref(void 0),i=t.ref(e.visible),a=t.ref();function s(){const{customKey:h}=e;let S={id:"lock",type:"lock"},u=Array.isArray(h)?h:[h];return u.length===1&&(S={id:u[0],type:"custom"}),[...c(),S,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const h=[];for(let S=1;S<=9;S++)h.push({id:S,type:"number"});return e.randomKeys?h.sort(()=>Math.random()>.5?1:-1):h}function m(){const h=c(),{customKey:S}=e;let u=Array.isArray(S)?S:[S];return u.length>2&&(u=[u[0],u[1]]),u.length==2&&e.title&&e.type!="rightColumn"&&(u=[u[0]]),u.length===1?e.title&&e.type!="rightColumn"?h.push({id:u[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):h.push({id:0,type:"number"},{id:u[0],type:"custom"}):u.length===2&&h.push({id:u[0],type:"custom"},{id:0,type:"number"},{id:u[1],type:"custom"}),h}const d=t.computed(()=>e.type=="rightColumn"||e.title!=""?m():s());t.watch(()=>e.visible,h=>{i.value=h});function f(h,S){S.stopPropagation(),r.value=h.id,(h.type=="number"||h.type=="custom")&&(n("input",h.id),e.value.length<e.maxlength&&n("update:value",e.value+h.id)),h.type=="lock"&&b(),h.type=="delete"&&(n("delete"),n("update:value",e.value.slice(0,e.value.length-1)))}function g(h){h.stopPropagation()}function k(h){h.preventDefault(),r.value=void 0}function b(){n("close")}return{...l,delImg:ih,lockImg:ch,clickKeyIndex:r,defaultKey:s,closeBoard:b,onTouchEnd:k,onTouchMove:g,onTouchstart:f,keysList:d,genCustomKeys:m,getBasicKeys:c,root:a,show:i}}}),mh={class:"fox-numberkeyboard",ref:"root"},ph={key:0,class:"number-board-header"},hh={class:"tit"},gh={class:"number-board-body"},yh={class:"number-board"},vh=["onTouchstart"],kh=["src"],Sh=["src"],bh={key:0,class:"number-board-sidebar"},Ch={class:"key-board-wrapper"},wh=["src"];function Nh(e,n,o,l,r,i){const a=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(a,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=s=>e.show=s),position:"bottom",teleport:e.teleport,popClass:e.popClass,overlay:e.overlay,onClickOverlay:n[8]||(n[8]=s=>e.closeBoard()),isWrapTeleport:e.isWrapTeleport,"overlay-class":"fox-numberkeyboard-overlay"},{default:t.withCtx(()=>[t.createElementVNode("div",mh,[e.title?(t.openBlock(),t.createElementBlock("div",ph,[t.createElementVNode("h3",hh,t.toDisplayString(e.title),1),e.type=="default"?(t.openBlock(),t.createElementBlock("span",{key:0,class:"keyboard-close",onClick:n[0]||(n[0]=s=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",gh,[t.createElementVNode("div",yh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,s=>(t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["key-board-wrapper",{"key-board-wrapper-large":s.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}]),key:"key"+s.id},[t.createElementVNode("div",{class:t.normalizeClass(["key",{active:s.id==e.clickKeyIndex},{lock:s.type=="lock"},{delete:s.type=="delete"}]),onTouchstart:c=>e.onTouchstart(s,c),onTouchmove:n[1]||(n[1]=c=>e.onTouchMove(c)),onTouchend:n[2]||(n[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[s.type=="number"||s.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(s.id),1)],64)):t.createCommentVNode("",!0),s.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,kh)):t.createCommentVNode("",!0),s.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,Sh)):t.createCommentVNode("",!0)],42,vh)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",bh,[t.createElementVNode("div",Ch,[t.createElementVNode("div",{class:t.normalizeClass(["key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=s=>e.onTouchstart({id:"delete",type:"delete"},s)),onTouchmove:n[4]||(n[4]=s=>e.onTouchMove(s)),onTouchend:n[5]||(n[5]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("img",{src:e.delImg},null,8,wh)],34)]),t.createElementVNode("div",{class:"key-board-wrapper key-board-finish",onClick:n[6]||(n[6]=s=>e.closeBoard())},[t.createElementVNode("div",{class:t.normalizeClass(["key","finish",{activeFinish:e.clickKeyIndex=="finish"}])},t.toDisplayString(e.confirmText),3)])])):t.createCommentVNode("",!0)])],512)]),_:1},8,["visible","teleport","popClass","overlay","isWrapTeleport"])}const Va=K(fh,[["render",Nh]]),{componentName:Bh,create:Vh}=O("swipe"),Ah=Vh({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:n}){const o=t.computed(()=>({[Bh]:!0})),l=p=>p.value?.clientWidth||0,r=t.ref(),i=t.computed(()=>l(r)),a=t.ref(),s=t.computed(()=>l(a));let c=!1,m="",d="";const f=t.reactive({offset:0,moving:!1}),g=(p="")=>{c=!0,p&&(f.offset=p==="left"?-s.value:i.value),n("open",{name:e.name,position:m||p})},k=()=>{f.offset=0,c=!1,n("close",{name:e.name,position:m})},b=t.computed(()=>({transform:`translate3d(${f.offset}px, 0, 0)`})),h=p=>{m=p>0?"right":"left";let w=p;switch(m){case"left":c&&d===m?w=-s.value:w=Math.abs(p)>s.value?-s.value:p;break;case"right":c&&d===m?w=i.value:w=Math.abs(p)>i.value?i.value:p;break}f.offset=w},S=Bt();return{classes:o,touchStyle:b,...{onTouchStart(p){e.disabled||S.start(p)},onTouchMove(p){e.disabled||(S.move(p),S.isHorizontal()&&(f.moving=!0,h(S.deltaX.value),e.touchMovePreventDefault&&p.preventDefault(),e.touchMoveStopPropagation&&p.stopPropagation()))},onTouchEnd(){if(f.moving)switch(f.moving=!1,d=m,m){case"left":Math.abs(f.offset)<=s.value/2?k():(f.offset=-s.value,g());break;case"right":Math.abs(f.offset)<=i.value/2?k():(f.offset=i.value,g());break}}},leftRef:r,rightRef:a,open:g,close:k}}}),Eh={class:"fox-swipe__left",ref:"leftRef"},Th={class:"fox-swipe__content"},$h={class:"fox-swipe__right",ref:"rightRef"};function Dh(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[t.createElementVNode("view",Eh,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",Th,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",$h,[t.renderSlot(e.$slots,"right")],512)],38)}const Aa=K(Ah,[["render",Dh]]),{componentName:Ih,create:qh}=O("actionsheet"),zh=qh({props:{...Oe,cancelText:{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:()=>[]},isWrapTeleport:{type:Boolean,default:!0},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const o=t.computed(()=>({[Ih]:!0}));return{isHighlight:s=>e.chooseTagValue&&e.chooseTagValue===s[e.optionTag]?e.color:"#1a1a1a",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(s,c)=>{s.disable||(n("choose",s,c),n("update:visible",!1))},close:()=>{n("close"),n("update:visible",!1)},classes:o}}}),Mh={class:"fox-actionsheet-panel"},Ph={key:0,class:"fox-actionsheet-title"},xh={key:0,class:"fox-actionsheet-item desc"},Rh={key:1,class:"fox-actionsheet-menu"},Lh=["onClick"],Oh={class:"subdesc"};function Fh(e,n,o,l,r,i){const a=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(a,{"pop-class":"popclass",visible:e.visible,isWrapTeleport:e.isWrapTeleport,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:t.withCtx(()=>[t.createElementVNode("view",Mh,[e.title?(t.openBlock(),t.createElementBlock("view",Ph,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default",{},()=>[e.description?(t.openBlock(),t.createElementBlock("view",xh,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",Rh,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(s,c)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-actionsheet-item",{"fox-actionsheet-item-disabled":s.disable}]),style:t.normalizeStyle({color:e.isHighlight(s)}),key:c,onClick:m=>e.chooseItem(s,c)},[t.createTextVNode(t.toDisplayString(s[e.optionTag]),1),t.createElementVNode("view",Oh,t.toDisplayString(s[e.optionSubTag]),1)],14,Lh))),128))])):t.createCommentVNode("",!0),e.cancelText?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-actionsheet-cancel",onClick:n[0]||(n[0]=(...s)=>e.cancelActionSheet&&e.cancelActionSheet(...s))},t.toDisplayString(e.cancelText),1)):t.createCommentVNode("",!0)])])]),_:3},8,["visible","isWrapTeleport","onClickOverlay","closeOnClickOverlay"])],2)}const Ea=K(zh,[["render",Fh]]),{componentName:Uh,create:Hh}=O("backtop"),Kh=Hh({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String,Object],default:"body"},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:n}){const o=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),l=t.computed(()=>({[Uh]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function i(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function a(b=0){o.scrollEl instanceof Window?window.scrollTo(0,b):o.scrollEl.scrollTop=b}function s(){let b=f()(function h(){var S=e.duration-Math.max(0,o.startTime-+new Date+e.duration),u=S*-o.scrollTop/e.duration+o.scrollTop;a(u),b=f()(h),(S==e.duration||u==0)&&window.cancelAnimationFrame(b)})}function c(){o.scrollEl.addEventListener("scroll",i,!1),o.scrollEl.addEventListener("resize",i,!1)}function m(){o.scrollEl.removeEventListener("scroll",i,!1),o.scrollEl.removeEventListener("resize",i,!1)}function d(){window.cancelAnimationFrame=window.webkitCancelAnimationFrame}function f(){return window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(b){window.setTimeout(b,1e3/60)}}function g(b){o.startTime=+new Date,e.isAnimation&&e.duration>0?s():a(),n("click",b)}function k(){if(!e.elId)return;let b;typeof e.elId=="string"?b=document.getElementById(e.elId):b=e.elId,o.scrollEl=b,c(),d()}return t.onMounted(()=>{e.distance==0&&(o.backTop=!0),k()}),t.onUnmounted(()=>{m()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,k())}),t.onDeactivated(()=>{o.keepAlive=!0,m()}),{state:o,classes:l,style:r,click:g}}});function jh(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style),onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.click&&e.click(...s),["stop"]))},[t.renderSlot(e.$slots,"default",{},()=>[t.createVNode(a,{size:"19px",class:"fox-backtop-main",name:"top"})])],6)}const Ta=K(Kh,[["render",jh]]),{componentName:Wh,create:Yh}=O("drag"),Xh=Yh({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:n}){const o=t.ref(),l=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}}),r=t.computed(()=>({[Wh]:!0}));function i(){const f=document.documentElement;l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight,l.screenWidth=f.clientWidth,l.screenHeight=f.clientHeight}function a(f){l.boundary.left?+f.style.left.split("px")[0]>l.boundary.left?(f.style.left=+f.style.left.split("px")[0]-10+"px",Fe(()=>{a(f)})):f.style.left=`${l.boundary.left}px`:+f.style.left.split("px")[0]>10?(f.style.left=+f.style.left.split("px")[0]-10+"px",Fe(()=>{a(f)})):f.style.left="0px"}function s(f,g){g-parseInt(f.style.left.split("px")[0])>10?(f.style.left=parseInt(f.style.left.split("px")[0])+10+"px",Fe(()=>{s(f,g)})):f.style.left=g+"px"}function c(f){f.preventDefault();const g=f.currentTarget;if(f.targetTouches.length===1){const k=f.targetTouches[0];l.nx=k.clientX-l.position.x,l.ny=k.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny;const b=l.screenWidth-l.elWidth-l.boundary.right;Math.abs(l.xPum)>b?l.xPum=b:l.xPum<=l.boundary.left&&(l.xPum=l.boundary.left),l.yPum<l.boundary.top?l.yPum=l.boundary.top:l.yPum>l.screenHeight-l.elHeight-l.boundary.bottom&&(l.yPum=l.screenHeight-l.elHeight-l.boundary.bottom),e.direction!="y"&&(g.style.left=l.xPum+"px"),e.direction!="x"&&(g.style.top=l.yPum+"px")}}function m(f){const g=f.currentTarget;let b=f.changedTouches[0].clientX;const h=l.screenWidth-l.elWidth-l.boundary.right;b>h?b=h:b<l.boundary.left?b=l.boundary.left:b=b<l.screenWidth/2?l.boundary.left:h,e.direction!="y"&&e.attract&&(b<l.screenWidth/2?Fe(()=>{a(g)}):Fe(()=>{s(g,h)})),e.direction!="x"&&(g.style.top=l.yPum+"px")}function d(f){const g=f.currentTarget,k=f.touches[0],b=f.targetTouches[0];l.startTop=g.offsetTop,l.startLeft=g.offsetLeft,l.position.x=k.clientX,l.position.y=k.clientY,l.nx=b.clientX-l.position.x,l.ny=b.clientY-l.position.y,l.xPum=l.startLeft+l.nx,l.yPum=l.startTop+l.ny}return t.onMounted(()=>{i(),l.boundary=e.boundary}),t.onActivated(()=>{l.keepAlive&&(l.keepAlive=!1)}),t.onDeactivated(()=>{l.keepAlive=!0;const f=o;f.value.removeEventListener("touchstart",d),f.value.removeEventListener("touchmove",c),f.value.removeEventListener("touchend",m)}),{classes:r,myDrag:o,touchStart:d,touchMove:c,touchEnd:m}}});function Qh(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=a=>e.touchStart(a)),onTouchmove:n[1]||(n[1]=a=>e.touchMove(a)),onTouchend:n[2]||(n[2]=a=>e.touchEnd(a))},[t.renderSlot(e.$slots,"default")],34)}const $a=K(Xh,[["render",Qh]]),{componentName:Gh,create:Zh,scope:Jh}=O("dialog"),_h=Zh({inheritAttrs:!1,components:{[he.name]:he,[et.name]:et},props:{...Oe,closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String,default:""},content:{type:[String,Object],default:""},noFooter:{type:Boolean,default:!1},noConfirmBtn:{type:Boolean,default:!1},noCancelBtn:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},closeOnPopstate:{type:Boolean,default:!1},footerDirection:{type:String,default:"horizontal"},customClass:{type:String,default:""},popStyle:{type:Object},beforeClose:{type:Function}},emits:["update","update:visible","confirm","cancel","opened","closed"],setup(e,{emit:n}){const{toLocaleRefs:o}=_.useFoxI18n(Jh),l=o(e,["confirmText","cancelText"]),r=t.ref(e.visible);t.onMounted(()=>{e.closeOnPopstate&&Ye&&window.addEventListener("popstate",function(){s("page")})}),t.watch(()=>e.visible,d=>{r.value=d,d&&n("opened")});const i=t.computed(()=>({[Gh]:!0,[e.customClass]:!0})),a=d=>{n("update",d),n("update:visible",d)},s=d=>{if(e.beforeClose){const f=e.beforeClose(d);Wt(f)&&f.then(g=>{g&&(a(!1),n("closed"))})}else a(!1),n("closed")};return{...l,closed:s,classes:i,onCancel:()=>{n("cancel"),e.cancelAutoClose&&s("cancel")},onConfirm:()=>{n("confirm"),s("confirm")},showPopup:r}}}),eg={key:0,class:"fox-dialog__header"},tg=["innerHTML"];function ng(e,n,o,l,r,i){const a=t.resolveComponent("fox-button"),s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{teleport:e.teleport,visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=c=>e.showPopup=c),"close-on-click-overlay":e.closeOnClickOverlay,"lock-scroll":e.lockScroll,"pop-class":e.popClass,style:t.normalizeStyle(e.popStyle),"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,round:"",onClickOverlay:e.closed,onClickCloseIcon:e.closed},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("view",eg,[e.$slots.header?t.renderSlot(e.$slots,"header",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.title),1)],64))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-dialog__content",style:t.normalizeStyle({textAlign:e.textAlign})},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):typeof e.content=="string"?(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.content},null,8,tg)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.content),{key:2}))],4),e.noFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-dialog__footer",{[e.footerDirection]:e.footerDirection}])},[e.$slots.footer?t.renderSlot(e.$slots,"footer",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.noCancelBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,size:"small",plain:"",type:"primary",class:"fox-dialog__footer-cancel",onClick:e.onCancel},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.cancelText),1)]),_:1},8,["onClick"])),e.noConfirmBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:1,size:"small",type:"primary",class:"fox-dialog__footer-ok",onClick:e.onConfirm},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1},8,["onClick"]))],64))],2))],2)]),_:3},8,["teleport","visible","close-on-click-overlay","lock-scroll","pop-class","style","overlay-class","overlay-style","onClickOverlay","onClickCloseIcon"])}const Da=K(_h,[["render",ng]]);class og{title="";content="";cancelText="";confirmText="";textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=n=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1}class lg{options=new og;instance;constructor(n){let o=Object.assign(this.options,n),l=document.body,r=o.teleport;r!="body"&&(typeof r=="string"?l=document.querySelector(r):l=o.teleport);const i=document.createElement("view");i.id="dialog-"+o.id;const a={setup(){return o.onUpdate=s=>{s==!1&&l.removeChild(i)},o?.onOpened&&o?.onOpened(),o.teleport=`#${i.id}`,()=>t.h(Da,o)}};this.instance=t.createVNode(a),l.appendChild(i),t.render(this.instance,i)}close=()=>{};setDefaultOptions=n=>{};resetDefaultOptions=()=>{}}const Kt=function(e){return new lg(e)};Kt.install=e=>{e.use(Da),e.config.globalProperties.$dialog=Kt};const{componentName:ag,create:rg,scope:sg}=O("infiniteloading"),ig=rg({props:{hasMore:{type:Boolean,default:!0},threshold:{type:Number,default:200},pullIcon:{type:String,default:"refresh"},pullClass:{type:String},pullText:{type:String,default:""},loadIcon:{type:String,default:"refresh"},loadClass:{type:String},loadText:{type:String,default:""},loadMoreText:{type:String,default:"..."},useWindow:{type:Boolean,default:!0},containerId:{type:String,default:""},useCapture:{type:Boolean,default:!1},isOpenRefresh:{type:Boolean,default:!1}},emits:["scroll-change","load-more","refresh"],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l}=_.useFoxI18n(sg),r=l(e,["pullText","loadText","loadMoreText"]),i=t.reactive({scrollEl:window,scroller:null,refreshTop:null,beforeScrollTop:0,isTouching:!1,isInfiniting:!1,refreshMaxH:0,y:0,x:0,distance:0}),a=t.computed(()=>({[ag]:!0})),s=t.computed(()=>({height:i.distance<0?"0px":`${i.distance}px`,transition:i.isTouching?"height 0s cubic-bezier(0.25,0.1,0.25,1)":"height 0.2s cubic-bezier(0.25,0.1,0.25,1)"})),c=()=>window.requestAnimationFrame||window.webkitRequestAnimationFrame||function(v){window.setTimeout(v,1e3/60)},m=()=>window.pageYOffset!==void 0?window.pageYOffset:(document.documentElement||document.body.parentNode||document.body).scrollTop,d=v=>v?v.offsetTop+d(v.offsetParent):0,f=()=>{let v=0,C=0,N="down";const V=m();if(e.useWindow)i.scroller&&(v=d(i.scroller)+i.scroller.offsetHeight-V-window.innerHeight),C=V;else{const{scrollHeight:A,clientHeight:E,scrollTop:q}=i.scrollEl;v=A-E-q,C=q}return i.beforeScrollTop>C?N="up":N="down",i.beforeScrollTop=C,n("scroll-change",C),v<=e.threshold&&N=="down"},g=()=>{i.isInfiniting=!1},k=()=>{c()(()=>{if(!f()||!e.hasMore||i.isInfiniting)return!1;i.isInfiniting=!0,n("load-more",g)})},b=()=>{i.scrollEl.addEventListener("scroll",k,e.useCapture)},h=()=>{i.distance=0,i.isTouching=!1},S=v=>{if(i.beforeScrollTop==0&&!i.isTouching&&e.isOpenRefresh){i.y=v.touches[0].pageY,i.isTouching=!0;const C=i.refreshTop.firstElementChild.offsetHeight;i.refreshMaxH=Math.floor(C*1+10)}},u=v=>{i.distance=v.touches[0].pageY-i.y,i.distance>0&&i.isTouching?(v.preventDefault(),i.distance>=i.refreshMaxH&&(i.distance=i.refreshMaxH)):(i.distance=0,i.isTouching=!1)},p=()=>{i.distance<i.refreshMaxH?i.distance=0:n("refresh",h)},w=v=>e.containerId?document.querySelector(`#${e.containerId}`):v&&v.parentNode;t.onMounted(()=>{const v=w(i.scroller);i.scrollEl=e.useWindow?window:v,b()}),t.onUnmounted(()=>{i.scrollEl.removeEventListener("scroll",k,e.useCapture)});const y=t.ref(!1);return t.onActivated(()=>{y.value&&(y.value=!1,b())}),t.onDeactivated(()=>{y.value=!0,i.scrollEl.removeEventListener("scroll",k,e.useCapture)}),{...r,classes:a,...t.toRefs(i),touchStart:S,touchMove:u,touchEnd:p,getStyle:s,slots:o}}}),cg={class:"top-box"},ug={class:"top-text"},dg={class:"fox-infinite-container"},fg={class:"fox-infinite-bottom"},mg={key:0,class:"bottom-box"},pg={class:"bottom-text"},hg={key:0,class:"tips"};function gg(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"scroller",onTouchstart:n[0]||(n[0]=(...s)=>e.touchStart&&e.touchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.touchMove&&e.touchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.touchEnd&&e.touchEnd(...s))},[t.createElementVNode("view",{class:"fox-infinite-top",ref:"refreshTop",style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("view",cg,[t.createVNode(a,{class:t.normalizeClass(["top-img",e.pullClass]),name:e.pullIcon},null,8,["class","name"]),t.createElementVNode("view",ug,t.toDisplayString(e.pullText),1)])],4),t.createElementVNode("view",dg,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",fg,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",mg,[e.slots.loading?t.renderSlot(e.$slots,"loading",{key:1}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createVNode(a,{class:t.normalizeClass(["bottom-img",e.loadClass]),name:e.loadIcon},null,8,["class","name"]),t.createElementVNode("view",pg,t.toDisplayString(e.loadText),1)],64))])):e.hasMore?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.slots.finished?t.renderSlot(e.$slots,"finished",{key:1}):(t.openBlock(),t.createElementBlock("view",hg,t.toDisplayString(e.loadMoreText),1))],64))])],34)}const Ia=K(ig,[["render",gg]]),{componentName:$1,create:yg}=O("notify"),vg=yg({components:{[he.name]:he},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"},modelVisible:{type:Boolean,default:!1},position:{type:String,default:"top"},isWrapTeleport:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},setup(e,{slots:n}){let o=null;const l=t.reactive({mounted:!1});t.onMounted(()=>{});const r=t.ref(e.modelVisible),i=()=>{e.onClick&&e.onClick()},a=()=>{o&&(clearTimeout(o),o=null)},s=()=>{l.mounted=!1},c=()=>{a(),e.duration&&(o=setTimeout(()=>{s()},e.duration))};return e.duration&&c(),t.watch(()=>e.duration,d=>{d&&c()}),{state:l,hide:s,onAfterLeave:()=>{a(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:i,showPopup:r}}});function kg(e,n,o,l,r,i){const a=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(a,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=s=>e.showPopup=s),position:e.position,overlay:!1,isWrapTeleport:e.isWrapTeleport},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","isWrapTeleport"])}const ro=K(vg,[["render",kg]]),xn={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:""};let Ge=[],yt=[];const qa=e=>{if(e){const n=document.getElementById(e);yt=yt.filter(o=>o.id!==e),Ge=Ge.filter(o=>o!==e),n&&document.body.removeChild(n)}else Ge.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),yt=[],Ge=[]},Sg=e=>{const n=document.getElementById(e.id);if(n){const o=yt.find(r=>r.id===e.id);o?e={...xn,...o,...e}:e={...xn,...e};const l=t.createVNode(ro,e);return t.render(l,n),l.component.ctx}},ut=e=>{e.unmount=qa;let n;if(e.id){if(n=e.id,Ge.find(i=>i===e.id))return Sg(e)}else n=new Date().getTime()+"";e={...xn,...e},e.id=n,Ge.push(e.id),yt.push(e);const o=document.createElement("view");o.id="notify-"+e.id;const l={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{document.body.removeChild(o)},e.duration)}),()=>t.h(ro,e)}},r=t.createVNode(l);document.body.appendChild(o),t.render(r,o)},dt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},so={text(e,n={}){return dt(e),ut({...n,msg:e})},primary(e,n={}){return dt(e),ut({...n,msg:e,type:"primary"})},success(e,n={}){return dt(e),ut({...n,msg:e,type:"success"})},danger(e,n={}){return dt(e),ut({...n,msg:e,type:"danger"})},warn(e,n={}){return dt(e),ut({...n,msg:e,type:"warning"})},hide(){qa()},install(e){e.use(ro),e.config.globalProperties.$notify=so}},{create:bg}=O("toast"),Cg=bg({components:{[re.name]:re},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,default:"20"},icon:{type:String,required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:n}){let o;const l=t.reactive({mounted:!1});t.onMounted(()=>{l.mounted=!0});const r=()=>{o&&(clearTimeout(o),o=null)},i=()=>{l.mounted=!1},a=()=>{r(),e.duration&&(o=setTimeout(()=>{i()},e.duration))},s=()=>{e.closeOnClickOverlay&&(i(),n("close"))};e.duration&&a(),t.watch(()=>e.duration,g=>{g&&a()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),m=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),d=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:l,hide:i,clickCover:s,hasIcon:c,toastBodyClass:m,toastIconWrapperClass:d,onAfterLeave:()=>{r(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),wg={key:1,class:"fox-toast-title"},Ng=["innerHTML"];function Bg(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:n[0]||(n[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[t.createVNode(a,{size:e.iconSize,color:e.iconColor,name:e.icon},null,8,["size","color","name"])],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",wg,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Ng)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const io=K(Cg,[["render",Bg]]),Rn={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 Ze=[],vt=[];const za=e=>{if(e){const n=document.getElementById(e);vt=vt.filter(o=>o.id!==e),Ze=Ze.filter(o=>o!==e),n&&document.body.removeChild(n)}else Ze.forEach(n=>{const o=document.getElementById(n);o&&document.body.removeChild(o)}),vt=[],Ze=[]},Vg=e=>{const n=document.getElementById(e.id);if(n){const o=vt.find(r=>r.id===e.id);o?e={...Rn,...o,...e}:e={...Rn,...e};const l=t.createVNode(io,e);return t.render(l,n),Vt}},ft=e=>{e.unmount=za;let n;if(e.id){if(n=e.id,Ze.find(r=>r===e.id))return Vg(e)}else n=new Date().getTime()+"";e={...Rn,...e},e.id=n,Ze.push(e.id),vt.push(e);const o=document.createElement("div");o.id=e.id;const l=t.createVNode(io,e);return t.render(l,o),document.body.appendChild(o),Vt},zt=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Vt={text(e,n={}){return zt(e),ft({...n,type:"text",msg:e})},success(e,n={}){return zt(e),ft({icon:"success",...n,msg:e,type:"success"})},fail(e,n={}){return zt(e),ft({icon:"failure",...n,msg:e,type:"fail"})},warn(e,n={}){return zt(e),ft({icon:"tips",...n,msg:e,type:"warn"})},loading(e,n={}){return ft({icon:"loading",...n,msg:e,type:"loading"})},hide(e){za(e)},install(e){e.use(io),e.config.globalProperties.$toast=Vt}},{componentName:D1,create:Ag}=O("audio"),Eg=Ag({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:{},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n}){const o=t.ref(null),l=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var b=["webkitVisibilityState","visibilitychange"];try{for(let h=0;h<b.length;h++)document.addEventListener(b[h],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(h){h.message}});const r=b=>{const h=o.value;e.autoplay&&h&&h.paused&&h.play(),l.second=h.duration,l.duration=k(h.duration),n("can-play",b)},i=b=>{l.currentTime=parseInt(b.target.currentTime)},a=()=>{l.currentTime>0&&l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},s=()=>{const b=o.value;l.playing?(b.pause(),l.handPlaying=!1):(b.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},c=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},m=b=>{l.currentDuration=k(b),l.percent=b/l.second*100},d=()=>{l.playing=!1,n("ended")},f=b=>{const h=o.value;h.currentTime=l.second*b/100,n("changeProgress",h.currentTime)},g=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},k=b=>{if(!b)return"00:00:00";let h=parseInt(b),S=Math.floor(h/3600),u=Math.floor((h-S*3600)/60),p=h-S*3600-u*60,w="";return w+=("0"+S.toString()).slice(-2)+":",w+=("0"+u.toString()).slice(-2)+":",w+=("0"+p.toString()).slice(-2),w};return t.watch(()=>l.currentTime,b=>{m(b)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:g,forward:c,fastBack:a,changeStatus:s}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:a,forward:c,changeStatus:s,progressChange:f,audioEnd:d,onTimeupdate:i,handleMute:g,onCanplay:r}}}),Tg={class:"fox-audio"},$g={key:0,class:"progress-wrapper"},Dg={class:"time"},Ig={class:"progress-bar-wrapper"},qg=t.createElementVNode("div",{class:"custom-button"},null,-1),zg={class:"time"},Mg={key:1,class:"fox-audio-icon"},Pg=["controls","src","preload","autoplay","loop","muted"];function xg(e,n,o,l,r,i){const a=t.resolveComponent("fox-range"),s=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",Tg,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",$g,[t.createElementVNode("div",Dg,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Ig,[t.createVNode(a,{modelValue:e.percent,"onUpdate:modelValue":n[0]||(n[0]=c=>e.percent=c),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:t.withCtx(()=>[qg]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",zg,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Mg,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio-icon-box",e.playing?"fox-audio-icon-play":"fox-audio-icon-stop"]),onClick:n[1]||(n[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(s,{key:0,name:"service",class:"fox-icon-am-rotate fox-icon-am-infinite"})):t.createCommentVNode("",!0),e.playing?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:1,name:"service"}))],2)])):t.createCommentVNode("",!0),e.type=="none"?(t.openBlock(),t.createElementBlock("div",{key:2,onClick:n[2]||(n[2]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type!="none"?t.renderSlot(e.$slots,"default",{key:3}):t.createCommentVNode("",!0),t.createElementVNode("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:n[3]||(n[3]=(...c)=>e.onTimeupdate&&e.onTimeupdate(...c)),onCanplay:n[4]||(n[4]=(...c)=>e.onCanplay&&e.onCanplay(...c)),onEnded:n[5]||(n[5]=(...c)=>e.audioEnd&&e.audioEnd(...c)),muted:e.hanMuted},null,40,Pg)])}const Ma=K(Eg,[["render",xg]]),{componentName:I1,create:Rg,scope:Lg}=O("audio-operate"),Og=Rg({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:o}=_.useFoxI18n(Lg),l=t.inject("audioParent"),r=t.reactive(l),i=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(r),customSlot:i,t:o}}}),Fg={class:"fox-audio-operate"};function Ug(e,n,o,l,r,i){const a=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Fg,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[0]=(...s)=>e.fastBack&&e.fastBack(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:n[1]||(n[1]=(...s)=>e.changeStatus&&e.changeStatus(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:n[2]||(n[2]=(...s)=>e.forward&&e.forward(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:n[3]||(n[3]=(...s)=>e.handleMute&&e.handleMute(...s))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{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 Pa=K(Og,[["render",Ug]]),{componentName:Hg,create:Kg}=O("avatar"),jg=Kg({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"},url:{type:String,default:""},alt:{type:String,default:""},icon:{type:String,default:""}},emits:["active-avatar","onError"],setup(e,{emit:n,slots:o}){const{size:l,shape:r,bgColor:i,color:a,icon:s}=t.toRefs(e),c=["large","normal","small"],m=t.inject("avatarGroup",null),d=t.ref(null),f=t.reactive({lightTheme:!1}),g=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const v=m?.avatarGroupRef?.value?.children;v&&p(v)});const k=t.computed(()=>({[Hg]:!0,[`fox-avatar-${l.value||m?.props?.size||"normal"}`]:!0,[`fox-avatar-${r.value||m?.props?.shape||"normal"}`]:!0})),b=t.computed(()=>({width:c.indexOf(l.value)>-1?"":`${l.value}px`,height:c.indexOf(l.value)>-1?"":`${l.value}px`,backgroundColor:`${i.value}`,color:`${a.value}`,marginLeft:g.index!=1&&(m?.props?.span?`${m?.props?.span}px`:""),zIndex:m?.props?.zIndex=="right"?`${Math.abs(g.maxIndex-g.index)}`:""})),h=t.computed(()=>({backgroundColor:`${m?.props?.maxBgColor}`,color:`${m?.props?.maxColor}`})),S=t.computed(()=>s.value?s.value:""),u=t.computed(()=>o.default),p=v=>{g.maxIndex=v.length;for(let C=0;C<v.length;C++)v[C]&&v[C].classList&&v[C].classList[0]=="fox-avatar"&&v[C].setAttribute("data-index",C+1);g.index=d?.value?.dataset?.index,g.index==g.maxIndex&&g.index!=m?.props?.maxCount&&(g.showMax=!0)};return{classes:k,styles:b,iconStyles:S,isShowText:u,maxStyles:h,activeAvatar:v=>{n("active-avatar",v)},onError:v=>{n("onError",v)},avatarGroup:m,visible:f,avatarRef:d,...t.toRefs(g)}}}),Wg=["src","alt"],Yg={key:2,class:"text"},Xg={key:1,class:"text"};function Qg(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");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),onClick:n[1]||(n[1]=(...s)=>e.activeAvatar&&e.activeAvatar(...s)),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.url?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.url,alt:e.alt,onError:n[0]||(n[0]=(...s)=>e.onError&&e.onError(...s))},null,40,Wg)):e.icon?(t.openBlock(),t.createBlock(a,{key:1,class:"icon",name:e.iconStyles},null,8,["name"])):t.createCommentVNode("",!0),e.isShowText?(t.openBlock(),t.createElementBlock("view",Yg,[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0),e.showMax?(t.openBlock(),t.createElementBlock("view",Xg,t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const xa=K(jg,[["render",Qg]]),{componentName:Gg,create:Zg}=O("avatar-group"),Jg=Zg({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:n,slots:o}){t.toRefs(e);const l=t.ref(null),r=t.ref(0),i=t.computed(()=>({[Gg]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:l,index:r}),{classes:i,avatarGroupRef:l}}});function _g(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const Ra=K(Jg,[["render",_g]]),{componentName:ey,create:ty}=O("list"),ny=ty({props:{height:{type:[Number],default:50},listData:{type:Array,default:()=>[]},containerHeight:{type:[Number],default:-1}},emits:["scroll","scroll-bottom"],setup(e,{emit:n}){const o=t.ref(null),l=t.reactive({startOffset:0,start:0,list:e.listData.slice()}),r=Ie(e,"containerHeight",k=>k<=0?k:le(k));t.onMounted(()=>{if(r.value==-1){const k=be(o.value);r.value=k.height}});const i=t.computed(()=>r.value==-1?0:Math.ceil(r.value/e.height)),a=t.computed(()=>l.start+i.value),s=t.computed(()=>`translate3d(0, ${l.startOffset}px, 0)`),c=t.computed(()=>({[ey]:!0})),m=t.computed(()=>({width:`${r.value}px`})),d=t.computed(()=>l.list.length*e.height),f=t.computed(()=>l.list.slice(l.start,Math.min(a.value,l.list.length))),g=()=>{const k=o.value?.scrollTop;l.start=Math.floor(k/e.height),a.value>l.list.length&&(n("scroll"),n("scroll-bottom")),l.startOffset=k-k%e.height};return t.watch(()=>e.listData,()=>{l.list=e.listData.slice()}),{...t.toRefs(l),list:o,getTransform:s,listHeight:d,visibleData:f,classes:c,styles:m,handleScrollEvent:g}}});function oy(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onScrollPassive:n[0]||(n[0]=(...a)=>e.handleScrollEvent&&e.handleScrollEvent(...a)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.listHeight+"px"})},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(a,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",style:t.normalizeStyle({height:e.height+"px"}),key:a},[t.renderSlot(e.$slots,"default",{item:a,index:s})],4))),128))],4)],38)}const La=K(ny,[["render",oy]]),{create:ly}=O("progress"),ay=ly({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:{tyep:String,default:""},textBackground:{tyep:String,default:""},iconName:{type:String,default:"checked"},iconColor:{type:String,default:"#439422"},isShowPercentage:{type:Boolean,default:!0}},setup(e){const n=!!t.useSlots().default,o=t.ref(e.strokeWidth+"px"),l=t.ref(),r=t.ref(),i=t.computed(()=>({width:e.percentage+"%",background:e.strokeColor||""})),a=t.computed(()=>({color:e.textColor||""}));return{height:o,bgStyle:i,textStyle:a,progressOuter:l,insideText:r,slotDefault:n}}}),ry={class:"fox-progress"};function sy(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",ry,[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)},[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)],6),e.showText&&!e.textInside?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-progress-text",style:t.normalizeStyle({lineHeight:e.height})},[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.openBlock(),t.createBlock(a,{key:1,size:"16px",name:e.iconName,color:e.iconColor},null,8,["name","color"])):t.createCommentVNode("",!0)],4)):t.createCommentVNode("",!0)])}const Oa=K(ay,[["render",sy]]),{componentName:iy,create:cy}=O("circleprogress"),uy=cy({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:n}){const o=!!t.useSlots().default,l=Math.random().toString(36).slice(-8),r=t.computed(()=>({[iy]:!0})),i=t.computed(()=>{const d=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${d} 0 90 a 45 45 0 1, ${d} 0 -90`}),a=t.computed(()=>Ve(e.color)?`url(#${l})`:e.color),s=t.computed(()=>{let d=283,f=d*Number(e.progress)/100;return{stroke:Ve(e.color)?`url(#${l})`:e.color,strokeDasharray:`${f}px ${d}px`}}),c=t.computed(()=>({stroke:e.pathColor})),m=t.computed(()=>{if(!Ve(e.color))return;let d=e.color;const f=Object.keys(d).sort((k,b)=>parseFloat(k)-parseFloat(b));let g=[];return f.map((k,b)=>{let h={key:"",value:""};h.key=k,h.value=d[k],g.push(h)}),g});return{classes:r,hoverStyle:s,pathStyle:c,path:i,hoverColor:a,stop:m,slotDefault:o,refRandomId:l}}}),dy={viewBox:"0 0 100 100"},fy=["id"],my=["offset","stop-color"],py=["d","stroke-width"],hy=["d","stroke","stroke-linecap","stroke-width"],gy={class:"fox-circleprogress-text"},yy={key:0};function vy(e,n,o,l,r,i){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",dy,[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,(a,s)=>(t.openBlock(),t.createElementBlock("stop",{key:s,offset:a.key,"stop-color":a.value},null,8,my))),128))],8,fy)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,py),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,hy)])),t.createElementVNode("div",gy,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",yy,t.toDisplayString(e.progress)+"%",1))])],6)}const Fa=K(uy,[["render",vy]]),{componentName:ky,create:Sy}=O("noticebar"),by=Sy({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:String,default:""},rightIcon:{type:String,default:""},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)}},emits:["click","close"],setup(e,{emit:n,slots:o}){const l=t.ref(null),r=t.ref(null),i=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticeBar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null}),a=t.computed(()=>({[ky]:!0})),s=t.computed(()=>i.isCanScroll==null?e.wrapable:!i.isCanScroll&&!e.wrapable),c=t.computed(()=>e.leftIcon!="close"),m=t.computed(()=>{let N={};return e.color&&(N.color=e.color),e.background&&(N.background=e.background),e.direction=="vertical"&&(N.height=`${e.height}px`),N}),d=t.computed(()=>({animationDelay:(i.firstRound?e.delay:0)+"s",animationDuration:i.duration+"s",transform:`translateX(${i.firstRound?0:i.wrapWidth+"px"})`})),f=t.computed(()=>{let N="";return e.leftIcon&&(N=e.leftIcon),N}),g=t.computed(()=>{let N={};if(e.complexAm)N={transform:`translateY(${i.distance}px)`};else if(i.animate){let V=~~(e.height/e.speed/4);N={transition:`all ${V==0?~~(e.height/e.speed):V}s`,"margin-top":`-${e.height}px`}}return N});t.watch(()=>e.text,N=>{k()}),t.watch(()=>e.list,N=>{i.scrollList=[].concat(N)});const k=N=>{i.showNoticeBar!=!1&&setTimeout(()=>{if(!l.value||!r.value)return;const V=l.value.getBoundingClientRect().width,A=r.value.getBoundingClientRect().width;i.isCanScroll=e.scrollable==null?A>V:e.scrollable,i.isCanScroll,i.isCanScroll?(i.wrapWidth=V,i.offsetWidth=A,i.duration=A/e.speed,i.animationClass="play"):i.animationClass=""},0)},b=N=>{n("click",N)},h=N=>{e.closeMode&&(i.showNoticeBar=!e.closeMode),n("close",N)},S=()=>{i.firstRound=!1,setTimeout(()=>{i.duration=(i.offsetWidth+i.wrapWidth)/e.speed,i.animationClass="play-infinite"},0)},u=()=>{p(),i.timer=setInterval(p,~~(e.height/e.speed/4*1e3)+e.standTime)},p=()=>{i.animate=!0,setTimeout(()=>{i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.animate=!1},~~(e.height/e.speed/4*1e3))},w=()=>{i.timer=setInterval(()=>{let N=100;for(let V=0;V<N;V++)y(V,!(V<N-1))},e.standTime+100*e.speed)},y=(N,V)=>{setTimeout(()=>{i.distance-=e.height/100,V&&(i.scrollList.push(i.scrollList[0]),i.scrollList.shift(),i.distance=0)},N*e.speed)},v=N=>{n("click",N)},C=()=>{n("close",i.scrollList[0])};return t.onMounted(()=>{e.direction=="vertical"?(o.default?i.scrollList=[].concat(o.default()[0].children):i.scrollList=[].concat(e.list),setTimeout(()=>{e.complexAm?w():u()},e.standTime)):k(e.text)}),t.onActivated(()=>{i.keepAlive&&(i.keepAlive=!1)}),t.onDeactivated(()=>{i.keepAlive=!0,clearInterval(i.timer)}),t.onUnmounted(()=>{clearInterval(i.timer)}),{...t.toRefs(e),...t.toRefs(i),isEllipsis:s,classes:a,iconShow:c,barStyle:m,contentStyle:d,iconBg:f,horseLampStyle:g,wrap:l,content:r,handleClick:b,onClickIcon:h,onAnimationEnd:S,go:v,handleClickIcon:C,slots:o}}}),Cy={ref:"wrap",class:"wrap"},wy=["onClick"];function Ny(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon"),s=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",{withicon:e.closeMode,close:e.closeMode,wrapable:e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:n[3]||(n[3]=(...c)=>e.handleClick&&e.handleClick(...c))},[e.iconShow?(t.openBlock(),t.createElementBlock("view",{key:0,class:"left-icon",style:t.normalizeStyle({"background-image":`url(${e.iconBg})`})},[t.renderSlot(e.$slots,"left-icon",{},()=>[e.iconBg?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{key:0,name:"notice",size:"16",color:e.color},null,8,["color"]))])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",Cy,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(["content",e.animationClass,{"fox-ellipsis":e.isEllipsis}]),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...c)=>e.onAnimationEnd&&e.onAnimationEnd(...c)),"on:webkitAnimationEnd":n[1]||(n[1]=(...c)=>e.onAnimationEnd&&e.onAnimationEnd(...c))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.rightIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"right-icon",onClick:n[2]||(n[2]=t.withModifiers((...c)=>e.onClickIcon&&e.onClickIcon(...c),["stop"]))},[t.renderSlot(e.$slots,"right-icon",{},()=>[t.createVNode(a,{name:e.rightIcon?e.rightIcon:"close",color:e.color},null,8,["name","color"])])])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticeBar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"?(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:"horseLamp_list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(c,m)=>(t.openBlock(),t.createBlock(s,{key:m,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:c},null,8,["style","item"]))),128))],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"horseLamp_list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(c,m)=>(t.openBlock(),t.createElementBlock("li",{class:"horseLamp_list_item",key:m,style:t.normalizeStyle({height:e.height}),onClick:d=>e.go(c)},t.toDisplayString(c),13,wy))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=c=>!e.slots.rightIcon&&e.handleClickIcon())},[e.slots.rightIcon?t.renderSlot(e.$slots,"rightIcon",{key:0}):e.closeMode?(t.openBlock(),t.createBlock(a,{key:1,type:"cross",color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])],4)):t.createCommentVNode("",!0)],2)}const Ua=K(by,[["render",Ny]]),By="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5u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jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:q1,create:Ey,scope:Ty}=O("empty"),$y={empty:By,error:Vy,network:Ay},Dy=Ey({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=_.useFoxI18n(Ty),o=n(e,["description"]),{image:l,imageSize:r}=t.toRefs(e),i=t.computed(()=>r.value?typeof r.value=="number"?`width:${r.value}px;height:${r.value}px`:`width:${r.value};height:${r.value}`:""),s=l.value.startsWith("https://")||l.value.startsWith("http://")||l.value.startsWith("//")?l.value:$y[l.value];return{...o,imageUrl:s,imgStyle:i}}}),Iy={class:"fox-empty"},qy=["src"],zy={key:1,class:"fox-empty-description"};function My(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",Iy,[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,qy)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",zy,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const Ha=K(Dy,[["render",My]]),{create:Py,scope:xy}=O("video"),Ry=Py({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"],setup(e,{emit:n}){const{t:o}=_.useFoxI18n(xy),l=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}),r=t.ref(null),i=t.computed(()=>e.options.disabled);t.watch(()=>e.source,y=>{y.src&&t.nextTick(()=>{l.videoElm.load()})}),t.watch(()=>e.options,y=>{l.state.isMuted=y?y.muted:!1},{immediate:!0});const a=()=>{l.videoElm=r.value,e.options.autoplay&&setTimeout(()=>{l.videoElm.play()},200),e.options.touchPlay&&(l.showTouchMask=!0),e.options.playsinline&&(l.videoElm.setAttribute("playsinline",e.options.playsinline),l.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),l.videoElm.setAttribute("x5-video-player-type","h5-page"),l.videoElm.setAttribute("x5-video-player-fullscreen",!1)),g(),l.showToolbox?s():(l.videoElm.addEventListener("play",()=>{l.state.playing=!0,n("play",l.videoElm)}),l.videoElm.addEventListener("pause",()=>{l.state.playing=!1,n("pause",l.videoElm)}),l.videoElm.addEventListener("ended",d))},s=()=>{const y=r.value,v=r.value.getElementsByClassName("progress")[0];l.player.$player=y,l.progressBar.progressElm=v,l.progressBar.pos=v.getBoundingClientRect(),l.videoSet.progress.width=Math.round(v.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return l.state.playing=!0,!1;if(l.state.playing=!l.state.playing,l.videoElm)if(l.state.playing)try{setTimeout(()=>{l.videoElm.play()},200),l.videoElm.addEventListener("progress",()=>{m()}),l.videoElm.addEventListener("ended",d),n("play",l.videoElm)}catch{f()}else l.videoElm.pause(),n("pause",l.videoElm)},m=()=>{l.videoSet.loaded&&(l.videoSet.loaded=l.videoElm.buffered.end(0)/l.videoElm.duration*100)},d=()=>{l.state.playing=!1,l.state.isEnd=!0,l.videoSet.displayTime="00:00",l.videoSet.progress.current=0,l.videoElm.currentTime=0,n("playend",l.videoElm)},f=()=>{l.state.isError=!0},g=()=>{l.state.vol=e.options.volume},k=()=>{l.state.isMuted=!l.state.isMuted,l.videoElm.muted=l.state.isMuted},b=()=>{},h=y=>{let C=y.targetTouches[0].pageX-l.progressBar.pos.left;C<=0&&(C=0),C>=l.videoSet.progress.width&&(C=l.videoSet.progress.width),l.videoSet.progress.current=C;let N=l.videoSet.progress.current/l.videoSet.progress.width;l.videoElm.duration&&u(N,l.videoElm.duration)},S=y=>{let C=y.changedTouches[0].pageX-l.progressBar.pos.left;l.videoSet.progress.current=C;let N=C/l.videoSet.progress.width;l.videoElm.duration&&u(N,l.videoElm.duration)},u=(y,v)=>{l.videoElm.currentTime=Math.floor(y*v)},p=()=>{l.state.isError=!1,a()},w=()=>{l.state.fullScreen?(l.state.fullScreen=!1,document.webkitCancelFullScreen()):(l.state.fullScreen=!0,l.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{a()}),{root:r,...t.toRefs(e),...t.toRefs(l),handleError:f,isDisabled:i,play:c,handleMuted:k,touchSlidSrart:b,touchSlidMove:h,touchSlidEnd:S,retry:p,fullScreen:w,t:o}}}),Ly={class:"fox-video",ref:"videocon"},Oy=["muted","autoplay","loop","poster","controls","preload"],Fy=["src","type"],Uy={class:"current-time"},Hy={class:"progress-container"},Ky={class:"progress",ref:"progressBar"},jy=t.createElementVNode("div",{class:"move-handle"},null,-1),Wy=[jy],Yy={class:"played",ref:"playedBar"},Xy={class:"duration-time"},Qy={class:"fox-video-error"},Gy={class:"lose"};function Zy(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("div",Ly,[t.createElementVNode("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:n[0]||(n[0]=(...a)=>e.handleError&&e.handleError(...a))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,Fy)],40,Oy),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"playing-mask",ref:"touchMask",onClick:n[1]||(n[1]=(...a)=>e.play&&e.play(...a))},null,512)):t.createCommentVNode("",!0),e.showToolbox&&!e.isDisabled?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:n[2]||(n[2]=(...a)=>e.play&&e.play(...a))},null,512)),[[t.vShow,!e.state.playing]]):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller",{"show-control":!e.state.playing,"hide-control":e.state.playing}])},[t.createElementVNode("div",{class:"control-play-btn",onClick:n[3]||(n[3]=(...a)=>e.play&&e.play(...a))}),t.createElementVNode("div",Uy,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",Hy,[t.createElementVNode("div",Ky,[t.createElementVNode("div",{class:"buffered",style:t.normalizeStyle({width:`${e.videoSet.loaded}%`})},null,4),t.createElementVNode("div",{class:"video-ball",style:t.normalizeStyle({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:n[4]||(n[4]=t.withModifiers(a=>e.touchSlidMove(a),["stop","prevent"])),onTouchstart:n[5]||(n[5]=t.withModifiers(a=>e.touchSlidSrart(a),["stop"])),onTouchend:n[6]||(n[6]=t.withModifiers(a=>e.touchSlidEnd(a),["stop"]))},Wy,36),t.createElementVNode("div",Yy,null,512)],512)]),t.createElementVNode("div",Xy,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...a)=>e.handleMuted&&e.handleMuted(...a))},null,2),t.createElementVNode("div",{class:"fullscreen-icon",onClick:n[8]||(n[8]=(...a)=>e.fullScreen&&e.fullScreen(...a))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",Qy,[t.createElementVNode("p",Gy,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"retry",onClick:n[9]||(n[9]=(...a)=>e.retry&&e.retry(...a))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const tt=K(Ry,[["render",Zy]]),{create:Jy,componentName:_y}=O("steps"),Ka=Jy({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:n,slots:o}){const l=t.reactive({children:[]}),r=t.computed(()=>{const s=_y;return{[s]:!0,[`${s}-${e.direction}`]:!0,[`${s}-dot`]:!!e.progressDot}}),i=s=>{s&&l.children.push(s)},a=s=>{n("click-step",s)};return t.provide("parent",{relation:i,state:l,props:e,onEmit:a}),()=>t.h("view",{class:r.value},o.default?.())}}),{create:ev,componentName:tv}=O("step"),nv=ev({props:{title:{type:String,default:""},content:{type:String,default:""},icon:{type:String,default:null},iconColor:{type:String,default:""},size:{type:[String,Number],default:"12px"}},emits:["click-step"],setup(e,{emit:n,slots:o}){const{proxy:l}=t.getCurrentInstance(),r=t.inject("parent");r.relation(l);const i=t.reactive({dot:r.props.progressDot}),a=t.computed(()=>r.state.children.indexOf(l)+1),s=()=>{const f=a.value;return f<+r.props.current?"finish":f===+r.props.current?"process":"wait"},c=t.computed(()=>s()),m=t.computed(()=>{const f=tv;return{[f]:!0,[`${f}-${c.value}`]:!0}}),d=()=>{r.onEmit(a.value)};return{...t.toRefs(i),index:a,classes:m,handleClickStep:d}}}),ov={class:"fox-step-head"},lv=t.createElementVNode("view",{class:"fox-step-line"},null,-1),av={key:2,class:"fox-step-inner"},rv={class:"fox-step-main"},sv={class:"fox-step-title"},iv={key:0},cv={key:0,class:"fox-step-content"},uv=["innerHTML"];function dv(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[t.createElementVNode("view",ov,[lv,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":e.icon?"is-icon":"is-text"]])},[e.icon?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-step-icon-inner",color:e.iconColor,name:e.icon,size:e.size},null,8,["color","name","size"])):e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[],64)):(t.openBlock(),t.createElementBlock("view",av,t.toDisplayString(e.index),1))],2)]),t.createElementVNode("view",rv,[t.createElementVNode("view",sv,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",iv,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",cv,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,uv)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ja=K(nv,[["render",dv]]),Wo=5;function fv(){const e=t.reactive({startX:0,startY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""}),n=(i,a)=>i>a&&i>Wo?"horizontal":a>i&&a>Wo?"vertical":"",o=()=>{e.startX=0,e.startY=0,e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction=""};return{state:e,start:i=>{o(),e.startX=i.touches[0].clientX,e.startY=i.touches[0].clientY},reset:o,move:i=>{e.deltaX=i.touches[0].clientX-e.startX,e.deltaY=i.touches[0].clientY-e.startY,e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.direction||(e.direction=n(e.offsetX,e.offsetY))}}}const{create:mv,componentName:Yo}=O("swiper"),pv=mv({props:{width:{type:[Number,String],default(){}},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},isCenter:{type:Boolean,default:!1}},emits:["change"],setup(e,{emit:n,slots:o}){const l=t.ref(),r=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:0,children:[],childrenVNode:[],style:{}}),i=fv(),a=t.computed(()=>({[Yo]:!0})),s=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>s.value?i.state.deltaY:i.state.deltaX),m=t.computed(()=>i.state.direction===e.direction),d=t.computed(()=>r.children.length),f=t.computed(()=>r[s.value?"height":"width"]),g=t.computed(()=>d.value*f.value),k=t.computed(()=>r.rect?(s.value?r.rect.height:r.rect.width)-f.value*d.value:0),b=t.computed(()=>(r.active+d.value)%d.value),h=()=>{let D=0;if(!e.isCenter)D=r.offset;else{let I=s.value?r.rect.height-f.value:r.rect.width-f.value;D=r.offset+(r.active===d.value-1?-I/2:I/2)}r.style={transitionDuration:`${r.moving?0:e.duration}ms`,transform:`translate${s.value?"Y":"X"}(${D}px)`,[s.value?"height":"width"]:`${f.value*d.value}px`,[s.value?"width":"height"]:`${s.value?r.width:r.height}px`}},S=D=>{let I=[],P=o?.default?.();if(P=P.filter(B=>B.children&&Array.isArray(B.children)),P.forEach(B=>{I=I.concat(B.children)}),!r.childrenVNode.length)r.childrenVNode=I.slice(),D.proxy&&r.children.push(D.proxy);else if(r.childrenVNode.length>I.length)r.children=r.children.filter(B=>D.proxy!==B);else if(r.childrenVNode.length<I.length){for(let B=0;B<r.childrenVNode.length;B++)if(I[B].key!==r.childrenVNode[B].key){D.proxy&&r.children.splice(B,0,D.proxy),D.vnode&&r.childrenVNode.splice(B,0,D.vnode);break}r.childrenVNode.length!==I.length&&(D.proxy&&r.children.push(D.proxy),D.vnode&&r.childrenVNode.push(D.vnode))}else r.childrenVNode=I.slice(),D.proxy&&r.children.push(D.proxy)},u=(D,I,P)=>Math.min(Math.max(D,I),P),p=D=>{window.requestAnimationFrame.call(window,D)},w=(D,I=0)=>{let P=D*f.value;e.loop||(P=Math.min(P,-k.value));let B=I-P;return e.loop||(B=u(B,k.value,0)),B},y=D=>{const{active:I}=r;return D?e.loop?u(I+D,-1,d.value):u(I+D,0,d.value-1):I},v=({pace:D=0,offset:I=0,isEmit:P=!1})=>{if(d.value<=1)return;const{active:B}=r,x=y(D),R=w(x,I);if(e.loop){if(r.children[0]&&R!==k.value){const T=R<k.value;r.children[0].setOffset(T?g.value:0)}if(r.children[d.value-1]&&R!==0){const T=R>0;r.children[d.value-1].setOffset(T?-g.value:0)}}r.active=x,r.offset=R,P&&B!==r.active&&n("change",b.value),h()},C=()=>{r.moving=!0,r.active<=-1&&v({pace:d.value}),r.active>=d.value&&v({pace:-d.value})},N=()=>{clearTimeout(r.autoplayTimer)},V=()=>{C(),i.reset(),p(()=>{p(()=>{r.moving=!1,v({pace:-1,isEmit:!0})})})},A=()=>{C(),i.reset(),p(()=>{p(()=>{r.moving=!1,v({pace:1,isEmit:!0})})})},E=D=>{C(),i.reset(),p(()=>{p(()=>{r.moving=!1;let I;e.loop&&d.value===D?I=r.active===0?0:D:I=D%d.value,v({pace:I-r.active,isEmit:!0})})})},q=()=>{e.autoPlay<=0||d.value<=1||(N(),r.autoplayTimer=setTimeout(()=>{A(),q()},Number(e.autoPlay)))},U=(D=+e.initPage)=>{N(),r.rect=l.value.getBoundingClientRect(),D=Math.min(d.value-1,D),r.width=e.width?+e.width:r.rect.width,r.height=e.height?+e.height:r.rect.height,r.active=D,r.offset=w(r.active),r.moving=!0,h(),q()},L=D=>{e.isPreventDefault&&D.preventDefault(),e.isStopPropagation&&D.stopPropagation(),e.touchable&&(i.start(D),r.touchTime=Date.now(),N(),C())},z=D=>{e.touchable&&r.moving&&(i.move(D),m.value&&v({offset:c.value}))},$=D=>{if(!e.touchable||!r.moving)return;const I=c.value/(Date.now()-r.touchTime);if((Math.abs(I)>.3||Math.abs(c.value)>+(f.value/2).toFixed(2))&&m.value){let B=0;const x=s.value?i.state.offsetY:i.state.offsetX;e.loop?B=x>0?c.value>0?-1:1:0:B=-Math[c.value>0?"ceil":"floor"](c.value/f.value),v({pace:B,isEmit:!0})}else c.value&&v({pace:0});r.moving=!1,h(),q()};return t.provide("parent",{props:e,size:f,relation:S}),Nt({prev:V,next:A,to:E}),t.onDeactivated(()=>{N()}),t.onBeforeUnmount(()=>{N()}),t.watch(()=>e.initPage,D=>{t.nextTick(()=>{U(Number(D))})}),t.watch(()=>r.children.length,()=>{t.nextTick(()=>{U()})}),t.watch(()=>e.autoPlay,D=>{D>0?q():N()}),{state:r,classes:a,container:l,componentName:Yo,isVertical:s,slots:o,activePagination:b,onTouchStart:L,onTouchMove:z,onTouchEnd:$}}});function hv(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:n[0]||(n[0]=(...a)=>e.onTouchStart&&e.onTouchStart(...a)),onTouchmove:n[1]||(n[1]=(...a)=>e.onTouchMove&&e.onTouchMove(...a)),onTouchend:n[2]||(n[2]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a)),onTouchcancel:n[3]||(n[3]=(...a)=>e.onTouchEnd&&e.onTouchEnd(...a))},[t.createElementVNode("view",{class:t.normalizeClass({[`${e.componentName}-inner`]:!0,[`${e.componentName}-vertical`]:e.isVertical}),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.componentName}-pagination`]:!0,[`${e.componentName}-pagination-vertical`]:e.isVertical})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(a,s)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===s?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===s}),key:s},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const nt=K(pv,[["render",hv]]),{create:gv,componentName:yv}=O("swiper-item"),vv=gv({setup(e,{slots:n}){const o=t.inject("parent");o.relation(t.getCurrentInstance());const l=t.reactive({offset:0}),r=t.computed(()=>({[yv]:!0})),i=t.computed(()=>{const s={},c=o?.props.direction;return o?.size.value&&(s[c==="horizontal"?"width":"height"]=`${o?.size.value}px`),l.offset&&(s.transform=`translate${c==="horizontal"?"X":"Y"}(${l.offset}px)`),s});return Nt({setOffset:s=>{l.offset=s}}),{style:i,classes:r}}});function kv(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const ot=K(vv,[["render",kv]]),{create:Sv}=O("imagepreviewitem"),bv=Sv({props:{show:{type:Boolean,default:!1},initNo:Number,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},showIndex:{type:Boolean,default:!0},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},minZoom:{type:Number,default:1/3},maxZoom:{type:Number,default:3}},emits:["close","scale"],components:{[he.name]:he,[tt.name]:tt,[nt.name]:nt,[ot.name]:ot,[re.name]:re},setup(e,{emit:n}){const o=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),l=Bt(),r=t.computed(()=>{const{rootWidth:E,rootHeight:q}=e,U=q/E;return o.imageRatio>U}),i=t.computed(()=>{const{scale:E,moveX:q,moveY:U,moving:L,zooming:z}=o,$={transitionDuration:z||L?"0s":".3s"};if(E!==1){const D=q/E,I=U/E;$.transform=`scale(${E}, ${E}) translate(${D}px, ${I}px)`}return $}),a=t.computed(()=>{if(o.imageRatio){const{rootWidth:E,rootHeight:q}=e,U=r.value?q/o.imageRatio:E;return Math.max(0,(o.scale*U-E)/2)}return 0}),s=t.computed(()=>{if(o.imageRatio){const{rootWidth:E,rootHeight:q}=e,U=r.value?q:E*o.imageRatio;return Math.max(0,(o.scale*U-q)/2)}return 0}),c=E=>{const{naturalWidth:q,naturalHeight:U}=E.target;o.imageRatio=U/q},m=()=>{d(1),o.moveX=0,o.moveY=0},d=E=>{E=A(E,+e.minZoom,+e.maxZoom+1),E!==o.scale&&(o.scale=E,n("scale",{scale:E,index:e.initNo}))},f=()=>{const E=o.scale>1?1:2;d(E),o.moveX=0,o.moveY=0},g=E=>Math.sqrt((E[0].clientX-E[1].clientX)**2+(E[0].clientY-E[1].clientY)**2);let k,b,h,S,u,p,w;const y=E=>{const{touches:q}=E,{offsetX:U}=l;l.start(E),w=q.length,k=o.moveX,b=o.moveY,p=Date.now(),o.moving=w===1&&o.scale!==1,o.zooming=w===2&&!U.value,o.zooming&&(h=o.scale,S=g(E.touches))},v=E=>{const{touches:q}=E;if(l.move(E),(o.moving||o.zooming)&&V(E,!0),o.moving){const{deltaX:U,deltaY:L}=l,z=U.value+k,$=L.value+b;o.moveX=A(z,-a.value,a.value),o.moveY=A($,-s.value,s.value)}if(o.zooming&&q.length===2){const U=g(q),L=h*U/S;d(L)}},C=()=>{if(w>1)return;const{offsetX:E,offsetY:q}=l,U=Date.now()-p,L=250,z=5;E.value<z&&q.value<z&&U<L&&(u?(clearTimeout(u),u=null,f()):u=setTimeout(()=>{n("close"),u=null},L))},N=E=>{let q=!1;(o.moving||o.zooming)&&(q=!0,o.moving&&k===o.moveX&&b===o.moveY&&(q=!1),E.touches.length||(o.zooming&&(o.moveX=A(o.moveX,-a.value,a.value),o.moveY=A(o.moveY,-s.value,s.value),o.zooming=!1),o.moving=!1,k=0,b=0,h=1,o.scale<1&&m(),o.scale>e.maxZoom&&(o.scale=+e.maxZoom))),V(E,q),C(),l.reset()},V=(E,q)=>{(typeof E.cancelable!="boolean"||E.cancelable)&&E.preventDefault(),q&&E.stopPropagation()},A=(E,q,U)=>Math.min(Math.max(E,q),U);return t.watch(()=>e.initNo,m),t.watch(()=>e.show,E=>{E||m()}),{...t.toRefs(o),onTouchStart:y,onTouchMove:v,onTouchEnd:N,getDistance:g,imageStyle:i,imageLoad:c}}}),Cv=["src"],wv={key:1,class:"fox-imagepreview-box"};function Nv(e,n,o,l,r,i){const a=t.resolveComponent("fox-video"),s=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(s,{onTouchstart:e.onTouchStart,onTouchmove:e.onTouchMove,onTouchend:e.onTouchEnd,onTouchcancel:e.onTouchEnd},{default:t.withCtx(()=>[e.image&&e.image.src?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.imageStyle),class:"fox-imagepreview-box"},[t.createElementVNode("img",{src:e.image.src,class:"fox-imagepreview-img",onLoad:n[0]||(n[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,Cv)],4)):t.createCommentVNode("",!0),e.video&&e.video.source?(t.openBlock(),t.createElementBlock("view",wv,[t.createVNode(a,{source:e.video.source,options:e.video.options},null,8,["source","options"])])):t.createCommentVNode("",!0)]),_:1},8,["onTouchstart","onTouchmove","onTouchend","onTouchcancel"])}const Bv=K(bv,[["render",Nv]]),{create:Vv}=O("imagepreview"),Av=Vv({props:{show:{type:Boolean,default:!1},images:{type:Array,default:()=>[]},videos:{type:Array,default:()=>[]},contentClose:{type:Boolean,default:!0},initNo:{type:Number,default:1},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},autoplay:{type:[Number,String],default:0},isWrapTeleport:{type:Boolean,default:!1},showIndex:{type:Boolean,default:!0},closeable:{type:Boolean,default:!1},closeIcon:{type:String,default:"circle-close"},closeIconPosition:{type:String,default:"top-right"},beforeClose:Function,minZoom:{type:Number,default:1/3},maxZoom:{type:Number,default:3}},emits:["close","change"],components:{[he.name]:he,[tt.name]:tt,[nt.name]:nt,[ot.name]:ot,[re.name]:re,ImagePreviewItem:Bv},setup(e,{emit:n}){const o=t.ref(),l=t.reactive({showPop:!1,active:1,maxNo:1,rootWidth:0,rootHeight:0}),r=t.computed(()=>{let d={};return e.closeIconPosition=="top-right"?d.right="10px":d.left="10px",d}),i=function(d){l.active=d+1,n("change",l.active)},a=()=>{if(e.beforeClose){const d=e.beforeClose.apply(null,l.active);Wt(d)?d.then(f=>{f&&s()}):d&&s()}else s()},s=()=>{l.showPop=!1,l.active=1,n("close")},c=()=>{a()},m=()=>{setTimeout(()=>{l.rootHeight=o.value.offsetHeight,l.rootWidth=o.value.offsetWidth},100)};return t.watch(()=>e.show,d=>{l.showPop=d,m()}),t.onMounted(()=>{l.active=e.initNo,l.showPop=e.show,l.maxNo=e.images.length+e.videos.length}),{swipeRef:o,...t.toRefs(l),slideChangeEnd:i,onClose:a,handleCloseIcon:c,styles:r}}}),Ev={class:"fox-imagepreview",ref:"swipeRef"},Tv={key:0,class:"fox-imagepreview-index"};function $v(e,n,o,l,r,i){const a=t.resolveComponent("image-preview-item"),s=t.resolveComponent("fox-swiper"),c=t.resolveComponent("fox-icon"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{"pop-class":"custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=d=>e.showPop=d),isWrapTeleport:e.isWrapTeleport,onClick:e.onClose,style:{width:"100%"},"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",Ev,[e.showPop?(t.openBlock(),t.createBlock(s,{key:0,"auto-play":e.autoplay,class:"fox-imagepreview-swiper",loop:!0,"is-preventDefault":!1,direction:"horizontal",onChange:e.slideChangeEnd,"init-page":e.initNo>e.maxNo?e.maxNo-1:e.initNo-1,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[e.videos.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.videos,(d,f)=>(t.openBlock(),t.createBlock(a,{key:f,video:d,rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active,onClose:e.onClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","rootHeight","rootWidth","show","init-no","onClose","maxZoom","minZoom"]))),128)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(d,f)=>(t.openBlock(),t.createBlock(a,{key:f,image:d,rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active,onClose:e.onClose},null,8,["image","rootHeight","rootWidth","show","init-no","onClose"]))),128))]),_:1},8,["auto-play","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",Tv,t.toDisplayString(e.active)+" / "+t.toDisplayString(e.images.length+e.videos.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-imagepreview-close-icon",onClick:n[0]||(n[0]=(...d)=>e.handleCloseIcon&&e.handleCloseIcon(...d)),style:t.normalizeStyle(e.styles)},[t.createVNode(c,t.mergeProps({name:e.closeIcon},e.$attrs,{color:"#ffffff"}),null,16,["name"])],4)):t.createCommentVNode("",!0)]),_:1},8,["visible","isWrapTeleport","onClick"])}const Wa=K(Av,[["render",$v]]);class Dv{show=!1;images=[];initNo=1;paginationVisible=!1;paginationColor="";teleport="body";onClose=()=>{}}class Iv{options=new Dv;constructor(n){const o=Object.assign(this.options,n);let l=document.body;const r=o.teleport;r!="body"&&(typeof r=="string"?l=document.querySelector(r):l=o.teleport);const i=document.createElement("view");i.id="imagepreview-"+new Date().getTime();const a={setup(){return o.teleport=`#${i.id}`,()=>t.h(Wa,o)}},s=t.createVNode(a);l.appendChild(i),t.render(s,i)}}const jt=e=>new Iv(e);jt.install=e=>{e.use(Wa),e.config.globalProperties.$imagepreview=jt};const{componentName:z1,create:qv}=O("countup"),zv=qv({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},machineTrunMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:n}){const o=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:l,scrolling:r,customBgImg:i,type:a}=t.reactive(e);t.watch(()=>e.customChangeNum,(y,v)=>{c(),k(0)}),t.watch(()=>e.machinePrizeLevel,(y,v)=>{o.prizeLevelTrun=y}),t.watch(()=>e.initNum,(y,v)=>{o.current=y,o.valFlag=!1,s()}),t.watch(()=>e.endNum,(y,v)=>{o.current=e.initNum,o.valFlag=!1,s()});const s=()=>{if(o.valFlag)return!1;l&&(r||i?a!="machine"&&k():(g(),setTimeout(()=>{o.valFlag=!0},300)))},c=()=>{clearInterval(Number(o.timer)),o.timer=null},m=(y,v,C)=>{const N=(y.toString().split(".")[1]||"").length,V=(v.toString().split(".")[1]||"").length,A=Math.pow(10,Math.max(N,V));return C=="-"?Number((y*A-v*A).toFixed(0))/A:Number((y*A+v*A).toFixed(0))/A},d=y=>{let{num_total_len:v,pointNum:C,initDigit1:N,initDigit2:V,sortFlag:A}=o,E=A=="add"||A=="equal"?String(V)[y-(v-C)]:10-Number(String(V)[y-(v-C)]),q=A=="add"||A=="equal"?String(N)[y]:10-Number(String(N)[y]),U=y>v-C-1?-E*100+"%":y<=String(N).length-1?-q*100+"%":0;return U=="-1000%"&&(U=0),U},f=y=>{let{num_total_len:v,pointNum:C,initDigit1:N,initDigit2:V,sortFlag:A}=o,E=String(V)[y-(v-C)];return y>v-C-1?E||0:y<=String(N).length-1?String(N)[y]:0},g=()=>{let{endNum:y,initNum:v,speed:C,toFixed:N}=e,V=setInterval(()=>{v>y?o.current<=y||o.current<=C?(o.current=Number(y.toFixed(N)),clearInterval(V),n("scroll-end"),o.valFlag=!1):o.current=Number((parseFloat(String(o.current))-parseFloat(String(C))).toFixed(N)):o.current>=y?(o.current=Number(y.toFixed(N)),clearInterval(V),n("scroll-end"),o.valFlag=!1):o.current=Number((parseFloat(String(o.current))+parseFloat(String(C))).toFixed(N))},e.during)},k=y=>{let{initNum:v,endNum:C,toFixed:N,customBgImg:V}=e;V&&(v=e.customChangeNum);let A,E,q,U;v!=0?(N!=0&&(v=Number(v.toFixed(N))),String(v).indexOf(".")>-1?(A=String(v).split(".")[0].length,E=String(v).split(".")[1].length):(A=String(v).length,E=0)):(A=1,E=0),C!=0?(N!=0&&(C=Number(C.toFixed(N))),String(C).indexOf(".")>-1?(q=String(C).split(".")[0].length,U=String(C).split(".")[1].length):(q=String(C).length,U=0)):(q=1,U=0);let L=A>=q?A:q,z=E>=U?E:U;o.num_total_len=L+z,o.pointNum=z,v>C?(o.sortFlag="reduce",o.to0_10=[0,9,8,7,6,5,4,3,2,1,0],o.totalCount=m(v,C,"-"),o.numberVal=Number(String(v))):v<C?(o.sortFlag="add",o.to0_10=[0,1,2,3,4,5,6,7,8,9,0],o.totalCount=m(C,v,"-"),o.numberVal=Number(String(C))):o.sortFlag="equal";var $=1;for(let I=0;I<o.pointNum;I++)$*=10;var D=o.numberVal*$;if(o.relNum=D,N!=0&&(o.pointNum=String(o.numberVal).split(".")[1]?String(o.numberVal).split(".")[1].length:0,o.num_total_len=String(D).length),String(v).indexOf(".")>-1){let I=String(v).split(".");o.initDigit1=Number(I[0]),o.initDigit2=Number(I[1])}else o.initDigit1=v,o.initDigit2=0;r&&!V?t.nextTick(()=>{if(o.sortFlag=="equal")return!1;let P=document.getElementsByClassName("numberItem")[o.num_total_len-1];b(P)}):y!==0&&S()},b=y=>{c();var v=1;o.pointNum!=0&&(v=1/Math.pow(10,o.pointNum)),o.timer=setInterval(()=>{h(y),o.totalCount=m(o.totalCount,v,"-"),o.totalCount<=0&&(c(),n("scroll-end"),o.valFlag=!1)},e.during)},h=y=>{let v=y.getAttribute("turn-number"),C;if(o.sortFlag=="add"?C=parseInt(String(v))+1:C=parseInt(String(v))-1>=0?parseInt(String(v))-1:9,y.setAttribute("turn-number",String(C)),(y.style.transition=="none 0s ease 0s"||C==1||!y.style.transition)&&(y.style.transition=`all linear ${e.during}ms`),C==10||o.sortFlag=="reduce"&&C==0){var N=null;y.style.top=`-${o.sortFlag=="add"?C*100:(10-C)*100}%`,y.setAttribute("turn-number","0"),N=setTimeout(()=>{N&&clearTimeout(N),y.style.transition="none",y.style.top="0",C==10&&y.previousSibling&&h(y.previousSibling)},.975*e.during)}else y.style.top=`-${o.sortFlag=="add"?C*100:(10-C)*100}%`;y.style.top=="-100%"&&o.sortFlag=="reduce"&&h(y.previousSibling)},S=()=>{o.pointNum!=0&&Math.pow(10,o.pointNum),t.nextTick(()=>{document.getElementsByClassName("run-number-img")[0].addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),o.valFlag=!1})})},u=()=>{for(o.notPrize=[];o.notPrize.length<3;){var y=Math.floor(Math.random()*e.machinePrizeNum+1);o.notPrize.indexOf(y)==-1&&o.notPrize.push(y)}};Jd({machineLuck:()=>{const y=e.machineTrunMore<0?0:e.machineTrunMore;let v=e.numHeight*e.machinePrizeNum;o.prizeLevelTrun<0&&u();for(let C=0;C<e.machineNum;C++)setTimeout(()=>{let N=v*(C+1+parseFloat(String(y)));o.prizeYPrev.length!=0&&(o.prizeY[C]=o.prizeYPrev[C]);let V=o.prizeYPrev[C]?o.prizeYPrev[C]:0,A=N+V+(e.machinePrizeNum-o.prizeLevelTrun+1)*e.numHeight+(v-V);o.prizeLevelTrun<0&&(A+=e.numHeight*o.notPrize[C]),w(C,A,V)},500*C)}});const w=(y,v,C)=>{let N=setInterval(()=>{if(C<=v)C+=10,o.prizeY[y]=parseFloat(String(C));else if(clearInterval(N),N=null,o.finshMachine+=1,o.prizeY[y]=v,o.finshMachine==e.machineNum){let V=e.numHeight*e.machinePrizeNum;o.prizeYPrev=[],JSON.parse(JSON.stringify(o.prizeY)).forEach(E=>{let q=E;for(;q>V;)q-=V;o.prizeYPrev.push(q)}),setTimeout(()=>{o.finshMachine=0,o.prizeLevelTrun<0?(n("scroll-end",!1),o.valFlag=!1):(n("scroll-end",!0),o.valFlag=!1)},130)}},30)};return t.onMounted(()=>{o.current=e.initNum,t.nextTick(()=>{s()})}),t.onUnmounted(()=>{c(),o.timer=null}),{...t.toRefs(o),...t.toRefs(t.reactive(e)),topNumber:d,turnNumber:f}}}),Mv={class:"fox-countup"},Pv=["turn-number"];function xv(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",Mv,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"run-number-machine-img",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(a,s)=>(t.openBlock(),t.createElementBlock("view",{class:"run-number-machine-img-li",ref_for:!0,ref:"run-number-machine-img-li",key:"mImg"+s,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[s]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,class:"run-number-img",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(a,s)=>(t.openBlock(),t.createElementBlock("view",{class:"run-number-img-li",key:"cImg"+s,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(s>e.num_total_len-e.pointNum-1?s==e.num_total_len-e.pointNum?s*1.5:s*1.3:s)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPosition:"0 "+-(String(e.relNum)[s]*e.numHeight+e.customSpacNum*String(e.relNum)[s])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"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:"run-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,(a,s)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:"numberItem",class:"numberItem",key:a,style:t.normalizeStyle({top:e.topNumber(s),left:e.numWidth*(s>e.num_total_len-e.pointNum-1?s*1.1:s)+"px"}),"turn-number":e.turnNumber(s)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,m)=>(t.openBlock(),t.createElementBlock("view",{class:"itemSpan",key:"dote"+m,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,Pv))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"pointstyl",style:t.normalizeStyle({width:e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px",top:0,left:e.numWidth*(e.num_total_len-e.pointNum)+"px"})},".",4)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.current),1)],64))],64))])}const Ya=K(zv,[["render",xv]]),mt=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Xo=e=>{if(!e)return Date.now();let n=Number(e);return n=n>0?+n:Number(n.toString().replace(/\-/g,"/")),new Date(n).getTime()},{componentName:Rv,create:Lv}=O("countdown"),Ov=Lv({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:n,slots:o}){const l=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),r=t.computed(()=>({[Rv]:!0})),i=t.computed(()=>c(l.restTime)),a=()=>{l.handleEndTime=e.endTime,l.diffTime=Date.now()-Xo(e.startTime),l.counting||(l.counting=!0),s()},s=()=>{window!==void 0&&(l.timer=requestAnimationFrame(()=>{if(l.counting){const k=Date.now()-l.diffTime,b=Math.max(l.handleEndTime-k,0);l.restTime=b,b||(l.counting=!1,f(),n("on-end")),b>0&&s()}}))},c=(k,b)=>{const h=k;let S={d:0,h:0,m:0,s:0,ms:0};const u=1e3,p=60*u,w=60*p,y=24*w;return h>0&&(S.d=h>=u?Math.floor(h/y):0,S.h=Math.floor(h%y/w),S.m=Math.floor(h%w/p),S.s=Math.floor(h%p/u),S.ms=Math.floor(h%u)),b=="custom"?S:m({...S})},m=k=>{let{d:b,h,m:S,s:u,ms:p}=k,w=e.format;if(w.includes("DD")?w=w.replace("DD",mt(b)):h+=Number(b)*24,w.includes("HH")?w=w.replace("HH",mt(h)):S+=Number(h)*60,w.includes("mm")?w=w.replace("mm",mt(S)):u+=Number(S)*60,w.includes("ss")?w=w.replace("ss",mt(u)):p+=Number(u)*1e3,w.includes("S")){const y=mt(p,3).toString();w.includes("SSS")?w=w.replace("SSS",y):w.includes("SS")?w=w.replace("SS",y.slice(0,2)):w.includes("S")&&(w=w.replace("SS",y.slice(0,1)))}return w},d=()=>{!l.counting&&!e.autoStart&&(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),s(),n("on-restart",l.restTime))},f=()=>{cancelAnimationFrame(l.timer),l.counting=!1,n("on-paused",l.restTime)},g=()=>{e.autoStart||(f(),l.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?a():l.restTime=e.time}),t.watch(()=>l.restTime,k=>{let b=c(k,"custom");n("update:modelValue",b),n("input",b)}),t.watch(()=>e.paused,(k,b)=>{b?(l.counting||(l.counting=!0,l.handleEndTime=Date.now()+Number(l.restTime),s()),n("on-restart",l.restTime)):l.counting&&f()}),t.watch(()=>e.endTime,k=>{a()}),t.watch(()=>e.startTime,k=>{a()}),{...t.toRefs(e),slots:o,classes:r,getTimeStamp:Xo,start:d,pause:f,renderTime:i,reset:g}}}),Fv=["innerHTML"];function Uv(e,n,o,l,r,i){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:"fo xcd-block",innerHTML:e.renderTime},null,8,Fv))],2)}const Xa=K(Ov,[["render",Uv]]),{create:Hv}=O("badge"),Kv=Hv({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const n=t.reactive({}),o=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),l=t.computed(()=>{if(e.dot)return;const r=e.value,i=e.max;return typeof r=="number"&&typeof i=="number"&&i<r?`${i}+`:r});return{state:n,stl:o,content:l}}}),jv={class:"fox-badge"},Wv={class:"slot-icons"},Yv=["textContent"];function Xv(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",jv,[t.createElementVNode("view",Wv,[t.renderSlot(e.$slots,"icons")]),t.renderSlot(e.$slots,"default"),t.withDirectives(t.createElementVNode("view",{textContent:t.toDisplayString(e.content),class:t.normalizeClass(["fox-badge__content sup",{"is-dot":e.dot}]),style:t.normalizeStyle(e.stl)},null,14,Yv),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const Qa=K(Kv,[["render",Xv]]),{componentName:Qv,create:Gv}=O("tag"),Zv=Gv({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}},emits:["close","click"],setup(e,{emit:n}){const{type:o,color:l,plain:r,round:i,mark:a,textColor:s}=t.toRefs(e);return{classes:t.computed(()=>{const g=Qv;return{[g]:!0,[`${g}--${o.value}`]:o.value,[`${g}--plain`]:r.value,[`${g}--round`]:i.value,[`${g}--mark`]:a.value}}),getStyle:()=>{const g={};return s.value?g.color=s.value:l.value&&r.value&&(g.color=l.value),r.value?(g.background="#fff",g["border-color"]=l.value):l.value&&(g.background=l.value),g},onClose:g=>{g.stopPropagation(),n("close",g)},onClick:g=>{n("click",g)}}}});function Jv(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:n[0]||(n[0]=(...s)=>e.onClick&&e.onClick(...s))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(a,{key:0,class:"fox-tag--close",name:"close",size:"12",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const Ga=K(Zv,[["render",Jv]]),{componentName:_v,create:ek}=O("popover"),tk=ek({inheritAttrs:!1,components:{[he.name]:he,[et.name]:et},props:{...Oe,list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"}},emits:["update","update:visible","close","choose","openPopover"],setup(e,{emit:n}){const o=t.ref(),l=t.reactive({elWidth:0,elHeight:0}),r=t.ref(e.visible),{theme:i,location:a}=t.toRefs(e),s=t.computed(()=>{const u=_v;return{[u]:!0,[`${u}--${i.value}`]:i.value}}),c=t.computed(()=>{const u="popoverContent";return{[u]:!0,[`${u}--${a.value}`]:a.value}}),m=t.computed(()=>{const u="popoverArrow";return{[u]:!0,[`${u}--${a.value}`]:a.value}});function d(){l.elWidth=o.value.offsetWidth,l.elHeight=o.value.offsetHeight}const f=t.computed(()=>{const u={};return a.value=="top"?(u.bottom=l.elHeight+20+"px",u.left="0px"):a.value=="right"?(u.top="0px",u.right=-l.elWidth+"px"):a.value=="left"?(u.top="0px",u.left=-l.elWidth+"px"):(u.top=l.elHeight+20+"px",u.left="0px"),u}),g=t.computed(()=>{const u={};return a.value=="top"?(u.bottom="-20px",u.left=l.elWidth/2+"px"):a.value=="right"?(u.top="20px",u.left="-20px"):a.value=="left"?(u.top="20px",u.right="-20px"):(u.left=l.elWidth/2+"px",u.top="-20px"),u});t.onMounted(()=>{d()}),t.watch(()=>e.visible,u=>{r.value=u});const k=u=>{n("update",u),n("update:visible",u)};return{classes:s,showPopup:r,openPopover:()=>{k(!e.visible),n("open")},popoverContent:c,popoverArrow:m,closePopover:()=>{n("close"),n("update:visible",!1)},chooseItem:(u,p)=>{u.disabled||n("choose",u,p)},getReference:d,reference:o,getStyle:f,getArrowStyle:g}}}),nk={ref:"reference"},ok=["onClick"],lk={class:"title-name"};function ak(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{onClick:n[1]||(n[1]=t.withModifiers((...s)=>e.openPopover&&e.openPopover(...s),["stop"])),class:t.normalizeClass(e.classes)},[t.createElementVNode("div",nk,[t.renderSlot(e.$slots,"reference")],512),e.showPopup?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("view",{class:"more-background",onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.closePopover&&e.closePopover(...s),["stop"]))}),t.createElementVNode("view",{class:t.normalizeClass(e.popoverContent),style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("view",{class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.getArrowStyle)},null,6),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass({"title-item":!0,disabled:s.disabled}),onClick:t.withModifiers(m=>e.chooseItem(s,c),["stop"])},[s.icon?t.renderSlot(e.$slots,"default",{key:0},()=>[t.createVNode(a,{class:"item-img",name:s.icon},null,8,["name"])]):t.createCommentVNode("",!0),t.createElementVNode("view",lk,t.toDisplayString(s.name),1)],10,ok))),128))],6)],64)):t.createCommentVNode("",!0)],2)}const Za=K(tk,[["render",ak]]),rk={props:{width:{type:String,default:"100px"},height:{type:String,default:"100px"},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(e){const{avatarShape:n,round:o,avatarSize:l}=t.toRefs(e),r=t.computed(()=>{const s="avatarClass";return{[s]:!0,[`${s}--${n.value}`]:n.value}}),i=s=>({[s]:!0,[`${s}--round`]:o.value}),a=()=>l.value?{width:l.value,height:l.value}:{width:"50px",height:"50px"};return t.onMounted(()=>{}),{avatarShape:n,avatarClass:r,getBlockClass:i,getStyle:a}}},{create:sk}=O("skeleton"),ik=sk(rk),ck={key:0},uk={key:1,class:"skeleton"},dk={key:0,class:"skeleton-animation"},fk={class:"content"};function mk(e,n,o,l,r,i){const a=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",uk,[e.animated?(t.openBlock(),t.createElementBlock("view",dk)):t.createCommentVNode("",!0),t.createElementVNode("view",fk,[e.avatar?(t.openBlock(),t.createBlock(a,{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:"content-line",style:t.normalizeStyle({width:e.width})},[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.getBlockClass("blockTitle")),style:t.normalizeStyle({height:e.height})},null,6)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.row),s=>(t.openBlock(),t.createElementBlock("view",{key:s,class:t.normalizeClass(e.getBlockClass("blockLine")),style:t.normalizeStyle({height:e.height})},null,6))),128))],4)])])):(t.openBlock(),t.createElementBlock("view",ck,[t.renderSlot(e.$slots,"default")]))}const Ja=K(ik,[["render",mk]]),{create:pk}=O("collapse"),hk=pk({props:{active:{type:[String,Number,Array]},accordion:{type:Boolean},titleIcon:{type:String,default:""},titleIconSize:{type:String,default:"16px"},titleIconColor:{type:String,default:""},titleIconPosition:{type:String,default:"left"},icon:{type:String,default:""},iconSize:{type:String,default:"16px"},iconColor:{type:String,default:""},rotate:{type:[String,Number],default:180}},emits:["update:active","change"],setup(e,{emit:n,slots:o}){const l=t.ref(null),r=t.ref([]);t.watch(()=>e.active,(c,m)=>{let d=r.value;Array.from(d).forEach(f=>{typeof c=="number"||typeof c=="string"?c==f.name?f.changeOpen(!0):f.changeOpen(!1):Object.values(c)instanceof Array&&(c.indexOf(Number(f.name))>-1||c.indexOf(String(f.name))>-1?f.changeOpen(!0):f.changeOpen(!1)),f.animation()})}),t.onMounted(()=>{r.value=t.getCurrentInstance().provides.collapseParent.children||[]});const i=c=>{n("update:active",c),n("change",c)},a=c=>{const m=e.active instanceof Object?Object.values(e.active):e.active;let d=-1;m.forEach((f,g)=>{String(f)==String(c)&&(d=g)}),d>-1?m.splice(d,1):m.push(c),i(m)},s=c=>{const{accordion:m,active:d}=e;if(m)return typeof d=="number"||typeof d=="string"?d==c:!1};return t.provide("collapseParent",{children:[],props:e,changeValAry:a,changeVal:i,isExpanded:s}),{collapseDom:l}}}),gk={ref:"collapseDom"};function yk(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",gk,[t.renderSlot(e.$slots,"default")],512)}const _a=K(hk,[["render",yk]]),{create:vk,componentName:kk}=O("collapse-item"),Sk=vk({props:{title:{type:String,default:""},subTitle:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},collapseRef:{type:Object}},setup(e,n){const o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const y=kk;return{[y]:!0,[`${y}-icon`]:l.props.icon}});(y=>{y.proxy&&l.children.push(y.proxy)})(t.getCurrentInstance());const a=t.reactive({icon:l.props.icon,iconSize:l.props.iconSize,iconColor:l.props.iconColor,openExpanded:!1,iconStyle:{transform:"rotate(0deg)",marginTop:l.props.iconHeght?"-"+l.props.iconHeght/2+"px":"-10px"}}),s=t.reactive({titleIcon:l.props.titleIcon,titleIconSize:l.props.titleIconSize,titleIconColor:l.props.titleIconColor,titleIconPosition:l.props.titleIconPosition}),c=t.ref(null),m=t.ref(null),d=()=>{const y=document.getElementsByClassName("collapse-wrapper")[0];y&&(y.style.willChange="auto")},f=()=>{const y=c.value,v=m.value;if(!y||!v)return;const C=v.offsetHeight||"auto";if(C){const N=`${C}px`;y.style.willChange="height",y.style.height=a.openExpanded?N:0,l.props.icon&&!a.openExpanded?a.iconStyle.transform="rotate(0deg)":a.iconStyle.transform="rotate("+l.props.rotate+"deg)"}a.openExpanded||d()},g=()=>{a.openExpanded=!a.openExpanded,f()},k=()=>{g(),l.props.icon&&(a.iconStyle.transform="rotate("+l.props.rotate+"deg)")},b=t.computed(()=>e.name),h=()=>{l.props.accordion?t.nextTick(()=>{b.value==l.props.active?g():l.changeVal(b.value)}):(l.changeValAry(String(e.name)),g())},S=y=>{a.openExpanded=y},u=t.computed(()=>l?l.isExpanded(e.name):null);t.watch(u,(y,v)=>{y&&(a.openExpanded=!0)}),t.watch(()=>n?.slots?.default?.(),()=>{setTimeout(()=>{f()},300)});const p=()=>{const{name:y}=e,v=l&&l.props.active;t.nextTick(()=>{typeof v=="number"||typeof v=="string"?y==v&&k():Object.values(v)instanceof Array&&Object.values(v).filter(N=>N==y).length>0&&k()})};t.onMounted(()=>{p()});const w=t.computed(()=>{let y=m.value,v="";return y?.innerText||(v="empty"),v});return{classes:r,emptyContent:w,...t.toRefs(a),...t.toRefs(l.props),...t.toRefs(s),wrapperRef:c,contentRef:m,open:g,toggleOpen:h,changeOpen:S,animation:f}}}),bk={class:"collapse-title"},Ck={class:"collapse-title-value"},wk=["innerHTML"],Nk={key:0,class:"subTitle"},Bk=["innerHTML"],Vk={key:0,class:"collapse-extraWrapper"},Ak={class:"collapse-extraRender"},Ek={class:"collapse-wrapper",ref:"wrapperRef"};function Tk(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["collapse-item",{"item-expanded":e.openExpanded},{"fox-collapse-item-disabled":e.disabled}]),onClick:n[0]||(n[0]=(...s)=>e.toggleOpen&&e.toggleOpen(...s))},[t.createElementVNode("view",bk,[t.createElementVNode("view",null,[t.createElementVNode("view",Ck,[e.titleIcon?(t.openBlock(),t.createBlock(a,{key:0,name:e.titleIcon,size:e.titleIconSize,color:e.titleIconColor,class:t.normalizeClass([e.titleIconPosition=="left"?"titleIconLeft":"titleIconRight"])},null,8,["name","size","color","class"])):t.createCommentVNode("",!0),e.$slots.mTitle?t.renderSlot(e.$slots,"mTitle",{key:1}):(t.openBlock(),t.createElementBlock("view",{key:2,innerHTML:e.title,class:"collapse-icon-title"},null,8,wk))])])]),e.$slots.sTitle?(t.openBlock(),t.createElementBlock("view",Nk,[t.renderSlot(e.$slots,"sTitle")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.subTitle,class:"subTitle"},null,8,Bk)),e.icon?(t.openBlock(),t.createBlock(a,{key:2,name:e.icon,size:e.iconSize,color:e.iconColor,class:t.normalizeClass(["collapse-icon",{"col-expanded":e.openExpanded},{"collapse-icon-disabled":e.disabled}]),style:t.normalizeStyle(e.iconStyle)},null,8,["name","size","color","class","style"])):t.createCommentVNode("",!0)],2),e.$slots.extraRender?(t.openBlock(),t.createElementBlock("view",Vk,[t.createElementVNode("div",Ak,[t.renderSlot(e.$slots,"extraRender")])])):t.createCommentVNode("",!0),t.createElementVNode("view",Ek,[t.createElementVNode("view",{class:t.normalizeClass(["collapse-content",e.emptyContent]),ref:"contentRef"},[t.renderSlot(e.$slots,"default")],2)],512)],2)}const er=K(Sk,[["render",Tk]]),$k={setup(e){return()=>t.h("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}},Dk=(e,n)=>({components:{RenderColumn:$k},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(o,{emit:l,slots:r}){const{t:i}=_.useFoxI18n(n),a=t.reactive({curData:o.data}),s=t.computed(()=>({[e]:!0})),c=h=>({"fox-table__main__head__tr--border":o.bordered,[`fox-table__main__head__tr--align${h.align?h.align:""}`]:!0}),m=h=>h.stylehead?h.stylehead:"",d=h=>h.stylecolumn?h.stylecolumn:"",f=h=>o.columns.filter(S=>S.key===h)[0],g=h=>{const S=o.columns.filter(u=>u.key===h);return S[0].stylecolumn?S[0].stylecolumn:""},k=h=>{h.sorter&&(l("sorter",h),a.curData=typeof h.sorter=="function"?a.curData.sort(h.sorter):h.sorter==="default"?a.curData.sort():a.curData)},b=()=>o.columns.map(h=>[h.key,h.render]);return t.watch(()=>o.data,h=>{a.curData=h.slice()}),{...t.toRefs(a),classes:s,cellClasses:c,getColumnItem:f,getColumnItemStyle:g,handleSorterClick:k,sortDataItem:b,t:i,stylehead:m,stylecolumn:d}}}),{componentName:Ik,create:qk,scope:zk}=O("table"),Mk=qk(Dk(Ik,zk)),Pk={class:"fox-table__main__head"},xk={class:"fox-table__main__head__tr"},Rk=["onClick"],Lk={class:"fox-table__main__body"},Ok={key:1},Fk={key:0,class:"fox-table__nodata"},Uk={key:0,class:"fox-table__nodata__text"},Hk={key:1,class:"fox-table__summary"},Kk=["innerHTML"];function jk(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon"),s=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",Pk,[t.createElementVNode("view",xk,[(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:m=>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(a,{key:0,name:"down-arrow",size:"12px"})):t.createCommentVNode("",!0)],14,Rk))),128))])]),t.createElementVNode("view",Lk,[(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(),([m,d])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(m))]),key:m,style:t.normalizeStyle(e.getColumnItemStyle(m))},[typeof c[m]=="function"||typeof d=="function"?(t.openBlock(),t.createBlock(s,{key:0,slots:[d,c[m]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",Ok,t.toDisplayString(c[m]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Fk,[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",Uk,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",Hk,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,Kk)])):t.createCommentVNode("",!0)],2)}const tr=K(Mk,[["render",jk]]),{componentName:Wk,create:Yk}=O("ellipsis"),Xk=Yk({props:{class:{type:String},content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:n}){const o=t.ref(null);let l=null,r=0;const i=t.ref(),a=t.reactive({exceeded:!1,expanded:!1}),s=t.computed(()=>{let h=Wk;return e.class&&(h=`${h} ${e.class}`),h});t.watch(()=>e.content,(h,S)=>{h!=S&&(l&&document.body.appendChild(l),c())}),t.onMounted(()=>{c()});const c=()=>{if(!o.value)return;const h=window.getComputedStyle(o.value);l=document.createElement("div"),Array.prototype.slice.apply(h).forEach(p=>{l.style.setProperty(p,h.getPropertyValue(p))}),l.style.position="fixed",l.style.left="999999px",l.style.top="999999px",l.style.zIndex="-1000",l.style.height="auto",l.style.minHeight="auto",l.style.maxHeight="auto",l.style.textOverflow="clip",l.style.whiteSpace="normal",l.style.webkitLineClamp="unset",l.style.display="block";const u=g(h.lineHeight==="normal"?e.lineHeight:h.lineHeight);r=Math.floor(u*(Number(e.rows)+.5)+g(h.paddingTop)+g(h.paddingBottom)),l.innerText=e.content,document.body.appendChild(l),m()},m=()=>{if(l.offsetHeight<=r)a.exceeded=!1;else{a.exceeded=!0;const h=e.content.length,S=Math.floor((0+h)/2),u=e.direction==="middle"?f([0,S],[S,h]):d(0,h);i.value=u,document.body.removeChild(l)}},d=(h,S)=>{const u=a.expanded?e.collapseText:e.expandText,p=e.content.length;if(S-h<=1)return e.direction==="end"?{leading:e.content.slice(0,h)+e.symbol}:{tailing:e.symbol+e.content.slice(S,p)};const w=Math.round((h+S)/2);return e.direction==="end"?l.innerText=e.content.slice(0,w)+e.symbol+u:l.innerText=u+e.symbol+e.content.slice(w,p),l.offsetHeight<=r?e.direction==="end"?d(w,S):d(h,w):e.direction==="end"?d(h,w):d(w,S)},f=(h,S)=>{const u=a.expanded?e.collapseText:e.expandText,p=e.content.length;if(h[1]-h[0]<=1&&S[1]-S[0]<=1)return{leading:e.content.slice(0,h[0])+e.symbol,tailing:e.symbol+e.content.slice(S[1],p)};const w=Math.floor((h[0]+h[1])/2),y=Math.ceil((S[0]+S[1])/2);return l.innerText=e.content.slice(0,w)+e.symbol+u+e.symbol+e.content.slice(y,p),l.offsetHeight<=r?f([w,h[1]],[S[0],y]):f([h[0],w],[y,S[1]])},g=h=>{if(!h)return 0;const S=h.match(/^\d*(\.\d*)?/);return S?Number(S[0]):0},k=h=>{h==1?(a.expanded=!0,n("change","expand")):(a.expanded=!1,n("change","collapse"))},b=()=>{n("click")};return{...t.toRefs(a),root:o,ellipsis:i,classes:s,clickHandle:k,handleClick:b}}}),Qk={key:0},Gk={key:1},Zk={key:2};function Jk(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[2]||(n[2]=(...a)=>e.handleClick&&e.handleClick(...a)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Qk,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",Gk,[t.createTextVNode(t.toDisplayString(e.ellipsis.leading)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis-text",onClick:n[0]||(n[0]=t.withModifiers(a=>e.clickHandle(1),["stop"]))},t.toDisplayString(e.expandText),1)):t.createCommentVNode("",!0),t.createTextVNode(" "+t.toDisplayString(e.ellipsis.tailing),1)])):t.createCommentVNode("",!0),e.exceeded&&e.expanded?(t.openBlock(),t.createElementBlock("view",Zk,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis-text",onClick:n[1]||(n[1]=t.withModifiers(a=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const nr=K(Xk,[["render",Jk]]),{componentName:_k,create:eS}=O("animate"),tS=eS({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const{type:o,loop:l,action:r}=t.toRefs(e),i=t.reactive({clicked:!1});let a=t.computed(()=>({"fox-ani-container":!0,[`${_k}-${o.value}`]:r.value==="initial"||i.clicked?o.value:!1,loop:l.value}));const s=c=>{i.clicked=!0,l.value||setTimeout(()=>{i.clicked=!1},1e3),n("click",c)};return{...t.toRefs(i),classes:a,handleClick:s}}}),nS={class:"fox-animate"};function oS(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",nS,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...a)=>e.handleClick&&e.handleClick(...a))},[t.renderSlot(e.$slots,"default")],2)])}const or=K(tS,[["render",oS]]),{componentName:lS,create:aS}=O("watermark"),rS=aS({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:n}){const o=t.reactive({base64Url:""}),{zIndex:l,gapX:r,gapY:i,width:a,height:s,rotate:c,image:m,imageWidth:d,imageHeight:f,content:g,fontStyle:k,fontWeight:b,fontColor:h,fontSize:S,fontFamily:u}=e,p=()=>{const y=document.createElement("canvas"),v=window.devicePixelRatio,C=y.getContext("2d"),N=`${(r+a)*v}px`,V=`${(i+s)*v}px`,A=a*v,E=s*v;if(y.setAttribute("width",N),y.setAttribute("height",V),C){if(m){C.translate(A/2,E/2),C.rotate(Math.PI/180*Number(c));const q=new Image;q.crossOrigin="anonymous",q.referrerPolicy="no-referrer",q.src=m,q.onload=()=>{C.drawImage(q,-d*v/2,-f*v/2,d*v,f*v),C.restore(),o.base64Url=y.toDataURL()}}else if(g){C.textBaseline="middle",C.textAlign="center",C.translate(A/2,E/2),C.rotate(Math.PI/180*Number(c));const q=Number(S)*v;C.font=`${k} normal ${b} ${q}px/${E}px ${u}`,C.fillStyle=h,C.fillText(g,0,0),C.restore(),o.base64Url=y.toDataURL()}}else throw new Error("当前环境不支持Canvas")};p(),t.watch(()=>[l,r,i,a,s,c,m,d,f,g,k,b,h,S,u],()=>{p()});const w=t.computed(()=>{const y=lS;return{[y]:!0,[`${y}-full-page`]:e.fullPage}});return{...t.toRefs(o),classes:w}}});function sS(e,n,o,l,r,i){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 lr=K(rS,[["render",sS]]);function iS(e,n=2){return Object.is(parseFloat(e),NaN)?console.log(`传入的值:${e}不是一个数字`):(e=parseFloat(e),(Math.round((e+Number.EPSILON)*Math.pow(10,n))/Math.pow(10,n)).toFixed(n))}const{componentName:cS,create:uS}=O("trendarrow"),dS=uS({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"},iconSize:{type:String,default:"12px"},upIconName:{type:String,default:"triangle-up"},downIconName:{type:String,default:"triangle-down"}},setup(e){const n=t.reactive({rateTrend:e.rate>0}),o=t.computed(()=>({[cS]:!0})),l=t.computed(()=>{const{rate:a,digits:s,showSign:c,showZero:m}=e;n.rateTrend=a>0;const d=Math.abs(a);return!m&&a===0?"--":`${c&&a!==0?n.rateTrend?"+":"-":""}${iS(Number(d),s)}%`}),r=t.computed(()=>{const{dropColor:a,riseColor:s,syncTextColor:c,textColor:m,rate:d}=e;return{color:d===0?m:c?n.rateTrend?s:a:m}}),i=t.computed(()=>{const{dropColor:a,riseColor:s,iconSize:c,upIconName:m,downIconName:d}=e;return{name:n.rateTrend?m:d,color:n.rateTrend?s:a,size:c}});return{...t.toRefs(n),classes:o,calcRate:l,calcStyle:r,calcIconProps:i}}});function fS(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[e.arrowLeft?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-trendarrow-icon-before fox-trendarrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)),t.renderSlot(e.$slots,"default",{},()=>[Number(e.rate)!==0?(t.openBlock(),t.createBlock(a,{key:0,size:e.calcIconProps.size,name:e.calcIconProps.name,color:e.calcIconProps.color},null,8,["size","name","color"])):t.createCommentVNode("",!0)]),e.arrowLeft?(t.openBlock(),t.createElementBlock("span",{key:1,class:"fox-trendarrow-icon-after fox-trendarrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)):t.createCommentVNode("",!0)],2)}const ar=K(dS,[["render",fS]]),{componentName:mS,create:pS,scope:hS}=O("address"),gS=pS({inheritAttrs:!1,props:{...Oe,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:""},defaultIcon:{type:String,default:"location2"},selectedIcon:{type:String,default:"Check"},closeBtnIcon:{type:String,default:"circle-close"},backBtnIcon:{type:String,default:"left"},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:n}){const{localeRef:o,t:l}=_.useFoxI18n(hS),r=o(e.customAddressTitle,"selectRegion"),i=o(e.existAddressTitle,"deliveryTo"),a=o(e.customAndExistTitle,"chooseAnotherAddress"),s=t.computed(()=>({[mS]:!0})),c=t.ref(null),m=t.ref(null),d=t.ref(e.visible),f=t.ref(e.type),g=t.ref(0),k=t.ref(["province","city","country","town"]),b=t.ref([""]),h=t.computed(()=>e.type==="custom2"),S=B=>{if(!Array.isArray(B))throw new TypeError("params muse be array.");if(!B.length)return[];B.forEach(R=>{if(!R.title){console.error("[FoxUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const x=[];return B=B.sort((R,T)=>R.title.localeCompare(T.title)),B.forEach(R=>{const T=x.findIndex(F=>F.title===R.title);T<=-1?x.push({title:R.title,list:[].concat(R)}):x[T]={title:R.title,list:x[T].list.concat(R)}}),x},u=t.reactive({province:h.value?S(e.province):e.province,city:h.value?S(e.city):e.city,country:h.value?S(e.country):e.country,town:h.value?S(e.town):e.town}),p=t.reactive({province:{},city:{},country:{},town:{}});let w=t.reactive({});const y=t.ref("self"),v=t.ref(20);t.onMounted(()=>{N()});const C=()=>{if(e.modelValue.length>0){g.value=e.modelValue.length-1;for(let B=0;B<e.modelValue.length;B++)if(u[k.value[B]].length==0){g.value=B-1;break}else{const x=e.modelValue[B],R=u[k.value[B]];if(f.value=="custom")p[k.value[B]]=R.filter(T=>T.id==x)[0];else if(f.value=="custom2"){let T=[];R.map(F=>{T.push(...F.list)}),p[k.value[B]]=T.filter(F=>F.id==x)[0]}}q()}},N=()=>{let B=l("select"),x=Object.prototype.toString.call(e.columnsPlaceholder||B);x=="[object String]"?b.value=new Array(4).fill(e.columnsPlaceholder||B):x=="[object Array]"&&(b.value=new Array(4).fill(""),b.value.forEach((R,T)=>{e.columnsPlaceholder[T]?b.value[T]=e.columnsPlaceholder[T]:b.value[T]=B}))},V=(B,x)=>B.name||g.value<x?B.name:b.value[x],A=(B="self")=>{e.closeBtnIcon&&(y.value=B=="cross"?"cross":"self",d.value=!1)},E=()=>{y.value="mask"},q=()=>{t.nextTick(()=>{const B=m.value&&m.value.getElementsByClassName("active")[0];if(B){const x=B.offsetLeft;v.value=x||20}})},U=B=>{const x={next:"",value:"",custom:k.value[g.value]};p[k.value[g.value]]=B;for(let R=g.value;R<4;R++)p[k.value[R+1]]={};g.value<3?(g.value=g.value+1,q(),x.next=k.value[g.value],x.value=B,n("change",x)):(A(),n("update:modelValue"))},L=(B,x,R)=>{V(B,R)&&(g.value=R,q())},z=B=>{const x=e.existAddress;let R={};x.forEach((T,F)=>{T&&T.selectedAddress&&(R=T),T.selectedAddress=!1}),B.selectedAddress=!0,w=B,n("selected",R,B,x),A()},$=()=>{for(let B=0;B<k.value.length;B++)p[k.value[B]]={};g.value=0,q()},D=()=>{const B=Object.assign({addressIdStr:"",addressStr:""},p),x={data:{},type:f.value};if(f.value=="custom"||f.value=="custom2"){const{province:R,city:T,country:F,town:M}=B;B.addressIdStr=[R.id||0,T.id||0,F.id||0,M.id||0].join("_"),B.addressStr=[R.name,T.name,F.name,M.name].join(""),x.data=B}else x.data=w;$(),y.value=="self"?n("close",x):n("close-mask",{closeWay:y}),n("update:visible",!1)},I=()=>{f.value=="exist"?f.value="custom":f.value="exist",$(),n("switch-module",{type:f.value})},P=(B,x)=>{U(x)};return t.watch(()=>e.visible,B=>{d.value=B}),t.watch(()=>d.value,B=>{B==!1?D():C()}),t.watch(()=>e.province,B=>{u.province=h.value?S(B):B}),t.watch(()=>e.city,B=>{u.city=h.value?S(B):B}),t.watch(()=>e.country,B=>{u.country=h.value?S(B):B}),t.watch(()=>e.town,B=>{u.town=h.value?S(B):B}),t.watch(()=>e.existAddress,B=>{B.forEach((x,R)=>{x.selectedAddress&&(w=x)})}),{selectRegion:r,deliveryTo:i,chooseAnotherAddress:a,classes:s,showPopup:d,privateType:f,tabIndex:g,tabName:k,regionList:u,selectedRegion:p,selectedExistAddress:w,switchModule:I,closeWay:y,close:D,getTabName:V,nextAreaList:U,regionLine:c,tabRegion:m,lineDistance:v,changeRegionTab:L,selectedExist:z,clickOverlay:E,handClose:A,handleElevatorItem:P,initCustomSelected:C,...t.toRefs(e)}}}),yS={class:"fox-address__header"},vS={class:"fox-address__header__title"},kS={key:0,class:"custom-address"},SS={class:"region-tab",ref:"tabRegion"},bS=["onClick"],CS={class:"region-con"},wS={class:"region-group"},NS=["onClick"],BS={key:1,class:"custom-address"},VS={class:"region-tab",ref:"tabRegion"},AS=["onClick"],ES={class:"elevator-group"},TS={key:2,class:"exist-address"},$S={class:"exist-address-group"},DS={class:"exist-ul"},IS=["onClick"],qS={class:"exist-item-info"},zS={key:0,class:"exist-item-info-top"},MS={class:"exist-item-info-name"},PS={class:"exist-item-info-phone"},xS={class:"exist-item-info-bottom"},RS={class:"btn"};function LS(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon"),s=t.resolveComponent("fox-elevator"),c=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(c,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=m=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=m=>e.showPopup=m),isWrapTeleport:e.isWrapTeleport,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",yS,[t.createElementVNode("view",{class:"arrow-back",onClick:n[0]||(n[0]=(...m)=>e.switchModule&&e.switchModule(...m))},[t.withDirectives(t.createVNode(a,{name:e.backBtnIcon,color:"#cccccc"},null,8,["name"]),[[t.vShow,e.type=="exist"&&e.privateType=="custom"&&e.backBtnIcon]])]),t.createElementVNode("view",vS,t.toDisplayString(e.privateType=="custom"?e.selectRegion:e.deliveryTo),1),t.createElementVNode("view",{class:"arrow-close",onClick:n[1]||(n[1]=m=>e.handClose("cross"))},[e.closeBtnIcon?(t.openBlock(),t.createBlock(a,{key:0,name:e.closeBtnIcon,color:"#cccccc",size:"18px"},null,8,["name"])):t.createCommentVNode("",!0)])]),e.privateType=="custom"?(t.openBlock(),t.createElementBlock("view",kS,[t.createElementVNode("view",SS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(m,d,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["tab-item",[f==e.tabIndex?"active":""]]),key:f,onClick:g=>e.changeRegionTab(m,d,f)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(m,f)),1)],10,bS))),128)),t.createElementVNode("view",{class:"region-tab-line",ref:"regionLine",style:t.normalizeStyle({left:e.lineDistance+"px"})},null,4)],512),t.createElementVNode("view",CS,[t.createElementVNode("ul",wS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList[e.tabName[e.tabIndex]],(m,d)=>(t.openBlock(),t.createElementBlock("li",{key:d,class:t.normalizeClass(["region-item",[e.selectedRegion[e.tabName[e.tabIndex]].id==m.id?"active":""]]),onClick:f=>e.nextAreaList(m)},[e.selectedRegion[e.tabName[e.tabIndex]].id==m.id?(t.openBlock(),t.createBlock(a,{key:0,class:"region-item-icon",type:"self",name:e.selectedIcon,size:"13px"},null,8,["name"])):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(m.name),1)],10,NS))),128))])])])):e.privateType=="custom2"?(t.openBlock(),t.createElementBlock("view",BS,[t.createElementVNode("view",VS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(m,d,f)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["tab-item",[f==e.tabIndex?"active":""]]),key:f,onClick:g=>e.changeRegionTab(m,d,f)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(m,f)),1)],10,AS))),128)),t.createElementVNode("view",{class:"region-tab-line",ref:"regionLine",style:t.normalizeStyle({left:e.lineDistance+"px"})},null,4)],512),t.createElementVNode("view",ES,[t.createVNode(s,{height:e.height,"index-list":e.regionList[e.tabName[e.tabIndex]],onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])])])):e.privateType=="exist"?(t.openBlock(),t.createElementBlock("view",TS,[t.createElementVNode("div",$S,[t.createElementVNode("ul",DS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(m,d)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["exist-item",[m.selectedAddress?"active":""]]),key:d,onClick:f=>e.selectedExist(m)},[t.createVNode(a,{class:"exist-item-icon",type:"self",name:m.selectedAddress?e.selectedIcon:e.defaultIcon,size:"13px"},null,8,["name"]),t.createElementVNode("div",qS,[m.name&&m.phone?(t.openBlock(),t.createElementBlock("div",zS,[t.createElementVNode("div",MS,t.toDisplayString(m.name),1),t.createElementVNode("div",PS,t.toDisplayString(m.phone),1)])):t.createCommentVNode("",!0),t.createElementVNode("div",xS,[t.createElementVNode("view",null,t.toDisplayString(m.provinceName+m.cityName+m.countyName+m.townName+m.addressDetail),1)])])],10,IS))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"choose-other",onClick:n[2]||(n[2]=(...m)=>e.switchModule&&e.switchModule(...m))},[t.createElementVNode("div",RS,t.toDisplayString(e.chooseAnotherAddress),1)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"bottom")],2)]),_:3},8,["lock-scroll","onClose","onClickOverlay","visible","isWrapTeleport","teleport"])}const rr=K(gS,[["render",LS]]),{componentName:OS,create:FS}=O("barrage"),co=FS({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}},emits:["click"],setup(e,{slots:n}){const o=!!t.useSlots().default,l=t.computed(()=>({[OS]:!0}));let r=t.ref(document.createElement("div")),i=t.ref(document.createElement("div")),a=0;const s=t.ref(e.danmu),c=t.ref(e.rows),m=t.ref(e.top),d=t.ref(0),f=e.speeds,g=t.ref(0);t.onMounted(()=>{g.value=r.value.offsetWidth,o&&(s.value=n?.default?.()),b()}),t.onUnmounted(()=>{clearInterval(a),a=0}),t.onDeactivated(()=>{clearInterval(a),a=0}),t.watch(()=>e.danmu,u=>{e.danmu.length>0&&(s.value=[...u])});const k=u=>{const p=d.value%s.value.length;!e.loop&&d.value===s.value.length?s.value.splice(s.value.length,0,u):s.value.splice(p,0,u)},b=()=>{clearInterval(a),a=setInterval(()=>{S(),b()},e.frequency)},h=t.ref("0"),S=()=>{if(!e.loop&&d.value>=s.value.length)return;const u=e.loop?d.value%s.value.length:d.value;let p=document.createElement("div");o&&s.value[u]?.el?(p=s.value[u]?.el,p?.classList.contains("dmitem")&&p.classList.remove("dmitem"),p?.classList.contains("move")&&p.classList.remove("move"),p?.classList.add("dmitem")):(p.innerHTML=s.value[u],p.classList.add("dmitem"),i.value.appendChild(p)),t.nextTick(()=>{const w=p.offsetHeight;if(p.classList.add("move"),p.style.animationDuration=`${f}ms`,p.style.top=u%c.value*(w+m.value)+20+"px",!o){const y=p.offsetWidth;p.style.width=y+20+"px"}p.style.setProperty("--move-distance",`-${g.value}px`),h.value="-"+f/1e3*150+"%",p.dataset.index=`${u}`,o||p.addEventListener("animationend",()=>{i.value&&i.value.removeChild(p)}),d.value++})};return{classes:l,danmuList:s,dmBody:r,dmContainer:i,add:k,distance:h}}}),Qo=()=>{t.useCssVars(e=>({a8aebf42:e.distance}))},Go=co.setup;co.setup=Go?(e,n)=>(Qo(),Go(e,n)):Qo;const US={key:0,ref:"dmContainer",class:"dmContainer slotContainer"},HS={key:1,ref:"dmContainer",class:"dmContainer"};function KS(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("div",{ref:"dmBody",class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("div",US,[t.renderSlot(e.$slots,"default")],512)):(t.openBlock(),t.createElementBlock("div",HS,null,512))],2)}const sr=K(co,[["render",KS]]),{componentName:jS,create:WS,scope:YS}=O("signature"),XS=WS({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},reSign:{type:String},confirmText:{type:String}},components:{},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:o}=_.useFoxI18n(YS),l=o(e,["unSupportTpl","reSign","confirmText"]),r=t.ref(null),i=t.ref(null),a=t.computed(()=>({[jS]:!0,[`${e.customClass}`]:e.customClass})),s=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let u=document.createElement("canvas");return!!(u.getContext&&u.getContext("2d"))},m=()=>{r.value.addEventListener(s.events[0],d,!1)},d=u=>{u.preventDefault(),s.ctx.beginPath(),s.ctx.lineWidth=e.lineWidth,s.ctx.strokeStyle=e.strokeStyle,n("start"),r.value.addEventListener(s.events[1],f,!1),r.value.addEventListener(s.events[2],g,!1),r.value.addEventListener(s.events[3],k,!1)},f=u=>{u.preventDefault();let p=s.isSupportTouch?u.touches[0]:u;n("signing",p);let w=r.value.getBoundingClientRect(),y=p.clientX-w.left,v=p.clientY-w.top;s.ctx.lineTo(y,v),s.ctx.stroke()},g=u=>{u.preventDefault(),n("end"),r.value.removeEventListener(s.events[1],f,!1),r.value.removeEventListener(s.events[2],g,!1)},k=u=>{u.preventDefault(),r.value.removeEventListener(s.events[1],f,!1),r.value.removeEventListener(s.events[2],g,!1)},b=()=>{r.value.addEventListener(s.events[2],g,!1),s.ctx.clearRect(0,0,s.canvasWidth,s.canvasHeight),s.ctx.closePath(),n("clear")},h=()=>{S(r.value)},S=u=>{let p;switch(e.type){case"png":p=u.toDataURL("image/png");break;case"jpg":p=u.toDataURL("image/jpeg",.8);break}b(),n("confirm",u,p)};return t.onMounted(()=>{c()&&(s.ctx=r.value.getContext("2d"),s.canvasWidth=i.value.offsetWidth,s.canvasHeight=i.value.offsetHeight,m())}),{...l,...t.toRefs(s),canvas:r,wrap:i,isCanvasSupported:c,confirm:h,clear:b,classes:a}}}),QS={class:"fox-signature-inner",ref:"wrap"},GS=["height","width"],ZS={key:0,class:"fox-signature-unsopport"};function JS(e,n,o,l,r,i){const a=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",QS,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,GS),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",ZS,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(a,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[0]=s=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(a,{class:"fox-signature-btn",type:"primary",onClick:n[1]||(n[1]=s=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const ir=K(XS,[["render",JS]]),{componentName:_S,create:eb,scope:tb}=O("timeselect"),nb=eb({props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!1},isWrapTeleport:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,n)=>{const{toLocaleRefs:o}=_.useFoxI18n(tb),l=o(e,["title"]),r=t.computed(()=>({[_S]:!0})),i=t.computed(()=>({width:"100%",height:e.height})),a=t.computed(()=>e.currentKey),s=t.computed(()=>e.currentTime),c=()=>{n.emit("update:visible",!1),n.emit("select",s.value)};return t.provide("currentKey",a),t.provide("currentTime",s),{...l,classes:r,popStyle:i,close:c}}}),ob={class:"fox-timeselect__title"},lb={class:"fox-timeselect__title__fixed"},ab={class:"fox-timeselect__content"},rb={class:"fox-timeselect__content__pannel"},sb={class:"fox-timeselect__content__detail"};function ib(e,n,o,l,r,i){const a=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(a,{position:"bottom",closeable:"",round:"",isWrapTeleport:e.isWrapTeleport,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",ob,[t.createElementVNode("view",lb,t.toDisplayString(e.title),1)]),t.createElementVNode("view",ab,[t.createElementVNode("view",rb,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",sb,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["isWrapTeleport","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const cr=K(nb,[["render",ib]]),{componentName:cb,create:ub}=O("timepannel"),db=ub({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,n)=>{const o=t.inject("currentKey"),l=t.reactive({currentKey:o}),r=t.computed(()=>({[cb]:!0,"fox-timepannel--curr":l.currentKey==e.pannelKey})),i=a=>{n.emit("change",a)};return{...t.toRefs(l),classes:r,handlePannel:i}}});function fb(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=a=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const ur=K(db,[["render",fb]]),{componentName:mb,create:pb}=O("timedetail"),hb=pb({name:"timedetail",props:{times:{type:Array,default:()=>[]},detailKey:{type:[Number,String],default:0}},emits:["select"],setup:(e,n)=>{const o=t.inject("currentKey"),l=t.inject("currentTime"),r=t.reactive({currentKey:o,currentTime:l}),i=t.computed(()=>({[mb]:!0})),a=m=>{let d=r.currentTime.find(f=>f.key==r.currentKey);if(d)return{"fox-timedetail__detail__list__item":!0,"fox-timedetail__detail__list__item--curr":d.list.filter(f=>f===m).length>0}},s=t.computed(()=>e.times.find(m=>m.key==r.currentKey).list),c=m=>{n.emit("select",m)};return{classes:i,...t.toRefs(r),getClass:a,renderData:s,handleTime:c}}}),gb={class:"fox-timedetail__detail fox-timedetail__detail--moring"},yb={class:"fox-timedetail__detail__list"},vb=["onClick"];function kb(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",gb,[t.createElementVNode("view",yb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.renderData,a=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.getClass(a)),key:a,onClick:s=>e.handleTime(a)},t.toDisplayString(a),11,vb))),128))])])],2)}const dr=K(hb,[["render",kb]]),{componentName:M1,create:Sb,scope:bb}=O("sku-header"),Cb=Sb({props:{idText:{type:String,default:""},goods:{type:Object,default:{}}},emits:[],setup(e,{emit:n,slots:o}){const{toLocaleRefs:l}=_.useFoxI18n(bb);return{...l(e,["idText"]),getSlots:a=>o[a]}}}),wb={class:"fox-sku-header"},Nb=["src"],Bb={class:"fox-sku-header-right"},Vb={key:3,class:"fox-sku-header-right-extra"};function Ab(e,n,o,l,r,i){const a=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",wb,[t.createElementVNode("img",{src:e.goods.imagePath},null,8,Nb),t.createElementVNode("view",Bb,[e.getSlots("sku-header-price")?t.renderSlot(e.$slots,"sku-header-price",{key:0}):(t.openBlock(),t.createBlock(a,{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",Vb,t.toDisplayString(e.idText)+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const Eb=K(Cb,[["render",Ab]]),{componentName:P1,create:Tb}=O("sku-select"),$b=Tb({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:n}){const o=t.ref([]);return t.watch(()=>e.sku,r=>{o.value=[].slice.call(r)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(o.value=[].slice.call(e.sku))}),{skuInfo:o,changeSaleChild:(r,i,a,s)=>{r.checkFlag||r.disable||n("selectSku",{sku:r,skuIndex:i,parentSku:a,parentIndex:s})}}}}),Db={class:"fox-sku-select"},Ib={class:"fox-sku-select-item-title"},qb={class:"fox-sku-select-item-skus"},zb=["onClick"];function Mb(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("view",Db,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(a,s)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:a.id},[t.createElementVNode("view",Ib,t.toDisplayString(a.name),1),t.createElementVNode("view",qb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.list,(c,m)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:d=>e.changeSaleChild(c,m,a,s),key:c.name},t.toDisplayString(c.name),11,zb))),128))])]))),128))])}const Pb=K($b,[["render",Mb]]),{componentName:x1,create:xb}=O("sku-stepper"),Rb=xb({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"],setup(e,{emit:n}){const o=t.ref(e.stepperMin);return t.onMounted(()=>{o.value=e.stepperMin}),{goodsCount:o,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,m)=>{n("overLimit",{action:m,value:parseInt(o.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&typeof c=="function"?c():""},changeStepper:c=>{o.value=c,n("changeStepper",c)}}}}),Lb={class:"fox-sku-stepper"},Ob={class:"fox-sku-stepper-title"},Fb=["innerHTML"],Ub={class:"fox-sku-stepper-count"};function Hb(e,n,o,l,r,i){const a=t.resolveComponent("fox-inputnumber");return t.openBlock(),t.createElementBlock("view",Lb,[t.createElementVNode("view",Ob,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,Fb),t.createElementVNode("view",Ub,[t.createVNode(a,{modelValue:e.goodsCount,"onUpdate:modelValue":n[0]||(n[0]=s=>e.goodsCount=s),min:e.stepperMin,max:e.stepperMax,onAdd:e.add,onReduce:e.reduce,onOverlimit:e.overlimit,onChange:e.changeStepper},null,8,["modelValue","min","max","onAdd","onReduce","onOverlimit","onChange"])])])}const Kb=K(Rb,[["render",Hb]]),{componentName:R1,create:jb}=O("sku-operate"),Wb=jb({props:{btnOptions:{type:Array,default:()=>["confirm"]},btnExtraText:{type:String,default:""},buyText:{type:String,default:"立即购买"},addCartText:{type:String,default:"加入购物车"},confirmText:{type:String,default:"确定"}},emits:["click","changeSku","changeBuyCount","clickBtnOperate"],setup(e,{emit:n,slots:o}){return{getBtnDesc:a=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[a],clickBtnOperate:a=>{n("clickBtnOperate",a)},getSlots:a=>o[a]}}}),Yb={key:0,class:"fox-sku-operate"},Xb=["innerHTML"],Qb={key:1,class:"fox-sku-operate-btn"},Gb=["onClick"];function Zb(e,n,o,l,r,i){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",Yb,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-sku-operate-desc",innerHTML:e.btnExtraText},null,8,Xb)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"operate-btn"),e.getSlots("operate-btn")?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Qb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.btnOptions,(a,s)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass([`fox-sku-operate-btn-${a}`,"fox-sku-operate-btn-item"]),key:s,onClick:c=>e.clickBtnOperate(a)},t.toDisplayString(e.getBtnDesc(a)),11,Gb))),128))]))])):t.createCommentVNode("",!0)}const Jb=K(Wb,[["render",Zb]]),{componentName:L1,create:_b,scope:e0}=O("sku"),t0=_b({props:{...Oe,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","selectSku","changeStepper","clickBtnOperate","clickCloseIcon","clickOverlay","close","reduce","add","overLimit","click-overlay"],components:{SkuHeader:Eb,SkuSelect:Pb,SkuStepper:Kb,SkuOperate:Jb},setup(e,{emit:n,slots:o}){const{toLocaleRefs:l}=_.useFoxI18n(e0),r=l(e,["confirmText","buyText","stepperTitle","addCartText"]),i=t.ref(e.visible),a=t.ref(e.stepperMin);t.watch(()=>e.visible,S=>{i.value=S}),t.watch(()=>i.value,S=>{S==!1&&h()}),t.onMounted(()=>{});const s=S=>o[S],c=S=>{n("selectSku",S)},m=S=>{a.value=S,n("changeStepper",S)},d=S=>{n("add",S)},f=S=>{n("reduce",S)},g=S=>{n("overLimit",S)},k=S=>{n("clickBtnOperate",{type:S,value:a.value})},b=S=>{S=="icon"&&n("click-close-icon"),S=="overlay"&&n("click-overlay"),S=="close"&&n("close"),i.value=!1},h=()=>{n("update:visible",!1)};return{...r,showPopup:i,closePopup:b,selectSku:c,changeStepper:m,stepperOverLimit:g,clickBtnOperate:k,add:d,reduce:f,getSlots:s}}}),n0={class:"fox-sku"},o0={class:"fox-sku-content"};function l0(e,n,o,l,r,i){const a=t.resolveComponent("sku-header"),s=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),m=t.resolveComponent("sku-operate"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=f=>e.showPopup=f),onClickCloseIcon:n[1]||(n[1]=f=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=f=>e.closePopup("overlay")),onClose:n[3]||(n[3]=f=>e.closePopup("close")),style:{height:"75%"},isWrapTeleport:e.isWrapTeleport,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",n0,[t.renderSlot(e.$slots,"sku-header"),e.getSlots("sku-header")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(a,{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",o0,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(m,{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","isWrapTeleport","teleport"])}const fr=K(t0,[["render",l0]]),{create:a0}=O("card"),r0=a0({props:{imgUrl:{type:String,default:""},title:{type:String,default:""},price:{type:String,default:""},vipPrice:{type:String,default:""},shopDesc:{type:String,default:""},delivery:{type:String,default:""},shopName:{type:String,default:""},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:n,slots:o}){return{isHaveSlot:r=>o[r]}}}),s0={class:"fox-card"},i0={class:"fox-card__left"},c0=["src"],u0={class:"fox-card__right"},d0={class:"fox-card__right__title"},f0={key:0,class:"fox-card__right__price"},m0={class:"fox-card__right__other"},p0={class:"fox-card__right__shop"},h0={class:"fox-card__right__shop__name"};function g0(e,n,o,l,r,i){const a=t.resolveComponent("fox-price"),s=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",s0,[t.createElementVNode("div",i0,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,c0)]),t.createElementVNode("div",u0,[t.createElementVNode("div",d0,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",f0,[e.isHaveSlot("price")?t.renderSlot(e.$slots,"price",{key:0}):(t.openBlock(),t.createBlock(a,{key:1,price:e.price},null,8,["price"])),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:2}):(t.openBlock(),t.createBlock(a,{key:3,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",m0,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(s,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(s,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",p0,[t.createElementVNode("div",h0,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const mr=K(r0,[["render",g0]]),{componentName:O1,create:y0,scope:v0}=O("ecard"),k0=y0({props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:[Object,Array],default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"¥"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:n}){const{t:o}=_.useFoxI18n(v0),l=t.ref(null),r=t.ref(null),i=t.ref(""),a=t.ref(e.cardAmountMin),s=t.ref(e.modelValue),c=(g,k)=>{l.value=k,a.value=e.cardAmountMin,r.value=g.price,n("change",g),n("update:modelValue",g.price)},m=g=>{let b=g.target.value.replace(/[^\d]/g,"");i.value=b,r.value=b,Number(b)>e.cardAmountMax&&(i.value=e.cardAmountMax,r.value=e.cardAmountMax),Number(b)<e.cardAmountMin&&(i.value=e.cardAmountMin,r.value=e.cardAmountMin),n("inputChange",Number(i.value)),n("update:modelValue",Number(i.value))},d=()=>{l.value="input",a.value=e.cardAmountMin,r.value=i.value,n("update:modelValue",i.value),n("inputClick")},f=g=>{a.value=g,n("changeStep",a.value,r.value)};return t.watch(()=>e.modelValue,g=>{s.value=g}),{handleClick:c,changeStep:f,change:m,inputClick:d,stepValue:a,currentIndex:l,inputValue:i,money:s,t:o}}}),S0={class:"fox-ecard"},b0={class:"fox-ecard__title"},C0={class:"fox-ecard__list"},w0=["onClick"],N0={class:"fox-ecard__list__input--con"},B0=["placeholder"],V0={class:"fox-ecard__list__step"};function A0(e,n,o,l,r,i){const a=t.resolveComponent("fox-inputnumber");return t.openBlock(),t.createElementBlock("view",S0,[t.createElementVNode("view",b0,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",C0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:m=>e.handleClick(s,c)},t.toDisplayString(s.price),11,w0))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:n[2]||(n[2]=(...s)=>e.inputClick&&e.inputClick(...s))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",N0,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":n[0]||(n[0]=s=>e.inputValue=s),onInput:n[1]||(n[1]=(...s)=>e.change&&e.change(...s)),placeholder:e.placeholder||e.t("placeholder")},null,40,B0),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",V0,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(a,{modelValue:e.stepValue,"onUpdate:modelValue":n[3]||(n[3]=s=>e.stepValue=s),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const pr=K(k0,[["render",A0]]),{componentName:F1,create:E0}=O("item-contents"),T0=E0({props:{name:{type:String,default:""},item:{type:Object,default:{}}},components:{},emits:["delIconClick","editIconClick","itemClick"],setup(e,{emit:n}){const{t:o}=_.useFoxI18n();return{delClick:a=>{n("delIconClick",a,e.item),a.stopPropagation()},editClick:a=>{n("editIconClick",a,e.item),a.stopPropagation()},contentsClick:a=>{n("itemClick",a,e.item),a.stopPropagation()},t:o}}});const $0={class:"fox-item-contents__info"},D0={class:"fox-item-contents__info-contact"},I0={class:"fox-item-contents__info-contact-name"},q0={class:"fox-item-contents__info-contact-tel"},z0={key:0,class:"fox-item-contents__info-contact-default"},M0={class:"fox-item-contents__info-handle"},P0={class:"fox-item-contents__addr"};function x0(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("div",{class:"fox-item-contents__contain",onClick:n[0]||(n[0]=(...s)=>e.contentsClick&&e.contentsClick(...s))},[t.createElementVNode("div",$0,[t.createElementVNode("div",D0,[t.renderSlot(e.$slots,"contentTop",{},()=>[t.createElementVNode("div",I0,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",q0,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",z0,t.toDisplayString(e.t("defaultText")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",M0,[t.renderSlot(e.$slots,"contentIcon",{},()=>[t.createVNode(a,{name:"del",class:"fox-item-contents__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(a,{name:"edit",class:"fox-item-contents__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",P0,[t.renderSlot(e.$slots,"contentAddr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const uo=K(T0,[["render",x0]]),{componentName:U1,create:R0}=O("long-press-shell"),L0=R0({props:{item:{type:Object,default:{}}},emits:["holdingDown","handleDel","handelMask","handleCopy","handleSet","handleDelIcon","handleEditIcon","handleItemContent"],components:{ItemContents:uo},setup(e,{emit:n,slots:o}){let l=null;const r=t.ref(!1),i=u=>{l=0,r.value=!0,n("holdingDown",u,e.item)};return{holddownstart:u=>{l=setTimeout(()=>{i(u)},300)},holddownmove:u=>{clearTimeout(l)},holddownend:u=>{clearTimeout(l)},showMaskRef:r,delClick:u=>{l!=0&&(n("handleDel",u,e.item),u.stopPropagation())},copyCLick:u=>{l!=0&&(n("handleCopy",u,e.item),u.stopPropagation())},hideMaskClick:u=>{r.value=!1},setDefault:u=>{l!=0&&(n("handleSet",u,e.item),u.stopPropagation())},maskClick:u=>{l!=0&&(r.value=!1),u.stopPropagation(),u.preventDefault()},delShellClick:(u,p)=>{n("handleDelIcon",u,e.item),u.stopPropagation()},editShellClick:(u,p)=>{n("handleEditIcon",u,e.item),u.stopPropagation()},itemShellClick:(u,p)=>{n("handleItemContent",u,e.item),u.stopPropagation()}}}}),O0={class:"fox-long-press-shell"},F0=t.createElementVNode("div",{class:"mask-contain"},[t.createTextVNode("复制"),t.createElementVNode("br"),t.createTextVNode("地址")],-1),U0=[F0],H0=t.createElementVNode("div",{class:"mask-contain"},[t.createTextVNode("设置"),t.createElementVNode("br"),t.createTextVNode("默认")],-1),K0=[H0],j0=t.createElementVNode("div",{class:"mask-contain"},[t.createTextVNode("删除"),t.createElementVNode("br"),t.createTextVNode("地址")],-1),W0=[j0];function Y0(e,n,o,l,r,i){const a=t.resolveComponent("item-contents");return t.openBlock(),t.createElementBlock("div",O0,[t.createElementVNode("div",{class:"fox-long-press-shell__contain",onTouchstart:n[4]||(n[4]=(...s)=>e.holddownstart&&e.holddownstart(...s)),onTouchend:n[5]||(n[5]=(...s)=>e.holddownend&&e.holddownend(...s)),onTouchmove:n[6]||(n[6]=(...s)=>e.holddownmove&&e.holddownmove(...s))},[t.createVNode(a,{item:e.item,onDelIconClick:e.delShellClick,onEditIconClick:e.editShellClick,onItemClick:e.itemShellClick},{contentTop:t.withCtx(()=>[t.renderSlot(e.$slots,"contentInfo")]),contentIcon:t.withCtx(()=>[t.renderSlot(e.$slots,"contentIcons")]),contentAddr:t.withCtx(()=>[t.renderSlot(e.$slots,"contentAddrs")]),_:3},8,["item","onDelIconClick","onEditIconClick","onItemClick"]),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-long-press-shell__contain-mask",onClick:n[3]||(n[3]=(...s)=>e.maskClick&&e.maskClick(...s))},[t.renderSlot(e.$slots,"longpressAll",{},()=>[t.createElementVNode("div",{class:"fox-long-press-shell__contain-mask-copy",onClick:n[0]||(n[0]=(...s)=>e.copyCLick&&e.copyCLick(...s))},U0),t.createElementVNode("div",{class:"fox-long-press-shell__contain-mask-set",onClick:n[1]||(n[1]=(...s)=>e.setDefault&&e.setDefault(...s))},K0),t.createElementVNode("div",{class:"fox-long-press-shell__contain-mask-del",onClick:n[2]||(n[2]=(...s)=>e.delClick&&e.delClick(...s))},W0)])])):t.createCommentVNode("",!0)],32),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-addresslist__mask-bottom",onClick:n[7]||(n[7]=(...s)=>e.hideMaskClick&&e.hideMaskClick(...s))})):t.createCommentVNode("",!0)])}const X0=K(L0,[["render",Y0]]),{componentName:H1,create:Q0}=O("swipe-shell"),G0=Q0({props:{item:{type:Object,default:{}}},emits:["handleDelIcon","handleEditIcon","handleItemContent","handelSwipeDel"],components:{ItemContents:uo},setup(e,{emit:n,slots:o}){const l=t.ref(!1);return{delShellClick:(d,f)=>{n("handleDelIcon",d,e.item),d.stopPropagation()},editShellClick:(d,f)=>{n("handleEditIcon",d,e.item),d.stopPropagation()},itemShellClick:(d,f)=>{l.value||(n("handleItemContent",d,e.item),d.stopPropagation())},swipeDelClick:(d,f)=>{n("handelSwipeDel",d,e.item),d.stopPropagation()},swipestart:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),Z0={class:"fox-swipe-shell"};function J0(e,n,o,l,r,i){const a=t.resolveComponent("item-contents"),s=t.resolveComponent("fox-button"),c=t.resolveComponent("fox-swipe");return t.openBlock(),t.createBlock(c,null,{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swiperightbtn",{},()=>[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",Z0,[t.createVNode(a,{item:e.item,onDelIconClick:e.delShellClick,onEditIconClick:e.editShellClick,onItemClick:e.itemShellClick,onTouchmove:e.swipemove,onTouchstart:e.swipestart},{contentTop:t.withCtx(()=>[t.renderSlot(e.$slots,"contentInfo")]),contentIcon:t.withCtx(()=>[t.renderSlot(e.$slots,"contentIcons")]),contentAddr:t.withCtx(()=>[t.renderSlot(e.$slots,"contentAddrs")]),_:3},8,["item","onDelIconClick","onEditIconClick","onItemClick","onTouchmove","onTouchstart"])])]),_:3})}const _0=K(G0,[["render",J0]]),{componentName:K1,create:eC}=O("general-shell"),tC=eC({props:{item:{type:Object,default:{}}},emits:["handleDelIcon","handleEditIcon","handleItemContent","handelSwipeDel"],components:{ItemContents:uo},setup(e,{emit:n,slots:o}){return{delShellClick:(s,c)=>{n("handleDelIcon",s,e.item),s.stopPropagation()},editShellClick:(s,c)=>{n("handleEditIcon",s,e.item),s.stopPropagation()},itemShellClick:(s,c)=>{n("handleItemContent",s,e.item),s.stopPropagation()},swipeDelClick:(s,c)=>{n("handelSwipeDel",s,e.item),s.stopPropagation()}}}}),nC={class:"fox-general-shell"};function oC(e,n,o,l,r,i){const a=t.resolveComponent("item-contents");return t.openBlock(),t.createElementBlock("div",nC,[t.createVNode(a,{item:e.item,onDelIconClick:e.delShellClick,onEditIconClick:e.editShellClick,onItemClick:e.itemShellClick},{contentTop:t.withCtx(()=>[t.renderSlot(e.$slots,"contentInfo")]),contentIcon:t.withCtx(()=>[t.renderSlot(e.$slots,"contentIcons")]),contentAddr:t.withCtx(()=>[t.renderSlot(e.$slots,"contentAddrs")]),_:3},8,["item","onDelIconClick","onEditIconClick","onItemClick"])])}const lC=K(tC,[["render",oC]]),{componentName:j1,create:aC,scope:rC}=O("addresslist"),sC=aC({props:{data:{type:Array,default:[]},longPressEdition:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1},showBottomButton:{type:Boolean,default:!0},dataMapOptions:{type:Object,default:{}}},components:{LongPressShell:X0,SwipeShell:_0,GeneralShell:lC},emits:["handelDelIcon","handelEditIcon","handelItem","longPressCopyClick","longPressSetClick","longPressDelClick","swipeDelClick","addAddressClick"],setup(e,{emit:n}){const{t:o}=_.useFoxI18n(rC),l=t.ref([]),r=t.reactive({id:2,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),i=()=>{Object.keys(e.dataMapOptions).length>0&&(l.value=e.data.map((b,h)=>ml(r,b,e.dataMapOptions)))};t.watch(()=>e.data,()=>i(),{deep:!0});const a=(b,h)=>{n("handelDelIcon",b,h),b.stopPropagation()},s=(b,h)=>{n("handelEditIcon",b,h),b.stopPropagation()},c=(b,h)=>{n("handelItem",b,h),b.stopPropagation()},m=(b,h)=>{n("longPressCopyClick",b,h),b.stopPropagation()},d=(b,h)=>{n("longPressSetClick",b,h),b.stopPropagation()},f=(b,h)=>{n("longPressDelClick",b,h),b.stopPropagation()},g=(b,h)=>{n("swipeDelClick",b,h),b.stopPropagation()},k=b=>{n("addAddressClick",b),b.stopPropagation()};return t.onMounted(()=>{i()}),{clickDelIcon:a,clickEditIcon:s,clickContentItem:c,clickLongCopy:m,clickLongSet:d,clickLongDel:f,clickSwipeDel:g,addAddress:k,dataArray:l,t:o}}}),iC={class:"fox-addresslist"};function cC(e,n,o,l,r,i){const a=t.resolveComponent("general-shell"),s=t.resolveComponent("long-press-shell"),c=t.resolveComponent("swipe-shell"),m=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",iC,[!e.longPressEdition&&!e.swipeEdition?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.dataArray,(d,f)=>(t.openBlock(),t.createBlock(a,{key:"general"+f,item:d,onHandleDelIcon:e.clickDelIcon,onHandleEditIcon:e.clickEditIcon,onHandleItemContent:e.clickContentItem,onHandelSwipeDel:e.clickSwipeDel},null,8,["item","onHandleDelIcon","onHandleEditIcon","onHandleItemContent","onHandelSwipeDel"]))),128)):t.createCommentVNode("",!0),e.longPressEdition&&!e.swipeEdition?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:1},t.renderList(e.dataArray,(d,f)=>(t.openBlock(),t.createBlock(s,{key:"longpress"+f,item:d,onHandleDelIcon:e.clickDelIcon,onHandleEditIcon:e.clickEditIcon,onHandleItemContent:e.clickContentItem,onHandleCopy:e.clickLongCopy,onHandleSet:e.clickLongSet,onHandleDel:e.clickLongDel},{contentInfo:t.withCtx(()=>[t.renderSlot(e.$slots,"iteminfos")]),contentIcons:t.withCtx(()=>[t.renderSlot(e.$slots,"itemicon")]),contentAddrs:t.withCtx(()=>[t.renderSlot(e.$slots,"itemaddr")]),longpressAll:t.withCtx(()=>[t.renderSlot(e.$slots,"longpressbtns")]),_:2},1032,["item","onHandleDelIcon","onHandleEditIcon","onHandleItemContent","onHandleCopy","onHandleSet","onHandleDel"]))),128)):t.createCommentVNode("",!0),!e.longPressEdition&&e.swipeEdition?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:2},t.renderList(e.dataArray,(d,f)=>(t.openBlock(),t.createBlock(c,{key:"swipe"+f,item:d,onHandleDelIcon:e.clickDelIcon,onHandleEditIcon:e.clickEditIcon,onHandleItemContent:e.clickContentItem,onHandelSwipeDel:e.clickSwipeDel},{contentInfo:t.withCtx(()=>[t.renderSlot(e.$slots,"iteminfos")]),contentIcons:t.withCtx(()=>[t.renderSlot(e.$slots,"itemicon")]),contentAddrs:t.withCtx(()=>[t.renderSlot(e.$slots,"itemaddr")]),swiperightbtn:t.withCtx(()=>[t.renderSlot(e.$slots,"swiperight")]),_:2},1032,["item","onHandleDelIcon","onHandleEditIcon","onHandleItemContent","onHandelSwipeDel"]))),128)):t.createCommentVNode("",!0),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-addresslist__bottom",onClick:n[0]||(n[0]=(...d)=>e.addAddress&&e.addAddress(...d))},[t.createVNode(m,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)])}const hr=K(sC,[["render",cC]]),{componentName:W1,create:uC}=O("category"),dC=uC({props:{type:{type:String,default:"classify"},category:{type:Array,default:()=>[]}},setup(e,{emit:n,slots:o}){const l=t.ref(0),r=t.ref(!1),i=a=>{l.value=a,n("change",a)};return t.onMounted(()=>{}),{getChildList:i,checkIndex:l,categoryLeft:r}}}),fC={class:"fox-category"},mC={class:"fox-category__cateList"},pC={key:0},hC=["onClick"];function gC(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("div",fC,[t.createElementVNode("div",mC,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",pC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.category,(a,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category__cateListLeft",key:s},[t.createElementVNode("div",{class:t.normalizeClass([e.checkIndex==s?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(s)},t.toDisplayString(a?.catName),11,hC)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const gr=K(dC,[["render",gC]]),{componentName:Y1,create:yC}=O("categorypane"),vC=yC({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:l=>{n("onChange",l)}}}}),kC={class:"fox-categorypane"},SC={key:0,class:"fox-categorypane__cateListRight"},bC={class:"fox-categorypane__childTitle"},CC={key:0,class:"fox-categorypane__childItemList"},wC=["onClick"],NC=["src"],BC={class:"fox-categorypane__skuImg"},VC={key:1,class:"fox-categorypane__cateListRight"},AC={class:"fox-categorypane__childTitle"},EC={key:0,class:"fox-categorypane__childItemList"},TC=["onClick"],$C={class:"fox-categorypane__skuName"},DC={key:2,class:"fox-categorypane__selfItemList"};function IC(e,n,o,l,r,i){return t.openBlock(),t.createElementBlock("div",kC,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",SC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(a,s)=>(t.openBlock(),t.createElementBlock("div",{key:s},[t.createElementVNode("div",bC,t.toDisplayString(a.catName),1),a.catType==1?(t.openBlock(),t.createElementBlock("div",CC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.childCateList,(c,m)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-categorypane__childItem",key:m,onClick:d=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-categorypane__childImg",src:c.backImg},null,8,NC),t.createElementVNode("div",BC,t.toDisplayString(c.catName),1)],8,wC))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",VC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(a,s)=>(t.openBlock(),t.createElementBlock("div",{key:s},[t.createElementVNode("div",AC,t.toDisplayString(a.catName),1),a.catType==1?(t.openBlock(),t.createElementBlock("div",EC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(a.childCateList,(c,m)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-categorypane__childItem",key:m,onClick:d=>e.onChange(c)},[t.createElementVNode("div",$C,t.toDisplayString(c.catName),1)],8,TC))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",DC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.customCategory,(a,s)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-categorypane__skuName",key:s,onClick:n[0]||(n[0]=c=>e.onChange())},t.toDisplayString(a.catName),1))),128))])):t.createCommentVNode("",!0)])}const yr=K(vC,[["render",IC]]),{componentName:X1,create:qC}=O("comment-header"),zC=qC({props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},components:{},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),MC={class:"fox-comment-header__user"},PC={class:"fox-comment-header__user-avter"},xC=["src"],RC={class:"fox-comment-header__user-score"},LC={key:0,class:"fox-comment-header__time"};function OC(e,n,o,l,r,i){const a=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:n[1]||(n[1]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",MC,[t.createElementVNode("view",PC,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,xC)):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",RC,[t.createVNode(a,{modelValue:e.info.score,"onUpdate:modelValue":n[0]||(n[0]=s=>e.info.score=s),"icon-size":"10",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",LC,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(a,{modelValue:e.info.score,"onUpdate:modelValue":n[2]||(n[2]=s=>e.info.score=s),"icon-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 FC=K(zC,[["render",OC]]),{componentName:Q1,create:UC}=O("comment-images"),HC=UC({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{},emits:["click","clickImages"],setup(e,{emit:n}){const o=t.ref(!1),l=t.ref(1),r=t.ref([]);return t.watch(()=>[e.videos,e.images],a=>{a[0].length>0&&a[0].forEach(s=>{s.type="video"}),r.value=a[0].concat(a[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(a=>{a.type="video"}),r.value=e.videos.concat(e.images)}),{isShowImage:o,initIndex:l,showImages:(a,s)=>{const{videos:c,images:m}=e,d=a=="img"?s-c.length:s;n("clickImages",{type:a,index:d,value:a=="img"?m[d]:c[d]})},totalImages:r}}}),KC=["onClick"],jC=["src"],WC=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),YC=["onClick"],XC=["src"],QC={key:0,class:"fox-comment-images__mask"};function GC(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(s,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:s.id,onClick:m=>e.showImages("video",c,c)},[t.createElementVNode("img",{src:s.mainUrl},null,8,jC),WC],8,KC))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(s,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:m=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:s.smallImgUrl?s.smallImgUrl:s.imgUrl},null,8,XC),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",QC,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(a,{name:"right",size:"12"})])):t.createCommentVNode("",!0)],8,YC)):t.createCommentVNode("",!0)],64))),128))],2)}const ZC=K(HC,[["render",GC]]),{componentName:G1,create:JC}=O("comment-bottom"),_C=JC({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>{}},operation:{type:Array,default:["replay","like","more"]},complaintsText:{type:String,default:""}},components:{},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{toLocaleRefs:o}=_.useFoxI18n("comment"),l=o(e,["complaintsText"]),r=t.ref(!1),i=t.ref([]);return t.onMounted(()=>{const c=["replay","like","more"];e.operation&&e.operation.forEach(m=>{c.includes(m)&&i.value.push(m)})}),{...l,showPopver:r,operate:c=>{c=="more"&&(r.value=!r.value),n("clickOperate",c)},mergeOp:i,handleClick:()=>{n("handleClick")}}}}),e1={class:"fox-comment-bottom"},t1={key:0},n1={class:"fox-comment-bottom__cpx"},o1=["onClick"];function l1(e,n,o,l,r,i){const a=t.resolveComponent("fox-icon");return t.openBlock(),t.createElementBlock("view",e1,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...s)=>e.handleClick&&e.handleClick(...s)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",t1,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",n1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(s,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${s}`]),onClick:m=>e.operate(s)},[s!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[s]),1),t.createVNode(a,{name:s=="like"?"fabulous":"comment"},null,8,["name"])],64)):t.createCommentVNode("",!0),s=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(a,{name:"more-x"}),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:n[1]||(n[1]=m=>e.operate("popover"))},t.toDisplayString(e.complaintsText),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,o1))),128))])])}const a1=K(_C,[["render",l1]]),{componentName:r1,create:s1,scope:i1}=O("comment"),c1=s1({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:FC,CommentImages:ZC,CommentBottom:a1},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:o}=_.useFoxI18n(i1),l=t.computed(()=>({[r1]:!0})),r=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:l,conEllipsis:r,clickOperate:c=>{n("clickOperate",c)},handleClick:()=>{n("click",e.info)},clickImages:c=>{n("clickImages",c)},t:o}}}),u1=["innerHTML"],d1={class:"fox-comment__follow-title"},f1={class:"fox-comment__follow-com"},m1={key:0,class:"fox-comment__follow-img"};function p1(e,n,o,l,r,i){const a=t.resolveComponent("comment-header"),s=t.resolveComponent("comment-images"),c=t.resolveComponent("fox-icon"),m=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(a,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:n[0]||(n[0]=(...d)=>e.handleClick&&e.handleClick(...d)),innerHTML:e.info.content.replace(/\n/g,"<br>")},null,12,u1),t.createVNode(s,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:n[1]||(n[1]=(...d)=>e.handleClick&&e.handleClick(...d))},[t.createElementVNode("view",d1,[t.createVNode(c,{size:"14",name:"joy-smile"}),t.createTextVNode(t.toDisplayString(e.t("additionalReview",[e.follow.days])),1)]),t.createElementVNode("view",f1,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",m1,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",[e.follow.images.length])),1),t.createVNode(c,{size:"12",name:"right"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(m,{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 vr=K(c1,[["render",p1]]),h1=[Sl,bl,Cl,wl,Bl,Te,Al,El,Tl,$l,Dl,Jn,Ml,Ol,Fl,Hl,oo,Kl,lo,jl,Wl,Qt,Yl,Xl,et,Ql,Gl,re,Ut,he,Zl,Jl,_l,ea,ta,na,la,aa,ra,sa,ia,ca,ua,da,fa,ma,pa,ha,ga,ya,va,ka,Sa,ba,_n,no,to,Ca,wa,St,Na,Ba,Va,Aa,Ea,Ta,$a,Kt,Ia,so,ao,Vt,Ma,Pa,xa,Ra,La,Oa,Fa,Ua,Ha,tt,Ka,ja,nt,ot,Zn,jt,Ya,Xa,Qa,Ga,Za,Ja,_a,er,tr,nr,or,lr,ar,rr,sr,ir,cr,ur,dr,fr,mr,pr,hr,gr,yr,vr],g1=new Zr(h1,"4.0.0");exports.ActionSheet=Ea;exports.Address=rr;exports.AddressList=hr;exports.Animate=or;exports.Audio=Ma;exports.AudioOperate=Pa;exports.Avatar=xa;exports.AvatarGroup=Ra;exports.BackTop=Ta;exports.Badge=Qa;exports.Barrage=sr;exports.Button=et;exports.Calendar=no;exports.CalendarItem=Hl;exports.Card=mr;exports.Cascader=_n;exports.CascaderItem=Ol;exports.Category=gr;exports.CategoryPane=yr;exports.Cell=Ql;exports.CellGroup=Gl;exports.Checkbox=lo;exports.CheckboxItem=jl;exports.CircleProgress=Fa;exports.Col=_l;exports.Collapse=_a;exports.CollapseItem=er;exports.Comment=vr;exports.Content=wl;exports.CountDown=Xa;exports.CountUp=Ya;exports.DateItem=Fl;exports.DatePicker=to;exports.DateUtils=Q;exports.Dialog=Kt;exports.Divider=na;exports.DomainProvider=Xl;exports.Drag=$a;exports.Ecard=pr;exports.Elevator=fa;exports.Ellipsis=nr;exports.Empty=Ha;exports.FixedNav=sa;exports.FooterBar=Cl;exports.Grid=la;exports.GridItem=aa;exports.Group=Bl;exports.HeaderBar=bl;exports.Icon=re;exports.Image=Zl;exports.ImagePreview=jt;exports.Indicator=ga;exports.InfiniteLoading=Ia;exports.InputItem=Tl;exports.InputNumber=Ca;exports.Item=Te;exports.Layout=Jl;exports.LinkItem=Yl;exports.List=La;exports.Menu=ia;exports.MenuItem=ca;exports.MoneyItem=$l;exports.Navbar=ra;exports.NoticeBar=Ua;exports.Notify=so;exports.NumberKeyboard=Va;exports.OverLay=Ut;exports.Page=Sl;exports.Pagination=ma;exports.Picker=St;exports.PickerItem=Ml;exports.Popover=Za;exports.Popup=he;exports.Price=Zn;exports.Progress=Oa;exports.Radio=oo;exports.RadioItem=Kl;exports.Range=Sa;exports.Rate=wa;exports.Row=ea;exports.RowItem=Al;exports.SearchBar=ba;exports.ShortPassword=Na;exports.SideNavBar=ya;exports.SideNavBarItem=va;exports.Signature=ir;exports.Skeleton=Ja;exports.Sku=fr;exports.SlotItem=El;exports.Step=ja;exports.Steps=Ka;exports.Sticky=ta;exports.SubSideNavBar=ka;exports.Swipe=Aa;exports.Swiper=nt;exports.SwiperItem=ot;exports.Switch=ao;exports.SwitchItem=Wl;exports.TabPane=ha;exports.Tabbar=ua;exports.TabbarItem=da;exports.Table=tr;exports.Tabs=pa;exports.Tag=Ga;exports.Textarea=Jn;exports.TextareaItem=Dl;exports.TimeDetail=dr;exports.TimePannel=ur;exports.TimeSelect=cr;exports.Toast=Vt;exports.TrendArrow=ar;exports.UniqueID=Gn;exports.Uploader=Ba;exports.Video=tt;exports.WaterMark=lr;exports.clearNonNumber=fn;exports.clone=dn;exports.compareTo=sn;exports.debounce=mn;exports.decimalLength=ul;exports.default=g1;exports.divide=On;exports.excludeProps=fl;exports.extend=Ue;exports.floatData=ml;exports.hasSymbol=nl;exports.hinttext=Qt;exports.includeProps=ke;exports.indexOf=dl;exports.integerLength=cl;exports.isArray=br;exports.isArrayLike=al;exports.isBrowser=Ye;exports.isDate=De;exports.isESModule=Vr;exports.isEmptyString=ye;exports.isEqual=Ae;exports.isFunction=cn;exports.isHidden=ol;exports.isMap=Cr;exports.isNumberString=il;exports.isObject=Ve;exports.isPlainObject=un;exports.isPromise=Wt;exports.isRegExp=sl;exports.isSet=wr;exports.isString=Nr;exports.isSymbol=Br;exports.isWindow=ll;exports.lastIndexOf=Dr;exports.makeArray=$r;exports.merge=rl;exports.multiply=Jo;exports.negate=_o;exports.nextTick=Er;exports.numberFormat=Fn;exports.objectToString=tl;exports.raf=Fe;exports.throttle=Kn;exports.toBoolean=ve;exports.toNumber=oe;exports.toTypeString=Yt;exports.typeOf=Ot;exports.unNumberFormat=el;exports.valueLength=ce;
|
|
12
|
+
${o}
|
|
13
|
+
`)}}});function Qf(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const xa=W(Xf,[["render",Qf]]),{componentName:Gf,create:Zf}=U("divider"),Jf=Zf({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,o){return{classes:t.computed(()=>{const n=Gf;let a={[n]:!0},r={};return e.direction==="horizontal"?r={...a,[`${n}-center`]:o.slots.default,[`${n}-left`]:e.contentPosition==="left",[`${n}-right`]:e.contentPosition==="right",[`${n}-dashed`]:e.dashed,[`${n}-hairline`]:e.hairline}:r={...a,[`${n}-vertical`]:e.direction==="vertical"},r})}}});function _f(e,o,l,n,a,r){return e.direction==="horizontal"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes)},null,2))}const Pa=W(Jf,[["render",_f]]);function em(e,o){const l=[],n=a=>{Array.isArray(a)&&a.forEach(r=>{if(t.isVNode(r)){if(o){if(r.type&&r.type.name===o){l.push(r);return}}else l.push(r);r.component?.subTree&&n(r.component.subTree.children),r.children&&n(r.children)}})};return n(e),l}function tm(e,o,l){const n=em(e.subTree.children,l);o.sort((a,r)=>n.indexOf(a.vnode)-n.indexOf(r.vnode))}function om(e,o){const l=t.shallowReactive([]),n=t.getCurrentInstance(),a=i=>{i.proxy&&(l.push(t.markRaw(i)),tm(n,l,o))},r=i=>{l.splice(l.indexOf(t.markRaw(i)),1)},s=Object.assign;return i=>(t.provide(e,s({add:a,remove:r,internalChildren:l},i)),{internalChildren:l})}const{componentName:al}=U("grid"),La=Symbol("grid"),nm={columnNum:{type:[Number,String],default:4},border:{type:Boolean,default:!0},gutter:{type:[Number,String],default:0},center:{type:Boolean,default:!0},square:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},direction:{type:String},clickable:{type:Boolean,default:!1}},lm={props:nm,setup(e,{slots:o}){om(La,`${al}-item`)({props:e});const l=t.computed(()=>{const a=al;return{[a]:!0,[`${a}--border`]:e.border&&!e.gutter}}),n=t.computed(()=>{const a={};return e.gutter&&(a.paddingLeft=le(e.gutter)),a});return()=>t.h("view",{class:l.value,style:n.value},o.default?.())}},{create:am}=U("grid"),Ra=am(lm);function rm(e){const o=t.inject(e,null);if(o){const l=t.getCurrentInstance(),{add:n,remove:a,internalChildren:r}=o;n(l),t.onUnmounted(()=>a(l));const s=t.computed(()=>r.indexOf(l));return{parent:o,index:s}}return{parent:null,index:t.ref(-1)}}const{create:sm,componentName:rl}=U("grid-item"),im=sm({props:{text:{type:String}},emits:["click"],setup(e,{emit:o}){const l=rm(La);if(!l.parent)return{};const n=l.index,a=l.parent.props,r=t.computed(()=>({[rl]:!0})),s=t.computed(()=>{const d={flexBasis:`${100/+a.columnNum}%`};return a.square?d.paddingTop=`${100/+a.columnNum}%`:a.gutter&&(d.paddingRight=le(a.gutter),n.value>=a.columnNum&&(d.marginTop=le(a.gutter))),d}),i=t.computed(()=>{const d=`${rl}__content`;return{[`${d}`]:!0,[`${d}--border`]:a.border,[`${d}--surround`]:a.border&&a.gutter,[`${d}--center`]:a.center,[`${d}--square`]:a.square,[`${d}--reverse`]:a.reverse,[`${d}--${a.direction}`]:!!a.direction,[`${d}--clickable`]:a.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:d=>{o("click",d)}}}}),cm={class:"fox-grid-item__text"};function um(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.rootClass),style:t.normalizeStyle(e.rootStyle),onClick:o[0]||(o[0]=(...s)=>e.handleClick&&e.handleClick(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.contentClass)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",cm,[e.text?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.text),1)],64)):t.renderSlot(e.$slots,"text",{key:1})])],2)],6)}const Oa=W(im,[["render",um]]),{componentName:dm,create:fm}=U("navbar"),mm=fm({components:{Left:G.Left},props:{leftShow:{type:Boolean,default:!1},title:{type:String,default:""},titleIcon:{type:Boolean,default:!1},leftText:{type:String,default:""},desc:{type:String,default:""},fixed:{type:Boolean,default:!1},safeAreaInsetTop:{type:Boolean,default:!1},border:{type:Boolean,default:!1},placeholder:{type:Boolean,default:!0},zIndex:{type:[Number,String],default:10}},emits:["on-click-back","on-click-title","on-click-icon","on-click-right"],setup(e,{emit:o}){const{border:l,fixed:n,safeAreaInsetTop:a,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let d=t.ref();const m=t.computed(()=>{const g=dm;return{[g]:!0,[`${g}--border`]:l.value,[`${g}--fixed`]:n.value,[`${g}--safe-area-inset-top`]:a.value}}),f=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{n.value&&r.value&&t.nextTick(()=>{d.value=c?.value?.getBoundingClientRect().height,i.value.style.height=d.value+"px"})});function h(){o("on-click-back")}function y(){o("on-click-title")}function k(){o("on-click-icon")}function v(){o("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:m,styles:f,handleLeft:h,handleCenter:y,handleCenterIcon:k,handleRight:v}}}),pm={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},hm={key:1,class:"fox-navbar__text"},gm={class:"fox-navbar__title"},ym={key:0,class:"fox-navbar__text"},vm={key:1,class:"fox-navbar__text"},km={class:"fox-navbar__title"},bm={key:0,class:"fox-navbar__text"};function Sm(e,o,l,n,a,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",pm,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:o[0]||(o[0]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",hm,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",gm,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:o[1]||(o[1]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:o[3]||(o[3]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:o[2]||(o[2]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:o[4]||(o[4]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",ym,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6)],512)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:o[5]||(o[5]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",vm,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",km,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:o[6]||(o[6]=(...i)=>e.handleCenter&&e.handleCenter(...i))},t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.titleIcon?(t.openBlock(),t.createElementBlock("view",{key:1,class:"icon",onClick:o[8]||(o[8]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:o[7]||(o[7]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:o[9]||(o[9]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",bm,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Fa=W(mm,[["render",Sm]]),Cm=(e,o,l)=>({components:l,props:{visible:{type:Boolean,default:!1},overlay:{type:Boolean,default:!0},navList:{default:()=>[],type:Array},activeColor:{default:"",type:String},activeText:{default:"",type:String},unActiveText:{default:"",type:String},position:{default:()=>({top:"auto",bottom:"auto"}),type:Object},type:{default:"right",type:String}},emits:["update:visible","selected"],setup(n,{emit:a}){const{toLocaleRefs:r}=ie.useFoxI18n(o),s=r(n,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:n.visible,[n.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(f=!n.visible)=>{a("update:visible",f)},selected:(f,h)=>{a("selected",{item:f,event:h}),c.value=f.id},current:c}}}),{componentName:wm,create:Nm,scope:Bm}=U("fixednav"),Vm=Nm(Cm(wm,Bm,{[ot.name]:ot,Left:G.Left})),Am={class:"fox-fixednav__list"},Em=["onClick"],Tm=["src"],$m={class:"span"},Dm={key:0,class:"b"},Im={class:"text"};function qm(e,o,l,n,a,r){const s=t.resolveComponent("fox-overlay"),i=t.resolveComponent("Left");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.position)},[e.overlay?(t.openBlock(),t.createBlock(s,{key:0,visible:e.visible,"z-index":200,onClick:o[0]||(o[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",Am,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:m=>e.selected(c,m),key:c.id||d},[t.createElementVNode("img",{src:c.icon},null,8,Tm),t.createElementVNode("view",$m,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Dm,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Em))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:o[1]||(o[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{color:"#fff"}),t.createElementVNode("view",Im,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Ua=W(Vm,[["render",qm]]),{componentName:Mm,create:zm}=U("menu"),xm=zm({components:{ArrowUp2:G.ArrowUp2,ArrowDown2:G.ArrowDown2},props:{activeColor:{type:String,default:""},overlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0},duration:{type:[Number,String],default:0},titleIcon:String,closeOnClickOverlay:{type:Boolean,default:!0},direction:{type:String,default:"down"},scrollFixed:{type:[Boolean,String,Number],default:!1},titleClass:[String]},setup(e,{emit:o,slots:l}){const n=t.ref(),a=t.ref(0),r=t.ref(!1),s=()=>{const g=t.reactive([]),u=t.reactive([]);return{children:g,linkChildren:b=>{const S=E=>{E.proxy&&(u.push(E),g.push(E.proxy))},B=E=>{if(E.proxy){let I=u.indexOf(E);I>-1&&u.splice(I,1);let V=g.indexOf(E.proxy);I>-1&&g.splice(V,1)}};t.provide("menuParent",Object.assign({removeLink:B,link:S,children:g,internalChildren:u},b))}}},{children:i,linkChildren:c}=s(),d=t.computed(()=>i.some(g=>g.state.showWrapper)),m=t.computed(()=>({[Mm]:!0,"scroll-fixed":r.value})),f=()=>{if(n.value){const g=ve(n);e.direction==="down"?a.value=g.bottom:a.value=window.innerHeight-g.top}};c({props:e,offset:a});const h=g=>{i.forEach((u,p)=>{p===g?(f(),u.toggle()):u.state.showPopup&&u.toggle(!1,{immediate:!0})})},y=g=>Math.max(0,"scrollTop"in g?g.scrollTop:g.pageYOffset),k=()=>{const{scrollFixed:g}=e,u=y(window);r.value=u>(typeof g=="boolean"?30:Number(g))},v=g=>{let u="";const{titleClass:p}=e;return g&&(u+="active"),p&&(u+=` ${p}`),u};return t.onMounted(()=>{const{scrollFixed:g}=e;g&&window.addEventListener("scroll",k)}),t.onUnmounted(()=>{const{scrollFixed:g}=e;g&&window.removeEventListener("scroll",k)}),{toggleItem:h,children:i,opened:d,classes:m,barRef:n,getClasses:v}}}),Pm=["onClick"],Lm={class:"fox-menu__title-text"},Rm={class:"fox-menu__title-icon"};function Om(e,o,l,n,a,r){const s=t.resolveComponent("ArrowUp2"),i=t.resolveComponent("ArrowDown2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__bar",{opened:e.opened}]),ref:"barRef"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.children,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:m=>!c.disabled&&e.toggleItem(d),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",Lm,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Rm,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Pm))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Ka=W(xm,[["render",Om]]),{componentName:Fm,create:Um}=U("menu-item"),Km=Um({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[ce.name]:ce,Check:G.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:o,slots:l}){const n=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),a=()=>{const y=t.inject("menuParent",null);if(y){const k=t.getCurrentInstance(),{link:v,removeLink:g}=y;return v(k),t.onUnmounted(()=>{g(k)}),{parent:y}}},{parent:r}=a(),s=t.computed(()=>({[Fm]:!0})),i=t.computed(()=>{const y={height:r.offset.value+"px"};return r.props.direction==="down"?y:{...y,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const y=e.options?.find(k=>k.value===e.modelValue);return y?y.text:""},state:n,parent:r,toggle:(y=!n.showPopup,k={})=>{y!==n.showPopup&&(n.showPopup=y,n.isShowPlaceholderElement=y,y&&(n.showWrapper=!0,o("open")))},onClick:y=>{n.showPopup=!1,n.isShowPlaceholderElement=!1,y.value!==e.modelValue&&(o("update:modelValue",y.value),o("change",y.value))},handleClose:()=>{o("close"),n.showWrapper=!1,n.isShowPlaceholderElement=!1},handleClickOutside:()=>{n.showPopup=!1,o("close")}}}}),Hm={class:"fox-menu-item__content fox-menu-item__overflow"},jm=["onClick"];function Wm(e,o,l,n,a,r){const s=t.resolveComponent("Check"),i=t.resolveComponent("fox-popup");return t.withDirectives((t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{onClick:o[0]||(o[0]=(...c)=>e.handleClickOutside&&e.handleClickOutside(...c)),class:t.normalizeClass(["fox-menu-item-placeholder-element",{up:e.parent.props.direction==="up"}]),style:t.normalizeStyle(e.placeholderElementStyle)},null,6),[[t.vShow,e.state.isShowPlaceholderElement]]),t.createVNode(i,t.mergeProps({style:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px"},overlayStyle:e.parent.props.direction==="down"?{top:e.parent.offset.value+"px"}:{bottom:e.parent.offset.value+"px",top:"auto"}},e.$attrs,{visible:e.state.showPopup,"onUpdate:visible":o[1]||(o[1]=c=>e.state.showPopup=c),position:e.parent.props.direction==="down"?"top":"bottom",duration:e.parent.props.duration,"pop-class":"fox-menu__pop","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:t.withCtx(()=>[t.createElementVNode("view",Hm,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,d)=>(t.openBlock(),t.createElementBlock("view",{key:d,class:t.normalizeClass(["fox-menu-item__option",[{active:c.value===e.modelValue}]]),style:t.normalizeStyle({"flex-basis":100/e.cols+"%"}),onClick:m=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps(e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass([c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),7)],14,jm))),128)),t.renderSlot(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}const Ha=W(Km,[["render",Wm]]),{create:Ym}=U("tabbar"),Xm=Ym({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,o){function l(a){n.value!==a&&(n.value=a,o.emit("update:modelValue",a),o.emit("change",a,n.children[a]))}const n=t.reactive({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:l});return t.provide("parent",n),t.watch(()=>e.modelValue,a=>{n.value=a}),{changeIndex:l}}});function Qm(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabbar",{"fox-tabbar-bottom":e.bottom,"fox-tabbar-safebottom":e.safeAreaInsetBottom}])},[t.renderSlot(e.$slots,"default")],2)}const ja=W(Xm,[["render",Qm]]),{create:Gm}=U("tabbar-item"),Zm=Gm({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,o){const l=t.inject("parent"),n=t.reactive({size:l.size,inactiveColor:l.inactiveColor,activeColor:l.activeColor,value:l.value,index:0}),a=t.getCurrentInstance();a!==null&&(d=>{if(d.proxy){let m=l.children.length;n.index=m;let f=Object.assign(d.proxy,{index:m});l.children.push(f)}})(a);const r=t.computed(()=>n.index===n.value);function s(c){l&&typeof l.changeIndex=="function"&&l.changeIndex(c)}const i=t.computed(()=>l?l.value:null);return t.watch(i,c=>{n.value=c}),{state:n,active:r,change:s}}}),Jm={class:"fox-tabbar-item_icon-box"},_m={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},ep={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},tp={key:1,class:"fox-tabbar-item_icon-box_dot"},op={key:2},np={key:0};function lp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["fox-tabbar-item",{"fox-tabbar-item__icon--unactive":!e.active}]),style:t.normalizeStyle({color:e.active?e.state.activeColor:e.state.deactiveColor}),onClick:o[0]||(o[0]=s=>e.change(e.state.index))},[t.createElementVNode("view",Jm,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",_m,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",ep,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",tp)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",op,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.icon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):t.createCommentVNode("",!0),!e.icon&&e.activeImg?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:t.normalizeStyle({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?(t.openBlock(),t.createElementBlock("view",np,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Wa=W(Zm,[["render",lp]]),{componentName:ap,create:rp}=U("elevator"),sp=rp({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,o){const l=t.ref(null),n=t.reactive({anchorIndex:0,codeIndex:0,listHeight:[],listGroup:[],touchState:{y1:0,y2:0},scrollStart:!1,currentIndex:0,currentData:{},currentKey:"",scrollY:0,diff:-1,fixedTop:0}),a=t.computed(()=>({[ap]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${n.scrollY+n.fixedTop}px, 0)`})),s=t.computed(()=>l.value.clientHeight),i=(u,p)=>{const b="data-";return u.getAttribute(b+p)},c=u=>{t.nextTick(()=>{!n.listGroup.includes(u)&&u!=null&&n.listGroup.push(u)})},d=()=>{let u=0;n.listHeight.push(u);for(let p=0;p<n.listGroup.length;p++){let b=n.listGroup[p];u+=Math.floor(b.clientHeight),n.listHeight.push(u)}},m=u=>{!u&&u!==0||(u<0&&(u=0),u>n.listHeight.length-2&&(u=n.listHeight.length-2),n.codeIndex=u,l.value.scrollTo(0,n.listHeight[u]))},f=u=>{n.scrollStart=!0;let p=i(u.target,"index"),b=u.touches[0];n.touchState.y1=b.pageY,n.anchorIndex=+p,n.codeIndex=+p,m(+p)},h=u=>{let p=u.touches[0];n.touchState.y2=p.pageY;let b=(n.touchState.y2-n.touchState.y1)/e.spaceHeight|0;n.codeIndex=n.anchorIndex+b,m(n.codeIndex)},y=()=>{n.scrollStart=!1},k=(u,p)=>{o.emit("click-item",u,p),n.currentData=p,n.currentKey=u},v=u=>{o.emit("click-index",u)},g=u=>{let b=u.target.scrollTop;const S=n.listHeight;n.scrollY=b;for(let B=0;B<S.length-1;B++){let E=S[B],I=S[B+1];if(n.scrollY>=E&&n.scrollY<I){n.currentIndex=B,n.diff=I-n.scrollY;return}}n.currentIndex=S.length-2};return t.onMounted(()=>{l.value.addEventListener("scroll",g)}),Te({scrollTo:m}),t.watch(()=>n.listGroup.length,()=>{n.listHeight=[],t.nextTick(d)}),t.watch(()=>n.diff,u=>{const p=n.listHeight;let b=u>0&&u<e.titleHeight?u-e.titleHeight:0;n.scrollY+s.value===p[p.length-1]&&b!==0&&(b=0),n.fixedTop!==b&&(n.fixedTop=b)}),t.watch(()=>n.currentIndex,u=>{o.emit("change",u)}),{classes:a,...t.toRefs(n),fixedStyle:r,clientHeight:s,setListGroup:c,listview:l,touchStart:f,touchMove:h,touchEnd:y,handleClickItem:k,handleClickIndex:v}}}),ip={class:"fox-elevator__list__item__code"},cp=["onClick"],up=["innerHTML"],dp={class:"fox-elevator__fixed-title"},fp={class:"fox-elevator__bars__inner"},mp=["data-index","onClick"];function pp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",ip,t.toDisplayString(s[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===i.id&&e.currentKey===s[e.acceptKey]}]),key:i.id,onClick:c=>e.handleClickItem(s[e.acceptKey],i)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:1,item:i}):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:i.name},null,8,up))],10,cp))),128))]))),128)),e.isSticky?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__list__fixed",style:t.normalizeStyle(e.fixedStyle)},[t.createElementVNode("span",dp,t.toDisplayString(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):t.createCommentVNode("",!0)],4),e.indexList.length?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__code--current"},t.toDisplayString(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-elevator__bars",onTouchstart:o[0]||(o[0]=(...s)=>e.touchStart&&e.touchStart(...s)),onTouchmove:o[1]||(o[1]=t.withModifiers((...s)=>e.touchMove&&e.touchMove(...s),["stop","prevent"])),onTouchend:o[2]||(o[2]=(...s)=>e.touchEnd&&e.touchEnd(...s))},[t.createElementVNode("view",fp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:s[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":i,key:s[e.acceptKey],onClick:c=>e.handleClickIndex(s[e.acceptKey])},t.toDisplayString(s[e.acceptKey]),11,mp))),128))])],32)],2)}const no=W(sp,[["render",pp]]),{componentName:ww,create:hp,scope:gp}=U("pagination"),yp=hp({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:o}){const{toLocaleRefs:l}=ie.useFoxI18n(gp),n=l(e,["prevText","nextText"]),{modelValue:a,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:y,itemsPerPage:k}=t.toRefs(e),v=+h.value||Math.ceil(+y.value/+k.value);return Math.max(1,v)}),d=(h,y)=>{h>c.value||h<1||(h!=a.value&&o("update:modelValue",h),y&&o("change",h))},m=(h,y,k=!1)=>({number:h,text:y,active:k}),f=t.computed(()=>{if(r.value=="simple")return;let h=[];const y=c.value,k=+s.value;let v=1,g=y;const u=y>k;u&&(v=Math.max(a.value-Math.floor(k/2),1),g=v+k-1,g>y&&(g=y,v=g-k+1));for(var p=v;p<=g;p++){const b=m(p,p,a.value==p);h.push(b)}if(u&&k>0&&i.value){if(v>1){const b=m(v-1,"...");h.unshift(b)}if(g<y){const b=m(g+1,"...");h.push(b)}}return h});return t.watchEffect(()=>{d(a.value,!1)}),{...n,modelValue:a,select:d,countRef:c,mode:r,pages:f,forceEllipses:i}}}),vp={class:"fox-pagination"},kp={key:0,class:"fox-pagination-contain"},bp=["onClick"],Sp={key:1,class:"fox-pagination-contain"},Cp={class:"fox-pagination-simple"};function wp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",vp,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:o[0]||(o[0]=s=>e.select(e.modelValue-1,!0))},[t.renderSlot(e.$slots,"prev-text",{},()=>[t.createTextVNode(t.toDisplayString(e.prevText),1)])],2),e.mode=="multi"?(t.openBlock(),t.createElementBlock("view",kp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(s,i)=>(t.openBlock(),t.createElementBlock("view",{key:i+"pagination",class:t.normalizeClass(["fox-pagination-item",s.active?"active":""]),onClick:c=>e.select(s.number,!0)},[t.renderSlot(e.$slots,"page",{item:s},()=>[t.createTextVNode(t.toDisplayString(s.text),1)])],10,bp))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",Sp,[t.createElementVNode("view",Cp,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:o[1]||(o[1]=s=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const Ya=W(yp,[["render",wp]]),{componentName:sl,create:Np}=U("indicator"),Bp=Np({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:o,align:l}=t.toRefs(e);return{classes:t.computed(()=>{const a=sl;return{[a]:!0,[`${a}--block`]:o.value,[`${a}--align__${l.value}`]:o.value&&l.value}}),componentName:sl,padZero:Ge}}});function Vp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.size,s=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:s},[s===e.current?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(`${e.componentName}--number`)},t.toDisplayString(e.fillZero&&e.padZero(s)||s),3)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(`${e.componentName}--dot`)},null,2))],64))),128))],2)}const Xa=W(Bp,[["render",Vp]]),{componentName:Ap,create:Ep}=U("side-navbar"),Tp=Ep({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const o=t.ref(null),l=t.reactive({count:1,observer:null}),n=t.computed(()=>({[Ap]:!0})),a=(s,i=1)=>{for(let c=0;c<s.length;c++){let d=s[c];d?.children?.[0]&&(d.children[0].style.paddingLeft=+e.offset*i+"px",d.className.includes("fox-side-navbar-item")||a(Array.from(d.children[1].children),++l.count))}l.count--},r=()=>{let s=o.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),a(s))};return t.onMounted(()=>{r(),l.observer=new MutationObserver(function(){l.count=1,r()}),l.observer.observe(o.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(l),list:o,classes:n}}}),$p={class:"fox-side-navbar__content"},Dp={class:"fox-side-navbar__content__list",ref:"list"};function Ip(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",$p,[t.createElementVNode("view",Dp,[t.renderSlot(e.$slots,"default")],512)])],2)}const Qa=W(Tp,[["render",Ip]]),{componentName:qp,create:Mp}=U("side-navbar-item"),zp=Mp({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,o)=>({classes:t.computed(()=>({[qp]:!0})),handleClick:()=>{o.emit("click")}})}),xp=["ikey"],Pp={class:"fox-side-navbar-item__title"};function Lp(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[t.createElementVNode("span",Pp,t.toDisplayString(e.title),1)],10,xp)}const Ga=W(zp,[["render",Lp]]),{componentName:Rp,create:Op}=U("sub-side-navbar"),Fp=Op({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:G.ArrowDown2,ArrowUp2:G.ArrowUp2},emits:["title-click"],setup:(e,o)=>{const l=t.reactive({direction:""}),n=t.computed(()=>({[Rp]:!0})),a=t.computed(()=>({height:l.direction?"0px":"auto"})),r=()=>{o.emit("title-click"),l.direction=l.direction?"":"up"};return t.onMounted(()=>{l.direction=e.open?"":"up"}),{...t.toRefs(l),classes:n,style:a,handleClick:r}}}),Up=["ikey"],Kp={class:"fox-sub-side-navbar__title__text"},Hp={class:"fox-sub-side-navbar__title__icon"};function jp(e,o,l,n,a,r){const s=t.resolveComponent("ArrowDown2"),i=t.resolveComponent("ArrowUp2");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ikey:e.ikey},[t.createElementVNode("view",{class:"fox-sub-side-navbar__title",onClick:o[0]||(o[0]=t.withModifiers((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[t.createElementVNode("span",Kp,t.toDisplayString(e.title),1),t.createElementVNode("span",Hp,[e.direction?(t.openBlock(),t.createBlock(i,{key:1})):(t.openBlock(),t.createBlock(s,{key:0}))])]),t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(["fox-sub-side-navbar__list",e.direction?"nutFadeOut":"nutFadeIn"]),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6),[[t.vShow,!e.direction]])],10,Up)}const Za=W(Fp,[["render",jp]]),{componentName:Wp,create:Yp}=U("range"),Xp=Yp({props:{range:{type:Boolean,default:!1},disabled:Boolean,activeColor:String,inactiveColor:String,buttonColor:String,vertical:{type:Boolean,default:!1},marks:{type:Object,default:{}},hiddenRange:{type:Boolean,default:!1},hiddenTag:{type:Boolean,default:!1},min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},modelValue:{type:[Number,Array],default:0}},emits:["change","drag-end","drag-start","update:modelValue"],setup(e,{emit:o}){const l=t.ref(0);let n,a;const r=t.ref(),s=t.ref(),i=Ke(),c=t.computed(()=>{const{marks:A,max:T,min:z}=e;return Object.keys(A).map(parseFloat).sort((H,j)=>H-j).filter(H=>H>=z&&H<=T)}),d=t.computed(()=>Number(e.max)-Number(e.min)),m=t.computed(()=>{const A=Wp;return{[A]:!0,[`${A}-disabled`]:e.disabled,[`${A}-vertical`]:e.vertical,[`${A}-show-number`]:!e.hiddenRange}}),f=t.computed(()=>{const A="fox-range-container";return{[A]:!0,[`${A}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),y=t.computed(()=>({borderColor:e.buttonColor})),k=A=>!!e.range&&Array.isArray(A),v=()=>{const{modelValue:A,min:T}=e;return k(A)?`${(A[1]-A[0])*100/d.value}%`:`${(A-Number(T))*100/d.value}%`},g=()=>{const{modelValue:A,min:T}=e;return k(A)?`${(A[0]-Number(T))*100/d.value}%`:"0%"},u=t.computed(()=>e.vertical?{height:v(),top:g(),background:e.activeColor,transition:s.value?"none":void 0}:{width:v(),left:g(),background:e.activeColor,transition:s.value?"none":void 0}),p=A=>{const T="fox-range-mark",{modelValue:z,max:$,min:x}=e;let H=Number(x),j=Number($);if(e.range){const[R,O]=z;H=R,j=O}else j=z;let Y=A<=j&&A>=H;return{[`${T}-text`]:!0,[`${T}-text-active`]:Y}},b=A=>{const{min:T,vertical:z}=e;let $={left:`${(A-Number(T))/d.value*100}%`};return z&&($={top:`${(A-Number(T))/d.value*100}%`}),$},S=A=>{const{modelValue:T,max:z,min:$}=e;let x=Number($),H=Number(z);if(e.range){const[R,O]=T;x=R,H=O}return{background:A<=H&&A>=x?e.activeColor:e.inactiveColor}},B=A=>{const{min:T,max:z,step:$}=e;return A=Math.max(+T,Math.min(A,+z)),Math.round(A/+$)*+$},E=(A,T)=>JSON.stringify(A)===JSON.stringify(T),I=A=>A[0]>A[1]?A.slice(0).reverse():A,V=(A,T)=>{k(A)?A=I(A).map(B):A=B(A),E(A,e.modelValue)||o("update:modelValue",A),T&&!E(A,n)&&o("change",A)},C=A=>{if(e.disabled)return;const{min:T,modelValue:z}=e,$=ve(r);let x=A.clientX-$.left,H=$.width;e.vertical&&(x=A.clientY-$.top,H=$.height);const j=Number(T)+x/H*d.value;if(k(z)){const[Y,R]=z,O=(Y+R)/2;j<=O?V([j,R],!0):V([Y,j],!0)}else V(j,!0)},w=A=>{e.disabled||(i.start(A),a=e.modelValue,k(a)?n=a.map(B):n=B(a),s.value="start")},q=A=>{if(e.disabled)return;s.value==="start"&&o("drag-start"),i.move(A),s.value="draging";const T=ve(r);let z=i.deltaX.value,$=T.width,x=z/$*d.value;e.vertical&&(z=i.deltaY.value,$=T.height,x=z/$*d.value),k(n)?a[l.value]=n[l.value]+x:a=n+x,V(a),A.stopPropagation(),A.preventDefault()},L=()=>{e.disabled||(s.value==="draging"&&(V(a,!0),o("drag-end")),s.value="")},M=A=>mo(e.modelValue)&&typeof A=="number"?e.modelValue[A]:Number(e.modelValue);return{root:r,classes:m,wrapperStyle:h,buttonStyle:y,onClick:C,onTouchStart:w,onTouchMove:q,onTouchEnd:L,...t.toRefs(e),barStyle:u,curValue:M,buttonIndex:l,containerClasses:f,markClassName:p,marksStyle:b,marksList:c,tickStyle:S}}}),Qp={key:0,class:"fox-range-min"},Gp={key:0,class:"fox-range-mark"},Zp=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Jp={key:0,class:"number"},_p=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],eh={key:0,class:"number"},th={key:1,class:"fox-range-max"};function oh(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Qp,t.toDisplayString(+e.min),1)),t.createElementVNode("view",{ref:"root",style:t.normalizeStyle(e.wrapperStyle),class:t.normalizeClass(e.classes),onClick:o[9]||(o[9]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",Gp,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,s=>(t.openBlock(),t.createElementBlock("span",{key:s,class:t.normalizeClass(e.markClassName(s)),style:t.normalizeStyle(e.marksStyle(s))},[t.createTextVNode(t.toDisplayString(s)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(s))},null,4)],6))),128))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-range-bar",style:t.normalizeStyle(e.barStyle)},[e.range?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList([0,1],s=>t.createElementVNode("view",{key:s,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":s==0,"fox-range-button-wrapper-right":s==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(s),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(i=>{typeof s=="number"&&(e.buttonIndex=s),e.onTouchStart(i)},["stop","prevent"]),onTouchmove:o[0]||(o[0]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:o[1]||(o[1]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:o[2]||(o[2]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:o[3]||(o[3]=i=>i.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Jp,t.toDisplayString(e.curValue(s)),1))],4))],42,Zp)),64)):(t.openBlock(),t.createElementBlock("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:o[4]||(o[4]=t.withModifiers(s=>{e.onTouchStart(s)},["stop","prevent"])),onTouchmove:o[5]||(o[5]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:o[6]||(o[6]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:o[7]||(o[7]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:o[8]||(o[8]=s=>s.stopPropagation())},[e.$slots.button?t.renderSlot(e.$slots,"button",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-range-button",style:t.normalizeStyle(e.buttonStyle)},[e.hiddenTag?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",eh,t.toDisplayString(e.curValue()),1))],4))],40,_p))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",th,t.toDisplayString(+e.max),1))],2)}const lo=W(Xp,[["render",oh]]),{create:nh,scope:lh}=U("searchbar"),ah=nh({props:{modelValue:{type:[String,Number],default:""},inputType:{type:String,default:"text"},label:{type:String,default:""},shape:{type:String,default:"round"},maxLength:{type:[String,Number],default:"9999"},placeholder:{type:String,default:""},clearable:{type:Boolean,default:!0},clearIcon:{type:Object,default:()=>G.CircleClose},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},emits:["change","update:modelValue","blur","focus","clear","search","click-input","click-left-icon","click-right-icon"],setup(e,{emit:o}){const{toLocaleRefs:l}=ie.useFoxI18n(lh),n=l(e,["placeholder"]),a=t.reactive({active:!1}),r=t.computed(()=>({background:e.background})),s=t.computed(()=>({background:e.inputBackground})),i=p=>{let S=p.target.value;e.maxLength&&S.length>Number(e.maxLength)&&(S=S.slice(0,Number(e.maxLength))),o("update:modelValue",S,p),o("change",S,p)},c=t.ref({}),d=p=>{let S=p.target.value;a.active=!0,c.value=e.focusStyle,o("focus",S,p)},m=p=>{setTimeout(()=>{a.active=!1},0);let S=p.target.value;e.maxLength&&S.length>Number(e.maxLength)&&(S=S.slice(0,Number(e.maxLength))),c.value={},o("blur",S,p)},f=p=>{o("update:modelValue","",p),o("change","",p),o("clear","")},h=()=>{o("search",e.modelValue)},y=p=>{o("click-input",p)},k=p=>{o("click-left-icon",e.modelValue,p)},v=p=>{o("click-right-icon",e.modelValue,p)},g=t.computed(()=>({textAlign:e.inputAlign})),u=t.ref(null);return t.onMounted(()=>{e.autofocus&&u.value.focus()}),{...n,inputsearch:u,...t.toRefs(a),valueChange:i,valueFocus:d,valueBlur:m,handleClear:f,handleSubmit:h,searchbarStyle:r,inputSearchbarStyle:s,focusCss:c,clickInput:y,leftIconClick:k,rightIconClick:v,styleSearchbar:g}}}),rh={key:0,class:"fox-searchbar__search-label"},sh={key:1,class:"fox-searchbar__search-icon fox-searchbar__left-search-icon"},ih=["type","maxlength","placeholder","value","disabled","readonly"],ch={key:1,class:"fox-searchbar__search-icon fox-searchbar__iptright-search-icon"},uh={key:2,class:"fox-searchbar__search-icon fox-searchbar__right-search-icon"};function dh(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:"fox-searchbar",style:t.normalizeStyle(e.searchbarStyle)},[e.label?(t.openBlock(),t.createElementBlock("span",rh,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0),e.$slots.leftout?(t.openBlock(),t.createElementBlock("view",sh,[t.renderSlot(e.$slots,"leftout")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__search-input",e.shape]),style:t.normalizeStyle({...e.inputSearchbarStyle,...e.focusCss})},[e.$slots.leftin?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-searchbar__search-icon fox-searchbar__iptleft-search-icon",onClick:o[0]||(o[0]=(...s)=>e.leftIconClick&&e.leftIconClick(...s))},[t.renderSlot(e.$slots,"leftin")])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner",e.$slots.rightin&&"fox-searchbar__input-inner-absolute"])},[t.createElementVNode("form",{class:"fox-searchbar__input-form",action:"#",onSubmit:o[5]||(o[5]=t.withModifiers((...s)=>e.handleSubmit&&e.handleSubmit(...s),["prevent"]))},[t.createElementVNode("input",{ref:"inputsearch",class:t.normalizeClass(["fox-searchbar__input-bar",e.clearable&&"fox-searchbar__input-bar_clear"]),type:e.inputType,maxlength:e.maxLength,placeholder:e.placeholder,value:e.modelValue,disabled:e.disabled,readonly:e.readonly,onClick:o[1]||(o[1]=(...s)=>e.clickInput&&e.clickInput(...s)),onInput:o[2]||(o[2]=(...s)=>e.valueChange&&e.valueChange(...s)),onFocus:o[3]||(o[3]=(...s)=>e.valueFocus&&e.valueFocus(...s)),onBlur:o[4]||(o[4]=(...s)=>e.valueBlur&&e.valueBlur(...s)),style:t.normalizeStyle(e.styleSearchbar)},null,46,ih)],32)],2),t.createElementVNode("view",{class:t.normalizeClass(["fox-searchbar__input-inner-icon",e.$slots.rightin&&"fox-searchbar__input-inner-icon-absolute"])},[e.clearable?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,onClick:o[6]||(o[6]=(...s)=>e.handleClear&&e.handleClear(...s)),class:"fox-searchbar__search-icon fox-searchbar__input-clear"},[e.$slots["clear-icon"]?t.renderSlot(e.$slots,"clear-icon",{key:0}):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.clearIcon),{key:1}))],512)),[[t.vShow,String(e.modelValue).length>0]]):t.createCommentVNode("",!0),e.$slots.rightin?(t.openBlock(),t.createElementBlock("view",ch,[t.renderSlot(e.$slots,"rightin")])):t.createCommentVNode("",!0)],2)],6),e.$slots.rightout?(t.openBlock(),t.createElementBlock("view",uh,[t.renderSlot(e.$slots,"rightout")])):t.createCommentVNode("",!0)],4)}const Ja=W(ah,[["render",dh]]),{componentName:fh,create:mh}=U("input-number"),ph=mh({components:{Minus:G.Minus,Plus:G.Plus},props:{modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:o}){const l=t.computed(()=>{const y=fh;return{[y]:!0,[`${y}--disabled`]:e.disabled}}),n=y=>Number(y).toFixed(Number(e.decimalPlaces)),a=y=>{const k=y.target;o("update:modelValue",k.valueAsNumber,y)},r=(y,k)=>{let v=n(y);o("update:modelValue",v,k),o("change",v,k)},s=(y=Number(e.modelValue))=>y<Number(e.max)&&!e.disabled,i=(y=Number(e.modelValue))=>y>Number(e.min)&&!e.disabled,c=y=>{if(o("reduce",y),i()){let k=Number(e.modelValue)-Number(e.step);r(k,y)}else o("overlimit",y,"reduce")},d=y=>{if(o("add",y),s()){let k=Number(e.modelValue)+Number(e.step);r(k,y)}else o("overlimit",y,"add")},m=y=>{e.disabled||e.readonly||o("focus",y)},f=y=>{if(e.disabled||e.readonly)return;let v=y.target.valueAsNumber;v<Number(e.min)?v=Number(e.min):v>Number(e.max)&&(v=Number(e.max)),r(v,y),o("blur",y)},h=y=>{let k=Number(y);return k<Number(e.min)?k=Number(e.min):k>Number(e.max)&&(k=Number(e.max)),k};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const y=h(e.modelValue);y!==Number(e.modelValue)&&r(y,{})}),{classes:l,change:a,blur:f,focus:m,add:d,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:le}}}),hh=["min","max","disabled","readonly","value"];function gh(e,o,l,n,a,r){const s=t.resolveComponent("Minus"),i=t.resolveComponent("Plus");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__left",{"fox-input-number__icon--disabled":!e.reduceAllow()}]),onClick:o[0]||(o[0]=(...c)=>e.reduce&&e.reduce(...c))},[t.renderSlot(e.$slots,"left-icon",{},()=>[t.createVNode(s,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2),t.createElementVNode("input",{type:"number",min:e.min,max:e.max,style:t.normalizeStyle({width:e.toPxDesc(e.inputWidth),height:e.toPxDesc(e.buttonSize)}),disabled:e.disabled,readonly:e.readonly,value:e.modelValue,onInput:o[1]||(o[1]=(...c)=>e.change&&e.change(...c)),onBlur:o[2]||(o[2]=(...c)=>e.blur&&e.blur(...c)),onFocus:o[3]||(o[3]=(...c)=>e.focus&&e.focus(...c))},null,44,hh),t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:o[4]||(o[4]=(...c)=>e.add&&e.add(...c))},[t.renderSlot(e.$slots,"right-icon",{},()=>[t.createVNode(i,{width:e.toPxDesc(e.buttonSize),height:e.toPxDesc(e.buttonSize)},null,8,["width","height"])])],2)],2)}const pt=W(ph,[["render",gh]]),{create:yh,componentName:vh}=U("rate"),kh=yh({props:{count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object,default:()=>G.StarFillN},size:{type:[String,Number],default:void 0},activeColor:{type:String,default:""},voidColor:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:void 0}},components:{StarFillN:G.StarFillN},emits:["update:modelValue","change"],setup(e,{emit:o,slots:l}){const n=t.ref([]),a=t.computed(()=>({[vh]:!0})),r=h=>{o("update:modelValue",h),o("change",h)},s=(h,y)=>{if(e.disabled||e.readonly)return;let k=0;y===1&&e.modelValue===y||(k=y,e.allowHalf&&h==2&&(k-=.5)),r(k)},i=(h,y,k)=>{let v=0;for(let g=y.value.length-1;g>=0;g--){const u=y.value[g];if(h>u.offsetLeft){k?v=g+(h>u.offsetLeft+u.clientWidth/2?1:.5):v=g+1;break}}return v},c=Ke(),d={onTouchStart(h){!e.touchable||e.readonly||c.start(h)},onTouchMove(h){e.touchable&&(c.move(h),c.isHorizontal()&&n.value&&(h.preventDefault(),r(i(c.moveX.value,n,e.allowHalf))))}},m=Math.random().toString(36).slice(-8);return{classes:a,...d,onClick:s,toPxDesc:le,renderIcon:(h,y)=>t.h(h,y),rateRefs:n,refRandomId:m,slots:l}}}),bh=["id"],Sh={class:"fox-rate-item__icon--full"},Ch={key:0,class:"fox-rate-item__icon--half"},wh={key:1,class:"fox-rate-item__icon--half"};function Nh(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.count),s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-rate-item",key:s,ref_for:!0,ref:"rateRefs",id:"rateRefs-"+e.refRandomId+s,style:t.normalizeStyle(s<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",Sh,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=e.modelValue?e.activeColor:e.voidColor})),{class:t.normalizeClass(["fox-rate-item__icon",{"fox-rate-item__icon--disabled":e.disabled||s>e.modelValue}]),onClick:i=>e.onClick(1,s)},null,8,["class","onClick"]))]),e.allowHalf&&Number(e.modelValue)+1>s?(t.openBlock(),t.createElementBlock("view",Ch,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:s<=Number(e.modelValue)+1?e.activeColor:e.voidColor})),{class:"fox-rate-item__icon",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):e.allowHalf&&Number(e.modelValue)+1<s?(t.openBlock(),t.createElementBlock("view",wh,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.customIcon,{width:e.size,height:e.size,size:e.size,color:e.voidColor})),{class:"fox-rate-item__icon fox-rate-item__icon--disabled",onClick:i=>e.onClick(2,s)},null,8,["onClick"]))])):t.createCommentVNode("",!0)],12,bh))),128))],34)}const ao=W(kh,[["render",Nh]]),{create:Bh,scope:Vh}=U("short-password"),Ah=Bh({components:{[ce.name]:ce,Tips:G.Tips},props:{title:{type:String,default:""},desc:{type:String,default:""},tips:{type:String,default:""},visible:{type:Boolean,default:!1},modelValue:{type:String,default:""},errorMsg:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!0},length:{type:[String,Number],default:6}},emits:["update:modelValue","update:visible","complete","tips","close","focus"],setup(e,{emit:o}){const{toLocaleRefs:l}=ie.useFoxI18n(Vh),n=l(e,["title","desc","tips"]),a=t.ref(e.modelValue),r=t.computed(()=>d(Number(e.length))),s=t.ref(e.visible),i=f=>{f.stopPropagation(),o("focus")};t.watch(()=>e.visible,f=>{s.value=f}),t.watch(()=>e.modelValue,f=>{a.value=f,String(f).length===r.value&&o("complete",f)});const c=()=>{o("update:visible",!1),o("close")},d=f=>Math.min(Math.max(4,f),6);return{comLen:r,realInput:a,onTouchStart:i,range:d,close:c,onTips:()=>{o("tips")},show:s,...n}}}),Eh={class:"fox-short-password-title"},Th={class:"fox-short-password-subtitle"},$h={class:"fox-short-password-wrapper"},Dh={key:0,class:"fox-short-password__item-icon"},Ih={class:"fox-short-password__message"},qh={class:"fox-short-password--error"},Mh={key:0,class:"fox-short-password--forget"};function zh(e,o,l,n,a,r){const s=t.resolveComponent("Tips"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("view",null,[t.createVNode(i,{style:{padding:"30px 24px 20px 24px",borderRadius:"12px",textAlign:"center",top:"45%"},visible:e.show,"onUpdate:visible":o[2]||(o[2]=c=>e.show=c),closeable:!0,onClickCloseIcon:e.close,"close-on-click-overlay":e.closeOnClickOverlay,onClickOverlay:e.close,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("view",Eh,t.toDisplayString(e.title),1),t.createElementVNode("view",Th,t.toDisplayString(e.desc),1),t.createElementVNode("div",$h,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:o[0]||(o[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:d},[String(e.realInput).length>d?(t.openBlock(),t.createElementBlock("view",Dh)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",Ih,[t.createElementVNode("view",qh,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",Mh,[t.createVNode(s,{class:"icon",width:"11px",height:"11px"}),t.createElementVNode("view",{onClick:o[1]||(o[1]=(...c)=>e.onTips&&e.onTips(...c))},t.toDisplayString(e.tips),1)])):t.createCommentVNode("",!0)])]),_:1},8,["visible","onClickCloseIcon","close-on-click-overlay","onClickOverlay"])])}const _a=W(Ah,[["render",zh]]);class xh{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Ph=class{options;constructor(o){this.options=o}upload(){const o=this.options,l=new XMLHttpRequest;if(l.timeout=o.timeout,l.upload){l.upload.addEventListener("progress",n=>{o.onProgress?.(n,o)},!1),l.onreadystatechange=()=>{l.readyState===4&&(l.status==o.xhrState?o.onSuccess?.(l.responseText,o):o.onFailure?.(l.responseText,o))},l.withCredentials=o.withCredentials,l.open(o.method,o.url,!0);for(const[n,a]of Object.entries(o.headers))l.setRequestHeader(n,a);o.onStart?.(o),o.beforeXhrUpload?o.beforeXhrUpload(l,o):l.send(o.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}};class Lh{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const er=(e,{args:o=[],done:l,canceled:n})=>{if(e){const a=e.apply(null,o);sn(a)?a.then(r=>{r?l(r):n&&n()}).catch(()=>{}):a?l():n&&n()}else l()},{create:Rh}=U("progress"),Oh=Rh({components:{Checked:G.Checked},props:{percentage:{type:[Number,String],default:0,required:!0},size:{type:String,default:"base"},status:{type:String,default:""},strokeWidth:{type:[Number,String],default:""},textInside:{type:Boolean,default:!1},showText:{type:Boolean,default:!0},strokeColor:{type:String,default:""},textColor:{type:String,default:""},textBackground:{type:String,default:""},isShowPercentage:{type:Boolean,default:!0}},setup(e){const o=!!t.useSlots().default,l=t.ref(e.strokeWidth+"px"),n=t.ref(),a=t.ref(),r=t.computed(()=>e.percentage>=100?100:e.percentage),s=t.computed(()=>({width:r.value+"%",background:e.strokeColor||""})),i=t.computed(()=>({color:e.textColor||""}));return t.onMounted(()=>{}),{height:l,percentage:r,bgStyle:s,textStyle:i,progressOuter:n,insideText:a,slotDefault:o}}}),Fh={class:"fox-progress"},Uh={key:0,class:"fox-progress-text"};function Kh(e,o,l,n,a,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",Fh,[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-outer",[e.showText&&!e.textInside?"fox-progress-outer-part":"",e.size?"fox-progress-"+e.size:""]]),ref:"progressOuter",style:t.normalizeStyle({height:e.height})},[t.createElementVNode("div",{class:t.normalizeClass(["fox-progress-inner",e.status=="active"?"fox-active":""]),style:t.normalizeStyle(e.bgStyle)},null,6),e.showText&&e.textInside&&!e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-progress-text fox-progress-insidetext",ref:"insideText",style:t.normalizeStyle({lineHeight:e.height,left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`,background:e.textBackground||e.strokeColor})},[t.createElementVNode("span",{style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)],4)):t.createCommentVNode("",!0),e.showText&&e.textInside&&e.slotDefault?(t.openBlock(),t.createElementBlock("div",{key:1,ref:"insideText",style:t.normalizeStyle({position:"absolute",top:"50%",left:`${e.percentage}%`,transform:`translate(-${+e.percentage}%,-50%)`})},[t.renderSlot(e.$slots,"default")],4)):t.createCommentVNode("",!0)],6),e.showText&&!e.textInside?(t.openBlock(),t.createElementBlock("div",Uh,[e.status=="active"||e.status==""?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)):e.status=="icon"?t.renderSlot(e.$slots,"icon-name",{key:1},()=>[t.createVNode(s,{width:"15px",height:"15px",color:"#439422"})]):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const ro=W(Oh,[["render",Kh]]),{componentName:Hh,create:jh,scope:Wh}=U("uploader"),Yh=jh({components:{[ro.name]:ro,Photograph:G.Photograph,Failure:G.Failure,Loading:G.Loading,Del:G.Del,Link:G.Link},props:{name:{type:String,default:"file"},url:{type:String,default:""},timeout:{type:[Number,String],default:1e3*30},fileList:{type:Array,default:()=>[]},isPreview:{type:Boolean,default:!0},listType:{type:String,default:"picture"},isDeletable:{type:Boolean,default:!0},method:{type:String,default:"post"},capture:{type:Boolean,default:!1},maximize:{type:[Number,String],default:Number.MAX_VALUE},maximum:{type:[Number,String],default:1},clearInput:{type:Boolean,default:!0},accept:{type:String,default:"*"},headers:{type:Object,default:{}},data:{type:Object,default:{}},xhrState:{type:[Number,String],default:200},withCredentials:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},autoUpload:{type:Boolean,default:!0},beforeUpload:{type:Function,default:null},beforeXhrUpload:{type:Function,default:null},beforeDelete:{type:Function,default:(e,o)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(Wh),n=t.reactive(e.fileList);let a=[];const r=t.computed(()=>({[Hh]:!0})),s=()=>{let p={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(p.capture="camera"),t.h("input",p)},i=p=>{p.value=""},c=p=>{o("file-item-click",{fileItem:p})},d=(p,b)=>{const S=new xh;S.url=e.url,S.formData=p.formData,S.timeout=e.timeout*1,S.method=e.method,S.xhrState=e.xhrState,S.headers=e.headers,S.withCredentials=e.withCredentials,S.beforeXhrUpload=e.beforeXhrUpload;try{S.sourceFile=p.formData.get(e.name)}catch{}S.onStart=E=>{p.status="ready",p.message=l("readyUpload"),m(b),o("start",E)},S.onProgress=(E,I)=>{p.status="uploading",p.message=l("uploading"),p.percentage=(E.loaded/E.total*100).toFixed(0),o("progress",{event:E,option:I,percentage:p.percentage})},S.onSuccess=(E,I)=>{p.status="success",p.message=l("success"),o("success",{responseText:E,option:I,fileItem:p}),o("update:fileList",n)},S.onFailure=(E,I)=>{p.status="error",p.message=l("error"),o("failure",{responseText:E,option:I,fileItem:p})};let B=new Ph(S);e.autoUpload?B.upload():a.push(new Promise((E,I)=>{E(B)}))},m=(p=-1)=>{p>-1?a.splice(p,1):(a=[],n.splice(0,n.length))},f=()=>{Promise.all(a).then(p=>{p.forEach(b=>b.upload())})},h=p=>{p.forEach((b,S)=>{const B=new FormData;for(const[I,V]of Object.entries(e.data))B.append(I,V);B.append(e.name,b);const E=t.reactive(new Lh);if(E.name=b.name,E.status="ready",E.type=b.type,E.formData=B,E.message=l("waitingUpload"),d(E,S),e.isPreview&&b.type.includes("image")){const I=new FileReader;I.onload=V=>{E.url=V.target.result,n.push(E)},I.readAsDataURL(b)}else n.push(E)})},y=p=>{const b=e.maximum*1,S=e.maximize*1,B=new Array;p=p.filter(I=>I.size>S?(B.push(I),!1):!0),B.length&&o("oversize",B);let E=p.length+n.length;return E>b&&p.splice(p.length-(E-b)),p},k=(p,b)=>{n.splice(b,1),o("delete",{file:p,fileList:n,index:b})},v=(p,b)=>{m(b),er(e.beforeDelete,{args:[p,n],done:()=>k(p,b)})},g=p=>{if(e.disabled)return;const b=p.target;let{files:S}=b;e.beforeUpload?e.beforeUpload(S).then(B=>u(B)):u(S),o("change",{fileList:n,event:p}),e.clearInput&&i(b)},u=p=>{const b=y(new Array().slice.call(p));h(b)};return{onChange:g,onDelete:v,fileList:n,classes:r,fileItemClick:c,clearUploadQueue:m,submit:f,renderInput:s}}}),Xh={key:0,class:"fox-uploader__slot"},Qh={key:0,class:"fox-uploader__preview-img"},Gh={key:0,class:"fox-uploader__preview__progress"},Zh={class:"fox-uploader__preview__progress__msg"},Jh=["onClick"],_h=["onClick","src"],eg={key:3,class:"fox-uploader__preview-img__file"},tg=["onClick"],og={class:"file__name_tips"},ng={class:"tips"},lg={key:1,class:"fox-uploader__preview-list"},ag=["onClick"],rg={class:"file__name_tips"};function sg(e,o,l,n,a,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),d=t.resolveComponent("Del"),m=t.resolveComponent("fox-progress"),f=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",Xh,[t.renderSlot(e.$slots,"default"),Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{key:0,onChange:e.onChange},null,40,["onChange"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.fileList,(h,y)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:h.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",Qh,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",Gh,[h.status!="ready"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[h.status=="error"?(t.openBlock(),t.createBlock(s,{key:0,color:"#fff"})):(t.openBlock(),t.createBlock(i,{key:1,name:"loading",color:"#fff"}))],64)):t.createCommentVNode("",!0),t.createElementVNode("view",Zh,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:k=>e.onDelete(h,y)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,Jh)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:k=>e.fileItemClick(h),src:h.url},null,8,_h)):(t.openBlock(),t.createElementBlock("view",eg,[t.createElementVNode("view",{onClick:k=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",og,t.toDisplayString(h.name),1)],8,tg)])),t.createElementVNode("view",ng,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",lg,[t.createElementVNode("view",{onClick:k=>e.fileItemClick(h),class:t.normalizeClass(["fox-uploader__preview-img__file__name",[h.status]])},[t.createVNode(c,{class:"fox-uploader__preview-img__file__link"}),t.createElementVNode("view",rg,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(d,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:k=>e.onDelete(h,y)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,ag),h.status=="uploading"?(t.openBlock(),t.createBlock(m,{key:0,size:"small",percentage:h.percentage,"stroke-color":"linear-gradient(270deg, rgba(18,126,255,1) 0%,rgba(32,147,255,1) 32.815625%,rgba(13,242,204,1) 100%)","show-text":!1},null,8,["percentage"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2))),128)),e.listType=="picture"&&!e.$slots.default&&Number(e.maximum)-e.fileList.length?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-uploader__upload",[e.listType]])},[t.renderSlot(e.$slots,"upload-icon",{},()=>[t.createVNode(f,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const tr=W(Yh,[["render",sg]]),ig="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3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zl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:ug,scope:dg}=U("number-keyboard"),fg=ug({components:{[ce.name]:ce},props:{confirmText:{type:String,default:""},title:{type:String,default:""},visible:{type:Boolean,default:!1},type:{type:String,default:"default"},customKey:{type:Array,default:()=>[]},modelValue:{type:String,default:""},maxlength:{type:[Number,String],default:6},randomKeys:{type:Boolean,default:!1},popClass:{type:String,default:""}},emits:["input","delete","close","blur","update:modelValue","update:visible"],setup(e,{emit:o}){const{toLocaleRefs:l}=ie.useFoxI18n(dg),n=l(e,["confirmText"]),a=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:u}=e;let p={id:"lock",type:"lock"},b=Array.isArray(u)?u:[u];return b.length===1&&(p={id:b[0],type:"custom"}),[...c(),p,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const u=[];for(let p=1;p<=9;p++)u.push({id:p,type:"number"});return e.randomKeys?u.sort(()=>Math.random()>.5?1:-1):u}function d(){const u=c(),{customKey:p}=e;let b=Array.isArray(p)?p:[p];return b.length>2&&(b=[b[0],b[1]]),b.length==2&&e.title&&e.type!="rightColumn"&&(b=[b[0]]),b.length===1?e.title&&e.type!="rightColumn"?u.push({id:b[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):u.push({id:0,type:"number"},{id:b[0],type:"custom"}):b.length===2&&u.push({id:b[0],type:"custom"},{id:0,type:"number"},{id:b[1],type:"custom"}),u}const m=t.computed(()=>e.type=="rightColumn"||e.title!=""?d():i()),f=()=>{e.visible&&o("blur")},h=u=>{const p=s.value;p&&!p.contains(u.target)&&f()};t.watch(()=>e.visible,u=>{r.value=u,u?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function y(u,p){p.stopPropagation(),a.value=u.id,(u.type=="number"||u.type=="custom")&&(o("input",u.id),e.modelValue.length<Number(e.maxlength)&&o("update:modelValue",e.modelValue+u.id)),u.type=="lock"&&g(),u.type=="delete"&&(o("delete"),o("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function k(u){u.stopPropagation()}function v(u){u.preventDefault(),a.value=void 0}function g(){o("update:visible",!1),o("close")}return{...n,delImg:ig,lockImg:cg,clickKeyIndex:a,defaultKey:i,closeBoard:g,onTouchEnd:v,onTouchMove:k,onTouchstart:y,keysList:m,genCustomKeys:d,getBasicKeys:c,root:s,show:r}}}),mg={ref:"root"},pg={class:"fox-number-keyboard"},hg={key:0,class:"fox-number-keyboard__header"},gg={class:"fox-number-keyboard__title"},yg={class:"fox-number-keyboard__body"},vg={class:"fox-number-keyboard__keys"},kg=["onTouchstart"],bg=["src"],Sg=["src"],Cg={key:0,class:"fox-number-keyboard__sidebar"},wg={class:"fox-key__wrapper"},Ng=["src"];function Bg(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",mg,[t.createVNode(s,{visible:e.show,"onUpdate:visible":o[7]||(o[7]=i=>e.show=i),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",pg,[e.title?(t.openBlock(),t.createElementBlock("div",hg,[t.createElementVNode("h3",gg,t.toDisplayString(e.title),1),e.type=="default"?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-number-keyboard__close",onClick:o[0]||(o[0]=i=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",yg,[t.createElementVNode("div",vg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,i=>(t.openBlock(),t.createElementBlock("div",{key:"key"+i.id,class:t.normalizeClass(["fox-key__wrapper",{"fox-key__wrapper--wider":i.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{"fox-key--active":i.id==e.clickKeyIndex},{"fox-key--lock":i.type=="lock"},{"fox-key--delete":i.type=="delete"}]),onTouchstart:c=>e.onTouchstart(i,c),onTouchmove:o[1]||(o[1]=c=>e.onTouchMove(c)),onTouchend:o[2]||(o[2]=c=>e.onTouchEnd(c))},[i.type=="number"||i.type=="custom"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(i.id),1)],64)):t.createCommentVNode("",!0),i.type=="lock"?(t.openBlock(),t.createElementBlock("img",{key:1,src:e.lockImg},null,8,bg)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,Sg)):t.createCommentVNode("",!0)],42,kg)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",Cg,[t.createElementVNode("div",wg,[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:o[3]||(o[3]=i=>e.onTouchstart({id:"delete",type:"delete"},i)),onTouchmove:o[4]||(o[4]=i=>e.onTouchMove(i)),onTouchend:o[5]||(o[5]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("img",{src:e.delImg},null,8,Ng)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:o[6]||(o[6]=i=>e.closeBoard())},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key","fox-key--finish ",{activeFinsh:e.clickKeyIndex=="finish"}])},t.toDisplayString(e.confirmText),3)])])):t.createCommentVNode("",!0)])])]),_:1},8,["visible","popClass"])],512)}const or=W(fg,[["render",Bg]]),{componentName:Vg,create:Ag}=U("swipe"),Eg=Ag({props:{name:{type:String,default:""},touchMoveStopPropagation:{type:Boolean,default:!1},touchMovePreventDefault:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["open","close"],setup(e,{emit:o}){const l=t.computed(()=>({[Vg]:!0})),n=p=>p.value?.clientWidth||0,a=t.ref(),r=t.computed(()=>n(a)),s=t.ref(),i=t.computed(()=>n(s));let c=!1,d="",m="";const f=t.reactive({offset:0,moving:!1}),h=(p="")=>{c=!0,p&&(f.offset=p==="left"?-i.value:r.value),o("open",{name:e.name,position:d||p})},y=()=>{f.offset=0,c=!1,o("close",{name:e.name,position:d})},k=t.computed(()=>({transform:`translate3d(${f.offset}px, 0, 0)`})),v=p=>{d=p>0?"right":"left";let b=p;switch(d){case"left":c&&m===d?b=-i.value:b=Math.abs(p)>i.value?-i.value:p;break;case"right":c&&m===d?b=r.value:b=Math.abs(p)>r.value?r.value:p;break}f.offset=b},g=Ke();return{classes:l,touchStyle:k,...{onTouchStart(p){e.disabled||g.start(p)},onTouchMove(p){e.disabled||(g.move(p),g.isHorizontal()&&(f.moving=!0,v(g.deltaX.value),e.touchMovePreventDefault&&p.preventDefault(),e.touchMoveStopPropagation&&p.stopPropagation()))},onTouchEnd(){if(f.moving)switch(f.moving=!1,m=d,d){case"left":Math.abs(f.offset)<=i.value/2?y():(f.offset=-i.value,h());break;case"right":Math.abs(f.offset)<=r.value/2?y():(f.offset=r.value,h());break}}},leftRef:a,rightRef:s,open:h,close:y}}}),Tg={class:"fox-swipe__left",ref:"leftRef"},$g={class:"fox-swipe__content"},Dg={class:"fox-swipe__right",ref:"rightRef"};function Ig(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",Tg,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",$g,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",Dg,[t.renderSlot(e.$slots,"right")],512)],38)}const so=W(Eg,[["render",Ig]]),{componentName:qg,create:Mg}=U("action-sheet"),zg=Mg({components:{[ce.name]:ce,Loading:G.Loading},props:{...at,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:o}){const l=!!t.useSlots().default,n=t.computed(()=>({[qg]:!0}));return{slotDefault:l,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{o("cancel"),o("update:visible",!1)},chooseItem:(c,d)=>{!c.disable&&!c.loading&&(o("choose",c,d),o("update:visible",!1))},close:c=>{o("close",c),o("update:visible",!1)},classes:n}}}),xg={key:0,class:"fox-action-sheet__title"},Pg={key:1},Lg={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},Rg={key:1,class:"fox-action-sheet__menu"},Og=["onClick"],Fg={key:1},Ug={class:"fox-action-sheet__subdesc"};function Kg(e,o,l,n,a,r){const s=t.resolveComponent("Loading"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{visible:e.visible,position:"bottom",round:"",onClickOverlay:e.close,closeOnClickOverlay:e.closeAbled},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.title?(t.openBlock(),t.createElementBlock("view",xg,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Pg,[e.description?(t.openBlock(),t.createElementBlock("view",Lg,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",Rg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-action-sheet__item",{"fox-action-sheet__item--disabled":c.disable,"fox-action-sheet__item--loading":c.loading}]),style:t.normalizeStyle({color:e.isHighlight(c)||c.color}),key:d,onClick:m=>e.chooseItem(c,d)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",Fg,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",Ug,t.toDisplayString(c[e.optionSubTag]),1)],14,Og))),128))])):t.createCommentVNode("",!0),e.cancelTxt?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-action-sheet__cancel",onClick:o[0]||(o[0]=(...c)=>e.cancelActionSheet&&e.cancelActionSheet(...c))},t.toDisplayString(e.cancelTxt),1)):t.createCommentVNode("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}const nr=W(zg,[["render",Kg]]),{componentName:Hg,create:jg}=U("backtop"),lr=jg({props:{bottom:{type:Number,default:20},right:{type:Number,default:10},elId:{type:[String]},distance:{type:Number,default:200},zIndex:{type:Number,default:10},isAnimation:{type:Boolean,default:!0},duration:{type:Number,default:1e3}},emits:["click"],setup(e,{emit:o,slots:l}){const n=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),a=t.computed(()=>({[Hg]:!0,show:n.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){n.scrollEl instanceof Window?n.scrollTop=n.scrollEl.pageYOffset:n.scrollTop=n.scrollEl.scrollTop,n.backTop=n.scrollTop>=e.distance}function i(k=0){n.scrollEl instanceof Window?window.scrollTo(0,k):n.scrollEl.scrollTop=k}function c(){let k=Ye(function v(){var g=e.duration-Math.max(0,n.startTime-+new Date+e.duration),u=g*-n.scrollTop/e.duration+n.scrollTop;i(u),k=Ye(v),(g==e.duration||u==0)&&ul(k)})}function d(){n.scrollEl.addEventListener("scroll",s,!1),n.scrollEl.addEventListener("resize",s,!1)}function m(){n.scrollEl.removeEventListener("scroll",s,!1),n.scrollEl.removeEventListener("resize",s,!1)}function f(k){n.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),o("click",k)}function h(){y.value?n.scrollEl=y.value.el:e.elId&&document.getElementById(e.elId)&&(n.scrollEl=document.getElementById(e.elId)),d()}t.onMounted(()=>{e.distance==0&&(n.backTop=!0),h()}),t.onUnmounted(()=>{m()}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1,h())}),t.onDeactivated(()=>{n.keepAlive=!0,m()});const y=t.computed(()=>{if(typeof l.content=="function"){const k=l.content();return Array.isArray(k)?k[0]:k}return null});return()=>{const k=[];y.value&&k.push(y.value);const v=[];if(typeof l.default=="function")v.push(l.default());else{const u=t.h(G.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});v.push(u)}const g=t.h("div",{class:a.value,style:r.value,onClick:f},v);return k.push(g),k}}}),{componentName:Wg,create:Yg}=U("drag"),Xg=Yg({props:{attract:{type:Boolean,default:!1},direction:{type:String,default:"all"},boundary:{type:Object,default:()=>({top:0,left:0,right:0,bottom:0})}},setup(e,{emit:o}){const l=t.ref(),n=t.reactive({keepAlive:!1,elWidth:0,elHeight:0,screenWidth:0,screenHeight:0,startTop:0,startLeft:0,nx:0,ny:0,xPum:0,yPum:0,position:{x:0,y:0},boundary:{top:0,left:0,right:0,bottom:0}}),a=t.computed(()=>({[Wg]:!0}));function r(){const f=document.documentElement;n.elWidth=l.value.offsetWidth,n.elHeight=l.value.offsetHeight,n.screenWidth=f.clientWidth,n.screenHeight=f.clientHeight}function s(f){n.boundary.left?+f.style.left.split("px")[0]>n.boundary.left?(f.style.left=+f.style.left.split("px")[0]-10+"px",Qe(()=>{s(f)})):f.style.left=`${n.boundary.left}px`:+f.style.left.split("px")[0]>10?(f.style.left=+f.style.left.split("px")[0]-10+"px",Qe(()=>{s(f)})):f.style.left="0px"}function i(f,h){h-parseInt(f.style.left.split("px")[0])>10?(f.style.left=parseInt(f.style.left.split("px")[0])+10+"px",Qe(()=>{i(f,h)})):f.style.left=h+"px"}function c(f){f.preventDefault();const h=f.currentTarget;if(f.targetTouches.length===1){const y=f.targetTouches[0];n.nx=y.clientX-n.position.x,n.ny=y.clientY-n.position.y,n.xPum=n.startLeft+n.nx,n.yPum=n.startTop+n.ny;const k=n.screenWidth-n.elWidth-n.boundary.right;Math.abs(n.xPum)>k?n.xPum=k:n.xPum<=n.boundary.left&&(n.xPum=n.boundary.left),n.yPum<n.boundary.top?n.yPum=n.boundary.top:n.yPum>n.screenHeight-n.elHeight-n.boundary.bottom&&(n.yPum=n.screenHeight-n.elHeight-n.boundary.bottom),e.direction!="y"&&(h.style.left=n.xPum+"px"),e.direction!="x"&&(h.style.top=n.yPum+"px")}}function d(f){const h=f.currentTarget;let k=f.changedTouches[0].clientX;const v=n.screenWidth-n.elWidth-n.boundary.right;k>v?k=v:k<n.boundary.left?k=n.boundary.left:k=k<n.screenWidth/2?n.boundary.left:v,e.direction!="y"&&e.attract&&(k<n.screenWidth/2?Qe(()=>{s(h)}):Qe(()=>{i(h,v)})),e.direction!="x"&&(h.style.top=n.yPum+"px")}function m(f){const h=f.currentTarget,y=f.touches[0],k=f.targetTouches[0];n.startTop=h.offsetTop,n.startLeft=h.offsetLeft,n.position.x=y.clientX,n.position.y=y.clientY,n.nx=k.clientX-n.position.x,n.ny=k.clientY-n.position.y,n.xPum=n.startLeft+n.nx,n.yPum=n.startTop+n.ny}return t.onMounted(()=>{r(),n.boundary=e.boundary}),t.onActivated(()=>{n.keepAlive&&(n.keepAlive=!1)}),t.onDeactivated(()=>{n.keepAlive=!0;const f=l;f.value.removeEventListener("touchstart",m),f.value.removeEventListener("touchmove",c),f.value.removeEventListener("touchend",d)}),{classes:a,myDrag:l,touchStart:m,touchMove:c,touchEnd:d}}});function Qg(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:o[0]||(o[0]=s=>e.touchStart(s)),onTouchmove:o[1]||(o[1]=s=>e.touchMove(s)),onTouchend:o[2]||(o[2]=s=>e.touchEnd(s))},[t.renderSlot(e.$slots,"default")],34)}const ar=W(Xg,[["render",Qg]]),{componentName:Gg,create:Zg,scope:Jg}=U("dialog"),_g=Zg({inheritAttrs:!1,components:{[ce.name]:ce,[Pe.name]:Pe},props:{...at,closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String,default:""},content:{type:[String,Object],default:""},noFooter:{type:Boolean,default:!1},noConfirmBtn:{type:Boolean,default:!1},noCancelBtn:{type:Boolean,default:!1},cancelText:{type:String,default:""},confirmText:{type:String,default:""},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},closeOnPopstate:{type:Boolean,default:!1},footerDirection:{type:String,default:"horizontal"},customClass:{type:String,default:""},popStyle:{type:Object},beforeClose:{type:Function}},emits:["update","update:visible","confirm","cancel","opened","closed"],setup(e,{emit:o}){const{toLocaleRefs:l}=ie.useFoxI18n(Jg),n=l(e,["confirmText","cancelText"]),a=t.ref(e.visible);t.onMounted(()=>{e.closeOnPopstate&<&&window.addEventListener("popstate",function(){i("page")})}),t.watch(()=>e.visible,m=>{a.value=m,m&&o("opened")});const r=t.computed(()=>({[Gg]:!0,[e.customClass]:!0})),s=m=>{o("update",m),o("update:visible",m)},i=m=>{if(e.beforeClose){const f=e.beforeClose(m);sn(f)&&f.then(h=>{h&&(s(!1),o("closed"))})}else s(!1),o("closed")};return{...n,closed:i,classes:r,onCancel:()=>{o("cancel"),e.cancelAutoClose&&i("cancel")},onConfirm:()=>{o("confirm"),i("confirm")},showPopup:a}}}),ey={key:0,class:"fox-dialog__header"},ty=["innerHTML"];function oy(e,o,l,n,a,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(i,{teleport:e.teleport,visible:e.showPopup,"onUpdate:visible":o[0]||(o[0]=c=>e.showPopup=c),"close-on-click-overlay":e.closeOnClickOverlay,"lock-scroll":e.lockScroll,"pop-class":e.popClass,style:t.normalizeStyle(e.popStyle),"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,round:"",onClickOverlay:e.closed,onClickCloseIcon:e.closed},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[e.$slots.header||e.title?(t.openBlock(),t.createElementBlock("view",ey,[e.$slots.header?t.renderSlot(e.$slots,"header",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.title),1)],64))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-dialog__content",style:t.normalizeStyle({textAlign:e.textAlign})},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):typeof e.content=="string"?(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.content},null,8,ty)):(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.content),{key:2}))],4),e.noFooter?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-dialog__footer",{[e.footerDirection]:e.footerDirection}])},[e.$slots.footer?t.renderSlot(e.$slots,"footer",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.noCancelBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,size:"small",plain:"",type:"primary",class:"fox-dialog__footer-cancel",onClick:e.onCancel},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.cancelText),1)]),_:1},8,["onClick"])),e.noConfirmBtn?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:1,size:"small",type:"primary",class:"fox-dialog__footer-ok",onClick:e.onConfirm},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1},8,["onClick"]))],64))],2))],2)]),_:3},8,["teleport","visible","close-on-click-overlay","lock-scroll","pop-class","style","overlay-class","overlay-style","onClickOverlay","onClickCloseIcon"])}const rr=W(_g,[["render",oy]]);class ny{title="";content="";cancelText="";confirmText="";textAlign="center";customClass="";overlayStyle={};overlayClass="";popStyle={};popClass="";teleport="body";id=new Date().getTime();footerDirection="horizontal";onUpdate=o=>{};onConfirm=()=>{};onCancel=()=>{};onOpened=()=>{};onClosed=()=>{};beforeClose;visible=!0;noFooter=!1;noConfirmBtn=!1;noCancelBtn=!1;confrimBtnDisabled=!1;closeOnPopstate=!1;lockScroll=!1}class ly{options=new ny;instance;constructor(o){let l=Object.assign(this.options,o),n=document.body,a=l.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):n=l.teleport);const r=document.createElement("view");r.id="dialog-"+l.id;const s={setup(){return l.onUpdate=i=>{i==!1&&n.removeChild(r)},l?.onOpened&&l?.onOpened(),l.teleport=`#${r.id}`,()=>t.h(rr,l)}};this.instance=t.createVNode(s),n.appendChild(r),t.render(this.instance,r)}close=()=>{};setDefaultOptions=o=>{};resetDefaultOptions=()=>{}}const io=function(e){return new ly(e)};io.install=e=>{e.use(rr),e.config.globalProperties.$dialog=io};const{componentName:ay,create:ry,scope:sy}=U("infinite-loading"),iy=ry({props:{modelValue:{type:Boolean,default:!1},hasMore:{type:Boolean,default:!0},threshold:{type:Number,default:200},loadText:{type:String},loadMoreText:{type:String},useCapture:{type:Boolean,default:!1}},emits:["scroll-change","load-more","update:modelValue"],components:{Loading:G.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ie.useFoxI18n(sy),a=n(e,["pullText","loadText","loadMoreText"]),r=t.ref(),s=ua(r),i=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),c=t.computed(()=>({[ay]:!0})),d=v=>v?v.offsetTop+d(v.offsetParent):0,m=()=>{let v=0,g=0,u="down";if(s.value==window){const p=cn();r.value&&(v=d(r.value)+r.value.offsetHeight-p-window.innerHeight),g=p}else{const{scrollHeight:p,clientHeight:b,scrollTop:S}=s.value;v=p-b-S,g=S}return i.beforeScrollTop>g?u="up":u="down",i.beforeScrollTop=g,o("scroll-change",g),v<=e.threshold&&u=="down"},f=()=>{Ye(()=>{if(!m()||!e.hasMore||i.isInfiniting)return!1;i.isInfiniting=!0,o("update:modelValue",!0),t.nextTick(()=>o("load-more"))})},h=()=>{s.value&&s.value.addEventListener("scroll",f,e.useCapture)},y=()=>{s.value&&s.value.removeEventListener("scroll",f,e.useCapture)};t.onMounted(()=>{h()}),t.onUnmounted(()=>{y()});const k=t.ref(!1);return t.onActivated(()=>{k.value&&(k.value=!1,h())}),t.onDeactivated(()=>{k.value=!0,y()}),t.watch(()=>e.modelValue,v=>{v||(i.isInfiniting=!1)}),{classes:c,scroller:r,...t.toRefs(i),slots:l,...a}}}),cy={class:"fox-infinite__container"},uy={class:"fox-infinite__bottom"},dy={key:0,class:"fox-infinite__bottom-box"},fy={class:"fox-infinite__bottom-box__text"},my={class:"fox-infinite__bottom-tips"};function py(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"scroller"},[t.createElementVNode("view",cy,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",uy,[e.isInfiniting?(t.openBlock(),t.createElementBlock("view",dy,[t.renderSlot(e.$slots,"loading",{},()=>[t.renderSlot(e.$slots,"loading-icon",{},()=>[t.createVNode(s,{class:"fox-icon-loading fox-infinite__bottom-box__img"})]),t.createElementVNode("view",fy,t.toDisplayString(e.loadText),1)])])):e.hasMore?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"finished",{key:1},()=>[t.createElementVNode("view",my,t.toDisplayString(e.loadMoreText),1)])])],2)}const sr=W(iy,[["render",py]]),{componentName:hy,create:gy,scope:yy}=U("pull-refresh"),vy=gy({props:{modelValue:{type:Boolean,default:!1},pullingText:{type:String},loosingText:{type:String},loadingText:{type:String},headHeight:{type:[String,Number],default:50},pullDistance:{type:[String,Number],default:50},duration:{type:[String,Number],default:.3}},emits:["change","refresh","update:modelValue"],components:{Loading:G.Loading},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ie.useFoxI18n(yy),a=n(e,["pullingText","loosingText","loadingText"]),r=Ke(),s=t.ref(),i=ua(s),c=t.reactive({isPullRefresh:!1,distance:0,status:"normal"}),d=t.computed(()=>({[hy]:!0})),m=t.computed(()=>{switch(c.status){case"pulling":return l.pulling?"":a.pullingText.value;case"loosing":return l.loosing?"":a.loosingText.value;case"loading":return l.loading?"":a.loadingText.value}}),f=t.computed(()=>({transitionDuration:`${e.duration}s`,transform:c.distance?`translate3d(0,${c.distance}px, 0)`:""})),h=t.computed(()=>{const S={};return e.headHeight!=50&&(S.height=le(e.headHeight)),S}),y=S=>{const B=+(e.pullDistance||e.headHeight);let E=S;return S>B&&(S<B*2?E=(S+B)/2:E=B+S/4),Math.round(E)},k=(S,B)=>{const E=+(e.pullDistance||e.headHeight);c.distance=S,B?c.status="loading":S===0?c.status="normal":S<E?c.status="pulling":c.status="loosing",o("change",{status:c.status,distance:S})},v=()=>c.status!=="loading"&&c.status!=="complete",g=()=>i.value==window?cn()==0:i.value&&i.value.scrollTop==0,u=S=>{v()&&(g()?(r.start(S),c.isPullRefresh=!0):(c.distance=0,c.isPullRefresh=!1))},p=S=>{if(v()){r.move(S);const{deltaY:B}=r;r.isVertical()&&B.value>0&&c.isPullRefresh&&(S.preventDefault(),k(y(B.value)))}},b=()=>{c.isPullRefresh&&v()&&r.deltaY.value&&(c.status==="loosing"?(k(+e.headHeight,!0),o("update:modelValue",!0),t.nextTick(()=>o("refresh"))):k(0)),setTimeout(()=>{r.reset()},0)};return t.watch(()=>e.modelValue,S=>{S?k(+e.headHeight,!0):k(0)}),{classes:d,scroller:s,...t.toRefs(c),touchStart:u,touchMove:p,touchEnd:b,getStyle:f,slots:l,getHeightStyle:h,getPullStatus:m}}}),ky={class:"fox-pull-refresh-container-topbox-text"};function by(e,o,l,n,a,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),ref:"scroller",onTouchstart:o[0]||(o[0]=(...i)=>e.touchStart&&e.touchStart(...i)),onTouchmove:o[1]||(o[1]=(...i)=>e.touchMove&&e.touchMove(...i)),onTouchend:o[2]||(o[2]=(...i)=>e.touchEnd&&e.touchEnd(...i))},[t.createElementVNode("div",{class:"fox-pull-refresh-container",style:t.normalizeStyle(e.getStyle)},[t.createElementVNode("div",{class:"fox-pull-refresh-container-topbox",style:t.normalizeStyle(e.getHeightStyle)},[e.status=="loading"&&!e.slots.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading fox-pull-refresh-container-topbox-icon"})):t.createCommentVNode("",!0),t.createElementVNode("div",ky,t.toDisplayString(e.getPullStatus),1),e.status=="pulling"?t.renderSlot(e.$slots,"pulling",{key:1}):t.createCommentVNode("",!0),e.status=="loosing"?t.renderSlot(e.$slots,"loosing",{key:2}):t.createCommentVNode("",!0),e.status=="loading"?t.renderSlot(e.$slots,"loading",{key:3}):t.createCommentVNode("",!0)],4),t.renderSlot(e.$slots,"default")],4)],34)}const ir=W(vy,[["render",by]]),{create:Sy}=U("notify"),Cy=Sy({components:{[ce.name]:ce},props:{id:String,color:{type:String,default:""},msg:{type:String,default:""},duration:{type:Number,default:3e3},className:{type:String,default:""},background:{type:String,default:""},type:{type:String,default:"danger"},visible:{type:Boolean,default:!1},position:{type:String,default:"top"},teleportDisable:{type:Boolean,default:!0},onClose:Function,onClick:Function,unmount:Function},emits:["update:visible"],setup(e,{emit:o}){const l=()=>{e.onClick&&e.onClick()};let n=null;const a=()=>{n&&clearTimeout(n),n=null},r=()=>{o("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,d=>{s.value=e.visible;const m=e.duration;d&&m&&(n=setTimeout(()=>{r()},m))},{immediate:!0});return{onAfterLeave:()=>{a(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:l,isShowPopup:s}}});function wy(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.isShowPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.isShowPopup=i),position:e.position,overlay:!1,teleportDisable:e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("div",{class:t.normalizeClass(["fox-notify",`fox-notify--${e.type}`,e.className]),style:t.normalizeStyle({color:e.color,background:e.background}),onClick:o[0]||(o[0]=(...i)=>e.clickCover&&e.clickCover(...i))},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.msg),1)],64))],6)]),_:3},8,["visible","position","teleportDisable"])}const wn=W(Cy,[["render",wy]]),on={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let ct=[],wt=[];const cr=e=>{if(e){const o=document.getElementById(e);wt=wt.filter(l=>l.id!==e),ct=ct.filter(l=>l!==e),o&&document.body.removeChild(o)}else ct.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),wt=[],ct=[]},Ny=e=>{const o=document.getElementById(e.id);if(o){const l=wt.find(a=>a.id===e.id);l?e={...on,...l,...e}:e={...on,...e};const n=t.createVNode(wn,e);return t.render(n,o),n.component.data}},vt=e=>{e.unmount=cr;let o;if(e.id){if(o=e.id,ct.find(r=>r===e.id))return Ny(e)}else o=new Date().getTime()+"";e={...on,...e},e.id=o,ct.push(e.id),wt.push(e);const l=document.createElement("view");l.id="notify-"+e.id;const n={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(l)},e.duration)}),()=>t.h(wn,e)}},a=t.createVNode(n);document.body.appendChild(l),t.render(a,l)},kt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},ur={text(e,o={}){return kt(e),vt({...o,msg:e})},primary(e,o={}){return kt(e),vt({...o,msg:e,type:"primary"})},success(e,o={}){return kt(e),vt({...o,msg:e,type:"success"})},danger(e,o={}){return kt(e),vt({...o,msg:e,type:"danger"})},warn(e,o={}){return kt(e),vt({...o,msg:e,type:"warning"})},hide(){cr()},install(e){e.use(wn)}},{create:By}=U("toast"),Vy=By({props:{id:{type:String,required:!1},msg:{type:String,required:!1},duration:{type:Number,default:2e3},center:{type:Boolean,default:!0},type:{type:String,required:!1},customClass:{type:String,required:!1},bottom:{type:String,default:"30px"},size:{type:[String,Number],default:"base"},iconSize:{type:[String,Number],default:20},icon:{type:[Object],required:!1},iconColor:{type:String,required:!1,default:"#ffffff"},textAlignCenter:{type:Boolean,default:!0},loadingRotate:{type:Boolean,default:!0},bgColor:{type:String,default:""},onClose:{type:Function,required:!1},unmount:{type:Function,required:!1},cover:{type:Boolean,default:!1},coverColor:{type:String,default:""},title:{type:String,default:""},closeOnClickOverlay:{type:Boolean,default:!1}},emits:["close"],setup(e,{emit:o}){let l=null;const n=t.reactive({mounted:!1});t.onMounted(()=>{n.mounted=!0});const a=()=>{l&&(clearTimeout(l),l=null)},r=()=>{n.mounted=!1},s=()=>{a(),e.duration&&(l=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),o("close"))};e.duration&&s(),t.watch(()=>e.duration,y=>{y&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),d=()=>{const y=se(e.iconSize);return t.h(e.icon,{width:y,height:y,color:e.iconColor})},m=t.computed(()=>["fox-toast",{"fox-toast-center":e.center},{"fox-toast-has-icon":c.value},{"fox-toast-cover":e.cover},{"fox-toast-loading":e.type==="loading"},e.customClass,"fox-toast-"+e.size]),f=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:n,hide:r,clickCover:i,renderIcon:d,hasIcon:c,toastBodyClass:m,toastIconWrapperClass:f,onAfterLeave:()=>{a(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),Ay={key:1,class:"fox-toast-title"},Ey=["innerHTML"];function Ty(e,o,l,n,a,r){return t.openBlock(),t.createBlock(t.Transition,{name:"toast-fade",onAfterLeave:e.onAfterLeave},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.toastBodyClass),style:t.normalizeStyle({bottom:e.center?"auto":e.bottom,"background-color":e.coverColor}),onClick:o[0]||(o[0]=(...s)=>e.clickCover&&e.clickCover(...s))},[t.createElementVNode("view",{class:"fox-toast-inner",style:t.normalizeStyle({"text-align":e.textAlignCenter?"center":"left","background-color":e.bgColor})},[e.hasIcon?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.toastIconWrapperClass)},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",Ay,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,Ey)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Nn=W(Vy,[["render",Ty]]),nn={msg:"",id:"",duration:2e3,center:!0,type:"text",title:"",customClass:"",bottom:"30px",size:"base",iconSize:"20",icon:null,textAlignCenter:!0,loadingRotate:!0,bgColor:"",onClose:null,unmount:null,cover:!1,coverColor:"",closeOnClickOverlay:!1};let ut=[],Nt=[];const dr=e=>{if(e){const o=document.getElementById(e);Nt=Nt.filter(l=>l.id!==e),ut=ut.filter(l=>l!==e),o&&document.body.removeChild(o)}else ut.forEach(o=>{const l=document.getElementById(o);l&&document.body.removeChild(l)}),Nt=[],ut=[]},$y=e=>{const o=document.getElementById(e.id);if(o){const l=Nt.find(a=>a.id===e.id);l?e={...nn,...l,...e}:e={...nn,...e};const n=t.createVNode(Nn,e);return t.render(n,o),zt}},bt=e=>{e.unmount=dr;let o;if(e.id){if(o=e.id,ut.find(a=>a===e.id))return $y(e)}else o=new Date().getTime()+"";e={...nn,...e},e.id=o,ut.push(e.id),Nt.push(e);const l=document.createElement("div");l.id=e.id;const n=t.createVNode(Nn,e);return t.render(n,l),document.body.appendChild(l),zt},Ot=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},zt={text(e,o={}){return Ot(e),bt({...o,type:"text",msg:e})},success(e,o={}){return Ot(e),bt({icon:G.Success,...o,msg:e,type:"success"})},fail(e,o={}){return Ot(e),bt({icon:G.Failure,...o,msg:e,type:"fail"})},warn(e,o={}){return Ot(e),bt({icon:G.Tips,...o,msg:e,type:"warn"})},loading(e,o={}){return bt({icon:G.Loading,...o,msg:e,type:"loading"})},hide(e){dr(e)},install(e){e.use(Nn),e.config.globalProperties.$toast=zt}},{componentName:Bw,create:Dy}=U("audio"),Iy=Dy({props:{url:{type:String,default:""},muted:{type:Boolean,default:!1},autoplay:{type:Boolean,default:!1},loop:{type:Boolean,default:!1},preload:{type:String,default:"auto"},second:{type:Number,default:0},type:{type:String,default:"progress"}},components:{Service:G.Service,[lo.name]:lo},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.reactive({currentTime:0,currentDuration:"00:00:00",percent:0,duration:"00:00:00",second:0,hanMuted:e.muted,playing:e.autoplay,handPlaying:!1});t.onMounted(()=>{var v=["webkitVisibilityState","visibilitychange"];try{for(let g=0;g<v.length;g++)document.addEventListener(v[g],()=>{document.hidden?n.value.pause():a.playing&&setTimeout(()=>{n.value.play()},200)})}catch(g){g.message}});const r=v=>{const g=n.value;e.autoplay&&g&&g.paused&&g.play(),a.second=g.duration,a.duration=k(g.duration),o("can-play",v)},s=v=>{a.currentTime=parseInt(v.target.currentTime)},i=()=>{a.currentTime>0&&a.currentTime--,n.value.currentTime=a.currentTime,o("fastBack",a.currentTime)},c=()=>{const v=n.value;a.playing?(v.pause(),a.handPlaying=!1):(v.play(),a.handPlaying=!0),a.playing=!a.playing,o("play",a.playing)},d=()=>{a.currentTime++,n.value.currentTime=a.currentTime,o("forward",a.currentTime)},m=v=>{a.currentDuration=k(v),a.percent=v/a.second*100},f=()=>{a.playing=!1,o("ended")},h=v=>{const g=n.value;g.currentTime=a.second*v/100,o("changeProgress",g.currentTime)},y=()=>{a.hanMuted=!a.hanMuted,o("mute",a.hanMuted)},k=v=>{if(!v)return"00:00:00";let g=parseInt(v),u=Math.floor(g/3600),p=Math.floor((g-u*3600)/60),b=g-u*3600-p*60,S="";return S+=("0"+u.toString()).slice(-2)+":",S+=("0"+p.toString()).slice(-2)+":",S+=("0"+b.toString()).slice(-2),S};return t.watch(()=>a.currentTime,v=>{m(v)}),t.provide("audioParent",{children:[],props:e,audioData:a,handleMute:y,forward:d,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(a),audioRef:n,fastBack:i,forward:d,changeStatus:c,progressChange:h,audioEnd:f,onTimeupdate:s,handleMute:y,onCanplay:r,slots:l}}}),qy={class:"fox-audio"},My={key:0,class:"fox-audio__progress"},zy={class:"fox-audio__time"},xy={class:"fox-audio__bar"},Py=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),Ly={class:"fox-audio__time"},Ry={key:1,class:"fox-audio__icon"},Oy=["controls","src","preload","autoplay","loop","muted"];function Fy(e,o,l,n,a,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",qy,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",My,[t.createElementVNode("div",zy,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",xy,[t.createVNode(s,{modelValue:e.percent,"onUpdate:modelValue":o[0]||(o[0]=c=>e.percent=c),"hidden-range":"",onChange:e.progressChange,"inactive-color":"#cccccc","active-color":"#fa2c19"},{button:t.withCtx(()=>[Py]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Ly,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Ry,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick:o[1]||(o[1]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[e.playing?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-icon-am-rotate fox-icon-am-infinite"})):(t.openBlock(),t.createBlock(i,{key:1}))],2)])):t.createCommentVNode("",!0),e.type=="none"?(t.openBlock(),t.createElementBlock("div",{key:2,onClick:o[2]||(o[2]=(...c)=>e.changeStatus&&e.changeStatus(...c))},[t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type!="none"?t.renderSlot(e.$slots,"default",{key:3}):t.createCommentVNode("",!0),t.createElementVNode("audio",{class:"audioMain",controls:e.type=="controls",ref:"audioRef",src:e.url,preload:e.preload,autoplay:e.autoplay,loop:e.loop,onTimeupdate:o[3]||(o[3]=(...c)=>e.onTimeupdate&&e.onTimeupdate(...c)),onCanplay:o[4]||(o[4]=(...c)=>e.onCanplay&&e.onCanplay(...c)),onEnded:o[5]||(o[5]=(...c)=>e.audioEnd&&e.audioEnd(...c)),muted:e.hanMuted},null,40,Oy)])}const fr=W(Iy,[["render",Fy]]),{componentName:Vw,create:Uy,scope:Ky}=U("audio-operate"),Hy=Uy({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(Ky),n=t.inject("audioParent"),a=t.reactive(n),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(a),customSlot:r,t:l}}}),jy={class:"fox-audio-operate"};function Wy(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",jy,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:o[0]||(o[0]=(...i)=>e.fastBack&&e.fastBack(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("back")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="play"?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-audio-operate-item",onClick:o[1]||(o[1]=(...i)=>e.changeStatus&&e.changeStatus(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.audioData.playing?`${e.t("pause")}`:`${e.t("start")}`),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="forward"?(t.openBlock(),t.createElementBlock("div",{key:2,class:"fox-audio-operate-item",onClick:o[2]||(o[2]=(...i)=>e.forward&&e.forward(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("forward")),1)]),_:1})),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0),e.type=="mute"?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-audio-operate-item",onClick:o[3]||(o[3]=(...i)=>e.handleMute&&e.handleMute(...i))},[e.customSlot?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,type:e.audioData.hanMuted?"default":"primary",size:"small"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("mute")),1)]),_:1},8,["type"])),t.renderSlot(e.$slots,"default")])):t.createCommentVNode("",!0)])}const mr=W(Hy,[["render",Wy]]),{componentName:Yy,create:Xy}=U("avatar"),Qy=Xy({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:o,shape:l,bgColor:n,color:a}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),d=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const k=s?.avatarGroupRef?.value?.children;k&&y(k)});const m=t.computed(()=>({[Yy]:!0,[`fox-avatar-${o.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${l.value||s?.props?.shape||"normal"}`]:!0})),f=t.computed(()=>({width:r.indexOf(o.value)>-1?"":`${o.value}px`,height:r.indexOf(o.value)>-1?"":`${o.value}px`,backgroundColor:`${n.value}`,color:`${a.value}`,marginLeft:d.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(d.maxIndex-d.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),y=k=>{d.maxIndex=k.length;for(let v=0;v<k.length;v++)k[v]&&k[v].classList&&k[v].classList[0]=="fox-avatar"&&k[v].setAttribute("data-index",v+1);d.index=i?.value?.dataset?.index,d.index==d.maxIndex&&d.index!=s?.props?.maxCount&&(d.showMax=!0)};return{classes:m,styles:f,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(d)}}});function Gy(e,o,l,n,a,r){return e.showMax||!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock("view",{key:0,style:t.normalizeStyle(e.showMax?e.maxStyles:e.styles),class:t.normalizeClass(e.classes),ref:"avatarRef"},[!e.avatarGroup?.props?.maxCount||e.index<=e.avatarGroup?.props?.maxCount?t.renderSlot(e.$slots,"default",{key:0}):t.createCommentVNode("",!0),e.showMax&&e.avatarGroup?.props?.maxCount?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.avatarGroup?.props?.maxContent?e.avatarGroup?.props?.maxContent:`+ ${e.maxIndex-e.avatarGroup?.props?.maxCount}`),1)],64)):t.createCommentVNode("",!0)],6)):t.createCommentVNode("",!0)}const co=W(Qy,[["render",Gy]]),{componentName:Zy,create:Jy}=U("avatar-group"),_y=Jy({props:{maxContent:{type:String,default:""},maxCount:{type:[Number,String],default:""},maxBgColor:{type:String,default:"#eee"},maxColor:{type:String,default:"#666"},size:{type:String,default:""},shape:{type:String,default:""},span:{type:String,default:"-8"},zIndex:{type:String,default:"left"}},setup(e,{emit:o,slots:l}){t.toRefs(e);const n=t.ref(null),a=t.ref(0),r=t.computed(()=>({[Zy]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:n,index:a}),{classes:r,avatarGroupRef:n}}});function ev(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const pr=W(_y,[["render",ev]]);var jt=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(jt||{});function tv(e,o,l){let n=0,a=e.length-1,r=null;for(;n<=a;){r=Math.floor((n+a)/2);const s=e[r],i=l(s,o);if(i===1)return r;i===2?n=r+1:i===3&&(a=r-1)}return r}const{componentName:ov,create:nv}=U("list"),il=document.documentElement.clientHeight||document.body.clientHeight||667,lv=nv({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:il},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref(null),a=t.ref(null),r=t.reactive({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),s=t.computed(()=>Math.min(e.containerHeight,il)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),d=t.computed(()=>({[ov]:!0})),m=t.computed(()=>r.list.slice(r.start,c.value)),f=()=>{if(a.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let u=0;u<r.list.length;++u)r.cachePositions[u]={index:u,height:e.height,top:u*e.height,bottom:(u+1)*(e.height+e.margin),dValue:0}},y=()=>{let u=a.value.childNodes;u=Array.from(u).filter(I=>I.nodeType===1);const p=u[0];u.forEach((I,V)=>{if(!I)return;const C=ve(I),{height:w}=C,L=r.cachePositions[V+r.start].height-w;L&&(r.cachePositions[V+r.start].bottom-=L,r.cachePositions[V+r.start].height=w,r.cachePositions[V+r.start].dValue=L)});let b=0;p&&(b=r.start);const S=r.cachePositions.length;let B=r.cachePositions[b].dValue;r.cachePositions[b].dValue=0;for(let I=b+1;I<S;++I){const V=r.cachePositions[I];r.cachePositions[I].top=r.cachePositions[I-1].bottom,r.cachePositions[I].bottom=r.cachePositions[I].bottom-B,V.dValue!==0&&(B+=V.dValue,V.dValue=0)}const E=r.cachePositions[S-1].bottom;r.phantomHeight=E},k=(u=0)=>{let p=tv(r.cachePositions,u,(S,B)=>{const E=S.bottom;return E===B?jt.eq:E<B?jt.lt:jt.gt});return r.cachePositions[p].bottom<u&&(p+=1),p},v=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,l.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},g=()=>{const u=l.value?.scrollTop,{originStartIndex:p}=r,b=k(u);b!==p&&(r.originStartIndex=b,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&o("scroll-bottom")),o(u>r.scrollTop?"scroll-up":"scroll-down",u),r.scrollTop=u};return t.watch(()=>e.listData,u=>{if(r.list=u.slice(),r.list.length===u.length)h(),y();else{v();return}}),t.watch(()=>r.start,()=>{a.value&&r.list.length>0&&y()}),{...t.toRefs(r),list:l,phantom:n,actualContent:a,getTransform:f,visibleData:m,classes:d,getContainerHeight:s,handleScrollEvent:g}}});function av(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:o[0]||(o[0]=(...s)=>e.handleScrollEvent&&e.handleScrollEvent(...s)),ref:"list"},[t.createElementVNode("div",{class:"fox-list-phantom",style:t.normalizeStyle({height:e.phantomHeight+"px"}),ref:"phantom"},null,4),t.createElementVNode("div",{class:"fox-list-container",style:t.normalizeStyle({transform:e.getTransform()}),ref:"actualContent"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.visibleData,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-list-item",key:s},[t.renderSlot(e.$slots,"default",{item:s,index:i+e.start})]))),128))],4)],38)}const hr=W(lv,[["render",av]]),{componentName:rv,create:sv}=U("circleprogress"),iv=sv({props:{progress:{type:[Number,String],required:!0},strokeWidth:{type:[Number,String],default:5},radius:{type:[Number,String],default:50},strokeLinecap:{type:String,default:"round"},color:{type:[String,Object],default:""},pathColor:{type:String,default:""},clockwise:{type:Boolean,default:!0}},setup(e,{emit:o}){const l=!!t.useSlots().default,n=Math.random().toString(36).slice(-8),a=t.computed(()=>({[rv]:!0})),r=t.computed(()=>{const m=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${m} 0 90 a 45 45 0 1, ${m} 0 -90`}),s=t.computed(()=>De(e.color)?`url(#${n})`:e.color),i=t.computed(()=>{let m=283,f=m*Number(e.progress)/100;return{stroke:De(e.color)?`url(#${n})`:e.color,strokeDasharray:`${f}px ${m}px`}}),c=t.computed(()=>({stroke:e.pathColor})),d=t.computed(()=>{if(!De(e.color))return;let m=e.color;const f=Object.keys(m).sort((y,k)=>parseFloat(y)-parseFloat(k));let h=[];return f.map((y,k)=>{let v={key:"",value:""};v.key=y,v.value=m[y],h.push(v)}),h});return{classes:a,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:d,slotDefault:l,refRandomId:n}}}),cv={viewBox:"0 0 100 100"},uv=["id"],dv=["offset","stop-color"],fv=["d","stroke-width"],mv=["d","stroke","stroke-linecap","stroke-width"],pv={class:"fox-circleprogress-text"},hv={key:0};function gv(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:e.radius*2+"px",width:e.radius*2+"px"})},[(t.openBlock(),t.createElementBlock("svg",cv,[t.createElementVNode("defs",null,[t.createElementVNode("linearGradient",{id:e.refRandomId,x1:"100%",y1:"0%",x2:"0%",y2:"0%"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.stop,(s,i)=>(t.openBlock(),t.createElementBlock("stop",{key:i,offset:s.key,"stop-color":s.value},null,8,dv))),128))],8,uv)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,fv),t.createElementVNode("path",{class:"fox-circleprogress-hover",style:t.normalizeStyle(e.hoverStyle),d:e.path,fill:"none",stroke:e.hoverColor,"stroke-linecap":e.strokeLinecap,"stroke-width":e.strokeWidth},null,12,mv)])),t.createElementVNode("div",pv,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",hv,t.toDisplayString(e.progress)+"%",1))])],6)}const gr=W(iv,[["render",gv]]),{componentName:yv,create:vv}=U("noticebar"),kv=vv({props:{direction:{type:String,default:"across"},list:{type:Array,default:()=>[]},standTime:{type:Number,default:1e3},complexAm:{type:Boolean,default:!1},height:{type:Number,default:40},text:{type:String,default:""},closeMode:{type:Boolean,default:!1},wrapable:{type:Boolean,default:!1},leftIcon:{type:Boolean,default:!0},color:{type:String,default:""},background:{type:String,default:""},delay:{type:[String,Number],default:1},scrollable:{type:Boolean,default:null},speed:{type:Number,default:50}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:G.Notice,CircleClose:G.CircleClose},emits:["click","close","across-end"],setup(e,{emit:o,slots:l}){const n=t.ref(null),a=t.ref(null),r=t.reactive({wrapWidth:0,firstRound:!0,duration:0,offsetWidth:0,showNoticebar:!0,animationClass:"",animate:!1,scrollList:[],distance:0,timer:null,keepAlive:!1,isCanScroll:null,showNotica:!0}),s=t.computed(()=>({[yv]:!0})),i=t.computed(()=>r.isCanScroll==null?e.wrapable:!r.isCanScroll&&!e.wrapable),c=t.computed(()=>({"fox-noticebar__page-wrap-content":!0,"fox-ellipsis":i.value,[r.animationClass]:!0})),d=t.computed(()=>{let V={};return e.color&&(V.color=e.color),e.background&&(V.background=e.background),e.direction=="vertical"&&(V.height=`${e.height}px`),V}),m=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),f=t.computed(()=>{let V={};if(e.complexAm)V={transform:`translateY(${r.distance}px)`};else if(r.animate){let C=~~(e.height/e.speed/4);V={transition:`all ${C==0?~~(e.height/e.speed):C}s`,"margin-top":`-${e.height}px`}}return V});t.watch(()=>e.text,V=>{h()}),t.watch(()=>e.list,V=>{r.scrollList=[].concat(V)});const h=V=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!n.value||!a.value)return;const C=n.value.getBoundingClientRect().width,w=a.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?w>C:e.scrollable,r.isCanScroll?(r.wrapWidth=C,r.offsetWidth=w,r.duration=w/e.speed,r.animationClass="play"):r.animationClass=""},0)},y=V=>{o("click",V)},k=V=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",V)},v=V=>{r.firstRound=!1,o("across-end",V),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},g=()=>{u(),r.timer=setInterval(u,~~(e.height/e.speed/4*1e3)+e.standTime)},u=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},p=()=>{r.timer=setInterval(()=>{let V=100;for(let C=0;C<V;C++)b(C,!(C<V-1))},e.standTime+100*e.speed)},b=(V,C)=>{setTimeout(()=>{r.distance-=e.height/100,C&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},V*e.speed)},S=V=>{o("click",V)},B=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),o("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(l.default?(E(),I()):r.scrollList=[].concat(e.list),setTimeout(()=>{e.complexAm?p():g()},e.standTime)):h(e.text)});const E=()=>{l.default&&(r.scrollList=[].concat(l.default()[0].children))},I=()=>{setTimeout(()=>{var V=new MutationObserver(w=>{r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),E()});const C=document.getElementsByClassName("fox-noticebar-custom-item")[0];C&&V.observe(C,{childList:!0,subtree:!0})},100)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:d,contentStyle:m,horseLampStyle:f,wrap:n,content:a,handleClick:y,onClickIcon:k,onAnimationEnd:v,go:S,handleClickIcon:B,slots:l,toPxDesc:le,wrapContentClass:c}}}),bv={class:"fox-noticebar__page-lefticon"},Sv={ref:"wrap",class:"fox-noticebar__page-wrap"},Cv={class:"showNotica"},wv={class:"fox-noticebar-custom-item"},Nv=["onClick"];function Bv(e,o,l,n,a,r){const s=t.resolveComponent("Notice"),i=t.resolveComponent("CircleClose"),c=t.resolveComponent("ScrollItem");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.direction=="across"?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(["fox-noticebar__page",{"fox-noticebar__page--withicon":e.closeMode,"fox-noticebar__page--close":e.closeMode,"fox-noticebar__page--wrapable":e.wrapable}]),style:t.normalizeStyle(e.barStyle),onClick:o[3]||(o[3]=(...d)=>e.handleClick&&e.handleClick(...d))},[t.createElementVNode("view",bv,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])]),t.createElementVNode("view",Sv,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:o[0]||(o[0]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d)),"on:webkitAnimationEnd":o[1]||(o[1]=(...d)=>e.onAnimationEnd&&e.onAnimationEnd(...d))},[t.renderSlot(e.$slots,"default",{},()=>[t.createTextVNode(t.toDisplayString(e.text),1)])],38)],512),e.closeMode||e.$slots["right-icon"]?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__page-righticon",onClick:o[2]||(o[2]=t.withModifiers((...d)=>e.onClickIcon&&e.onClickIcon(...d),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("view",{class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",Cv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(d,m)=>(t.openBlock(),t.createBlock(c,{key:m,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:d},null,8,["style","item"]))),128))])],4),t.createElementVNode("view",wv,[t.renderSlot(e.$slots,"default")])],64)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(d,m)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:m,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:f=>e.go(d)},t.toDisplayString(d),13,Nv))),128))],4)),t.createElementVNode("view",{class:"go",onClick:o[4]||(o[4]=d=>!e.slots.rightIcon&&e.handleClickIcon())},[t.renderSlot(e.$slots,"right-icon",{},()=>[e.closeMode?(t.openBlock(),t.createBlock(i,{key:0,color:e.color,size:"11px"},null,8,["color"])):t.createCommentVNode("",!0)])])],4)):t.createCommentVNode("",!0)],2)}const yr=W(kv,[["render",Bv]]),Vv="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/xdD/y9UyMD0TExP5sb+4uLj/y9X+w879ws3/y9X1tMH8s8H/y9UkJSWAgYHj5OT/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ErkJggg==",{componentName:Aw,create:Tv,scope:$v}=U("empty"),Dv={empty:Vv,error:Av,network:Ev},Iv=Tv({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:o}=ie.useFoxI18n($v),l=o(e,["description"]),{image:n,imageSize:a}=t.toRefs(e),r=t.computed(()=>a.value?typeof a.value=="number"?`width:${a.value}px;height:${a.value}px`:`width:${a.value};height:${a.value}`:""),i=n.value.startsWith("https://")||n.value.startsWith("http://")||n.value.startsWith("//")?n.value:Dv[n.value];return{...l,imageUrl:i,imgStyle:r}}}),qv={class:"fox-empty"},Mv=["src"],zv={key:1,class:"fox-empty-description"};function xv(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",qv,[t.createElementVNode("view",{class:"fox-empty-image",style:t.normalizeStyle(e.imgStyle)},[e.$slots.image?t.renderSlot(e.$slots,"image",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.imageUrl?(t.openBlock(),t.createElementBlock("img",{key:0,class:"img",src:e.imageUrl},null,8,Mv)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",zv,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const vr=W(Iv,[["render",xv]]),{create:Pv,scope:Lv}=U("video"),Rv=Pv({props:{source:{type:Object,default:{}},options:{type:Object,default:{autoplay:!1,volume:.5,poster:"",loop:!1,controls:!0,muted:!1,disabled:!1,playsinline:!1,touchPlay:!1,preload:""},required:!0},model:{type:String,default:""}},components:{},emits:["click","play","pause","playend","time"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(Lv),n=t.reactive({videoElm:null,initial:!0,showToolbox:!1,player:{$player:null,pos:null},progressBar:{progressElm:null,pos:null},videoSet:{loaded:0,displayTime:"00:00",totalTime:"00:00",progress:{width:0,current:0}},state:{controlShow:!0,vol:.5,currentTime:0,fullScreen:!1,playing:!1,isLoading:!1,isEnd:!1,isError:!1,isMuted:!1},showTouchMask:!1}),a=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,E=>{E.src&&t.nextTick(()=>{n.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,E=>{n.state.isMuted=E?E.muted:!1},{immediate:!0});const s=()=>{n.videoElm=a.value,e.options.autoplay&&setTimeout(()=>{n.videoElm.play()},200),e.options.touchPlay&&(n.showTouchMask=!0),e.options.playsinline&&(n.videoElm.setAttribute("playsinline",e.options.playsinline),n.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),n.videoElm.setAttribute("x5-video-player-type","h5-page"),n.videoElm.setAttribute("x5-video-player-fullscreen",!1)),k(),n.showToolbox?i():(n.videoElm.addEventListener("play",()=>{n.state.playing=!0,o("play",n.videoElm)}),n.videoElm.addEventListener("pause",()=>{n.state.playing=!1,o("pause",n.videoElm)}),n.videoElm.addEventListener("ended",h),n.videoElm.addEventListener("timeupdate",Xt(f,1e3)))},i=()=>{const E=a.value,I=a.value.getElementsByClassName("fox-video-controller__progress-value")[0];n.player.$player=E,n.progressBar.progressElm=I,n.progressBar.pos=I.getBoundingClientRect(),n.videoSet.progress.width=Math.round(I.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return n.state.playing=!0,!1;if(n.state.playing=!n.state.playing,n.videoElm)if(n.state.playing)try{setTimeout(()=>{n.videoElm.play()},200),n.videoElm.addEventListener("progress",()=>{m()}),n.videoElm.addEventListener("timeupdate",Xt(f,1e3)),n.videoElm.addEventListener("ended",h),o("play",n.videoElm)}catch{y()}else n.videoElm.pause(),o("pause",n.videoElm)},d=E=>{var I=Math.floor(E/3600);I<10&&(I="0"+I);var V=Math.floor(E%3600/60);V<10&&(V="0"+V);var C=Math.round(E%3600%60);C<10&&(C="0"+C);var w="";return I!=0?w=I+":"+V+":"+C:w=V+":"+C,w},m=()=>{n.videoSet.loaded&&(n.videoSet.loaded=n.videoElm.buffered.end(0)/n.videoElm.duration*100)},f=()=>{const E=n.videoElm.currentTime/n.videoElm.duration;n.videoSet.progress.current=Math.round(n.videoSet.progress.width*E),n.videoSet.totalTime=d(n.videoElm.duration),n.videoSet.displayTime=d(n.videoElm.currentTime),o("time",n.videoSet.displayTime,n.videoSet.totalTime)},h=()=>{n.state.playing=!1,n.state.isEnd=!0,n.videoSet.displayTime="00:00",n.videoSet.progress.current=0,n.videoElm.currentTime=0,o("playend",n.videoElm)},y=()=>{n.state.isError=!0},k=()=>{n.state.vol=e.options.volume},v=()=>{n.state.isMuted=!n.state.isMuted,n.videoElm.muted=n.state.isMuted},g=()=>{},u=E=>{let V=E.targetTouches[0].pageX-n.progressBar.pos.left;V<=0&&(V=0),V>=n.videoSet.progress.width&&(V=n.videoSet.progress.width),n.videoSet.progress.current=V;let C=n.videoSet.progress.current/n.videoSet.progress.width;n.videoElm.duration&&b(C,n.videoElm.duration)},p=E=>{let V=E.changedTouches[0].pageX-n.progressBar.pos.left;n.videoSet.progress.current=V;let C=V/n.videoSet.progress.width;n.videoElm.duration&&b(C,n.videoElm.duration)},b=(E,I)=>{n.videoElm.currentTime=Math.floor(E*I)},S=()=>{n.state.isError=!1,s()},B=()=>{n.state.fullScreen?(n.state.fullScreen=!1,document.webkitCancelFullScreen()):(n.state.fullScreen=!0,n.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:a,...t.toRefs(e),...t.toRefs(n),handleError:y,isDisabled:r,play:c,handleMuted:v,touchSlidSrart:g,touchSlidMove:u,touchSlidEnd:p,retry:S,fullScreen:B,t:l}}}),Ov={class:"fox-video",ref:"videocon"},Fv=["muted","autoplay","loop","poster","controls","preload"],Uv=["src","type"],Kv={class:"fox-video-controller__now"},Hv={class:"fox-video-controller__progress"},jv={class:"fox-video-controller__progress-value",ref:"progressBar"},Wv=t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1),Yv=[Wv],Xv={class:"fox-video-controller__played",ref:"playedBar"},Qv={class:"fox-video-controller__total"},Gv={class:"fox-video-error"},Zv={class:"fox-video-error-tip"};function Jv(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",Ov,[t.createElementVNode("video",{ref:"root",class:"fox-video-player",muted:e.options.muted,autoplay:e.options.autoplay,loop:e.options.loop,poster:e.options.poster,controls:e.options.controls,preload:e.options.preload,onError:o[0]||(o[0]=(...s)=>e.handleError&&e.handleError(...s))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,Uv)],40,Fv),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:o[1]||(o[1]=(...s)=>e.play&&e.play(...s))},null,512)):t.createCommentVNode("",!0),e.showToolbox&&!e.isDisabled?t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-video-play-btn",ref:"palyBtn",onClick:o[2]||(o[2]=(...s)=>e.play&&e.play(...s))},null,512)),[[t.vShow,!e.state.playing]]):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller",{"fox-video-controller--show":!e.state.playing,"fox-video-controller--hide":e.state.playing}])},[t.createElementVNode("div",{class:"fox-video-controller__playbtn",onClick:o[3]||(o[3]=(...s)=>e.play&&e.play(...s))}),t.createElementVNode("div",Kv,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",Hv,[t.createElementVNode("div",jv,[t.createElementVNode("div",{class:"buffered",style:t.normalizeStyle({width:`${e.videoSet.loaded}%`})},null,4),t.createElementVNode("div",{class:"fox-video-controller__ball",style:t.normalizeStyle({transform:`translate3d(${e.videoSet.progress.current}px, -50%, 0)`}),onTouchmove:o[4]||(o[4]=t.withModifiers(s=>e.touchSlidMove(s),["stop","prevent"])),onTouchstart:o[5]||(o[5]=t.withModifiers(s=>e.touchSlidSrart(),["stop"])),onTouchend:o[6]||(o[6]=t.withModifiers(s=>e.touchSlidEnd(s),["stop"]))},Yv,36),t.createElementVNode("div",Xv,null,512)],512)]),t.createElementVNode("div",Qv,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:o[7]||(o[7]=(...s)=>e.handleMuted&&e.handleMuted(...s))},null,2),t.createElementVNode("div",{class:"fox-video-controller__full",onClick:o[8]||(o[8]=(...s)=>e.fullScreen&&e.fullScreen(...s))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",Gv,[t.createElementVNode("p",Zv,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:o[9]||(o[9]=(...s)=>e.retry&&e.retry(...s))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const Dt=W(Rv,[["render",Jv]]),{create:_v,componentName:ek}=U("steps"),kr=_v({props:{direction:{type:String,default:"horizontal"},current:{type:[String,Number],default:"0"},progressDot:{type:Boolean,default:!1}},emits:["click-step"],setup(e,{emit:o,slots:l}){const n=t.reactive({children:[]}),a=t.computed(()=>{const i=ek;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&n.children.push(i)},s=i=>{o("click-step",i)};return t.provide("parent",{relation:r,state:n,props:e,onEmit:s}),()=>t.h("view",{class:a.value},l.default?.())}}),{create:tk,componentName:ok}=U("step"),nk=tk({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=t.getCurrentInstance(),o=t.inject("parent");o.relation(e);const l=t.reactive({dot:o.props.progressDot}),n=t.computed(()=>o.state.children.indexOf(e)+1),a=()=>{const c=n.value;return c<+o.props.current?"finish":c===+o.props.current?"process":"wait"},r=t.computed(()=>a()),s=t.computed(()=>{const c=ok;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{o.onEmit(n.value)};return{...t.toRefs(l),index:n,classes:s,handleClickStep:i}}}),lk={class:"fox-step-head"},ak=t.createElementVNode("view",{class:"fox-step-line"},null,-1),rk={class:"fox-step-icon-inner"},sk={key:1,class:"fox-step-inner"},ik={class:"fox-step-main"},ck={class:"fox-step-title"},uk={key:0},dk={key:0,class:"fox-step-content"},fk=["innerHTML"];function mk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...s)=>e.handleClickStep&&e.handleClickStep(...s))},[t.createElementVNode("view",lk,[ak,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",rk,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",sk,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",ik,[t.createElementVNode("view",ck,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",uk,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",dk,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,fk)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const br=W(nk,[["render",mk]]),{create:pk,componentName:qo}=U("swiper"),hk=pk({props:{width:{type:[Number,String],default:window.innerWidth},height:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},autoPlay:{type:[Number,String],default:0},initPage:{type:[Number,String],default:0},touchable:{type:Boolean,default:!0},isPreventDefault:{type:Boolean,default:!0},isStopPropagation:{type:Boolean,default:!0}},emits:["change"],setup(e,{emit:o,slots:l}){const n=t.ref(),a=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=Ke(),s=t.computed(()=>({[qo]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const $=qo;return{[`${$}-inner`]:!0,[`${$}-vertical`]:i.value}}),d=t.computed(()=>{const $=qo;return{[`${$}-pagination`]:!0,[`${$}-pagination-vertical`]:i.value}}),m=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),f=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>a.children.length),y=t.computed(()=>a[i.value?"height":"width"]),k=t.computed(()=>h.value*y.value),v=t.computed(()=>a.rect?(i.value?a.rect.height:a.rect.width)-y.value*h.value:0),g=t.computed(()=>(a.active+h.value)%h.value),u=()=>{let $=0;$=a.offset,a.style={transitionDuration:`${a.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${$}px)`,[i.value?"height":"width"]:`${y.value*h.value}px`,[i.value?"width":"height"]:`${i.value?a.width:a.height}px`}},p=$=>{let x=[];const H=a.childrenVNode.length;let j=l?.default?.();if(j=j.filter(Y=>Y.children&&Array.isArray(Y.children)),j.forEach(Y=>{x=x.concat(Y.children)}),!H)a.childrenVNode=x.slice(),$.proxy&&a.children.push($.proxy);else if(H>x.length)a.children=a.children.filter(Y=>$.proxy!==Y);else if(H<x.length){for(let Y=0;Y<H;Y++)if(x[Y].key!==a.childrenVNode[Y].key){$.proxy&&a.children.splice(Y,0,$.proxy),$.vnode&&a.childrenVNode.splice(Y,0,$.vnode);break}H!==x.length&&($.proxy&&a.children.push($.proxy),$.vnode&&a.childrenVNode.push($.vnode))}else a.childrenVNode=x.slice(),$.proxy&&a.children.push($.proxy)},b=($,x=0)=>{let H=$*y.value;e.loop||(H=Math.min(H,-v.value));let j=x-H;return e.loop||(j=Le(j,v.value,0)),j},S=$=>{const{active:x}=a;return $?e.loop?Le(x+$,-1,h.value):Le(x+$,0,h.value-1):x},B=({pace:$=0,offset:x=0,isEmit:H=!1})=>{if(h.value<=1)return;const{active:j}=a,Y=S($),R=b(Y,x);if(e.loop){if(a.children[0]&&R!==v.value){const O=R<v.value;a.children[0].setOffset(O?k.value:0)}if(a.children[h.value-1]&&R!==0){const O=R>0;a.children[h.value-1].setOffset(O?-k.value:0)}}a.active=Y,a.offset=R,H&&j!==a.active&&o("change",g.value),u()},E=()=>{a.moving=!0,a.active<=-1&&B({pace:h.value}),a.active>=h.value&&B({pace:-h.value})},I=()=>{a.autoplayTimer&&clearTimeout(a.autoplayTimer)},V=$=>{E(),r.reset(),Ye(()=>{Ye(()=>{a.moving=!1,B({pace:$,isEmit:!0})})})},C=()=>{V(-1)},w=()=>{V(1)},q=$=>{E(),r.reset(),Ye(()=>{a.moving=!1;let x;e.loop&&h.value===$?x=a.active===0?0:$:x=$%h.value,B({pace:x-a.active,isEmit:!0})})},L=()=>{e.autoPlay<=0||h.value<=1||(I(),a.autoplayTimer=setTimeout(()=>{w(),L()},Number(e.autoPlay)))},M=($=+e.initPage)=>{I(),a.rect=n.value.getBoundingClientRect(),$=Math.min(h.value-1,$),a.width=e.width?+e.width:a.rect.width,a.height=e.height?+e.height:a.rect.height,a.active=$,a.offset=b(a.active),a.moving=!0,u(),L()},A=$=>{e.isPreventDefault&&$.preventDefault(),e.isStopPropagation&&$.stopPropagation(),e.touchable&&(r.start($),a.touchTime=Date.now(),I(),E())},T=$=>{e.touchable&&a.moving&&(r.move($),f.value&&B({offset:m.value}))},z=$=>{if(!e.touchable||!a.moving)return;const x=m.value/(Date.now()-a.touchTime);if((Math.abs(x)>.3||Math.abs(m.value)>+(y.value/2).toFixed(2))&&f.value){let j=0;const Y=i.value?r.offsetY.value:r.offsetX.value;e.loop?j=Y>0?m.value>0?-1:1:0:j=-Math[m.value>0?"ceil":"floor"](m.value/y.value),B({pace:j,isEmit:!0})}else m.value&&B({pace:0});a.moving=!1,u(),L()};return t.provide("parent",{props:e,size:y,relation:p}),Te({prev:C,next:w,to:q}),t.onDeactivated(()=>{I()}),t.onBeforeUnmount(()=>{I()}),t.watch(()=>e.initPage,$=>{t.nextTick(()=>{M(Number($))})}),t.watch(()=>a.children.length,()=>{t.nextTick(()=>{M()})}),t.watch(()=>e.autoPlay,$=>{$>0?L():I()}),{state:a,classes:s,classesInner:c,classesPagination:d,container:n,activePagination:g,onTouchStart:A,onTouchMove:T,onTouchEnd:z}}});function gk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",class:t.normalizeClass(e.classes),onTouchstart:o[0]||(o[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:o[1]||(o[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:o[2]||(o[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:o[3]||(o[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",{class:t.normalizeClass(e.classesInner),style:t.normalizeStyle(e.state.style)},[t.renderSlot(e.$slots,"default")],6),t.renderSlot(e.$slots,"page"),e.paginationVisible&&!e.$slots.page?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classesPagination)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.state.children.length,(s,i)=>(t.openBlock(),t.createElementBlock("i",{style:t.normalizeStyle({backgroundColor:e.activePagination===i?e.paginationColor:"#ddd"}),class:t.normalizeClass({active:e.activePagination===i}),key:i},null,6))),128))],2)):t.createCommentVNode("",!0)],34)}const It=W(hk,[["render",gk]]),{create:yk,componentName:vk}=U("swiper-item"),kk=yk({setup(e,{slots:o}){const l=t.inject("parent");l.relation(t.getCurrentInstance());const n=t.reactive({offset:0}),a=t.computed(()=>({[vk]:!0})),r=t.computed(()=>{const i={},c=l?.props.direction;return l?.size.value&&(i[c==="horizontal"?"width":"height"]=`${l?.size.value}px`),n.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${n.offset}px)`),i}),s=i=>{n.offset=i};return t.onUnmounted(()=>{l.relation(t.getCurrentInstance(),"unmount")}),Te({setOffset:s}),{style:r,classes:a}}});function bk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const qt=W(kk,[["render",bk]]),Sr={show:{type:Boolean,default:!1},initNo:{type:Number,default:0},showIndex:{type:Boolean,default:!0},minZoom:{type:Number,default:1/3},maxZoom:{type:Number,default:3}},{create:Sk}=U("image-preview-item"),Ck=Sk({props:{...Sr,image:{type:Object,default:()=>({})},video:{type:Object,default:()=>({})},rootWidth:{type:Number,default:0},rootHeight:{type:Number,default:0},contentClose:{type:Boolean,default:!0}},emits:["close","scale"],components:{[Dt.name]:Dt,[qt.name]:qt},setup(e,{emit:o}){const l=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),n=Ke(),a=t.computed(()=>{const{rootWidth:C,rootHeight:w}=e,q=w/C;return l.imageRatio>q}),r=t.computed(()=>{const C=e.image;if(C&&C.src){const{scale:w,moveX:q,moveY:L,moving:M,zooming:A}=l,T={transitionDuration:A||M?"0s":".3s"};if(w!==1){const z=q/w,$=L/w;T.transform=`scale(${w}, ${w}) translate(${z}px, ${$}px)`}return T}return{}}),s=t.computed(()=>{if(l.imageRatio){const{rootWidth:C,rootHeight:w}=e,q=a.value?w/l.imageRatio:C;return Math.max(0,(l.scale*q-C)/2)}return 0}),i=t.computed(()=>{if(l.imageRatio){const{rootWidth:C,rootHeight:w}=e,q=a.value?w:C*l.imageRatio;return Math.max(0,(l.scale*q-w)/2)}return 0}),c=C=>{const{naturalWidth:w,naturalHeight:q}=C.target;l.imageRatio=q/w},d=()=>{m(1),l.moveX=0,l.moveY=0},m=C=>{C=Le(C,+e.minZoom,+e.maxZoom+1),C!==l.scale&&(l.scale=C,o("scale",{scale:C,index:e.initNo}))},f=()=>{const C=l.scale>1?1:2;m(C),l.moveX=0,l.moveY=0},h=C=>Math.sqrt((C[0].clientX-C[1].clientX)**2+(C[0].clientY-C[1].clientY)**2);let y,k,v,g,u,p,b;const S=C=>{const{touches:w}=C,{offsetX:q}=n;n.start(C),b=w.length,y=l.moveX,k=l.moveY,p=Date.now(),l.moving=b===1&&l.scale!==1,l.zooming=b===2&&!q.value,l.zooming&&(v=l.scale,g=h(C.touches))},B=C=>{const{touches:w}=C;if(n.move(C),(l.moving||l.zooming)&&Uo(C,!0),l.moving){const{deltaX:q,deltaY:L}=n,M=q.value+y,A=L.value+k;l.moveX=Le(M,-s.value,s.value),l.moveY=Le(A,-i.value,i.value)}if(l.zooming&&w.length===2){const q=h(w),L=v*q/g;m(L)}},E=()=>{if(b==1&&e.video&&e.video.source||b>1)return;const{offsetX:C,offsetY:w}=n,q=Date.now()-p,L=250,M=5;C.value<M&&w.value<M&&q<L&&(u?(clearTimeout(u),u=null,f()):u=setTimeout(()=>{e.contentClose&&o("close"),u=null},L))},I=C=>{let w=!1;(l.moving||l.zooming)&&(w=!0,l.moving&&y===l.moveX&&k===l.moveY&&(w=!1),C.touches.length||(l.zooming&&(l.moveX=Le(l.moveX,-s.value,s.value),l.moveY=Le(l.moveY,-i.value,i.value),l.zooming=!1),l.moving=!1,y=0,k=0,v=1,l.scale<1&&d(),l.scale>e.maxZoom&&(l.scale=+e.maxZoom))),Uo(C,w),E(),n.reset()},V=()=>{o("close")};return t.watch(()=>e.initNo,d),t.watch(()=>e.show,C=>{C||d()}),{...t.toRefs(l),onTouchStart:S,onTouchMove:B,onTouchEnd:I,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:V}}}),wk=["src"];function Nk(e,o,l,n,a,r){const s=t.resolveComponent("fox-video"),i=t.resolveComponent("fox-swiper-item");return t.openBlock(),t.createBlock(i,{onClick:e.closeSwiper},{default:t.withCtx(()=>[t.createElementVNode("view",{style:t.normalizeStyle(e.imageStyle),class:"fox-image-preview-box",onTouchstart:o[1]||(o[1]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:o[2]||(o[2]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:o[3]||(o[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:o[4]||(o[4]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[e.image&&e.image.src?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.image.src,class:"fox-image-preview-img",onLoad:o[0]||(o[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,wk)):t.createCommentVNode("",!0),e.video&&e.video.source?(t.openBlock(),t.createBlock(s,{key:1,source:e.video.source,options:e.video.options},null,8,["source","options"])):t.createCommentVNode("",!0)],36)]),_:1},8,["onClick"])}const Bk=W(Ck,[["render",Nk]]),{create:Vk}=U("image-preview"),Ak=Vk({props:{...Sr,images:{type:Array,default:()=>[]},videos:{type:Array,default:()=>[]},contentClose:{type:Boolean,default:!0},paginationVisible:{type:Boolean,default:!1},paginationColor:{type:String,default:"#fff"},autoplay:{type:[Number,String],default:0},teleport:{type:[String,Element],default:"body"},teleportDisable:{ype:Boolean,default:!1},closeable:{type:Boolean,default:!1},closeIconPosition:{type:String,default:"top-right"},beforeClose:Function,isLoop:{type:Boolean,default:!0}},emits:["close","change"],components:{ImagePreviewItem:Bk,CircleClose:G.CircleClose,[ce.name]:ce,[It.name]:It},setup(e,{emit:o}){const l=t.ref(),n=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),a=t.computed(()=>{const m="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${m}-right`:`${m}-left`}`}),r=t.computed(()=>mo(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=m=>{m!==n.active&&(n.active=m,o("change",n.active))},i=()=>{er(e.beforeClose,{args:[n.active],done:()=>c()})},c=()=>{n.showPop=!1,o("close")},d=()=>{if(l.value){const m=ve(l.value);n.rootHeight=m.height,n.rootWidth=m.width}};return t.watch(()=>e.show,m=>{n.showPop=m,m&&(s(e.initNo),d())}),t.watch(()=>e.initNo,m=>{m!=n.active&&s(m)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:l,...t.toRefs(n),onClose:i,mergeImages:r,setActive:s,iconClasses:a}}}),Ek={class:"fox-image-preview",ref:"swipeRef"},Tk={key:0,class:"fox-image-preview-index"};function $k(e,o,l,n,a,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":o[1]||(o[1]=m=>e.showPop=m),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",Ek,[e.showPop?(t.openBlock(),t.createBlock(i,{key:0,"auto-play":e.autoplay,class:"fox-image-preview-swiper",loop:e.isLoop,"is-preventDefault":!1,direction:"horizontal",onChange:e.setActive,"init-page":e.initNo,"pagination-visible":e.paginationVisible,"pagination-color":e.paginationColor},{default:t.withCtx(()=>[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeImages,(m,f)=>(t.openBlock(),t.createBlock(s,{key:f,video:f<e.videos.length?m:{},image:f>=e.videos.length?m:{},rootHeight:e.rootHeight,rootWidth:e.rootWidth,show:e.showPop,"init-no":e.active+1,onClose:e.onClose,"content-close":e.contentClose,maxZoom:e.maxZoom,minZoom:e.minZoom},null,8,["video","image","rootHeight","rootWidth","show","init-no","onClose","content-close","maxZoom","minZoom"]))),128))]),_:1},8,["auto-play","loop","onChange","init-page","pagination-visible","pagination-color"])):t.createCommentVNode("",!0)],512),e.showIndex?(t.openBlock(),t.createElementBlock("view",Tk,t.toDisplayString(e.active+1)+" / "+t.toDisplayString(e.mergeImages.length),1)):t.createCommentVNode("",!0),e.closeable?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.iconClasses),onClick:o[0]||(o[0]=(...m)=>e.onClose&&e.onClose(...m))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Cr=W(Ak,[["render",$k]]);class Dk{show=!1;images=[];videos=[];contentClose=!0;initNo=0;paginationVisible=!1;paginationColor="";autoplay=0;isWrapTeleport=!1;showIndex=!0;closeable=!1;closeIconPosition="top-right";beforeClose;maxZoom=3;minZoom=1/3;isLoop=!0;teleport="body"}class Ik{options=new Dk;constructor(o){const l=Object.assign(this.options,o),{unmount:n}=As(l,{name:"image-preview",components:[ce,Dt,It,qt,ot],wrapper:()=>({setup(){return()=>(l.onClose=()=>{l.show=!1,t.nextTick(()=>{n()})},t.h(Cr,l))}})})}}const Bn=e=>new Ik(e);Bn.install=e=>{e.use(Cr)};function qk(e){const o=t.getCurrentInstance();if(o&&o.proxy){let l=o.proxy;Object.assign(l,e)}}const{componentName:Ew,create:Mk}=U("countup"),zk=Mk({props:{initNum:{type:Number,default:0},endNum:{type:Number,default:0},speed:{type:Number,default:1},toFixed:{type:Number,default:0},during:{type:Number,default:1e3},startFlag:{type:Boolean,default:!0},numWidth:{type:Number,default:20},numHeight:{type:Number,default:20},scrolling:{type:Boolean,default:!1},customBgImg:{type:String,default:""},customSpacNum:{type:Number,default:0},customChangeNum:{type:Number,default:1},type:{type:String,default:""},machineNum:{type:Number,default:3},machinePrizeNum:{type:Number,default:0},machinePrizeLevel:{type:Number,default:0},machineTurnMore:{type:Number,default:0}},components:{},emits:["click","scroll-end"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref([]),a=V=>{V&&n.value.push(V)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:d}=t.reactive(e);t.watch(()=>e.customChangeNum,(V,C)=>{f(),g(0)}),t.watch(()=>e.machinePrizeLevel,(V,C)=>{r.prizeLevelTrun=V}),t.watch(()=>e.initNum,(V,C)=>{r.current=V,r.valFlag=!1,m()}),t.watch(()=>e.endNum,(V,C)=>{r.current=e.initNum,r.valFlag=!1,m()});const m=()=>{if(r.valFlag)return!1;s&&(i||c?d!="machine"&&g():(v(),setTimeout(()=>{r.valFlag=!0},300)))},f=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(V,C,w)=>{const q=(V.toString().split(".")[1]||"").length,L=(C.toString().split(".")[1]||"").length,M=Math.pow(10,Math.max(q,L));return w=="-"?Number((V*M-C*M).toFixed(0))/M:Number((V*M+C*M).toFixed(0))/M},y=V=>{let{num_total_len:C,pointNum:w,initDigit1:q,initDigit2:L,sortFlag:M}=r,A=M=="add"||M=="equal"?String(L)[V-(C-w)]:10-Number(String(L)[V-(C-w)]),T=M=="add"||M=="equal"?String(q)[V]:10-Number(String(q)[V]),z=V>C-w-1?-A*100+"%":V<=String(q).length-1?-T*100+"%":0;return z=="-1000%"&&(z=0),z},k=V=>{let{num_total_len:C,pointNum:w,initDigit1:q,initDigit2:L,sortFlag:M}=r,A=String(L)[V-(C-w)];return V>C-w-1?A||0:V<=String(q).length-1?String(q)[V]:0},v=()=>{let{endNum:V,initNum:C,speed:w,toFixed:q}=e,L=setInterval(()=>{if(C>V)if(r.current<=V||r.current<=w)r.current=V.toFixed(q),clearInterval(L),o("scroll-end"),r.valFlag=!1;else{let M=parseFloat(String(r.current))-parseFloat(String(w));r.current=M.toFixed(q)}else if(r.current>=V)r.current=V.toFixed(q),clearInterval(L),o("scroll-end"),r.valFlag=!1;else{let M=parseFloat(String(r.current))+parseFloat(String(w));r.current=M.toFixed(q)}},e.during)},g=V=>{let{initNum:C,endNum:w,toFixed:q,customBgImg:L}=e;L&&(C=e.customChangeNum);let M,A,T,z;C!=0?(q!=0&&(C=Number(C.toFixed(q))),String(C).indexOf(".")>-1?(M=String(C).split(".")[0].length,A=String(C).split(".")[1].length):(M=String(C).length,A=0)):(M=1,A=0),w!=0?(q!=0&&(w=Number(w.toFixed(q))),String(w).indexOf(".")>-1?(T=String(w).split(".")[0].length,z=String(w).split(".")[1].length):(T=String(w).length,z=0)):(T=1,z=0);let $=M>=T?M:T,x=A>=z?A:z;r.num_total_len=$+x,r.pointNum=x,C>w?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(C,w,"-"),r.numberVal=Number(String(C))):C<w?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(w,C,"-"),r.numberVal=Number(String(w))):r.sortFlag="equal";var H=1;for(let Y=0;Y<r.pointNum;Y++)H*=10;var j=r.numberVal*H;if(r.relNum=j,q!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(j).length),String(C).indexOf(".")>-1){let Y=String(C).split(".");r.initDigit1=Number(Y[0]),r.initDigit2=Number(Y[1])}else r.initDigit1=C,r.initDigit2=0;i&&!L?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let Y=n.value[r.num_total_len-1];u(Y)}):V!==0&&S()},u=V=>{f();var C=1;r.pointNum!=0&&(C=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{p(V),r.totalCount=h(r.totalCount,C,"-"),r.totalCount<=0&&(f(),o("scroll-end"),r.valFlag=!1)},e.during)},p=V=>{let C=V.getAttribute("turn-number"),w;if(r.sortFlag=="add"?w=parseInt(String(C))+1:w=parseInt(String(C))-1>=0?parseInt(String(C))-1:9,V.setAttribute("turn-number",String(w)),(V.style.transition=="none 0s ease 0s"||w==1||!V.style.transition)&&(V.style.transition=`all linear ${e.during}ms`),w==10||r.sortFlag=="reduce"&&w==0){var q=null;V.style.top=`-${r.sortFlag=="add"?w*100:(10-w)*100}%`,V.setAttribute("turn-number","0"),q=setTimeout(()=>{q&&clearTimeout(q),V.style.transition="none",V.style.top="0",b(V,w)},.975*e.during)}else V.style.top=`-${r.sortFlag=="add"?w*100:(10-w)*100}%`;V.style.top=="-100%"&&r.sortFlag=="reduce"&&p(V.previousSibling)},b=(V,C)=>{setTimeout(()=>{C==10&&V.previousSibling&&p(V.previousSibling)},200)},S=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{l.value.addEventListener("webkitTransitionEnd",()=>{o("scroll-end"),r.valFlag=!1})})},B=()=>{for(r.notPrize=[];r.notPrize.length<3;){var V=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(V)==-1&&r.notPrize.push(V)}};qk({machineLuck:()=>{const V=e.machineTurnMore<0?0:e.machineTurnMore;let C=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&B();for(let w=0;w<e.machineNum;w++)setTimeout(()=>{let q=C*(w+1+parseFloat(String(V)));r.prizeYPrev.length!=0&&(r.prizeY[w]=r.prizeYPrev[w]);let L=r.prizeYPrev[w]?r.prizeYPrev[w]:0,M=q+L+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(C-L);r.prizeLevelTrun<0&&(M+=e.numHeight*r.notPrize[w]),I(w,M,L)},500*w)}});const I=(V,C,w)=>{let q=setInterval(()=>{if(w<=C)w+=10,r.prizeY[V]=parseFloat(String(w));else if(clearInterval(q),q=null,r.finshMachine+=1,r.prizeY[V]=C,r.finshMachine==e.machineNum){let L=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(A=>{let T=A;for(;T>L;)T-=L;r.prizeYPrev.push(T)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(o("scroll-end",!1),r.valFlag=!1):(o("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{m()})}),t.onUnmounted(()=>{f(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:l,setRef:a,topNumber:y,turnNumber:k}}}),xk={class:"fox-countup"},Pk=["turn-number"];function Lk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",xk,[e.customBgImg!=""?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.type=="machine"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__machine",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.machineNum,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__machine-item",key:"mImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionY:e.prizeY[i]+"px"})},null,4))),128))],4)):(t.openBlock(),t.createElementBlock("view",{key:1,ref:"runNumberImg",class:"fox-countup__numberimg",style:t.normalizeStyle({height:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__numberimg__item",key:"cImg"+i,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i==e.num_total_len-e.pointNum?i*1.5:i*1.3:i)+"px",backgroundImage:"url("+e.customBgImg+")",backgroundPositionX:"0",backgroundPositionY:-(+String(e.relNum)[i]*e.numHeight+e.customSpacNum*+String(e.relNum)[i])+"px",transition:"all linear "+e.during/10+"ms"})},null,4))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/2+"px",bottom:0,left:e.numWidth*(e.num_total_len-e.pointNum)*1.1+"px",fontSize:"30px"})},".",4)):t.createCommentVNode("",!0)],4))],64)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.scrolling?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup__number",style:t.normalizeStyle({width:e.numWidth*e.num_total_len+e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.num_total_len,(s,i)=>(t.openBlock(),t.createElementBlock("view",{ref_for:!0,ref:c=>e.setRef(c),class:"fox-countup__number-item",key:s,style:t.normalizeStyle({top:e.topNumber(i),left:e.numWidth*(i>e.num_total_len-e.pointNum-1?i*1.1:i)+"px"}),"turn-number":e.turnNumber(i)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.to0_10,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+d,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,Pk))),128)),e.pointNum>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-countup-pointstyl",style:t.normalizeStyle({width:e.numWidth/3+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px",top:0,left:e.numWidth*(e.num_total_len-e.pointNum)+"px"})},".",4)):t.createCommentVNode("",!0)],4)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(e.current),1)],64))],64))])}const wr=W(zk,[["render",Lk]]),Rk=e=>{if(!e)return Date.now();let o=Number(e),l=o>0?+o:o.toString().replace(/\-/g,"/");return new Date(l).getTime()},{componentName:Ok,create:Fk}=U("countdown"),Uk=Fk({props:{modelValue:{type:Object,default:()=>({})},paused:{default:!1,type:Boolean},startTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},endTime:{type:[Number,String],validator(e){return new Date(e).toString().toLowerCase()!=="invalid date"}},millisecond:{default:!1,type:Boolean},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0},time:{type:[Number,String],default:0}},emits:["input","on-end","on-restart","on-paused","update:modelValue"],setup(e,{emit:o,slots:l}){const n=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),a=t.computed(()=>({[Ok]:!0})),r=t.computed(()=>c(n.restTime)),s=()=>{n.handleEndTime=e.endTime,n.diffTime=Date.now()-Rk(e.startTime),n.counting||(n.counting=!0),i()},i=()=>{window!==void 0&&(n.timer=requestAnimationFrame(()=>{if(n.counting){const y=Date.now()-n.diffTime,k=Math.max(n.handleEndTime-y,0);n.restTime=k,k||(n.counting=!1,f(),o("on-end")),k>0&&i()}}))},c=(y,k)=>{const v=y;let g={d:0,h:0,m:0,s:0,ms:0};const u=1e3,p=60*u,b=60*p,S=24*b;return v>0&&(g.d=v>=u?Math.floor(v/S):0,g.h=Math.floor(v%S/b),g.m=Math.floor(v%b/p),g.s=Math.floor(v%p/u),g.ms=Math.floor(v%u)),k=="custom"?g:d({...g})},d=y=>{let{d:k,h:v,m:g,s:u,ms:p}=y,b=e.format;if(b.includes("DD")?b=b.replace("DD",Ge(k)):v+=Number(k)*24,b.includes("HH")?b=b.replace("HH",Ge(v)):g+=Number(v)*60,b.includes("mm")?b=b.replace("mm",Ge(g)):u+=Number(g)*60,b.includes("ss")?b=b.replace("ss",Ge(u)):p+=Number(u)*1e3,b.includes("S")){const S=Ge(p,3).toString();b.includes("SSS")?b=b.replace("SSS",S):b.includes("SS")?b=b.replace("SS",S.slice(0,2)):b.includes("S")&&(b=b.replace("SS",S.slice(0,1)))}return b},m=()=>{!n.counting&&!e.autoStart&&(n.counting=!0,n.handleEndTime=Date.now()+Number(n.restTime),i(),o("on-restart",n.restTime))},f=()=>{cancelAnimationFrame(n.timer),n.counting=!1,o("on-paused",n.restTime)},h=()=>{e.autoStart||(f(),n.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():n.restTime=e.time}),t.watch(()=>n.restTime,y=>{let k=c(y,"custom");o("update:modelValue",k),o("input",k)}),t.watch(()=>e.paused,(y,k)=>{k?(n.counting||(n.counting=!0,n.handleEndTime=Date.now()+Number(n.restTime),i()),o("on-restart",n.restTime)):n.counting&&f()}),t.watch(()=>e.endTime,y=>{s()}),t.watch(()=>e.startTime,y=>{s()}),{...t.toRefs(e),slots:l,classes:a,start:m,pause:f,renderTime:r,reset:h}}}),Kk=["innerHTML"];function Hk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.slots.default?t.renderSlot(e.$slots,"default",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-countdown__content",innerHTML:e.renderTime},null,8,Kk))],2)}const Nr=W(Uk,[["render",Hk]]),{create:jk}=U("badge"),Wk=jk({props:{value:{type:[String,Number]},max:{type:Number,default:1e4},dot:{type:Boolean,default:!1},bubble:{type:Boolean,default:!1},hidden:{type:Boolean,default:!1},top:{type:String,default:"0"},right:{type:String,default:"0"},zIndex:{type:Number,default:9},color:{type:String,default:""}},setup(e){const o=t.reactive({}),l=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),n=t.computed(()=>{if(e.dot)return;const a=e.value,r=e.max;return typeof a=="number"&&typeof r=="number"&&r<a?`${r}+`:a});return{state:o,stl:l,content:n}}}),Yk={class:"fox-badge"},Xk=["textContent"];function Qk(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",Yk,[t.withDirectives(t.createElementVNode("view",{class:"fox-badge__icon",style:t.normalizeStyle(e.stl)},[t.renderSlot(e.$slots,"icon")],4),[[t.vShow,!e.hidden&&!e.dot&&e.$slots.icon]]),t.renderSlot(e.$slots,"default"),t.withDirectives(t.createElementVNode("view",{textContent:t.toDisplayString(e.content),class:t.normalizeClass(["fox-badge__content fox-badge__content--sup",{"fox-badge__content--dot":e.dot,"fox-badge__content--bubble":!e.dot&&e.bubble}]),style:t.normalizeStyle(e.stl)},null,14,Xk),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const Br=W(Wk,[["render",Qk]]),{componentName:Gk,create:Zk}=U("tag"),Jk=Zk({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1}},components:{Close:G.Close},emits:["close","click"],setup(e,{emit:o}){const{type:l,color:n,plain:a,round:r,mark:s,textColor:i}=t.toRefs(e);return{classes:t.computed(()=>{const h=Gk;return{[h]:!0,[`${h}--${l.value}`]:l.value,[`${h}--plain`]:a.value,[`${h}--round`]:r.value,[`${h}--mark`]:s.value}}),getStyle:()=>{const h={};return i.value?h.color=i.value:n.value&&a.value&&(h.color=n.value),a.value?(h.background="#fff",h["border-color"]=n.value):n.value&&(h.background=n.value),h},onClose:h=>{h.stopPropagation(),o("close",h)},onClick:h=>{o("click",h)}}}});function _k(e,o,l,n,a,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:o[0]||(o[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",width:"12px",height:"12px",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const uo=W(Jk,[["render",_k]]),{create:eb}=U("popover"),tb=eb({components:{[ce.name]:ce},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:o}){const l=t.ref(),n=t.ref(),a=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const p="fox-popover-arrow",b=e.location,S=b.split("-")[0];return`${p} ${p}-${S} ${p}--${b}`}),c=t.computed(()=>{const p={},{bgColor:b,arrowOffset:S,location:B}=e,E=B.split("-")[0],I=B.split("-")[1],V=16;return b&&(p[`border${d(E)}Color`]=b),e.arrowOffset!=0&&(["bottom","top"].includes(E)&&(I||(p.left=`calc(50% + ${S}px)`),I=="start"&&(p.left=`${V+S}px`),I=="end"&&(p.right=`${V-S}px`)),["left","right"].includes(E)&&(I||(p.top=`calc(50% - ${S}px)`),I=="start"&&(p.top=`${V-S}px`),I=="end"&&(p.bottom=`${V+S}px`))),p}),d=b=>{var b=b.toLowerCase();return b=b.replace(/\b\w+\b/g,S=>S.substring(0,1).toUpperCase()+S.substring(1)),b},m=t.computed(()=>{let p={};if(!r.value||!s.value)return{};const b=s.value.width,S=s.value.height,{width:B,height:E,left:I,top:V}=r.value,{location:C,offset:w}=e,q=C.split("-")[0],L=C.split("-")[1];let M=0,A=0;if(mo(w)&&w.length==2&&(M+=+w[1],A+=+w[0]),B){if(["bottom","top"].includes(q)){const T=q=="bottom"?E+M:-(S+M);p.top=`${V+T}px`,L||(p.left=`${-(b-B)/2+I+A}px`),L=="start"&&(p.left=`${I+A}px`),L=="end"&&(p.left=`${r.value.right+A}px`)}if(["left","right"].includes(q)){const T=q=="left"?-(b+M):B+M;p.left=`${I+T}px`,L||(p.top=`${V-S/2+E/2-4+A}px`),L=="start"&&(p.top=`${V+A}px`),L=="end"&&(p.top=`${V+E+A}px`)}}return p}),f=t.computed(()=>{const p={};return e.bgColor&&(p.background=e.bgColor),p}),h=()=>{let p=ve(l.value);e.targetId&&(p=ve(document.querySelector(`#${e.targetId}`))),r.value=p,setTimeout(()=>{s.value={height:n.value.clientHeight,width:n.value.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,p=>{a.value=p,p?(window.addEventListener("touchstart",u,!0),h()):window.removeEventListener("touchstart",u,!0)});const y=p=>{o("update",p),o("update:visible",p)},k=()=>{y(!e.visible),o("open")},v=()=>{o("update:visible",!1),o("close")},g=(p,b)=>{!p.disabled&&o("choose",p,b),e.closeOnClickAction&&v()},u=p=>{const b=l.value,S=n.value;let B=b&&!b.contains(p.target);if(e.targetId){const E=document.querySelector(`#${e.targetId}`);B=E&&!E.contains(p.target)}B&&S&&!S.contains(p.target)&&e.closeOnClickOutside&&v()};return{showPopup:a,openPopover:k,popoverArrow:i,closePopover:v,chooseItem:g,popoverRef:l,popoverContentRef:n,getRootPosition:m,customStyle:f,popoverArrowStyle:c,renderIcon:Ol}}}),ob={ref:"popoverContentRef",class:"fox-popover-content-group"},nb=["onClick"],lb={class:"fox-popover-menu-item-name"};function ab(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.targetId?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-popover-wrapper",onClick:o[0]||(o[0]=(...i)=>e.openPopover&&e.openPopover(...i)),ref:"popoverRef"},[t.renderSlot(e.$slots,"reference")],512)),t.createElementVNode("view",{class:t.normalizeClass(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:t.normalizeStyle(e.getRootPosition)},[t.createVNode(s,{popClass:`fox-popover-content fox-popover-content--${e.location}`,style:t.normalizeStyle(e.customStyle),visible:e.showPopup,"onUpdate:visible":o[1]||(o[1]=i=>e.showPopup=i),position:"",transition:"fox-popover",overlay:e.overlay,duration:e.duration,overlayStyle:e.overlayStyle,overlayClass:e.overlayClass,closeOnClickOverlay:e.closeOnClickOverlay},{default:t.withCtx(()=>[t.createElementVNode("view",ob,[e.showArrow?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.popoverArrow),style:t.normalizeStyle(e.popoverArrowStyle)},null,6)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content"),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.list,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass([i.className,i.disabled&&"fox-popover-menu-disabled","fox-popover-menu-item"]),onClick:t.withModifiers(d=>e.chooseItem(i,c),["stop"])},[i.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(i.icon)),{key:0,class:"fox-popover-item-img"})):t.createCommentVNode("",!0),t.createElementVNode("view",lb,t.toDisplayString(i.name),1)],10,nb))),128))],512)]),_:3},8,["popClass","style","visible","overlay","duration","overlayStyle","overlayClass","closeOnClickOverlay"])],6)],64)}const fo=W(tb,[["render",ab]]),rb=e=>({components:e,props:{width:{type:String,default:"100px"},height:{type:String,default:"15px"},animated:{type:Boolean,default:!1},avatar:{type:Boolean,default:!1},avatarShape:{type:String,default:"round"},avatarSize:{type:String,default:"50px"},loading:{type:Boolean,default:!0},round:{type:Boolean,default:!1},row:{type:String,default:"1"},title:{type:Boolean,default:!0}},setup(o){const{avatarShape:l,round:n,avatarSize:a}=t.toRefs(o),r=t.computed(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${l.value}`]:l.value}});return{avatarShape:l,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:n.value}),getStyle:()=>a.value?{width:a.value,height:a.value}:{width:"50px",height:"50px"}}}}),{create:sb}=U("skeleton"),ib=sb(rb({[co.name]:co})),cb={key:0},ub={key:1,class:"fox-skeleton"},db={key:0,class:"fox-skeleton-animation"},fb={class:"fox-skeleton-content"};function mb(e,o,l,n,a,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",ub,[e.animated?(t.openBlock(),t.createElementBlock("view",db)):t.createCommentVNode("",!0),t.createElementVNode("view",fb,[e.avatar?(t.openBlock(),t.createBlock(s,{key:0,class:t.normalizeClass(e.avatarClass),shape:e.avatarShape,style:t.normalizeStyle(e.getStyle())},null,8,["class","shape","style"])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-skeleton-content__line",style:t.normalizeStyle({width:e.width})},[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockTitle")),style:t.normalizeStyle({height:e.height})},null,6)):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(Number(e.row),i=>(t.openBlock(),t.createElementBlock("view",{key:i,class:t.normalizeClass(e.getBlockClass("fox-skeleton-blockLine")),style:t.normalizeStyle({height:e.height})},null,6))),128))],4)])])):(t.openBlock(),t.createElementBlock("view",cb,[t.renderSlot(e.$slots,"default")]))}const Vr=W(ib,[["render",mb]]),{create:pb,componentName:hb}=U("collapse"),gb=pb({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:o}){const l=t.ref(null),n=t.ref(e.modelValue||(e.accordion?"":[])),a=t.computed(()=>({[hb]:!0}));t.watch(()=>e.modelValue,c=>{n.value=c});const r=(c,d,m=!0)=>{n.value=c,o("update:modelValue",c),o("change",c,d,m)},s=c=>{if(e.accordion)n.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(n.value))if(n.value.includes(c)){const d=n.value.filter(m=>m!==c);r(d,c,!1)}else{const d=n.value.concat([c]);r(d,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?n.value===c:Array.isArray(n.value)?n.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:l,classes:a}}});function yb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const Ar=W(gb,[["render",yb]]),{create:vb,componentName:kb}=U("collapse-item"),bb=vb({props:{collapseRef:{type:Object},title:{type:String,default:""},value:{type:String,default:""},label:{type:String,default:""},disabled:{type:Boolean,default:!1},name:{type:[Number,String],default:-1,required:!0},border:{type:Boolean,default:!0},icon:{type:Object,default:G.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const o=t.ref(null),l=t.ref(null),n=t.inject("collapseParent"),a=t.reactive(n),r=t.computed(()=>{const h=kb;return{[h]:!0,[h+"__border"]:e.border}}),s=t.computed(()=>a?a.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{a.updateVal(e.name)},d=()=>{s.value&&(i.value="auto")},m=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},f=()=>{const h=l.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?m():f()}),{classes:r,renderIcon:Ol,wrapperRef:o,contentRef:l,open:m,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:d}}}),Sb={class:"fox-collapse-item__title-main"},Cb={class:"fox-collapse-item__title-main-value"},wb=["innerHTML"],Nb={key:2,class:"fox-collapse-item__title-label"},Bb={key:0,class:"fox-collapse-item__title-sub"},Vb=["innerHTML"],Ab={key:0,class:"fox-collapse__item-extraWrapper"},Eb={class:"fox-collapse__item-extraWrapper__extraRender"},Tb={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function $b(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title",{"fox-collapse-item__title--disabled":e.disabled}]),onClick:o[0]||(o[0]=(...s)=>e.toggle&&e.toggle(...s))},[t.createElementVNode("view",Sb,[t.createElementVNode("view",Cb,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:0}):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.title,class:"fox-collapse-item__title-mtitle"},null,8,wb)),e.label?(t.openBlock(),t.createElementBlock("view",Nb,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",Bb,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,Vb)),t.createElementVNode("view",{class:t.normalizeClass(["fox-collapse-item__title-icon",{"fox-collapse-item__title-icon--expanded":e.expanded}]),style:t.normalizeStyle({transform:"rotate("+(e.expanded?e.rotate:0)+"deg)"})},[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon(e.icon))))],6)],2),e.$slots.extra?(t.openBlock(),t.createElementBlock("view",Ab,[t.createElementVNode("div",Eb,[t.renderSlot(e.$slots,"extra")])])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-collapse__item-wrapper",ref:"wrapperRef",style:t.normalizeStyle({willChange:"height",height:e.wrapperHeight}),onTransitionend:o[1]||(o[1]=(...s)=>e.onTransitionEnd&&e.onTransitionEnd(...s))},[t.createElementVNode("view",Tb,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const Er=W(bb,[["render",$b]]),Db=t.defineComponent({setup(e){return()=>t.h("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}}),{componentName:Ib,create:qb,scope:Mb}=U("table"),zb=qb({components:{RenderColumn:Db,DownArrow:G.DownArrow},props:{bordered:{type:Boolean,default:!0},columns:{type:Array,default:()=>[]},data:{type:Object,default:()=>({})},summary:{type:Function,default:null},striped:{type:Boolean,default:!1}},emits:["sorter"],setup(e,{emit:o,slots:l}){const{t:n}=ie.useFoxI18n(Mb),a=t.reactive({curData:e.data}),r=t.computed(()=>({[Ib]:!0})),s=y=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${y.align?y.align:""}`]:!0}),i=y=>y.stylehead?y.stylehead:"",c=y=>y.stylecolumn?y.stylecolumn:"",d=y=>e.columns.filter(k=>k.key===y)[0],m=y=>{const k=e.columns.filter(v=>v.key===y);return k[0].stylecolumn?k[0].stylecolumn:""},f=y=>{y.sorter&&(o("sorter",y),a.curData=typeof y.sorter=="function"?a.curData.sort(y.sorter):y.sorter==="default"?a.curData.sort():a.curData)},h=()=>e.columns.map(y=>[y.key,y.render]);return t.watch(()=>e.data,y=>{a.curData=y.slice()}),{...t.toRefs(a),classes:r,cellClasses:s,getColumnItem:d,getColumnItemStyle:m,handleSorterClick:f,sortDataItem:h,t:n,stylehead:i,stylecolumn:c}}}),xb={class:"fox-table__main__head"},Pb={class:"fox-table__main__head__tr"},Lb=["onClick"],Rb={class:"fox-table__main__body"},Ob={key:1},Fb={key:0,class:"fox-table__nodata"},Ub={key:0,class:"fox-table__nodata__text"},Kb={key:1,class:"fox-table__summary"},Hb=["innerHTML"];function jb(e,o,l,n,a,r){const s=t.resolveComponent("DownArrow"),i=t.resolveComponent("RenderColumn");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:t.normalizeClass(["fox-table__main",{"fox-table__main--striped":e.striped}])},[t.createElementVNode("view",xb,[t.createElementVNode("view",Pb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.columns,c=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__head__tr__th",e.cellClasses(c)]),key:c.key,onClick:d=>e.handleSorterClick(c),style:t.normalizeStyle(c.stylehead)},[t.createTextVNode(t.toDisplayString(c.title)+" ",1),t.renderSlot(e.$slots,"icon"),!e.$slots.icon&&c.sorter?(t.openBlock(),t.createBlock(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,Lb))),128))])]),t.createElementVNode("view",Rb,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.curData,c=>(t.openBlock(),t.createElementBlock("view",{class:"fox-table__main__body__tr",key:c},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.sortDataItem(),([d,m])=>(t.openBlock(),t.createElementBlock("span",{class:t.normalizeClass(["fox-table__main__body__tr__td",e.cellClasses(e.getColumnItem(d))]),key:d,style:t.normalizeStyle(e.getColumnItemStyle(d))},[typeof c[d]=="function"||typeof m=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[m,c[d]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",Ob,t.toDisplayString(c[d]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Fb,[t.createElementVNode("div",{class:t.normalizeClass(["fox-table__nodata",{"fox-table__nodata--border":e.bordered}])},[t.renderSlot(e.$slots,"nodata"),e.$slots.nodata?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Ub,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",Kb,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,Hb)])):t.createCommentVNode("",!0)],2)}const Tr=W(zb,[["render",jb]]),{componentName:Wb,create:Yb}=U("ellipsis"),Xb=Yb({props:{content:{type:String,default:""},direction:{type:String,default:"end"},rows:{type:[Number,String],default:1},expandText:{type:String,default:""},collapseText:{type:String,default:""},symbol:{type:String,default:"..."},lineHeight:{type:[Number,String],default:"20"}},emits:["click","change"],setup(e,{emit:o}){const l=t.ref(null);let n=null,a=0;const r=t.ref(),s=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>({[Wb]:!0}));t.watch(()=>e.content,(v,g)=>{v!=g&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!l.value)return;const v=window.getComputedStyle(l.value);n=document.createElement("div"),Array.prototype.slice.apply(v).forEach(p=>{n.style.setProperty(p,v.getPropertyValue(p))}),n.style.position="fixed",n.style.left="999999px",n.style.top="999999px",n.style.zIndex="-1000",n.style.height="auto",n.style.minHeight="auto",n.style.maxHeight="auto",n.style.textOverflow="clip",n.style.whiteSpace="normal",n.style.webkitLineClamp="unset",n.style.display="block";const u=h(v.lineHeight==="normal"?e.lineHeight:v.lineHeight);a=Math.floor(u*(Number(e.rows)+.5)+h(v.paddingTop)+h(v.paddingBottom)),n.innerText=e.content,document.body.appendChild(n),d()},d=()=>{if(n.offsetHeight<=a)s.exceeded=!1,document.body.removeChild(n);else{s.exceeded=!0;const v=e.content.length,g=Math.floor((0+v)/2),u=e.direction==="middle"?f([0,g],[g,v]):m(0,v);r.value=u,document.body.removeChild(n)}},m=(v,g)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(g-v<=1)return e.direction==="end"?{leading:e.content.slice(0,v)+e.symbol}:{tailing:e.symbol+e.content.slice(g,p)};const b=Math.round((v+g)/2);return e.direction==="end"?n.innerText=e.content.slice(0,b)+e.symbol+u:n.innerText=u+e.symbol+e.content.slice(b,p),n.offsetHeight<=a?e.direction==="end"?m(b,g):m(v,b):e.direction==="end"?m(v,b):m(b,g)},f=(v,g)=>{const u=s.expanded?e.collapseText:e.expandText,p=e.content.length;if(v[1]-v[0]<=1&&g[1]-g[0]<=1)return{leading:e.content.slice(0,v[0])+e.symbol,tailing:e.symbol+e.content.slice(g[1],p)};const b=Math.floor((v[0]+v[1])/2),S=Math.ceil((g[0]+g[1])/2);return n.innerText=e.content.slice(0,b)+e.symbol+u+e.symbol+e.content.slice(S,p),n.offsetHeight<=a?f([b,v[1]],[g[0],S]):f([v[0],b],[S,g[1]])},h=v=>{if(!v)return 0;const g=v.match(/^\d*(\.\d*)?/);return g?Number(g[0]):0},y=v=>{v==1?(s.expanded=!0,o("change","expand")):(s.expanded=!1,o("change","collapse"))},k=()=>{o("click")};return{...t.toRefs(s),root:l,ellipsis:r,classes:i,clickHandle:y,handleClick:k}}}),Qb={key:0},Gb={key:1},Zb={key:2};function Jb(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[2]||(o[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Qb,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",Gb,[t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.leading),1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:o[0]||(o[0]=t.withModifiers(s=>e.clickHandle(1),["stop"]))},t.toDisplayString(e.expandText),1)):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.tailing),1)])):t.createCommentVNode("",!0),e.exceeded&&e.expanded?(t.openBlock(),t.createElementBlock("view",Zb,[t.createTextVNode(t.toDisplayString(e.content)+" ",1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:o[1]||(o[1]=t.withModifiers(s=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const $r=W(Xb,[["render",Jb]]),{componentName:_b,create:eS}=U("animate"),tS=eS({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:o}){const{type:l,loop:n,action:a}=t.toRefs(e),r=t.reactive({clicked:!1});let s=t.computed(()=>({"fox-animate__container":!0,[`${_b}-${l.value}`]:a.value==="initial"||r.clicked?l.value:!1,loop:n.value}));const i=c=>{r.clicked=!0,n.value||setTimeout(()=>{r.clicked=!1},1e3),o("click",c)};return{...t.toRefs(r),classes:s,handleClick:i}}}),oS={class:"fox-animate"};function nS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",oS,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=(...s)=>e.handleClick&&e.handleClick(...s)),style:t.normalizeStyle({animationDuration:e.duration?`${e.duration}ms`:void 0})},[t.renderSlot(e.$slots,"default")],6)])}const Dr=W(tS,[["render",nS]]),{componentName:lS,create:aS}=U("watermark"),rS=aS({props:{name:{type:String,default:""},gapY:{type:Number,default:48},gapX:{type:Number,default:24},zIndex:{type:Number,default:2e3},width:{type:Number,default:120},height:{type:Number,default:64},rotate:{type:Number,default:-22},image:{type:String,default:""},imageWidth:{type:Number,default:120},imageHeight:{type:Number,default:64},content:{type:String,default:""},fontColor:{type:String,default:"rgba(0,0,0,.15)"},fontStyle:{type:String,default:"normal"},fontFamily:{type:String,default:"PingFang SC"},fontWeight:{type:String,default:"normal"},fontSize:{type:[String,Number],default:14},fullPage:{type:Boolean,default:""}},emits:["click"],setup(e,{emit:o}){const l=t.reactive({base64Url:""}),{zIndex:n,gapX:a,gapY:r,width:s,height:i,rotate:c,image:d,imageWidth:m,imageHeight:f,content:h,fontStyle:y,fontWeight:k,fontColor:v,fontSize:g,fontFamily:u}=e,p=()=>{const S=document.createElement("canvas"),B=window.devicePixelRatio,E=S.getContext("2d"),I=`${(a+s)*B}px`,V=`${(r+i)*B}px`,C=s*B,w=i*B;if(S.setAttribute("width",I),S.setAttribute("height",V),E){if(d){E.translate(C/2,w/2),E.rotate(Math.PI/180*Number(c));const q=new Image;q.crossOrigin="anonymous",q.referrerPolicy="no-referrer",q.src=d,q.onload=()=>{E.drawImage(q,-m*B/2,-f*B/2,m*B,f*B),E.restore(),l.base64Url=S.toDataURL()}}else if(h){E.textBaseline="middle",E.textAlign="center",E.translate(C/2,w/2),E.rotate(Math.PI/180*Number(c));const q=Number(g)*B;E.font=`${y} normal ${k} ${q}px/${w}px ${u}`,E.fillStyle=v,E.fillText(h,0,0),E.restore(),l.base64Url=S.toDataURL()}}else throw new Error("当前环境不支持Canvas")};p(),t.watch(()=>[n,a,r,s,i,c,d,m,f,h,y,k,v,g,u],()=>{p()});const b=t.computed(()=>{const S=lS;return{[S]:!0,[`${S}-full-page`]:e.fullPage}});return{...t.toRefs(l),classes:b}}});function sS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({zIndex:e.zIndex,backgroundSize:`${e.gapX+e.width}px`,backgroundImage:`url('${e.base64Url}')`})},null,6)}const Ir=W(rS,[["render",sS]]);function iS(e,o=2){return Object.is(parseFloat(e),NaN)?console.log(`传入的值:${e}不是一个数字`):(e=parseFloat(e),(Math.round((e+Number.EPSILON)*Math.pow(10,o))/Math.pow(10,o)).toFixed(o))}const{componentName:cS,create:uS}=U("trend-arrow"),dS=uS({components:{TriangleUp:G.TriangleUp,TriangleDown:G.TriangleDown},props:{rate:{type:Number,default:0},digits:{type:Number,default:2},showSign:{type:Boolean,default:!1},showZero:{type:Boolean,default:!1},arrowLeft:{type:Boolean,default:!1},syncTextColor:{type:Boolean,default:!0},textColor:{type:String,default:"#333"},riseColor:{type:String,default:"#fa2c19"},dropColor:{type:String,default:"#64b578"}},setup(e){const o=t.reactive({rateTrend:e.rate>0}),l=t.computed(()=>({[cS]:!0})),n=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;o.rateTrend=r>0;const d=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?o.rateTrend?"+":"-":""}${iS(Number(d),s)}%`}),a=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:d}=e;return{color:d===0?c:i?o.rateTrend?s:r:c}});return{...t.toRefs(o),classes:l,calcRate:n,calcStyle:a}}});function fS(e,o,l,n,a,r){const s=t.resolveComponent("TriangleUp"),i=t.resolveComponent("TriangleDown");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.arrowLeft?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-trend-arrow-icon-before fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)),Number(e.rate)!==0&&e.rateTrend?t.renderSlot(e.$slots,"up-icon",{key:1},()=>[t.createVNode(s,{color:e.riseColor},null,8,["color"])]):t.createCommentVNode("",!0),Number(e.rate)!==0&&!e.rateTrend?t.renderSlot(e.$slots,"down-icon",{key:2},()=>[t.createVNode(i,{color:e.dropColor},null,8,["color"])]):t.createCommentVNode("",!0),e.arrowLeft?(t.openBlock(),t.createElementBlock("span",{key:3,class:"fox-trend-arrow-icon-after fox-trend-arrow-rate",style:t.normalizeStyle(e.calcStyle)},t.toDisplayString(e.calcRate),5)):t.createCommentVNode("",!0)],2)}const qr=W(dS,[["render",fS]]),{create:mS}=U("tour"),pS=mS({components:{[fo.name]:fo,Close:G.Close},props:{modelValue:{type:Boolean,default:!1},type:{type:String,default:"step"},steps:{type:Array,default:()=>[]},location:{type:String,default:"bottom"},current:{type:Number,default:0},nextStepTxt:{type:String,default:"下一步"},prevStepTxt:{type:String,default:"上一步"},completeTxt:{type:String,default:"完成"},mask:{type:Boolean,default:!0},offset:{type:Array,default:[8,10]},bgColor:{type:String,default:""},theme:{type:String,default:"light"},maskWidth:{type:[Number,String],default:""},maskHeight:{type:[Number,String],default:""},closeOnClickOverlay:{type:Boolean,default:!0},showPrevStep:{type:Boolean,default:!0},showTitleBar:{type:Boolean,default:!0}},emits:["update:modelValue","change","close"],setup(e,{emit:o}){const l=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),n=t.ref({}),a=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:m,maskWidth:f,maskHeight:h}=e,{width:y,height:k,left:v,top:g}=n.value,u=[v+y/2,g+k/2],p=Number(f||y),b=Number(h||k);return{width:`${p+ +m[1]*2}px`,height:`${b+ +m[0]*2}px`,top:`${u[1]-b/2-+m[0]}px`,left:`${u[0]-p/2-+m[1]}px`}}),s=m=>{m=="next"?l.active=l.active+1:l.active=l.active-1,l.showPopup=!1,t.nextTick(()=>{l.showPopup=!0,i()}),o("change",l.active)},i=()=>{const m=document.querySelector(`#${e.steps[l.active].target}`),f=ve(m);n.value=f},c=()=>{l.showTour=!1,l.showPopup=!1,o("close",l.active),o("update:modelValue",!1)},d=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{l.active=0,i()}),t.watch(()=>e.modelValue,m=>{m&&i(),l.active=0,l.showTour=m,l.showPopup=m}),{...t.toRefs(l),classes:a,maskStyle:r,changeStep:s,close:c,handleClickMask:d}}}),hS={key:0,class:"fox-tour-content"},gS={key:0,class:"fox-tour-content-top"},yS={class:"fox-tour-content-inner"},vS={class:"fox-tour-content-bottom"},kS={class:"fox-tour-content-bottom-init"},bS={class:"fox-tour-content-bottom-operate"},SS={key:1,class:"fox-tour-content fox-tour-content-tile"},CS={class:"fox-tour-content-inner"};function wS(e,o,l,n,a,r){const s=t.resolveComponent("Close"),i=t.resolveComponent("fox-popover");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.withDirectives(t.createElementVNode("div",{class:"fox-tour-masked",onClick:o[0]||(o[0]=(...c)=>e.handleClickMask&&e.handleClickMask(...c))},null,512),[[t.vShow,e.showTour]]),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.steps,(c,d)=>(t.openBlock(),t.createElementBlock("div",{key:d,style:{height:"0"}},[d==e.active?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.showTour?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["fox-tour-mask",[e.mask?"":"fox-tour-mask-none"]]),style:t.normalizeStyle(e.maskStyle),id:"fox-tour-popid"},null,6)):t.createCommentVNode("",!0),t.createVNode(i,{visible:e.showPopup,"onUpdate:visible":o[5]||(o[5]=m=>e.showPopup=m),location:c.location||e.location,targetId:"fox-tour-popid",bgColor:e.bgColor,theme:e.theme,"close-on-click-outside":!1,offset:c.popoverOffset||[0,12],arrowOffset:c.arrowOffset||0},{content:t.withCtx(()=>[t.renderSlot(e.$slots,"default",{},()=>[e.type=="step"?(t.openBlock(),t.createElementBlock("div",hS,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",gS,[t.createElementVNode("div",{onClick:o[1]||(o[1]=(...m)=>e.close&&e.close(...m))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",yS,t.toDisplayString(c.content),1),t.createElementVNode("div",vS,[t.createElementVNode("div",kS,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",bS,[t.renderSlot(e.$slots,"prev-step",{},()=>[e.active!=0&&e.showPrevStep?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn",onClick:o[2]||(o[2]=m=>e.changeStep("prev"))},t.toDisplayString(e.prevStepTxt),1)):t.createCommentVNode("",!0)]),e.steps.length-1==e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:o[3]||(o[3]=(...m)=>e.close&&e.close(...m))},t.toDisplayString(e.completeTxt),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"next-step",{},()=>[e.steps.length-1!=e.active?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-tour-content-bottom-operate-btn active",onClick:o[4]||(o[4]=m=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",SS,[t.createElementVNode("div",CS,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const Mr=W(pS,[["render",wS]]),{componentName:Tw,create:NS,scope:BS}=U("address"),VS=NS({components:{Location:G.Location,Location2:G.Location2,Check:G.Check,Close:G.Close,Left:G.Left,[ce.name]:ce,[no.name]:no},inheritAttrs:!1,props:{...at,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(BS),n=t.ref(null),a=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),d=t.ref(["province","city","country","town"]),m=t.ref(null),f=t.ref([0,0,0,0]),h=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),y=T=>{if(!Array.isArray(T))throw new TypeError("params muse be array.");if(!T.length)return[];T.forEach($=>{if(!$.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const z=[];return T=T.sort(($,x)=>$.title.localeCompare(x.title)),T.forEach($=>{const x=z.findIndex(H=>H.title===$.title);x<=-1?z.push({title:$.title,list:[].concat($)}):z[x].list.push($)}),z};let k=t.ref([]),v=t.reactive({});const g=t.ref("self"),u=t.ref(20),p=()=>{const T=e.modelValue,z=T.length;if(z>0){if(i.value=z-1,h.value.length==0){i.value=0;return}for(let $=0;$<z;$++){let x=[];switch($){case 0:x=e.province;break;case 1:x=e.city;break;case 2:x=e.country;break;default:x=e.town}k.value[$]=x.filter(H=>H.id==T[$])[0]}S()}},b=(T,z)=>T&&T.name||i.value<z&&T?T.name:e.columnsPlaceholder[z]||l("select"),S=()=>{I(),t.nextTick(()=>{const T=a.value&&a.value.getElementsByClassName("active")[0];if(T){const z=T.offsetLeft;u.value=z||20}})},B=T=>{const z=i.value;c.value=i.value;const $={custom:d.value[z]};k.value[z]=T;for(let x=z+2;x<4;x++)k.value.splice(x,1);z<3?(i.value=z+1,S(),$.next=d.value[i.value],$.value=T,o("change",$)):(w(),o("update:modelValue"))},E=(T,z)=>{c.value=i.value,b(T,z)&&(i.value=z,S())},I=()=>{const T=m.value,z=c.value,$=f.value[i.value];T?.scrollTop&&(f.value[z]=T?.scrollTop),t.nextTick(()=>{T?.scrollTo({top:$,behavior:"auto"})})},V=T=>{const z=e.existAddress;let $={};z.forEach(x=>{x&&x.selectedAddress&&($=x),x.selectedAddress=!1}),T.selectedAddress=!0,v=T,o("selected",$,T,z),w()},C=()=>{k.value=[],i.value=0,S()},w=(T="self")=>{g.value=T=="cross"?"cross":"self",r.value=!1},q=()=>{g.value="mask"},L=()=>{const T={addressIdStr:"",addressStr:"",province:k.value[0],city:k.value[1],country:k.value[2],town:k.value[3]},z={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach($=>{const x=k.value[$];T.addressIdStr+=`${$?"_":""}${x&&x.id||0}`,T.addressStr+=x&&x.name||""}),z.data=T):z.data=v,C(),g.value=="self"?o("close",z):o("close-mask",{closeWay:g}),o("update:visible",!1)},M=()=>{const T=s.value;s.value=T=="exist"?"custom":"exist",C(),o("switch-module",{type:s.value})},A=(T,z)=>{B(z)};return t.watch(()=>e.visible,T=>{r.value=T}),t.watch(()=>r.value,T=>{T&&p()}),{showPopup:r,privateType:s,tabIndex:i,tabName:d,selectedRegion:k,switchModule:M,closeWay:g,close:L,getTabName:b,nextAreaList:B,regionLine:n,tabRegion:a,lineDistance:u,changeRegionTab:E,selectedExist:V,clickOverlay:q,handClose:w,handleElevatorItem:A,initCustomSelected:p,...t.toRefs(e),t:l,regionList:h,transformData:y,scrollDom:m}}}),AS={class:"fox-address"},ES={class:"fox-address__header"},TS={class:"fox-address__header__title"},$S={key:0,class:"fox-address__custom"},DS={class:"fox-address__region",ref:"tabRegion"},IS=["onClick"],qS={key:0,class:"active fox-address__region-item"},MS={key:0,class:"fox-address__detail"},zS={class:"fox-address__detail-list",ref:"scrollDom"},xS=["onClick"],PS={key:1,class:"fox-address__elevator-group"},LS={key:1,class:"fox-address__exist"},RS={class:"fox-address__exist-group"},OS={class:"fox-address__exist-group-list"},FS=["onClick"],US={class:"fox-address__exist-item-info"},KS={key:0,class:"fox-address__exist-item-info-name"},HS={key:1,class:"fox-address__exist-item-info-phone"},jS={class:"fox-address__exist-item-info-bottom"},WS={class:"fox-address__exist-choose-btn"};function YS(e,o,l,n,a,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),d=t.resolveComponent("fox-elevator"),m=t.resolveComponent("Location2"),f=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(f,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:o[3]||(o[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":o[4]||(o[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",AS,[t.createElementVNode("view",ES,[t.createElementVNode("view",{class:"fox-address__header-back",onClick:o[0]||(o[0]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.renderSlot(e.$slots,"back-icon",{},()=>[t.withDirectives(t.createVNode(s,{size:"14px"},null,512),[[t.vShow,e.type=="exist"&&e.privateType=="custom"]])])]),t.createElementVNode("view",TS,t.toDisplayString(e.privateType=="custom"?e.customAddressTitle||e.t("selectRegion"):e.existAddressTitle||e.t("deliveryTo")),1),t.createElementVNode("view",{class:"fox-address__header-close",onClick:o[1]||(o[1]=h=>e.handClose("cross"))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(i,{color:"#cccccc",size:"14px"})])])]),["custom","custom2"].includes(e.privateType)?(t.openBlock(),t.createElementBlock("view",$S,[t.createElementVNode("view",DS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,y)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",y==e.tabIndex?"active":""]),key:y,onClick:k=>e.changeRegionTab(h,y)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,y)),1)],10,IS))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",qS,[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(null,e.selectedRegion.length)),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-address__region-line",ref:"regionLine",style:t.normalizeStyle({left:e.lineDistance+"px"})},null,4)],512),e.privateType=="custom"?(t.openBlock(),t.createElementBlock("view",MS,[t.createElementVNode("ul",zS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,y)=>(t.openBlock(),t.createElementBlock("li",{key:y,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick:k=>e.nextAreaList(h)},[t.createElementVNode("div",null,[e.selectedRegion[e.tabIndex]?.id==h.id?t.renderSlot(e.$slots,"icon",{key:0},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createTextVNode(t.toDisplayString(h.name),1)])],10,xS))),128))],512)])):(t.openBlock(),t.createElementBlock("view",PS,[t.createVNode(d,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",LS,[t.createElementVNode("div",RS,[t.createElementVNode("ul",OS,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,y)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:y,onClick:k=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(m,{class:"fox-address-select-icon",size:"13px"})]),h.selectedAddress?t.renderSlot(e.$slots,"icon",{key:1},()=>[t.createVNode(c,{class:"fox-address-select-icon",size:"13px"})]):t.createCommentVNode("",!0),t.createElementVNode("div",US,[h.name?(t.openBlock(),t.createElementBlock("div",KS,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",HS,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",jS,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,FS))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:o[2]||(o[2]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.createElementVNode("div",WS,t.toDisplayString(e.customAndExistTitle||e.t("chooseAnotherAddress")),1)])):t.createCommentVNode("",!0)])),t.renderSlot(e.$slots,"bottom")])]),_:3},8,["lock-scroll","onClose","onClickOverlay","visible","teleportDisable","teleport"])}const zr=W(VS,[["render",YS]]),{componentName:XS,create:QS}=U("barrage"),GS=QS({name:"barrage",props:{danmu:{type:Array,default:()=>[]},frequency:{type:Number,default:500},speeds:{type:Number,default:5e3},rows:{type:Number,default:3},top:{type:Number,default:10},loop:{type:Boolean,default:!0}},setup(e){const o=new Date().getTime(),l=!!t.useSlots().default,n=t.computed(()=>({[XS]:!0}));let a=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),d=t.ref(e.top),m=t.ref(0),f=e.speeds,h=t.ref(0);t.onMounted(()=>{y(),l&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(v(),m.value=0,k("hidden")):document.visibilityState==="visible"&&y()})}),t.onUnmounted(()=>{i.value=[],v()});const y=()=>{h.value=a.value.offsetWidth,l&&k("init"),setTimeout(()=>{a.value?.style.setProperty("--move-distance",`-${h.value}px`),u()},300)},k=b=>{let B=document.getElementsByClassName("slotBody"+o)?.[0]?.children||[];const E=[];B&&Array.from(B).forEach(I=>{b=="init"?(I.style.opacity="0",E.push(I)):(I.classList="",I.style={})}),b=="init"&&(i.value=E)},v=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,b=>{e.danmu.length>0&&(i.value=[...b])});const g=b=>{const S=m.value%i.value.length;!e.loop&&m.value===i.value.length?i.value.splice(i.value.length,0,b):i.value.splice(S,0,b)},u=()=>{v(),s=setTimeout(()=>{p()},e.frequency)},p=()=>{const b=e.loop?m.value%i.value.length:m.value;let S=document.createElement("view");l&&typeof i.value[b]=="object"?(S=i.value[b],S?.classList?.add("fox-barrage__item")):(S.innerHTML=i.value[b],S.classList.add("fox-barrage__item"),r.value.appendChild(S)),t.nextTick(()=>{const B=S.offsetHeight;if(S?.classList?.add("move"),S.style.animationDuration=`${f}ms`,S.style.top=b%c.value*(B+d.value)+20+"px",S.style.opacity="1",!l){const E=S.offsetWidth;S.style.width=E+20+"px"}S.addEventListener("animationend",()=>{l?S.classList.remove("move"):r.value.removeChild(S)}),!(!e.loop&&m.value>=i.value.length-1)&&(m.value++,m.value>=i.value.length&&(m.value=0),S.removeEventListener("animationend",()=>{}),u())})};return{classTime:o,classes:n,danmuList:i,dmBody:a,dmContainer:r,add:g}}});function ZS(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",{ref:"dmBody",class:t.normalizeClass(e.classes)},[t.createElementVNode("div",{ref:"dmContainer",class:t.normalizeClass(["dmContainer",e.$slots.default&&"slotContainer"])},[e.$slots.default?(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["slotBody","slotBody"+e.classTime])},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)],2)],2)}const xr=W(GS,[["render",ZS]]),{componentName:JS,create:_S,scope:e0}=U("signature"),t0=_S({props:{customClass:{type:String,default:""},lineWidth:{type:Number,default:2},strokeStyle:{type:String,default:()=>document.getElementsByTagName("body")[0].className.indexOf("fox-theme-dark")==-1?"#000":"#fff"},type:{type:String,default:"png"},unSupportTpl:{type:String,default:""}},components:{[Pe.name]:Pe},emits:["start","end","signing","confirm","clear"],setup(e,{emit:o}){const{toLocaleRefs:l}=ie.useFoxI18n(e0),n=l(e,["unSupportTpl","reSign","confirmText"]),a=t.ref(null),r=t.ref(null),s=t.computed(()=>({[JS]:!0,[`${e.customClass}`]:e.customClass})),i=t.reactive({canvasHeight:0,canvasWidth:0,ctx:null,isSupportTouch:"ontouchstart"in window,events:"ontouchstart"in window?["touchstart","touchmove","touchend","touchleave"]:["mousedown","mousemove","mouseup","mouseleave"]}),c=()=>{let p=document.createElement("canvas");return!!(p.getContext&&p.getContext("2d"))},d=()=>{a.value.addEventListener(i.events[0],m,!1)},m=p=>{p.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,o("start"),a.value.addEventListener(i.events[1],f,!1),a.value.addEventListener(i.events[2],h,!1),a.value.addEventListener(i.events[3],y,!1)},f=p=>{p.preventDefault();let b=i.isSupportTouch?p.touches[0]:p;o("signing",b);let S=a.value.getBoundingClientRect(),B=b.clientX-S.left,E=b.clientY-S.top;i.ctx.lineTo(B,E),i.ctx.stroke()},h=p=>{p.preventDefault(),o("end"),a.value.removeEventListener(i.events[1],f,!1),a.value.removeEventListener(i.events[2],h,!1)},y=p=>{p.preventDefault(),a.value.removeEventListener(i.events[1],f,!1),a.value.removeEventListener(i.events[2],h,!1)},k=()=>{a.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),o("clear")},v=()=>{u(a.value)},g=p=>{if(!p)return!0;var b=document.createElement("canvas");return b.width=p.width,b.height=p.height,p?.toDataURL()==b.toDataURL()},u=p=>{let b;switch(e.type){case"png":b=p.toDataURL("image/png");break;case"jpg":b=p.toDataURL("image/jpeg",.8);break}const S=g(p)?"请绘制签名":p,B=g(p)?"":b;o("confirm",S,B)};return t.onMounted(()=>{c()&&(i.ctx=a.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,d())}),{...n,...t.toRefs(i),canvas:a,wrap:r,isCanvasSupported:c,confirm:v,clear:k,classes:s}}}),o0={class:"fox-signature-inner",ref:"wrap"},n0=["height","width"],l0={key:0,class:"fox-signature-unsopport"};function a0(e,o,l,n,a,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",o0,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,n0),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",l0,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(s,{class:"fox-signature-btn",type:"default",onClick:o[0]||(o[0]=i=>e.clear())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.reSign),1)]),_:1}),t.createVNode(s,{class:"fox-signature-btn",type:"primary",onClick:o[1]||(o[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const Pr=W(t0,[["render",a0]]),{componentName:r0,create:s0,scope:i0}=U("time-select"),c0=s0({components:{[ce.name]:ce},props:{visible:{type:Boolean,defalut:!1},height:{type:[String],default:"20%"},title:{type:String,default:""},currentKey:{type:[Number,String],default:0},currentTime:{type:Array,default:()=>[]},lockScroll:{type:[Boolean],default:!0},teleportDisable:{type:Boolean,default:!1}},emits:["update:visible","select"],setup:(e,o)=>{const{t:l}=ie.useFoxI18n(i0),n=t.computed(()=>({[r0]:!0})),a=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),s=t.computed(()=>e.currentTime),i=()=>{o.emit("update:visible",!1),o.emit("select",s.value)};return t.provide("currentKey",r),t.provide("currentTime",s),{classes:n,popStyle:a,props:e,close:i,t:l}}}),u0={class:"fox-time-select__title"},d0={class:"fox-time-select__title__fixed"},f0={key:0},m0={class:"fox-time-select__content"},p0={class:"fox-time-select__content__pannel"},h0={class:"fox-time-select__content__detail"};function g0(e,o,l,n,a,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{position:"bottom",closeable:"",round:"",teleportDisable:e.teleportDisable,visible:e.visible,style:t.normalizeStyle(e.popStyle),"lock-scroll":e.lockScroll,onClickOverlay:e.close,onClickCloseIcon:e.close},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",u0,[t.createElementVNode("view",d0,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",f0,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",m0,[t.createElementVNode("view",p0,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",h0,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Lr=W(c0,[["render",g0]]),{componentName:y0,create:v0}=U("time-pannel"),k0=v0({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,o)=>{const l=t.inject("currentKey"),n=t.reactive({currentKey:l}),a=t.computed(()=>({[y0]:!0,"fox-time-pannel--curr":n.currentKey==e.pannelKey})),r=s=>{o.emit("change",s)};return{...t.toRefs(n),classes:a,handlePannel:r}}});function b0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:o[0]||(o[0]=s=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const Rr=W(k0,[["render",b0]]),{componentName:S0,create:C0}=U("time-detail"),w0=C0({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,o)=>{const l=t.inject("currentKey"),n=t.inject("currentTime"),a=t.reactive({currentKey:l,currentTime:n}),r=t.computed(()=>({[S0]:!0})),s=d=>{let m=a.currentTime.find(f=>f.key==a.currentKey);if(m)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":m.list.filter(f=>f===d).length>0}},i=t.computed(()=>e.times.find(d=>d.key==a.currentKey).list),c=d=>{o.emit("select",d)};return{classes:r,...t.toRefs(a),getClass:s,renderData:i,handleTime:c}}}),N0={class:"fox-time-detail__detail fox-time-detail__detail--moring"},B0={class:"fox-time-detail__detail__list"},V0=["onClick"];function A0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",N0,[t.createElementVNode("view",B0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.renderData,s=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.getClass(s)),key:s,onClick:i=>e.handleTime(s)},t.toDisplayString(s),11,V0))),128))])])],2)}const Or=W(w0,[["render",A0]]),{componentName:$w,create:E0,scope:T0}=U("sku-header"),$0=E0({props:{goods:{type:Object,default:{}}},emits:[],components:{[tt.name]:tt},setup(e,{emit:o,slots:l}){const{t:n}=ie.useFoxI18n(T0);return{getSlots:r=>l[r],t:n}}}),D0={class:"fox-sku-header"},I0=["src"],q0={class:"fox-sku-header-right"},M0={key:3,class:"fox-sku-header-right-extra"};function z0(e,o,l,n,a,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",D0,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,I0),t.createElementVNode("view",q0,[e.getSlots("sku-header-price")?t.renderSlot(e.$slots,"sku-header-price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.goods.price,needSymbol:!0,thousands:!1},null,8,["price"])),e.getSlots("sku-header-extra")?t.renderSlot(e.$slots,"sku-header-extra",{key:2}):t.createCommentVNode("",!0),e.goods.skuId&&!e.getSlots("sku-header-extra")?(t.openBlock(),t.createElementBlock("view",M0,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const x0=W($0,[["render",z0]]),{componentName:Dw,create:P0}=U("sku-select"),L0=P0({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:o}){const l=t.ref([]);return t.watch(()=>e.sku,a=>{l.value=[].slice.call(a)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(l.value=[].slice.call(e.sku))}),{skuInfo:l,changeSaleChild:(a,r,s,i)=>{a.checkFlag||a.disable||o("selectSku",{sku:a,skuIndex:r,parentSku:s,parentIndex:i})}}}}),R0={class:"fox-sku-select"},O0={class:"fox-sku-select-item-title"},F0={class:"fox-sku-select-item-skus"},U0=["onClick"];function K0(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("view",R0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.skuInfo,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-sku-select-item",key:s.id},[t.createElementVNode("view",O0,t.toDisplayString(s.name),1),t.createElementVNode("view",F0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,(c,d)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-sku-select-item-skus-sku",[{active:!c.disable&&c.active},{disable:c.disable}]]),onClick:m=>e.changeSaleChild(c,d,s,i),key:c.name},t.toDisplayString(c.name),11,U0))),128))])]))),128))])}const H0=W(L0,[["render",K0]]),{componentName:Iw,create:j0}=U("sku-stepper"),W0=j0({props:{stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},stepperExtraText:{type:[Function,Boolean],default:!1},stepperTitle:{type:String,default:"购买数量"}},emits:["click","changeSku","changeStepper","clickBtnOptions","overLimit","reduce","add"],components:{[pt.name]:pt},setup(e,{emit:o}){const l=t.ref(e.stepperMin);return t.onMounted(()=>{l.value=e.stepperMin}),{goodsCount:l,add:c=>{o("add",c)},reduce:c=>{o("reduce",c)},overlimit:(c,d)=>{o("overLimit",{action:d,value:parseInt(l.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&et(c)=="function"?c():""},changeStepper:c=>{l.value=c,o("changeStepper",c)}}}}),Y0={class:"fox-sku-stepper"},X0={class:"fox-sku-stepper-title"},Q0=["innerHTML"],G0={class:"fox-sku-stepper-count"};function Z0(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",Y0,[t.createElementVNode("view",X0,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,Q0),t.createElementVNode("view",G0,[t.createVNode(s,{modelValue:e.goodsCount,"onUpdate:modelValue":o[0]||(o[0]=i=>e.goodsCount=i),min:e.stepperMin,max:e.stepperMax,onAdd:e.add,onReduce:e.reduce,onOverlimit:e.overlimit,onChange:e.changeStepper},null,8,["modelValue","min","max","onAdd","onReduce","onOverlimit","onChange"])])])}const J0=W(W0,[["render",Z0]]),{componentName:qw,create:_0}=U("sku-operate"),eC=_0({props:{btnOptions:{type:Array,default:()=>["confirm"]},btnExtraText:{type:String,default:""},buyText:{type:String,default:"立即购买"},addCartText:{type:String,default:"加入购物车"},confirmText:{type:String,default:"确定"}},emits:["click","changeSku","changeBuyCount","clickBtnOperate"],setup(e,{emit:o,slots:l}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{o("clickBtnOperate",s)},getSlots:s=>l[s]}}}),tC={key:0,class:"fox-sku-operate"},oC={key:0,class:"fox-sku-operate-desc"},nC={key:1,class:"fox-sku-operate-btn"},lC=["onClick"];function aC(e,o,l,n,a,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",tC,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",oC,t.toDisplayString(e.btnExtraText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"operate-btn"),e.getSlots("operate-btn")?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",nC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.btnOptions,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass([`fox-sku-operate-btn-${s}`,"fox-sku-operate-btn-item"]),key:i,onClick:c=>e.clickBtnOperate(s)},t.toDisplayString(e.getBtnDesc(s)),11,lC))),128))]))])):t.createCommentVNode("",!0)}const rC=W(eC,[["render",aC]]),{componentName:Mw,create:sC,scope:iC}=U("sku"),cC=sC({props:{...at,sku:{type:Array,default:[]},goods:{type:Object,default:{}},stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},btnOptions:{type:Array,default:()=>["confirm"]},stepperTitle:{type:String,default:""},stepperExtraText:{type:[Function,Boolean],default:!1},btnExtraText:{type:String,default:""},buyText:{type:String,default:""},addCartText:{type:String,default:""},confirmText:{type:String,default:""}},emits:["update:visible","select-sku","change-stepper","click-btn-operate","click-close-icon","click-overlay","close","reduce","add","over-limit"],components:{SkuHeader:x0,SkuSelect:H0,SkuStepper:J0,SkuOperate:rC,[ce.name]:ce},setup(e,{emit:o,slots:l}){const{toLocaleRefs:n}=ie.useFoxI18n(iC),a=n(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,g=>{r.value=g}),t.watch(()=>r.value,g=>{g==!1&&v()}),t.onMounted(()=>{});const i=g=>l[g],c=g=>{o("select-sku",g)},d=g=>{s.value=g,o("change-stepper",g)},m=g=>{o("add",g)},f=g=>{o("reduce",g)},h=g=>{o("over-limit",g)},y=g=>{o("click-btn-operate",{type:g,value:s.value})},k=g=>{g=="icon"&&o("click-close-icon"),g=="overlay"&&o("click-overlay"),g=="close"&&o("close"),r.value=!1},v=()=>{o("update:visible",!1)};return{showPopup:r,closePopup:k,selectSku:c,changeStepper:d,stepperOverLimit:h,clickBtnOperate:y,add:m,reduce:f,getSlots:i,...a}}}),uC={class:"fox-sku"},dC={class:"fox-sku-content"};function fC(e,o,l,n,a,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),d=t.resolveComponent("sku-operate"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":o[0]||(o[0]=f=>e.showPopup=f),onClickCloseIcon:o[1]||(o[1]=f=>e.closePopup("icon")),onClickOverlay:o[2]||(o[2]=f=>e.closePopup("overlay")),onClose:o[3]||(o[3]=f=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",uC,[t.renderSlot(e.$slots,"sku-header"),e.getSlots("sku-header")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,goods:e.goods},t.createSlots({_:2},[e.getSlots("sku-header-price")?{name:"sku-header-price",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-price")]),key:"0"}:void 0,e.getSlots("sku-header-extra")?{name:"sku-header-extra",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-header-extra")]),key:"1"}:void 0]),1032,["goods"])),t.createElementVNode("view",dC,[t.renderSlot(e.$slots,"sku-select-top"),t.renderSlot(e.$slots,"sku-select"),e.getSlots("sku-select")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,sku:e.sku,onSelectSku:e.selectSku},null,8,["sku","onSelectSku"])),t.renderSlot(e.$slots,"sku-stepper"),e.getSlots("sku-stepper")?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(c,{key:1,goods:e.goods,stepperTitle:e.stepperTitle,stepperMax:e.stepperMax,stepperMin:e.stepperMin,stepperExtraText:e.stepperExtraText,onAdd:e.add,onReduce:e.reduce,onChangeStepper:e.changeStepper,onOverLimit:e.stepperOverLimit},null,8,["goods","stepperTitle","stepperMax","stepperMin","stepperExtraText","onAdd","onReduce","onChangeStepper","onOverLimit"])),t.renderSlot(e.$slots,"sku-stepper-bottom")]),t.createVNode(d,{btnOptions:e.btnOptions,btnExtraText:e.btnExtraText,buyText:e.buyText,addCartText:e.addCartText,confirmText:e.confirmText,onClickBtnOperate:e.clickBtnOperate},t.createSlots({_:2},[e.getSlots("sku-operate")?{name:"operate-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"sku-operate")]),key:"0"}:void 0]),1032,["btnOptions","btnExtraText","buyText","addCartText","confirmText","onClickBtnOperate"])])]),_:3},8,["visible","teleportDisable","teleport"])}const Fr=W(cC,[["render",fC]]),{create:mC}=U("card"),pC=mC({components:{[tt.name]:tt,[uo.name]:uo},props:{imgUrl:{type:String},title:{type:String},price:{type:String},vipPrice:{type:String},shopDesc:{type:String},delivery:{type:String},shopName:{type:String},isNeedPrice:{type:Boolean,default:!0}},setup(e,{emit:o,slots:l}){return{isHaveSlot:a=>l[a]}}}),hC={class:"fox-card"},gC={class:"fox-card__left"},yC=["src"],vC={class:"fox-card__right"},kC={class:"fox-card__right__title"},bC={key:0,class:"fox-card__right__price"},SC={class:"fox-card__right__other"},CC={class:"fox-card__right__shop"},wC={class:"fox-card__right__shop__name"};function NC(e,o,l,n,a,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",hC,[t.createElementVNode("div",gC,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,yC)]),t.createElementVNode("div",vC,[t.createElementVNode("div",kC,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",bC,[e.isHaveSlot("price")?t.renderSlot(e.$slots,"price",{key:0}):(t.openBlock(),t.createBlock(s,{key:1,price:e.price},null,8,["price"])),e.isHaveSlot("origin")?t.renderSlot(e.$slots,"origin",{key:2}):(t.openBlock(),t.createBlock(s,{key:3,class:"fox-card__right__price__origin",price:e.vipPrice},null,8,["price"]))])):t.createCommentVNode("",!0),t.createElementVNode("div",SC,[e.isHaveSlot("shop-tag")?t.renderSlot(e.$slots,"shop-tag",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(i,{type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.shopDesc),1)]),_:1}),t.createVNode(i,{plain:""},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.delivery),1)]),_:1})],64))]),t.createElementVNode("div",CC,[t.createElementVNode("div",wC,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Ur=W(pC,[["render",NC]]),{create:BC,scope:VC}=U("ecard"),AC=BC({components:{[pt.name]:pt},props:{chooseText:{type:String,default:""},otherValueText:{type:String,default:""},dataList:{type:Array,default:()=>[]},cardAmountMin:{type:Number,default:1},cardAmountMax:{type:Number,default:9999},cardBuyMin:{type:Number,default:1},cardBuyMax:{type:Number,default:9999},modelValue:{type:[Number,String],default:0},placeholder:{type:String,default:""},suffix:{type:String,default:"¥"}},emits:["inputChange","changeStep","inputClick","change","update:modelValue"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(VC),n=t.ref(null),a=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,y)=>{n.value=y,s.value=e.cardAmountMin,a.value=h.price,o("change",h),o("update:modelValue",h.price)},d=h=>{let k=h.target.value.replace(/[^\d]/g,"");r.value=k,a.value=k,Number(k)>e.cardAmountMax&&(r.value=e.cardAmountMax,a.value=e.cardAmountMax),Number(k)<e.cardAmountMin&&(r.value=e.cardAmountMin,a.value=e.cardAmountMin),o("inputChange",Number(r.value)),o("update:modelValue",Number(r.value))},m=()=>{n.value="input",s.value=e.cardAmountMin,a.value=r.value,o("update:modelValue",r.value),o("inputClick")},f=h=>{s.value=h,o("changeStep",s.value,a.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:f,change:d,inputClick:m,stepValue:s,currentIndex:n,inputValue:r,money:i,t:l}}}),EC={class:"fox-ecard"},TC={class:"fox-ecard__title"},$C={class:"fox-ecard__list"},DC=["onClick"],IC={class:"fox-ecard__list__input--con"},qC=["placeholder"],MC={class:"fox-ecard__list__step"};function zC(e,o,l,n,a,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",EC,[t.createElementVNode("view",TC,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",$C,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataList,(i,c)=>(t.openBlock(),t.createElementBlock("view",{key:c,class:t.normalizeClass(["fox-ecard__list__item",e.currentIndex==c?"active":""]),onClick:d=>e.handleClick(i,c)},t.toDisplayString(i.price),11,DC))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:o[2]||(o[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",IC,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":o[0]||(o[0]=i=>e.inputValue=i),onInput:o[1]||(o[1]=(...i)=>e.change&&e.change(...i)),placeholder:e.placeholder||e.t("placeholder")},null,40,qC),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",MC,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(s,{modelValue:e.stepValue,"onUpdate:modelValue":o[3]||(o[3]=i=>e.stepValue=i),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const Kr=W(AC,[["render",zC]]),{create:xC,scope:PC}=U("address-list-item"),LC=xC({components:{Del:G.Del,Edit:G.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(PC);return{delClick:s=>{o("delIcon",s,e.item),s.stopPropagation()},editClick:s=>{o("editIcon",s,e.item),s.stopPropagation()},contentsClick:s=>{o("clickItem",s,e.item),s.stopPropagation()},t:l}}}),RC={class:"fox-address-list-item__info"},OC={class:"fox-address-list-item__info-contact"},FC={class:"fox-address-list-item__info-contact-name"},UC={class:"fox-address-list-item__info-contact-tel"},KC={key:0,class:"fox-address-list-item__info-contact-default"},HC={class:"fox-address-list-item__info-handle"},jC={class:"fox-address-list-item__addr"};function WC(e,o,l,n,a,r){const s=t.resolveComponent("Del"),i=t.resolveComponent("Edit");return t.openBlock(),t.createElementBlock("div",{class:"fox-address-list-item",onClick:o[0]||(o[0]=(...c)=>e.contentsClick&&e.contentsClick(...c))},[t.createElementVNode("div",RC,[t.createElementVNode("div",OC,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",FC,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",UC,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",KC,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",HC,[t.renderSlot(e.$slots,"content-icon",{},()=>[t.createVNode(s,{name:"del",class:"fox-address-list-item__info-handle-del",onClick:e.delClick},null,8,["onClick"]),t.createVNode(i,{name:"edit",class:"fox-address-list-item__info-handle-edit",onClick:e.editClick},null,8,["onClick"])])])]),t.createElementVNode("div",jC,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const cl=W(LC,[["render",WC]]),{create:YC}=U("address-list-general"),XC=YC({props:{item:{type:Object,default:{}},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1}},emits:["delIcon","editIcon","clickItem","longDown","longCopy","longSet","longDel","swipeDel"],components:{ItemContents:cl,[Pe.name]:Pe,[so.name]:so},setup(e,{emit:o}){const l=()=>t.h(cl,{item:e.item,onDelIcon(B){s(B)},onEditIcon(B){i(B)},onClickItem(B){c(B)}});let n=null;const a=t.ref(!1),r=t.ref(!1),s=B=>{o("delIcon",B,e.item),B.stopPropagation()},i=B=>{o("editIcon",B,e.item),B.stopPropagation()},c=B=>{a.value||(o("clickItem",B,e.item),B.stopPropagation())},d=B=>{o("longDel",B,e.item),B.stopPropagation()},m=B=>{n=0,r.value=!0,o("longDown",B,e.item)};return{renderCompontent:l,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:d,holddownstart:B=>{n=setTimeout(()=>{m(B)},300)},holddownmove:()=>{clearTimeout(n)},holddownend:()=>{clearTimeout(n)},copyCLick:B=>{o("longCopy",B,e.item),B.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:B=>{o("longSet",B,e.item),B.stopPropagation()},maskClick:B=>{n!=0&&(r.value=!1),B.stopPropagation(),B.preventDefault()},swipeDelClick:B=>{o("swipeDel",B,e.item),B.stopPropagation()},swipestart:()=>{a.value=!1},swipemove:()=>{a.value=!0}}}}),QC={key:0,class:"fox-address-list-general"},GC={class:"fox-address-list-swipe"};function ZC(e,o,l,n,a,r){const s=t.resolveComponent("fox-button"),i=t.resolveComponent("fox-swipe");return e.swipeEdition?(t.openBlock(),t.createBlock(i,{key:1},{right:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right-btn",{},()=>[t.createVNode(s,{shape:"square",style:{height:"100%"},type:"danger",onClick:e.swipeDelClick},{default:t.withCtx(()=>[t.createTextVNode("删除")]),_:1},8,["onClick"])])]),default:t.withCtx(()=>[t.createElementVNode("div",GC,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchmove:e.swipemove,onTouchstart:e.swipestart},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchmove","onTouchstart"]))])]),_:3})):(t.openBlock(),t.createElementBlock("div",QC,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderCompontent()),{onTouchstart:e.holddownstart,onTouchend:e.holddownend,onTouchmove:e.holddownmove},{"content-top":t.withCtx(()=>[t.renderSlot(e.$slots,"content-info")]),"content-icon":t.withCtx(()=>[t.renderSlot(e.$slots,"content-icons")]),"content-addr":t.withCtx(()=>[t.renderSlot(e.$slots,"content-addrs")]),_:3},40,["onTouchstart","onTouchend","onTouchmove"])),e.longPress&&e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list-general__mask",onClick:o[3]||(o[3]=(...c)=>e.maskClick&&e.maskClick(...c))},[t.renderSlot(e.$slots,"longpress-all",{},()=>[t.createElementVNode("div",{class:"fox-address-list-general__mask-copy",onClick:o[0]||(o[0]=(...c)=>e.copyCLick&&e.copyCLick(...c))},"复制地址"),t.createElementVNode("div",{class:"fox-address-list-general__mask-set",onClick:o[1]||(o[1]=(...c)=>e.setDefault&&e.setDefault(...c))},"设置默认"),t.createElementVNode("div",{class:"fox-address-list-general__mask-del",onClick:o[2]||(o[2]=(...c)=>e.delLongClick&&e.delLongClick(...c))},"删除地址")])])):t.createCommentVNode("",!0),e.showMaskRef?(t.openBlock(),t.createElementBlock("div",{key:1,class:"fox-address-list__mask-bottom",onClick:o[4]||(o[4]=(...c)=>e.hideMaskClick&&e.hideMaskClick(...c))})):t.createCommentVNode("",!0)]))}const JC=W(XC,[["render",ZC]]),{componentName:_C,create:e1,scope:t1}=U("address-list"),o1=e1({props:{data:{type:Array,default:[]},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1},showBottomButton:{type:Boolean,default:!0},dataOptions:{type:Object,default:{}}},components:{GeneralShell:JC,[Pe.name]:Pe},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(t1),n=t.ref([]),a=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[_C]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(n.value=e.data.map(v=>Al(a,v,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(v,g)=>{o("delIcon",v,g),v.stopPropagation()},c=(v,g)=>{o("editIcon",v,g),v.stopPropagation()},d=(v,g)=>{o("clickItem",v,g),v.stopPropagation()},m=(v,g)=>{o("longCopy",v,g),v.stopPropagation()},f=(v,g)=>{o("longSet",v,g),v.stopPropagation()},h=(v,g)=>{o("longDel",v,g),v.stopPropagation()},y=(v,g)=>{o("swipeDel",v,g),v.stopPropagation()},k=v=>{o("add",v),v.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:d,clickLongCopy:m,clickLongSet:f,clickLongDel:h,clickSwipeDel:y,addAddress:k,dataArray:n,t:l}}});function n1(e,o,l,n,a,r){const s=t.resolveComponent("general-shell"),i=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.dataArray,(c,d)=>(t.openBlock(),t.createBlock(s,{key:d,item:c,longPress:e.longPress,swipeEdition:e.swipeEdition,onDelIcon:e.clickDelIcon,onEditIcon:e.clickEditIcon,onClickItem:e.clickContentItem,onSwipeDel:e.clickSwipeDel,onLongCopy:e.clickLongCopy,onLongSet:e.clickLongSet,onLongDel:e.clickLongDel},t.createSlots({"content-info":t.withCtx(()=>[t.renderSlot(e.$slots,"item-infos")]),"content-icons":t.withCtx(()=>[t.renderSlot(e.$slots,"item-icon")]),"content-addrs":t.withCtx(()=>[t.renderSlot(e.$slots,"item-addr")]),_:2},[e.longPress?{name:"longpress-all",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"longpress-btns")]),key:"0"}:void 0,e.swipeEdition?{name:"swipe-right-btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"swipe-right")]),key:"1"}:void 0]),1032,["item","longPress","swipeEdition","onDelIcon","onEditIcon","onClickItem","onSwipeDel","onLongCopy","onLongSet","onLongDel"]))),128)),e.showBottomButton?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address-list__bottom",onClick:o[0]||(o[0]=(...c)=>e.addAddress&&e.addAddress(...c))},[t.createVNode(i,{block:"",type:"danger"},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.t("addAddress")),1)]),_:1})])):t.createCommentVNode("",!0)],2)}const Hr=W(o1,[["render",n1]]),{componentName:zw,create:l1}=U("category"),a1=l1({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:o,slots:l}){const n=t.ref(0),a=t.ref(!1);return{getChildList:s=>{n.value=s,o("change",s)},checkIndex:n,categoryLeft:a}}}),r1={class:"fox-category"},s1={class:"fox-category__cateList"},i1={key:0},c1=["onClick"];function u1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",r1,[t.createElementVNode("div",s1,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",i1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.category,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category__cateListLeft",key:i},[t.createElementVNode("div",{class:t.normalizeClass([e.checkIndex==i?"fox-category__cateListItemChecked":"fox-category__cateListItem"]),onClick:c=>e.getChildList(i)},t.toDisplayString(s.catName),11,c1)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const jr=W(a1,[["render",u1]]),{componentName:xw,create:d1}=U("category-pane"),f1=d1({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:o}){return{onChange:n=>{o("onChange",n)}}}}),m1={class:"fox-category-pane"},p1={key:0,class:"fox-category-pane__cateListRight"},h1={class:"fox-category-pane__childTitle"},g1={key:0,class:"fox-category-pane__childItemList"},y1=["onClick"],v1=["src"],k1={class:"fox-category-pane__skuImg"},b1={key:1,class:"fox-category-pane__cateListRight"},S1={class:"fox-category-pane__childTitle"},C1={key:0,class:"fox-category-pane__childItemList"},w1=["onClick"],N1={class:"fox-category-pane__skuName"},B1={key:2,class:"fox-category-pane__selfItemList"},V1=["onClick"];function A1(e,o,l,n,a,r){return t.openBlock(),t.createElementBlock("div",m1,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",p1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",h1,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",g1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,v1),t.createElementVNode("div",k1,t.toDisplayString(c?.catName),1)],8,y1))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",b1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",S1,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",C1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,d)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:d,onClick:m=>e.onChange(c)},[t.createElementVNode("div",N1,t.toDisplayString(c?.catName),1)],8,w1))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",B1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.customCategory,(s,i)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__skuName",key:i,onClick:c=>e.onChange(s)},t.toDisplayString(s?.catName),9,V1))),128))])):t.createCommentVNode("",!0)])}const Wr=W(f1,[["render",A1]]),{componentName:Pw,create:E1}=U("comment-header"),T1=E1({components:{[ao.name]:ao},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:o}){return{handleClick:()=>{o("handleClick")}}}}),$1={class:"fox-comment-header__user"},D1={class:"fox-comment-header__user-avter"},I1=["src"],q1={class:"fox-comment-header__user-score"},M1={key:0,class:"fox-comment-header__time"};function z1(e,o,l,n,a,r){const s=t.resolveComponent("fox-rate");return t.openBlock(),t.createElementBlock("view",null,[e.info?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-header",onClick:o[1]||(o[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",$1,[t.createElementVNode("view",D1,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,I1)):t.createCommentVNode("",!0)]),e.type=="default"?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},[t.createElementVNode("span",null,t.toDisplayString(e.info.nickName),1),t.renderSlot(e.$slots,"labels")],2),t.createElementVNode("view",q1,[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":o[0]||(o[0]=i=>e.info.score=i),size:"12",spacing:"5",readonly:"",onChange:e.handleClick},null,8,["modelValue","onChange"])])],2)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__user-${e.type}`])},[t.createElementVNode("span",{class:t.normalizeClass([`fox-comment-header__user-${e.type}-name`])},t.toDisplayString(e.info.nickName),3),t.renderSlot(e.$slots,"labels")],2))]),e.info.time?(t.openBlock(),t.createElementBlock("view",M1,t.toDisplayString(e.info.time),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.type=="complex"?(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass([`fox-comment-header__${e.type}-score`])},[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":o[2]||(o[2]=i=>e.info.score=i),size:"12",spacing:"3",readonly:""},null,8,["modelValue"]),t.createElementVNode("i",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-i`])},null,2),t.createElementVNode("view",{class:t.normalizeClass([`fox-comment-header__${e.type}-score-size`])},t.toDisplayString(e.info.size),3)],2)):t.createCommentVNode("",!0)])}const x1=W(T1,[["render",z1]]),{componentName:Lw,create:P1}=U("comment-images"),L1=P1({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:G.Right},emits:["click","clickImages"],setup(e,{emit:o}){const l=t.ref(!1),n=t.ref(1),a=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),a.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),a.value=e.videos.concat(e.images)}),{isShowImage:l,initIndex:n,showImages:(s,i)=>{const{videos:c,images:d}=e,m=s=="img"?i-c.length:i;o("clickImages",{type:s,index:m,value:s=="img"?d[m]:c[m]})},totalImages:a}}}),R1=["onClick"],O1=["src"],F1=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),U1=["onClick"],K1=["src"],H1={key:0,class:"fox-comment-images__mask"};function j1(e,o,l,n,a,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(`fox-comment-images fox-comment-images--${e.type}`)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.videos,(i,c)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-comment-images__item fox-comment-images__item--video",key:i.id,onClick:d=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,O1),F1],8,R1))),128)),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.images,(i,c)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:i.id},[e.type=="multi"&&e.videos.length+c<9||e.type!="multi"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-images__item fox-comment-images__item--imgbox",onClick:d=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,K1),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",H1,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,U1)):t.createCommentVNode("",!0)],64))),128))],2)}const W1=W(L1,[["render",j1]]),{componentName:Rw,create:Y1,scope:X1}=U("comment-bottom"),Q1=Y1({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:G.Fabulous,Comment:G.Comment,MoreX:G.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(X1),n=t.ref(!1),a=t.ref([]);return t.onMounted(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&a.value.push(c)})}),{showPopver:n,operate:i=>{i=="more"&&(n.value=!n.value),o("clickOperate",i)},mergeOp:a,handleClick:()=>{o("handleClick")},t:l}}}),G1={class:"fox-comment-bottom"},Z1={key:0},J1={class:"fox-comment-bottom__cpx"},_1=["onClick"];function ew(e,o,l,n,a,r){const s=t.resolveComponent("Fabulous"),i=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",G1,[t.createElementVNode("view",{onClick:o[0]||(o[0]=(...d)=>e.handleClick&&e.handleClick(...d)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",Z1,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",J1,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(d,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${d}`]),onClick:f=>e.operate(d)},[d!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[d]),1),d=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),d=="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createVNode(c),e.showPopver?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment-bottom__cpx-item-popover",onClick:o[1]||(o[1]=f=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,_1))),128))])])}const tw=W(Q1,[["render",ew]]),{componentName:ow,create:nw,scope:lw}=U("comment"),aw=nw({props:{headerType:{type:String,default:"default"},imagesRows:{type:String,default:"one"},ellipsis:{type:[String,Number,Boolean],default:!1},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]},info:{type:Object,default:()=>({})},follow:{type:Object,default:()=>({})},labels:{type:Function,default:()=>""},operation:{type:Array,default:["replay","like","more"]}},components:{CommentHeader:x1,CommentImages:W1,CommentBottom:tw,Right:G.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:o}){const{t:l}=ie.useFoxI18n(lw),n=t.computed(()=>({[ow]:!0})),a=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:n,conEllipsis:a,clickOperate:c=>{o("clickOperate",c)},handleClick:()=>{o("click",e.info)},clickImages:c=>{o("clickImages",c)},t:l}}}),rw=["innerHTML"],sw={class:"fox-comment__follow-title"},iw={class:"fox-comment__follow-com"},cw={key:0,class:"fox-comment__follow-img"};function uw(e,o,l,n,a,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),d=t.resolveComponent("comment-bottom");return e.info&&Object.keys(e.info)?(t.openBlock(),t.createElementBlock("view",{key:0,class:t.normalizeClass(e.classes)},[t.createVNode(s,{type:e.headerType,info:e.info,labels:e.labels,onHandleClick:e.handleClick},{labels:t.withCtx(()=>[t.renderSlot(e.$slots,"comment-labels")]),_:3},8,["type","info","labels","onHandleClick"]),t.renderSlot(e.$slots,"feature"),t.createElementVNode("view",{class:"fox-comment__main",style:t.normalizeStyle(`-webkit-line-clamp:${e.conEllipsis}`),onClick:o[0]||(o[0]=(...m)=>e.handleClick&&e.handleClick(...m)),innerHTML:e.info.content},null,12,rw),t.createVNode(i,{images:e.images,videos:e.videos,type:e.imagesRows,onClickImages:e.clickImages},null,8,["images","videos","type","onClickImages"]),e.follow&&e.follow.days>0?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-comment__follow",onClick:o[1]||(o[1]=(...m)=>e.handleClick&&e.handleClick(...m))},[t.createElementVNode("view",sw,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",iw,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",cw,[t.createTextVNode(t.toDisplayString(e.t("additionalImages",e.follow.images.length))+" ",1),t.createVNode(c,{width:"12px"})])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createVNode(d,{type:e.headerType,info:e.info,operation:e.operation,onClickOperate:e.clickOperate,onHandleClick:e.handleClick},null,8,["type","info","operation","onClickOperate","onHandleClick"]),t.renderSlot(e.$slots,"comment-shop-reply")],2)):t.createCommentVNode("",!0)}const Yr=W(aw,[["render",uw]]),dw=[Hl,jl,Wl,Yl,Ql,Ve,_l,ea,ta,oa,na,mn,sa,pa,Na,Ba,vn,kn,Va,bn,Sn,Aa,Ea,wo,Ta,$a,Pe,Da,Ia,ot,ce,qa,Ma,za,xa,_t,Pa,Ra,Oa,Fa,Ua,Ka,Ha,ja,Wa,no,Ya,eo,to,Xa,Qa,Ga,Za,lo,Ja,pn,yn,gn,pt,ao,Et,_a,tr,or,so,nr,lr,ar,io,sr,ir,ur,Cn,zt,fr,mr,co,pr,hr,ro,gr,yr,vr,Dt,kr,br,It,qt,tt,Bn,wr,Nr,Br,uo,fo,Vr,Ar,Er,Tr,$r,Dr,Ir,qr,Mr,zr,xr,Pr,Lr,Rr,Or,Fr,Ur,Kr,Hr,jr,Wr,Yr],fw=new Vs(dw,"4.0.0");exports.ActionSheet=nr;exports.Address=zr;exports.AddressList=Hr;exports.Animate=Dr;exports.Audio=fr;exports.AudioOperate=mr;exports.Avatar=co;exports.AvatarGroup=pr;exports.BackTop=lr;exports.Badge=Br;exports.Barrage=xr;exports.Broadcast=un;exports.BroadcastKey=ye;exports.Button=Pe;exports.Calendar=yn;exports.CalendarItem=Ba;exports.Card=Ur;exports.Cascader=pn;exports.CascaderItem=pa;exports.Category=jr;exports.CategoryPane=Wr;exports.Cell=Da;exports.CellGroup=Ia;exports.Checkbox=bn;exports.CheckboxGroup=Sn;exports.CheckboxItem=Aa;exports.CircleProgress=gr;exports.Col=za;exports.Collapse=Ar;exports.CollapseItem=Er;exports.Comment=Yr;exports.Content=Yl;exports.CountDown=Nr;exports.CountUp=wr;exports.DataItemsKey=it;exports.DateItem=Na;exports.DatePicker=gn;exports.DateUtils=_;exports.Dialog=io;exports.Divider=Pa;exports.Domain=yo;exports.DomainKey=Ae;exports.DomainProvider=$a;exports.Drag=ar;exports.Ecard=Kr;exports.Elevator=no;exports.Ellipsis=$r;exports.Empty=vr;exports.FixedNav=Ua;exports.FooterBar=Wl;exports.Grid=Ra;exports.GridItem=Oa;exports.Group=Ql;exports.HeaderBar=jl;exports.Image=qa;exports.ImagePreview=Bn;exports.Indicator=Xa;exports.InfiniteLoading=sr;exports.InputItem=ta;exports.InputNumber=pt;exports.Item=Ve;exports.Layout=Ma;exports.LinkItem=Ta;exports.List=hr;exports.Menu=Ka;exports.MenuItem=Ha;exports.MoneyItem=oa;exports.Navbar=Fa;exports.NoticeBar=yr;exports.Notify=ur;exports.NumberKeyboard=or;exports.OverLay=ot;exports.Page=Hl;exports.Pagination=Ya;exports.Picker=Et;exports.PickerItem=sa;exports.Popover=fo;exports.Popup=ce;exports.Price=tt;exports.PriorityPolicy=Zt;exports.Progress=ro;exports.PullRefresh=ir;exports.Radio=vn;exports.RadioGroup=kn;exports.RadioItem=Va;exports.Range=lo;exports.Rate=ao;exports.Row=xa;exports.RowItem=_l;exports.SearchBar=Ja;exports.ShortPassword=_a;exports.SideNavBar=Qa;exports.SideNavBarItem=Ga;exports.Signature=Pr;exports.Skeleton=Vr;exports.Sku=Fr;exports.SlotItem=ea;exports.Step=br;exports.Steps=kr;exports.Sticky=_t;exports.SubSideNavBar=Za;exports.Swipe=so;exports.Swiper=It;exports.SwiperItem=qt;exports.Switch=Cn;exports.SwitchItem=Ea;exports.TabPane=to;exports.Tabbar=ja;exports.TabbarItem=Wa;exports.Table=Tr;exports.Tabs=eo;exports.Tag=uo;exports.Textarea=mn;exports.TextareaItem=na;exports.TimeDetail=Or;exports.TimePannel=Rr;exports.TimeSelect=Lr;exports.Toast=zt;exports.Tour=Mr;exports.TrendArrow=qr;exports.UniqueID=Jl;exports.Uploader=tr;exports.ValidateSchema=ql;exports.ValidateSchemaKey=Re;exports.Video=Dt;exports.WaterMark=Ir;exports.cancelRaf=ul;exports.clamp=Le;exports.clearNonNumber=Fo;exports.clone=Oo;exports.compareTo=Lo;exports.createBroadcast=ho;exports.createValidateSchema=go;exports.debounce=Vt;exports.debounceRef=gs;exports.decimalLength=Bl;exports.default=fw;exports.defineBroadcast=ss;exports.defineConfigDomain=Ml;exports.defineDataItem=xl;exports.defineDomain=dn;exports.defineItem=Be;exports.definePageState=Pl;exports.deleteGlobalValidator=ds;exports.disabledProperty=Ne;exports.divide=an;exports.excludeProps=Vl;exports.extend=_e;exports.floatData=Al;exports.getGlobalValidateCheckEvents=$l;exports.getGlobalValidateResetEvents=Il;exports.getPageContentAreaHeight=Qt;exports.getPageContentAreaWidth=Gt;exports.getPageFooterAreaHeight=bo;exports.getPageHeaderAreaHeight=ko;exports.getRootDomain=dt;exports.getScrollTopRoot=cn;exports.hasSymbol=yl;exports.hinttext=wo;exports.includeProps=ke;exports.indexOf=as;exports.installRules=zl;exports.integerLength=Nl;exports.isArray=mo;exports.isArrayLike=bl;exports.isBrowser=lt;exports.isDate=Oe;exports.isESModule=es;exports.isEmptyString=Ce;exports.isEqual=Fe;exports.isFunction=Yt;exports.isHidden=vl;exports.isInnerPage=ks;exports.isMap=Zr;exports.isNumberString=wl;exports.isObject=De;exports.isPlainObject=Ro;exports.isPromise=sn;exports.isRegExp=Cl;exports.isSet=Jr;exports.isString=hl;exports.isSubPage=bs;exports.isSymbol=_r;exports.isWindow=kl;exports.lastIndexOf=rs;exports.makeArray=ls;exports.merge=Sl;exports.multiply=fl;exports.negate=ml;exports.nextTick=os;exports.numberFormat=rn;exports.objectToString=gl;exports.once=ys;exports.padZero=Ge;exports.preventDefault=Uo;exports.property=Ee;exports.raf=Qe;exports.readonlyProperty=Ie;exports.setGlobalValidateCheckEvents=fs;exports.setGlobalValidateHandler=cs;exports.setGlobalValidateMessages=ps;exports.setGlobalValidateResetEvents=ms;exports.setGlobalValidator=us;exports.throttle=Xt;exports.toBoolean=ge;exports.toNumber=ue;exports.toPadding=Me;exports.toPx=se;exports.toPxDesc=le;exports.toTypeString=po;exports.toValue=ze;exports.typeOf=et;exports.unNumberFormat=pl;exports.updatePageState=Ko;exports.useBroadcast=St;exports.useDomain=Ue;exports.useExpose=Te;exports.usePageState=vo;exports.usePosition=Gl;exports.useRect=ve;exports.useTouch=Ke;exports.valueLength=pe;
|