@fox-js/foxui 4.0.1-45 → 4.0.1-47

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,8 +1,8 @@
1
1
  "use strict";/*!
2
- * @fox-js/foxui-base v4.0.0 Mon May 06 2024 21:15:09 GMT+0800 (中国标准时间)
3
- */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),tt=require("@fox-js/validator"),oe=require("@fox-js/icons-vue"),re=require("@fox-js/i18n"),Zt=window,Rs=typeof window<"u";function Os(){return typeof Zt<"u"?Zt.requestAnimationFrame||Zt.webkitRequestAnimationFrame||function(e){Zt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Vr(e){Rs?cancelAnimationFrame(e):clearTimeout(e)}const Xe=Os();/*!
2
+ * @fox-js/foxui-base v4.0.0 Thu May 09 2024 11:40:02 GMT+0800 (中国标准时间)
3
+ */Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),tt=require("@fox-js/validator"),oe=require("@fox-js/icons-vue"),re=require("@fox-js/i18n"),Jt=window,Ks=typeof window<"u";function Us(){return typeof Jt<"u"?Jt.requestAnimationFrame||Jt.webkitRequestAnimationFrame||function(e){Jt.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function Tr(e){Ks?cancelAnimationFrame(e):clearTimeout(e)}const Xe=Us();/*!
4
4
  * @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
5
- */function cn(e,n="0"){let a=0,o=-1;e[0]=="-"&&(a++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,o=2,n=n.substring(1),n.length),e=Ce(e),n=Ce(n),[e,n]=Lo(Ce(e),Ce(n)),a==1&&(o==1?e=_n(e):n=_n(n));let l=Tr(e,n);return a?a==2?"-"+Ce(l):e.length<l.length?Ce(l.substring(1)):"-"+Ce(_n(l)):Ce(l)}function _n(e){let n="",a=e.length,o=e.split(".")[1],l=o?o.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let r=l>0?"0."+new Array(l).join("0")+"1":"1";return Tr(n,r)}function Ce(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 Lo(e,n){let a=e.split("."),o=n.split("."),l=a[0].length,r=o[0].length;return l>r?o[0]=new Array(Math.abs(l-r)+1).join("0")+(o[0]?o[0]:""):a[0]=new Array(Math.abs(l-r)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,r=o[1]?o[1].length:0,(l||r)&&(l>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function Tr(e,n){[e,n]=Lo(e,n);let a="",o=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let r=parseInt(e[l])+parseInt(n[l])+o;a=r%10+a,o=Math.floor(r/10)}return o?o.toString()+a:a}var be=(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))(be||{});function Ft(e,n=0,a=be.HALF_EVEN){if(a===be.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let l=e.split("."),r=l[0],s=l[1];if(n<0){if(n=-n,r.length<=n)return"0";{let c=r.substr(0,r.length-n);return e=c+"."+r.substr(r.length-n)+s,c=Ft(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,qa(l[1],r,o,a)?(o?"-":"")+eo(r):(o?"-":"")+r;if(l[1]){if(l[1].length<n)return(o?"-":"")+r+"."+l[1]+new Array(n-l[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");s=l[1].substring(0,n);let i=l[1].substring(n);return i&&qa(i,s,o,a)&&(s=eo(s),s.length>n)?(o?"-":"")+eo(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function qa(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===be.DOWN||!a&&o===be.FLOOR||a&&o===be.CEILING)return!1;if(o===be.UP||a&&o===be.FLOOR||!a&&o===be.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(o){case be.HALF_DOWN:return!1;case be.HALF_UP:return!0;case be.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function eo(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,o="";for(let l=a;l>=0;l--){let r=parseInt(e[l])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function fo(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=Vt(e),n=Vt(n);let o=0,l=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(l=n.length-n.indexOf(".")-1);let r=o+l;if(e=Vt(e.replace(".","")),n=Vt(n.replace(".","")),e.length<n.length){let u=e;e=n,n=u}if(n=="0")return"0";let s=n.length,i=0,c=[],m=s-1,p="";for(let u=0;u<s;u++)c[u]=e.length-1;for(let u=0;u<2*e.length;u++){let h=0;for(let b=n.length-1;b>=m&&b>=0;b--)c[b]>-1&&c[b]<e.length&&(h+=parseInt(e[c[b]--])*parseInt(n[b]));h+=i,i=Math.floor(h/10),p=h%10+p,m--}return p=Vt(Ks(p,r)),a==1&&(p="-"+p),p}function Ks(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 Vt(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 mo(e,n,a=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 o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var l=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ce(n.replace(".","")),l>=0){let m=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(m==-1)e=Ce(e+new Array(l+1).join("0"));else if(l>m)e=e.replace(".",""),e=Ce(e+new Array(l-m+1).join("0"));else if(l<m){e=e.replace(".","");let p=e.length-m+l;e=Ce(e.substring(0,p)+"."+e.substring(p))}else l==m&&(e=Ce(e.replace(".","")))}let r=0,s=n.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 m=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(m+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=m,i="0."+new Array(m).join("0")}for(a=a+2;r<=a;){let m=0;for(;parseInt(c)>=parseInt(n);)c=cn(c,"-"+n),m++;i+=m,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(o==1?"-":"")+Ce(Ft(i,a-2))}function po(e,n){return e=e.toString(),n=n.toString(),n=ho(n),cn(e,n)}function ho(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ma(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Pa(e),Pa(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=po(e,fo(n,Ft(mo(e,n),0,be.FLOOR)));return a+o}function Pa(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function La(e,n){let a=!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),a=!0),[e,n]=Lo(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?a?-1:1:a?1:-1;return 0}class se{value;static RoundingModes=be;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[a,o]=n.split(/[eE]/);a=Ce(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(o=parseInt(o)+a.indexOf("."),a=a.replace(".","")):o=parseInt(o)+a.length,a.length<o?n=l+a+new Array(o-a.length+1).join("0"):a.length>=o&&o>0?n=l+Ce(a.substring(0,o))+(a.length>o?"."+a.substring(o):""):n=l+"0."+new Array(-o+1).join("0")+a}return n}constructor(n="0"){this.value=se.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,o){if(!(a||o))a=3,o=",";else if(!(a&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=se.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var s="",i=r;i>0;)i<a?(a=i,i=0):i-=a,s=n.substring(i,i+a)+(i<r-a&&i>=0?o:"")+s;return(l?"-":"")+s+n.substring(r)}getPrettyValue(n,a){return se.getPrettyValue(this.value,n,a)}static round(n,a=0,o=be.HALF_EVEN){if(n=se.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return Ft(n,a,o)}round(n=0,a=be.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new se(Ft(this.value,n,a))}static floor(n){return n=se.validate(n),n.indexOf(".")===-1?n:se.round(n,0,be.FLOOR)}floor(){return this.value.indexOf(".")===-1?new se(this.value):new se(this.value).round(0,be.FLOOR)}static ceil(n){return n=se.validate(n),n.indexOf(".")===-1?n:se.round(n,0,be.CEILING)}ceil(){return this.value.indexOf(".")===-1?new se(this.value):new se(this.value).round(0,be.CEILING)}static add(n,a){return n=se.validate(n),a=se.validate(a),cn(n,a)}add(n){return new se(cn(this.value,n.getValue()))}static subtract(n,a){return n=se.validate(n),a=se.validate(a),po(n,a)}subtract(n){return new se(po(this.value,n.getValue()))}static multiply(n,a){return n=se.validate(n),a=se.validate(a),fo(n,a)}multiply(n){return new se(fo(this.value,n.getValue()))}static divide(n,a,o){return n=se.validate(n),a=se.validate(a),mo(n,a,o)}divide(n,a){return new se(mo(this.value,n.getValue(),a))}static modulus(n,a){return n=se.validate(n),a=se.validate(a),Ma(n,a)}modulus(n){return new se(Ma(this.value,n.getValue()))}static compareTo(n,a){return n=se.validate(n),a=se.validate(a),La(n,a)}compareTo(n){return La(this.value,n.getValue())}static negate(n){return n=se.validate(n),ho(n)}negate(){return new se(ho(this.value))}}function $r(e,n){return se.multiply(`${e}`,`${n}`)}function zo(e,n,a=8){return se.divide(`${e}`,`${n}`,a)}function go(e,n){return e=`${e}`,n=`${n}`,se.compareTo(e,n)}function Er(e){return se.negate(e)}function vn(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",m=r.indexOf(".");m!=-1&&(i=r.substring(0,m),c=r.substring(m+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let p;if(o>0){let u="",h=i.split("").reverse();for(let b=0;b<h.length;b++)u+=h[b]+((b+1)%o==0&&b+1!=h.length?l:"");c.length==0?p=`${s}${u.split("").reverse().join("")}`:p=`${s}${u.split("").reverse().join("")}.${c}`}else c.length==0?p=`${s}${i}`:p=`${s}${i}.${c}`;return p}function xr(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const it=typeof window<"u",Re=Xe;function Dr(e){return e==null}const bn=Array.isArray,Us=e=>kn(e)==="[object Map]",Hs=e=>kn(e)==="[object Set]",Ue=e=>e instanceof Date,un=e=>typeof e=="function",Ir=e=>typeof e=="string",js=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",gt=e=>Ae(e)&&un(e.then)&&un(e.catch),qr=Object.prototype.toString,kn=e=>qr.call(e),yo=e=>kn(e)==="[object Object]",Mr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ws(e){return e.__esModule||Mr&&e[Symbol.toStringTag]==="Module"}const Ys=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function lt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,o=e.length,l=!1;for(typeof n=="boolean"&&(l=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<o;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let s in r){let i=n[s],c=r[s];if(i!==c)if(l===!0&&c&&typeof c=="object"){let m;Array.isArray(c)?m=i&&Array.isArray(i)?i:[]:m=i&&typeof i=="object"?i:{},n[s]=lt(l,m,c)}else c!==void 0&&(n[s]=c)}}return n}function vo(e,n,a=!1){if(!a)lt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!yo(s))continue;r=vo(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!yo(s))continue;r=vo(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const to=Ys?Promise.resolve():null;function Xs(e,...n){to!==null?n&&n.length>0?to.then(()=>{e(n)}):to.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function pe(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function fe(e){return typeof e=="number"?e:Number(e)}const Qs={"[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 at(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Qs[a]||"object"}function Sn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Pr(e){return e&&typeof e=="object"&&"setInterval"in e}function Lr(e){let n=!!e&&"length"in e&&e.length,a=at(e);return a==="function"||Pr(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function zr(e,n){let a=+n.length,o=0,l=e.length;for(;o<a;o++)e[l++]=n[o];return e.length=l,e}function Gs(e,n=[]){let a=n;return e!=null&&(Lr(Object(e))?zr(a,typeof e=="string"?[e]:e):a.push(e)),a}function qe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=at(e),o=at(n);if(a!==o)return!1;if(a==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],c=e[i],m=n[i];if(!qe(c,m))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],s=n[l];if(!qe(r,s))return!1}return!0}return!1}function Fr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Rr(e){return ue(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ue(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Or(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 a=n.indexOf(".");return a==-1?n.length:a}function Kr(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function za(e,n,a){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(a,"")}function bo(e,n=!0,a=!0){n?e=za(e,".",/\./g):e=e.replace(/\./g,""),a?e=za(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function Zs(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(qe(e,a))return!0}):n.indexOf(e)}function Js(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(qe(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function ye(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ve(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function Nt(e,...n){const a=[];n.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const o={};for(const l in e)a.includes(l)||(o[l]=e[l]);return o}const Ur=(e,n,a)=>{const o=Object.assign({},e),l=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{l.hasOwnProperty(r)?typeof l[r]=="string"&&(o[r]=n[l[r]]):n[r]&&(o[r]=n[r])}),o):e};function ko(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const et=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Oe=(e,n,a)=>Math.min(Math.max(e,n),a),ke=Symbol.for("BroadcastKey");class Fo{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,a,o){this.parent=n,this.proxy=a,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const a=this.children.findIndex(o=>n===o);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,a,...o){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 l=!1;!n.name||n.name==="*"?l=!0:!n.name||n.name==="+"?(l=!1,n.name="*"):Fr(n.name)&&this.name&&n.name.test(this.name)?l=!0:typeof n.name=="function"?l=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(l=!0);const r=[];if(l){const s=this.callbacks.get(a);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...o]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[a]=="function"){const c=Reflect.apply(i[a],i,[...o]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...n},a,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(n,a,...o){const l=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...n},a,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(n,a){this.callbacks.set(n,a)}}function Cn(e,n,a,o){const l=new Fo(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function _s(e,n,a){const o=a;if(o[ke])return o[ke];const l=t.inject(ke,null),r=new Fo(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[ke]=r,t.provide(ke,r),t.onUnmounted(()=>{r.destroy(),o[ke]=void 0}),r}function qt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ke]??t.inject(ke,null):t.inject(ke,null)}const nt=e=>e.default??e;class ei{error(n,a){const o=a,l=qt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=qt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=qt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,o){Array.isArray(n)||(n=[n]);const l=o,r=qt(o),s=a.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let Pt=new ei;function ti(e){Pt=e}function ni(e){Pt?Object.assign(Pt,e):Pt=e}function oi(e,n){nt(tt).setValidator(e,n)}function li(e){nt(tt).deleteValidator(e)}let Hr=["blur","clear"];function ai(e){Hr=e}function jr(){return Hr}let Wr=["focus","change"];function ri(e){Wr=e}function Yr(){return Wr}function si(e){nt(tt).messages(e)}function Tt(...e){const n=[];return e.forEach(a=>{a.forEach(o=>{const l=n.findIndex(r=>r.type===o.type);l!==-1&&n.splice(l,1),n.push(o)})}),n}function Jt(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 Ke=Symbol("ValidateSchemaKey");class Xr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,o){this.parent=n,this.descriptor=a,this.proxy=o,(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 a=Jt(Tt(this.attrRules,this.rules)),o=[];for(let r in n){let s=n[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),o.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};o.push(c)}}this.attrRules=Jt(o);const l=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=Pt;return l&&typeof l[n]=="function"?Reflect.apply(l[n],l,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,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,a,o=!1){o?nt(tt).setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?nt(tt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return nt(tt).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const a=Tt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=Jt(n):this.rules=Jt([n]);const o=Tt(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=Tt(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${o}`]:a},r=this.getValue(),s={[`${o}`]:r},i=nt(tt),c=new i(l),m=this.proxy??s;return c.validate(s,{context:m}).then(u=>{if(u.pass)this.success();else{let h="error";Array.isArray(u.errors)&&u.errors.length>0&&(h=u.errors[0].message??h,u.errors=[u.errors[0]],u.errors[0].ref=m),this.error(h)}return u}).catch(u=>{const h=u.message??`${u}`;return this.error(h),u})}}return Promise.resolve({pass:!0})}}function wn(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(r){return r[l]}}}return new Xr(n,a,e)}const Fa=Symbol("EventEmitterKey");class ii{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,a){let o=this.register.get(n);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===a);l!==-1&&o.splice(l,1)}}on(n,a){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(a)}emit(n,...a){const o=this.register.get(n);o&&o.forEach(l=>{try{Reflect.apply(l,null,[n,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...a])}}function yt(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function dn(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function ci(e,n){const a=yt((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function ui(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function Ro(e,n,a,o=0,l=!0){let r=n,s=0;if(l){const c=e();if(s++,c||s>a)return}const i=()=>{const c=e();s++,!(c||s>a)&&(r+=o,setTimeout(i,r))};setTimeout(i,r)}const Ie=Symbol("DomainKey"),dt=Symbol("DataItemsKey");class Nn{_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,a=[]){for(const o in n){const l=n[o];a.length>0&&a.indexOf(l)!==-1||(this._props[o]=l)}}has(n){if(Reflect.has(this._props,n)){const a=this._props[n];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,a){this._props[n]=a}get(n,a){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?a:this.parent.get(n,a)}getForParent(n,a){return this.parent==null?a:this.parent.get(n,a)}getForSelf(n){return this._props[n]}getAll(n){const a=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const l=o._props[n];a.push(l)}o=o._parent}return a}}const di=new Nn;function pt(){return di}function He(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ie]??t.inject(Ie,null):t.inject(Ie,null)}const no=Symbol("OriginalDateKey");function Oo(e,n,a=[],o){const l=t.getCurrentInstance(),r=l?.proxy;let s=t.inject(Ie,null);s===null&&(s=pt());const i=e||n.prop||n.name,c=new Nn(i);c.parent=s;const m=k=>{r[no]||h(k),c.set("modelValue",k)},p=()=>c.getForSelf("modelValue")??null,u=()=>r[no]??null,h=k=>{const v={};lt(!0,v,t.toRaw(k)),r[no]=v};t.isReactive(n)||typeof n=="function"?t.watch(n,k=>{c.merge(k,a)},{immediate:!0}):c.merge(n,a),n.modelValue&&h(n.modelValue),r[Ie]=c,t.provide(Ie,c);let b=null,y=null;if(l!==null){const k=t.inject(ke,null);b=Cn(r,k,i,o),c.broadcast=b,r[ke]=b,t.provide(ke,b),r.broadcast=(f,d,...g)=>Reflect.apply(b.emit,b,[f,d,...g]);const v=t.inject(Ke,null);y=wn(r,v,{componentName:""}),c.validateSchema=y,r[Ke]=y,t.provide(Ke,y),r[dt]=new Map,r.validate=(f=!0)=>{const d=[];let g=null;const C={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const B=f;g={name:S=>S?B.indexOf(S)!==-1:!1}}else if(f!=null&&typeof f=="object"){const B=f;if(Object.assign(C,B),Array.isArray(B.include)&&B.include.length>0){const S=B.include;g={name:N=>N?S.indexOf(N)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const S=B.exclude;g={name:N=>N?S.indexOf(N)===-1:!1}}else g={name:"*"}}if(g){const B=b?.emitToChildren(g,"validate",C);B&&Reflect.apply([].push,d,B)}return d.length==1?d[0]:d.length>1?Promise.all(d).then(B=>{let S=[];return B.forEach(N=>{N.pass===!1&&Array.isArray(N.errors)&&(S=[...S,...N.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(f,d=!0,g=!1)=>{if(g===!0){Reflect.ownKeys(f).forEach(B=>{let S=String(B);const A=Zr(c,S,{componentName:"",fieldName:S,pureDataValidate:!0},b,y);r[dt].set(S,A);const V=f[S];V&&A.validateSchema.setRule(V)});return}if(d){const C=Reflect.ownKeys(f),B={name:S=>C.includes(S)};b?.emitToChildren(B,"setNameValidateRules",f,!1)}},r.clearValidate=(f=!0)=>{let d=null;if(f===!0)d={name:"*"};else if(Array.isArray(f)&&f.length>0){const g=f;d={name:C=>C?g.indexOf(C)!==-1:!1}}else if(f!=null&&typeof f=="object"){const g=f;if(Array.isArray(g.include)&&g.include.length>0){const C=g.include;d={name:B=>B?C.indexOf(B)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const C=g.exclude;d={name:B=>B?C.indexOf(B)===-1:!1}}else d={name:"*"}}d&&b?.emitToChildren(d,"clearValidate",!1)},r.resetFields=f=>{const d=p();if(!d)return;const g={};if(lt(!0,g,u()??{}),Array.isArray(f))f.forEach(C=>{d[C]=g[C]});else if(f&&Array.isArray(f.include))(f.include??[]).forEach(B=>{d[B]=g[B]});else if(f&&Array.isArray(f.exclude)){let C=f.exclude??[];Reflect.ownKeys(g).forEach(B=>{C.includes(B)||(d[B]=g[B])})}else Object.assign(d,g);r.clearValidate(f)},r.setModelValue=(f,d)=>{!d||d===i?m(f):b?.emitToChildren({name:d},"setModelValue",f)},r.getModelValue=()=>p()}return t.onUnmounted(()=>{c.destroy(),r[Ie]=void 0,r[dt]&&(r[dt].clear(),r[dt]=void 0),b!==null&&(b.destroy(),r[ke]=void 0),y!==null&&(y.destroy(),r[Ke]=void 0)}),c}function Qr(e,n,a=[]){const l=t.getCurrentInstance()?.proxy;let r=t.inject(Ie,null);r===null&&(r=pt());const s=e||n.prop||n.name,i=new Nn(s);return i.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{i.merge(c,a)},{immediate:!0}):i.merge(n,a),l[Ie]=i,t.provide(Ie,i),t.onUnmounted(()=>{i.destroy(),l[Ie]=void 0}),i}function Gr(e,n,a){const l=He(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Ne(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(ke,null),i=Cn(l,s,r,a);l[ke]=i,t.provide(ke,i),l.broadcast=(y,k,...v)=>Reflect.apply(i.emit,i,[y,k,...v]);const c=t.inject(Ke,null);e.fieldName=e.fieldName??r;const m=wn(l,c,e);l[Ke]=m,t.provide(Ke,m),Gr(l,m,r),l.validate=(y=null)=>{const k=[];let v=!1,f=!1;if(Array.isArray(y)&&y.indexOf(r)!==-1)f=!0,v=!0;else if(y&&typeof y=="object"){const d=y,g=d.ignoreDisabled??!0,C=d.ignoreReadonly??!0,B=d.ignoreHidden??!0;g===!0&&e.disabled===!0||C===!0&&e.readonly===!0||B===!0&&Sn(l.$el)?f=!1:(Array.isArray(d.include)&&d.include.indexOf(r)!==-1||Array.isArray(d.exclude)&&d.exclude.indexOf(r),f=!0),v=d.deep??!1}else typeof y=="boolean"&&(v=y),f=!0;if(f){const d=m?.validate();k.push(d)}if(v){let d=null;const g={deep:!1};if(y===!0)d={name:"*"};else if(Array.isArray(y)&&y.length>0){const C=y;d={name:B=>B?C.indexOf(B)!==-1:!1}}else if(y!=null&&typeof y=="object"){const C=y;if(Object.assign(g,C),Array.isArray(C.include)&&C.include.length>0){const B=C.include;d={name:S=>S?B.indexOf(S)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const B=C.exclude;d={name:S=>S?B.indexOf(S)===-1:!1}}else d={name:"*"}}if(d){const C=i.emitToChildren(d,"validate",g);Reflect.apply([].push,k,C)}}return k.length==1?k[0]:k.length>1?Promise.all(k).then(d=>{let g=[];return d.forEach(C=>{C.pass===!1&&Array.isArray(C.errors)&&(g=[...g,...C.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=y=>m?.setRule(y),l.setNameValidateRules=(y,k=!1)=>{const v=y[r];if(v&&m?.setRule(v),k){const f={name:d=>Reflect.ownKeys(y).includes(d)};i.emitToChildren(f,"setNameValidateRules",y,!1)}},l.clearValidate=(y=null)=>{(!Array.isArray(y)||y.indexOf(n??"")!==-1)&&m?.clear();let k=null;if(y===!0)k={name:"*"};else if(Array.isArray(y)&&y.length>0){const v=y;k={name:f=>f?v.indexOf(f)!==-1:!1}}else if(y!=null&&typeof y=="object"){const v=y;if(Array.isArray(v.include)&&v.include.length>0){const f=v.include;k={name:d=>d?f.indexOf(d)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const f=v.exclude;k={name:d=>d?f.indexOf(d)===-1:!1}}else k={name:"*"}}k&&i.emitToChildren(k,"clearValidate",!1)};const p=new ii(l);l[Fa]=p;const u=yt((y="validate")=>{y==="reset"?m.clear():m.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:jr()).forEach(y=>{p.on(y,k=>{u("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Yr()).forEach(y=>{p.on(y,k=>{u("reset")})}),t.onUnmounted(()=>{i.destroy(),l[ke]=void 0,m.destroy(),l[Ke]=void 0,p.destroy(),l[Fa]=void 0}),{broadcast:i,validateSchema:m,emitEvent:(y,...k)=>{Reflect.apply(p.emit,p,[y,...k])},onEvent:(y,k)=>{Reflect.apply(p.on,p,[k])},offEvent:(y,k)=>{Reflect.apply(p.off,p,[k])}}}function Zr(e,n,a,o,l){const r={},s=n??"",i={getValue(){const p=e.getForSelf("modelValue");return p?p[s]:null},isExist(){const p=e.getForSelf("modelValue");return p?Reflect.has(p,s):!1}};a.fieldName=s,a.validateHandler={getValue(p){return i.getValue()}};const c=wn({},l,a);r.validate=(p=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const u=[];let h=!1,b=!1;if(Array.isArray(p)&&p.indexOf(s)!==-1)b=!0,h=!0;else if(p&&typeof p=="object"){const y=p;Array.isArray(y.include)&&y.include.indexOf(s)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(s),b=!0,h=y.deep??!1}else typeof p=="boolean"&&(h=p),b=!0;if(b){const y=c?.validate();u.push(y)}if(h){let y=null;const k={deep:!1};if(p===!0)y={name:"*"};else if(Array.isArray(p)&&p.length>0){const v=p;y={name:f=>f?v.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const v=p;if(Object.assign(k,v),Array.isArray(v.include)&&v.include.length>0){const f=v.include;y={name:d=>d?f.indexOf(d)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const f=v.exclude;y={name:d=>d?f.indexOf(d)===-1:!1}}else y={name:"*"}}if(y){const v=m.emitToChildren(y,"validate",k);Reflect.apply([].push,u,v)}}return u.length==1?u[0]:u.length>1?Promise.all(u).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=p=>c?.setRule(p),r.setNameValidateRules=p=>{const u=p[s];u&&c?.setRule(u)};const m=Cn(null,o,s,r);return{broadcast:m,validateSchema:c}}const he=e=>e?`${ie(e)}px`:"";function ie(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 a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),r=1;if(it){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return l*=r,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))*n;const o=Number(e);return isNaN(o)?0:o}const Qe="PageStateKey";function Le(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ie(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ie(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ie(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ie(e.right))),n}function So(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=ie(a.headerHeight??n.headerHeight??-1),e.headerPadding=Le(a.headerPadding??n.headerPadding),e.footerHeight=ie(a.footerHeight??n.footerHeight??-1),e.footerPadding=Le(a.footerPadding??n.footerPadding),e.contentPadding=Le(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=ie(c,r):e.height=ie(r)-ie(s,r)-ie(i,r),e.width=ie(a.width??n.width??0,l)}}function Jr(e,n={}){const a={top:null,left:null,bottom:null,right:null},o={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});l&&(o.safeAreaTop=ie(l.top),o.safeAreaBottom=ie(l.bottom),o.safeAreaLeft=ie(l.left),o.safeAreaRight=ie(l.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,m=e.get("footerBarHeight")??0;So(o,r,n,!0,s,i,c,m);const p=t.reactive(o),u=e.getForParent(Qe);u&&(o.height=fn(e,u),o.width=mn(e,u),t.watch([()=>fn(e,u),()=>mn(e,u)],([b,y])=>{p.height=b,p.width=y}));const h=!u;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([b,y,k=-1,v=-1,f=0,d=0])=>{So(p,y,n,h,k,v,f,d)}),e.set(Qe,p),p}function Bn(e){return e.get(Qe)}function An(e,n){if(n=n??e.get(Qe),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function Vn(e,n){if(n=n??e.get(Qe),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function fn(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=An(e,n),o=Vn(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function mn(e,n){return n=n??e.get(Qe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function fi(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function mi(e){return!!e.getForParent(Qe)}var pn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(pn||{});function oo(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Be(e,n,a=1,o){const l=He();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let i=r.length-1;i>=0;i--){const c=r[i];if(oo(c,o))return c}const s=e.value;return oo(s,o)?s:null}):t.computed(()=>{const r=e.value;return oo(r,o)?r:l?.get(n)})}function Te(e){return Be(e,"readonly",0,function(a){return pe(a)})}function we(e){return Be(e,"disabled",0,function(a){return pe(a)})}function xe(e,n="modelValue",a){const o=t.toRef(e,n);let l=o.value;typeof a=="function"&&(l=a(o.value));const r=t.ref(l);return t.watch(o,s=>{if(typeof a=="function"){const i=a(s);i!==r.value&&(r.value=i)}else s!==r.value&&(r.value=s)}),r}const _r=new Map,hn=new Map;let Co=null;function pi(e){Co=e}function es(e,n,a){if(a){let o=hn.get(a);o||(o=new Map,hn.set(a,o)),o.set(e,n)}else _r.set(e,n)}function Je(e,n,a){!a&&Co&&(a=Co(e)??void 0);let o=null;if(a){let l=hn.get(a);l&&(o=l.get(n))}return o||(o=_r.get(n)),o}function hi(e,n){for(let a in e){const o=e[a];es(a,o,n)}}function gi(e){hn.delete(e)}function yi(){return{top:0,left:0,bottom:0,right:0}}function vi(e=0,n=0){if(it){const a=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:o-ie(e,o)-ie(n,o)};return{rootWidth:a,rootHeight:o,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:-1,footerHeight:-1}}}class bi{packages;_version;get version(){return this._version}constructor(n,a){this.packages=n,this._version=a}install(n,a){a?.install!==!1&&this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)});const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=pt();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=dn(()=>{const i={...a},c=document.documentElement.clientWidth||document.body.clientWidth,m=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=m,this.initPageLayout(i,l)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)o.indexOf(r)===-1&&l.set(r,a[r])}initPageLayout(n,a){const o=n.headerBarHeight??0,l=n.footerBarHeight??0,r=lt({},yi(),n.safeAreaInset),s=vi(o,l),i=lt({},s.pageLayout,n.pageLayout);a=a??pt(),a.set("safeAreaInset",r),a.set("headerBarHeight",o),a.set("footerBarHeight",l),a.set("pageLayout",i),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight)}setScopeGetter(n){pi(n)}setAPI(n,a,o){es(n,a,o)}getAPI(n,a,o){return Je(n,a,o)}batchSetAPI(n,a){hi(n,a)}clearScopeAPI(n){gi(n)}getRootDomain(){return pt()}}function X(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=o=>{o.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}const ki=(e,n)=>{let a=document.body;const o=e.teleport||"body";o!="body"&&(Ir(o)?a=document.querySelector(o):a=e.teleport);const l=document.createElement("view"),r=n.name?n.name+"-":"",s=e.id||new Date().getTime();l.id=r+s;let i={};un(n.wrapper)?i=n.wrapper(a,l):i=n.wrapper;const c=t.createApp(i,e),m=n.components;return m&&m.forEach(p=>{c.use(p)}),a.appendChild(l),{instance:c.mount(l),unmount:()=>{c.unmount(),a.removeChild(l)}}},ts=(e,n)=>e?t.h(e,n):"";function $e(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const me={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},ge={prop:{type:String,required:!1},label:{type:String,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}},ns={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},os={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!1},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},ls=[];for(const e in os)ls.push(e);const Si=Symbol.for("InnerPageScopeKey"),Ci={name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},wi=(e,n)=>({inheritAttrs:!0,props:{...me,...ns,...Ci},setup(a,{slots:o}){const l=Oo(a.name,a),r=t.inject(Si,!1);if(l){const p=Jr(l,a);$e({getPageContentHeight:()=>fn(l,p),getPageContentWidth:()=>mn(l,p),getPageHeaderHeight:()=>An(l,p),getPageFooterHeight:()=>Vn(l,p)}),p&&r&&(p.contentHeight="100%")}const s=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),c=t.getCurrentInstance(),m=(p,u=!1)=>{const h=c?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(p,!0,u)};return t.watch([()=>a.rules,()=>a.pureDataRules],([p,u],[h,b])=>{if(p&&h){const y=t.toRaw(h),k=t.toRaw(p),v=k?Reflect.ownKeys(k):[];(y?Reflect.ownKeys(y):[]).forEach(d=>{v.includes(d)||(k[d]=[])}),m(k)}if(u&&b){const y=t.toRaw(b),k=t.toRaw(u),v=k?Reflect.ownKeys(k):[];(y?Reflect.ownKeys(y):[]).forEach(d=>{v.includes(d)||(k[d]=[])}),m(k,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const p=t.toRaw(a.rules);m(p)}if(a.pureDataRules){const p=t.toRaw(a.pureDataRules);m(p,!0)}}),()=>{const p={class:s.value,style:i.value};return t.h("div",p,[o?.default?.()])}}}),{componentName:Ni,create:Bi,scope:o2}=X("page"),Ko=Bi(wi(Ni));function Uo(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Tn(e){const n=t.unref(e),a=window.getComputedStyle(n,null),o=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-s}}const Ai=Symbol.for("InnerPageScopeKey"),Vi=(e,n,a,o=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(l,r){const s=He(),i=s?Bn(s):null,c=t.inject(Ai,!1),m=e,p=t.computed(()=>{const w={[m]:!0,[`${m}--border`]:l.border,[`${m}--fixed`]:l.fixed};return c||(w[`${m}--safe-area-inset-top`]=l.safeAreaInsetTop),w}),u=t.computed(()=>({[`${m}__inner`]:!0,[`${m}__inner--${l.align}`]:!0})),h=l.height!==null&&l.height!==void 0?ie(l.height):null,b=t.computed(()=>{const w={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const M=Le(l.padding??i.headerPadding);return Object.assign(w,M),h&&(i.headerHeight=h),i.headerHeight>0&&(w.height=i.headerHeight),w.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,w.safeAreaTop>0&&(w.top=w.safeAreaTop+(M.top??0),w.height&&w.height>0&&(w.height=w.height+w.safeAreaTop)),w}if(h&&(w.height=h),l.padding){const M=Le(l.padding);Object.assign(w,M)}return w}),y=t.ref(null),k=()=>{if(i&&y.value&&!Sn(y.value)){if(!o){const w=Uo(y.value);i.headerAllHeight=w.height}return i.headerMounted=!0,!0}return!1};let v=null;t.onMounted(()=>{i&&(Ro(k,50,5,50,!0),window.ResizeObserver&&y.value&&(v=new window.ResizeObserver(()=>{k()}),v.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,v&&(v.disconnect(),v=null))});const f=t.computed(()=>{const w={};return b.value.height!==null&&b.value.height!==void 0&&(w.height=`${b.value.height}px`),b.value.top!==null&&b.value.top!==void 0&&(w.paddingTop=`${b.value.top}px`),b.value.left!==null&&b.value.left!==void 0&&(w.paddingLeft=`${b.value.left}px`),b.value.right!==null&&b.value.right!==void 0&&(w.paddingRight=`${b.value.right}px`),b.value.bottom!==null&&b.value.bottom!==void 0&&(w.paddingBottom=`${b.value.bottom}px`),w}),d=t.computed(()=>!(b.value.height!==null&&b.value.height!==void 0&&b.value.height<=0));function g(){r.emit("back")}function C(){r.emit("click-title")}function B(){r.emit("click-right")}function S(){r.emit("click-right-text")}const N=()=>{if(!l.leftShow)return null;const w=[];if(r.slots.left)w.push(r.slots.left());else{if(r.slots.leftIcon){const M=t.h("view",{class:"left-icon",onClick:g},[r.slots.leftIcon()]);w.push(M)}else if(l.leftIcon){const M=t.h("view",{class:"left-icon",onClick:g},[t.h(l.leftIcon)]);w.push(M)}if(l.leftText){const M=t.h("view",{class:"left-text",onClick:g},[l.leftText]);w.push(M)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__left"},w)},A=()=>{if(!l.rightShow)return null;const w=[];if(r.slots.right)w.push(r.slots.right());else{if(l.rightText){const M=t.h("view",{class:"right-text",onClick:S},[l.rightText]);w.push(M)}if(r.slots.rightIcon){const M=t.h("view",{class:"right-icon",onClick:B},[r.slots.rightIcon()]);w.push(M)}else if(l.rightIcon){const M=t.h("view",{class:"right-icon",onClick:B},[t.h(l.rightIcon)]);w.push(M)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__right"},w)},V=()=>{if(!l.titleShow)return null;const w=[],M=r.slots.default?r.slots.default():null;if(M)w.push(M);else{if(l.title){const P=t.h("view",{class:"title-text"},[l.title]);w.push(P)}if(r.slots.titleIcon){const P=t.h("view",{class:"title-icon",onClick:C},[r.slots.titleIcon()]);w.push(P)}else if(l.titleIcon){const P=t.h("view",{class:"title-icon",onClick:C},[t.h(l.titleIcon)]);w.push(P)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__title"},w)},T=()=>{const w=[],M=r.slots.bottom?r.slots.bottom():null;return M&&w.push(M),w.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},w)};return()=>{if(!d.value)return null;const w=[];if(r.slots.all)w.push(r.slots.all());else{const P=[],$=N();$&&P.push($);const E=V();E&&P.push(E);const K=A();if(K&&P.push(K),P.length>0){const W=t.h("view",{class:u.value},P);w.push(W)}const D=T();D&&w.push(D)}if(w.length===0)return null;const M={class:p.value,style:f.value,ref:y};return t.h("view",M,w)}}}),{componentName:Ti,create:$i,scope:Ei}=X("header-bar"),Ho=$i(Vi(Ti,Ei,oe.Left,!1)),xi=Symbol.for("InnerPageScopeKey");function Di(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,l){const r=He(),s=r?Bn(r):null,i=t.inject(xi,!1),c=e,m=t.computed(()=>{const v={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return i||(v[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),v}),p=o.height!==null&&o.height!==void 0?ie(o.height):null,u=t.computed(()=>{const v={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const f=Le(o.padding??s.footerPadding);return Object.assign(v,f),p&&(s.footerHeight=p),s.footerHeight>0&&(v.height=s.footerHeight),v.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,v.safeAreaBottom>0&&(v.bottom=v.safeAreaBottom+(f.bottom??0),v.height&&v.height>0&&(v.height=v.height+v.safeAreaBottom)),v}if(p&&(v.height=p),o.padding){const f=Le(o.padding);Object.assign(v,f)}return v}),h=t.ref(null),b=()=>{if(s&&h.value&&!Sn(h.value)){if(!a){const v=Uo(h.value);s.footerAllHeight=v.height}return s.footerMounted=!0,!0}return!1};let y=null;t.onMounted(()=>{s&&(Ro(b,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(()=>{b()}),y.observe(h.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,y&&(y.disconnect(),y=null))});const k=t.computed(()=>{const v={};return u.value.height!==null&&u.value.height!==void 0&&(v.height=he(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(v.paddingTop=he(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(v.paddingLeft=he(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(v.paddingRight=he(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(v.paddingBottom=he(u.value.bottom)),v});return()=>{const v=l.slots.default?l.slots.default():[],f={ref:h,class:m.value,style:k.value};return t.h("view",f,v)}}}}const{componentName:Ii,create:qi,scope:Mi}=X("footer-bar"),jo=qi(Di(Ii,Mi,!1));function Pi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=He(),l=t.computed(()=>({[e]:!0})),r=o?Bn(o):null,s=t.computed(()=>{const m={};if(o&&r){if(a.padding){const f=Le(a.padding);Object.assign(r.contentPadding,f)}const p=An(o,r),u=Vn(o,r);let h="";r.contentHeight?h=`${r.contentHeight}`:h=`${r.height}px`,console.debug("[content]page height:",h),console.debug("[content]header height:",p),console.debug("[content]footer height:",u),console.debug("[content]padding:",r.contentPadding),m.height=h;let b=(r&&r.contentPadding&&r.contentPadding.top)??-1;(b>=0||p>0)&&(b=b<0?0:b,m.paddingTop=`${p+b}px`);let y=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(y>=0||u>0)&&(y=y<0?0:y,m.paddingBottom=`${u+y}px`);const k=(r&&r.contentPadding&&r.contentPadding.left)??-1;k>=0&&(m.paddingLeft=`${k}px`);const v=(r&&r.contentPadding&&r.contentPadding.right)??-1;return v>=0&&(m.paddingRight=`${v}px`),m}if(a.padding){const p=Le(a.padding);p.left&&(m.paddingLeft=`${p.left}px`),p.top&&(m.paddingTop=`${p.top}px`),p.right&&(m.paddingRight=`${p.right}px`),p.bottom&&(m.paddingBottom=`${p.bottom}px`)}return m}),i=t.ref(null),c=yt(()=>{if(r&&i.value){const m=Tn(i.value);r.contentInnerHeight=m.height,r.contentInnerWidth=m.width}},0);return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>s.value,()=>l.value],([])=>{c()}),{contentRef:i,classes:l,styles:s}}}}const{componentName:Li,create:zi,scope:l2}=X("content"),Fi=zi(Pi(Li));function Ri(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const ne=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},Wo=ne(Fi,[["render",Ri]]),vt="GroupStateKey",as=Symbol.for("GroupScopeKey");function $n(){return t.inject(as,!1)}function En(e=!0){t.provide(as,e)}function Oi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Dr(l)||(e[o]=l)})}function Ki(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Oi(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(vt,r),r}function lo(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(vt);if(!c)return;const m=e.get("groupLayout")??{};a===-1&&(a=m.column??1),o===-1&&(o=m.gutter??0),r||(r=m.minItemWidth??-1),s||(s=m.maxItemWidth??-1);const p=ie(r),u=ie(s);i||(i=m.type??"grid");const h=()=>{const b=n===""||n===-1,y=ie(n);let k=fe(a);const v=ie(o);if(!b){let g=(y-(k-1)*v)/k;for(;u!==-1&&g>u;)k++,g=(y-(k-1)*v)/k;for(;p!==-1&&k>1&&g<p;)k--,g=(y-(k-1)*v)/k}let f=!1;const d=c.layout;d.value.width=n,d.value.column!==k&&(d.value.column=k,f=!0),d.value.gutter!==v&&(d.value.gutter=v,f=!0),d.value.type!==i&&(d.value.type=i,f=!0),f&&t.triggerRef(d)};if(l)h();else{const b=++c.passport;setTimeout(()=>{b===c.passport&&h()},50)}}function xn(e,n=!1){let a;return n?a=e.getForParent(vt):a=e.get(vt),a.layout}function Dn(e,n=!1){let a;return n?a=e.getForParent(vt):a=e.get(vt),a.order}function Ra(e,n=1){if(n==="stretch")return-1;const a=fe(n);return a===-1?100:100*a/e}function In(e,n,a=1,o=0,l){const r={};let s=0;l?s=ie(l):s=Ra(n.column,a),s>0&&(r.width=`${s}%`);const i=Ra(n.column,o);i>0&&(r["margin-left"]=`${i}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function qn(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,m=c+(n.column-c);return e.index=e.index+(m-c),{"grid-column":`${c+1} / -1`}}let l=fe(a);if(l===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(l>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=fe(o)%n.column;let s=(e.index+r)%n.column,i=s+l;return i>n.column?(s=0,i=s+l,e.index=e.index+(n.column-s)+l):e.index=e.index+r+l,r>0?{"grid-column":`${s+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const rs=Symbol("RollingStateKey");function Ui(e){t.provide(rs,e)}function Hi(){return t.inject(rs,null)}function wo(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function ji(e){let n=wo(e);if(n<=0){const a=e.cloneNode(!0),o=e.offsetWidth;a.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=wo(a),console.info("2.---------- get expand height",n),document.body.removeChild(a)}return n}function Wi(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const Yi={...me,...ns,...os};function Xi(e,n,a){return{props:Yi,emits:["update:collapse"],setup(o,l){const r=Oo(o.name,o,ls),s=Ki(r,{type:o.type}),i=$n();En(!0);const c=o.rollingDisplay?Hi():null,m=t.ref(null),p=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),u=t.computed(()=>i&&r?xn(r,!0).value:null),h=t.getCurrentInstance(),b=(U,G=!1)=>{const Q=h?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(U,!0,G)};t.watch([()=>o.rules,()=>o.pureDataRules],([U,G],[Q,J])=>{if(U&&Q){const z=t.toRaw(Q),ee=t.toRaw(U),te=ee?Reflect.ownKeys(ee):[];(z?Reflect.ownKeys(z):[]).forEach(ce=>{te.includes(ce)||(ee[ce]=[])}),b(ee)}if(G&&J){const z=t.toRaw(J),ee=t.toRaw(G),te=ee?Reflect.ownKeys(ee):[];(z?Reflect.ownKeys(z):[]).forEach(ce=>{te.includes(ce)||(ee[ce]=[])}),b(ee,!0)}},{deep:!0});const y=e,k=t.computed(()=>{const U={};if(U.height=E.value,o.width)o.width!=="auto"&&(U.width=he(o.width));else{const G=i?Dn(r,!0):null;if(u.value&&G){if(u.value.type==="grid"){const Q=qn(G,u.value,o.span,o.offset);Object.assign(U,Q)}else if(u.value.type==="flow"){const Q=In(G,u.value,o.span,o.offset,o.width);Object.assign(U,Q)}}}return U}),v=t.computed(()=>{const U=s.layout.value.type;return U==="grid"||U==="flow"?{[`${y}--${U}`]:!0,[`${y}--${U}-justify-${o.justify}`]:!0,[`${y}--${U}-align-${o.align}`]:!0,[`${y}--gutter`]:!0}:{[`${y}--${U}`]:!0,[`${y}--gutter`]:!0}}),f=t.computed(()=>{if(s.layout.value.type==="grid"){let G="";if(o.columnWidth)G=`repeat(auto-fill, ${o.columnWidth})`;else{const Q=Wi(A.value,s.layout.value.column,s.layout.value.gutter);G=`repeat(${s.layout.value.column}, ${Q})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":G}}}),d=t.toRef(o,"gutter"),g=t.toRef(o,"column"),C=t.computed(()=>i||p.value?!0:pe(o.isWrap)),B=[],S=U=>{B.push(U)},N=()=>{let U=B.length;B.splice(0,U)},A=t.ref(-1),V=U=>{const G=Tn(U).width;G>0&&G!==A.value&&(A.value=G)};lo(r,A.value,g.value,d.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([A,g,d],([U,G,Q])=>{s.order.index=0,lo(r,U,G,Q,!1,o.minItemWidth,o.maxItemWidth,o.type)});const T=t.computed(()=>K.value?o.expandText??"":o.collapseText??""),w=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),M=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!K.value,"is-collapse":K.value})),P=t.ref(),$=t.ref(),E=t.computed(()=>D.value||he(o.height)||""),K=t.ref(!1),D=t.ref(""),W=t.ref(!1);let H=-1;const Z=(U,G=!0)=>{const Q=P.value;if(Q&&K.value!==U){if(H=H<=0?ji(Q):H,W.value=!0,G)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",U||(D.value="",W.value=!1)},U){let J=0;o.collapseHeight?J=o.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(J=$.value.offsetHeight),D.value=`${H}px`,t.nextTick(()=>{D.value=`${J}px`})}else D.value=`${H}px`;else if(U){let J=0;o.collapseHeight?J=o.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(J=$.value.offsetHeight),D.value=`${J}px`}else W.value=!1,D.value=`${H}px`;K.value=U,l.emit("update:collapse",U)}};t.watch(()=>o.collapse,U=>{Z(U)});const _=()=>{j()},j=U=>{U=U??!K.value,Z(U)};$e({toggleCollapse:j,doLayout:()=>{B[0]&&(V(B[0]),lo(r,A.value,g.value,d.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let L=null,x=!0;const F=U=>{if(o.rules){const G=t.toRaw(o.rules);b(G)}if(o.pureDataRules){const G=t.toRaw(o.pureDataRules);b(G,!0)}if(it&&(U&&Z(pe(o.collapse),!1),o.autoLayout&&Array.isArray(B)&&B.length>0)){const G=B[0];V(G),window.ResizeObserver&&(L=new window.ResizeObserver(()=>{V(G)}),L.observe(G))}},q=()=>{L?.disconnect(),L=null},R=!p.value||c?.acquire();R&&(m.value=p.value?!0:null),t.onMounted(()=>{if(R&&(F(x),x=!1),p.value&&c){let U=null,G=c.initialHeight;c.observe(P.value,Q=>{if(Q!==m.value)if(Q)m.value=!0,K.value||(D.value=""),U=setTimeout(()=>{U=null,m.value!==!1&&(F(x),x=!1)},100);else{if(U!==null&&clearTimeout(U),m.value=!1,!K.value)if(x)D.value=c.initialHeight;else{let J=wo(P.value);J<=0?D.value=G:(D.value=`${J}px`,G=D.value)}x||q()}})}}),t.onUnmounted(()=>{L?.disconnect(),c&&c.unobserve(P.value)});const Y=(U="right")=>{const G=[];if(T.value){const ee={class:w.value},te=t.h("span",ee,[T.value]);G.push(te)}const Q={class:M.value},J=o.collapseIcon??a,z=t.h(J,Q);return G.push(z),G.length>0?t.h("div",{class:{[`${y}__header-collapse`]:!0,[`is-${U}`]:!0},onClick:_},G):null},O=(U,G,Q,J)=>{const z={...v.value};return G===0&&(z[`${y}__first`]=!0),Q>=J-1&&(z[`${y}__last`]=!0),t.h("div",{ref:S,key:`${G}`,class:z,style:f.value},U)};return()=>{if(p.value&&m.value!==!0){const z=o.tag||"div";return t.h(z,{ref:P,prop:o.name,class:{[`${y}`]:!0,"is-collapse":W.value},style:k.value},[])}s.order.index=0;const U=[];let G=0;if(l.slots.header){const z={key:`${G++}`,ref:$,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},ee=t.h("div",z,[l.slots.header()]);U.push(ee)}else{const z=[],ee=o.collapsePosition==="left";if(ee&&o.showCollapse){const te=Y("left");te&&z.push(te)}if(o.title||l.slots.title){if(o.showMark){const te={class:{[`${y}__header-mark`]:!0}};o.markColor&&(te.style={background:o.markColor});const ae=t.h("div",te);z.push(ae)}if(l.slots.title){const te=t.h("div",{class:{[`${y}__header-title`]:!0}},[l.slots.title()]);z.push(te)}else if(o.title){const te=t.h("div",{class:{[`${y}__header-title`]:!0}},[o.title]);z.push(te)}}if(l.slots.toolbar&&z.push(l.slots.toolbar()),!ee&&o.showCollapse){const te=Y("right");te&&z.push(te)}if(z.length>0){const te={key:`${G++}`,ref:$,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},ae=t.h("div",te,z);U.push(ae)}}N();const Q=l.slots.default?l.slots.default():[],J=s.layout.value.type;if(J==="grid"){const z=O(Q,G++,0,Q.length);U.push(z)}else if(J==="flow"){const z=O(Q,G++,0,Q.length);U.push(z)}else for(let z=0;z<Q.length;z++){const ee=Q[z],te=O([ee],G++,z,Q.length);U.push(te)}if(C.value){const z=o.tag||"div";return t.h(z,{ref:P,prop:o.name,class:{[`${y}`]:!0,"is-collapse":W.value},style:k.value},[U])}else return U}}}}const{componentName:Qi,create:Gi,scope:Zi}=X("group"),Yo=Gi(Xi(Qi,Zi,oe.RectUp));function Ji(e){return e===window}const _i=/matrix\((.+)\)/,ss=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Ji(n))return{x:0,y:0};let a=0,o=0,l=n;for(;l!==null;)a+=l.offsetLeft,o+=l.offsetTop,l=l.offsetParent;let r=0,s=0,i=0,c=0;for(l=n;l!==document;){s+=l.scrollTop,r+=l.scrollLeft;const{transform:m}=window.getComputedStyle(l);if(m){const p=_i.exec(m);if(p){let h=p[1].split(/\s*,\s*/);h.length==6&&(i+=Number(h[4]),c+=Number(h[5]))}}l=l.parentNode}return a-=r,o-=s,a+=i,o+=c,{x:a,y:o}};class ec{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const a=this.watchedListeners.indexOf(n);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class tc{monitorRegister=new WeakMap;watch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new ec,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(a),o=o.parentNode}}unwatch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}}const Oa=new tc,is={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:nc,create:oc}=X("price"),lc=oc({props:{...is},setup(e){const n=t.computed(()=>({[nc]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ye(e.price)==0?"":vn(e.price,e.decimalLength,!0,fe(e.digits),e.separator)),l=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),ac=["innerHTML"],rc=["innerHTML"];function sc(e,n,a,o,l,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,ac)):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,rc)):t.createCommentVNode("",!0)],2)}const Ge=ne(lc,[["render",sc]]),{componentName:ao,create:ic}=X("hint-text"),cc=ic({components:{Price:Ge},props:{...is,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const a=t.ref({top:null,right:null,bottom:null,left:null}),o=t.ref({x:0,y:0}),l=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),m=(w,M,P,$,E,K)=>{const D=document.documentElement.clientWidth||document.body.clientWidth,W=document.documentElement.clientHeight||document.body.clientHeight,H=w.split("-");let Z=[];H[0]==="top"?Z=["top","bottom","right","left"]:H[0]==="bottom"?Z=["bottom","top","right","left"]:H[0]==="left"?Z=["left","top","bottom","right"]:H[0]==="right"&&(Z=["right","top","bottom","left"]);const _={top:null,right:null,bottom:null,left:null},j=[];for(let I=0;I<Z.length;I++){const L=Z[I];if(j[0]=L,H[1]&&(j[1]=H[1]),L==="top"){const x=M.y-K-e.arrowSize-e.offset;if(x>=0){_.top=x;let F=0;H[1]==="start"?F=M.x:H[1]==="end"?F=M.x+P-E:F=M.x+P/2-E/2;const q=D-F-E;q<0?(F+=q,u.value=-q):u.value=0,_.left=F<0?0:F;break}}else if(L==="bottom"){const x=M.y+$+e.arrowSize+e.offset;if(x+K<=W){_.top=x;let F=0;H[1]==="start"?F=M.x:H[1]==="end"?F=M.x+P-E:F=M.x+P/2-E/2;const q=D-F-E;q<0?(F+=q,u.value=-q):u.value=0,_.left=F<0?0:F;break}}else if(L==="left"){const x=M.x-E-e.arrowSize-e.offset;if(x>=0){_.left=x;let F=0;H[1]==="start"?F=M.y:H[1]==="end"?F=M.y+$-K:F=M.y+$/2-K/2,_.top=F<0?0:F;break}}else if(L==="right"){const x=M.x+P+e.arrowSize+e.offset;if(x+E<=D){_.left=x;let F=0;H[1]==="start"?F=M.y:H[1]==="end"?F=M.y+$-K:F=M.y+$/2-K/2,_.top=F<0?0:F;break}}}return{bestPlacement:j.join("-"),bestInsetRect:_}},p=(w,M,P=10)=>{if(!it||M===!1||!w)return;o.value=ss(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const $=c.value.offsetHeight,E=c.value.offsetWidth,{bestPlacement:K,bestInsetRect:D}=m(e.placement,o.value,l.value,r.value,E,$);s.value=K,a.value=D,i.value=!0},u=t.ref(0),h=yt(()=>{p(e.message,e.visible)},10),b=t.ref(e.visible);t.watch(()=>e.visible,w=>{b.value=w});const y=t.computed(()=>b.value&&k.value),k=t.ref(!0),v=yt(w=>{const M=w[0];M&&(k.value=M.isIntersecting)},10),f=new IntersectionObserver(v);t.watch([()=>e.message,()=>e.visible],([w,M])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Oa.watch(e.reference,h),f.observe(e.reference)}),t.onBeforeMount(()=>{Oa.unwatch(e.reference,h),f.unobserve(e.reference),f.disconnect()});const d=t.computed(()=>{const w={[ao]:!0};return s.value.startsWith("top")?w["is-top"]=!0:s.value.startsWith("right")?w["is-right"]=!0:s.value.startsWith("bottom")?w["is-bottom"]=!0:s.value.startsWith("right")&&(w["is-right"]=!0),e.size==="small"?w["is-small"]=!0:e.size==="large"&&(w["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(w[`${e.customClass}`]=!0),w}),g=t.computed(()=>{const w={};a.value.top!==null&&(w.top=`${a.value.top}px`),a.value.right!==null&&(w.right=`${a.value.right}px`),a.value.bottom!==null&&(w.bottom=`${a.value.bottom}px`),a.value.left!==null&&(w.left=`${a.value.left}px`),e.autoFit&&(w["min-width"]=`${l.value}px`);const M=document.documentElement.clientWidth||document.body.clientWidth;return w["max-width"]=`${M}px`,i.value&&(w.opacity="1"),e.transition||(w.transition="none"),e.zIndex&&(w["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(w,e.customStyle),w}),C=t.computed(()=>{const w=[`${ao}__content`];return e.customTextClass&&w.push(e.customTextClass),w}),B=t.computed(()=>{const w={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(w,e.customTextStyle),w}),S=t.computed(()=>({[`${ao}__arrow`]:!0})),N=t.computed(()=>{const w={};return e.showArrow?(w.width=`${e.arrowSize}px`,w.height=`${e.arrowSize}px`,s.value==="top"?(w.left="50%",w.bottom=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):s.value==="top-start"?(w.left=`${e.arrowOffset+u.value}px`,w.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(w.right=`${e.arrowOffset-u.value}px`,w.bottom=`-${e.arrowSize}px`):s.value==="right"?(w.left=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):s.value==="right-start"?(w.left=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):s.value==="right-end"?(w.left=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(w.left="50%",w.top=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(w.left=`${e.arrowOffset+u.value}px`,w.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(w.right=`${e.arrowOffset-u.value}px`,w.top=`-${e.arrowSize}px`):s.value==="left"?(w.right=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):s.value==="left-start"?(w.right=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):s.value==="left-end"&&(w.right=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`),w):{display:"none"}}),A=t.computed(()=>y.value&&e.closeOnClick),V=t.computed(()=>{const w={};return e.zIndex&&(w["z-index"]=`${e.zIndex}`),w});return{show:y,tipRef:c,classes:d,styles:g,textClasses:C,textStyles:B,arrowClasses:S,arrowStyles:N,overlayShow:A,overlayStyle:V,onClickOverlay:()=>{b.value=!1,n.emit("update:visible",!1)}}}}),uc=["innerHTML"];function dc(e,n,a,o,l,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,uc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const cs=ne(cc,[["render",dc]]);class Mn{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}}const No={},fc=new Mn,ht=new Map,gn=e=>{if(e){const n=document.getElementById(e);ht.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of ht.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}ht.clear()}},mc=e=>{e.unmount=gn;const n=document.getElementById(e.id);if(n){const a=ht.get(e.id);a?e={...No,...a,...e}:e={...No,...e},e.transition=!1;const o=t.createVNode(cs,e);return t.render(o,n),e.id}},pc=e=>{e.unmount=gn;let n=e.id??`hinttext_${fc.get()}`;e={...No,...e},e.id=n,ht.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(cs,e);return t.render(o,a),document.body.appendChild(a),n},hc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},Bt={show(e,n,a={},o=!0){hc(n);const l=a.id;return l&&ht.has(l)?mc({...a,message:n,reference:e}):(o&&gn(),pc({...a,message:n,reference:e}))},hide(e){gn(e)},install(e){e.config.globalProperties.$hintText=Bt}};function gc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...me,...ge},emits:["appear","disappear"],setup(l,r){const s=l.prop??r.attrs.name;Ne({componentName:e,validate:!1},s);const i=He(),c=$n();En(!1);const m=t.computed(()=>c&&i?xn(i,!1).value:null),p=e,u=t.ref(null),h=t.computed(()=>{const z={[p]:!0,[`${p}__gutter`]:m.value&&m.value.type!=="flow",[`${p}__stretch`]:l.span==="stretch",[`${p}__input--border`]:pe(l.hasBorder)};if(z[l.errorMarkClass]=!!K.value,z[l.warnMarkClass]=!!$.value,z[l.infoMarkClass]=!!M.value,typeof u.value=="function"){const ee=u.value(s);z[ee]=!0}else if(typeof u.value=="string"){const ee=u.value;z[ee]=!0}return z}),b=t.ref(null),y=t.computed(()=>{const z={};if(l.width)l.width!=="auto"&&(z.width=he(l.width));else{const ee=c&&i?Dn(i,!1):null;if(m.value&&ee){if(m.value.type==="grid"){const te=qn(ee,m.value,l.span,l.offset);Object.assign(z,te)}else if(m.value.type==="flow"){const te=In(ee,m.value,l.span,l.offset,l.width);Object.assign(z,te)}}}if(typeof b.value=="function"){const ee=b.value(s);ee&&Object.assign(z,ee)}else if(b.value&&typeof b.value=="object"){const ee=b.value;Object.assign(z,ee)}return z}),k=t.ref(null),v=t.computed({get:()=>k.value??pe(l.isRequired),set:z=>{k.value=z}}),f=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",d=Be(t.toRef(l,"labelPosition"),"labelPosition",pn.Near),g=t.computed(()=>d&&d.value==="top"?"top":d&&d.value==="right"?"right":"left"),C=t.computed(()=>({[`${p}__main`]:!0,[`${p}__main--${g.value}`]:!0})),B=t.computed(()=>({label:!0,[`label--${g.value}`]:!0})),S=Be(t.toRef(l,"labelWidth"),"labelWidth",pn.Near),N=t.computed(()=>S&&S.value?{width:he(S.value)}:{}),A=t.computed(()=>({"label--string":!0,"label--required":v.value})),V=t.computed(()=>({content:!0,[l.contentClass]:!0})),T=t.computed(()=>({...l.contentStyle})),w=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(z){v.value=z},setErrorTip(z){w.errorTip=z},setErrorIcon(z){w.errorIcon=z},setWarnTip(z){w.warnTip=z},setWarnIcon(z){w.warnIcon=z},setInfoTip(z){w.infoTip=z},setInfoIcon(z){w.infoIcon=z},setCustomClassName(z){u.value=z},setCustomStyle(z){b.value=z}});const M=t.computed(()=>l.infoTip||w.infoTip),P=t.computed(()=>l.infoIcon||w.infoIcon),$=t.computed(()=>l.warnTip||w.warnTip),E=t.computed(()=>l.warnIcon||w.warnIcon),K=t.computed(()=>l.errorTip||w.errorTip),D=t.computed(()=>l.errorIcon||w.errorIcon),W=t.computed(()=>K.value?"error":$.value?"warn":M.value?"info":""),H=()=>W.value.length>0,Z=t.computed(()=>W.value==="error"?K.value:W.value==="warn"?$.value:W.value==="info"?M.value:""),_=t.computed(()=>W.value==="error"?D.value:W.value==="warn"?E.value:W.value==="info"?P.value:null),j=t.computed(()=>{const z={[`${p}__tip`]:!0,[`${p}__tip--${W.value}`]:!0,[`${p}--animate`]:!0};return W.value==="error"&&l.errorClass?z[`${l.errorClass}`]=!0:W.value==="warn"&&l.warnClass?z[`${l.warnClass}`]=!0:W.value==="info"&&l.infoClass&&(z[`${l.infoClass}`]=!0),z}),I=t.computed(()=>{const z={};return d&&d.value==="top"||!f()?z["padding-left"]="0px":S&&S.value&&(z["padding-left"]=he(S.value)),z}),L=t.ref();let x="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([z,ee,te,ae])=>{L.value&&(z&&!ue(ee)?x?a.show(L.value,ee,{...ae,id:x,type:te},!0):x=a.show(L.value,ee,{...ae,type:te},!0):a.hide(x))});let F=null;const q=()=>{F||!L.value||(F=new IntersectionObserver(z=>{let ee=!1;for(let te of z)if(te.intersectionRatio>0){ee=!0,ee&&r.emit("appear",te);break}ee||r.emit("disappear")}),F.observe(L.value))},R=()=>{!F||!L.value||(F.unobserve(L.value),F=null)};t.watch(()=>pe(l.appearListen),z=>{z?q():R()}),t.onMounted(()=>{pe(l.appearListen)&&q()}),t.onUnmounted(R);const Y=()=>{if(!f())return null;const z=[],ee=r.slots?.label?.()??l.label,te={class:A.value},ae=t.h("div",te,[ee]);if(z.push(ae),r.slots.fixedPreTip){const Ee=r.slots.fixedPreTip();z.push(Ee)}const ce={class:B.value,style:N.value};return t.h("div",ce,z)},O=()=>{const z=[];if(r.slots.prepend){const te=r.slots.prepend();z.push(te)}if(r.slots.default){const te=r.slots.default();z.push(te)}if(r.slots.append){const te=r.slots.append();z.push(te)}if(r.slots.fixedTip){const te={class:[`${p}__fixed-tip`]},ae=t.h("div",te,[r.slots.fixedTip()]);z.push(ae)}const ee={ref:L,class:V.value,style:T.value};return t.h("div",ee,z)},U=()=>{const z=_.value;return z?typeof z=="function"?t.h("div",{class:"fox-item__tip--icon"},[z()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(z)]):null},G=()=>{const z=Z.value;return z?typeof z=="function"?t.h("div",{class:"fox-item__tip--text"},[z()]):t.h("div",{class:"fox-item__tip--text"},[z]):null},Q=()=>{if(!H())return null;const z=[],ee=U();ee&&z.push(ee);const te=G();te&&z.push(te);const ae={class:j.value,style:I.value};return t.h("div",ae,z)},J=()=>r.slots?.hide?.()??null;return()=>{const z=[],ee=[],te=Y();te&&ee.push(te);const ae=O();ae&&ee.push(ae);const ce={class:C.value},Ee=t.h("div",ce,ee);z.push(Ee);const De=Q();De&&z.push(De);const Ye=J();Ye&&z.push(Ye);const Jn={class:h.value,style:y.value,prop:l.prop};return t.h("div",Jn,z)}}}}const{componentName:yc,create:vc,scope:bc}=X("item"),Se=vc(gc(yc,bc,Bt,!1));function kc(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,String],required:!1,default:!1}},setup(a,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=He(),i=$n();En(!1);const c=t.computed(()=>{const m={};if(a.width)a.width!=="auto"&&(m.width=he(a.width));else if(i&&s){const p=xn(s,!1),u=Dn(s,!1);if(p.value&&u){if(p.value.type==="grid"){const h=qn(u,p.value,a.span,a.offset);Object.assign(m,h)}else if(p.value.type==="flow"){const h=In(u,p.value,a.span,a.offset,a.width);Object.assign(m,h)}}}return m});return()=>{const m=[];if(o.slots.default){const u=o.slots.default();if(a.divide)for(let h=0;h<u.length;h++){if(h>0){const b=t.h("div",{class:{[`${l}__divide`]:!0}});m.push(b)}m.push(u[h])}else Reflect.apply([].push,m,u)}const p={class:r.value,style:c.value};return t.h("div",p,m)}}}}const{componentName:Sc,create:Cc,scope:a2}=X("row-item"),Xo=Cc(kc(Sc));function wc(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(a,o){const l=He(),r=$n();En(!1);const s=t.computed(()=>r&&l?xn(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),m=t.computed(()=>{const p={};if(a.width)a.width!=="auto"&&(p.width=he(a.width));else{const u=r&&l?Dn(l,!1):null;if(s.value&&u){if(s.value.type==="grid"){const h=qn(u,s.value,a.span,a.offset);Object.assign(p,h)}else if(s.value.type==="flow"){const h=In(u,s.value,a.span,a.offset,a.width);Object.assign(p,h)}}}return p});return()=>{const p={class:c.value,style:m.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",p,o.slots.default()):t.h("div",p)}}}}const{componentName:Nc,create:Bc,scope:r2}=X("slot-item"),Qo=Bc(wc(Nc)),Ka={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 Ac(e,n,a,o){return{props:{...me,...ge,...Ka},emits:["change","update:modelValue","blur","focus","clear"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:m}=re.useFoxI18n(n),p=m(l,["placeholder"]),u=t.ref(!1),h=xe(l,"modelValue"),b=e,y=t.computed(()=>({[b]:!0,"is-disabled":s.value,"is-readonly":i.value})),k=Be(t.computed(()=>l.textAlign),"textAlign"),v=t.computed(()=>{const E={};return k.value&&(E["text-align"]=k.value),E}),f=E=>{let D=E.target.value;l.type==="digit"&&(D=bo(D,!0)),l.type==="number"&&(D=bo(D,!1)),l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),h.value=D,c("update:modelValue",D,E),c("change",D,E)};let d=xe(l,"hintText"),g=t.ref(!1);const C=E=>{let D=E.target.value;u.value=!0,ue(d.value)||(g.value=!0),c("focus",D,E)},B=E=>{setTimeout(()=>{g.value&&(g.value=!1),u.value=!1},0);let D=E.target.value;l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),c("blur",D,E)},S=t.computed(()=>({[`${b}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),N=t.computed(()=>{const E={};return r.slots.append&&!A.value&&!P.value&&(E.display="none"),E}),A=t.computed(()=>ye(l.unit)>0),V=t.computed(()=>!P.value),T=t.computed(()=>({[`${b}__unit`]:!0,hidden:!V.value})),w=E=>{h.value="",c("update:modelValue","",E),c("change","",E),c("clear","")},M=t.computed(()=>pe(l.clearable)&&!s.value&&!i.value),P=t.computed(()=>{let E=ye(h.value)>0;return pe(l.clearable)&&E&&u.value}),$=t.computed(()=>({action:!0,hidden:!P.value}));return()=>{const E={class:y.value,style:v.value,type:l.type,maxlength:l.maxLength,placeholder:p.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:f,onFocus:C,onBlur:B},K=[],D=t.h("input",E);K.push(D);const W=[];if(M.value){const x={class:["action-icon"]},F=t.h(o,x),q={class:$.value,onClick:w},R=t.h("view",q,{default:()=>[F]});W.push(R)}if(A.value){const x=t.h("view",{class:T.value},[l.unit]);W.push(x)}const H={class:S.value,style:N.value},Z=t.h("view",H,{default:()=>W});K.push(Z);const _={default:()=>K};_.label=r.slots.default,_.prepend=r.slots.prepend,_.append=r.slots.append,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const I={...Nt(l,Ka),hintText:d.value,hintVisible:g.value,prop:`${l.prop}_item`};return t.h(a,I,_)}}}}const{componentName:Vc,create:Tc,scope:$c}=X("input-item"),Go=Tc(Ac(Vc,$c,Se,oe.CircleClose));function Ua(e,n=0){let a=`${e}`,o=a.indexOf(".");if(o==-1)return a;let l=o;for(let r=a.length-1;r>=o;r--)if(a.charAt(r)!="0"){l=r;break}return l-o<n?l=o+n+1:l!=o&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function Ha(e,n,a=20){if(typeof n=="string"&&(n=fe(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=$r(`${e}`,`${n}`);return Ua(o)}else{let o=zo(`${e}`,Er(`${n}`),20);return Ua(o)}}function Ec(e,n=-1,a=!1,o=3,l=","){return vn(e,n,a,o,l)}function ja(e,n,a,o,l=!0){if(e=="")return"";if(e=xr(e),n=fe(n),n==1)return e;if(o)e=Ha(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(fe(a)+2,"0"):e=zo(e,1,fe(a)));else{let r=-1*n;e=Ha(e,r)}return e}function Wa(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=pe(n.minInclude),l=go(e,n.min);if(o&&l==-1||!o&&(l==0||l==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let o=pe(n.maxInclude),l=go(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Ya={clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function xc(e,n,a,o){return{props:{...me,...ge,...Ya},emits:["change","update:modelValue","blur","focus","clear"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),m=t.ref(!1),p=xe(l,"modelValue"),u=t.ref("");t.watch([()=>p.value,()=>l.rates,()=>l.precision],([H,Z,_])=>{if(ue(H)){u.value="";return}const j=ja(H,Z,_,!1);u.value!==j&&(u.value=j)},{immediate:!0});const h=t.computed(()=>{let H="";return m.value&&(H=u.value),H}),{t:b}=re.useFoxI18n(n),y=t.computed(()=>{let H=l.placeholder??"";return!m.value&&!ue(u.value)?H=Ec(u.value,l.decimalLength,l.autoPadding,l.digits,l.separator):H=ue(H)?b(["placeholder"]):H,H}),k=e,v=t.computed(()=>({[k]:!0,[`${k}__placeholder`]:u.value.length>0,"is-disabled":s.value,"is-readonly":i.value})),f=Be(t.computed(()=>l.textAlign),"textAlign"),d=t.computed(()=>{const H={};return f.value&&(H["text-align"]=f.value),H}),g=t.ref(""),C=t.computed(()=>{let H=g.value;return ue(H)&&(H=l.errorTip??""),H}),B=t.ref(""),S=t.ref(!1),N=H=>{let _=H.target.value;if(ue(_)){u.value="",p.value="",c("update:modelValue","",H),c("change","",H),pe(l.showTip)&&S.value&&(S.value=!1);return}if(_.length>=2){let j=_;if(j.charAt(0)=="-"&&(j=j.substring(1)),j.length>=2&&j.charAt(0)=="0"&&j.charAt(1)!="."){t.triggerRef(u);return}}if(_!="-"){if(!Rr(_)){t.triggerRef(u);return}if(l.integerLength!=-1&&Or(_)>Number(l.integerLength)){t.triggerRef(u);return}if(l.decimalLength&&l.decimalLength!=-1&&Kr(_)>Number(l.decimalLength)){t.triggerRef(u);return}let j=Wa(_,l);if(j.maxValid===!1){g.value=j.message,t.triggerRef(u);return}}else if(l.min!=null&&fe(l.min)>=0){t.triggerRef(u);return}B.value=_,pe(l.showTip)&&(S.value=_.length>0),u.value=_,p.value=ja(_,l.rates,l.precision,!0),c("update:modelValue",p.value,H),c("change",p.value,H)},A=H=>{if(m.value=!0,pe(l.showTip)){let Z=u.value;ue(Z)&&(Z=l.hintText),ue(Z)||(B.value=Z,S.value=!0)}g.value="",c("focus",p.value,H)},V=H=>{if(setTimeout(()=>{m.value=!1,pe(l.showTip)&&S.value===!0&&(S.value=!1)},0),!ue(u.value)){let Z=Wa(u.value,l);if(Z.minValid===!1||Z.maxValid===!1){g.value=Z.message;return}}c("update:modelValue",p.value,H),c("blur",p.value,H)},T=t.computed(()=>({[`${k}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),w=t.computed(()=>{const H={};return r.slots.append&&!M.value&&!D.value&&(H.display="none"),H}),M=t.computed(()=>ye(l.unit)>0),P=t.computed(()=>!D.value),$=t.computed(()=>({[`${k}__unit`]:!0,hidden:!P.value})),E=H=>{p.value="",c("update:modelValue","",H),c("change","",H),c("clear","")},K=t.computed(()=>pe(l.clearable)&&!s.value&&!i.value),D=t.computed(()=>{let H=ye(p.value)>0;return pe(l.clearable)&&H&&m.value}),W=t.computed(()=>({action:!0,hidden:!D.value}));return()=>{let H={class:v.value,style:d.value,type:"digit",maxlength:l.maxLength,placeholder:y.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:N,onFocus:A,onBlur:V},Z=[],_=t.h("input",H);Z.push(_);let j=[];if(K.value){const Y={class:["action-icon"]},O=t.h(o,Y),U={class:W.value,onClick:E},G=t.h("view",U,{default:()=>[O]});j.push(G)}if(M.value){const Y=t.h("view",{class:$.value},[l.unit]);j.push(Y)}const I={class:T.value,style:w.value},L=t.h("view",I,{default:()=>j});Z.push(L);const x={default:()=>Z};x.label=r.slots.default,x.prepend=r.slots.prepend,x.append=r.slots.append,x.fixedPreTip=r.slots.fixedPreTip,x.fixedTip=r.slots.fixedTip;let q={...Nt(l,Ya),errorTip:C.value,hintText:B.value,hintVisible:S.value,hintType:"number",prop:`${l.prop}_item`};return t.h(a,q,x)}}}}const{componentName:Dc,create:Ic,scope:qc}=X("money-item"),Zo=Ic(xc(Dc,qc,Se,oe.CircleClose)),Bo={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:Mc,create:Pc,scope:Lc}=X("textarea"),zc=Pc({props:{...Bo},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=re.useFoxI18n(Lc);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const h=Mc;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=l.value;h.style.height="auto";let b=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:y,minHeight:k}=e.autosize;y!==void 0&&(b=Math.min(b,y)),k!==void 0&&(b=Math.max(b,k))}b&&(h.style.height=b+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,b)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,b),n("change",h,b)};return{...o,textareaRef:l,classes:r,styles:s,change:h=>{const b=h.target;c(b.value,h)},focus:h=>{e.disabled||e.readonly||n("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let y=h.target.value;c(y,h),n("blur",{value:y,event:h})}}}}),Fc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Rc={key:0,class:"fox-textarea__limit"};function Oc(e,n,a,o,l,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: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)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Fc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Rc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const Pn=ne(zc,[["render",Oc]]);function Kc(e,n,a,o){return{props:{...me,...ge,...Bo},emits:["update:modelValue","change","blur","focus"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),m=xe(l,"modelValue"),p=k=>{m.value=k,c("update:modelValue",k,{}),c("change",k,{})};let u=xe(l,"hintText"),h=t.ref(!1);const b=k=>{ue(u.value)||(h.value=!0),c("focus",m.value,k)},y=k=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",m.value,k)};return()=>{const v={...ve(l,Bo),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":p,onFocus:b,onBlur:y},f=[],d=t.h(o,v);f.push(d);const g={default:()=>f};g.label=r.slots.default,g.prepend=r.slots.prepend,g.append=r.slots.append,g.fixedPreTip=r.slots.fixedPreTip,g.fixedTip=r.slots.fixedTip;const C=ve(l,ge,me);return t.h(a,{...C,prop:`${l.prop}_item`},g)}}}}const{componentName:Uc,create:Hc,scope:jc}=X("textarea-item"),Jo=Hc(Kc(Uc,jc,Se,Pn));function Wc(e){return e===window}const Ve=e=>{const n=t.unref(e);if(Wc(n)){const a=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};let Yc=2e3;const Xa=()=>Yc++,ze={visible:{type:Boolean,default:!1},zIndex:{type:[String,Number]},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,Array],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:{}}},Xc=(e,n)=>({components:n,props:{...ze},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:o}){const l=t.reactive({zIndex:0,showSlot:!0,closed:a.closeable});a.visible&&(l.zIndex=Xa());const r=t.computed(()=>{const k=e,v=[k,`${k}--${a.position}`];return a.round&&v.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&v.push(`${k}--${a.position}--safebottom`),typeof a.popClass=="string"?v.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(f=>{v.push(f)}),v}),s=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),i=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{o("update:visible",!0),a.zIndex?l.zIndex=a.zIndex:l.zIndex=Xa(),a.destroyOnClose&&(l.showSlot=!0),o("open")},m=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},p=k=>{o("click-pop",k)},u=k=>{k.stopPropagation(),o("click-close-icon",k),o("update:visible",!1)},h=k=>{o("click-overlay",k),a.closeOnClickOverlay&&o("update:visible",!1)},b=k=>{o("opend",k)},y=k=>{o("closed",k)};return t.watch(()=>a.visible,k=>{a.visible?c():m()}),t.watch(()=>a.closeable,k=>{l.closed=k}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:p,onClickCloseIcon:u,onClickOverlay:h,onOpened:b,onClosed:y}}});let $t=0;const Qa="fox-overflow-hidden",Ga=()=>it?document.body:{classList:[]},Qc=e=>[()=>{if(e())try{!$t&&Ga().classList.add(Qa),$t++}catch{}},()=>{if(e()&&$t)try{$t--,!$t&&Ga().classList.remove(Qa)}catch{}}],Gc={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:Zc,create:Jc}=X("overlay"),_c=Jc({props:{...Gc},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=Qc(()=>e.lockScroll),l=t.computed(()=>({[Zc]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,i=>{i?a():o()}),{classes:l,style:r,onClick:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function eu(e,n,a,o,l,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:n[0]||(n[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 rt=ne(_c,[["render",eu]]),{componentName:tu,create:nu}=X("popup"),ou=nu(Xc(tu,{FoxOverLay:rt,Close:oe.Close}));function lu(e,n,a,o,l,r){const s=t.resolveComponent("FoxOverLay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[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:n[0]||(n[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)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const de=ne(ou,[["render",lu]]),Za=10;function us(e,n){return e>n&&e>Za?"horizontal":n>e&&n>Za?"vertical":""}function _o(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function el(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const m=s.touches[0];e.deltaX=m.clientX-e.startX,e.deltaY=m.clientY-e.startY,e.moveX=m.clientX,e.moveY=m.clientY}else{const c=s;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=us(e.offsetX,e.offsetY))},start:s=>{if(o(),s.touches){const m=s.touches[0];e.startX=m.clientX,e.startY=m.clientY}else{const c=s;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function _e(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),m=t.ref(0),p=t.ref(""),u=()=>p.value==="vertical",h=()=>p.value==="horizontal",b=()=>{s.value=0,i.value=0,c.value=0,m.value=0,p.value="",a.value=0};return{move:v=>{if(v.touches){const g=v.touches[0];s.value=g.clientX-e.value,i.value=g.clientY-n.value,l.value=g.clientX,r.value=g.clientY}else{const d=v;s.value=d.clientX-e.value,i.value=d.clientY-n.value,l.value=d.clientX,r.value=d.clientY}c.value=Math.abs(s.value),m.value=Math.abs(i.value),o.value=Date.now()-a.value,p.value||(p.value=us(c.value,m.value))},start:v=>{if(b(),v.touches){const g=v.touches[0];e.value=g.clientX,n.value=g.clientY}else{const d=v;e.value=d.clientX,n.value=d.clientY}a.value=Date.now()},reset:b,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:m,direction:p,isVertical:u,isHorizontal:h}}const ds={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:360}},Ao={...ze,...ds,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String},isAutoBackFill:{type:[Boolean],default:!0}};let fs=36;function au(){return fs}function ru(e){fs=e}function Pe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Vo(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function su(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function st(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ja(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let iu=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function cu(){const e=t.getCurrentInstance();return new iu(e.proxy)}function _a(e,n,a){const o=Pe(e,n),l=Pe(e,a);if(o!==l)return!1;const r=st(e,n),s=st(e,a);return r===s}function uu(e,n,a,o){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const l=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=n[s];let m=a[s].findIndex(p=>{if(r==="text")return Pe(e,p)===i;if(r==="value"){let u=st(e,p);return u==null&&(u=Pe(e,p)),u===i}else if(r==="item")return _a(e,p,i)});if(m==-1)break;l.push(m)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let m=s.findIndex(u=>{if(r==="text")return Pe(e,u)===c;if(r==="value"){let h=st(e,u);return h==null&&(h=Pe(e,u)),h===c}else if(r==="item")return _a(e,u,c)});if(m==-1)break;l.push(m);const p=Vo(e,s[m]);if(!Array.isArray(p))break;s=p}}return l}function er(e,n,a,o){if(a.length==0)return null;const l={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=a[s];let c=n[s];c<0&&c>=i.length&&(c=0);const m=i[c],p=Pe(e,m);if(l.texts.push(p),l.items.push(m),r==="text")l.values.push(p);else if(r==="value"){let u=st(e,m);u==null&&(u=p),l.values.push(u)}else l.values.push(m)}else{let s=a[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=s.length&&(c=0);const m=s[c],p=Object.assign({},m);p.children=null;const u=Pe(e,m);if(l.texts.push(u),l.items.push(p),r==="text")l.values.push(u);else if(r==="value"){let h=st(e,m);h==null&&(h=u),l.values.push(h)}else l.values.push(p);if(!Array.isArray(m.children))break;s=m.children}}return l}function tr(e){return{text:e,value:e}}const du=15,fu=300,mu=200,{create:pu}=X("picker-column");function hu(e){e.stopPropagation()}function gu(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&hu(e)}const yu=pu({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},visible:{type:Boolean,default:!1},...ds},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${fe(e.visibleItemCount)*+e.itemHeight}px`})),l=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=N=>N>=u.currIndex+8||N<=u.currIndex-8,i=t.computed(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${u.deg})`,top:`${r.value}px`})),c=N=>`transform: rotate3d(1, 0, 0, ${-u.rotation*N}deg) translate3d(0px, 0px, 104px)`,m=t.computed(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${u.scrollDistance+r.value}px, 0)`})),p=t.ref(null),u=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=N=>Pe(e,N),b=N=>st(e,N),y=_e(),k=()=>{u.transitionEndTrigger&&(u.transitionEndTrigger(),u.transitionEndTrigger=null)},v=(N,A=!1,V=!1)=>{if(u.currIndex=N,A){const T=()=>{u.moving=!1,n("update:modelValue",N),n("change",N)};V?u.transitionEndTrigger=T:T()}},f=(N,A,V)=>{let T=N+u.startDistance;if(A==="end"){const w=-(e.source.length-1)*e.itemHeight;T<w&&(T=w),T>0&&(T=0);let M=Math.abs(Math.round(-T/e.itemHeight));const P=-M*e.itemHeight,$=`${(M+1)*u.rotation}deg`,E=V?V>0:!1;v(M,!0,E),d(P,A,V,$)}else{let w=(-T/e.itemHeight+1)*u.rotation;const M=(e.source.length+1)*u.rotation,P=0;if(w=Math.min(Math.max(w,P),M),e.threeDimensional&&(w<P||w>M))return;d(T,null,void 0,`${w}deg`)}},d=(N=0,A,V=mu,T)=>{A==="end"?u.scrollTime=V:u.scrollTime=0,u.deg=T,u.scrollDistance=N},g=(N,A)=>(N=Math.abs(N/A)/.003*(N<0?-1:1),N),C=N=>{e.readonly||(u.startDistance=u.scrollDistance,y.start(N),u.transitionEndTrigger=null)},B=N=>{e.readonly||(u.moving=!0,y.move(N),y.isVertical()&&(u.moving=!0,gu(N,!0)),f(y.deltaY.value,"",0))},S=()=>{if(e.readonly)return;const N=y.deltaY.value,A=y.duration.value;if(A<fu&&Math.abs(N)>du){const T=g(N,A);f(T,"end",e.swipeDuration)}else f(N,"end",0)};return t.watch(()=>e.modelValue,N=>{const A=u.currIndex-N;if(A!==0){u.currIndex=N,u.startDistance=u.scrollDistance;const V=A*e.itemHeight;f(V,"",0)}}),t.watch(()=>e.source,N=>{if(u.currIndex>=N.length){const T=(N.length-1-u.currIndex)*e.itemHeight;u.startDistance=u.scrollDistance,f(T,"end",0)}}),t.watch(()=>e.visible,N=>{N===!1&&k()}),t.onMounted(()=>{const N=-e.modelValue*e.itemHeight;f(N)}),{classes:a,styles:o,contentClasses:l,itemText:h,itemValue:b,...t.toRefs(u),roller:p,getItemText:Pe,onTouchStart:C,onTouchMove:B,onTouchEnd:S,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:m,stopMomentum:k}}}),vu={key:1,class:"fox-picker__item-tile"};function bu(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:n[4]||(n[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",vu,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const ku=ne(yu,[["render",bu]]),{create:Su,componentName:Cu,scope:wu}=X("picker"),Nu=Su({components:{Column:ku,Popup:de},props:{...Ao},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=re.useFoxI18n(wu),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(au());t.watch(()=>e.visible,w=>{w&&s.value<=0&&setTimeout(()=>{if(r.value){const M=Ve(r.value);s.value=M.height,ru(s.value)}},50)});const i=t.computed(()=>({[Cu]:!0})),c=cu(),m=t.ref("singleColumn");let p=t.ref([]);t.watch([()=>e.source,()=>e.params],async([w,M])=>{if(w){let P=await c.load("picker",w,M);if(P.length>0){let $=P[0];if(Array.isArray($)){if(typeof $[0]=="string"){let E=P,K=[];E.forEach(D=>{let W=D.map(H=>tr(H));K.push(W)}),p.value=K}else p.value=P;m.value="multipleColumn"}else if(typeof $=="string"){let E=P,K=[],D=E.map(W=>tr(W));K.push(D),p.value=K,m.value="singleColumn"}else{const E=Vo(e,$);Array.isArray(E)?(m.value="cascade",p.value=[P]):(m.value="singleColumn",p.value=[P])}}else p.value=[]}},{immediate:!0});const u=t.ref([]),h=t.ref(e.modelValue),b=t.ref([]),y=t.ref([]);t.watch([()=>e.modelValue,()=>p.value],([w,M])=>{let P=uu(e,w,M,m.value);if(!qe(P,y.value)){y.value=P;let $=er(e,P,M,m.value);$&&(u.value=$.texts,n("update:text",u.value))}});const k=t.ref(e.visible);t.watch(()=>e.visible,w=>{k.value=w});const v=w=>{let M=Ja(e,w);return Ae(M)?M.defaultIndex??0:0},f=w=>{if(e.readonly===!0)return!0;let M=Ja(e,w);return Ae(M)?M.readonly??!1:!1},d=(w,M)=>{let P=y.value;P[w]=M;for(let E=0;E<w;E++)P[E]==null&&(P[E]=v(E));if(m.value==="cascade")for(let E=w+1;E<C.value.length;E++){let K=v(E);E<P.length?P[E]=K:P.push(K)}else for(let E=P.length;E<C.value.length;E++){let K=v(E);P.push(K)}y.value=P;let $=er(e,P,p.value,m.value);$&&(u.value=$.texts,h.value=$.values,b.value=$.items)},g=w=>w<y.value.length?y.value[w]:v(w),C=t.computed(()=>{if(p.value.length==0)return[];if(m.value=="singleColumn"||m.value=="multipleColumn")return p.value;let w=[],M=0,P=p.value[0],$=0;for(;;){let E=P.map(W=>{let H=Object.assign({},W);return su(e,H,null),H});w.push(E),M>=y.value.length?$=0:$=y.value[M],($<0||$>=P.length)&&($=0);let K=P[$];const D=Vo(e,K);if(!Array.isArray(D))break;P=D,M++}return w}),B=t.computed(()=>fe(+e.visibleItemCount-1)/2*s.value),S=(w=!1)=>{if(e.readonly===!0){w&&n("update:visible",!1);return}let M=p.value.length-1;for(;M>=0&&!(y.value[M]===null||y.value[M]===void 0);M--);if(M>=0&&d(M,0),m.value==="singleColumn"){let P=h.value.length>0?h.value[0]:"",$=b.value.length>0?b.value[0]:null;n("update:modelValue",P),n("update:text",u.value),n("change",P,$),w&&(n("confirm",P),n("update:visible",!1))}else n("update:modelValue",h.value),n("update:text",u.value),n("change",h.value,b.value),w&&(n("confirm",h.value),n("update:visible",!1))};return{...l,pickerLineRef:r,classes:i,columns:C,dataType:m,show:k,itemHeight:s,top:B,isReadonly:f,getIndex:g,change:(w,M)=>{if(d(w,M),e.isAutoBackFill){const P=!k.value;S(P)}},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{S(!0)},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)}}}}),Bu={class:"fox-picker__bar"},Au={class:"fox-picker__title"},Vu={class:"fox-picker__bar__action"},Tu={class:"fox-picker__column"};function $u(e,n,a,o,l,r){const s=t.resolveComponent("Column"),i=t.resolveComponent("Popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{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,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",Bu,[t.createElementVNode("view",Au,t.toDisplayString(e.title),1),t.createElementVNode("view",Vu,[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",Tu,[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(s,{visible:e.show,source:c,readonly:e.isReadonly(m),"column-index":m,modelValue:e.getIndex(m),"onUpdate:modelValue":p=>e.change(m,p),"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,["visible","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 bt=ne(Nu,[["render",$u]]);function Eu(e,n,a,o,l,r,s=!0){return{props:{...me,...ge,...Ao,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const m=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),b=h(i,["placeholder"]),y=t.ref(!1),k=xe(i,"modelValue"),v=t.ref([]),f=t.computed(()=>Array.isArray(v.value)?v.value.join(i.separator):v.value),d="fox-input-item",g=t.computed(()=>({[d]:!0,"is-disabled":m.value,"is-readonly":p.value})),C=Be(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const L={};return C.value&&(L["text-align"]=C.value),L}),S=t.ref(!1),N=()=>{S.value=!0},A=L=>{S.value=L},V=L=>{k.value=L,u("update:modelValue",L)},T=(L,x)=>{u("change",L,x)},w=L=>{let F=L.target.value;y.value=!0,u("focus",F,L)},M=L=>{setTimeout(()=>{y.value=!1},0);let F=L.target.value;i.maxLength&&F.length>Number(i.maxLength)&&(F=F.slice(0,Number(i.maxLength))),u("blur",F,L)},P=L=>{v.value=L,Array.isArray(L)&&L.length===0?u("update:text",L[0]):u("update:text",L)},$=t.computed(()=>({[`${d}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),E=t.computed(()=>ye(i.unit)>0),K=t.computed(()=>ye(i.unit)>0&&!y.value),D=t.computed(()=>({hidden:!K.value})),W=L=>{k.value="",u("update:modelValue","",L),u("change","",L),u("clear","")},H=t.computed(()=>i.clearable&&!m.value&&!p.value),Z=t.computed(()=>ye(k.value)>0&&y.value),_=L=>{Z.value?W(L):N()},j=t.computed(()=>Z.value&&H.value?o:l),I=t.computed(()=>({action:!0}));return()=>{const L={class:g.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:w,onBlur:M};s&&(L.disabled=!0);const x=[],F=t.h("input",L);x.push(F);const q=[],R={class:["action-icon"]},Y=t.h(j.value,R),O={class:I.value,onClick:_},U=t.h("view",O,{default:()=>[Y]});if(q.push(U),E.value){const ce=t.h("view",{class:D.value},[i.unit]);q.push(ce)}const G={class:$.value},Q=t.h("view",G,{default:()=>q});x.push(Q);const J={default:()=>x};J.label=c.slots.default,J.prepend=c.slots.prepend,J.append=c.slots.append,J.fixedPreTip=c.slots.fixedPreTip,J.fixedTip=c.slots.fixedTip;const z=ve(i,Ao);z.disabled=!1,z.readonly=m.value||p.value,z.visible=S.value,z["onUpdate:visible"]=A,z.modelValue=k.value,z["onUpdate:modelValue"]=V,z.text=v.value,z["onUpdate:text"]=P,z.onChange=T;const ee=t.h(r,z);J.hide=()=>[ee];const te=ve(i,ge,me);return t.h(a,te,J)}}}}const{componentName:xu,create:Du,scope:Iu}=X("picker-item"),tl=Du(Eu(xu,Iu,Se,oe.CircleClose,oe.ArrowRight,bt,!1)),tn=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:m,...p}=o,u={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:m,_parent:n};return u.children&&u.children.length&&(u.children=tn(u.children,u,a)),u}),ms=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&ms(o.children,n)},qu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Mu=(e,n)=>{const a={...qu,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(m=>{m={...m};const{[l]:p,[r]:u}=m,h=c[u]=c[u]||[];!i.length&&u===o&&(i=h),h.push(m),m.children=c[p]||(c[p]=[])}),s&&Object.keys(c).forEach(m=>{c[m].length>1&&c[m].sort((p,u)=>p[s]-u[s])}),c=null,i},Pu={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},nr=(e,n)=>n[e.textKey],Et=(e,n)=>n[e.valueKey],Lu=(e,n)=>n[e.visibleKey],or=(e,n)=>n[e.disabledKey],zu=(e,n)=>{const a=n[e.doitKey];return pe(a)},Fu=(e,n)=>{const a=n[e.numKey];return a==null?null:fe(n[a])},lr=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function Ru(e,n,a,o=!1){return{props:{...Pu},emits:["update:modelValue","change","click"],setup(l,{slots:r,emit:s}){const i=t.computed(()=>{const j={};return j[`${e}`]=!0,j}),c=t.computed(()=>{const j={};return j[`${e}__titles`]=!0,j[`${l.direction}`]=!0,l.align==="left"&&(j.left=!0),l.scroll===!0&&(j.scrollable=!0),l.shape&&(j[`${l.shape}`]=!0),j}),m=t.computed(()=>({})),p=t.computed(()=>{if(!l.gutter)return 0;const j=ie(l.gutter);return j<=0?0:j}),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,j=>{u.value!==j&&(u.value=j,D(!1))});const h=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),b=t.computed(()=>{const j={};return k.value||(j.display="none"),j}),y=t.ref(),k=t.ref(!1),v=()=>{const j=!k.value;f(j)},f=j=>{const I=j;I?(k.value=I,setTimeout(()=>{h.value["fox-tabs-bar__popup--show"]=!0,h.value["fox-tabs-bar__popup--hide"]=!1},0)):(h.value["fox-tabs-bar__popup--show"]=!1,h.value["fox-tabs-bar__popup--hide"]=!0,y.value?y.value.addEventListener("transitionend",()=>{k.value=!1},{once:!0}):setTimeout(()=>{k.value=!1},0))},d=t.ref(),g=t.ref([]),C=(j,I)=>{g.value[I]=j},B=j=>I=>{C(I,j)},S=(j,I)=>{const L=d.value,x=g.value;if(!L||!x||!x[j])return;const F=x[j];let q=0;l.direction==="vertical"?q=F.offsetTop-(L.offsetHeight-F.offsetHeight)/2:q=F.offsetLeft-(L.offsetWidth-F.offsetWidth)/2,N(L,q,I?0:.3,l.direction)},N=(j,I,L,x)=>{let F=0;const q=x==="horizontal"?j.scrollLeft:j.scrollTop,R=L===0?1:Math.round(L*1e3/16);function Y(){x==="horizontal"?j.scrollLeft+=(I-q)/R:j.scrollTop+=(I-q)/R,++F<R&&Re(Y)}Y()},A=(j,I)=>{const L=Et(l,j),x={};return x[`${e}__titles-item`]=!0,x.disabled=or(l,j),x.active=L===u.value,l.shape&&(x[`${l.shape}`]=!0),l.ellipsis&&(x.ellipsis=!0),I&&(I.class&&(x[`${I.class}`]=!0),I.disabled===!0&&(x.disabled=I.disabled)),x},V=(j,I)=>{const L={};if(p.value>0){const x=Math.abs(p.value/2);l.direction==="vertical"?(L["margin-top"]=`${x}px`,L["margin-bottom"]=`${x}px`):(L["margin-left"]=`${x}px`,L["margin-right"]=`${x}px`)}return I&&I.style&&Object.assign(L,I.style),L},T=(j,I)=>`${Et(l,j)??I}`,w=(j,I)=>{const L=Et(l,j),x={};x[`${e}__popup-item`]=!0,x.disabled=or(l,j),x.active=L===u.value,l.shape&&(x[`${l.shape}`]=!0);const F=lr(l,j,I);return F&&F.disabled===!0&&(x.disabled=F.disabled),x},M=t.computed(()=>(l.data??[]).filter(I=>Lu(l,I)!==!1)),P=(j,I)=>{const L=Et(l,j);if(s("click",j,I),u.value==L)return;const x=()=>{u.value=L,l.scroll&&S(I,!1),s("update:modelValue",L),s("change",j,I)};if(typeof l.beforeChange=="function"){const F=l.beforeChange(j,I);gt(F)?F.then(q=>{q!==!1&&x()}).catch(()=>{x()}):F!==!1&&x()}else x()},$=(j,I)=>function(){P(j,I)},E=(j,I)=>{P(j,I),f(!1)},K=(j,I)=>function(){E(j,I)},D=j=>{if(!Array.isArray(l.data)||!l.scroll)return;const I=l.data.findIndex(L=>Et(l,L)===u.value);I!==-1&&S(I,j)};t.watch(()=>l.data,()=>{setTimeout(D,0)}),t.onMounted(()=>{D(!0)});const W=(j,I)=>{if(r.item)return r.item({item:j,index:I});const L=lr(l,j,I),x=[];if(r.text){const Y=r.text({item:j,index:I});x.push(Y)}else{const Y=[];if(L?.doit===!0||zu(l,j)){const Q={class:[`${e}__titles-item-tip`,"doit"]},J=t.h("view",Q);Y.push(J)}const O=L?.num??Fu(l,j);if(O){let Q="";const J=fe(O);J>=100?Q="99+":Q=`${J}`;const z={class:[`${e}__titles-item-tip`,"num"]},ee=t.h("view",z,[Q]);Y.push(ee)}const U={class:`${e}__titles-item-text`};Y.push(nr(l,j));const G=t.h("view",U,Y);x.push(G)}const F={class:`${e}__titles-item-line`},q=t.h("view",F);x.push(q);const R={ref:B(I),class:A(j,L),style:V(j,L),key:T(j,I),onClick:$(j,I)};return t.h("view",R,x)},H=()=>{const j=r.default?r.default():[];if(j.length===0)for(let L=0;L<M.value.length;L++){const x=M.value[L],F=W(x,L);j.push(F)}const I={ref:d,class:c.value,style:m.value};return t.h("view",I,j)},Z=()=>{let j=null;r.navigation?j=r.navigation():j=t.h(a);const I={class:`${e}__navigation`,onClick:v};return t.h("view",I,[j])},_=()=>{const j=[];for(let L=0;L<M.value.length;L++){const x=M.value[L];let F=null;r.popupItem?F=r.popupItem({item:x,index:L}):F=nr(l,x);const q={class:w(x,L),key:T(x,L),onClick:K(x,L)},R=t.h("view",q,[F]);j.push(R)}const I={class:h.value,style:b.value};return t.h("view",I,j)};return()=>{const j=[],I=H();if(j.push(I),l.showQuickNavigation){const x=Z();j.push(x);const F=_();j.push(F)}const L={class:i.value};return t.h("view",L,j)}}}}const{create:Ou,componentName:Ku,scope:Uu}=X("tabs-bar"),Ln=Ou(Ru(Ku,Uu,oe.MoreH,!1)),ps=Symbol("TabsStatesKey"),Hu={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function ju(e,n,a=!1){return{props:{...Hu},emits:["update:modelValue","change"],setup(o,{emit:l,slots:r}){const s=t.shallowRef([]),i={current:t.ref(o.modelValue??""),direction:t.ref(o.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:k=>{const v={name:k};i.current.value===k&&(v.loaded=!0),s.value.push(v),t.triggerRef(s)},remove:k=>{const v=s.value.findIndex(f=>f.name===k);v!==-1&&s.value.splice(v,1)},isLoaded:k=>{if(!o.lazy)return!0;const v=s.value.findIndex(f=>f.name===k);return v!==-1?i.current.value?s.value[v].loaded??!1:v===0:!1}};t.provide(ps,i);const c=k=>{const v=s.value.findIndex(f=>f.name===k);v!==-1&&(s.value[v].loaded=!0,t.triggerRef(s))};t.watch([()=>o.modelValue,()=>o.direction],([k,v])=>{i.current.value!==k&&(i.current.value=k??"",c(k??"")),i.direction.value!==v&&(i.direction.value=v)});const m=t.ref(null),p=t.ref(null),u=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0}));let h=!0;const b=t.computed(()=>{const k={},v=s.value.length;if(v<=0)return k;const f=s.value.findIndex(d=>d.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(k.height=`${v*i.tabHeight.value}px`,f!==-1&&(k.transform=`translate(0, -${f*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(k.width=`${v*i.tabWidth.value}px`,f!==-1&&(k.transform=`translate(-${f*i.tabWidth.value}px, 0)`)),h&&(h=!1,k.transition="transform 0s ease"),k});let y=null;return t.onMounted(()=>{if(!m.value)return;const k=()=>{const v=Tn(m.value);i.tabWidth.value=v.width,i.tabHeight.value=v.height};window.ResizeObserver&&(y=new window.ResizeObserver(k),y.observe(m.value)),k()}),t.onBeforeUnmount(()=>{y&&(y.disconnect(),y=null)}),()=>{const k={class:`${e}__panes`,style:b.value,ref:p},v=t.h("view",k,[r?.default?.()]),f={class:u.value,ref:m};return t.h("view",f,[v])}}}}const{create:Wu,componentName:Yu,scope:Xu}=X("tabs-container"),zn=Wu(ju(Yu,Xu,!1)),Qu={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Gu(e,n,a){return{props:{...Qu},setup(o,{emit:l,slots:r}){const s=t.inject(ps);t.onMounted(()=>{s.add(o.paneKey)}),t.onBeforeUnmount(()=>{s.remove(o.paneKey)});const i=t.computed(()=>{const m={};return s.direction.value==="vertical"&&s.tabHeight.value>0?m.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(m.width=`${s.tabWidth.value}px`),m}),c=t.computed(()=>o.loaded!=null?pe(o.loaded):s.isLoaded(o.paneKey));return()=>{let m=[];if(c.value)m=r?.default?.()??[];else if(r.empty)m=r.empty();else{const u={class:`${e}__empty-icon`},h=o.emptyIcon??a,b=t.h(h,u),y={class:`${e}__empty-text`},k=o.emptyText??"Loading",v=t.h("view",y,[k]),f={class:`${e}__empty`},d=t.h("view",f,[b,v]);m.push(d)}const p={class:`${e}`,style:i.value};return t.h("view",p,m)}}}}const{create:Zu,componentName:Ju,scope:_u}=X("tabs-pane"),Fn=Zu(Gu(Ju,_u,oe.Loading));class ar{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=tn(n,null,this.config)}updateChildren(n,a){a?a.children=tn(n,a,this.config):this.nodes=tn(n,null,this.config)}getNodeByValue(n){let a;return ms(this.nodes,o=>{if(o.value===n)return a=o,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===n[r.level]);if(!l)break;a.push(l),o=l.children}return a}isLeaf(n,a){const{leaf:o,children:l}=n,r=Array.isArray(l)&&!!l.length;return o||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:l}=n;return Array.isArray(l)&&!!l.length}}const{create:ed,scope:td}=X("cascader-pane"),nd=ed({components:{Loading:oe.Loading,Checklist:oe.Checklist,TabsBar:Ln,TabsContainer:zn,TabsPane:Fn},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{t:a}=re.useFoxI18n(td),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),s=t.ref(e.modelValue),i=t.ref(new ar([],{})),c=t.ref([]),m=t.computed(()=>o.value.lazy&&!!o.value.lazyLoad),p=t.computed(()=>r.value==!0||c.value.length==0?[{text:"Loading",value:0}]:c.value.map((d,g)=>({text:d.selectedNode?d.selectedNode.text:a("select"),value:g}))),u=new Map;let h;const b=async()=>{u.clear(),c.value=[],l.value=0,r.value=!1,h=null;let{options:d}=e;o.value.convertConfig&&(d=Mu(d,o.value.convertConfig)),i.value=new ar(d,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),m.value&&!i.value.nodes.length&&await k({root:!0,loading:!0,text:"",value:""}),c.value=[{nodes:i.value.nodes,selectedNode:null}],y()},y=async()=>{const d=s.value;if(d===void 0||!i.value.nodes.length)return;if(d.length===0){l.value=0,c.value=[{nodes:i.value.nodes,selectedNode:null}];return}let g=d;if(m.value&&Array.isArray(d)&&d.length){g=[];let C=i.value.nodes.find(B=>B.value===d[0]);if(C){g=[C.value],r.value=!0;const B=await d.slice(1).reduce(async(S,N)=>{const A=await S;await k(A);const V=A?.children?.find(T=>T.value===N);return V&&g.push(N),Promise.resolve(V)},Promise.resolve(C));await k(B),r.value=!1}}g.length&&d===e.modelValue&&i.value.getPathNodesByValue(g).map((B,S)=>{l.value=S,f.handleNode(B,!0)})},k=async d=>{if(!d)return;if(!o.value.lazyLoad){d.leaf=!0;return}if(i.value.isLeaf(d,m.value)||i.value.hasChildren(d,m.value))return;d.loading=!0;const g=d.root?null:d;let C=u.get(d);C||(C=new Promise(S=>{o.value.lazyLoad?.(d,S)}),u.set(d,C));const B=await C;Array.isArray(B)&&B.length>0?i.value.updateChildren(B,g):d.leaf=!0,d.loading=!1,u.delete(d)},v=d=>{const g=d.map(C=>C.value);s.value=g,n("change",g,d),n("update:modelValue",g,d)},f={async handleNode(d,g){const{disabled:C,loading:B}=d;if(!(!g&&C||!c.value[l.value])){if(i.value.isLeaf(d,m.value)){if(d.leaf=!0,c.value[l.value].selectedNode=d,c.value=c.value.slice(0,d.level+1),!g){const S=c.value.map(N=>N.selectedNode);v(S),n("pathChange",S)}return}if(i.value.hasChildren(d,m.value)){const S=d.level+1;if(c.value[l.value].selectedNode=d,c.value=c.value.slice(0,S),c.value.push({nodes:d.children||[],selectedNode:null}),l.value=S,!g){const N=c.value.map(A=>A.selectedNode);n("pathChange",N)}return}h=d,!B&&(await k(d),h===d&&(c.value[l.value].selectedNode=d,f.handleNode(d,g)))}},handleTabChange(d,g){h=null},formatTabTitle(d){return d.selectedNode?d.selectedNode.text:a("select")},isSelected(d,g){return d.selectedNode&&d.selectedNode.value===g.value}};return t.watch([o,()=>e.options],()=>{b()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,d=>{d!==s.value&&(s.value=d,y())}),t.watch(()=>e.visible,d=>{d&&Array.isArray(s.value)&&s.value.length>0&&y()}),{panes:c,panesTitles:p,initLoading:r,tabsCursor:l,...f}}}),od={class:"fox-cascader"},ld={role:"menu",class:"fox-cascader__pane"},ad=["aria-checked","aria-disabled","onClick"],rd={class:"fox-cascader__item__title"},sd=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function id(e,n,a,o,l,r){const s=t.resolveComponent("TabsBar"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),m=t.resolveComponent("TabsPane"),p=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",od,[t.createVNode(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(p,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=u=>e.tabsCursor=u)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(u,h)=>(t.openBlock(),t.createBlock(m,{"pane-key":h,key:h},{default:t.withCtx(()=>[t.createElementVNode("view",ld,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,b=>(t.openBlock(),t.createElementBlock("view",{key:b.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(u,b),disabled:b.disabled}]),"aria-checked":e.isSelected(u,b),"aria-disabled":b.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(b,!1)},[t.createElementVNode("view",rd,t.toDisplayString(b.text),1),b.loading?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(c,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,ad))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(m,{key:1,"pane-key":0},{default:t.withCtx(()=>[sd]),_:1}))]),_:1},8,["modelValue"])])}const cd=ne(nd,[["render",id]]),{create:ud}=X("cascader"),dd=ud({components:{FoxCascaderPane:cd,FoxPopup:de},props:{...ze,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=t.ref(e.modelValue),o=t.computed({get(){return e.visible},set(s){n("update:visible",s)}}),l=(s,i)=>{a.value=s,o.value=!1,n("change",s,i),n("update:modelValue",s)},r=s=>{n("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==a.value&&(a.value=s)}),{onChange:l,onPathChange:r,innerValue:a,innerVisible:o}}}),fd=["innerHTML"];function md(e,n,a,o,l,r){const s=t.resolveComponent("FoxCascaderPane"),i=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[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,fd)):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 Rn=ne(dd,[["render",md]]);function Rt(e,n){const a=e.textKey??"text";return n[a]??""}function Ot(e,n){const a=e.valueKey??"value";return n[a]}function hs(e,n){const a=e.childrenKey??"children";return n[a]}function _t(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=Rt(e,l),s=Ot(e,l);a.texts.push(r),a.values.push(s??"")}return a}function gs(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Rt(e,n[s])===r){const c=Ot(e,n[s])??"",m={[e.textKey]:r,[e.valueKey]:c};l.push(m);const p=hs(e,n[s]);Array.isArray(p)&&gs(e,p,a,o+1,l);return}}function ys(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Ot(e,n[s])===r){const c=Rt(e,n[s])??"",m={[e.textKey]:c,[e.valueKey]:r};l.push(m);const p=hs(e,n[s]);Array.isArray(p)&&ys(e,p,a,o+1,l);return}}function ro(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++){const l=Rt(e,n[o]),r=Rt(e,a[o]);if(l!==r)return!1;const s=Ot(e,n[o]),i=Ot(e,a[o]);if(s!==i)return!1}return!0}let pd=class{proxy;constructor(n){this.proxy=n}async load(n,a){const o="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=Je(this.proxy,o);return l===null?(console.error(`${o} component not found api function`),[]):(Ae(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await l(n,a))}};function hd(){const e=t.getCurrentInstance();return new pd(e.proxy)}const rr={modelValue:{type:[Array,String]},pathNodes:{type:[Array]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}};function gd(e,n,a,o,l,r,s=!1){return{props:{...me,...ge,...rr},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes"],setup(i,c){const m=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),b=h(i,["placeholder"]),y=t.ref(!1),k=hd(),v=t.ref([]);t.watch([()=>i.source,()=>i.params],async([F,q])=>{F&&(v.value=await k.load(F,q))},{immediate:!0});const f=t.ref([]),d=t.computed(()=>Array.isArray(f.value)?f.value.join(" "):f.value),g=t.ref([]),C=t.ref([]);t.watch([()=>i.modelValue],async([F])=>{if(i.lazy===!0){C.value.length==0&&(f.value=Array.isArray(F)?F:[],g.value=Array.isArray(F)?F:[]);return}if(i.valueType==="item"){let q=F;if(!ro(i,q,C.value)){C.value=q;let R=_t(i,q);f.value=R.texts,g.value=R.values}}else if(i.valueType==="text"){let q=F,R=[];if(gs(i,v.value,q,0,R),!ro(i,R,C.value)){C.value=R;let Y=_t(i,R);q.value=Y.texts,g.value=Y.values}}else{let q=[];if(ys(i,v.value,F,0,q),!ro(i,q,C.value)){C.value=q;let R=_t(i,q);f.value=R.texts,g.value=R.values}}},{immediate:!0});const B="fox-input-item",S=t.computed(()=>({[B]:!0,"is-disabled":m.value,"is-readonly":p.value})),N=Be(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const F={};return N.value&&(F["text-align"]=N.value),F}),V=t.ref(!1),T=()=>{m.value===!0||p.value===!0||(V.value=!0)},w=F=>{V.value=F},M=(F,q)=>{let R=q.map(O=>{if(O==null)return O;let U={...O};return Reflect.deleteProperty(U,"text"),U[i.textKey]=O.text??"",Reflect.deleteProperty(U,"value"),U[i.valueKey]=O.value??"",U});C.value=R;let Y=_t(i,R);f.value=Y.texts,g.value=Y.values,i.valueType==="text"?(u("change",f.value,R),u("update:modelValue",f.value)):i.valueType==="item"?(u("change",R,R),u("update:modelValue",R)):(u("change",g.value,R),u("update:modelValue",g.value)),u("update:pathNodes",R)},P=F=>{let q=F.map(R=>{if(R==null)return R;let Y={...R};return Reflect.deleteProperty(Y,"text"),Y[i.textKey]=R.text??"",Reflect.deleteProperty(Y,"value"),Y[i.valueKey]=R.value??"",Y});u("pathChange",q)},$=F=>{y.value=!0,u("focus",g.value,F)},E=F=>{setTimeout(()=>{y.value=!1},0),u("blur",g.value,F)},K=t.computed(()=>({[`${B}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),D=t.computed(()=>ye(i.unit)>0),W=t.computed(()=>ye(i.unit)>0&&!y.value),H=t.computed(()=>({hidden:!W.value})),Z=F=>{C.value=[],f.value=[],g.value=[],u("update:modelValue",[]),u("change",[],F),u("clear",[]),u("update:pathNodes",[])},_=t.computed(()=>i.clearable&&!m.value&&!p.value),j=t.computed(()=>{let F=g.value&&g.value.length>0;return i.clearable&&F&&y.value}),I=F=>{j.value?Z(F):T()},L=t.computed(()=>j.value&&_.value?o:l),x=t.computed(()=>({action:!0}));return()=>{const F={class:S.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:T,onFocus:$,onBlur:E};s&&(F.disabled=!0);const q=[],R=t.h("input",F);q.push(R);const Y=[],O={class:["action-icon"]},U=t.h(L.value,O),G={class:x.value,onClick:I},Q=t.h("view",G,{default:()=>[U]});if(Y.push(Q),D.value){const De=t.h("view",{class:H.value},[i.unit]);Y.push(De)}const J={class:K.value},z=t.h("view",J,{default:()=>Y});q.push(z);const ee={default:()=>q};ee.label=c.slots.default,ee.prepend=c.slots.prepend,ee.append=c.slots.append,ee.fixedPreTip=c.slots.fixedPreTip,ee.fixedTip=c.slots.fixedTip;let te={};te.visible=V.value,te["onUpdate:visible"]=w,te.modelValue=g.value,te.onChange=M,te.onPathChange=P,te.options=v.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 ae=t.h(r,te);ee.hide=()=>[ae];const ce=Nt(i,rr);return t.h(a,{...ce,prop:`${i.prop}_item`},ee)}}}}const{componentName:yd,create:vd,scope:bd}=X("cascader-item"),nl=vd(gd(yd,bd,Se,oe.CircleClose,oe.ArrowRight,Rn,!1));var je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function We(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var vs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",m="day",p="week",u="month",h="quarter",b="year",y="date",k="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|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,d={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("_")},g=function(P,$,E){var K=String(P);return!K||K.length>=$?P:""+Array($+1-K.length).join(E)+P},C={s:g,z:function(P){var $=-P.utcOffset(),E=Math.abs($),K=Math.floor(E/60),D=E%60;return($<=0?"+":"-")+g(K,2,"0")+":"+g(D,2,"0")},m:function P($,E){if($.date()<E.date())return-P(E,$);var K=12*(E.year()-$.year())+(E.month()-$.month()),D=$.clone().add(K,u),W=E-D<0,H=$.clone().add(K+(W?-1:1),u);return+(-(K+(E-D)/(W?D-H:H-D))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:u,y:b,w:p,d:m,D:y,h:c,m:i,s,ms:r,Q:h}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},B="en",S={};S[B]=d;var N=function(P){return P instanceof w},A=function P($,E,K){var D;if(!$)return B;if(typeof $=="string"){var W=$.toLowerCase();S[W]&&(D=W),E&&(S[W]=E,D=W);var H=$.split("-");if(!D&&H.length>1)return P(H[0])}else{var Z=$.name;S[Z]=$,D=Z}return!K&&D&&(B=D),D||!K&&B},V=function(P,$){if(N(P))return P.clone();var E=typeof $=="object"?$:{};return E.date=P,E.args=arguments,new w(E)},T=C;T.l=A,T.i=N,T.w=function(P,$){return V(P,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var w=function(){function P(E){this.$L=A(E.locale,null,!0),this.parse(E)}var $=P.prototype;return $.parse=function(E){this.$d=function(K){var D=K.date,W=K.utc;if(D===null)return new Date(NaN);if(T.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var H=D.match(v);if(H){var Z=H[2]-1||0,_=(H[7]||"0").substring(0,3);return W?new Date(Date.UTC(H[1],Z,H[3]||1,H[4]||0,H[5]||0,H[6]||0,_)):new Date(H[1],Z,H[3]||1,H[4]||0,H[5]||0,H[6]||0,_)}}return new Date(D)}(E),this.$x=E.x||{},this.init()},$.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},$.$utils=function(){return T},$.isValid=function(){return this.$d.toString()!==k},$.isSame=function(E,K){var D=V(E);return this.startOf(K)<=D&&D<=this.endOf(K)},$.isAfter=function(E,K){return V(E)<this.startOf(K)},$.isBefore=function(E,K){return this.endOf(K)<V(E)},$.$g=function(E,K,D){return T.u(E)?this[K]:this.set(D,E)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(E,K){var D=this,W=!!T.u(K)||K,H=T.p(E),Z=function(R,Y){var O=T.w(D.$u?Date.UTC(D.$y,Y,R):new Date(D.$y,Y,R),D);return W?O:O.endOf(m)},_=function(R,Y){return T.w(D.toDate()[R].apply(D.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(Y)),D)},j=this.$W,I=this.$M,L=this.$D,x="set"+(this.$u?"UTC":"");switch(H){case b:return W?Z(1,0):Z(31,11);case u:return W?Z(1,I):Z(0,I+1);case p:var F=this.$locale().weekStart||0,q=(j<F?j+7:j)-F;return Z(W?L-q:L+(6-q),I);case m:case y:return _(x+"Hours",0);case c:return _(x+"Minutes",1);case i:return _(x+"Seconds",2);case s:return _(x+"Milliseconds",3);default:return this.clone()}},$.endOf=function(E){return this.startOf(E,!1)},$.$set=function(E,K){var D,W=T.p(E),H="set"+(this.$u?"UTC":""),Z=(D={},D[m]=H+"Date",D[y]=H+"Date",D[u]=H+"Month",D[b]=H+"FullYear",D[c]=H+"Hours",D[i]=H+"Minutes",D[s]=H+"Seconds",D[r]=H+"Milliseconds",D)[W],_=W===m?this.$D+(K-this.$W):K;if(W===u||W===b){var j=this.clone().set(y,1);j.$d[Z](_),j.init(),this.$d=j.set(y,Math.min(this.$D,j.daysInMonth())).$d}else Z&&this.$d[Z](_);return this.init(),this},$.set=function(E,K){return this.clone().$set(E,K)},$.get=function(E){return this[T.p(E)]()},$.add=function(E,K){var D,W=this;E=Number(E);var H=T.p(K),Z=function(I){var L=V(W);return T.w(L.date(L.date()+Math.round(I*E)),W)};if(H===u)return this.set(u,this.$M+E);if(H===b)return this.set(b,this.$y+E);if(H===m)return Z(1);if(H===p)return Z(7);var _=(D={},D[i]=o,D[c]=l,D[s]=a,D)[H]||1,j=this.$d.getTime()+E*_;return T.w(j,this)},$.subtract=function(E,K){return this.add(-1*E,K)},$.format=function(E){var K=this,D=this.$locale();if(!this.isValid())return D.invalidDate||k;var W=E||"YYYY-MM-DDTHH:mm:ssZ",H=T.z(this),Z=this.$H,_=this.$m,j=this.$M,I=D.weekdays,L=D.months,x=function(Y,O,U,G){return Y&&(Y[O]||Y(K,W))||U[O].slice(0,G)},F=function(Y){return T.s(Z%12||12,Y,"0")},q=D.meridiem||function(Y,O,U){var G=Y<12?"AM":"PM";return U?G.toLowerCase():G},R={YY:String(this.$y).slice(-2),YYYY:this.$y,M:j+1,MM:T.s(j+1,2,"0"),MMM:x(D.monthsShort,j,L,3),MMMM:x(L,j),D:this.$D,DD:T.s(this.$D,2,"0"),d:String(this.$W),dd:x(D.weekdaysMin,this.$W,I,2),ddd:x(D.weekdaysShort,this.$W,I,3),dddd:I[this.$W],H:String(Z),HH:T.s(Z,2,"0"),h:F(1),hh:F(2),a:q(Z,_,!0),A:q(Z,_,!1),m:String(_),mm:T.s(_,2,"0"),s:String(this.$s),ss:T.s(this.$s,2,"0"),SSS:T.s(this.$ms,3,"0"),Z:H};return W.replace(f,function(Y,O){return O||R[Y]||H.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(E,K,D){var W,H=T.p(K),Z=V(E),_=(Z.utcOffset()-this.utcOffset())*o,j=this-Z,I=T.m(this,Z);return I=(W={},W[b]=I/12,W[u]=I,W[h]=I/3,W[p]=(j-_)/6048e5,W[m]=(j-_)/864e5,W[c]=j/l,W[i]=j/o,W[s]=j/a,W)[H]||j,D?I:T.a(I)},$.daysInMonth=function(){return this.endOf(u).$D},$.$locale=function(){return S[this.$L]},$.locale=function(E,K){if(!E)return this.$L;var D=this.clone(),W=A(E,K,!0);return W&&(D.$L=W),D},$.clone=function(){return T.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},P}(),M=w.prototype;return V.prototype=M,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",m],["$M",u],["$y",b],["$D",y]].forEach(function(P){M[P[1]]=function($){return this.$g($,P[0],P[1])}}),V.extend=function(P,$){return P.$i||(P($,w,V),P.$i=!0),V},V.locale=A,V.isDayjs=N,V.unix=function(P){return V(1e3*P)},V.en=S[B],V.Ls=S,V.p={},V})})(vs);var kd=vs.exports;const Fe=We(kd);var bs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){var a={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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(k){return(k=+k)+(k>68?1900:2e3)},m=function(k){return function(v){this[k]=+v}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var f=v.match(/([+-]|\d\d)/g),d=60*f[1]+(+f[2]||0);return d===0?0:f[0]==="+"?-d:d}(k)}],u=function(k){var v=i[k];return v&&(v.indexOf?v:v.s.concat(v.f))},h=function(k,v){var f,d=i.meridiem;if(d){for(var g=1;g<=24;g+=1)if(k.indexOf(d(g,0,v))>-1){f=g>12;break}}else f=k===(v?"pm":"PM");return f},b={A:[s,function(k){this.afternoon=h(k,!1)}],a:[s,function(k){this.afternoon=h(k,!0)}],S:[/\d/,function(k){this.milliseconds=100*+k}],SS:[l,function(k){this.milliseconds=10*+k}],SSS:[/\d{3}/,function(k){this.milliseconds=+k}],s:[r,m("seconds")],ss:[r,m("seconds")],m:[r,m("minutes")],mm:[r,m("minutes")],H:[r,m("hours")],h:[r,m("hours")],HH:[r,m("hours")],hh:[r,m("hours")],D:[r,m("day")],DD:[l,m("day")],Do:[s,function(k){var v=i.ordinal,f=k.match(/\d+/);if(this.day=f[0],v)for(var d=1;d<=31;d+=1)v(d).replace(/\[|\]/g,"")===k&&(this.day=d)}],M:[r,m("month")],MM:[l,m("month")],MMM:[s,function(k){var v=u("months"),f=(u("monthsShort")||v.map(function(d){return d.slice(0,3)})).indexOf(k)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[s,function(k){var v=u("months").indexOf(k)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,m("year")],YY:[l,function(k){this.year=c(k)}],YYYY:[/\d{4}/,m("year")],Z:p,ZZ:p};function y(k){var v,f;v=k,f=i&&i.formats;for(var d=(k=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,T,w){var M=w&&w.toUpperCase();return T||f[w]||a[w]||f[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(P,$,E){return $||E.slice(1)})})).match(o),g=d.length,C=0;C<g;C+=1){var B=d[C],S=b[B],N=S&&S[0],A=S&&S[1];d[C]=A?{regex:N,parser:A}:B.replace(/^\[|\]$/g,"")}return function(V){for(var T={},w=0,M=0;w<g;w+=1){var P=d[w];if(typeof P=="string")M+=P.length;else{var $=P.regex,E=P.parser,K=V.slice(M),D=$.exec(K)[0];E.call(T,D),V=V.replace(D,"")}}return function(W){var H=W.afternoon;if(H!==void 0){var Z=W.hours;H?Z<12&&(W.hours+=12):Z===12&&(W.hours=0),delete W.afternoon}}(T),T}}return function(k,v,f){f.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(c=k.parseTwoDigitYear);var d=v.prototype,g=d.parse;d.parse=function(C){var B=C.date,S=C.utc,N=C.args;this.$u=S;var A=N[1];if(typeof A=="string"){var V=N[2]===!0,T=N[3]===!0,w=V||T,M=N[2];T&&(M=N[2]),i=this.$locale(),!V&&M&&(i=f.Ls[M]),this.$d=function(K,D,W){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*K);var H=y(D)(K),Z=H.year,_=H.month,j=H.day,I=H.hours,L=H.minutes,x=H.seconds,F=H.milliseconds,q=H.zone,R=new Date,Y=j||(Z||_?1:R.getDate()),O=Z||R.getFullYear(),U=0;Z&&!_||(U=_>0?_-1:R.getMonth());var G=I||0,Q=L||0,J=x||0,z=F||0;return q?new Date(Date.UTC(O,U,Y,G,Q,J,z+60*q.offset*1e3)):W?new Date(Date.UTC(O,U,Y,G,Q,J,z)):new Date(O,U,Y,G,Q,J,z)}catch{return new Date("")}}(B,A,S),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),w&&B!=this.format(A)&&(this.$d=new Date("")),i={}}else if(A instanceof Array)for(var P=A.length,$=1;$<=P;$+=1){N[1]=A[$-1];var E=f.apply(this,N);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}$===P&&(this.$d=new Date(""))}else g.call(this,C)}}})})(bs);var Sd=bs.exports;const Cd=We(Sd);var ks={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o,l){var r=o.prototype,s=r.format;l.en.ordinal=function(i){var c=["th","st","nd","rd"],m=i%100;return"["+i+(c[(m-20)%10]||c[m]||c[0])+"]"},r.format=function(i){var c=this,m=this.$locale();if(!this.isValid())return s.bind(this)(i);var p=this.$utils(),u=(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 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 p.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return p.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return p.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)(u)}}})})(ks);var wd=ks.exports;const Nd=We(wd);var Ss={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o,l){var r=o.prototype,s=function(u){return u&&(u.indexOf?u:u.s)},i=function(u,h,b,y,k){var v=u.name?u:u.$locale(),f=s(v[h]),d=s(v[b]),g=f||d.map(function(B){return B.slice(0,y)});if(!k)return g;var C=v.weekStart;return g.map(function(B,S){return g[(S+(C||0))%7]})},c=function(){return l.Ls[l.locale()]},m=function(u,h){return u.formats[h]||function(b){return b.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,k,v){return k||v.slice(1)})}(u.formats[h.toUpperCase()])},p=function(){var u=this;return{months:function(h){return h?h.format("MMMM"):i(u,"months")},monthsShort:function(h){return h?h.format("MMM"):i(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(u,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(u,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return m(u.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},l.localeData=function(){var u=c();return{firstDayOfWeek:function(){return u.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(h){return m(u,h)},meridiem:u.meridiem,ordinal:u.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(u){return i(c(),"weekdays",null,null,u)},l.weekdaysShort=function(u){return i(c(),"weekdaysShort","weekdays",3,u)},l.weekdaysMin=function(u){return i(c(),"weekdaysMin","weekdays",2,u)}}})})(Ss);var Bd=Ss.exports;const Ad=We(Bd);var Cs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){var a="week",o="year";return function(l,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 m=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=s(this).startOf(o).add(1,o).date(m),u=s(this).endOf(a);if(p.isBefore(u))return 1}var h=s(this).startOf(o).date(m).startOf(a).subtract(1,"millisecond"),b=this.diff(h,a,!0);return b<0?s(this).startOf("week").week():Math.ceil(b)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Cs);var Vd=Cs.exports;const Td=We(Vd);var ws={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),s=this.year();return r===1&&l===11?s+1:l===0&&r>=52?s-1:s}}})})(ws);var $d=ws.exports;const Ed=We($d);var Ns={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(Ns);var xd=Ns.exports;const Dd=We(xd);var Bs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(Bs);var Id=Bs.exports;const qd=We(Id);var As={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(As);var Md=As.exports;const Pd=We(Md);Fe.extend(Ad);Fe.extend(Nd);Fe.extend(Cd);Fe.extend(Td);Fe.extend(Ed);Fe.extend(Dd);Fe.extend(qd);Fe.extend(Pd);const le={format(e,n){return Fe(e).format(n)},parser(e,n){return Fe(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const l=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},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 a=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,o,l].join(n)},getDay(e,n){e=e||0;let a=n??new Date;const o=e*(1e3*60*60*24);return a=new Date(a.getTime()+o),this.date2Str(a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(a>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,a==o},getMonthWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a));let r=l.getDay(),s=l.getDate(),i=6-r;return o!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),s=Math.round((l.valueOf()-r.valueOf())/864e5);let i=l.getDay(),c=6-i;return o!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let s=l.getDay();if(o===0){const c=r-s*864e5,m=r+(6-s)*864e5,p=this.date2Str(new Date(c)),u=this.date2Str(new Date(m));return[p,u]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,m=r+(7-s)*i,p=this.date2Str(new Date(c)),u=this.date2Str(new Date(m));return[p,u]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=le.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=le.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s}},sr=new Date().getFullYear(),ol={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},yn=(e,n,a)=>{let o;if(Ue(n)?o=n:typeof n=="string"&&ye(n)>0?o=le.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},To=(e,n,a)=>{Ue(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),le.format(new Date(o),a)};let $o={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(sr-10,0,1),validator:Ue},maxDate:{type:Date,default:()=>new Date(sr+10,11,31),validator:Ue},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:Ld,scope:zd}=X("date-picker"),Fd=Ld({components:{[bt.name]:bt},props:{...$o},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(zd),o={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds")},l=t.ref(!1);t.watch(()=>e.visible,d=>{l.value=d});function r(d,g){return new Date(d,g,0).getDate()}const s=(d,g)=>{const C=e[`${d}Date`],B=C.getFullYear();let S=1,N=1,A=0,V=0;d==="max"&&(S=12,N=r(g.getFullYear(),g.getMonth()+1),A=23,V=59);const T=V;return g.getFullYear()===B&&(S=C.getMonth()+1,g.getMonth()+1===S&&(N=C.getDate(),g.getDate()===N&&(A=C.getHours(),g.getHours()===A&&(V=C.getMinutes())))),{[`${d}Year`]:B,[`${d}Month`]:S,[`${d}Date`]:N,[`${d}Hour`]:A,[`${d}Minute`]:V,[`${d}Seconds`]:T}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:d,maxDate:g,maxMonth:C,maxHour:B,maxMinute:S,maxSeconds:N}=s("max",h.value),{minYear:A,minDate:V,minMonth:T,minHour:w,minMinute:M,minSeconds:P}=s("min",h.value);let $=[{type:"year",range:[A,d]},{type:"month",range:[T,C]},{type:"day",range:[V,g]},{type:"hour",range:[w,B]},{type:"minute",range:[M,S]},{type:"seconds",range:[P,N]}];switch(e.type){case"date":$=$.slice(0,3);break;case"datetime":$=$.slice(0,5);break;case"time":$=$.slice(3,6);break;case"year-month":$=$.slice(0,2);break;case"month-day":$=$.slice(1,3);break;case"datehour":$=$.slice(0,4);break;case"hour-minute":$=$.slice(3,5);break}return $}),c=(d,g,C)=>{if(!(g>d))return null;const B=[];for(;d<=g;)e.isShowChinese?B.push({text:d+o[C],value:d}):B.push({text:`${d}`,value:d}),C==="minute"?d+=e.minuteStep:d++;return B},m=t.computed(()=>{let d=[];return i.value.forEach(g=>{let C=c(g.range[0],g.range[1],g.type);C&&d.push(C)}),d}),p=(d,g)=>d==="year"?g.getFullYear():d==="month"?g.getMonth()+1:d==="day"?g.getDate():d==="hour"?g.getHours():d==="minute"?g.getMinutes():d==="seconds"?g.getSeconds():0,u=t.ref(),h=t.ref(null);t.watch(()=>e.modelValue,d=>{let g;if(typeof d=="string"?d.length==0?g=new Date:e.valueFormat?g=yn(e,e.modelValue,e.valueFormat):g=yn(e,d,ol[e.type]):Ue(d)?g=d:g=new Date,!!g&&(!h.value||g.getTime()!==h.value.getTime())){h.value=g;let C=[];i.value.forEach(B=>{let S=p(B.type,g);C.push(S)}),u.value=C}},{immediate:!0});const b=d=>{if(e.type==="date"){const g=d[0],C=d[1]-1,B=Math.min(d[2],r(g,C+1));B!==d[2]&&(d[2]=B),h.value=new Date(g,C,B)}else if(e.type==="datetime"){const g=d[0],C=d[1]-1,B=Math.min(d[2],r(g,C+1)),S=d[3],N=d[4];B!==d[2]&&(d[2]=B),h.value=new Date(g,C,B,S,N)}else if(e.type==="time"){const g=d[0],C=d[1],B=d[2],S=h.value??new Date,N=new Date(S.getFullYear(),S.getMonth(),S.getDate(),g,C,B);h.value=N}else if(e.type==="year-month"){const g=d[0],C=d[1]-1;h.value=new Date(g,C)}else if(e.type==="month-day"){const C=(h.value??new Date).getFullYear(),B=d[0]-1,S=Math.min(d[1],r(C,B+1));S!==d[1]&&(d[1]=S);const N=new Date(C,B,S);h.value=N}else if(e.type==="datehour"){const g=d[0],C=d[1]-1,B=Math.min(d[2],r(g,C+1)),S=d[3];B!==d[2]&&(d[2]=B),h.value=new Date(g,C,B,S)}else if(e.type==="hour-minute"){const g=d[0],C=d[1],B=h.value??new Date,S=new Date(B.getFullYear(),B.getMonth(),B.getDate(),g,C);h.value=S}u.value=d};return{columns:m,dateIndexs:u,show:l,onChange:d=>{b(d)},onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:d=>{b(d),l.value=!1;let g=h.value??new Date;if(e.valueFormat){let C=To(e,g,e.valueFormat);n("update:modelValue",C)}else n("update:modelValue",g);n("update:visible",!1),n("confirm",d)},onClear:()=>{n("clear")}}}});function Rd(e,n,a,o,l,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,onChange:e.onChange,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","onChange","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const On=ne(Fd,[["render",Rd]]),Od={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Kd(e){let n=e.format;if(!n){let a=e.type??"date";n=ol[a]}return n}function Ud(e,n,a,o,l,r,s=!1){return{props:{...me,...ge,...$o,...Od},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const m=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),b=h(i,["placeholder"]),y=t.ref(!1),v=xe(i,"modelValue",I=>I==null?null:typeof I=="string"?I.length==0?null:i.valueFormat?yn(i,I,i.valueFormat)??I:yn(i,I,ol[i.type])??I:Ue(I)?I:null),f=t.computed(()=>{if(!v.value)return"";const I=Kd(i);return To(i,v.value,I)}),d="fox-input-item",g=t.computed(()=>({[d]:!0,"is-disabled":m.value,"is-readonly":p.value})),C=Be(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const I={};return C.value&&(I["text-align"]=C.value),I}),S=t.ref(!1),N=()=>{S.value=!0},A=()=>{S.value=!1};c.expose({showPicker:N,hidePicker:A});const V=I=>{S.value=I},T=I=>{if(v.value=I,i.valueFormat){let L=To(i,I,i.valueFormat);u("update:modelValue",L,{}),u("change",L,{})}else u("update:modelValue",I,{}),u("change",I,{})},w=I=>{let x=I.target.value;y.value=!0,u("focus",x,I)},M=I=>{setTimeout(()=>{y.value=!1},0);let x=I.target.value;i.maxLength&&x.length>Number(i.maxLength)&&(x=x.slice(0,Number(i.maxLength))),u("blur",x,I)},P=t.computed(()=>({[`${d}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),$=t.computed(()=>ye(i.unit)>0),E=t.computed(()=>ye(i.unit)>0&&!y.value),K=t.computed(()=>({hidden:!E.value})),D=I=>{v.value="",u("update:modelValue","",I),u("change","",I),u("clear",""),A()},W=t.computed(()=>i.clearable&&!m.value&&!p.value),H=t.computed(()=>{let I=ye(v.value)>0;return i.clearable&&I&&y.value}),Z=I=>{H.value?D(I):N()},_=t.computed(()=>H.value&&W.value?o:l),j=t.computed(()=>({action:!0}));return()=>{const I={class:g.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:w,onBlur:M};s&&(I.disabled=!0);const L=[],x=t.h("input",I);L.push(x);const F=[],q={class:["action-icon"]},R=t.h(_.value,q),Y={class:j.value,onClick:Z},O=t.h("view",Y,{default:()=>[R]});if(F.push(O),$.value){const ce=t.h("view",{class:K.value},[i.unit]);F.push(ce)}const U={class:P.value},G=t.h("view",U,{default:()=>F});L.push(G);const Q={default:()=>L};Q.label=c.slots.default,Q.prepend=c.slots.prepend,Q.append=c.slots.append,Q.fixedPreTip=c.slots.fixedPreTip,Q.fixedTip=c.slots.fixedTip;const J=ve(i,$o);J.valueFormat=null,J.disabled=!1,J.readonly=m.value||p.value,J.visible=S.value,J["onUpdate:visible"]=V,J.modelValue=v.value,J["onUpdate:modelValue"]=T,J.onClear=D;const z={};if(c.slots.top){const ce=c.slots.top();z.top=()=>ce}if(c.slots.bottom){const ce=c.slots.bottom();z.default=()=>ce}const ee=t.h(r,J,z);Q.hide=()=>[ee];const te=ve(i,ge,me);return t.h(a,{...te,prop:`${i.prop}_item`},Q)}}}}const{create:Hd,componentName:jd,scope:Wd}=X("date-item"),ll=Hd(Ud(jd,Wd,Se,oe.CircleClose,oe.Date,On,!1)),Yd=39,Xd=64,{create:Qd,scope:Gd}=X("calendar-pane"),Zd=Qd({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:le.getDay(0)},endDate:{type:String,default:le.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=re.useFoxI18n(Gd),r=o(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(l("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),m=t.ref(null),p=t.ref(null),u=t.ref(null),h=t.ref(0),b=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),y=t.computed(()=>a.btn),k=t.computed(()=>a["top-info"]),v=t.computed(()=>a["bottom-info"]),f=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),d=q=>q.split("-"),g=q=>le.isEqual(f.currDate[0],q),C=q=>le.isEqual(f.currDate[1],q),B=q=>f.currDate?.length>0?f.currDate?.some(R=>le.isEqual(R,q)):!1,S=(q,R)=>R.curData[0]+"-"+R.curData[1]+"-"+le.getNumTwoBit(+q.day),N=(q,R)=>{const Y=S(q,R),{type:O}=e;return q.type=="curr"?le.isEqual(f.currDate,Y)||(O=="range"||O=="week")&&(g(Y)||C(Y))||O=="multiple"&&B(Y)?`${f.dayPrefix}--active`:f.propStartDate&&le.compareDate(Y,f.propStartDate)||f.propEndDate&&le.compareDate(f.propEndDate,Y)?`${f.dayPrefix}--disabled`:(O=="range"||O=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&le.compareDate(f.currDate[0],Y)&&le.compareDate(Y,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},A=()=>{const{type:q}=e;if(q=="range"&&f.chooseData.length==2||q!="range"){let R=f.chooseData.slice(0);q=="week"&&(R={weekDate:[T(f.chooseData[0]),T(f.chooseData[1])]}),n("choose",R),e.poppable&&n("update")}},V=(q,R,Y=!1)=>{if(N(q,R)!=`${f.dayPrefix}--disabled`){const{type:O}=e;let[U,G]=R.curData,Q=[...R.curData];if(Q[2]=le.getNumTwoBit(Number(q.day)),Q[3]=`${Q[0]}-${Q[1]}-${Q[2]}`,Q[4]=le.getWhatDay(+Q[0],+Q[1],+Q[2]),O=="multiple")if(f.currDate?.length>0){let J;f.currDate?.forEach((z,ee)=>{z==Q[3]&&(J=ee)}),Y?f.chooseData.push([...Q]):J!==void 0?(f.currDate.splice(J,1),f.chooseData.splice(J,1)):(f.currDate.push(Q[3]),f.chooseData.push([...Q]))}else f.currDate=[Q[3]],f.chooseData=[[...Q]];else if(O=="range"){let J=Object.values(f.currDate).length;J==2||J==0?f.currDate=[Q[3]]:le.compareDate(f.currDate[0],Q[3])?Array.isArray(f.currDate)&&f.currDate.push(Q[3]):Array.isArray(f.currDate)&&f.currDate.unshift(Q[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...Q]]:le.compareDate(f.chooseData[0][3],Q[3])?f.chooseData=[...f.chooseData,[...Q]]:f.chooseData=[[...Q],...f.chooseData]}else if(O=="week"){let J=le.getWeekDate(U,G,q.day,e.firstDayOfWeek);f.propStartDate&&le.compareDate(J[0],f.propStartDate)&&J.splice(0,1,f.propStartDate),f.propEndDate&&le.compareDate(f.propEndDate,J[1])&&J.splice(1,1,f.propEndDate),f.currDate=J,f.chooseData=[le.formatResultDate(J[0]),le.formatResultDate(J[1])]}else f.currDate=Q[3],f.chooseData=[...Q];if(!Y){let J=f.chooseData;O=="week"&&(J={weekDate:[T(f.chooseData[0]),T(f.chooseData[1])]}),n("select",J),(e.isAutoBackFill||!e.poppable)&&A()}}},T=q=>{let[R,Y,O]=q;return{date:q,monthWeekNum:le.getMonthWeek(R,Y,O,e.firstDayOfWeek),yearWeekNum:le.getYearWeek(R,Y,O,e.firstDayOfWeek)}},w=q=>{const R=q=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let Y=parseInt(R.curData[0]),O=parseInt(R.curData[1].toString().replace(/^0/,""));switch(q){case"prev":O==1&&(Y-=1),O=O==1?12:--O;break;case"next":O==12&&(Y+=1),O=O==12?1:++O;break}return[Y+"",le.getNumTwoBit(O),le.getMonthDays(String(Y),String(O))+""]},M=(q,R,Y)=>{let{year:O,month:U}=Y;return R=="prev"&&q>=7&&(q-=7),Array.from(Array(q),(G,Q)=>({day:String(Q+1),type:R,year:O,month:U}))},P=(q,R,Y,O)=>{q=q-e.firstDayOfWeek;let{year:U,month:G}=Y;return R=="prev"&&q>=7&&(q-=7),Array.from(Array(O),(J,z)=>({day:String(z+1),type:R,year:U,month:G})).slice(O-q)},$=(q,R)=>{const Y=le.getMonthPreDay(+q[0],+q[1]);let O=Number(q[1])-1,U=Number(q[0]);O<=0&&(O=12,U+=1);const G=le.getMonthDays(String(q[0]),String(q[1])),Q=le.getMonthDays(U+"",O+""),J={year:q[0],month:q[1]},z={curData:q,title:l("monthTitle",{year:J.year,month:J.month}),monthData:[...P(Y,"prev",{month:String(O),year:String(U)},Q),...M(G,"curr",J)],cssHeight:0,cssScrollHeight:0},ee=z.monthData.length>35?6:5;z.cssHeight=Yd+Xd*ee;let te=0;f.monthsData.length>0&&(te=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),z.cssScrollHeight=te,R=="next"?(!f.endData||!le.compareDate(`${f.endData[0]}-${f.endData[1]}-${le.getMonthDays(f.endData[0],f.endData[1])}`,`${q[0]}-${q[1]}-${q[2]}`))&&f.monthsData.push(z):!f.startData||!le.compareDate(`${q[0]}-${q[1]}-${q[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(z):f.unLoadPrev=!0},E=()=>{let q=e.startDate?e.startDate:le.getDay(0),R=e.endDate?e.endDate:le.getDay(365);f.propStartDate=q,f.propEndDate=R,f.startData=d(q),f.endData=d(R),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const Y={year:Number(f.startData[0]),month:Number(f.startData[1])},O={year:Number(f.endData[0]),month:Number(f.endData[1])};let U=O.month-Y.month;O.year-Y.year>0&&(U=U+12*(O.year-Y.year)),U<=0&&(U=1),$(f.startData,"next");let G=1;do $(w("next"),"next");while(G++<U);if(f.monthsNum=U,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(q&&le.compareDate(f.currDate[0],q)&&f.currDate.splice(0,1,q),R&&le.compareDate(R,f.currDate[1])&&f.currDate.splice(1,1,R),f.defaultData=[...d(f.currDate[0]),...d(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let Q=[],J={};f.currDate.forEach(z=>{q&&!le.compareDate(z,q)&&R&&!le.compareDate(R,z)&&(Object.hasOwnProperty.call(J,z)||(Q.push(z),J[z]=z))}),f.currDate=[...Q],f.defaultData=[...d(Q[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[Q,J,z]=d(f.currDate[0]),ee=le.getWeekDate(Q,J,z,e.firstDayOfWeek);f.currDate=ee,q&&le.compareDate(f.currDate[0],q)&&f.currDate.splice(0,1,q),R&&le.compareDate(R,f.currDate[1])&&f.currDate.splice(1,1,R),f.defaultData=[...d(f.currDate[0]),...d(f.currDate[1])]}}else f.currDate&&(q&&le.compareDate(f.currDate,q)?f.currDate=q:R&&!le.compareDate(f.currDate,R)&&(f.currDate=R),f.defaultData=[...d(f.currDate)])};$e({scrollToDate:q=>{le.compareDate(q,f.propStartDate)?q=f.propStartDate:le.compareDate(q,f.propEndDate)||(q=f.propEndDate);let R=d(q);f.monthsData.forEach((Y,O)=>{if(Y.title==l("monthTitle",{year:R[0],month:R[1]})&&c.value){let U=f.monthsData[O].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let G=0,Q=setInterval(()=>{if(G++,c.value){let J=U/10;c.value.scrollTop=c.value.scrollTop+J}G>=10&&(clearInterval(Q),c.value&&(c.value.scrollTop=f.monthsData[O].cssScrollHeight))},40)}else c.value.scrollTop=f.monthsData[O].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let q=0,R=0;f.defaultData.length>0&&f.monthsData.forEach((U,G)=>{U.title==l("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(q=G),(e.type=="range"||e.type=="week")&&U.title==l("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(R=G)}),H(f.monthsNum,q),f.currentIndex=q,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(V({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),V({day:f.defaultData[5],type:"curr"},f.monthsData[R],!0)):e.type=="week"?V({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(U=>{let G=d(U),Q=f.currentIndex;f.monthsData.forEach((J,z)=>{J.title==l("monthTitle",{year:G[0],month:G[1]})&&(Q=z)}),V({day:G[2],type:"curr"},f.monthsData[Q],!0)}):V({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let Y=f.monthsData[f.monthsData.length-1],O=Y.cssHeight+Y.cssScrollHeight;Xe(()=>{c?.value&&m?.value&&u?.value&&(h.value=c.value.clientHeight,m.value.style.height=`${O}px`,c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(O/(f.monthsNum+1))}});const H=(q,R)=>{q>=3?R>0&&R<q?f.defaultRange=[R-1,R+3]:R==0?f.defaultRange=[R,R+4]:R==q&&(f.defaultRange=[R-2,R+2]):f.defaultRange=[0,q+2];let Y=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=Y},Z=(q,R)=>(e.type=="range"||e.type=="week")&&q.type=="curr"&&N(q,R)=="fox-calendar__day--active",_=(q,R)=>Z(q,R)&&g(S(q,R)),j=(q,R)=>f.currDate.length>=2&&C(S(q,R))?Z(q,R):!1,I=()=>{if(f.currDate.length>=2)return le.isEqual(f.currDate[0],f.currDate[1])},L=q=>{const R=`${q.year}-${q.month}-${Number(q.day)<10?"0"+q.day:q.day}`;return le.isEqual(R,le.date2Str(new Date))},x=q=>{if(f.monthsData.length<=1)return;const R=q.target.scrollTop;let Y=Math.floor(R/f.avgHeight);if(Y==0)R>=f.monthsData[Y+1].cssScrollHeight&&(Y+=1);else if(Y>0&&Y<f.monthsNum-1)R>=f.monthsData[Y+1].cssScrollHeight&&(Y+=1),R<f.monthsData[Y].cssScrollHeight&&(Y-=1);else{const O=Math.round(R+h.value);O<f.monthsData[Y].cssScrollHeight+f.monthsData[Y].cssHeight&&R>f.monthsData[Y-1].cssScrollHeight&&(Y-=1),Y+1<=f.monthsNum&&O>=f.monthsData[Y+1].cssScrollHeight+f.monthsData[Y+1].cssHeight&&(Y+=1),Y>=1&&R<f.monthsData[Y-1].cssScrollHeight&&(Y-=1)}f.currentIndex!==Y&&(f.currentIndex=Y,H(f.monthsNum,Y)),f.yearMonthTitle=f.monthsData[Y].title},F=()=>{f.chooseData.splice(0),f.monthsData.splice(0),E()};return E(),t.watch(()=>e.defaultValue,q=>{q&&e.poppable&&F()}),{weeks:i,compConthsData:b,showTopBtn:y,topInfo:k,bottomInfo:v,rangeTip:I,mothsViewScroll:x,getClass:N,isStartTip:_,isEndTip:j,chooseDay:V,isCurrDay:L,confirm:A,months:c,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:m,weeksPanel:p,viewArea:u}}}),Jd={class:"fox-calendar__header"},_d={key:0,class:"fox-calendar__header-title"},ef={key:1,class:"fox-calendar__header-slot"},tf={key:2,class:"fox-calendar__header-subtitle"},nf={class:"fox-calendar__weekdays",ref:"weeksPanel"},of={class:"fox-calendar__panel",ref:"monthsPanel"},lf={class:"fox-calendar__month-title"},af={class:"fox-calendar__days"},rf=["onClick"],sf={class:"fox-calendar__day-value"},cf={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},uf={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},df={key:2,class:"fox-calendar__day-tips--curr"},ff={key:4,class:"fox-calendar__day-tip"},mf={key:0,class:"fox-calendar__footer"};function pf(e,n,a,o,l,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",Jd,[e.showTitle?(t.openBlock(),t.createElementBlock("view",_d,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",ef,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",tf,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",nf,[(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:n[0]||(n[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",of,[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",lf,t.toDisplayString(s.title),1),t.createElementVNode("view",af,[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,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:p=>e.chooseDay(c,s)},[t.createElementVNode("view",sf,[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",cf,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",uf,[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",df,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",ff,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,rf))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",mf,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const ir=ne(Zd,[["render",pf]]),hf=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),nn={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6}},{create:gf}=X("calendar"),yf=gf({components:{[ir.name]:ir,[de.name]:de},props:{...nn},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const o=t.computed(()=>a.btn),l=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),s=t.computed(()=>a["bottom-info"]),i=t.ref(null),c=k=>{i.value?.scrollToDate(k)},m=()=>{i.value?.initPosition()};t.watch(()=>e.visible,k=>{k&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),$e({scrollToDate:c,initPosition:m});const p=()=>{n("update:visible",!1)},u=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{u()},update:p,close:u,select:k=>{n("select",k)},choose:k=>{u(),n("choose",k)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function vf(e,n,a,o,l,r){const s=t.resolveComponent("fox-calendar-pane"),i=t.resolveComponent("fox-popup");return e.poppable?(t.openBlock(),t.createBlock(i,t.mergeProps({key:0,visible:e.visible,position:"bottom",round:"",closeable:""},e.$attrs,{onClickOverlay:e.closePopup,onClickCloseIcon:e.closePopup,style:{height:"85vh"}}),{default:t.withCtx(()=>[t.createVNode(s,{ref:"calendarRef",type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"show-today":e.showToday,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","confirm-text","start-text","end-text","show-today","show-title","show-sub-title","to-date-animation","first-day-of-week"])]),_:3},16,["visible","onClickOverlay","onClickCloseIcon"])):(t.openBlock(),t.createBlock(s,{key:1,type:e.type,"is-auto-back-fill":e.isAutoBackFill,poppable:e.poppable,title:e.title,ref:"calendarRef","confirm-text":e.confirmText,"start-text":e.startText,"end-text":e.endText,"default-value":e.defaultValue,"start-date":e.startDate,"end-date":e.endDate,onUpdate:e.update,onClose:e.close,onChoose:e.choose,onSelect:e.select,"show-title":e.showTitle,"show-sub-title":e.showSubTitle,"to-date-animation":e.toDateAnimation,"show-today":e.showToday,"first-day-of-week":e.firstDayOfWeek},t.createSlots({_:2},[e.showTopBtn?{name:"btn",fn:t.withCtx(()=>[t.renderSlot(e.$slots,"btn")]),key:"0"}:void 0,e.dayInfo?{name:"day",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"day",{date:c.date})]),key:"1"}:void 0,e.topInfo?{name:"top-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"top-info",{date:c.date})]),key:"2"}:void 0,e.bottomInfo?{name:"bottom-info",fn:t.withCtx(c=>[t.renderSlot(e.$slots,"bottom-info",{date:c.date})]),key:"3"}:void 0]),1032,["type","is-auto-back-fill","poppable","title","confirm-text","start-text","end-text","default-value","start-date","end-date","onUpdate","onClose","onChoose","onSelect","show-title","show-sub-title","to-date-animation","show-today","first-day-of-week"]))}const Kn=ne(yf,[["render",vf]]),cr={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}},so=(e,n)=>{let a;return Ue(e)?a=e:typeof e=="string"&&ye(e)>0?a=le.parser(e,n):a=new Date,a},ct=(e,n,a)=>(Ue(n)||(n=new Date),le.format(n,a)),ut=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=le.date2Str(e),r=le.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function bf(e,n,a,o,{CloseIcon:l,MarkIcon:r},s=!1){return{props:{...me,...ge,...nn,...cr},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const m=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),b=h(i,["placeholder"]),y=t.ref(!1),k=t.computed(()=>i.type==="range"),v=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),f=()=>{v.startDate!==null&&(v.startDate=null,v.endDate=null,v.startArray=[],v.endArray=[])},d=(x,F="one",q="YYYY-MM-DD")=>{if(hf(x)){f();return}if(k.value&&Array.isArray(x)&&x.length==2){let R,Y;typeof x[0]=="string"?(R=so(x[0],q),Y=so(x[1],q)):(R=x[0],Y=x[1]);let O=ut(R),U=ut(Y);(v.startDate===null||v.startDate.getTime()!==R.getTime()||v.endDate?.getTime()!==Y.getTime())&&(v.startDate=R,v.startArray=O,v.endDate=Y,v.endArray=U)}else{let R;typeof x=="string"?R=so(x,q):R=x;let Y=ut(R);(v.startDate===null||v.startDate.getTime()!==R.getTime())&&(v.startDate=R,v.startArray=Y)}};d(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,x=>{d(x,i.type,i.valueFormat)});const g=t.computed(()=>{if(v.startDate===null)return"";if(k.value){let x=ct(i,v.startDate,i.format),F=ct(i,v.endDate,i.format);return`${x} ${i.rangeSeparator} ${F}`}else{let x=ct(i,v.startDate,i.format);return i.showWeek&&(x=`${x} ${v.startArray[4]}`),x}}),C=t.computed(()=>{if(v.startDate===null)return null;if(k.value){let x=le.date2Str(v.startDate),F=le.date2Str(v.endDate??new Date);return[x,F]}else return le.date2Str(v.startDate)}),B="fox-input-item",S=t.computed(()=>({[B]:!0,"is-disabled":m.value,"is-readonly":p.value})),N=Be(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const x={};return N.value&&(x["text-align"]=N.value),x}),V=t.ref(!1),T=()=>{p.value||m.value||(V.value=!0)},w=x=>{V.value=x},M=x=>{if(x){if(k.value&&Array.isArray(x)){let F=x[0],q=fe(F[0]),R=fe(F[1]),Y=fe(F[2]),O=new Date(q,R-1,Y),U=x[1];q=fe(U[0]),R=fe(U[1]),Y=fe(U[2]);let G=new Date(q,R-1,Y);if(v.startDate=O,v.startArray=ut(O),v.endDate=G,v.endArray=ut(G),i.valueFormat){let Q=ct(i,O,i.valueFormat),J=ct(i,G,i.valueFormat);u("update:modelValue",[Q,J],{})}else u("update:modelValue",[O,G],{})}else{let F=x,q=fe(F[0]),R=fe(F[1]),Y=fe(F[2]),O=new Date(q,R-1,Y);if(v.startDate=O,v.startArray=ut(O),i.valueFormat){let U=ct(i,O,i.valueFormat);u("update:modelValue",U,{})}else u("update:modelValue",O,{})}u("change",x,{})}},P=x=>{let q=x.target.value;y.value=!0,u("focus",q,x)},$=x=>{setTimeout(()=>{y.value=!1},0);let q=x.target.value;i.maxLength&&q.length>Number(i.maxLength)&&(q=q.slice(0,Number(i.maxLength))),u("blur",q,x)},E=t.computed(()=>({[`${B}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),K=t.computed(()=>ye(i.unit)>0),D=t.computed(()=>ye(i.unit)>0&&!y.value),W=t.computed(()=>({hidden:!D.value})),H=x=>{f(),u("update:modelValue",null,x),u("change","",x),u("clear","")},Z=t.computed(()=>i.clearable&&!m.value&&!p.value),_=t.computed(()=>{let x=ye(g.value)>0;return i.clearable&&x&&y.value}),j=x=>{_.value?H(x):T()},I=t.computed(()=>_.value&&Z.value?l:r),L=t.computed(()=>({action:!0}));return()=>{const x={class:S.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:T,onFocus:P,onBlur:$};s&&(x.disabled=!0);const F=[],q=t.h("input",x);F.push(q);const R=[],Y={class:["action-icon"]},O=t.h(I.value,Y),U={class:L.value,onClick:j},G=t.h("view",U,{default:()=>[O]});if(R.push(G),K.value){const De=t.h("view",{class:W.value},[i.unit]);R.push(De)}const Q={class:E.value},J=t.h("view",Q,{default:()=>R});F.push(J);const z={default:()=>F};z.label=c.slots.default,z.prepend=c.slots.prepend,z.append=c.slots.append,z.fixedPreTip=c.slots.fixedPreTip,z.fixedTip=c.slots.fixedTip;const ee=ve(i,nn);ee.visible=V.value,ee["onUpdate:visible"]=w,ee["default-value"]=C.value,ee.onChoose=M;const te={};if(c.slots.btn){const De=c.slots.btn();te.btn=()=>De}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 ae=t.h(a,ee,te);z.hide=()=>[ae];const ce=Nt(i,nn,cr);return t.h(o,{...ce,prop:`${i.prop}_item`},z)}}}}const{componentName:kf,create:Sf,scope:Cf}=X("calendar-item"),al=Sf(bf(kf,Cf,Kn,Se,{CloseIcon:oe.CircleClose,MarkIcon:oe.Date},!1)),wf={readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},shape:{type:String,default:"round"},label:{type:[String,Number,Boolean],default:""},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}};function Nf(e,{CheckNormal:n,Checked:a}){return{props:{...wf},setup(o,{emit:l,slots:r}){let s=t.inject("parent",null);const i=t.computed(()=>s.label.value===o.label),c=t.computed(()=>s.position),m=()=>{const y=[];if(i.value){if(r.checkedIcon)return r.checkedIcon();{const k=ie(o.iconSize),v=o.checkedIcon??a;return y.push("fox-radio__icon"),o.disabled&&y.push("is-disabled"),t.h(v,{width:k,height:k,class:y})}}else{if(r.icon)return r.icon();{const k=ie(o.iconSize),v=o.icon??n;return y.push("fox-radio__icon--unchecked"),o.disabled&&y.push("is-disabled"),t.h(v,{width:k,height:k,class:y})}}},p=()=>{const y=[`${e}__label`];return o.disabled&&y.push("is-disabled"),t.h("view",{class:y},r.default?.())},u=()=>{const y=[`${e}__button`];return i.value&&y.push(`${e}__button--active`),o.disabled&&y.push("is-disabled"),t.h("view",{class:y},r.default?.())},h=()=>{i.value||o.disabled||o.readonly||s.updateValue(o.label)},b=c.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${b?`${e}--reverse`:""}`,onClick:h},[o.shape=="button"?u():b?[p(),m()]:[m(),p()]])}}}const{componentName:Bf,create:Af}=X("radio"),Un=Af(Nf(Bf,{CheckNormal:oe.CheckNormal,Checked:oe.CheckChecked})),{componentName:ur,create:Vf}=X("radio-group"),Hn=Vf({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{emit:n,slots:a}){const o=l=>n("update:modelValue",l);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:o}),t.watch(()=>e.modelValue,l=>n("change",l)),()=>{const l={};return e.textAlign&&(l["text-align"]=e.textAlign),t.h("view",{class:`${ur} ${ur}--${e.direction}`,style:l},a.default?.())}}});function dr(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(on(e,r)===a)return l}else if(o==="item"){if(qe(a,r))return l}else if(Mt(e,r)===a)return l}return-1}function on(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Mt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Tf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function $f(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Ef=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function xf(){const e=t.getCurrentInstance();return new Ef(e.proxy)}function Df(e){return{text:e,value:e}}const fr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},If={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},qf={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:""}};function Mf(e,n,a,o,l){return{props:{...me,...ge,...fr,...If,...qf},emits:["change","update:modelValue"],setup(r,s){const i=Te(t.computed(()=>r.readonly)),c=we(t.computed(()=>r.disabled)),m=Be(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return c.value}},r.prop??s.attrs.name),u=xf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,d])=>{if(f){const g=await u.load("radio",f,d);if(g.length>0)if(typeof g[0]=="string"){const S=g.map(N=>Df(N));h.value=S}else h.value=g}},{immediate:!0});let b=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([f,d])=>{b.value=dr(r,d,f,r.valueType)},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;if(b.value===-1)return null;const f=h.value[b.value];return Mt(r,f)}),k=f=>{let d=null,g=null;if(h.value.length>0){let C=dr(r,h.value,f,"value");b.value=C,C>=0&&(g=h.value[C],r.valueType==="text"?d=on(r,g):r.valueType==="item"?d=g:d=Mt(r,g))}else d=f;p("update:modelValue",d),p("change",d,g)},v=()=>{let f=null,d=null;if(h.value.length>0&&b.value!==-1){let g=h.value[b.value];r.valueType==="text"?f=on(r,g):r.valueType==="item"?f=g:f=Mt(r,g)}p("update:modelValue",f),p("change",f,d)};if($e({clear(){b.value!==-1&&(b.value=-1,v())}}),r.source){const f=()=>{const d=[],g=ve(r,fr);return h.value.forEach((C,B)=>{const S=Mt(r,C),N=Tf(r,C);let A={...g,label:S,disabled:N};const V=$f(r,C,B);A={...A,...V},c.value&&(A.disabled=!0),i.value&&(A.readonly=!0);const T={};if(s.slots.icon&&(T.icon=s.slots.icon),s.slots.checkedIcon&&(T.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const M=s.slots.text(C);T.default=()=>[M]}else{const M=on(r,C);T.default=()=>M}let w=t.h(l,A,T);d.push(w)}),d};return()=>{const d=f(),g={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:m.value,modelValue:y,"onUpdate:modelValue":k},C=t.h(o,g,{default:()=>d}),B={default:()=>C};B.label=s.slots.default,B.prepend=s.slots.prepend,B.append=s.slots.append,B.fixedPreTip=s.slots.fixedPreTip,B.fixedTip=s.slots.fixedTip;const S=ve(r,ge,me);return t.h(a,{...S,prop:`${r.prop}_item`},B)}}else return()=>{const f=s.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:m.value,modelValue:y,"update:modelValue":k},{default:()=>f})}}}}const{componentName:Pf,create:Lf,scope:zf}=X("radio-item"),rl=Lf(Mf(Pf,zf,Se,Hn,Un)),Ff=(e,{CheckNormal:n,Checked:a,Indeterminate:o})=>({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(l,{emit:r,slots:s}){const i=t.inject("parent",null),c=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,d=>{c.partialSelect=d});const m=t.computed(()=>!!i),p=t.computed(()=>m.value?i.value.value.includes(l.label):!!l.modelValue),u=t.computed(()=>m.value?i.position:l.textPosition);let h="";const b=(d,g)=>{h="click",r("update:modelValue",d),r("change",d,g)};t.watch(()=>l.modelValue,d=>{h=="click"?h="":r("change",d)});const y=()=>{const d=[];if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const g=ie(l.iconSize),C=l.indeterminateIcon??o;return d.push("fox-checkbox__icon--indeterminate"),l.disabled&&d.push("is-disabled"),t.h(C,{width:g,height:g,class:d})}}else if(p.value){if(s.checkedIcon)return s.checkedIcon();{const g=ie(l.iconSize),C=l.checkedIcon??a;return d.push("fox-checkbox__icon"),l.disabled&&d.push("is-disabled"),t.h(C,{width:g,height:g,class:d})}}else{if(s.icon)return s.icon();{const g=ie(l.iconSize),C=l.icon??n;return d.push("fox-checkbox__icon--unchecked"),l.disabled&&d.push("is-disabled"),t.h(C,{width:g,height:g,class:d})}}},k=()=>{const d=[`${e}__label`];return l.disabled&&d.push("is-disabled"),t.h("view",{class:d},s.default?.())},v=()=>{const d=[`${e}__button`];return p.value&&d.push(`${e}__button--active`),l.disabled&&d.push("is-disabled"),t.h("view",{class:d},s.default?.())},f=d=>{if(!(l.disabled||l.readonly)){if(p.value&&c.partialSelect){c.partialSelect=!1,b(p.value,s.default?.()[0].children);return}if(b(!p.value,s.default?.()[0].children),m.value){const g=i.value.value,C=i.max.value,{label:B}=l,S=g.indexOf(B);S>-1?g.splice(S,1):S<=-1&&(g.length<C||!C)&&g.push(B),i.updateValue(g)}}};return t.onMounted(()=>{m.value&&i.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{m.value&&i.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${l.shape} ${u.value==="left"?`${e}--reverse`:""}`,onClick:f},[l.shape=="button"?v():[y(),k()]])}}),{componentName:Rf,create:Of}=X("checkbox"),jn=Of(Ff(Rf,{CheckNormal:oe.CheckNormal,Checked:oe.Checked,Indeterminate:oe.CheckDisabled})),{create:Kf,componentName:mr}=X("checkbox-group"),Wn=Kf({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:n,emit:a}){const o=t.reactive({children:[]}),l=m=>{m.proxy&&o.children.push(m.proxy)},r=m=>{m.proxy&&(o.children=o.children.filter(p=>p!==m.proxy))},s=m=>{a("update:modelValue",m),a("change",m)},i=m=>{const p=[];m&&o.children.forEach(u=>{u?.disabled||p.push(u?.label)}),a("update:modelValue",p)},c=()=>{const m=o.children.filter(p=>p?.disabled?!1:!e.modelValue.includes(p.label)).map(p=>p.label);a("update:modelValue",m)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:l,unlink:r}),t.watch(()=>e.modelValue,m=>{a("change",m)}),$e({toggleAll:i,toggleReverse:c}),()=>{const m={};return e.textAlign&&(m["text-align"]=e.textAlign),t.h("view",{class:`${mr} ${mr}--${e.direction}`,style:m},n.default?.())}}});function pr(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(Eo(e,r)===a)return l}else if(o==="item"){if(qe(a,r))return l}else if(ln(e,r)===a)return l}return-1}function Eo(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ln(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Uf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Hf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let jf=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Wf(){const e=t.getCurrentInstance();return new jf(e.proxy)}function Yf(e){return{text:e,value:e}}const Xf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},hr={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},Qf={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:[]}};function Gf(e,n,a,o,l){return{props:{...me,...ge,...Xf,...hr,...Qf},emits:["change","update:modelValue"],setup(r,s){const i=we(t.computed(()=>r.disabled)),c=we(t.computed(()=>r.readonly)),m=Be(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return c.value},get disabled(){return i.value}},r.prop??s.attrs.name),u=Wf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,d])=>{if(f){const g=await u.load("checkbox",f,d);if(g.length>0)if(typeof g[0]=="string"){const S=g.map(N=>Yf(N));h.value=S}else h.value=g}},{immediate:!0});const b=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([f,d])=>{const g=[];Array.isArray(f)&&f.forEach(C=>{let B=pr(r,d,C,r.valueType);B!==-1&&g.push(B)}),!qe(g,b.value)&&(b.value=g)},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;let f=[];return b.value.forEach(d=>{let g=h.value[d];f.push(ln(r,g))}),f}),k=f=>{let d=[],g=[];if(h.value.length>0){const C=[];Array.isArray(f)&&f.forEach(B=>{let S=pr(r,h.value,B,"value");S!==-1&&C.push(S);const N=h.value[S];g.push(N),r.valueType==="text"?d.push(Eo(r,N)):r.valueType==="item"?d.push(N):d.push(ln(r,N))}),b.value=C}else d=f;p("update:modelValue",d),p("change",d,g)},v=t.ref();if($e({toggleAll:f=>{v.value.toggleAll(f)},toggleReverse:()=>{v.value.toggleReverse()}}),r.source){const f=()=>{const d=[],g=ve(r,hr);return h.value.forEach((C,B)=>{const S=ln(r,C),N=Uf(r,C);let A={...g,label:S,disabled:N};const V=Hf(r,C,B);A={...A,...V},i.value&&(A.disabled=!0),c.value&&(A.readonly=!0);const T={};if(s.slots.icon&&(T.icon=s.slots.icon),s.slots.checkedIcon&&(T.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(T.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const M=s.slots.text(C);T.default=()=>[M]}else{const M=Eo(r,C);T.default=()=>M}let w=t.h(l,A,T);d.push(w)}),d};return()=>{const d=f(),g={class:`${e}`,ref:v,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:y.value,"onUpdate:modelValue":k},C=t.h(o,g,{default:()=>d}),B={default:()=>C};B.label=s.slots.default,B.prepend=s.slots.prepend,B.append=s.slots.append,B.fixedPreTip=s.slots.fixedPreTip,B.fixedTip=s.slots.fixedTip;const S=ve(r,ge,me);return t.h(a,{...S,prop:`${r.prop}_item`},B)}}else return()=>{const f=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:v,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:m.value,modelValue:y,"onUpdate:modelValue":k},{default:()=>f})}}}}const{componentName:Zf,create:Jf,scope:_f}=X("checkbox-item"),sl=Jf(Gf(Zf,_f,Se,Wn,jn)),xo={modelValue:{type:[String,Number,Boolean],default:!1},disabled:{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:em,create:tm}=X("switch"),nm=tm({components:{Loading1:oe.Loading1},props:{...xo},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const i=em;return{[i]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-base`]:!0,"is-disabled":e.disabled}}),l=t.computed(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disabled||e.loading)return;r="click";const c=a.value?e.inactiveValue:e.activeValue;n("update:modelValue",c),n("change",c,i)};return t.watch(()=>e.modelValue,i=>{r=="click"?r="":n("change",i)}),{classes:o,style:l,isActive:a,onClick:s}}}),om={class:"fox-switch-button"};function lm(e,n,a,o,l,r){const s=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",om,[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 Yn=ne(nm,[["render",lm]]);function am(e,n,a,o){return{props:{...me,...ge,...xo},emits:["change","update:modelValue"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),m=e,p=xe(l,"modelValue"),u=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const b={...ve(l,xo),disabled:s.value||i.value,value:p.value,"onUpdate:modelValue":u},y=[],k=t.h(o,b);y.push(k);const v={default:()=>y};v.label=r.slots.default,v.fixedPreTip=r.slots.fixedPreTip,v.fixedTip=r.slots.fixedTip;const f=ve(l,ge,me);return f["content-class"]=m,t.h(a,{...f,prop:`${l.prop}_item`},v)}}}}const{componentName:rm,create:sm,scope:im}=X("switch-item"),il=sm(am(rm,im,Se,Yn));function cm(e,n,a,o){return{props:{...me,...ge,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:m}=re.useFoxI18n(n),p=m(l,["placeholder"]),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,M=>{u.value=M,c("change",M)});const h=t.computed(()=>({[`${e}`]:!0})),b=t.computed(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&ue(u.value),"is-disabled":s.value,"is-readonly":i.value})),y=Be(t.computed(()=>l.textAlign),"textAlign"),k=t.computed(()=>{const M={};return y.value&&(M["text-align"]=y.value),M}),v=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),f=t.computed(()=>ue(u.value)?p.placeholder.value:u.value),d=t.computed(()=>!ue(l.desc)||r.slots.sub),g=t.computed(()=>({[`${e}__sub`]:!0})),C=t.computed(()=>{const M={};return y.value&&(M["text-align"]=y.value),M}),B=()=>{c("focus",u.value)},S=()=>{c("blur",u.value)},N=t.computed(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),A=t.computed(()=>ye(l.unit)>0),V=M=>{s.value==!0||i.value==!0||c("click")},T=t.computed(()=>l.icon??a),w=t.computed(()=>({action:!0}));return()=>{const M=[];if(typeof r.slots.content=="function"){const I=r.slots.content();M.push(I)}else{const I=[];if(v.value){const F={tabIndex:0,class:b.value,style:k.value,onFocus:B,onBlur:S};let q=null;r.slots.main?q=t.h("view",F,[r.slots.main(f.value)]):q=t.h("view",F,[f.value]),I.push(q)}if(d.value){const F={tabIndex:0,class:g.value,style:C.value,onFocus:B,onBlur:S};let q=null;r.slots.sub?q=t.h("view",F,[r.slots.sub(l.desc)]):q=t.h("view",F,[l.desc]),I.push(q)}const L={class:h.value,onClick:V},x=t.h("view",L,I);M.push(x)}const P=[],$=ie(l.iconSize);let E=r.slots.icon;if(!E){const I={width:$,height:$,class:["action-icon"]};E=t.h(T.value,I)}const K={class:w.value,onClick:V},D=t.h("view",K,{default:()=>[E]});if(P.push(D),A.value){const I=t.h("view",{},[l.unit]);P.push(I)}const W={class:N.value},H=t.h("view",W,{default:()=>P});M.push(H);const Z={default:()=>M};Z.label=r.slots.default,Z.prepend=r.slots.prepend,Z.append=r.slots.append,Z.fixedPreTip=r.slots.fixedPreTip,Z.fixedTip=r.slots.fixedTip;const _=ve(l,ge,me);return t.h(o,{..._,prop:`${l.prop}_item`},Z)}}}}const{componentName:um,create:dm,scope:fm}=X("link-item"),cl=dm(cm(um,fm,oe.ArrowRight,Se)),Do={count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object},size:{type:[String,Number],default:void 0},activeColor:{type:String,default:""},voidColor:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:void 0}},{create:mm,componentName:pm}=X("rate"),hm=mm({props:{...Do},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[pm]:!0})),r=b=>{n("update:modelValue",b),n("change",b)},s=(b,y)=>{if(e.disabled||e.readonly)return;let k=0;y===1&&e.modelValue===y||(k=y,e.allowHalf&&b==2&&(k-=.5)),r(k)},i=(b,y,k)=>{let v=0;for(let f=y.value.length-1;f>=0;f--){const d=y.value[f];if(b>d.offsetLeft){k?v=f+(b>d.offsetLeft+d.clientWidth/2?1:.5):v=f+1;break}}return v},c=_e(),m={onTouchStart(b){!e.touchable||e.readonly||c.start(b)},onTouchMove(b){e.touchable&&(c.move(b),c.isHorizontal()&&o.value&&(b.preventDefault(),r(i(c.moveX.value,o,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),u=t.computed(()=>e.customIcon??oe.StarFillN);return{classes:l,...m,onClick:s,toPxDesc:he,renderIcon:(b,y)=>t.h(b,y),rateRefs:o,refRandomId:p,slots:a,customIcon:u}}}),gm=["id"],ym={class:"fox-rate-item__icon--full"},vm={key:0,class:"fox-rate-item__icon--half"},bm={key:1,class:"fox-rate-item__icon--half"};function km(e,n,a,o,l,r){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(s<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",ym,[(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",vm,[(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",bm,[(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,gm))),128))],34)}const kt=ne(hm,[["render",km]]);function Sm(e,n,a,o){return{props:{...me,...ge,...Do},emits:["change","update:modelValue"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),m=e,p=xe(l,"modelValue"),u=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const b={...ve(l,Do),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":u},y=[],k=t.h(o,b);y.push(k);const v={default:()=>y};if(r.slots.default){const g=r.slots.default();v.label=()=>g}const f=ve(l,ge,me);return f["content-class"]=m,t.h(a,f,v)}}}}const{componentName:Cm,create:wm,scope:Nm}=X("rate-item"),ul=wm(Sm(Cm,Nm,Se,kt)),Bm=/scroll|auto|overlay/i,Vs=window;function Am(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Io(e,n=Vs){let a=e;for(;a&&a!==n&&Am(a);){const{overflowY:o}=window.getComputedStyle(a);if(Bm.test(o))return a;a=a.parentNode}return n}function Ts(e,n=Vs){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=Io(e.value,n))}),a}const $s=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Vm={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},immediate:{type:[Boolean],default:!1}};function Tm(e,n,a){return{props:{...Vm},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["pullText","loadText","loadMoreText"]),c=t.ref(),m=Ts(c),p=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),u=t.computed(()=>({[e]:!0})),h=d=>d?d.offsetTop+h(d.offsetParent):0,b=()=>{let d=0,g=0,C="down";if(m.value==window){const B=$s();c.value&&(d=h(c.value)+c.value.offsetHeight-B-window.innerHeight),g=B}else{const{scrollHeight:B,clientHeight:S,scrollTop:N}=m.value;d=B-S-N,g=N}return p.beforeScrollTop>g?C="up":C="down",p.beforeScrollTop=g,l("scroll-change",g),d<=o.threshold&&C=="down"},y=()=>{Xe(()=>{if(!b()||!o.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,l("update:modelValue",!0),t.nextTick(()=>l("load-more"))})},k=()=>{m.value&&m.value.addEventListener("scroll",y,o.useCapture)},v=()=>{m.value&&m.value.removeEventListener("scroll",y,o.useCapture)};t.onMounted(()=>{k(),o.immediate&&y()}),t.onUnmounted(()=>{v()});const f=t.ref(!1);return t.onActivated(()=>{f.value&&(f.value=!1,k())}),t.onDeactivated(()=>{f.value=!0,v()}),t.watch(()=>o.modelValue,d=>{d||(p.isInfiniting=!1)}),()=>{const d={class:"fox-infinite__container"},g=t.h("view",d,[r?.default?.()]),C=[];if(p.isInfiniting){let A=r?.loading?.()??null;if(!A){let w=r?.loadingIcon?.()??null;if(!w){const $={class:["fox-infinite__bottom-box__img"]};w=t.h(a,$)}const M={class:"fox-infinite__bottom-box__text"},P=t.h("view",M,[i.loadText.value]);A=[w,P]}const V={class:"fox-infinite__bottom-box"},T=t.h("view",V,A);C.push(T)}else if(!o.hasMore){let A=r?.finished?.()??null;if(!A){const V={class:"fox-infinite__bottom-tips"};A=t.h("view",V,[i.loadMoreText.value]),C.push(A)}}const B={class:"fox-infinite__bottom"},S=t.h("view",B,C),N={class:u.value,ref:c};return t.h("view",N,[g,S])}}}}const{componentName:$m,create:Em,scope:xm}=X("infinite-loading"),Xn=Em(Tm($m,xm,oe.Loading)),{componentName:Dm,create:Im}=X("button"),qm=Im({components:{Loading:oe.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:n,slots:a}){const{type:o,size:l,shape:r,disabled:s,loading:i,color:c,plain:m,block:p}=t.toRefs(e),u=y=>{!i.value&&!s.value&&n("click",y)},h=t.computed(()=>{const y=Dm;return{[y]:!0,[`${y}--${o.value}`]:o.value,[`${y}--${l.value}`]:l.value,[`${y}--${r.value}`]:r.value,[`${y}--plain`]:m.value,[`${y}--block`]:p.value,[`${y}--disabled`]:s.value,[`${y}--loading`]:i.value}}),b=t.computed(()=>{const y={};return c?.value&&(m.value?(y.color=c.value,y.background="#fff",c.value?.includes("gradient")||(y.borderColor=c.value)):(y.color="#fff",y.background=c.value)),y});return{handleClick:u,classes:h,getStyle:b}}}),Mm={class:"fox-button__wrap"};function Pm(e,n,a,o,l,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",Mm,[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 Me=ne(qm,[["render",Pm]]),Lm={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},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},zm=(e,n,a)=>({props:{...Lm},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["placeholder"]),c=t.reactive({active:!1}),m=t.computed(()=>({background:o.background})),p=t.computed(()=>({background:o.inputBackground})),u=V=>{let w=V.target.value;o.maxLength&&w.length>Number(o.maxLength)&&(w=w.slice(0,Number(o.maxLength))),l("update:modelValue",w,V),l("change",w,V)},h=t.ref({}),b=V=>{let w=V.target.value;c.active=!0,h.value=o.focusStyle,l("focus",w,V)},y=V=>{setTimeout(()=>{c.active=!1},0);let w=V.target.value;o.maxLength&&w.length>Number(o.maxLength)&&(w=w.slice(0,Number(o.maxLength))),h.value={},l("blur",w,V)},k=V=>{l("update:modelValue","",V),l("change","",V),l("clear","")},v=t.computed(()=>String(o.modelValue).length>0),f=t.computed(()=>{const V={};return v.value||(V.display="none"),V}),d=()=>{o.autoblur&&N.value?.blur(),l("search",o.modelValue)},g=V=>{l("keyup-input",V),V.key.toLocaleUpperCase()==="ENTER"&&d()},C=V=>{l("click-input",V)},B=V=>{l("click-left-icon",o.modelValue,V)},S=t.computed(()=>({textAlign:o.inputAlign})),N=t.ref(null);t.onMounted(()=>{o.autofocus&&N.value.focus()});const A=()=>{const V=[];if(r.leftin){const $={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},E=t.h("view",$,[r.leftin()]);V.push(E)}const T={ref:N,class:[`${e}__input-inner`],style:S.value,type:o.inputType,maxlengt:o.maxLength,placeholder:i.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:C,onInput:u,onFocus:b,onBlur:y,onkeyup:g},w=t.h("input",T);V.push(w);const M=[];if(o.clearable){const $={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:k},E=r?.clear?.()??o.clearIcon??a,K=t.h("view",$,[t.h(E)]);M.push(K)}if(r.rightin){const $={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},E=t.h("view",$,[r.rightin()]);M.push(E)}if(M.length>0){const $={class:`${e}__input-inner-right`},E=t.h("view",$,M);V.push(E)}const P={class:[`${e}__search-input`,`${o.shape}`],style:{...p.value,...h.value}};return t.h("view",P,V)};return()=>{const V=[];if(o.label){const M={class:`${e}__search-label`},P=t.h("span",M,[o.label]);V.push(P)}if(r.leftout){const M={class:[`${e}__search-icon`,`${e}__left-search-icon`]},P=t.h("view",M,[r.leftout()]);V.push(P)}const T=A();if(V.push(T),r.rightout){const M={class:[`${e}__search-icon`,`${e}__right-search-icon`]},P=t.h("view",M,[r.rightout()]);V.push(P)}const w={class:`${e}`,style:m.value};return t.h("view",w,V)}}}),{componentName:Fm,create:Rm,scope:Om}=X("searchbar"),Qn=Rm(zm(Fm,Om,oe.CircleClose)),an={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},textPosition:{type:[String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Km(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(rn(e,r)===a)return l}else if(o==="item"){if(qe(a,r))return l}else if(Es(e,r)===a)return l}return-1}function rn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function gr(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Es(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Um(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Hm(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let jm=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let m=a;typeof i=="function"&&(m=m.filter(i));let p=(o-1)*l,u=p+l;u>m.length&&(u=m.length);const h=m.slice(p,u);return{totalSize:m.length,page:h}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s]);const c=Je(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ae(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r]))}};function Wm(){const e=t.getCurrentInstance();return new jm(e.proxy)}function Ym(e,n,a,o,l,r,s,i,c,m,p){return{props:{...an},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(u,{emit:h,slots:b}){const{toLocaleRefs:y}=re.useFoxI18n(n),k=y(u,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),v=Wm(),f=t.ref([]),d=t.ref(0),g=t.ref(""),C=t.shallowRef(null),B=t.computed(()=>{const O={};return u.params&&Object.assign(O,u.params),ue(g.value)||(O[`${u.searchKey}`]=g.value),C.value&&Object.assign(O,C.value),O});let S=!0;const N=async(O,U,G)=>{try{if(V.value===!1)return;let Q=null;ue(g.value)||(Q=z=>{const ee=rn(u,z);if(typeof ee=="string"&&ee.includes(g.value))return!0;const te=gr(u,z);return!!(typeof te=="string"&&te.includes(g.value))});const J=await v.load("actionsheet",O,U,G,B.value,S,Q??void 0);S=!1,Array.isArray(J)?(f.value=J,d.value=1,V.value=!1):!Array.isArray(J.page)||J.page.length===0?(console.warn("[FoxUI] can not load more data"),V.value=!1):(Reflect.apply([].push,f.value,J.page),d.value=Math.ceil(f.value.length/u.pageSize),(J.totalSize&&f.value.length>=J.totalSize||G<J.page.length)&&(V.value=!1)),A.value=!1}catch(Q){console.error("[FoxUI] ActionSheet load more data fail",Q),V.value=!0,d.value=0,f.value=[]}setTimeout(()=>{h("loaded-data")},250)},A=t.ref(!1),V=t.ref(!0),T=async()=>{if(!u.source){A.value=!1;return}await N(u.source,d.value+1,u.pageSize)};t.watch(()=>g.value,(O,U)=>{ue(O)&&!ue(U)&&T()});const w=()=>{V.value=!0,d.value=0,f.value=[],u.source&&T()};t.watch([()=>u.source,()=>u.pageSize,()=>u.params],async([O,U,G])=>{u.source&&w()},{immediate:!0});const M=t.computed(()=>!u.multiple&&u.isAutoBackFill),P=t.ref([]);let $=null;const E=t.ref(u.visible);t.watch(()=>u.visible,O=>{E.value!==O&&(E.value=O),O?$=[...P.value]:$=null});const K=(O,U)=>{const G=[];return Array.isArray(O)||(O=[O]),O.forEach(Q=>{let J=Km(u,U,Q,u.valueType);J!==-1&&G.push(J)}),qe(G,P.value)?!1:(P.value=G,!0)};t.watch([()=>u.modelValue,()=>f.value],([O,U],[G,Q])=>{if(K(O,U)){const z=D();W(z)}},{deep:!0});const D=()=>{const O=[],U=[],G=[];for(let ee of P.value){const te=f.value[ee];U.push(te);const ae=rn(u,te);if(G.push(ae),u.valueType==="item")O.push(te);else if(u.valueType==="text")O.push(ae);else{const ce=Es(u,te);O.push(ce)}}let Q=null,J=null,z=null;return u.multiple?(Q=O,J=G,z=U):(Q=O[0]??null,J=G[0]??null,z=U[0]??null),{value:Q,text:J,item:z}},W=O=>{h("update:modelValue",O.value),h("update:text",O.text),h("change",O.value,O.item,O.text)},H=()=>{$&&(P.value=$)},Z=O=>{const U=P.value.indexOf(O);u.multiple?U===-1?P.value.push(O):P.value.splice(U,1):U===-1?P.value=[O]:P.value=[],(M.value||!u.poppable&&!u.showFooter)&&I()},_=O=>{E.value=O,h("update:visible",O)},j=()=>{const O=()=>{H(),_(!1)},U=u.beforeMethod??u.beforeClose;if(typeof U=="function"){const G=U("close");gt(G)?G.then(Q=>{Q!==!1&&O()}).catch(()=>{O()}):G!==!1&&O()}else O()},I=()=>{const O=D(),U=()=>{W(O),_(!1)},G=u.beforeMethod??u.beforeClose;if(typeof G=="function"){const Q=G("confirm",O.value,O.item,O.text);gt(Q)?Q.then(J=>{J!==!1&&U()}).catch(()=>{U()}):Q!==!1&&U()}else U()},L=()=>{let O=k.title.value??"";b.title&&(O=b.title());const U=t.h("view",{class:["fox-actionsheet__header-title"]},[O]),G=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:j});return t.h("view",{class:["fox-actionsheet__header"]},[U,G])},x=()=>{let O=null;if(b.search)O=b.search();else{const U={onSearch:w,placeholder:k.seachPlaceholder.value,disabled:u.disabled,modelValue:g.value,"onUpdate:modelValue":G=>{g.value=G}};O=t.h(r,U,{leftin:()=>t.h(m)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[O])},F=(O,U,G,Q,J)=>{if(b.optionLabel)return b.optionLabel({text:O,checked:U,disabled:G,subText:Q,item:J});const z=[],ee=t.h("view",{class:"fox-actionsheet__list-item-text"},[O]);if(z.push(ee),Q){const te=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[Q]);z.push(te)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},z)},q=(O,U,G,Q)=>{if(b.optionIcon)return b.optionIcon({checked:O,disabled:U,iconSize:G,item:Q});if(O){if(b.checkedIcon)return b.checkedIcon({disabled:U,item:Q});{const J=u.checkedIcon??i;return t.h(J,{width:G,height:G,class:["fox-actionsheet__list-item-icon"]})}}else{if(b.icon)return b.icon({disabled:U,item:Q});{const J=u.icon??s;return t.h(J,{width:G,height:G,class:["fox-actionsheet__list-item-icon"]})}}},R=()=>{const O=[];for(let U=0;U<f.value.length;U++){const G=f.value[U],Q=rn(u,G),J=gr(u,G),z=["fox-actionsheet__list-item"],ee={};let te=Um(u,G),ae=u.iconSize?ie(u.iconSize):null;const ce=Hm(u,G,U);ce&&(te=te||ce.disabled,ce.class&&z.push(ce.class),ce.style&&Object.assign(ee,ce.style)),te=!!(u.disabled||te);const Ee=P.value.includes(U);te&&z.push("is-disabled"),Ee&&z.push("is-checked");const De={class:z,style:ee,key:`${U}`,onClick:()=>{te||Z(U)}};let Ye=[];if(b.option)Ye.push(b.option({item:G,checked:Ee,disabled:te}));else{const zs=F(Q,Ee,te,J,G);Ye.push(zs);const Fs=q(Ee,te,ae,G);Ye.push(Fs),u.textPosition==="right"&&Ye.reverse()}const Jn=t.h("view",De,Ye);O.push(Jn)}return O},Y=()=>{let O=[];if(b.buttons)O=b.buttons();else{const G=t.h(l,{type:"primary",block:"block",onClick:I,disabled:u.disabled},{default:()=>k.confirmText.value});O.push(G)}return t.h("view",{class:"fox-actionsheet__footer"},[O])};return $e({search:async(O=null,U=!0)=>{C.value=O&&t.toRaw(O),t.triggerRef(C),U&&(V.value=!0,d.value=0,f.value=[]),t.nextTick(()=>{T()})},clear:()=>{V.value=!0,d.value=0,f.value=[]},confirm:()=>{I()},cancel:()=>{j()}}),()=>{const O=[];if(u.showHeader){const ae=L();O.push(ae)}if(u.showSearchbar){const ae=x();O.push(ae)}let U=null;if(b.content)U=b.content();else{const ae=R(),ce={hasMore:V.value,loadText:k.loadText.value,loadMoreText:k.loadMoreText.value,modelValue:A.value,"onUpdate:modelValue":Ee=>{A.value=Ee},onLoadMore:T};U=t.h(o,ce,{default:()=>ae})}const G={};u.optionsHeight&&(G.height=u.optionsHeight);const Q={"fox-actionsheet__list":!0};u.poppable||(Q["fox-actionsheet__list--inner"]=!0);const J=t.h("view",{class:Q,style:G},[U]);if(O.push(J),u.showFooter&&!M.value){const ae=Y();O.push(ae)}const z=t.h("view",{class:"fox-actionsheet"},O);if(!u.poppable)return z;const ee=["fox-actionsheet__popup"];u.popClass&&ee.push(u.popClass);const te={popClass:ee.join(" "),visible:E.value,closeable:!1,"onUpdate:visible":_,position:u.position,round:"round",onClickOverlay:j,closeOnClickOverlay:u.closeOnClickOverlay};return t.h(a,te,{default:()=>z})}}}}const{componentName:Xm,create:Qm,scope:Gm}=X("actionsheet-pane"),Gn=Qm(Ym(Xm,Gm,de,Xn,Me,Qn,oe.CheckNormal,oe.Checked,oe.Close,oe.Search2)),yr={type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Zm(e,n,a,o,l,r,s){return{props:{...me,...ge,...yr,...an},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const m=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),b=h(i,["placeholder"]),y=t.ref(!1),k=xe(i,"modelValue"),v=t.ref(""),f=t.computed(()=>Array.isArray(v.value)?v.value.join(i.separator):v.value),d="fox-input-item",g=t.computed(()=>({[d]:!0,"is-disabled":m.value,"is-readonly":p.value})),C=Be(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const x={};return C.value&&(x["text-align"]=C.value),x}),S=t.ref(!1),N=()=>{S.value=!0},A=x=>{S.value=x},V=x=>{k.value=x,u("update:modelValue",x)},T=(x,F)=>{u("change",x,F)},w=x=>{let q=x.target.value;y.value=!0,u("focus",q,x)},M=x=>{setTimeout(()=>{y.value=!1},0);let q=x.target.value;i.maxLength&&q.length>Number(i.maxLength)&&(q=q.slice(0,Number(i.maxLength))),u("blur",q,x)},P=x=>{v.value=x,u("update:text",x)},$=t.computed(()=>({[`${d}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),E=t.computed(()=>ye(i.unit)>0),K=t.computed(()=>ye(i.unit)>0&&!y.value),D=t.computed(()=>({hidden:!K.value})),W=x=>{k.value="",u("update:modelValue","",x),u("change","",x),u("clear","")},H=t.computed(()=>i.clearable&&!m.value&&!p.value),Z=t.computed(()=>ye(k.value)>0&&y.value),_=x=>{Z.value?W(x):N()},j=t.computed(()=>Z.value&&H.value?o:l),I=t.computed(()=>({action:!0})),L=t.ref(null);return $e({search:x=>{L.value&&L.value.search(x)},clear:()=>{L.value&&L.value.clear},confirm:x=>{L.value&&L.value.confirm()},cancel:()=>{L.value&&L.value.cancel()}}),()=>{const x={class:g.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:b.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:w,onBlur:M};s&&(x.disabled=!0);const F=[],q=t.h("input",x);F.push(q);const R=[],Y={class:["action-icon"]},O=t.h(j.value,Y),U={class:I.value,onClick:_},G=t.h("view",U,{default:()=>[O]});if(R.push(G),E.value){const De=t.h("view",{class:D.value},[i.unit]);R.push(De)}const Q={class:$.value},J=t.h("view",Q,{default:()=>R});F.push(J);const z={default:()=>F};z.label=c.slots.default,z.prepend=c.slots.prepend,z.append=c.slots.append,z.fixedPreTip=c.slots.fixedPreTip,z.fixedTip=c.slots.fixedTip;const ee=ve(i,an);ee.ref=L,ee.class=i.actionsheetProps,ee.disabled=m.value||p.value,ee.visible=S.value,ee["onUpdate:visible"]=A,ee.modelValue=k.value,ee["onUpdate:modelValue"]=V,ee.text=v.value,ee["onUpdate:text"]=P,ee.onChange=T,ee.poppable=!0,ee["text-position"]=i.textPosition;const te={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},ae=t.h(r,ee,te);z.hide=()=>[ae];const ce=Nt(i,yr,an);return t.h(a,{...ce,prop:`${i.prop}_item`},z)}}}}const{componentName:Jm,create:_m,scope:ep}=X("actionsheet-item"),dl=_m(Zm(Jm,ep,Se,oe.CircleClose,oe.ArrowRight,Gn)),qo={modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{componentName:tp,create:np}=X("input-number"),op=np({components:{Minus:oe.Minus,Plus:oe.Plus},props:{...qo},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const b=tp;return{[b]:!0,[`${b}--disabled`]:e.disabled}}),o=b=>Number(b).toFixed(Number(e.decimalPlaces)),l=b=>{const y=b.target;n("update:modelValue",y.valueAsNumber,b)},r=(b,y)=>{let k=o(b);n("update:modelValue",k,y),n("change",k,y)},s=(b=Number(e.modelValue))=>b<Number(e.max)&&!e.disabled,i=(b=Number(e.modelValue))=>b>Number(e.min)&&!e.disabled,c=b=>{if(n("reduce",b),i()){let y=Number(e.modelValue)-Number(e.step);r(y,b)}else n("overlimit",b,"reduce")},m=b=>{if(n("add",b),s()){let y=Number(e.modelValue)+Number(e.step);r(y,b)}else n("overlimit",b,"add")},p=b=>{e.disabled||e.readonly||n("focus",b)},u=b=>{if(e.disabled||e.readonly)return;let k=b.target.valueAsNumber;k<Number(e.min)?k=Number(e.min):k>Number(e.max)&&(k=Number(e.max)),r(k,b),n("blur",b)},h=b=>{let y=Number(b);return y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),y};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const b=h(e.modelValue);b!==Number(e.modelValue)&&r(b,{})}),{classes:a,change:l,blur:u,focus:p,add:m,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:he}}}),lp=["min","max","disabled","readonly","value"];function ap(e,n,a,o,l,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:n[0]||(n[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:n[1]||(n[1]=(...c)=>e.change&&e.change(...c)),onBlur:n[2]||(n[2]=(...c)=>e.blur&&e.blur(...c)),onFocus:n[3]||(n[3]=(...c)=>e.focus&&e.focus(...c))},null,44,lp),t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[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 Ze=ne(op,[["render",ap]]);function rp(e,n,a,o){return{props:{...me,...ge,...qo},emits:["change","update:modelValue"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),m=e,p=xe(l,"modelValue"),u=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const h={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},y={...ve(l,qo),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":u},k=t.h(o,y,h),v=[];v.push(k);const f={default:()=>v};f.label=r.slots.default,f.fixedPreTip=r.slots.fixedPreTip,f.fixedTip=r.slots.fixedTip;const d=ve(l,ge,me);return d["content-class"]=m,t.h(a,{...d,prop:`${l.prop}_item`},f)}}}}const{componentName:sp,create:ip,scope:cp}=X("inputnumber-item"),fl=ip(rp(sp,cp,Se,Ze)),up={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function dp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function vr(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function br(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function fp(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function io(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function kr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Sr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function co(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let mp=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await Reflect.apply(a,null,[o]);const l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(l,null,[a,o]))}};function pp(){const e=t.getCurrentInstance();return new mp(e.proxy)}function hp(e,n,a,o){return{props:{...up},emits:["update:modelValue","change","loaded-data"],setup(l,{slots:r,emit:s}){const i=e,c=pp(),m=t.ref([]),p=t.computed(()=>m.value.filter(I=>fp(l,I)!==!1)),u=t.ref(-1),h=()=>{const I=l.modelValue,L=p.value.findIndex(x=>vr(l,x)===I);u.value!==L&&(u.value=L,l.scroll&&_(L,!1))};t.watch([()=>l.modelValue,p],()=>{h()});const b=I=>u.value===I,y=I=>{if(I<0&&I>=p.value.length)return!1;const L=p.value[I],F=(co(l,L,I)??{}).status??io(l,L);return b(I)||F},k=t.computed(()=>{const I={[i]:!0};return l.mode?I[`is-${l.mode}`]=!0:l.direction&&(I[`is-${l.direction}`]=!0),l.scroll&&(I["is-scroll"]=!0),I}),v=t.computed(()=>({})),f=(I,L,x,F,q)=>{const R={[`${i}__step`]:!0};return q&&(R[`${q}`]=!0),R[`${d.value}`]=!0,F&&(R["is-doit"]=!0),I===u.value?R["is-active"]=!0:L==="done"?R["is-done"]=!0:L==="error"?R["is-error"]=!0:L==="half"?R["is-half"]=!0:x?R["is-disabled"]=!0:R["is-normal"]=!0,R},d=t.computed(()=>{if(l.mode==="simple")return"start";let I=l.align;return I||(l.direction==="vertical"?I="start":I="center"),I}),g=(I,L={})=>{const x={...L};return d.value==="start"&&I===p.value.length-1?x.flex="0 0 auto":l.step?l.direction==="vertical"?x.height=l.step:x.width=l.step:x.flex="1 1 100%",x},C=(I,L)=>{let x={};if(L<p.value.length-1){const F=L+1;y(L)&&y(F)?l.direction==="vertical"?x.height="100%":x.width="100%":x.opacity="0"}return x},B=I=>p.value.length-1===I,S=(I,L)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&L>u.value||u.value===L)return;const x=u.value,F=L;u.value=L,l.scroll&&_(L,!1);const q=vr(l,I);s("update:modelValue",q);const R={fromIndex:x,currentIndex:F,item:I,items:p.value,clickNavigatePolicy:l.clickNavigatePolicy};s("change",q,R)},N=t.ref(!0),A=async(I,L)=>{try{const x=await c.load("stesbar",I,L);Array.isArray(x)&&(m.value=x),N.value=!1}catch(x){console.error("[FoxUI] Load StepsBar Data Fail",x),m.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([I,L])=>{I&&A(I,L)},{immediate:!0});const V=(I,L,x,F,q)=>{let R=null;if(r.icon)R=r.icon({item:I,index:L,status:F});else if(F==="done"){const O={};l.iconSize&&(O.width=l.iconSize,O.height=l.iconSize);const U=l.icon??a;R=t.h(U,O)}else{const O=x??`${L+1}`;R=t.h("span",{},[O])}const Y={class:"fox-steps-bar__icon",onClick:()=>{q||S(I,L)}};return t.h("view",Y,[R])},T=(I,L,x)=>{const F=t.h("i",{class:"fox-steps-bar__line-inner",style:C(I,L)});return t.h("view",{class:"fox-steps-bar__line"},[F])},w=()=>{let I=null;if(r.markIcon)I=r.markIcon();else{const x={};l.iconSize&&(x.width=l.markIconSize,x.height=l.markIconSize);const F=l.markIcon??o;I=t.h(F,x)}return t.h("view",{class:"fox-steps-bar__mark"},[I])},M=(I,L,x,F,q)=>{const R=[];if(!B(L)){const U=T(I,L);R.push(U)}const Y=V(I,L,x,F,q);R.push(Y);const O={class:"fox-steps-bar__head"};return t.h("view",O,R)},P=(I,L,x,F)=>{let q=null;r.main?q=r.main({item:I,index:L,status:x}):q=dp(l,I);const R={class:"fox-steps-bar__main",onClick:()=>{F||S(I,L)}};return t.h("view",R,[q])},$=(I,L,x)=>{let F=null;if(r.sub){F=r.sub({item:I,index:L,status:x});const q={class:"fox-steps-bar__sub"};return t.h("view",q,[F])}return null},E=(I,L)=>{const x=co(l,I,L)??{},F=x.status??io(l,I);let q=br(l,I);x.disabled===!0&&(q=!0),l.disabled===!0&&(q=!0);const R=x.label??Sr(l,I),Y=[],O=V(I,L,R,F,q);O&&Y.push(O);const U=P(I,L,F,q);if(U&&Y.push(U),!B(L)){const te=T(I,L);te&&Y.push(te)}const G=t.h("view",{class:"fox-steps-bar__head"},Y),Q=x.class,J=x.style??{};let z=kr(l,I);x.doit===!0&&(z=!0);const ee={ref:Z(L),class:f(L,F,q,z,Q),style:g(L,J)};return t.h("view",ee,[G])},K=(I,L)=>{const x=co(l,I,L)??{},F=x.status??io(l,I);let q=br(l,I);x.disabled===!0&&(q=!0),l.disabled===!0&&(q=!0);const R=x.label??Sr(l,I),Y=[],O=l.layout;for(let z of O)if(z==="head"){const ee=M(I,L,R,F,q);Y.push(ee)}else if(z==="main"){const ee=P(I,L,F,q);Y.push(ee)}else if(z==="sub"){const ee=$(I,L,F);Y.push(ee)}else if(z==="mark"){const ee=w();Y.push(ee)}const U=x.class,G=x.style??{};let Q=kr(l,I);x.doit===!0&&(Q=!0);const J={ref:Z(L),class:f(L,F,q,Q,U),style:g(L,G)};return t.h("view",J,Y)},D=t.ref(),W=t.ref([]),H=(I,L)=>{W.value[L]=I},Z=I=>L=>{H(L,I)},_=(I,L)=>{const x=D.value,F=W.value;if(!x||!F||!F[I])return;const q=F[I];let R=0;l.direction==="vertical"?R=q.offsetTop-(x.offsetHeight-q.offsetHeight)/2:R=q.offsetLeft-(x.offsetWidth-q.offsetWidth)/2,j(x,R,L?0:.3,l.direction)},j=(I,L,x,F)=>{let q=0;const R=F==="horizontal"?I.scrollLeft:I.scrollTop,Y=x===0?1:Math.round(x*1e3/16);function O(){F==="horizontal"?I.scrollLeft+=(L-R)/Y:I.scrollTop+=(L-R)/Y,++q<Y&&Re(O)}O()};return()=>{const I=[];if(l.mode==="simple")for(let x=0;x<p.value.length;x++){const F=p.value[x],q=E(F,x);I.push(q)}else for(let x=0;x<p.value.length;x++){const F=p.value[x],q=K(F,x);I.push(q)}const L={ref:D,class:k.value,style:v.value};return t.h("view",L,I)}}}}const{componentName:gp,create:yp,scope:vp}=X("steps-bar"),ml=yp(hp(gp,vp,oe.Checklist,oe.ArrowRight));function bp(e){e.stopPropagation()}class kp{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,a){this.startMove=n,this.updateMove=a,this.isTouch=_o()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=el(),o=(l,r,s,i)=>{this.updateMove({x:l,y:r})};this.touchstart=l=>{this.moving||(a.start(l),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(a.move(l),bp(l),o(a.state.deltaX,a.state.deltaY))},this.touchend=()=>{o(a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),a.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Sp(e,n){return new kp(e,n)}const Cp={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]}},wp=(e,n,a,o=!1)=>({props:{...Cp},emits:["click"],setup(l,{slots:r,emit:s}){const i=t.reactive({top:l.top,right:l.right,bottom:l.bottom,left:l.left}),c=t.computed(()=>{const d=[`${e}`];return l.customClass&&d.push(l.customClass),d}),m=t.computed(()=>{const d={};return ue(i.top)||(d.top=i.top),ue(i.right)||(d.right=i.right),ue(i.bottom)||(d.bottom=i.bottom),ue(i.left)||(d.left=i.left),ue(l.width)||(d.width=l.width),ue(l.height)||(d.height=l.height),ue(l.color)||(d.color=l.color),ue(l.background)||(d.background=l.background),ue(l.borderRadius)||(d["border-radius"]=l.borderRadius),d}),p=t.computed(()=>({[`${e}__icon`]:!0})),u=()=>{s("click")},h=t.ref(null),b=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},y={x:0,y:0},f=Sp(d=>{if(!h.value)return;const g=h.value;b(),i.left=g.offsetLeft,i.top=g.offsetTop,g.style.left=`${i.left}px`,g.style.top=`${i.top}px`,g.style.right=null,g.style.bottom=null,y.x=i.left,y.y=i.top},d=>{if(!h.value)return;const g=h.value;b(),i.left=y.x+d.x,i.top=y.y+d.y,g.style.left=`${i.left}px`,g.style.top=`${i.top}px`});return t.onMounted(()=>{if(l.draggable&&h.value){const d=[h.value];f.open(d)}}),t.onBeforeUnmount(()=>{l.draggable&&h.value&&f.close()}),()=>{let d=[];const g=typeof r.default=="function"?r.default():[];if(g&&g.length>0)d=g;else{const B=t.h(a,{class:p.value});d.push(B)}const C={ref:B=>{h.value=B},class:c.value,style:m.value,onClick:u};return t.h("view",C,d)}}}),{componentName:Np,create:Bp,scope:Ap}=X("floating-button"),pl=Bp(wp(Np,Ap,oe.Uploader,!1)),Vp={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1}};function Tp(e,n,a){return{props:{...Vp},emits:["click","update:modelValue"],setup(o,{emit:l}){const r=t.computed(()=>{const u={[`${e}`]:!0};return o.disabled?u[`${e}--disabled`]=!0:u[`${e}--${o.type}`]=!0,u}),s=xe(o,"modelValue"),i=t.computed(()=>s.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),m=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),p=()=>{l("update:modelValue",!s.value)};return()=>{const u=[];if(i.value){const v={class:c.value},f=t.h("span",v,[i.value]);u.push(f)}const h={class:m.value},b=o.icon??a,y=t.h(b,h);return u.push(y),o.textPosition==="right"&&u.reverse(),t.h("view",{class:r.value,onClick:p},u)}}}}const{componentName:$p,create:Ep,scope:xp}=X("more-button"),hl=Ep(Tp($p,xp,oe.RectUp)),Dp={width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},Ip=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function qp(e,n,a){return{props:{...Dp},setup(o,{attrs:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["confirmText","cancelText"]),c=e,m=t.ref(!0),p=C=>{m.value=C},u=C=>{if(typeof o.unmount=="function")try{o.unmount()}catch(B){console.error(B)}if(typeof o.callback=="function")try{o.callback(C)}catch(B){console.error(B)}},h=()=>{u("confirm")},b=()=>{u("cancel")},y=()=>{o.closeOnClickOverlay!==!1&&u("close")},k=(C,B)=>Ip(C)?(B.src=C,t.h("img",B)):typeof C=="string"?(Array.isArray(B.class)?B.class.push(C):B.class&&typeof B.class=="object"?B[`${C}`]=!0:typeof B.class=="string"?B.class=`${B.class}, ${C}`:B.class=C,t.h(o.tag,B)):t.h(C,B),v=()=>{const C=[];if(o.icon){const S={class:[`${c}__header-icon`]},N=k(o.icon,S);C.push(N)}if(o.title){const S=t.h("view",{class:`${c}__header-title`},[o.title]);C.push(S)}if(o.showClose&&o.closeIcon){const S={class:[`${c}__header-close-icon`],onClick:y},N=k(o.closeIcon,S);C.push(N)}const B={class:[`${c}__header`]};return t.h("view",B,C)},f=(C,B)=>{const S=[];if(B){const A={class:`${c}__group-title`},V=t.h("view",A,[B]);S.push(V)}if(C){const A=[];Array.isArray(C)||(C=[C]);for(let V of C){const T={class:`${c}__group-row`,innerHTML:V},w=t.h("view",T);A.push(w)}if(A.length>0){const V={class:`${c}__group-rows`},T=t.h("view",V,A);S.push(T)}}if(S.length===0)return null;const N={class:`${c}__group`};return t.h("view",N,S)},d=()=>{const C=[];if(typeof o.message=="string")C.push(o.message);else if(Array.isArray(o.message))for(let S of o.message)if(typeof S=="string"){const N=f(S);C.push(N)}else{const N=f(S.content,S.title);C.push(N)}else if(typeof o.message=="function"){const S=o.message();C.push(S)}else{const S=o.message;C.push(S)}const B={class:`${c}__body`};return t.h("view",B,C)},g=()=>{const C=[];if(o.showCancelButton){const S={class:[`${c}__footer-button`],style:{},onClick:b};o.cancelButtonClass&&S.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(S.style,o.cancleButtonStyle);const N=t.h("button",S,[o.cancelButtonText??i.cancelText.value]);C.push(N)}if(o.showConfirmButton){const S={class:[`${c}__footer-button`],style:{},onClick:h};o.confirmButtonClass&&S.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(S.style,o.confirmButtonStyle);const N=t.h("button",S,[o.confirmButtonText??i.confirmText.value]);C.push(N)}if(C.length===0)return null;const B={class:`${c}__footer`};return t.h("view",B,C)};return()=>{const C=[],B=v();B&&C.push(B);const S=d();S&&C.push(S);const N=g();N&&C.push(N);const A={class:{[`${c}`]:!0,[`${c}--${o.type||"info"}`]:!0}},V=t.h("view",A,C),T=[`${c}__popup`];o.popClass&&T.push(o.popClass);const w={};o.width&&(w.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(w.height=typeof o.height=="number"?`${o.height}px`:o.height);const M={popClass:T.join(" "),style:w,visible:m.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":p,position:o.position,round:"round",onClickOverlay:y,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,M,{default:()=>V})}}}}const{componentName:Mp,create:Pp,scope:Lp}=X("messagebox"),zp=Pp(qp(Mp,Lp,de)),Fp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M82.5121%201.93968L81.7498%206.07825C81.6498%206.6214%2081.1284%206.98064%2080.5853%206.8806C80.4326%206.85251%2080.2886%206.78925%2080.1646%206.69578L77.1586%204.43061C76.7175%204.09823%2076.6294%203.47123%2076.9618%203.03016C77.0552%202.90617%2077.1762%202.80562%2077.3153%202.73655L81.0834%200.863097C81.5779%200.617235%2082.1782%200.818843%2082.4241%201.31339C82.5204%201.50712%2082.5512%201.72688%2082.5121%201.93968Z'%20fill='%23FFD1C9'%20%3e%3c/path%3e%3cpath%20d='M3.08218%20102.2L6.53454%2094.2358C6.75419%2093.7291%207.34251%2093.4968%207.84925%2093.7164C7.99216%2093.7778%208.11815%2093.872%208.21791%2093.9909L13.2085%2099.9384C13.5635%20100.361%2013.5081%20100.992%2013.0852%20101.347C12.9665%20101.447%2012.8261%20101.518%2012.675%20101.554L4.23203%20103.571C3.69484%20103.699%203.15538%20103.367%203.02699%20102.83C2.97674%20102.62%202.99607%20102.399%203.08218%20102.2Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23FF5959'%20%3e%3c/circle%3e%3cpath%20d='M59.935%2049.6213C61.3827%2051.069%2061.3827%2053.4162%2059.935%2054.864L45.935%2068.864C44.4873%2070.3117%2042.1401%2070.3117%2040.6924%2068.864C39.2447%2067.4162%2039.2447%2065.069%2040.6924%2063.6213L54.6924%2049.6213C56.1401%2048.1736%2058.4873%2048.1736%2059.935%2049.6213Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3cpath%20d='M40.6924%2049.6213C39.2447%2051.069%2039.2447%2053.4162%2040.6924%2054.864L54.6924%2068.864C56.1401%2070.3117%2058.4873%2070.3117%2059.935%2068.864C61.3827%2067.4162%2061.3827%2065.069%2059.935%2063.6213L45.935%2049.6213C44.4873%2048.1736%2042.1401%2048.1736%2040.6924%2049.6213Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%23FFD1C9'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L102%20110L102%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Rp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cpath%20d='M8%2087L8%2095C8%2095.5523%207.55228%2096%207%2096C6.44772%2096%206%2095.5523%206%2095L6%2087L2%2087C1.44772%2087%201%2086.5523%201%2086C1%2085.4477%201.44772%2085%202%2085L6%2085L6%2082C6%2081.4477%206.44772%2081%207%2081C7.55228%2081%208%2081.4477%208%2082L8%2085L12%2085C12.5523%2085%2013%2085.4477%2013%2086C13%2086.5523%2012.5523%2087%2012%2087L8%2087Z'%20fill-rule='evenodd'%20fill='%2396CEFF'%20%3e%3c/path%3e%3cpath%20d='M89%205L89%2010C89%2010.5523%2088.5523%2011%2088%2011C87.4477%2011%2087%2010.5523%2087%2010L87%205L85%205C84.4477%205%2084%204.55228%2084%204C84%203.44772%2084.4477%203%2085%203L87%203L87%201C87%200.447715%2087.4477%200%2088%200C88.5523%200%2089%200.447715%2089%201L89%203L91%203C91.5523%203%2092%203.44772%2092%204C92%204.55228%2091.5523%205%2091%205L89%205Z'%20fill-rule='evenodd'%20fill='%23BDE2FF'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23237FFA'%20%3e%3c/circle%3e%3crect%20x='47.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%2396CEFF'%20%3e%3c/rect%3e%3crect%20x='47.5'%20y='66'%20width='7'%20height='7'%20rx='4'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3c/svg%3e",Op="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='105'%20viewBox='0%200%20102%20105'%20fill='none'%3e%3cpath%20d='M7%2076C7.55228%2076%208%2076.4477%208%2077L7.999%2079.999L12%2080C12.5523%2080%2013%2080.4477%2013%2081C13%2081.5523%2012.5523%2082%2012%2082L7.999%2081.999L8%2090C8%2090.5523%207.55228%2091%207%2091C6.44772%2091%206%2090.5523%206%2090L5.999%2081.999L2%2082C1.44772%2082%201%2081.5523%201%2081C1%2080.4477%201.44772%2080%202%2080L5.999%2079.999L6%2077C6%2076.4477%206.44772%2076%207%2076Z'%20fill='%2338D677'%20%3e%3c/path%3e%3cpath%20d='M75%201.72421e-32C75.5523%20-1.01453e-16%2076%200.447715%2076%201L76%202.999L78%203C78.5523%203%2079%203.44772%2079%204C79%204.55228%2078.5523%205%2078%205L76%204.999L76%2010C76%2010.5523%2075.5523%2011%2075%2011C74.4477%2011%2074%2010.5523%2074%2010L74%204.999L72%205C71.4477%205%2071%204.55228%2071%204C71%203.44772%2071.4477%203%2072%203L74%202.999L74%201C74%200.447715%2074.4477%201.01453e-16%2075%201.72421e-32Z'%20fill='%238BF0AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='54'%20r='28'%20fill='%2338D677'%20%3e%3c/circle%3e%3cpath%20d='M36.8787%2051.8786C38.3265%2050.4309%2040.6736%2050.4309%2042.1213%2051.8786L50.1214%2059.8786C51.5691%2061.3263%2051.5691%2063.6735%2050.1214%2065.1212C48.6737%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212L36.8787%2057.1212C35.431%2055.6735%2035.431%2053.3263%2036.8787%2051.8786Z'%20fill='%23B3F2C6'%20%3e%3c/path%3e%3cpath%20d='M64.1214%2045.8786C65.5691%2047.3263%2065.5691%2049.6735%2064.1214%2051.1212L50.1213%2065.1212C48.6736%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212C43.431%2063.6735%2043.431%2061.3263%2044.8787%2059.8786L58.8788%2045.8786C60.3265%2044.4309%2062.6737%2044.4309%2064.1214%2045.8786Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='14.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='101.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='25'%20r='7'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3c/svg%3e",Kp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='101'%20height='110'%20viewBox='0%200%20101%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M81.512%201.93968L80.7498%206.07825C80.6498%206.6214%2080.1284%206.98064%2079.5852%206.8806C79.4326%206.85251%2079.2886%206.78925%2079.1645%206.69578L76.1585%204.43061C75.7175%204.09823%2075.6293%203.47123%2075.9617%203.03016C76.0552%202.90617%2076.1761%202.80562%2076.3152%202.73655L80.0833%200.863097C80.5779%200.617235%2081.1781%200.818843%2081.424%201.31339C81.5203%201.50712%2081.5512%201.72688%2081.512%201.93968Z'%20fill='%23FEFAE0'%20%3e%3c/path%3e%3cpath%20d='M2.08224%20102.2L5.5346%2094.2358C5.75425%2093.7291%206.34257%2093.4968%206.84931%2093.7164C6.99222%2093.7778%207.11822%2093.872%207.21798%2093.9909L12.2086%2099.9384C12.5636%20100.361%2012.5082%20100.992%2012.0853%20101.347C11.9666%20101.447%2011.8261%20101.518%2011.675%20101.554L3.23209%20103.571C2.6949%20103.699%202.15544%20103.367%202.02705%20102.83C1.97681%20102.62%201.99613%20102.399%202.08224%20102.2Z'%20fill='%23FEE789'%20%3e%3c/path%3e%3ccircle%20cx='50'%20cy='59'%20r='28'%20fill='%23FAB007'%20%3e%3c/circle%3e%3crect%20x='46.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%23FEE789'%20%3e%3c/rect%3e%3crect%20x='46.5'%20y='66'%20width='7'%20height='7'%20rx='3.5'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='84.5'%20cy='106.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='94'%20cy='30'%20r='7'%20fill='%23FEE789'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L101%20110L101%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Up=new Mn,Hp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},jp=e=>{let n=document.body,a=e.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):a&&(n=e.teleport));const o=document.createElement("view"),l=`messagebox-${Up.get()}`;o.id=l,o.classList.add("fox-messagebox__root"),e.zIndex&&(o.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const s=document.querySelector(`#${l}`);s&&s.parentNode?.removeChild(s)};const r=t.createVNode(zp,e);n.appendChild(o),t.render(r,o)},ot={show:(e,n,a,o)=>{const l={...Hp};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(l,n):(n&&(l.message=n),a&&typeof a=="object"?Object.assign(l,a):(typeof a=="string"&&(l.title=a),o&&typeof o=="object"?Object.assign(l,o):typeof o=="string"&&(l.type=o)));const r=l.type??"info";return l.icon||(r==="success"?l.icon=Op:r==="warning"?l.icon=Kp:r==="error"?l.icon=Fp:l.icon=Rp),e==="alert"?(l.showCancelButton=!1,l.showConfirmButton=!0):e==="confirm"&&(l.showCancelButton=!0,l.showConfirmButton=!0),l.showClose&&!l.closeIcon&&(l.closeIcon=oe.Close),new Promise((s,i)=>{const c=l.callback;l.callback=m=>{if(typeof c=="function")try{c(m)}catch(p){console.error(p)}s({action:m})},jp(l)})},alert:(e,n,a)=>ot.show("alert",e,n,a),confirm:(e,n,a)=>ot.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=ot.alert,e.config.globalProperties.$confirm=ot.confirm}},Wp=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let l=!0,r=!0;for(let i in n)i==="bubbles"?l=!!n[i]:i==="cancelable"?r=!!n[i]:o[i]=n[i];o.initEvent(e,l,r),(a??document).dispatchEvent(o)},Yp=new Mn,Xp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Qp=e=>`${e}-${Yp.get()}`,Gp=Symbol.for("InnerPageScopeKey"),Zp=Symbol.for("PageWrapperKey"),Jp="FoxLeave",_p="FoxLeaveEnd",eh={width:{type:[String,Number]},height:{type:[String,Number]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!0},showDelay:{type:Number,default:10},showClose:{type:Boolean,default:!0},closeIcon:{type:Object},showHeader:{type:Boolean,default:!1},popClass:{type:String},popStyle:{type:Object},position:{type:String,default:"center"},mode:{type:String}};function th(e,n,a,o){return{props:{...ze,...eh},emits:["update:visible"],setup(l,{attrs:r,slots:s,emit:i}){t.provide(Gp,!0);const c={};t.provide(Zp,c);const m=S=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),p=()=>{m()},u=e,h=S=>{b.value=S,i("update:visible",S)},b=t.ref(!1),y=(S,N)=>Xp(S)?(N.src=S,t.h("img",N)):typeof S=="string"?(Array.isArray(N.class)?N.class.push(S):N.class&&typeof N.class=="object"?N[`${S}`]=!0:typeof N.class=="string"?N.class=`${N.class}, ${S}`:N.class=S,t.h(l.tag,N)):t.h(S,N),k=()=>{if(!l.showHeader)return null;const S=[];if(s.header){const A=s.header();S.push(A)}else if(l.title){const A=t.h("view",{class:`${u}__header-title`},[l.title]);S.push(A)}if(S.length===0)return null;const N={class:[`${u}__header`]};return t.h("view",N,S)},v=()=>{if(!l.showClose)return null;const S={class:[`${u}__close-icon`],onClick:p},N=l.closeIcon??o;return y(N,S)};let f=null;const d=S=>{Wp(_p,{},f)},g=Qp(e),C=()=>{h(!0)},B=()=>{if(!f)return;const S=f.querySelector(".fox-overlay");S&&(S.classList.add("overlay-fade-leave-active"),S.classList.add("overlay-fade-leave-to"));const N=f.querySelector(".fox-popup");N&&(N.classList.add(`fox-popup-slide-${l.position}-leave-active`),N.classList.add(`fox-popup-slide-${l.position}-leave-to`),N.addEventListener("animationend",d,{once:!0}),N.addEventListener("transitionend",d,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{f=document.querySelector(`.${g}`),f?.addEventListener(Jp,B,{once:!0}),C()}),()=>{const S=[],N=k();N&&S.push(N);const A=v();A&&S.push(A);const V=s.default?s.default():[];Reflect.apply([].push,S,V);const T={[`${u}`]:!0};l.mode&&(T[`${u}--${l.mode}`]=!0);const w={class:T},M=t.h("view",w,S),P=[`${u}__popup`,g];l.popClass&&P.push(l.popClass),l.position&&P.push(`${u}__popup--${l.position}`);const $={};l.width&&($.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&($.height=typeof l.height=="number"?`${l.height}px`:l.height);const K={...ve(l,ze),popClass:P.join(" "),style:$,visible:b.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":h},D=t.h(a,K,{default:()=>M});return t.h("div",{class:[`${u}__root`,g]},[D])}}}}const{componentName:nh,create:oh,scope:lh}=X("popup-wrapper"),gl=oh(th(nh,lh,de,oe.Close)),ah={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function rh(e,n,a,o){return{props:{...ah},emits:["update:visible"],setup(l,{emit:r,slots:s}){const i=c=>{r("update:visible",c)};return()=>{const c=[`${e}__popup`];l.popClass&&c.push(l.popClass);const m={popClass:c,style:l.popStyle??{},position:"top",zIndex:l.zIndex,closeOnClickOverlay:l.closeOnClickOverlay,teleportDisable:!0,visible:l.visible,"onUpdate:visible":i},p=t.h(a,m,s),u={class:`${e}`};return t.h("view",u,[p])}}}}const{componentName:sh,create:ih,scope:ch}=X("dropdown"),yl=ih(rh(sh,ch,de));function uh(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(l)},500)}const dh={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function fh(e,n,a,o=!1){return{props:{...dh},emits:["click"],setup(l,r){const s=t.ref(null),i=t.computed(()=>{const g={[`${e}`]:!0,"is-truncated":l.truncated};return l.type&&(g[`${e}--${l.type??"default"}`]=!0),l.size&&(g[`${e}--${l.size}`]=!0),g}),c=t.computed(()=>{const g={},C=l.textColor??l.color;return C&&(g.color=C),g}),m=(g,C)=>{let B=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const S=l.highlightFilter;if(g.indexOf(S)!==-1){const A=g.replace(new RegExp(S,"g"),`<span>${S}</span>`);C.innerHTML=A,C.class["is-highlight"]=!0,B=t.h(l.tag,C)}}else if(typeof l.highlightFilter=="function"){const S=l.highlightFilter(g);S&&(C.innerHTML=S,C.class["is-highlight"]=!0,B=t.h(l.tag,C))}return B},p=g=>{r.emit("click",g)};let u="";const h=()=>{const g=s.value;if(!g)return;const C=g.clientWidth;uh(g,B=>{const S=g.innerHTML??"";ue(S)||B<C||(u?a?.show(g,S,{type:"text",id:u,showArrow:l.showArrow},!0):u=a?.show(g,S,{type:"text",showArrow:l.showArrow},!0)??"")})},b=()=>{u&&a?.hide(u)};let y=null;const k=g=>{y||(y=setTimeout(()=>{h(),y=null},l.showAfter??0))},v=g=>{y&&(clearTimeout(y),y=null),setTimeout(()=>{b()},l.hideAfter??0)},f=()=>{const g=s.value;g&&(g.addEventListener("mouseover",k),g.addEventListener("mouseleave",v))},d=()=>{const g=s.value;g&&(g.removeEventListener("mouseover",k),g.removeEventListener("mouseleave",v))};return t.onMounted(()=>{!pe(l.showOverflowTooltip)||!a||f()}),t.onBeforeUnmount(()=>{!pe(l.showOverflowTooltip)||!a||d()}),()=>{const g={onClick:p,class:i.value,style:c.value,ref:s};let C=null;if(pe(l.numberFormat)&&typeof r.slots.default=="function"){const A=r.slots.default();if(Array.isArray(A)&&A.length===1){const V=A[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const T=fe(l.digits),w=fe(l.decimalLength),M=pe(l.autoPadding);let P=`${A[0].children}`,$=P.split("").reverse().join("");$=vn($,w,M,T,l.separator),P=$.split("").reverse().join(""),l.highlightFilter!==void 0&&(C=m(P,g)),C||(g.innerHTML=P,C=t.h(l.tag,g))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const A=r.slots.default();if(Array.isArray(A)&&A.length===1){const V=A[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const T=`${A[0].children}`;C=m(T,g),C||(g.innerHTML=T,C=t.h(l.tag,g))}}}C||(C=t.h(l.tag,g,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return C;let S=null;if(l.icon){const A={[`${e}__mark-wrap`]:!0};l.type&&(A[`${e}__mark-wrap--${l.type}`]=!0);const V={},T=l.color;T&&(V.color=T);const w={class:A,style:V};S=t.h("view",w,t.h(l.icon))}else if(r.slots.mark){const A={[`${e}__mark-wrap`]:!0};l.type&&(A[`${e}__mark-wrap--${l.type}`]=!0);const V={},T=l.color;T&&(V.color=T);const w={class:A,style:V};S=t.h("view",w,{default:r.slots.mark})}else{const A={[`${e}__mark`]:!0};l.type&&(A[`${e}__mark--${l.type??"default"}`]=!0);const V={},T=l.color;T&&(V["background-color"]=T);const w={class:A,style:V};S=t.h("view",w)}const N={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",N,[S,C])}}}}const{componentName:mh,create:ph,scope:hh}=X("text"),vl=ph(fh(mh,hh,Bt,!1));function gh(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[l]){let c=n;for(let m=0;c&&m<r.length;m++){let p=r[m],u=c.find(h=>h[o]===p);if(!u)break;s.push(u[a])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let m=n[c],p=r[c];const u=m.find(h=>h[o]===p);if(!u)break;s.push(u[a])}else{let c=n;for(let m=0;c&&m<r.length;m++){let p=r[m],u=c.find(h=>h[o]===p);if(!u)break;s.push(u[a]),c=u[l]}}return s}class yh{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function vh(){const e=t.getCurrentInstance();return new yh(e.proxy)}const bh={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function kh(e,n,a=!1){return{props:{...bh},setup(o,{attrs:l,slots:r}){const s=vh(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([p,u])=>{i.value=await s.load(o.sourceType,p,u)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let p=gh(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return p.length==0?o.emptyText??"":p.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${p[0]}`:p[0]:p.join(o.separator)}),m=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const p={...l};return r.default?r.default({text:c.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===c.value?t.h(o.emptyTag??"span",{...l,class:o.emptyClass},c.value):t.h(m,p,{default:()=>c.value}):t.h(m,p,c.value)}}}}const{componentName:Sh,create:Ch,scope:wh}=X("mapping"),bl=Ch(kh(Sh,wh,!1));function Nh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return Qr(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:m2,create:Bh,scope:p2}=X("domain-provider"),kl=Bh(Nh()),Ah={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function Vh(e,n){return{inheritAttrs:!1,props:Ah,setup(a,{slots:o}){if(it&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const s=(h,b)=>{if(p===null){r.set(h,{visible:null,callback:b});return}l.has(h)&&p.unobserve(h),l.set(h,{visible:null,callback:b}),p.observe(h)},i=h=>{if(p===null){r.delete(h);return}l.has(h)&&(l.delete(h),p.unobserve(h))};let c=a.initialVisibleObserverSize;Ui({acquire:()=>{const h=c>0;return c--,h},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:s,unobserve:i});let p=null;const u=(h,b,y)=>{p=new IntersectionObserver(k=>{for(let v of k){let f=!1;v.intersectionRatio>0&&(f=!0);const d=l.get(v.target);if(d)try{if(a.loadPolicy==="lazy"&&!f&&d.visible!==null)return;d.visible=f,d.callback(f)}catch(g){console.error(g)}}},{root:h,rootMargin:b,threshold:y}),r.forEach((k,v)=>{l.set(v,k),p?.observe(v)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([h,b])=>{if(b||!h||p)return;let y=null;typeof h=="string"?y=document.querySelector(h):y=h,y&&u(y,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:h2,create:Th,scope:g2}=X("rolling-provider"),Sl=Th(Vh()),{componentName:$h,create:Eh}=X("cell"),xh=Eh({components:{Right:oe.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:n}){const a=t.computed(()=>{const r=$h;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:he(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),Dh={key:0,class:"fox-cell__icon"},Ih={key:1,class:"fox-cell__title"},qh={class:"title"},Mh={class:"fox-cell__title-desc"};function Ph(e,n,a,o,l,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",Dh,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",Ih,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",qh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Mh,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 Cl=ne(xh,[["render",Ph]]),{componentName:Lh,create:zh}=X("cell-group"),Fh=zh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Lh]:!0}))}}}),Rh={key:1,class:"fox-cell-group__title"},Oh={key:3,class:"fox-cell-group__desc"},Kh={class:"fox-cell-group__wrap"};function Uh(e,n,a,o,l,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",Rh,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",Oh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Kh,[t.renderSlot(e.$slots,"default")])],2)}const wl=ne(Fh,[["render",Uh]]),{componentName:Hh,create:jh}=X("image"),Wh=jh({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:oe.Image,ImageError:oe.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),o=t.computed(()=>{const b=Hh;return{[b]:!0,[`${b}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const b={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(y=>{y.forEach(k=>{k.isIntersecting&&(r.value=!0,l.value.disconnect())})},b),s.value&&l.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let b={};return e.width&&(b.width=he(e.width)),e.height&&(b.height=he(e.height)),e.radius!==void 0&&e.radius!==null&&(b.overflow="hidden",b.borderRadius=he(e.radius)),b}),m=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,b=>{a.isError=!1,a.loading=!0});const p=()=>{a.loading=!1,n("load")},u=()=>{a.isError=!0,a.loading=!1,n("error")},h=b=>{n("click",b)};return{...t.toRefs(a),imageClick:h,classes:o,styles:m,stylebox:c,error:u,load:p,show:r,imgRef:s}}}),Yh=["src","date-src","alt"],Xh={key:0,class:"fox-img-loading"},Qh={key:1,class:"fox-img-error"};function Gh(e,n,a,o,l,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:n[2]||(n[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:n[0]||(n[0]=(...c)=>e.load&&e.load(...c)),onError:n[1]||(n[1]=(...c)=>e.error&&e.error(...c)),style:t.normalizeStyle(e.styles)},null,44,Yh),e.loading?(t.openBlock(),t.createElementBlock("div",Xh,[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",Qh,[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 Nl=ne(Wh,[["render",Gh]]),{create:Zh}=X("layout"),Bl=Zh({}),{componentName:Jh,create:_h}=X("col"),eg=_h({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=Jh,a=t.inject("gutter"),o=t.computed(()=>({[n]:!0,[`${n}-gutter`]:a,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),l=t.computed(()=>({paddingLeft:a/2+"px",paddingRight:a/2+"px"}));return{classes:o,style:l}}});function tg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const Al=ne(eg,[["render",tg]]),{componentName:ng,create:og}=X("row"),lg=og({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=ng;t.provide("gutter",e.gutter);const a=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
5
+ */function un(e,n="0"){let a=0,o=-1;e[0]=="-"&&(a++,o=1,e=e.substring(1),e.length),n[0]=="-"&&(a++,o=2,n=n.substring(1),n.length),e=Ce(e),n=Ce(n),[e,n]=Fo(Ce(e),Ce(n)),a==1&&(o==1?e=to(e):n=to(n));let l=$r(e,n);return a?a==2?"-"+Ce(l):e.length<l.length?Ce(l.substring(1)):"-"+Ce(to(l)):Ce(l)}function to(e){let n="",a=e.length,o=e.split(".")[1],l=o?o.length:0;for(let s=0;s<a;s++)e[s]>="0"&&e[s]<="9"?n+=9-parseInt(e[s]):n+=e[s];let r=l>0?"0."+new Array(l).join("0")+"1":"1";return $r(n,r)}function Ce(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 Fo(e,n){let a=e.split("."),o=n.split("."),l=a[0].length,r=o[0].length;return l>r?o[0]=new Array(Math.abs(l-r)+1).join("0")+(o[0]?o[0]:""):a[0]=new Array(Math.abs(l-r)+1).join("0")+(a[0]?a[0]:""),l=a[1]?a[1].length:0,r=o[1]?o[1].length:0,(l||r)&&(l>r?o[1]=(o[1]?o[1]:"")+new Array(Math.abs(l-r)+1).join("0"):a[1]=(a[1]?a[1]:"")+new Array(Math.abs(l-r)+1).join("0")),e=a[0]+(a[1]?"."+a[1]:""),n=o[0]+(o[1]?"."+o[1]:""),[e,n]}function $r(e,n){[e,n]=Fo(e,n);let a="",o=0;for(let l=e.length-1;l>=0;l--){if(e[l]==="."){a="."+a;continue}let r=parseInt(e[l])+parseInt(n[l])+o;a=r%10+a,o=Math.floor(r/10)}return o?o.toString()+a:a}var be=(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))(be||{});function Rt(e,n=0,a=be.HALF_EVEN){if(a===be.UNNECESSARY)throw new Error("UNNECESSARY Rounding Mode has not yet been implemented");typeof e=="number"&&(e=e.toString());let o=!1;e[0]==="-"&&(o=!0,e=e.substring(1));let l=e.split("."),r=l[0],s=l[1];if(n<0){if(n=-n,r.length<=n)return"0";{let c=r.substr(0,r.length-n);return e=c+"."+r.substr(r.length-n)+s,c=Rt(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,Pa(l[1],r,o,a)?(o?"-":"")+no(r):(o?"-":"")+r;if(l[1]){if(l[1].length<n)return(o?"-":"")+r+"."+l[1]+new Array(n-l[1].length+1).join("0")}else return(o?"-":"")+r+"."+new Array(n+1).join("0");s=l[1].substring(0,n);let i=l[1].substring(n);return i&&Pa(i,s,o,a)&&(s=no(s),s.length>n)?(o?"-":"")+no(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function Pa(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===be.DOWN||!a&&o===be.FLOOR||a&&o===be.CEILING)return!1;if(o===be.UP||a&&o===be.FLOOR||!a&&o===be.CEILING)return!0;let l="5"+new Array(e.length).join("0");if(e>l)return!0;if(e<l)return!1;switch(o){case be.HALF_DOWN:return!1;case be.HALF_UP:return!0;case be.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function no(e,n=0){n||(n=1),typeof e=="number"&&e.toString();let a=e.length-1,o="";for(let l=a;l>=0;l--){let r=parseInt(e[l])+n;r==10?(n=1,r=0):n=0,o+=r}return n&&(o+=n),o.split("").reverse().join("")}function po(e,n){e=e.toString(),n=n.toString();let a=0;e[0]=="-"&&(a++,e=e.substr(1)),n[0]=="-"&&(a++,n=n.substr(1)),e=Tt(e),n=Tt(n);let o=0,l=0;e.indexOf(".")!=-1&&(o=e.length-e.indexOf(".")-1),n.indexOf(".")!=-1&&(l=n.length-n.indexOf(".")-1);let r=o+l;if(e=Tt(e.replace(".","")),n=Tt(n.replace(".","")),e.length<n.length){let u=e;e=n,n=u}if(n=="0")return"0";let s=n.length,i=0,c=[],m=s-1,p="";for(let u=0;u<s;u++)c[u]=e.length-1;for(let u=0;u<2*e.length;u++){let h=0;for(let k=n.length-1;k>=m&&k>=0;k--)c[k]>-1&&c[k]<e.length&&(h+=parseInt(e[c[k]--])*parseInt(n[k]));h+=i,i=Math.floor(h/10),p=h%10+p,m--}return p=Tt(Hs(p,r)),a==1&&(p="-"+p),p}function Hs(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 Tt(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 ho(e,n,a=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 o=0;n[0]=="-"&&(n=n.substring(1),o++),e[0]=="-"&&(e=e.substring(1),o++);var l=n.indexOf(".")>0?n.length-n.indexOf(".")-1:-1;if(n=Ce(n.replace(".","")),l>=0){let m=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(m==-1)e=Ce(e+new Array(l+1).join("0"));else if(l>m)e=e.replace(".",""),e=Ce(e+new Array(l-m+1).join("0"));else if(l<m){e=e.replace(".","");let p=e.length-m+l;e=Ce(e.substring(0,p)+"."+e.substring(p))}else l==m&&(e=Ce(e.replace(".","")))}let r=0,s=n.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 m=c.length-c.indexOf(".")-1;c=c.replace(".",""),s>c.length&&(m+=s-c.length,c=c+new Array(s-c.length+1).join("0")),r=m,i="0."+new Array(m).join("0")}for(a=a+2;r<=a;){let m=0;for(;parseInt(c)>=parseInt(n);)c=un(c,"-"+n),m++;i+=m,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(o==1?"-":"")+Ce(Rt(i,a-2))}function go(e,n){return e=e.toString(),n=n.toString(),n=yo(n),un(e,n)}function yo(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function La(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),za(e),za(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=go(e,po(n,Rt(ho(e,n),0,be.FLOOR)));return a+o}function za(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Fa(e,n){let a=!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),a=!0),[e,n]=Fo(e,n),e.localeCompare(n)==0)return 0;for(let o=0;o<e.length;o++)if(e[o]!=n[o])return e[o]>n[o]?a?-1:1:a?1:-1;return 0}class se{value;static RoundingModes=be;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[a,o]=n.split(/[eE]/);a=Ce(a);let l="";a[0]=="-"&&(l="-",a=a.substring(1)),a.indexOf(".")>=0?(o=parseInt(o)+a.indexOf("."),a=a.replace(".","")):o=parseInt(o)+a.length,a.length<o?n=l+a+new Array(o-a.length+1).join("0"):a.length>=o&&o>0?n=l+Ce(a.substring(0,o))+(a.length>o?"."+a.substring(o):""):n=l+"0."+new Array(-o+1).join("0")+a}return n}constructor(n="0"){this.value=se.validate(n)}getValue(){return this.value}static getPrettyValue(n,a,o){if(!(a||o))a=3,o=",";else if(!(a&&o))throw Error("Illegal Arguments. Should pass both digits and separator or pass none");n=se.validate(n);let l=n.charAt(0)=="-";l&&(n=n.substring(1));var r=n.indexOf(".");r=r>0?r:n.length;for(var s="",i=r;i>0;)i<a?(a=i,i=0):i-=a,s=n.substring(i,i+a)+(i<r-a&&i>=0?o:"")+s;return(l?"-":"")+s+n.substring(r)}getPrettyValue(n,a){return se.getPrettyValue(this.value,n,a)}static round(n,a=0,o=be.HALF_EVEN){if(n=se.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return Rt(n,a,o)}round(n=0,a=be.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new se(Rt(this.value,n,a))}static floor(n){return n=se.validate(n),n.indexOf(".")===-1?n:se.round(n,0,be.FLOOR)}floor(){return this.value.indexOf(".")===-1?new se(this.value):new se(this.value).round(0,be.FLOOR)}static ceil(n){return n=se.validate(n),n.indexOf(".")===-1?n:se.round(n,0,be.CEILING)}ceil(){return this.value.indexOf(".")===-1?new se(this.value):new se(this.value).round(0,be.CEILING)}static add(n,a){return n=se.validate(n),a=se.validate(a),un(n,a)}add(n){return new se(un(this.value,n.getValue()))}static subtract(n,a){return n=se.validate(n),a=se.validate(a),go(n,a)}subtract(n){return new se(go(this.value,n.getValue()))}static multiply(n,a){return n=se.validate(n),a=se.validate(a),po(n,a)}multiply(n){return new se(po(this.value,n.getValue()))}static divide(n,a,o){return n=se.validate(n),a=se.validate(a),ho(n,a,o)}divide(n,a){return new se(ho(this.value,n.getValue(),a))}static modulus(n,a){return n=se.validate(n),a=se.validate(a),La(n,a)}modulus(n){return new se(La(this.value,n.getValue()))}static compareTo(n,a){return n=se.validate(n),a=se.validate(a),Fa(n,a)}compareTo(n){return Fa(this.value,n.getValue())}static negate(n){return n=se.validate(n),yo(n)}negate(){return new se(yo(this.value))}}function Er(e,n){return se.multiply(`${e}`,`${n}`)}function Ro(e,n,a=8){return se.divide(`${e}`,`${n}`,a)}function vo(e,n){return e=`${e}`,n=`${n}`,se.compareTo(e,n)}function xr(e){return se.negate(e)}function kn(e,n=-1,a=!1,o=3,l=","){let r=`${e}`;if(r.length==0||r==="-")return"";let s=r.charAt(0);s=="-"?r=r.substring(1):s="";let i=r,c="",m=r.indexOf(".");m!=-1&&(i=r.substring(0,m),c=r.substring(m+1)),n!=-1&&(n<c.length?c=c.substring(0,n):a&&n>c.length&&(c=c.padEnd(n,"0")));let p;if(o>0){let u="",h=i.split("").reverse();for(let k=0;k<h.length;k++)u+=h[k]+((k+1)%o==0&&k+1!=h.length?l:"");c.length==0?p=`${s}${u.split("").reverse().join("")}`:p=`${s}${u.split("").reverse().join("")}.${c}`}else c.length==0?p=`${s}${i}`:p=`${s}${i}.${c}`;return p}function Dr(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const it=typeof window<"u",Re=Xe;function Ir(e){return e==null}const Sn=Array.isArray,js=e=>Cn(e)==="[object Map]",Ws=e=>Cn(e)==="[object Set]",Ue=e=>e instanceof Date,dn=e=>typeof e=="function",qr=e=>typeof e=="string",Ys=e=>typeof e=="symbol",Ae=e=>e!==null&&typeof e=="object",gt=e=>Ae(e)&&dn(e.then)&&dn(e.catch),Mr=Object.prototype.toString,Cn=e=>Mr.call(e),bo=e=>Cn(e)==="[object Object]",Pr=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Xs(e){return e.__esModule||Pr&&e[Symbol.toStringTag]==="Module"}const Qs=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function lt(...e){let n=e[0]!==void 0&&e[0]!==null?e[0]:{},a=1,o=e.length,l=!1;for(typeof n=="boolean"&&(l=n,n=e[a]??{},a++),typeof n!="object"&&(n={});a<o;a++)if(e[a]!==null&&e[a]!==void 0){let r=e[a];for(let s in r){let i=n[s],c=r[s];if(i!==c)if(l===!0&&c&&typeof c=="object"){let m;Array.isArray(c)?m=i&&Array.isArray(i)?i:[]:m=i&&typeof i=="object"?i:{},n[s]=lt(l,m,c)}else c!==void 0&&(n[s]=c)}}return n}function ko(e,n,a=!1){if(!a)lt(!0,e,n);else{if(typeof n!="object")return{};typeof e!="object"&&(e={});for(let l in n){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!bo(s))continue;r=ko(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}const o=Object.getOwnPropertySymbols(n);for(let l of o){let r=e[l],s=n[l];if(r!==s)if(typeof s=="object"){if(!Array.isArray(s)&&!bo(s))continue;r=ko(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const oo=Qs?Promise.resolve():null;function Gs(e,...n){oo!==null?n&&n.length>0?oo.then(()=>{e(n)}):oo.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function pe(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function fe(e){return typeof e=="number"?e:Number(e)}const Zs={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function at(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Zs[a]||"object"}function wn(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Lr(e){return e&&typeof e=="object"&&"setInterval"in e}function zr(e){let n=!!e&&"length"in e&&e.length,a=at(e);return a==="function"||Lr(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Fr(e,n){let a=+n.length,o=0,l=e.length;for(;o<a;o++)e[l++]=n[o];return e.length=l,e}function Js(e,n=[]){let a=n;return e!=null&&(zr(Object(e))?Fr(a,typeof e=="string"?[e]:e):a.push(e)),a}function qe(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=at(e),o=at(n);if(a!==o)return!1;if(a==="object"){let l=Object.keys(e),r=Object.keys(n);if(l.length!==r.length)return!1;for(let s=0;s<l.length;s++){let i=l[s],c=e[i],m=n[i];if(!qe(c,m))return!1}return!0}else if(a==="array"){if(e.length!==n.length)return!1;for(let l=0;l<e.length;l++){let r=e[l],s=n[l];if(!qe(r,s))return!1}return!0}return!1}function Rr(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Or(e){return ue(e)?!0:(e.charAt(0)=="-"&&(e=e.substring(1)),ue(e)||/^(([1-9][0-9]*\.[0-9]*)|([0]\.[0-9]*)|([0-9]*)|([0]{1}))$/.test(e))}function Kr(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 a=n.indexOf(".");return a==-1?n.length:a}function Ur(e){if(e==null)return 0;const n=`${e}`;if(n.length==0)return 0;const a=n.indexOf(".");return a==-1?0:n.length-(a+1)}function Ra(e,n,a){const o=e.indexOf(n);return o===-1?e:n==="-"&&o!==0?e.slice(0,o):e.slice(0,o+1)+e.slice(o).replace(a,"")}function So(e,n=!0,a=!0){n?e=Ra(e,".",/\./g):e=e.replace(/\./g,""),a?e=Ra(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function _s(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(qe(e,a))return!0}):n.indexOf(e)}function ei(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(qe(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function ye(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ve(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function Nt(e,...n){const a=[];n.forEach(l=>{Reflect.apply([].push,a,Reflect.ownKeys(l))});const o={};for(const l in e)a.includes(l)||(o[l]=e[l]);return o}const Hr=(e,n,a)=>{const o=Object.assign({},e),l=Object.assign({},a);return Object.keys(n).length>0?(Object.keys(o).forEach(r=>{l.hasOwnProperty(r)?typeof l[r]=="string"&&(o[r]=n[l[r]]):n[r]&&(o[r]=n[r])}),o):e};function Co(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const et=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Oe=(e,n,a)=>Math.min(Math.max(e,n),a),ke=Symbol.for("BroadcastKey");class Oo{parent;children=[];callbacks=new Map;proxy=null;name;constructor(n,a,o){this.parent=n,this.proxy=a,this.name=o,n!==null&&n.addChild(this)}addChild(n){this.children.push(n)}removeChild(n){const a=this.children.findIndex(o=>n===o);a!==-1&&this.children.splice(a,1)}destroy(){this.parent!==null&&this.parent.removeChild(this),this.parent=null,this.proxy=null}emit(n,a,...o){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 l=!1;!n.name||n.name==="*"?l=!0:!n.name||n.name==="+"?(l=!1,n.name="*"):Rr(n.name)&&this.name&&n.name.test(this.name)?l=!0:typeof n.name=="function"?l=Reflect.apply(n.name,null,[this.name]):n.name===this.name&&(l=!0);const r=[];if(l){const s=this.callbacks.get(a);if(typeof s=="function"){const c=Reflect.apply(s,this.proxy,[...o]);c!=null&&r.push(c)}const i=this.proxy??{};if(typeof i[a]=="function"){const c=Reflect.apply(i[a],i,[...o]);c!=null&&r.push(c)}}return this.children.forEach(s=>{const i=Reflect.apply(s.emit,s,[{...n},a,...o]);i!=null&&Array.isArray(i)&&Reflect.apply([].push,r,[...i])}),r}emitToChildren(n,a,...o){const l=[];return this.children.forEach(r=>{const s=Reflect.apply(r.emit,r,[{...n},a,...o]);s!=null&&Array.isArray(s)&&Reflect.apply([].push,l,[...s])}),l}on(n,a){this.callbacks.set(n,a)}}function Nn(e,n,a,o){const l=new Oo(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function ti(e,n,a){const o=a;if(o[ke])return o[ke];const l=t.inject(ke,null),r=new Oo(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[ke]=r,t.provide(ke,r),t.onUnmounted(()=>{r.destroy(),o[ke]=void 0}),r}function Mt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[ke]??t.inject(ke,null):t.inject(ke,null)}const nt=e=>e.default??e;class ni{error(n,a){const o=a,l=Mt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=Mt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=Mt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}decorate(n,a,o){Array.isArray(n)||(n=[n]);const l=o,r=Mt(o),s=a.find(c=>c.required===!0||c.type==="required"&&c.required!==!1),i=n.find(c=>c.required===!0||c.type==="required"&&c.required!==!1);!s&&i?r?r.emit({name:"*"},"setRequired",!0):typeof l.setRequired=="function"&&l.setRequired(!0):s&&!i&&(r?r.emit({name:"*"},"setRequired",!1):typeof l.setRequired=="function"&&l.setRequired(!1),this.reset(o))}getValue(n){return n.modelValue}}let Lt=new ni;function oi(e){Lt=e}function li(e){Lt?Object.assign(Lt,e):Lt=e}function ai(e,n){nt(tt).setValidator(e,n)}function ri(e){nt(tt).deleteValidator(e)}let jr=["blur","clear"];function si(e){jr=e}function Wr(){return jr}let Yr=["focus","change","setValue"];function ii(e){Yr=e}function Xr(){return Yr}function ci(e){nt(tt).messages(e)}function $t(...e){const n=[];return e.forEach(a=>{a.forEach(o=>{const l=n.findIndex(r=>r.type===o.type);l!==-1&&n.splice(l,1),n.push(o)})}),n}function _t(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 Ke=Symbol("ValidateSchemaKey");class Qr{parent=null;validators={};attrRules=[];rules=[];descriptor;proxy;scope=null;constructor(n,a,o){this.parent=n,this.descriptor=a,this.proxy=o,(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 a=_t($t(this.attrRules,this.rules)),o=[];for(let r in n){let s=n[r];if(this.hasValidator(r,!0)){if(s===!1)continue;let c={type:r};s!==null&&typeof s=="object"&&Object.assign(c,s),o.push(c);continue}let i=this.getValidator(r);if(i!==null){let c={type:r,validator:i};o.push(c)}}this.attrRules=_t(o);const l=$t(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(l,a)})})}))}destroy(){this.scope&&(this.scope.stop(),this.scope=null),this.parent=null}execHandler(n,...a){const o=this.descriptor.validateHandler;if(o&&typeof o[n]=="function")return Reflect.apply(o[n],o,[...a]);const l=Lt;return l&&typeof l[n]=="function"?Reflect.apply(l[n],l,[...a]):null}decorate(n,a){this.descriptor.pureDataValidate!==!0&&this.execHandler("decorate",n,a,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,a,o=!1){o?nt(tt).setValidator(n,a):this.validators[n]=a}getValidator(n){let a=this.validators[n]??null;return a||(a=this.parent?.getValidator(n)??null),a}deleteValidator(n,a=!1){a?nt(tt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return nt(tt).hasValidator(n);{let o=Reflect.has(this.validators,n);return!o&&this.parent!==null&&(o=this.parent.hasValidator(n,!1)),o}}setRule(n){const a=$t(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=_t(n):this.rules=_t([n]);const o=$t(this.attrRules,this.rules);t.nextTick(()=>{this.decorate(o,a)})}clear(){this.proxy===null||this.descriptor.pureDataValidate===!0||this.execHandler("reset",this.proxy)}validate(){if(this.descriptor.validate??!0){let a=$t(this.attrRules,this.rules);const o=this.descriptor.fieldName??"value";if(a.length>0){const l={[`${o}`]:a},r=this.getValue(),s={[`${o}`]:r},i=nt(tt),c=new i(l),m=this.proxy??s;return c.validate(s,{context:m}).then(u=>{if(u.pass)this.success();else{let h="error";Array.isArray(u.errors)&&u.errors.length>0&&(h=u.errors[0].message??h,u.errors=[u.errors[0]],u.errors[0].ref=m),this.error(h)}return u}).catch(u=>{const h=u.message??`${u}`;return this.error(h),u})}}return Promise.resolve({pass:!0})}}function Bn(e,n,a){if(a.valueName=a.valueName??"modelValue",a.valueType=a.valueType??"string",!a.validateHandler&&a.valueName!=="modelValue"){const l=a.valueName;a.validateHandler={getValue(r){return r[l]}}}return new Qr(n,a,e)}const fn=Symbol("EventEmitterKey");class Gr{register=new Map;proxy;constructor(n){this.proxy=n}destroy(){this.proxy=null,this.register.clear()}off(n,a){let o=this.register.get(n);if(o&&Array.isArray(o)){let l=o.findIndex(r=>r===a);l!==-1&&o.splice(l,1)}}on(n,a){let o=this.register.get(n);o||(o=new Array,this.register.set(n,o)),o.push(a)}emit(n,...a){const o=this.register.get(n);o&&o.forEach(l=>{try{Reflect.apply(l,null,[n,...a])}catch(r){console.error(r.message,r)}}),this.proxy&&Reflect.apply(this.proxy.$emit,this.proxy,[n,...a])}}function yt(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function mn(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function ui(e,n){const a=yt((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function di(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function Ko(e,n,a,o=0,l=!0){let r=n,s=0;if(l){const c=e();if(s++,c||s>a)return}const i=()=>{const c=e();s++,!(c||s>a)&&(r+=o,setTimeout(i,r))};setTimeout(i,r)}const Ie=Symbol("DomainKey"),dt=Symbol("DataItemsKey");class An{_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,a=[]){for(const o in n){const l=n[o];a.length>0&&a.indexOf(l)!==-1||(this._props[o]=l)}}has(n){if(Reflect.has(this._props,n)){const a=this._props[n];if(a!=null)return!0}return this.parent==null?!1:this.parent.has(n)}delete(n){Reflect.deleteProperty(this._props,n)}set(n,a){this._props[n]=a}get(n,a){if(Reflect.has(this._props,n)){const o=this._props[n];if(o!=null)return o}return this.parent==null?a:this.parent.get(n,a)}getForParent(n,a){return this.parent==null?a:this.parent.get(n,a)}getForSelf(n){return this._props[n]}getAll(n){const a=[];let o=this;for(;o!=null;){if(Reflect.has(o._props,n)){const l=o._props[n];a.push(l)}o=o._parent}return a}}const fi=new An;function pt(){return fi}function He(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ie]??t.inject(Ie,null):t.inject(Ie,null)}const lo=Symbol("OriginalDateKey");function Uo(e,n,a=[],o){const l=t.getCurrentInstance(),r=l?.proxy;let s=t.inject(Ie,null);s===null&&(s=pt());const i=e||n.prop||n.name,c=new An(i);c.parent=s;const m=b=>{r[lo]||h(b),c.set("modelValue",b)},p=()=>c.getForSelf("modelValue")??null,u=()=>r[lo]??null,h=b=>{const v={};lt(!0,v,t.toRaw(b)),r[lo]=v};t.isReactive(n)||typeof n=="function"?t.watch(n,b=>{c.merge(b,a)},{immediate:!0}):c.merge(n,a),n.modelValue&&h(n.modelValue),r[Ie]=c,t.provide(Ie,c);let k=null,y=null;if(l!==null){const b=t.inject(ke,null);k=Nn(r,b,i,o),c.broadcast=k,r[ke]=k,t.provide(ke,k),r.broadcast=(f,d,...g)=>Reflect.apply(k.emit,k,[f,d,...g]);const v=t.inject(Ke,null);y=Bn(r,v,{componentName:""}),c.validateSchema=y,r[Ke]=y,t.provide(Ke,y),r[dt]=new Map,r.validate=(f=!0)=>{const d=[];let g=null;const C={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const B=f;g={name:S=>S?B.indexOf(S)!==-1:!1}}else if(f!=null&&typeof f=="object"){const B=f;if(Object.assign(C,B),Array.isArray(B.include)&&B.include.length>0){const S=B.include;g={name:N=>N?S.indexOf(N)!==-1:!1}}else if(Array.isArray(B.exclude)&&B.exclude.length>0){const S=B.exclude;g={name:N=>N?S.indexOf(N)===-1:!1}}else g={name:"*"}}if(g){const B=k?.emitToChildren(g,"validate",C);B&&Reflect.apply([].push,d,B)}return d.length==1?d[0]:d.length>1?Promise.all(d).then(B=>{let S=[];return B.forEach(N=>{N.pass===!1&&Array.isArray(N.errors)&&(S=[...S,...N.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(f,d=!0,g=!1)=>{if(g===!0){Reflect.ownKeys(f).forEach(B=>{let S=String(B);const A=_r(c,S,{componentName:"",fieldName:S,pureDataValidate:!0},k,y);r[dt].set(S,A);const V=f[S];V&&A.validateSchema.setRule(V)});return}if(d){const C=Reflect.ownKeys(f),B={name:S=>C.includes(S)};k?.emitToChildren(B,"setNameValidateRules",f,!1)}},r.clearValidate=(f=!0)=>{let d=null;if(f===!0)d={name:"*"};else if(Array.isArray(f)&&f.length>0){const g=f;d={name:C=>C?g.indexOf(C)!==-1:!1}}else if(f!=null&&typeof f=="object"){const g=f;if(Array.isArray(g.include)&&g.include.length>0){const C=g.include;d={name:B=>B?C.indexOf(B)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const C=g.exclude;d={name:B=>B?C.indexOf(B)===-1:!1}}else d={name:"*"}}d&&k?.emitToChildren(d,"clearValidate",!1)},r.resetFields=f=>{const d=p();if(!d)return;const g={};if(lt(!0,g,u()??{}),Array.isArray(f))f.forEach(C=>{d[C]=g[C]});else if(f&&Array.isArray(f.include))(f.include??[]).forEach(B=>{d[B]=g[B]});else if(f&&Array.isArray(f.exclude)){let C=f.exclude??[];Reflect.ownKeys(g).forEach(B=>{C.includes(B)||(d[B]=g[B])})}else Object.assign(d,g);r.clearValidate(f)},r.setModelValue=(f,d)=>{!d||d===i?m(f):k?.emitToChildren({name:d},"setModelValue",f)},r.getModelValue=()=>p()}return t.onUnmounted(()=>{c.destroy(),r[Ie]=void 0,r[dt]&&(r[dt].clear(),r[dt]=void 0),k!==null&&(k.destroy(),r[ke]=void 0),y!==null&&(y.destroy(),r[Ke]=void 0)}),c}function Zr(e,n,a=[]){const l=t.getCurrentInstance()?.proxy;let r=t.inject(Ie,null);r===null&&(r=pt());const s=e||n.prop||n.name,i=new An(s);return i.parent=r,t.isReactive(n)||typeof n=="function"?t.watch(n,c=>{i.merge(c,a)},{immediate:!0}):i.merge(n,a),l[Ie]=i,t.provide(Ie,i),t.onUnmounted(()=>{i.destroy(),l[Ie]=void 0}),i}function Jr(e,n,a){const l=He(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Ne(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(ke,null),i=Nn(l,s,r,a);l[ke]=i,t.provide(ke,i),l.broadcast=(y,b,...v)=>Reflect.apply(i.emit,i,[y,b,...v]);const c=t.inject(Ke,null);e.fieldName=e.fieldName??r;const m=Bn(l,c,e);l[Ke]=m,t.provide(Ke,m),Jr(l,m,r),l.validate=(y=null)=>{const b=[];let v=!1,f=!1;if(Array.isArray(y)&&y.indexOf(r)!==-1)f=!0,v=!0;else if(y&&typeof y=="object"){const d=y,g=d.ignoreDisabled??!0,C=d.ignoreReadonly??!0,B=d.ignoreHidden??!0;g===!0&&e.disabled===!0||C===!0&&e.readonly===!0||B===!0&&wn(l.$el)?f=!1:(Array.isArray(d.include)&&d.include.indexOf(r)!==-1||Array.isArray(d.exclude)&&d.exclude.indexOf(r),f=!0),v=d.deep??!1}else typeof y=="boolean"&&(v=y),f=!0;if(f){const d=m?.validate();b.push(d)}if(v){let d=null;const g={deep:!1};if(y===!0)d={name:"*"};else if(Array.isArray(y)&&y.length>0){const C=y;d={name:B=>B?C.indexOf(B)!==-1:!1}}else if(y!=null&&typeof y=="object"){const C=y;if(Object.assign(g,C),Array.isArray(C.include)&&C.include.length>0){const B=C.include;d={name:S=>S?B.indexOf(S)!==-1:!1}}else if(Array.isArray(C.exclude)&&C.exclude.length>0){const B=C.exclude;d={name:S=>S?B.indexOf(S)===-1:!1}}else d={name:"*"}}if(d){const C=i.emitToChildren(d,"validate",g);Reflect.apply([].push,b,C)}}return b.length==1?b[0]:b.length>1?Promise.all(b).then(d=>{let g=[];return d.forEach(C=>{C.pass===!1&&Array.isArray(C.errors)&&(g=[...g,...C.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=y=>m?.setRule(y),l.setNameValidateRules=(y,b=!1)=>{const v=y[r];if(v&&m?.setRule(v),b){const f={name:d=>Reflect.ownKeys(y).includes(d)};i.emitToChildren(f,"setNameValidateRules",y,!1)}},l.clearValidate=(y=null)=>{(!Array.isArray(y)||y.indexOf(n??"")!==-1)&&m?.clear();let b=null;if(y===!0)b={name:"*"};else if(Array.isArray(y)&&y.length>0){const v=y;b={name:f=>f?v.indexOf(f)!==-1:!1}}else if(y!=null&&typeof y=="object"){const v=y;if(Array.isArray(v.include)&&v.include.length>0){const f=v.include;b={name:d=>d?f.indexOf(d)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const f=v.exclude;b={name:d=>d?f.indexOf(d)===-1:!1}}else b={name:"*"}}b&&i.emitToChildren(b,"clearValidate",!1)};const p=new Gr(l);l[fn]=p;const u=yt((y="validate")=>{y==="reset"?m.clear():m.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:Wr()).forEach(y=>{p.on(y,b=>{u("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:Xr()).forEach(y=>{p.on(y,b=>{u("reset")})}),t.onUnmounted(()=>{i.destroy(),l[ke]=void 0,m.destroy(),l[Ke]=void 0,p.destroy(),l[fn]=void 0}),{broadcast:i,validateSchema:m,emitEvent:(y,...b)=>{Reflect.apply(p.emit,p,[y,...b])},onEvent:(y,b)=>{Reflect.apply(p.on,p,[b])},offEvent:(y,b)=>{Reflect.apply(p.off,p,[b])}}}function _r(e,n,a,o,l){const r={},s=n??"",i={getValue(){const p=e.getForSelf("modelValue");return p?p[s]:null},isExist(){const p=e.getForSelf("modelValue");return p?Reflect.has(p,s):!1}};a.fieldName=s,a.validateHandler={getValue(p){return i.getValue()}};const c=Bn({},l,a);r.validate=(p=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const u=[];let h=!1,k=!1;if(Array.isArray(p)&&p.indexOf(s)!==-1)k=!0,h=!0;else if(p&&typeof p=="object"){const y=p;Array.isArray(y.include)&&y.include.indexOf(s)!==-1||Array.isArray(y.exclude)&&y.exclude.indexOf(s),k=!0,h=y.deep??!1}else typeof p=="boolean"&&(h=p),k=!0;if(k){const y=c?.validate();u.push(y)}if(h){let y=null;const b={deep:!1};if(p===!0)y={name:"*"};else if(Array.isArray(p)&&p.length>0){const v=p;y={name:f=>f?v.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const v=p;if(Object.assign(b,v),Array.isArray(v.include)&&v.include.length>0){const f=v.include;y={name:d=>d?f.indexOf(d)!==-1:!1}}else if(Array.isArray(v.exclude)&&v.exclude.length>0){const f=v.exclude;y={name:d=>d?f.indexOf(d)===-1:!1}}else y={name:"*"}}if(y){const v=m.emitToChildren(y,"validate",b);Reflect.apply([].push,u,v)}}return u.length==1?u[0]:u.length>1?Promise.all(u).then(y=>{let b=[];return y.forEach(v=>{v.pass===!1&&Array.isArray(v.errors)&&(b=[...b,...v.errors])}),b.length>0?{pass:!1,errors:b}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>c?.setRule(p),r.setNameValidateRules=p=>{const u=p[s];u&&c?.setRule(u)};const m=Nn(null,o,s,r);return{broadcast:m,validateSchema:c}}function Bt(){const n=t.getCurrentInstance()?.proxy,a=new Gr(n);return n[fn]=a,t.onUnmounted(()=>{a.destroy(),n[fn]=void 0}),{emitEvent:(o,...l)=>{Reflect.apply(a.emit,a,[o,...l])},onEvent:(o,l)=>{Reflect.apply(a.on,a,[l])},offEvent:(o,l)=>{Reflect.apply(a.off,a,[l])}}}const he=e=>e?`${ie(e)}px`:"";function ie(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 a=e.indexOf("px");if(a!==-1)return Number(e.substring(0,a));if(a=e.indexOf("rem"),a!==-1){let l=Number(e.substring(0,a)),r=1;if(it){const{fontSize:s}=window.getComputedStyle(document.documentElement,null),i=s.indexOf("px");i>0&&(r=Number(s.substring(0,i)))}return l*=r,l}if(a=e.indexOf("%"),a!==-1)return Number(e.substring(0,a))*n;const o=Number(e);return isNaN(o)?0:o}const Qe="PageStateKey";function Le(e){const n={top:null,left:null,bottom:null,right:null};return e&&(e.top!==null&&e.top!==void 0&&(n.top=ie(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ie(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ie(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ie(e.right))),n}function wo(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=ie(a.headerHeight??n.headerHeight??-1),e.headerPadding=Le(a.headerPadding??n.headerPadding),e.footerHeight=ie(a.footerHeight??n.footerHeight??-1),e.footerPadding=Le(a.footerPadding??n.footerPadding),e.contentPadding=Le(a.contentPadding??n.contentPadding),o){const c=a.height??n.height;c?e.height=ie(c,r):e.height=ie(r)-ie(s,r)-ie(i,r),e.width=ie(a.width??n.width??0,l)}}function es(e,n={}){const a={top:null,left:null,bottom:null,right:null},o={width:0,height:0,headerHeight:0,headerPadding:{...a},footerHeight:0,footerPadding:{...a},contentPadding:{...a},contentHeight:null,safeAreaTop:0,safeAreaBottom:0,safeAreaLeft:0,safeAreaRight:0,headerMounted:!1,footerMounted:!1},l=Object.assign(e.get("safeAreaInset")??{},n.safeAreaInset??{});l&&(o.safeAreaTop=ie(l.top),o.safeAreaBottom=ie(l.bottom),o.safeAreaLeft=ie(l.left),o.safeAreaRight=ie(l.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,m=e.get("footerBarHeight")??0;wo(o,r,n,!0,s,i,c,m);const p=t.reactive(o),u=e.getForParent(Qe);u&&(o.height=pn(e,u),o.width=hn(e,u),t.watch([()=>pn(e,u),()=>hn(e,u)],([k,y])=>{p.height=k,p.width=y}));const h=!u;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([k,y,b=-1,v=-1,f=0,d=0])=>{wo(p,y,n,h,b,v,f,d)}),e.set(Qe,p),p}function Vn(e){return e.get(Qe)}function Tn(e,n){if(n=n??e.get(Qe),n&&n.headerMounted){const a=n.safeAreaTop==-1?0:n.safeAreaTop;return n.headerAllHeight??n.headerHeight+a}return 0}function $n(e,n){if(n=n??e.get(Qe),n&&n.footerMounted){const a=n.safeAreaBottom==-1?0:n.safeAreaBottom;return n.footerAllHeight??n.footerHeight+a}return 0}function pn(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=Tn(e,n),o=$n(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function hn(e,n){return n=n??e.get(Qe),n?n.contentInnerWidth??n.width-(n.contentPadding.left??0)-(n.contentPadding.right??0):0}function mi(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function pi(e){return!!e.getForParent(Qe)}var gn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(gn||{});function ao(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Be(e,n,a=1,o){const l=He();return l==null?e:a===0?t.computed(()=>{const r=l.getAll(n);for(let i=r.length-1;i>=0;i--){const c=r[i];if(ao(c,o))return c}const s=e.value;return ao(s,o)?s:null}):t.computed(()=>{const r=e.value;return ao(r,o)?r:l?.get(n)})}function Te(e){return Be(e,"readonly",0,function(a){return pe(a)})}function we(e){return Be(e,"disabled",0,function(a){return pe(a)})}function xe(e,n="modelValue",a=null,o){const l=t.toRef(e,n);let r=l.value;typeof a=="function"&&(r=a(l.value));const s=t.ref(r);return t.watch(l,i=>{if(typeof a=="function"){const c=a(i);c!==s.value&&(s.value=c,o&&o("setValue",c))}else i!==s.value&&(s.value=i,o&&o("setValue",i))}),s}const ts=new Map,yn=new Map;let No=null;function hi(e){No=e}function ns(e,n,a){if(a){let o=yn.get(a);o||(o=new Map,yn.set(a,o)),o.set(e,n)}else ts.set(e,n)}function Je(e,n,a){!a&&No&&(a=No(e)??void 0);let o=null;if(a){let l=yn.get(a);l&&(o=l.get(n))}return o||(o=ts.get(n)),o}function gi(e,n){for(let a in e){const o=e[a];ns(a,o,n)}}function yi(e){yn.delete(e)}function vi(){return{top:0,left:0,bottom:0,right:0}}function bi(e=0,n=0){if(it){const a=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:o-ie(e,o)-ie(n,o)};return{rootWidth:a,rootHeight:o,pageLayout:l}}else return{rootWidth:-1,rootHeight:-1,pageLayout:{width:"100%",height:"100%",headerHeight:-1,footerHeight:-1}}}class ki{packages;_version;get version(){return this._version}constructor(n,a){this.packages=n,this._version=a}install(n,a){a?.install!==!1&&this.packages.forEach(r=>{r.install?n.use(r):r.name&&n.component(r.name,r)});const o=["safeAreaInset","pageLayout","headerBarHeight","footerBarHeight"],l=pt();if(this.initPageLayout(a,l),a.autoAdjustPageLayout!==!1&&window.ResizeObserver){const r=mn(()=>{const i={...a},c=document.documentElement.clientWidth||document.body.clientWidth,m=document.documentElement.clientHeight||document.body.clientHeight;i.width=c,i.height=m,this.initPageLayout(i,l)},150);new window.ResizeObserver(r).observe(window.document.body)}for(const r in a)o.indexOf(r)===-1&&l.set(r,a[r])}initPageLayout(n,a){const o=n.headerBarHeight??0,l=n.footerBarHeight??0,r=lt({},vi(),n.safeAreaInset),s=bi(o,l),i=lt({},s.pageLayout,n.pageLayout);a=a??pt(),a.set("safeAreaInset",r),a.set("headerBarHeight",o),a.set("footerBarHeight",l),a.set("pageLayout",i),a.set("rootWidth",s.rootWidth),a.set("rootHeight",s.rootHeight)}setScopeGetter(n){hi(n)}setAPI(n,a,o){ns(n,a,o)}getAPI(n,a,o){return Je(n,a,o)}batchSetAPI(n,a){gi(n,a)}clearScopeAPI(n){yi(n)}getRootDomain(){return pt()}}function X(e){const n="fox-"+e;return{componentName:n,scope:e.replace("-",""),create(a){return a.baseName=e,a.name=n,a.install=o=>{o.component(a.name,a)},t.defineComponent(a)},createDemo(a){return a.baseName=e,a.name="demo-"+e,t.defineComponent(a)}}}const Si=(e,n)=>{let a=document.body;const o=e.teleport||"body";o!="body"&&(qr(o)?a=document.querySelector(o):a=e.teleport);const l=document.createElement("view"),r=n.name?n.name+"-":"",s=e.id||new Date().getTime();l.id=r+s;let i={};dn(n.wrapper)?i=n.wrapper(a,l):i=n.wrapper;const c=t.createApp(i,e),m=n.components;return m&&m.forEach(p=>{c.use(p)}),a.appendChild(l),{instance:c.mount(l),unmount:()=>{c.unmount(),a.removeChild(l)}}},os=(e,n)=>e?t.h(e,n):"";function $e(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const me={disabled:{type:[Boolean,String],required:!1},readonly:{type:[Boolean,String],required:!1},labelPosition:{type:String,required:!1},labelWidth:{type:[String,Number],required:!1},textAlign:{type:[String],required:!1},hasBorder:{type:Boolean,required:!1,default:!0}},ge={prop:{type:String,required:!1},label:{type:String,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}},ls={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},as={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!1},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},rs=[];for(const e in as)rs.push(e);const Ci=Symbol.for("InnerPageScopeKey"),wi={name:{type:String,required:!1,default:""},modelValue:{type:Object,required:!1},width:{type:[Number,String],required:!1},height:{type:[Number,String],required:!1},safeAreaInset:{type:Object,required:!1},contentPadding:{type:Object,required:!1},headerPadding:{type:Object,required:!1},footerPadding:{type:Object,required:!1},headerHeight:{type:[Number,String],required:!1},footerHeight:{type:[Number,String],required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1}},Ni=(e,n)=>({inheritAttrs:!0,props:{...me,...ls,...wi},setup(a,{slots:o}){const l=Uo(a.name,a),r=t.inject(Ci,!1);if(l){const p=es(l,a);$e({getPageContentHeight:()=>pn(l,p),getPageContentWidth:()=>hn(l,p),getPageHeaderHeight:()=>Tn(l,p),getPageFooterHeight:()=>$n(l,p)}),p&&r&&(p.contentHeight="100%")}const s=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),c=t.getCurrentInstance(),m=(p,u=!1)=>{const h=c?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(p,!0,u)};return t.watch([()=>a.rules,()=>a.pureDataRules],([p,u],[h,k])=>{if(p&&h){const y=t.toRaw(h),b=t.toRaw(p),v=b?Reflect.ownKeys(b):[];(y?Reflect.ownKeys(y):[]).forEach(d=>{v.includes(d)||(b[d]=[])}),m(b)}if(u&&k){const y=t.toRaw(k),b=t.toRaw(u),v=b?Reflect.ownKeys(b):[];(y?Reflect.ownKeys(y):[]).forEach(d=>{v.includes(d)||(b[d]=[])}),m(b,!0)}},{deep:!0}),t.onMounted(()=>{if(a.rules){const p=t.toRaw(a.rules);m(p)}if(a.pureDataRules){const p=t.toRaw(a.pureDataRules);m(p,!0)}}),()=>{const p={class:s.value,style:i.value};return t.h("div",p,[o?.default?.()])}}}),{componentName:Bi,create:Ai,scope:l2}=X("page"),Ho=Ai(Ni(Bi));function jo(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function En(e){const n=t.unref(e),a=window.getComputedStyle(n,null),o=parseFloat(a.getPropertyValue("padding-left")),l=parseFloat(a.getPropertyValue("padding-right")),r=parseFloat(a.getPropertyValue("padding-top")),s=parseFloat(a.getPropertyValue("padding-bottom"));return{width:n.clientWidth-o-l,height:n.clientHeight-r-s}}const Vi=Symbol.for("InnerPageScopeKey"),Ti=(e,n,a,o=!1)=>({props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetTop:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},align:{type:[String],default:"center"},padding:{type:[Object],required:!1},leftShow:{type:[Boolean,String],required:!1,default:!0},leftIcon:{type:[Object],required:!1,default:a},leftText:{type:String,required:!1},titleShow:{type:Boolean,required:!1,default:!0},title:{type:String,required:!1,default:""},titleIcon:{type:[Object],required:!1},rightShow:{type:[String,Boolean],required:!1,default:!0},rightIcon:{type:[Object],required:!1},rightText:{type:String,required:!1,default:""}},emits:["back","click-title","click-right","click-right-text"],setup(l,r){const s=He(),i=s?Vn(s):null,c=t.inject(Vi,!1),m=e,p=t.computed(()=>{const w={[m]:!0,[`${m}--border`]:l.border,[`${m}--fixed`]:l.fixed};return c||(w[`${m}--safe-area-inset-top`]=l.safeAreaInsetTop),w}),u=t.computed(()=>({[`${m}__inner`]:!0,[`${m}__inner--${l.align}`]:!0})),h=l.height!==null&&l.height!==void 0?ie(l.height):null,k=t.computed(()=>{const w={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const M=Le(l.padding??i.headerPadding);return Object.assign(w,M),h&&(i.headerHeight=h),i.headerHeight>0&&(w.height=i.headerHeight),w.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,w.safeAreaTop>0&&(w.top=w.safeAreaTop+(M.top??0),w.height&&w.height>0&&(w.height=w.height+w.safeAreaTop)),w}if(h&&(w.height=h),l.padding){const M=Le(l.padding);Object.assign(w,M)}return w}),y=t.ref(null),b=()=>{if(i&&y.value&&!wn(y.value)){if(!o){const w=jo(y.value);i.headerAllHeight=w.height}return i.headerMounted=!0,!0}return!1};let v=null;t.onMounted(()=>{i&&(Ko(b,50,5,50,!0),window.ResizeObserver&&y.value&&(v=new window.ResizeObserver(()=>{b()}),v.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,v&&(v.disconnect(),v=null))});const f=t.computed(()=>{const w={};return k.value.height!==null&&k.value.height!==void 0&&(w.height=`${k.value.height}px`),k.value.top!==null&&k.value.top!==void 0&&(w.paddingTop=`${k.value.top}px`),k.value.left!==null&&k.value.left!==void 0&&(w.paddingLeft=`${k.value.left}px`),k.value.right!==null&&k.value.right!==void 0&&(w.paddingRight=`${k.value.right}px`),k.value.bottom!==null&&k.value.bottom!==void 0&&(w.paddingBottom=`${k.value.bottom}px`),w}),d=t.computed(()=>!(k.value.height!==null&&k.value.height!==void 0&&k.value.height<=0));function g(){r.emit("back")}function C(){r.emit("click-title")}function B(){r.emit("click-right")}function S(){r.emit("click-right-text")}const N=()=>{if(!l.leftShow)return null;const w=[];if(r.slots.left)w.push(r.slots.left());else{if(r.slots.leftIcon){const M=t.h("view",{class:"left-icon",onClick:g},[r.slots.leftIcon()]);w.push(M)}else if(l.leftIcon){const M=t.h("view",{class:"left-icon",onClick:g},[t.h(l.leftIcon)]);w.push(M)}if(l.leftText){const M=t.h("view",{class:"left-text",onClick:g},[l.leftText]);w.push(M)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__left"},w)},A=()=>{if(!l.rightShow)return null;const w=[];if(r.slots.right)w.push(r.slots.right());else{if(l.rightText){const M=t.h("view",{class:"right-text",onClick:S},[l.rightText]);w.push(M)}if(r.slots.rightIcon){const M=t.h("view",{class:"right-icon",onClick:B},[r.slots.rightIcon()]);w.push(M)}else if(l.rightIcon){const M=t.h("view",{class:"right-icon",onClick:B},[t.h(l.rightIcon)]);w.push(M)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__right"},w)},V=()=>{if(!l.titleShow)return null;const w=[],M=r.slots.default?r.slots.default():null;if(M)w.push(M);else{if(l.title){const P=t.h("view",{class:"title-text"},[l.title]);w.push(P)}if(r.slots.titleIcon){const P=t.h("view",{class:"title-icon",onClick:C},[r.slots.titleIcon()]);w.push(P)}else if(l.titleIcon){const P=t.h("view",{class:"title-icon",onClick:C},[t.h(l.titleIcon)]);w.push(P)}}return w.length===0?null:t.h("view",{class:"fox-header-bar__title"},w)},T=()=>{const w=[],M=r.slots.bottom?r.slots.bottom():null;return M&&w.push(M),w.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},w)};return()=>{if(!d.value)return null;const w=[];if(r.slots.all)w.push(r.slots.all());else{const P=[],$=N();$&&P.push($);const E=V();E&&P.push(E);const K=A();if(K&&P.push(K),P.length>0){const W=t.h("view",{class:u.value},P);w.push(W)}const D=T();D&&w.push(D)}if(w.length===0)return null;const M={class:p.value,style:f.value,ref:y};return t.h("view",M,w)}}}),{componentName:$i,create:Ei,scope:xi}=X("header-bar"),Wo=Ei(Ti($i,xi,oe.Left,!1)),Di=Symbol.for("InnerPageScopeKey");function Ii(e,n,a=!1){return{props:{fixed:{type:Boolean,required:!1,default:!0},safeAreaInsetBottom:{type:Boolean,required:!1,default:!0},border:{type:Boolean,required:!1,default:!1},height:{type:[String,Number],required:!1},padding:{type:[Object],required:!1},align:{type:String,required:!1,default:"center"}},setup(o,l){const r=He(),s=r?Vn(r):null,i=t.inject(Di,!1),c=e,m=t.computed(()=>{const v={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return i||(v[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),v}),p=o.height!==null&&o.height!==void 0?ie(o.height):null,u=t.computed(()=>{const v={safeAreaBottom:null,height:null,left:null,top:null,right:null,bottom:null};if(r&&s){const f=Le(o.padding??s.footerPadding);return Object.assign(v,f),p&&(s.footerHeight=p),s.footerHeight>0&&(v.height=s.footerHeight),v.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,v.safeAreaBottom>0&&(v.bottom=v.safeAreaBottom+(f.bottom??0),v.height&&v.height>0&&(v.height=v.height+v.safeAreaBottom)),v}if(p&&(v.height=p),o.padding){const f=Le(o.padding);Object.assign(v,f)}return v}),h=t.ref(null),k=()=>{if(s&&h.value&&!wn(h.value)){if(!a){const v=jo(h.value);s.footerAllHeight=v.height}return s.footerMounted=!0,!0}return!1};let y=null;t.onMounted(()=>{s&&(Ko(k,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(()=>{k()}),y.observe(h.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,y&&(y.disconnect(),y=null))});const b=t.computed(()=>{const v={};return u.value.height!==null&&u.value.height!==void 0&&(v.height=he(u.value.height)),u.value.top!==null&&u.value.top!==void 0&&(v.paddingTop=he(u.value.top)),u.value.left!==null&&u.value.left!==void 0&&(v.paddingLeft=he(u.value.left)),u.value.right!==null&&u.value.right!==void 0&&(v.paddingRight=he(u.value.right)),u.value.bottom!==null&&u.value.bottom!==void 0&&(v.paddingBottom=he(u.value.bottom)),v});return()=>{const v=l.slots.default?l.slots.default():[],f={ref:h,class:m.value,style:b.value};return t.h("view",f,v)}}}}const{componentName:qi,create:Mi,scope:Pi}=X("footer-bar"),Yo=Mi(Ii(qi,Pi,!1));function Li(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=He(),l=t.computed(()=>({[e]:!0})),r=o?Vn(o):null,s=t.computed(()=>{const m={};if(o&&r){if(a.padding){const f=Le(a.padding);Object.assign(r.contentPadding,f)}const p=Tn(o,r),u=$n(o,r);let h="";r.contentHeight?h=`${r.contentHeight}`:h=`${r.height}px`,console.debug("[content]page height:",h),console.debug("[content]header height:",p),console.debug("[content]footer height:",u),console.debug("[content]padding:",r.contentPadding),m.height=h;let k=(r&&r.contentPadding&&r.contentPadding.top)??-1;(k>=0||p>0)&&(k=k<0?0:k,m.paddingTop=`${p+k}px`);let y=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(y>=0||u>0)&&(y=y<0?0:y,m.paddingBottom=`${u+y}px`);const b=(r&&r.contentPadding&&r.contentPadding.left)??-1;b>=0&&(m.paddingLeft=`${b}px`);const v=(r&&r.contentPadding&&r.contentPadding.right)??-1;return v>=0&&(m.paddingRight=`${v}px`),m}if(a.padding){const p=Le(a.padding);p.left&&(m.paddingLeft=`${p.left}px`),p.top&&(m.paddingTop=`${p.top}px`),p.right&&(m.paddingRight=`${p.right}px`),p.bottom&&(m.paddingBottom=`${p.bottom}px`)}return m}),i=t.ref(null),c=yt(()=>{if(r&&i.value){const m=En(i.value);r.contentInnerHeight=m.height,r.contentInnerWidth=m.width}},0);return t.onMounted(()=>{c()}),o&&r&&t.watch([()=>s.value,()=>l.value],([])=>{c()}),{contentRef:i,classes:l,styles:s}}}}const{componentName:zi,create:Fi,scope:a2}=X("content"),Ri=Fi(Li(zi));function Oi(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"contentRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.renderSlot(e.$slots,"default")],6)}const ne=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},Xo=ne(Ri,[["render",Oi]]),vt="GroupStateKey",ss=Symbol.for("GroupScopeKey");function xn(){return t.inject(ss,!1)}function Dn(e=!0){t.provide(ss,e)}function Ki(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Ir(l)||(e[o]=l)})}function Ui(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ki(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(vt,r),r}function ro(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(vt);if(!c)return;const m=e.get("groupLayout")??{};a===-1&&(a=m.column??1),o===-1&&(o=m.gutter??0),r||(r=m.minItemWidth??-1),s||(s=m.maxItemWidth??-1);const p=ie(r),u=ie(s);i||(i=m.type??"grid");const h=()=>{const k=n===""||n===-1,y=ie(n);let b=fe(a);const v=ie(o);if(!k){let g=(y-(b-1)*v)/b;for(;u!==-1&&g>u;)b++,g=(y-(b-1)*v)/b;for(;p!==-1&&b>1&&g<p;)b--,g=(y-(b-1)*v)/b}let f=!1;const d=c.layout;d.value.width=n,d.value.column!==b&&(d.value.column=b,f=!0),d.value.gutter!==v&&(d.value.gutter=v,f=!0),d.value.type!==i&&(d.value.type=i,f=!0),f&&t.triggerRef(d)};if(l)h();else{const k=++c.passport;setTimeout(()=>{k===c.passport&&h()},50)}}function In(e,n=!1){let a;return n?a=e.getForParent(vt):a=e.get(vt),a.layout}function qn(e,n=!1){let a;return n?a=e.getForParent(vt):a=e.get(vt),a.order}function Oa(e,n=1){if(n==="stretch")return-1;const a=fe(n);return a===-1?100:100*a/e}function Mn(e,n,a=1,o=0,l){const r={};let s=0;l?s=ie(l):s=Oa(n.column,a),s>0&&(r.width=`${s}%`);const i=Oa(n.column,o);i>0&&(r["margin-left"]=`${i}%`);const c=n.gutter/2;return c>0&&(r["padding-left"]=`${c}px`,r["padding-right"]=`${c}px`),r}function Pn(e,n,a=1,o=0){if(a==="stretch"){const c=e.index%n.column,m=c+(n.column-c);return e.index=e.index+(m-c),{"grid-column":`${c+1} / -1`}}let l=fe(a);if(l===-1){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}if(l>n.column){const c=e.index%n.column;return n.column,c==0?e.index=e.index+n.column:e.index=e.index+(n.column-c)+n.column,{"grid-column":"1 / -1"}}const r=fe(o)%n.column;let s=(e.index+r)%n.column,i=s+l;return i>n.column?(s=0,i=s+l,e.index=e.index+(n.column-s)+l):e.index=e.index+r+l,r>0?{"grid-column":`${s+1} / span ${l}`}:{"grid-column-start":`span ${l}`}}const is=Symbol("RollingStateKey");function Hi(e){t.provide(is,e)}function ji(){return t.inject(is,null)}function Bo(e){let n=0;const a=window.getComputedStyle(e,null);if(a.getPropertyValue("box-sizing")==="content-box"){const l=parseFloat(a.getPropertyValue("padding-top")),r=parseFloat(a.getPropertyValue("padding-bottom"));n=e.clientHeight-l-r}else n=e.offsetHeight;return n}function Wi(e){let n=Bo(e);if(n<=0){const a=e.cloneNode(!0),o=e.offsetWidth;a.style=`width: ${o}px; height: initial; overflow: initial; visibility: hidden;`,document.body.appendChild(a),n=Bo(a),console.info("2.---------- get expand height",n),document.body.removeChild(a)}return n}function Yi(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const Xi={...me,...ls,...as};function Qi(e,n,a){return{props:Xi,emits:["update:collapse"],setup(o,l){const r=Uo(o.name,o,rs),s=Ui(r,{type:o.type}),i=xn();Dn(!0);const c=o.rollingDisplay?ji():null,m=t.ref(null),p=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),u=t.computed(()=>i&&r?In(r,!0).value:null),h=t.getCurrentInstance(),k=(U,G=!1)=>{const Q=h?.proxy;Q&&typeof Q.setNameValidateRules=="function"&&Q.setNameValidateRules(U,!0,G)};t.watch([()=>o.rules,()=>o.pureDataRules],([U,G],[Q,J])=>{if(U&&Q){const z=t.toRaw(Q),ee=t.toRaw(U),te=ee?Reflect.ownKeys(ee):[];(z?Reflect.ownKeys(z):[]).forEach(ce=>{te.includes(ce)||(ee[ce]=[])}),k(ee)}if(G&&J){const z=t.toRaw(J),ee=t.toRaw(G),te=ee?Reflect.ownKeys(ee):[];(z?Reflect.ownKeys(z):[]).forEach(ce=>{te.includes(ce)||(ee[ce]=[])}),k(ee,!0)}},{deep:!0});const y=e,b=t.computed(()=>{const U={};if(U.height=E.value,o.width)o.width!=="auto"&&(U.width=he(o.width));else{const G=i?qn(r,!0):null;if(u.value&&G){if(u.value.type==="grid"){const Q=Pn(G,u.value,o.span,o.offset);Object.assign(U,Q)}else if(u.value.type==="flow"){const Q=Mn(G,u.value,o.span,o.offset,o.width);Object.assign(U,Q)}}}return U}),v=t.computed(()=>{const U=s.layout.value.type;return U==="grid"||U==="flow"?{[`${y}--${U}`]:!0,[`${y}--${U}-justify-${o.justify}`]:!0,[`${y}--${U}-align-${o.align}`]:!0,[`${y}--gutter`]:!0}:{[`${y}--${U}`]:!0,[`${y}--gutter`]:!0}}),f=t.computed(()=>{if(s.layout.value.type==="grid"){let G="";if(o.columnWidth)G=`repeat(auto-fill, ${o.columnWidth})`;else{const Q=Yi(A.value,s.layout.value.column,s.layout.value.gutter);G=`repeat(${s.layout.value.column}, ${Q})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":G}}}),d=t.toRef(o,"gutter"),g=t.toRef(o,"column"),C=t.computed(()=>i||p.value?!0:pe(o.isWrap)),B=[],S=U=>{B.push(U)},N=()=>{let U=B.length;B.splice(0,U)},A=t.ref(-1),V=U=>{const G=En(U).width;G>0&&G!==A.value&&(A.value=G)};ro(r,A.value,g.value,d.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([A,g,d],([U,G,Q])=>{s.order.index=0,ro(r,U,G,Q,!1,o.minItemWidth,o.maxItemWidth,o.type)});const T=t.computed(()=>K.value?o.expandText??"":o.collapseText??""),w=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),M=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!K.value,"is-collapse":K.value})),P=t.ref(),$=t.ref(),E=t.computed(()=>D.value||he(o.height)||""),K=t.ref(!1),D=t.ref(""),W=t.ref(!1);let H=-1;const Z=(U,G=!0)=>{const Q=P.value;if(Q&&K.value!==U){if(H=H<=0?Wi(Q):H,W.value=!0,G)if(Q.style["will-change"]="height",Q.ontransitionend=function(){Q.ontransitionend=null,this.style["will-change"]="auto",U||(D.value="",W.value=!1)},U){let J=0;o.collapseHeight?J=o.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(J=$.value.offsetHeight),D.value=`${H}px`,t.nextTick(()=>{D.value=`${J}px`})}else D.value=`${H}px`;else if(U){let J=0;o.collapseHeight?J=o.collapseHeight:$.value&&$.value.classList.contains(`${e}__header`)&&(J=$.value.offsetHeight),D.value=`${J}px`}else W.value=!1,D.value=`${H}px`;K.value=U,l.emit("update:collapse",U)}};t.watch(()=>o.collapse,U=>{Z(U)});const _=()=>{j()},j=U=>{U=U??!K.value,Z(U)};$e({toggleCollapse:j,doLayout:()=>{B[0]&&(V(B[0]),ro(r,A.value,g.value,d.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let L=null,x=!0;const F=U=>{if(o.rules){const G=t.toRaw(o.rules);k(G)}if(o.pureDataRules){const G=t.toRaw(o.pureDataRules);k(G,!0)}if(it&&(U&&Z(pe(o.collapse),!1),o.autoLayout&&Array.isArray(B)&&B.length>0)){const G=B[0];V(G),window.ResizeObserver&&(L=new window.ResizeObserver(()=>{V(G)}),L.observe(G))}},q=()=>{L?.disconnect(),L=null},R=!p.value||c?.acquire();R&&(m.value=p.value?!0:null),t.onMounted(()=>{if(R&&(F(x),x=!1),p.value&&c){let U=null,G=c.initialHeight;c.observe(P.value,Q=>{if(Q!==m.value)if(Q)m.value=!0,K.value||(D.value=""),U=setTimeout(()=>{U=null,m.value!==!1&&(F(x),x=!1)},100);else{if(U!==null&&clearTimeout(U),m.value=!1,!K.value)if(x)D.value=c.initialHeight;else{let J=Bo(P.value);J<=0?D.value=G:(D.value=`${J}px`,G=D.value)}x||q()}})}}),t.onUnmounted(()=>{L?.disconnect(),c&&c.unobserve(P.value)});const Y=(U="right")=>{const G=[];if(T.value){const ee={class:w.value},te=t.h("span",ee,[T.value]);G.push(te)}const Q={class:M.value},J=o.collapseIcon??a,z=t.h(J,Q);return G.push(z),G.length>0?t.h("div",{class:{[`${y}__header-collapse`]:!0,[`is-${U}`]:!0},onClick:_},G):null},O=(U,G,Q,J)=>{const z={...v.value};return G===0&&(z[`${y}__first`]=!0),Q>=J-1&&(z[`${y}__last`]=!0),t.h("div",{ref:S,key:`${G}`,class:z,style:f.value},U)};return()=>{if(p.value&&m.value!==!0){const z=o.tag||"div";return t.h(z,{ref:P,prop:o.name,class:{[`${y}`]:!0,"is-collapse":W.value},style:b.value},[])}s.order.index=0;const U=[];let G=0;if(l.slots.header){const z={key:`${G++}`,ref:$,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},ee=t.h("div",z,[l.slots.header()]);U.push(ee)}else{const z=[],ee=o.collapsePosition==="left";if(ee&&o.showCollapse){const te=Y("left");te&&z.push(te)}if(o.title||l.slots.title){if(o.showMark){const te={class:{[`${y}__header-mark`]:!0}};o.markColor&&(te.style={background:o.markColor});const ae=t.h("div",te);z.push(ae)}if(l.slots.title){const te=t.h("div",{class:{[`${y}__header-title`]:!0}},[l.slots.title()]);z.push(te)}else if(o.title){const te=t.h("div",{class:{[`${y}__header-title`]:!0}},[o.title]);z.push(te)}}if(l.slots.toolbar&&z.push(l.slots.toolbar()),!ee&&o.showCollapse){const te=Y("right");te&&z.push(te)}if(z.length>0){const te={key:`${G++}`,ref:$,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},ae=t.h("div",te,z);U.push(ae)}}N();const Q=l.slots.default?l.slots.default():[],J=s.layout.value.type;if(J==="grid"){const z=O(Q,G++,0,Q.length);U.push(z)}else if(J==="flow"){const z=O(Q,G++,0,Q.length);U.push(z)}else for(let z=0;z<Q.length;z++){const ee=Q[z],te=O([ee],G++,z,Q.length);U.push(te)}if(C.value){const z=o.tag||"div";return t.h(z,{ref:P,prop:o.name,class:{[`${y}`]:!0,"is-collapse":W.value},style:b.value},[U])}else return U}}}}const{componentName:Gi,create:Zi,scope:Ji}=X("group"),Qo=Zi(Qi(Gi,Ji,oe.RectUp));function _i(e){return e===window}const ec=/matrix\((.+)\)/,cs=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(_i(n))return{x:0,y:0};let a=0,o=0,l=n;for(;l!==null;)a+=l.offsetLeft,o+=l.offsetTop,l=l.offsetParent;let r=0,s=0,i=0,c=0;for(l=n;l!==document;){s+=l.scrollTop,r+=l.scrollLeft;const{transform:m}=window.getComputedStyle(l);if(m){const p=ec.exec(m);if(p){let h=p[1].split(/\s*,\s*/);h.length==6&&(i+=Number(h[4]),c+=Number(h[5]))}}l=l.parentNode}return a-=r,o-=s,a+=i,o+=c,{x:a,y:o}};class tc{watchedListeners=[];add(n){this.watchedListeners.push(n)}remove(n){const a=this.watchedListeners.indexOf(n);a!==-1&&this.watchedListeners.splice(a,1)}size(){return this.watchedListeners.length}listen=()=>{this.watchedListeners.forEach(n=>{try{n()}catch{}})}}class nc{monitorRegister=new WeakMap;watch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r||(r=new tc,o.addEventListener("scroll",r.listen),o===document.body&&o.addEventListener("resize",r.listen),this.monitorRegister.set(o,r)),r.add(a),o=o.parentNode}}unwatch(n,a){let o=n.parentNode;const l=document.body.parentNode;for(;o&&o!==l;){let r=this.monitorRegister.get(o);r&&(r.remove(a),r.size()===0&&(this.monitorRegister.delete(o),o.removeEventListener("scroll",r.listen),o===document.body&&o.removeEventListener("resize",r.listen))),o=o.parentNode}}}const Ka=new nc,us={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"&yen;"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:oc,create:lc}=X("price"),ac=lc({props:{...us},setup(e){const n=t.computed(()=>({[oc]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>ye(e.price)==0?"":kn(e.price,e.decimalLength,!0,fe(e.digits),e.separator)),l=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(0,i)}),r=t.computed(()=>{let s=o.value;if(s.length==0)return"";let i=s.indexOf(".");return s.substring(i+1)});return{classes:n,showSymbol:a,intText:l,decimalText:r}}}),rc=["innerHTML"],sc=["innerHTML"];function ic(e,n,a,o,l,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,rc)):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,sc)):t.createCommentVNode("",!0)],2)}const Ge=ne(ac,[["render",ic]]),{componentName:so,create:cc}=X("hint-text"),uc=cc({components:{Price:Ge},props:{...us,type:{type:String,default:"number"},placement:{type:String,default:"top-start"},transition:{type:Boolean,default:!0},size:{type:String,default:"default"},arrowSize:{type:Number,default:6},showArrow:{type:Boolean,default:!0},arrowOffset:{type:Number,default:20},offset:{type:Number,default:12},id:{type:String},reference:{type:Object},autoFit:{type:Boolean,default:!0},message:{type:String,default:""},visible:{type:Boolean,default:!0},unmount:{type:Function},customClass:{type:String},customStyle:{type:Object},customTextClass:{type:String},customTextStyle:{type:Object},closeOnClick:{type:Boolean},zIndex:{type:[String,Number]}},emits:["update:visible"],setup(e,n){const a=t.ref({top:null,right:null,bottom:null,left:null}),o=t.ref({x:0,y:0}),l=t.ref(0),r=t.ref(0),s=t.ref(e.placement),i=t.ref(!1),c=t.ref(null),m=(w,M,P,$,E,K)=>{const D=document.documentElement.clientWidth||document.body.clientWidth,W=document.documentElement.clientHeight||document.body.clientHeight,H=w.split("-");let Z=[];H[0]==="top"?Z=["top","bottom","right","left"]:H[0]==="bottom"?Z=["bottom","top","right","left"]:H[0]==="left"?Z=["left","top","bottom","right"]:H[0]==="right"&&(Z=["right","top","bottom","left"]);const _={top:null,right:null,bottom:null,left:null},j=[];for(let I=0;I<Z.length;I++){const L=Z[I];if(j[0]=L,H[1]&&(j[1]=H[1]),L==="top"){const x=M.y-K-e.arrowSize-e.offset;if(x>=0){_.top=x;let F=0;H[1]==="start"?F=M.x:H[1]==="end"?F=M.x+P-E:F=M.x+P/2-E/2;const q=D-F-E;q<0?(F+=q,u.value=-q):u.value=0,_.left=F<0?0:F;break}}else if(L==="bottom"){const x=M.y+$+e.arrowSize+e.offset;if(x+K<=W){_.top=x;let F=0;H[1]==="start"?F=M.x:H[1]==="end"?F=M.x+P-E:F=M.x+P/2-E/2;const q=D-F-E;q<0?(F+=q,u.value=-q):u.value=0,_.left=F<0?0:F;break}}else if(L==="left"){const x=M.x-E-e.arrowSize-e.offset;if(x>=0){_.left=x;let F=0;H[1]==="start"?F=M.y:H[1]==="end"?F=M.y+$-K:F=M.y+$/2-K/2,_.top=F<0?0:F;break}}else if(L==="right"){const x=M.x+P+e.arrowSize+e.offset;if(x+E<=D){_.left=x;let F=0;H[1]==="start"?F=M.y:H[1]==="end"?F=M.y+$-K:F=M.y+$/2-K/2,_.top=F<0?0:F;break}}}return{bestPlacement:j.join("-"),bestInsetRect:_}},p=(w,M,P=10)=>{if(!it||M===!1||!w)return;o.value=cs(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const $=c.value.offsetHeight,E=c.value.offsetWidth,{bestPlacement:K,bestInsetRect:D}=m(e.placement,o.value,l.value,r.value,E,$);s.value=K,a.value=D,i.value=!0},u=t.ref(0),h=yt(()=>{p(e.message,e.visible)},10),k=t.ref(e.visible);t.watch(()=>e.visible,w=>{k.value=w});const y=t.computed(()=>k.value&&b.value),b=t.ref(!0),v=yt(w=>{const M=w[0];M&&(b.value=M.isIntersecting)},10),f=new IntersectionObserver(v);t.watch([()=>e.message,()=>e.visible],([w,M])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Ka.watch(e.reference,h),f.observe(e.reference)}),t.onBeforeMount(()=>{Ka.unwatch(e.reference,h),f.unobserve(e.reference),f.disconnect()});const d=t.computed(()=>{const w={[so]:!0};return s.value.startsWith("top")?w["is-top"]=!0:s.value.startsWith("right")?w["is-right"]=!0:s.value.startsWith("bottom")?w["is-bottom"]=!0:s.value.startsWith("right")&&(w["is-right"]=!0),e.size==="small"?w["is-small"]=!0:e.size==="large"&&(w["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(w[`${e.customClass}`]=!0),w}),g=t.computed(()=>{const w={};a.value.top!==null&&(w.top=`${a.value.top}px`),a.value.right!==null&&(w.right=`${a.value.right}px`),a.value.bottom!==null&&(w.bottom=`${a.value.bottom}px`),a.value.left!==null&&(w.left=`${a.value.left}px`),e.autoFit&&(w["min-width"]=`${l.value}px`);const M=document.documentElement.clientWidth||document.body.clientWidth;return w["max-width"]=`${M}px`,i.value&&(w.opacity="1"),e.transition||(w.transition="none"),e.zIndex&&(w["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(w,e.customStyle),w}),C=t.computed(()=>{const w=[`${so}__content`];return e.customTextClass&&w.push(e.customTextClass),w}),B=t.computed(()=>{const w={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(w,e.customTextStyle),w}),S=t.computed(()=>({[`${so}__arrow`]:!0})),N=t.computed(()=>{const w={};return e.showArrow?(w.width=`${e.arrowSize}px`,w.height=`${e.arrowSize}px`,s.value==="top"?(w.left="50%",w.bottom=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):s.value==="top-start"?(w.left=`${e.arrowOffset+u.value}px`,w.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(w.right=`${e.arrowOffset-u.value}px`,w.bottom=`-${e.arrowSize}px`):s.value==="right"?(w.left=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):s.value==="right-start"?(w.left=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):s.value==="right-end"?(w.left=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(w.left="50%",w.top=`-${e.arrowSize}px`,w.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(w.left=`${e.arrowOffset+u.value}px`,w.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(w.right=`${e.arrowOffset-u.value}px`,w.top=`-${e.arrowSize}px`):s.value==="left"?(w.right=`-${e.arrowSize}px`,w.top="50%",w.transform=" translate(0%, -50%)"):s.value==="left-start"?(w.right=`-${e.arrowSize}px`,w.top=`${e.arrowOffset}px`):s.value==="left-end"&&(w.right=`-${e.arrowSize}px`,w.bottom=`-${e.arrowOffset}px`),w):{display:"none"}}),A=t.computed(()=>y.value&&e.closeOnClick),V=t.computed(()=>{const w={};return e.zIndex&&(w["z-index"]=`${e.zIndex}`),w});return{show:y,tipRef:c,classes:d,styles:g,textClasses:C,textStyles:B,arrowClasses:S,arrowStyles:N,overlayShow:A,overlayStyle:V,onClickOverlay:()=>{k.value=!1,n.emit("update:visible",!1)}}}}),dc=["innerHTML"];function fc(e,n,a,o,l,r){const s=t.resolveComponent("Price");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.overlayShow?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-hint-text__overlay",style:t.normalizeStyle(e.overlayStyle),onClick:n[0]||(n[0]=(...i)=>e.onClickOverlay&&e.onClickOverlay(...i))},null,4)):t.createCommentVNode("",!0),t.withDirectives(t.createElementVNode("div",{ref:"tipRef",class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("div",{class:t.normalizeClass(e.textClasses),style:t.normalizeStyle(e.textStyles)},[e.type=="number"?(t.openBlock(),t.createBlock(s,{key:0,price:e.message,position:"before",size:e.size},null,8,["price","size"])):(t.openBlock(),t.createElementBlock("span",{key:1,innerHTML:e.message},null,8,dc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const ds=ne(uc,[["render",fc]]);class Ln{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}}const Ao={},mc=new Ln,ht=new Map,vn=e=>{if(e){const n=document.getElementById(e);ht.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of ht.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}ht.clear()}},pc=e=>{e.unmount=vn;const n=document.getElementById(e.id);if(n){const a=ht.get(e.id);a?e={...Ao,...a,...e}:e={...Ao,...e},e.transition=!1;const o=t.createVNode(ds,e);return t.render(o,n),e.id}},hc=e=>{e.unmount=vn;let n=e.id??`hinttext_${mc.get()}`;e={...Ao,...e},e.id=n,ht.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(ds,e);return t.render(o,a),document.body.appendChild(a),n},gc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},At={show(e,n,a={},o=!0){gc(n);const l=a.id;return l&&ht.has(l)?pc({...a,message:n,reference:e}):(o&&vn(),hc({...a,message:n,reference:e}))},hide(e){vn(e)},install(e){e.config.globalProperties.$hintText=At}};function yc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...me,...ge},emits:["appear","disappear"],setup(l,r){const s=l.prop??r.attrs.name;Ne({componentName:e,validate:!1},s);const i=He(),c=xn();Dn(!1);const m=t.computed(()=>c&&i?In(i,!1).value:null),p=e,u=t.ref(null),h=t.computed(()=>{const z={[p]:!0,[`${p}__gutter`]:m.value&&m.value.type!=="flow",[`${p}__stretch`]:l.span==="stretch",[`${p}__input--border`]:pe(l.hasBorder)};if(z[l.errorMarkClass]=!!K.value,z[l.warnMarkClass]=!!$.value,z[l.infoMarkClass]=!!M.value,typeof u.value=="function"){const ee=u.value(s);z[ee]=!0}else if(typeof u.value=="string"){const ee=u.value;z[ee]=!0}return z}),k=t.ref(null),y=t.computed(()=>{const z={};if(l.width)l.width!=="auto"&&(z.width=he(l.width));else{const ee=c&&i?qn(i,!1):null;if(m.value&&ee){if(m.value.type==="grid"){const te=Pn(ee,m.value,l.span,l.offset);Object.assign(z,te)}else if(m.value.type==="flow"){const te=Mn(ee,m.value,l.span,l.offset,l.width);Object.assign(z,te)}}}if(typeof k.value=="function"){const ee=k.value(s);ee&&Object.assign(z,ee)}else if(k.value&&typeof k.value=="object"){const ee=k.value;Object.assign(z,ee)}return z}),b=t.ref(null),v=t.computed({get:()=>b.value??pe(l.isRequired),set:z=>{b.value=z}}),f=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",d=Be(t.toRef(l,"labelPosition"),"labelPosition",gn.Near),g=t.computed(()=>d&&d.value==="top"?"top":d&&d.value==="right"?"right":"left"),C=t.computed(()=>({[`${p}__main`]:!0,[`${p}__main--${g.value}`]:!0})),B=t.computed(()=>({label:!0,[`label--${g.value}`]:!0})),S=Be(t.toRef(l,"labelWidth"),"labelWidth",gn.Near),N=t.computed(()=>S&&S.value?{width:he(S.value)}:{}),A=t.computed(()=>({"label--string":!0,"label--required":v.value})),V=t.computed(()=>({content:!0,[l.contentClass]:!0})),T=t.computed(()=>({...l.contentStyle})),w=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});$e({setRequired(z){v.value=z},setErrorTip(z){w.errorTip=z},setErrorIcon(z){w.errorIcon=z},setWarnTip(z){w.warnTip=z},setWarnIcon(z){w.warnIcon=z},setInfoTip(z){w.infoTip=z},setInfoIcon(z){w.infoIcon=z},setCustomClassName(z){u.value=z},setCustomStyle(z){k.value=z}});const M=t.computed(()=>l.infoTip||w.infoTip),P=t.computed(()=>l.infoIcon||w.infoIcon),$=t.computed(()=>l.warnTip||w.warnTip),E=t.computed(()=>l.warnIcon||w.warnIcon),K=t.computed(()=>l.errorTip||w.errorTip),D=t.computed(()=>l.errorIcon||w.errorIcon),W=t.computed(()=>K.value?"error":$.value?"warn":M.value?"info":""),H=()=>W.value.length>0,Z=t.computed(()=>W.value==="error"?K.value:W.value==="warn"?$.value:W.value==="info"?M.value:""),_=t.computed(()=>W.value==="error"?D.value:W.value==="warn"?E.value:W.value==="info"?P.value:null),j=t.computed(()=>{const z={[`${p}__tip`]:!0,[`${p}__tip--${W.value}`]:!0,[`${p}--animate`]:!0};return W.value==="error"&&l.errorClass?z[`${l.errorClass}`]=!0:W.value==="warn"&&l.warnClass?z[`${l.warnClass}`]=!0:W.value==="info"&&l.infoClass&&(z[`${l.infoClass}`]=!0),z}),I=t.computed(()=>{const z={};return d&&d.value==="top"||!f()?z["padding-left"]="0px":S&&S.value&&(z["padding-left"]=he(S.value)),z}),L=t.ref();let x="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([z,ee,te,ae])=>{L.value&&(z&&!ue(ee)?x?a.show(L.value,ee,{...ae,id:x,type:te},!0):x=a.show(L.value,ee,{...ae,type:te},!0):a.hide(x))});let F=null;const q=()=>{F||!L.value||(F=new IntersectionObserver(z=>{let ee=!1;for(let te of z)if(te.intersectionRatio>0){ee=!0,ee&&r.emit("appear",te);break}ee||r.emit("disappear")}),F.observe(L.value))},R=()=>{!F||!L.value||(F.unobserve(L.value),F=null)};t.watch(()=>pe(l.appearListen),z=>{z?q():R()}),t.onMounted(()=>{pe(l.appearListen)&&q()}),t.onUnmounted(R);const Y=()=>{if(!f())return null;const z=[],ee=r.slots?.label?.()??l.label,te={class:A.value},ae=t.h("div",te,[ee]);if(z.push(ae),r.slots.fixedPreTip){const Ee=r.slots.fixedPreTip();z.push(Ee)}const ce={class:B.value,style:N.value};return t.h("div",ce,z)},O=()=>{const z=[];if(r.slots.prepend){const te=r.slots.prepend();z.push(te)}if(r.slots.default){const te=r.slots.default();z.push(te)}if(r.slots.append){const te=r.slots.append();z.push(te)}if(r.slots.fixedTip){const te={class:[`${p}__fixed-tip`]},ae=t.h("div",te,[r.slots.fixedTip()]);z.push(ae)}const ee={ref:L,class:V.value,style:T.value};return t.h("div",ee,z)},U=()=>{const z=_.value;return z?typeof z=="function"?t.h("div",{class:"fox-item__tip--icon"},[z()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(z)]):null},G=()=>{const z=Z.value;return z?typeof z=="function"?t.h("div",{class:"fox-item__tip--text"},[z()]):t.h("div",{class:"fox-item__tip--text"},[z]):null},Q=()=>{if(!H())return null;const z=[],ee=U();ee&&z.push(ee);const te=G();te&&z.push(te);const ae={class:j.value,style:I.value};return t.h("div",ae,z)},J=()=>r.slots?.hide?.()??null;return()=>{const z=[],ee=[],te=Y();te&&ee.push(te);const ae=O();ae&&ee.push(ae);const ce={class:C.value},Ee=t.h("div",ce,ee);z.push(Ee);const De=Q();De&&z.push(De);const Ye=J();Ye&&z.push(Ye);const eo={class:h.value,style:y.value,prop:l.prop};return t.h("div",eo,z)}}}}const{componentName:vc,create:bc,scope:kc}=X("item"),Se=bc(yc(vc,kc,At,!1));function Sc(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,String],required:!1,default:!1}},setup(a,o){const l=e,r=t.computed(()=>({[l]:!0,[`${l}__stretch`]:a.span==="stretch",[`${l}__${a.align}`]:!0})),s=He(),i=xn();Dn(!1);const c=t.computed(()=>{const m={};if(a.width)a.width!=="auto"&&(m.width=he(a.width));else if(i&&s){const p=In(s,!1),u=qn(s,!1);if(p.value&&u){if(p.value.type==="grid"){const h=Pn(u,p.value,a.span,a.offset);Object.assign(m,h)}else if(p.value.type==="flow"){const h=Mn(u,p.value,a.span,a.offset,a.width);Object.assign(m,h)}}}return m});return()=>{const m=[];if(o.slots.default){const u=o.slots.default();if(a.divide)for(let h=0;h<u.length;h++){if(h>0){const k=t.h("div",{class:{[`${l}__divide`]:!0}});m.push(k)}m.push(u[h])}else Reflect.apply([].push,m,u)}const p={class:r.value,style:c.value};return t.h("div",p,m)}}}}const{componentName:Cc,create:wc,scope:r2}=X("row-item"),Go=wc(Sc(Cc));function Nc(e,n){return{props:{span:{type:[Number,String],required:!1,default:1},offset:{type:[Number,String],default:0},width:{type:[String,Number],required:!1}},setup(a,o){const l=He(),r=xn();Dn(!1);const s=t.computed(()=>r&&l?In(l,!1).value:null),i=e,c=t.computed(()=>({[i]:!0,[`${i}__gutter`]:s.value&&s.value.type!=="flow",[`${i}__stretch`]:a.span==="stretch"})),m=t.computed(()=>{const p={};if(a.width)a.width!=="auto"&&(p.width=he(a.width));else{const u=r&&l?qn(l,!1):null;if(s.value&&u){if(s.value.type==="grid"){const h=Pn(u,s.value,a.span,a.offset);Object.assign(p,h)}else if(s.value.type==="flow"){const h=Mn(u,s.value,a.span,a.offset,a.width);Object.assign(p,h)}}}return p});return()=>{const p={class:c.value,style:m.value};return o.slots&&typeof o.slots.default=="function"?t.h("div",p,o.slots.default()):t.h("div",p)}}}}const{componentName:Bc,create:Ac,scope:s2}=X("slot-item"),Zo=Ac(Nc(Bc)),Ua={type:{type:String,default:"text"},modelValue:{type:[String,Number],default:""},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Vc(e,n,a,o){return{props:{...me,...ge,...Ua},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:m}=re.useFoxI18n(n),p=m(l,["placeholder"]),u=t.ref(!1),h=xe(l,"modelValue",null,c),k=e,y=t.computed(()=>({[k]:!0,"is-disabled":s.value,"is-readonly":i.value})),b=Be(t.computed(()=>l.textAlign),"textAlign"),v=t.computed(()=>{const E={};return b.value&&(E["text-align"]=b.value),E}),f=E=>{let D=E.target.value;l.type==="digit"&&(D=So(D,!0)),l.type==="number"&&(D=So(D,!1)),l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),h.value=D,c("update:modelValue",D,E),c("change",D,E)};let d=xe(l,"hintText"),g=t.ref(!1);const C=E=>{let D=E.target.value;u.value=!0,ue(d.value)||(g.value=!0),c("focus",D,E)},B=E=>{setTimeout(()=>{g.value&&(g.value=!1),u.value=!1},0);let D=E.target.value;l.maxLength&&D.length>Number(l.maxLength)&&(D=D.slice(0,Number(l.maxLength))),c("blur",D,E)},S=t.computed(()=>({[`${k}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),N=t.computed(()=>{const E={};return r.slots.append&&!A.value&&!P.value&&(E.display="none"),E}),A=t.computed(()=>ye(l.unit)>0),V=t.computed(()=>!P.value),T=t.computed(()=>({[`${k}__unit`]:!0,hidden:!V.value})),w=E=>{h.value="",c("update:modelValue","",E),c("change","",E),c("clear","")},M=t.computed(()=>pe(l.clearable)&&!s.value&&!i.value),P=t.computed(()=>{let E=ye(h.value)>0;return pe(l.clearable)&&E&&u.value}),$=t.computed(()=>({action:!0,hidden:!P.value}));return()=>{const E={class:y.value,style:v.value,type:l.type,maxlength:l.maxLength,placeholder:p.placeholder.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:f,onFocus:C,onBlur:B},K=[],D=t.h("input",E);K.push(D);const W=[];if(M.value){const x={class:["action-icon"]},F=t.h(o,x),q={class:$.value,onClick:w},R=t.h("view",q,{default:()=>[F]});W.push(R)}if(A.value){const x=t.h("view",{class:T.value},[l.unit]);W.push(x)}const H={class:S.value,style:N.value},Z=t.h("view",H,{default:()=>W});K.push(Z);const _={default:()=>K};_.label=r.slots.default,_.prepend=r.slots.prepend,_.append=r.slots.append,_.fixedPreTip=r.slots.fixedPreTip,_.fixedTip=r.slots.fixedTip;const I={...Nt(l,Ua),hintText:d.value,hintVisible:g.value,prop:`${l.prop}_item`};return t.h(a,I,_)}}}}const{componentName:Tc,create:$c,scope:Ec}=X("input-item"),Jo=$c(Vc(Tc,Ec,Se,oe.CircleClose));function Ha(e,n=0){let a=`${e}`,o=a.indexOf(".");if(o==-1)return a;let l=o;for(let r=a.length-1;r>=o;r--)if(a.charAt(r)!="0"){l=r;break}return l-o<n?l=o+n+1:l!=o&&(l+=1),l>a.length?a=a.padEnd(l,"0"):a=a.substring(0,l),a}function ja(e,n,a=20){if(typeof n=="string"&&(n=fe(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Er(`${e}`,`${n}`);return Ha(o)}else{let o=Ro(`${e}`,xr(`${n}`),20);return Ha(o)}}function xc(e,n=-1,a=!1,o=3,l=","){return kn(e,n,a,o,l)}function Wa(e,n,a,o,l=!0){if(e=="")return"";if(e=Dr(e),n=fe(n),n==1)return e;if(o)e=ja(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(fe(a)+2,"0"):e=Ro(e,1,fe(a)));else{let r=-1*n;e=ja(e,r)}return e}function Ya(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=pe(n.minInclude),l=vo(e,n.min);if(o&&l==-1||!o&&(l==0||l==-1)){let r="请输入不小于 {0} 的数值";a.message=r.replace("{0}",n.min),a.minValid=!1}}if(n.max!=null){let o=pe(n.maxInclude),l=vo(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Xa={clearable:{type:Boolean,default:!0},modelValue:{type:[String,Number],default:""},showTip:{type:[Boolean,String],required:!1,default:!0},min:{type:[Number,String],required:!1},minInclude:{type:[Boolean,String],required:!1,default:!0},max:{type:[Number,String],required:!1},maxInclude:{type:[Boolean,String],required:!1,default:!0},unit:{type:String,required:!1},rates:{type:[Number,String],required:!1,default:1},precision:{type:[Number,String],required:!1},integerLength:{type:[Number,String],required:!1,default:-1},decimalLength:{type:[Number,String],required:!1,default:2},autoPadding:{type:Boolean,required:!1,default:!0},digits:{type:Number,required:!1,default:3},separator:{type:String,required:!1,default:","},placeholder:{type:String,required:!1},textAlign:{type:String,required:!1},adjustPosition:{type:Boolean,default:!0},alwaysSystem:{type:Boolean,default:!1}};function Dc(e,n,a,o){return{props:{...me,...ge,...Xa},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),m=t.ref(!1),p=xe(l,"modelValue",null,c),u=t.ref("");t.watch([()=>p.value,()=>l.rates,()=>l.precision],([H,Z,_])=>{if(ue(H)){u.value="";return}const j=Wa(H,Z,_,!1);u.value!==j&&(u.value=j)},{immediate:!0});const h=t.computed(()=>{let H="";return m.value&&(H=u.value),H}),{t:k}=re.useFoxI18n(n),y=t.computed(()=>{let H=l.placeholder??"";return!m.value&&!ue(u.value)?H=xc(u.value,l.decimalLength,l.autoPadding,l.digits,l.separator):H=ue(H)?k(["placeholder"]):H,H}),b=e,v=t.computed(()=>({[b]:!0,[`${b}__placeholder`]:u.value.length>0,"is-disabled":s.value,"is-readonly":i.value})),f=Be(t.computed(()=>l.textAlign),"textAlign"),d=t.computed(()=>{const H={};return f.value&&(H["text-align"]=f.value),H}),g=t.ref(""),C=t.computed(()=>{let H=g.value;return ue(H)&&(H=l.errorTip??""),H}),B=t.ref(""),S=t.ref(!1),N=H=>{let _=H.target.value;if(ue(_)){u.value="",p.value="",c("update:modelValue","",H),c("change","",H),pe(l.showTip)&&S.value&&(S.value=!1);return}if(_.length>=2){let j=_;if(j.charAt(0)=="-"&&(j=j.substring(1)),j.length>=2&&j.charAt(0)=="0"&&j.charAt(1)!="."){t.triggerRef(u);return}}if(_!="-"){if(!Or(_)){t.triggerRef(u);return}if(l.integerLength!=-1&&Kr(_)>Number(l.integerLength)){t.triggerRef(u);return}if(l.decimalLength&&l.decimalLength!=-1&&Ur(_)>Number(l.decimalLength)){t.triggerRef(u);return}let j=Ya(_,l);if(j.maxValid===!1){g.value=j.message,t.triggerRef(u);return}}else if(l.min!=null&&fe(l.min)>=0){t.triggerRef(u);return}B.value=_,pe(l.showTip)&&(S.value=_.length>0),u.value=_,p.value=Wa(_,l.rates,l.precision,!0),c("update:modelValue",p.value,H),c("change",p.value,H)},A=H=>{if(m.value=!0,pe(l.showTip)){let Z=u.value;ue(Z)&&(Z=l.hintText),ue(Z)||(B.value=Z,S.value=!0)}g.value="",c("focus",p.value,H)},V=H=>{if(setTimeout(()=>{m.value=!1,pe(l.showTip)&&S.value===!0&&(S.value=!1)},0),!ue(u.value)){let Z=Ya(u.value,l);if(Z.minValid===!1||Z.maxValid===!1){g.value=Z.message;return}}c("update:modelValue",p.value,H),c("blur",p.value,H)},T=t.computed(()=>({[`${b}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),w=t.computed(()=>{const H={};return r.slots.append&&!M.value&&!D.value&&(H.display="none"),H}),M=t.computed(()=>ye(l.unit)>0),P=t.computed(()=>!D.value),$=t.computed(()=>({[`${b}__unit`]:!0,hidden:!P.value})),E=H=>{p.value="",c("update:modelValue","",H),c("change","",H),c("clear","")},K=t.computed(()=>pe(l.clearable)&&!s.value&&!i.value),D=t.computed(()=>{let H=ye(p.value)>0;return pe(l.clearable)&&H&&m.value}),W=t.computed(()=>({action:!0,hidden:!D.value}));return()=>{let H={class:v.value,style:d.value,type:"digit",maxlength:l.maxLength,placeholder:y.value,disabled:s.value,readonly:i.value,value:h.value,"adjust-position":l.adjustPosition,"always-system":l.alwaysSystem,onInput:N,onFocus:A,onBlur:V},Z=[],_=t.h("input",H);Z.push(_);let j=[];if(K.value){const Y={class:["action-icon"]},O=t.h(o,Y),U={class:W.value,onClick:E},G=t.h("view",U,{default:()=>[O]});j.push(G)}if(M.value){const Y=t.h("view",{class:$.value},[l.unit]);j.push(Y)}const I={class:T.value,style:w.value},L=t.h("view",I,{default:()=>j});Z.push(L);const x={default:()=>Z};x.label=r.slots.default,x.prepend=r.slots.prepend,x.append=r.slots.append,x.fixedPreTip=r.slots.fixedPreTip,x.fixedTip=r.slots.fixedTip;let q={...Nt(l,Xa),errorTip:C.value,hintText:B.value,hintVisible:S.value,hintType:"number",prop:`${l.prop}_item`};return t.h(a,q,x)}}}}const{componentName:Ic,create:qc,scope:Mc}=X("money-item"),_o=qc(Dc(Ic,Mc,Se,oe.CircleClose)),Vo={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:Pc,create:Lc,scope:zc}=X("textarea"),Fc=Lc({props:{...Vo},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=re.useFoxI18n(zc);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const h=Pc;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=l.value;h.style.height="auto";let k=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:y,minHeight:b}=e.autosize;y!==void 0&&(k=Math.min(k,y)),b!==void 0&&(k=Math.max(k,b))}k&&(h.style.height=k+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,k)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,k),n("change",h,k)};return{...o,textareaRef:l,classes:r,styles:s,change:h=>{const k=h.target;c(k.value,h)},focus:h=>{e.disabled||e.readonly||n("focus",h)},blur:h=>{if(e.disabled||e.readonly)return;let y=h.target.value;c(y,h),n("blur",{value:y,event:h})}}}}),Rc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Oc={key:0,class:"fox-textarea__limit"};function Kc(e,n,a,o,l,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: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)),maxlength:e.maxLength,placeholder:e.placeholder,autofocus:e.autofocus},null,44,Rc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Oc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const zn=ne(Fc,[["render",Kc]]);function Uc(e,n,a,o){return{props:{...me,...ge,...Vo},emits:["update:modelValue","change","blur","focus","setValue"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),m=xe(l,"modelValue",null,c),p=b=>{m.value=b,c("update:modelValue",b,{}),c("change",b,{})};let u=xe(l,"hintText"),h=t.ref(!1);const k=b=>{ue(u.value)||(h.value=!0),c("focus",m.value,b)},y=b=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",m.value,b)};return()=>{const v={...ve(l,Vo),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":p,onFocus:k,onBlur:y},f=[],d=t.h(o,v);f.push(d);const g={default:()=>f};g.label=r.slots.default,g.prepend=r.slots.prepend,g.append=r.slots.append,g.fixedPreTip=r.slots.fixedPreTip,g.fixedTip=r.slots.fixedTip;const C=ve(l,ge,me);return t.h(a,{...C,prop:`${l.prop}_item`},g)}}}}const{componentName:Hc,create:jc,scope:Wc}=X("textarea-item"),el=jc(Uc(Hc,Wc,Se,zn));function Yc(e){return e===window}const Ve=e=>{const n=t.unref(e);if(Yc(n)){const a=n.innerWidth,o=n.innerHeight;return{top:0,left:0,right:a,bottom:o,width:a,height:o}}return n&&n.getBoundingClientRect?n.getBoundingClientRect():{top:0,left:0,right:0,bottom:0,width:0,height:0}};let Xc=2e3;const Qa=()=>Xc++,ze={visible:{type:Boolean,default:!1},zIndex:{type:[String,Number]},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,Array],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:{}}},Qc=(e,n)=>({components:n,props:{...ze},emits:["click-pop","click-close-icon","open","close","opend","closed","click-overlay","update:visible"],setup(a,{emit:o}){const l=t.reactive({zIndex:0,showSlot:!0,closed:a.closeable});a.visible&&(l.zIndex=Qa());const r=t.computed(()=>{const b=e,v=[b,`${b}--${a.position}`];return a.round&&v.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&v.push(`${b}--${a.position}--safebottom`),typeof a.popClass=="string"?v.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(f=>{v.push(f)}),v}),s=t.computed(()=>({zIndex:l.zIndex,transitionDuration:`${a.duration}s`,...a.style})),i=t.computed(()=>a.transition?a.transition:`fox-popup-slide-${a.position}`),c=()=>{o("update:visible",!0),a.zIndex?l.zIndex=a.zIndex:l.zIndex=Qa(),a.destroyOnClose&&(l.showSlot=!0),o("open")},m=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},p=b=>{o("click-pop",b)},u=b=>{b.stopPropagation(),o("click-close-icon",b),o("update:visible",!1)},h=b=>{o("click-overlay",b),a.closeOnClickOverlay&&o("update:visible",!1)},k=b=>{o("opend",b)},y=b=>{o("closed",b)};return t.watch(()=>a.visible,b=>{a.visible?c():m()}),t.watch(()=>a.closeable,b=>{l.closed=b}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:p,onClickCloseIcon:u,onClickOverlay:h,onOpened:k,onClosed:y}}});let Et=0;const Ga="fox-overflow-hidden",Za=()=>it?document.body:{classList:[]},Gc=e=>[()=>{if(e())try{!Et&&Za().classList.add(Ga),Et++}catch{}},()=>{if(e()&&Et)try{Et--,!Et&&Za().classList.remove(Ga)}catch{}}],Zc={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:Jc,create:_c}=X("overlay"),eu=_c({props:{...Zc},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=Gc(()=>e.lockScroll),l=t.computed(()=>({[Jc]:!0,[e.overlayClass]:!0})),r=t.computed(()=>({transitionDuration:`${e.duration}s`,zIndex:e.zIndex,...e.overlayStyle}));return t.watch(()=>e.visible,i=>{i?a():o()}),{classes:l,style:r,onClick:i=>{n("click",i),e.closeOnClickOverlay&&n("update:visible",!1)}}}});function tu(e,n,a,o,l,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:n[0]||(n[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 rt=ne(eu,[["render",tu]]),{componentName:nu,create:ou}=X("popup"),lu=ou(Qc(nu,{FoxOverLay:rt,Close:oe.Close}));function au(e,n,a,o,l,r){const s=t.resolveComponent("FoxOverLay"),i=t.resolveComponent("Close");return t.openBlock(),t.createBlock(t.Teleport,{to:e.teleport,disabled:e.teleportDisable},[e.overlay?(t.openBlock(),t.createBlock(s,t.mergeProps({key:0,visible:e.visible,"close-on-click-overlay":e.closeOnClickOverlay,"z-index":e.zIndex,"lock-scroll":e.lockScroll,duration:e.duration,"overlay-class":e.overlayClass,"overlay-style":e.overlayStyle,onClick:e.onClickOverlay},e.$attrs),null,16,["visible","close-on-click-overlay","z-index","lock-scroll","duration","overlay-class","overlay-style","onClick"])):t.createCommentVNode("",!0),t.createVNode(t.Transition,{name:e.transitionName,onAfterEnter:e.onOpened,onAfterLeave:e.onClosed},{default:t.withCtx(()=>[t.withDirectives(t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.popStyle),onClick:n[1]||(n[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:n[0]||(n[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)])],2)):t.createCommentVNode("",!0)],6),[[t.vShow,e.visible]])]),_:3},8,["name","onAfterEnter","onAfterLeave"])],8,["to","disabled"])}const de=ne(lu,[["render",au]]),Ja=10;function fs(e,n){return e>n&&e>Ja?"horizontal":n>e&&n>Ja?"vertical":""}function tl(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function nl(){const e={startX:0,startY:0,startTime:0,duration:0,moveX:0,moveY:0,deltaX:0,deltaY:0,offsetX:0,offsetY:0,direction:""},n=()=>e.direction==="vertical",a=()=>e.direction==="horizontal",o=()=>{e.deltaX=0,e.deltaY=0,e.offsetX=0,e.offsetY=0,e.direction="",e.startTime=0};return{move:s=>{if(s.touches){const m=s.touches[0];e.deltaX=m.clientX-e.startX,e.deltaY=m.clientY-e.startY,e.moveX=m.clientX,e.moveY=m.clientY}else{const c=s;e.deltaX=c.clientX-e.startX,e.deltaY=c.clientY-e.startY,e.moveX=c.clientX,e.moveY=c.clientY}e.offsetX=Math.abs(e.deltaX),e.offsetY=Math.abs(e.deltaY),e.duration=Date.now()-e.startTime,e.direction||(e.direction=fs(e.offsetX,e.offsetY))},start:s=>{if(o(),s.touches){const m=s.touches[0];e.startX=m.clientX,e.startY=m.clientY}else{const c=s;e.startX=c.clientX,e.startY=c.clientY}e.startTime=Date.now()},reset:o,isVertical:n,isHorizontal:a,state:e}}function _e(){const e=t.ref(0),n=t.ref(0),a=t.ref(0),o=t.ref(0),l=t.ref(0),r=t.ref(0),s=t.ref(0),i=t.ref(0),c=t.ref(0),m=t.ref(0),p=t.ref(""),u=()=>p.value==="vertical",h=()=>p.value==="horizontal",k=()=>{s.value=0,i.value=0,c.value=0,m.value=0,p.value="",a.value=0};return{move:v=>{if(v.touches){const g=v.touches[0];s.value=g.clientX-e.value,i.value=g.clientY-n.value,l.value=g.clientX,r.value=g.clientY}else{const d=v;s.value=d.clientX-e.value,i.value=d.clientY-n.value,l.value=d.clientX,r.value=d.clientY}c.value=Math.abs(s.value),m.value=Math.abs(i.value),o.value=Date.now()-a.value,p.value||(p.value=fs(c.value,m.value))},start:v=>{if(k(),v.touches){const g=v.touches[0];e.value=g.clientX,n.value=g.clientY}else{const d=v;e.value=d.clientX,n.value=d.clientY}a.value=Date.now()},reset:k,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:m,direction:p,isVertical:u,isHorizontal:h}}const ms={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:360}},To={...ze,...ms,modelValue:{type:[String,Number,Boolean,Object,Array],default:""},text:{type:[Array],default:[]},columnOptions:{type:[Object,Function]},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},title:{type:String},cancelText:{type:String},clearText:{type:String},confirmText:{type:String},isAutoBackFill:{type:[Boolean],default:!0}};let ps=36;function ru(){return ps}function su(e){ps=e}function Pe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function $o(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function iu(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function st(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function _a(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let cu=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function uu(){const e=t.getCurrentInstance();return new cu(e.proxy)}function er(e,n,a){const o=Pe(e,n),l=Pe(e,a);if(o!==l)return!1;const r=st(e,n),s=st(e,a);return r===s}function du(e,n,a,o){if(a.length==0)return[];Array.isArray(n)||(n=[n]);const l=[],r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=n[s];let m=a[s].findIndex(p=>{if(r==="text")return Pe(e,p)===i;if(r==="value"){let u=st(e,p);return u==null&&(u=Pe(e,p)),u===i}else if(r==="item")return er(e,p,i)});if(m==-1)break;l.push(m)}else{let s=a[0];for(let i=0;i<n.length;i++){const c=n[i];let m=s.findIndex(u=>{if(r==="text")return Pe(e,u)===c;if(r==="value"){let h=st(e,u);return h==null&&(h=Pe(e,u)),h===c}else if(r==="item")return er(e,u,c)});if(m==-1)break;l.push(m);const p=$o(e,s[m]);if(!Array.isArray(p))break;s=p}}return l}function tr(e,n,a,o){if(a.length==0)return null;const l={texts:[],values:[],items:[]},r=e.valueType??"value";if(o==="singleColumn"||o==="multipleColumn")for(let s=0;s<n.length&&s<a.length;s++){const i=a[s];let c=n[s];c<0&&c>=i.length&&(c=0);const m=i[c],p=Pe(e,m);if(l.texts.push(p),l.items.push(m),r==="text")l.values.push(p);else if(r==="value"){let u=st(e,m);u==null&&(u=p),l.values.push(u)}else l.values.push(m)}else{let s=a[0];for(let i=0;i<n.length;i++){let c=n[i];c<0&&c>=s.length&&(c=0);const m=s[c],p=Object.assign({},m);p.children=null;const u=Pe(e,m);if(l.texts.push(u),l.items.push(p),r==="text")l.values.push(u);else if(r==="value"){let h=st(e,m);h==null&&(h=u),l.values.push(h)}else l.values.push(p);if(!Array.isArray(m.children))break;s=m.children}}return l}function nr(e){return{text:e,value:e}}const fu=15,mu=300,pu=200,{create:hu}=X("picker-column");function gu(e){e.stopPropagation()}function yu(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&gu(e)}const vu=hu({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},visible:{type:Boolean,default:!1},...ms},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${fe(e.visibleItemCount)*+e.itemHeight}px`})),l=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=N=>N>=u.currIndex+8||N<=u.currIndex-8,i=t.computed(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${u.deg})`,top:`${r.value}px`})),c=N=>`transform: rotate3d(1, 0, 0, ${-u.rotation*N}deg) translate3d(0px, 0px, 104px)`,m=t.computed(()=>({transition:`transform ${u.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${u.scrollDistance+r.value}px, 0)`})),p=t.ref(null),u=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=N=>Pe(e,N),k=N=>st(e,N),y=_e(),b=()=>{u.transitionEndTrigger&&(u.transitionEndTrigger(),u.transitionEndTrigger=null)},v=(N,A=!1,V=!1)=>{if(u.currIndex=N,A){const T=()=>{u.moving=!1,n("update:modelValue",N),n("change",N)};V?u.transitionEndTrigger=T:T()}},f=(N,A,V)=>{let T=N+u.startDistance;if(A==="end"){const w=-(e.source.length-1)*e.itemHeight;T<w&&(T=w),T>0&&(T=0);let M=Math.abs(Math.round(-T/e.itemHeight));const P=-M*e.itemHeight,$=`${(M+1)*u.rotation}deg`,E=V?V>0:!1;v(M,!0,E),d(P,A,V,$)}else{let w=(-T/e.itemHeight+1)*u.rotation;const M=(e.source.length+1)*u.rotation,P=0;if(w=Math.min(Math.max(w,P),M),e.threeDimensional&&(w<P||w>M))return;d(T,null,void 0,`${w}deg`)}},d=(N=0,A,V=pu,T)=>{A==="end"?u.scrollTime=V:u.scrollTime=0,u.deg=T,u.scrollDistance=N},g=(N,A)=>(N=Math.abs(N/A)/.003*(N<0?-1:1),N),C=N=>{e.readonly||(u.startDistance=u.scrollDistance,y.start(N),u.transitionEndTrigger=null)},B=N=>{e.readonly||(u.moving=!0,y.move(N),y.isVertical()&&(u.moving=!0,yu(N,!0)),f(y.deltaY.value,"",0))},S=()=>{if(e.readonly)return;const N=y.deltaY.value,A=y.duration.value;if(A<mu&&Math.abs(N)>fu){const T=g(N,A);f(T,"end",e.swipeDuration)}else f(N,"end",0)};return t.watch(()=>e.modelValue,N=>{const A=u.currIndex-N;if(A!==0){u.currIndex=N,u.startDistance=u.scrollDistance;const V=A*e.itemHeight;f(V,"",0)}}),t.watch(()=>e.source,N=>{if(u.currIndex>=N.length){const T=(N.length-1-u.currIndex)*e.itemHeight;u.startDistance=u.scrollDistance,f(T,"end",0)}}),t.watch(()=>e.visible,N=>{N===!1&&b()}),t.onMounted(()=>{const N=-e.modelValue*e.itemHeight;f(N)}),{classes:a,styles:o,contentClasses:l,itemText:h,itemValue:k,...t.toRefs(u),roller:p,getItemText:Pe,onTouchStart:C,onTouchMove:B,onTouchEnd:S,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:m,stopMomentum:b}}}),bu={key:1,class:"fox-picker__item-tile"};function ku(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTransitionend:n[4]||(n[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",bu,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Su=ne(vu,[["render",ku]]),{create:Cu,componentName:wu,scope:Nu}=X("picker"),Bu=Cu({components:{Column:Su,Popup:de},props:{...To},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=re.useFoxI18n(Nu),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(ru());t.watch(()=>e.visible,w=>{w&&s.value<=0&&setTimeout(()=>{if(r.value){const M=Ve(r.value);s.value=M.height,su(s.value)}},50)});const i=t.computed(()=>({[wu]:!0})),c=uu(),m=t.ref("singleColumn");let p=t.ref([]);t.watch([()=>e.source,()=>e.params],async([w,M])=>{if(w){let P=await c.load("picker",w,M);if(P.length>0){let $=P[0];if(Array.isArray($)){if(typeof $[0]=="string"){let E=P,K=[];E.forEach(D=>{let W=D.map(H=>nr(H));K.push(W)}),p.value=K}else p.value=P;m.value="multipleColumn"}else if(typeof $=="string"){let E=P,K=[],D=E.map(W=>nr(W));K.push(D),p.value=K,m.value="singleColumn"}else{const E=$o(e,$);Array.isArray(E)?(m.value="cascade",p.value=[P]):(m.value="singleColumn",p.value=[P])}}else p.value=[]}},{immediate:!0});const u=t.ref([]),h=t.ref(e.modelValue),k=t.ref([]),y=t.ref([]);t.watch([()=>e.modelValue,()=>p.value],([w,M])=>{let P=du(e,w,M,m.value);if(!qe(P,y.value)){y.value=P;let $=tr(e,P,M,m.value);$&&(u.value=$.texts,n("update:text",u.value))}});const b=t.ref(e.visible);t.watch(()=>e.visible,w=>{b.value=w});const v=w=>{let M=_a(e,w);return Ae(M)?M.defaultIndex??0:0},f=w=>{if(e.readonly===!0)return!0;let M=_a(e,w);return Ae(M)?M.readonly??!1:!1},d=(w,M)=>{let P=y.value;P[w]=M;for(let E=0;E<w;E++)P[E]==null&&(P[E]=v(E));if(m.value==="cascade")for(let E=w+1;E<C.value.length;E++){let K=v(E);E<P.length?P[E]=K:P.push(K)}else for(let E=P.length;E<C.value.length;E++){let K=v(E);P.push(K)}y.value=P;let $=tr(e,P,p.value,m.value);$&&(u.value=$.texts,h.value=$.values,k.value=$.items)},g=w=>w<y.value.length?y.value[w]:v(w),C=t.computed(()=>{if(p.value.length==0)return[];if(m.value=="singleColumn"||m.value=="multipleColumn")return p.value;let w=[],M=0,P=p.value[0],$=0;for(;;){let E=P.map(W=>{let H=Object.assign({},W);return iu(e,H,null),H});w.push(E),M>=y.value.length?$=0:$=y.value[M],($<0||$>=P.length)&&($=0);let K=P[$];const D=$o(e,K);if(!Array.isArray(D))break;P=D,M++}return w}),B=t.computed(()=>fe(+e.visibleItemCount-1)/2*s.value),S=(w=!1)=>{if(e.readonly===!0){w&&n("update:visible",!1);return}let M=p.value.length-1;for(;M>=0&&!(y.value[M]===null||y.value[M]===void 0);M--);if(M>=0&&d(M,0),m.value==="singleColumn"){let P=h.value.length>0?h.value[0]:"",$=k.value.length>0?k.value[0]:null;n("update:modelValue",P),n("update:text",u.value),n("change",P,$),w&&(n("confirm",P),n("update:visible",!1))}else n("update:modelValue",h.value),n("update:text",u.value),n("change",h.value,k.value),w&&(n("confirm",h.value),n("update:visible",!1))};return{...l,pickerLineRef:r,classes:i,columns:C,dataType:m,show:b,itemHeight:s,top:B,isReadonly:f,getIndex:g,change:(w,M)=>{if(d(w,M),e.isAutoBackFill){const P=!b.value;S(P)}},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{S(!0)},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)}}}}),Au={class:"fox-picker__bar"},Vu={class:"fox-picker__title"},Tu={class:"fox-picker__bar__action"},$u={class:"fox-picker__column"};function Eu(e,n,a,o,l,r){const s=t.resolveComponent("Column"),i=t.resolveComponent("Popup");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createVNode(i,{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,"teleport-disable":e.teleportDisable},{default:t.withCtx(()=>[t.createElementVNode("view",Au,[t.createElementVNode("view",Vu,t.toDisplayString(e.title),1),t.createElementVNode("view",Tu,[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",$u,[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(s,{visible:e.show,source:c,readonly:e.isReadonly(m),"column-index":m,modelValue:e.getIndex(m),"onUpdate:modelValue":p=>e.change(m,p),"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,["visible","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 bt=ne(Bu,[["render",Eu]]);function xu(e,n,a,o,l,r,s=!0){return{props:{...me,...ge,...To,type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},separator:{type:[String],required:!1,defualt:" "}},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,c){const m=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),k=h(i,["placeholder"]),y=t.ref(!1),b=xe(i,"modelValue",null,u),v=t.ref([]),f=t.computed(()=>Array.isArray(v.value)?v.value.join(i.separator):v.value),d="fox-input-item",g=t.computed(()=>({[d]:!0,"is-disabled":m.value,"is-readonly":p.value})),C=Be(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const L={};return C.value&&(L["text-align"]=C.value),L}),S=t.ref(!1),N=()=>{S.value=!0},A=L=>{S.value=L},V=L=>{b.value=L,u("update:modelValue",L)},T=(L,x)=>{u("change",L,x)},w=L=>{let F=L.target.value;y.value=!0,u("focus",F,L)},M=L=>{setTimeout(()=>{y.value=!1},0);let F=L.target.value;i.maxLength&&F.length>Number(i.maxLength)&&(F=F.slice(0,Number(i.maxLength))),u("blur",F,L)},P=L=>{v.value=L,Array.isArray(L)&&L.length===0?u("update:text",L[0]):u("update:text",L)},$=t.computed(()=>({[`${d}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),E=t.computed(()=>ye(i.unit)>0),K=t.computed(()=>ye(i.unit)>0&&!y.value),D=t.computed(()=>({hidden:!K.value})),W=L=>{b.value="",u("update:modelValue","",L),u("change","",L),u("clear","")},H=t.computed(()=>i.clearable&&!m.value&&!p.value),Z=t.computed(()=>ye(b.value)>0&&y.value),_=L=>{Z.value?W(L):N()},j=t.computed(()=>Z.value&&H.value?o:l),I=t.computed(()=>({action:!0}));return()=>{const L={class:g.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:w,onBlur:M};s&&(L.disabled=!0);const x=[],F=t.h("input",L);x.push(F);const q=[],R={class:["action-icon"]},Y=t.h(j.value,R),O={class:I.value,onClick:_},U=t.h("view",O,{default:()=>[Y]});if(q.push(U),E.value){const ce=t.h("view",{class:D.value},[i.unit]);q.push(ce)}const G={class:$.value},Q=t.h("view",G,{default:()=>q});x.push(Q);const J={default:()=>x};J.label=c.slots.default,J.prepend=c.slots.prepend,J.append=c.slots.append,J.fixedPreTip=c.slots.fixedPreTip,J.fixedTip=c.slots.fixedTip;const z=ve(i,To);z.disabled=!1,z.readonly=m.value||p.value,z.visible=S.value,z["onUpdate:visible"]=A,z.modelValue=b.value,z["onUpdate:modelValue"]=V,z.text=v.value,z["onUpdate:text"]=P,z.onChange=T;const ee=t.h(r,z);J.hide=()=>[ee];const te=ve(i,ge,me);return t.h(a,te,J)}}}}const{componentName:Du,create:Iu,scope:qu}=X("picker-item"),ol=Iu(xu(Du,qu,Se,oe.CircleClose,oe.ArrowRight,bt,!1)),nn=(e,n,a)=>e.map(o=>{const{value:l="value",text:r="text",children:s="children"}=a??{},{[l]:i,[r]:c,[s]:m,...p}=o,u={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:m,_parent:n};return u.children&&u.children.length&&(u.children=nn(u.children,u,a)),u}),hs=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&hs(o.children,n)},Mu={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Pu=(e,n)=>{const a={...Mu,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(m=>{m={...m};const{[l]:p,[r]:u}=m,h=c[u]=c[u]||[];!i.length&&u===o&&(i=h),h.push(m),m.children=c[p]||(c[p]=[])}),s&&Object.keys(c).forEach(m=>{c[m].length>1&&c[m].sort((p,u)=>p[s]-u[s])}),c=null,i},Lu={modelValue:{type:[String,Number],default:0},data:{type:[Array]},textKey:{type:String,default:"text"},valueKey:{type:String,default:"value"},visibleKey:{type:String,default:"visibile"},disabledKey:{type:String,default:"disabled"},doitKey:{type:String,default:"doit"},numKey:{type:String,default:"num"},direction:{type:String,default:"horizontal"},size:{type:String,default:"normal"},shape:{type:String},align:{type:String},markShape:{type:String,default:"line"},scroll:{type:Boolean,default:!1},ellipsis:{type:Boolean,default:!0},animatedTime:{type:[Number,String],default:300},gutter:{type:[Number,String],default:0},itemOptions:{type:Object},showQuickNavigation:{type:Boolean,default:!1},beforeChange:{type:Function}},or=(e,n)=>n[e.textKey],xt=(e,n)=>n[e.valueKey],zu=(e,n)=>n[e.visibleKey],lr=(e,n)=>n[e.disabledKey],Fu=(e,n)=>{const a=n[e.doitKey];return pe(a)},Ru=(e,n)=>{const a=n[e.numKey];return a==null?null:fe(n[a])},ar=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function Ou(e,n,a,o=!1){return{props:{...Lu},emits:["update:modelValue","change","click"],setup(l,{slots:r,emit:s}){const i=t.computed(()=>{const j={};return j[`${e}`]=!0,j}),c=t.computed(()=>{const j={};return j[`${e}__titles`]=!0,j[`${l.direction}`]=!0,l.align==="left"&&(j.left=!0),l.scroll===!0&&(j.scrollable=!0),l.shape&&(j[`${l.shape}`]=!0),j}),m=t.computed(()=>({})),p=t.computed(()=>{if(!l.gutter)return 0;const j=ie(l.gutter);return j<=0?0:j}),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,j=>{u.value!==j&&(u.value=j,D(!1))});const h=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),k=t.computed(()=>{const j={};return b.value||(j.display="none"),j}),y=t.ref(),b=t.ref(!1),v=()=>{const j=!b.value;f(j)},f=j=>{const I=j;I?(b.value=I,setTimeout(()=>{h.value["fox-tabs-bar__popup--show"]=!0,h.value["fox-tabs-bar__popup--hide"]=!1},0)):(h.value["fox-tabs-bar__popup--show"]=!1,h.value["fox-tabs-bar__popup--hide"]=!0,y.value?y.value.addEventListener("transitionend",()=>{b.value=!1},{once:!0}):setTimeout(()=>{b.value=!1},0))},d=t.ref(),g=t.ref([]),C=(j,I)=>{g.value[I]=j},B=j=>I=>{C(I,j)},S=(j,I)=>{const L=d.value,x=g.value;if(!L||!x||!x[j])return;const F=x[j];let q=0;l.direction==="vertical"?q=F.offsetTop-(L.offsetHeight-F.offsetHeight)/2:q=F.offsetLeft-(L.offsetWidth-F.offsetWidth)/2,N(L,q,I?0:.3,l.direction)},N=(j,I,L,x)=>{let F=0;const q=x==="horizontal"?j.scrollLeft:j.scrollTop,R=L===0?1:Math.round(L*1e3/16);function Y(){x==="horizontal"?j.scrollLeft+=(I-q)/R:j.scrollTop+=(I-q)/R,++F<R&&Re(Y)}Y()},A=(j,I)=>{const L=xt(l,j),x={};return x[`${e}__titles-item`]=!0,x.disabled=lr(l,j),x.active=L===u.value,l.shape&&(x[`${l.shape}`]=!0),l.ellipsis&&(x.ellipsis=!0),I&&(I.class&&(x[`${I.class}`]=!0),I.disabled===!0&&(x.disabled=I.disabled)),x},V=(j,I)=>{const L={};if(p.value>0){const x=Math.abs(p.value/2);l.direction==="vertical"?(L["margin-top"]=`${x}px`,L["margin-bottom"]=`${x}px`):(L["margin-left"]=`${x}px`,L["margin-right"]=`${x}px`)}return I&&I.style&&Object.assign(L,I.style),L},T=(j,I)=>`${xt(l,j)??I}`,w=(j,I)=>{const L=xt(l,j),x={};x[`${e}__popup-item`]=!0,x.disabled=lr(l,j),x.active=L===u.value,l.shape&&(x[`${l.shape}`]=!0);const F=ar(l,j,I);return F&&F.disabled===!0&&(x.disabled=F.disabled),x},M=t.computed(()=>(l.data??[]).filter(I=>zu(l,I)!==!1)),P=(j,I)=>{const L=xt(l,j);if(s("click",j,I),u.value==L)return;const x=()=>{u.value=L,l.scroll&&S(I,!1),s("update:modelValue",L),s("change",j,I)};if(typeof l.beforeChange=="function"){const F=l.beforeChange(j,I);gt(F)?F.then(q=>{q!==!1&&x()}).catch(()=>{x()}):F!==!1&&x()}else x()},$=(j,I)=>function(){P(j,I)},E=(j,I)=>{P(j,I),f(!1)},K=(j,I)=>function(){E(j,I)},D=j=>{if(!Array.isArray(l.data)||!l.scroll)return;const I=l.data.findIndex(L=>xt(l,L)===u.value);I!==-1&&S(I,j)};t.watch(()=>l.data,()=>{setTimeout(D,0)}),t.onMounted(()=>{D(!0)});const W=(j,I)=>{if(r.item)return r.item({item:j,index:I});const L=ar(l,j,I),x=[];if(r.text){const Y=r.text({item:j,index:I});x.push(Y)}else{const Y=[];if(L?.doit===!0||Fu(l,j)){const Q={class:[`${e}__titles-item-tip`,"doit"]},J=t.h("view",Q);Y.push(J)}const O=L?.num??Ru(l,j);if(O){let Q="";const J=fe(O);J>=100?Q="99+":Q=`${J}`;const z={class:[`${e}__titles-item-tip`,"num"]},ee=t.h("view",z,[Q]);Y.push(ee)}const U={class:`${e}__titles-item-text`};Y.push(or(l,j));const G=t.h("view",U,Y);x.push(G)}const F={class:`${e}__titles-item-line`},q=t.h("view",F);x.push(q);const R={ref:B(I),class:A(j,L),style:V(j,L),key:T(j,I),onClick:$(j,I)};return t.h("view",R,x)},H=()=>{const j=r.default?r.default():[];if(j.length===0)for(let L=0;L<M.value.length;L++){const x=M.value[L],F=W(x,L);j.push(F)}const I={ref:d,class:c.value,style:m.value};return t.h("view",I,j)},Z=()=>{let j=null;r.navigation?j=r.navigation():j=t.h(a);const I={class:`${e}__navigation`,onClick:v};return t.h("view",I,[j])},_=()=>{const j=[];for(let L=0;L<M.value.length;L++){const x=M.value[L];let F=null;r.popupItem?F=r.popupItem({item:x,index:L}):F=or(l,x);const q={class:w(x,L),key:T(x,L),onClick:K(x,L)},R=t.h("view",q,[F]);j.push(R)}const I={class:h.value,style:k.value};return t.h("view",I,j)};return()=>{const j=[],I=H();if(j.push(I),l.showQuickNavigation){const x=Z();j.push(x);const F=_();j.push(F)}const L={class:i.value};return t.h("view",L,j)}}}}const{create:Ku,componentName:Uu,scope:Hu}=X("tabs-bar"),Fn=Ku(Ou(Uu,Hu,oe.MoreH,!1)),gs=Symbol("TabsStatesKey"),ju={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Wu(e,n,a=!1){return{props:{...ju},emits:["update:modelValue","change"],setup(o,{emit:l,slots:r}){const s=t.shallowRef([]),i={current:t.ref(o.modelValue??""),direction:t.ref(o.direction),tabWidth:t.ref(-1),tabHeight:t.ref(-1),add:b=>{const v={name:b};i.current.value===b&&(v.loaded=!0),s.value.push(v),t.triggerRef(s)},remove:b=>{const v=s.value.findIndex(f=>f.name===b);v!==-1&&s.value.splice(v,1)},isLoaded:b=>{if(!o.lazy)return!0;const v=s.value.findIndex(f=>f.name===b);return v!==-1?i.current.value?s.value[v].loaded??!1:v===0:!1}};t.provide(gs,i);const c=b=>{const v=s.value.findIndex(f=>f.name===b);v!==-1&&(s.value[v].loaded=!0,t.triggerRef(s))};t.watch([()=>o.modelValue,()=>o.direction],([b,v])=>{i.current.value!==b&&(i.current.value=b??"",c(b??"")),i.direction.value!==v&&(i.direction.value=v)});const m=t.ref(null),p=t.ref(null),u=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0}));let h=!0;const k=t.computed(()=>{const b={},v=s.value.length;if(v<=0)return b;const f=s.value.findIndex(d=>d.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(b.height=`${v*i.tabHeight.value}px`,f!==-1&&(b.transform=`translate(0, -${f*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(b.width=`${v*i.tabWidth.value}px`,f!==-1&&(b.transform=`translate(-${f*i.tabWidth.value}px, 0)`)),h&&(h=!1,b.transition="transform 0s ease"),b});let y=null;return t.onMounted(()=>{if(!m.value)return;const b=()=>{const v=En(m.value);i.tabWidth.value=v.width,i.tabHeight.value=v.height};window.ResizeObserver&&(y=new window.ResizeObserver(b),y.observe(m.value)),b()}),t.onBeforeUnmount(()=>{y&&(y.disconnect(),y=null)}),()=>{const b={class:`${e}__panes`,style:k.value,ref:p},v=t.h("view",b,[r?.default?.()]),f={class:u.value,ref:m};return t.h("view",f,[v])}}}}const{create:Yu,componentName:Xu,scope:Qu}=X("tabs-container"),Rn=Yu(Wu(Xu,Qu,!1)),Gu={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Zu(e,n,a){return{props:{...Gu},setup(o,{emit:l,slots:r}){const s=t.inject(gs);t.onMounted(()=>{s.add(o.paneKey)}),t.onBeforeUnmount(()=>{s.remove(o.paneKey)});const i=t.computed(()=>{const m={};return s.direction.value==="vertical"&&s.tabHeight.value>0?m.height=`${s.tabHeight.value}px`:s.tabWidth.value>0&&(m.width=`${s.tabWidth.value}px`),m}),c=t.computed(()=>o.loaded!=null?pe(o.loaded):s.isLoaded(o.paneKey));return()=>{let m=[];if(c.value)m=r?.default?.()??[];else if(r.empty)m=r.empty();else{const u={class:`${e}__empty-icon`},h=o.emptyIcon??a,k=t.h(h,u),y={class:`${e}__empty-text`},b=o.emptyText??"Loading",v=t.h("view",y,[b]),f={class:`${e}__empty`},d=t.h("view",f,[k,v]);m.push(d)}const p={class:`${e}`,style:i.value};return t.h("view",p,m)}}}}const{create:Ju,componentName:_u,scope:ed}=X("tabs-pane"),On=Ju(Zu(_u,ed,oe.Loading));class rr{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=nn(n,null,this.config)}updateChildren(n,a){a?a.children=nn(n,a,this.config):this.nodes=nn(n,null,this.config)}getNodeByValue(n){let a;return hs(this.nodes,o=>{if(o.value===n)return a=o,!0}),a}getPathNodesByValue(n){if(!n.length)return[];const a=[];let o=this.nodes;for(;o&&o.length;){const l=o.find(r=>r.value===n[r.level]);if(!l)break;a.push(l),o=l.children}return a}isLeaf(n,a){const{leaf:o,children:l}=n,r=Array.isArray(l)&&!!l.length;return o||!r&&!a}hasChildren(n,a){if(this.isLeaf(n,a))return!1;const{children:l}=n;return Array.isArray(l)&&!!l.length}}const{create:td,scope:nd}=X("cascader-pane"),od=td({components:{Loading:oe.Loading,Checklist:oe.Checklist,TabsBar:Fn,TabsContainer:Rn,TabsPane:On},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{t:a}=re.useFoxI18n(nd),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),s=t.ref(e.modelValue),i=t.ref(new rr([],{})),c=t.ref([]),m=t.computed(()=>o.value.lazy&&!!o.value.lazyLoad),p=t.computed(()=>r.value==!0||c.value.length==0?[{text:"Loading",value:0}]:c.value.map((d,g)=>({text:d.selectedNode?d.selectedNode.text:a("select"),value:g}))),u=new Map;let h;const k=async()=>{u.clear(),c.value=[],l.value=0,r.value=!1,h=null;let{options:d}=e;o.value.convertConfig&&(d=Pu(d,o.value.convertConfig)),i.value=new rr(d,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),m.value&&!i.value.nodes.length&&await b({root:!0,loading:!0,text:"",value:""}),c.value=[{nodes:i.value.nodes,selectedNode:null}],y()},y=async()=>{const d=s.value;if(d===void 0||!i.value.nodes.length)return;if(d.length===0){l.value=0,c.value=[{nodes:i.value.nodes,selectedNode:null}];return}let g=d;if(m.value&&Array.isArray(d)&&d.length){g=[];let C=i.value.nodes.find(B=>B.value===d[0]);if(C){g=[C.value],r.value=!0;const B=await d.slice(1).reduce(async(S,N)=>{const A=await S;await b(A);const V=A?.children?.find(T=>T.value===N);return V&&g.push(N),Promise.resolve(V)},Promise.resolve(C));await b(B),r.value=!1}}g.length&&d===e.modelValue&&i.value.getPathNodesByValue(g).map((B,S)=>{l.value=S,f.handleNode(B,!0)})},b=async d=>{if(!d)return;if(!o.value.lazyLoad){d.leaf=!0;return}if(i.value.isLeaf(d,m.value)||i.value.hasChildren(d,m.value))return;d.loading=!0;const g=d.root?null:d;let C=u.get(d);C||(C=new Promise(S=>{o.value.lazyLoad?.(d,S)}),u.set(d,C));const B=await C;Array.isArray(B)&&B.length>0?i.value.updateChildren(B,g):d.leaf=!0,d.loading=!1,u.delete(d)},v=d=>{const g=d.map(C=>C.value);s.value=g,n("change",g,d),n("update:modelValue",g,d)},f={async handleNode(d,g){const{disabled:C,loading:B}=d;if(!(!g&&C||!c.value[l.value])){if(i.value.isLeaf(d,m.value)){if(d.leaf=!0,c.value[l.value].selectedNode=d,c.value=c.value.slice(0,d.level+1),!g){const S=c.value.map(N=>N.selectedNode);v(S),n("pathChange",S)}return}if(i.value.hasChildren(d,m.value)){const S=d.level+1;if(c.value[l.value].selectedNode=d,c.value=c.value.slice(0,S),c.value.push({nodes:d.children||[],selectedNode:null}),l.value=S,!g){const N=c.value.map(A=>A.selectedNode);n("pathChange",N)}return}h=d,!B&&(await b(d),h===d&&(c.value[l.value].selectedNode=d,f.handleNode(d,g)))}},handleTabChange(d,g){h=null},formatTabTitle(d){return d.selectedNode?d.selectedNode.text:a("select")},isSelected(d,g){return d.selectedNode&&d.selectedNode.value===g.value}};return t.watch([o,()=>e.options],()=>{k()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,d=>{d!==s.value&&(s.value=d,y())}),t.watch(()=>e.visible,d=>{d&&Array.isArray(s.value)&&s.value.length>0&&y()}),{panes:c,panesTitles:p,initLoading:r,tabsCursor:l,...f}}}),ld={class:"fox-cascader"},ad={role:"menu",class:"fox-cascader__pane"},rd=["aria-checked","aria-disabled","onClick"],sd={class:"fox-cascader__item__title"},id=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function cd(e,n,a,o,l,r){const s=t.resolveComponent("TabsBar"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Checklist"),m=t.resolveComponent("TabsPane"),p=t.resolveComponent("TabsContainer");return t.openBlock(),t.createElementBlock("view",ld,[t.createVNode(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=u=>e.tabsCursor=u),data:e.panesTitles,onChange:e.handleTabChange,scroll:!0,align:"left"},null,8,["modelValue","data","onChange"]),t.createVNode(p,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[1]||(n[1]=u=>e.tabsCursor=u)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(u,h)=>(t.openBlock(),t.createBlock(m,{"pane-key":h,key:h},{default:t.withCtx(()=>[t.createElementVNode("view",ad,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(u.nodes,k=>(t.openBlock(),t.createElementBlock("view",{key:k.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(u,k),disabled:k.disabled}]),"aria-checked":e.isSelected(u,k),"aria-disabled":k.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(k,!1)},[t.createElementVNode("view",sd,t.toDisplayString(k.text),1),k.loading?(t.openBlock(),t.createBlock(i,{key:0,class:"fox-cascader__item__icon-loading",name:"loading"})):(t.openBlock(),t.createBlock(c,{key:1,class:"fox-cascader__item__icon-check",name:"checklist"}))],10,rd))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(m,{key:1,"pane-key":0},{default:t.withCtx(()=>[id]),_:1}))]),_:1},8,["modelValue"])])}const ud=ne(od,[["render",cd]]),{create:dd}=X("cascader"),fd=dd({components:{FoxCascaderPane:ud,FoxPopup:de},props:{...ze,modelValue:Array,visible:Boolean,title:String,options:{type:Array,default:()=>[]},lazy:Boolean,lazyLoad:Function,valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},poppable:{type:Boolean,default:!0},convertConfig:Object},emits:["update:modelValue","change","pathChange","update:visible"],setup(e,{emit:n}){const a=t.ref(e.modelValue),o=t.computed({get(){return e.visible},set(s){n("update:visible",s)}}),l=(s,i)=>{a.value=s,o.value=!1,n("change",s,i),n("update:modelValue",s)},r=s=>{n("pathChange",s)};return t.watch(()=>e.modelValue,s=>{s!==a.value&&(a.value=s)}),{onChange:l,onPathChange:r,innerValue:a,innerVisible:o}}}),md=["innerHTML"];function pd(e,n,a,o,l,r){const s=t.resolveComponent("FoxCascaderPane"),i=t.resolveComponent("FoxPopup");return e.poppable?(t.openBlock(),t.createBlock(i,{key:0,visible:e.innerVisible,"onUpdate:visible":n[0]||(n[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,md)):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 Kn=ne(fd,[["render",pd]]);function Ot(e,n){const a=e.textKey??"text";return n[a]??""}function Kt(e,n){const a=e.valueKey??"value";return n[a]}function ys(e,n){const a=e.childrenKey??"children";return n[a]}function en(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=Ot(e,l),s=Kt(e,l);a.texts.push(r),a.values.push(s??"")}return a}function vs(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Ot(e,n[s])===r){const c=Kt(e,n[s])??"",m={[e.textKey]:r,[e.valueKey]:c};l.push(m);const p=ys(e,n[s]);Array.isArray(p)&&vs(e,p,a,o+1,l);return}}function bs(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Kt(e,n[s])===r){const c=Ot(e,n[s])??"",m={[e.textKey]:c,[e.valueKey]:r};l.push(m);const p=ys(e,n[s]);Array.isArray(p)&&bs(e,p,a,o+1,l);return}}function io(e,n,a){if(n===a)return!0;if(n.length!==a.length)return!1;for(let o=0;o<n.length;o++){const l=Ot(e,n[o]),r=Ot(e,a[o]);if(l!==r)return!1;const s=Kt(e,n[o]),i=Kt(e,a[o]);if(s!==i)return!1}return!0}let hd=class{proxy;constructor(n){this.proxy=n}async load(n,a){const o="cascader";if(Array.isArray(n))return n;if(typeof n=="function")return await n(a);const l=Je(this.proxy,o);return l===null?(console.error(`${o} component not found api function`),[]):(Ae(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await l(n,a))}};function gd(){const e=t.getCurrentInstance();return new hd(e.proxy)}const sr={modelValue:{type:[Array,String]},pathNodes:{type:[Array]},title:{type:String,required:!1},placeholder:{type:String,required:!1,default:""},source:{type:[Array,Function,String],default:[]},params:{type:Object},valueType:{type:String,required:!1,default:"value"},lazy:{type:Boolean,required:!1},lazyLoad:{type:Function,required:!1},valueKey:{type:String,default:"value"},textKey:{type:String,default:"text"},childrenKey:{type:String,default:"children"},convertConfig:{type:Object}};function yd(e,n,a,o,l,r,s=!1){return{props:{...me,...ge,...sr},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(i,c){const m=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),k=h(i,["placeholder"]),y=t.ref(!1),b=gd(),v=t.ref([]);t.watch([()=>i.source,()=>i.params],async([F,q])=>{F&&(v.value=await b.load(F,q))},{immediate:!0});const f=t.ref([]),d=t.computed(()=>Array.isArray(f.value)?f.value.join(" "):f.value),g=t.ref([]),C=t.ref([]);t.watch([()=>i.modelValue],async([F])=>{if(u("setValue",F),i.lazy===!0){C.value.length==0&&(f.value=Array.isArray(F)?F:[],g.value=Array.isArray(F)?F:[]);return}if(i.valueType==="item"){let q=F;if(!io(i,q,C.value)){C.value=q;let R=en(i,q);f.value=R.texts,g.value=R.values}}else if(i.valueType==="text"){let q=F,R=[];if(vs(i,v.value,q,0,R),!io(i,R,C.value)){C.value=R;let Y=en(i,R);q.value=Y.texts,g.value=Y.values}}else{let q=[];if(bs(i,v.value,F,0,q),!io(i,q,C.value)){C.value=q;let R=en(i,q);f.value=R.texts,g.value=R.values}}},{immediate:!0});const B="fox-input-item",S=t.computed(()=>({[B]:!0,"is-disabled":m.value,"is-readonly":p.value})),N=Be(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const F={};return N.value&&(F["text-align"]=N.value),F}),V=t.ref(!1),T=()=>{m.value===!0||p.value===!0||(V.value=!0)},w=F=>{V.value=F},M=(F,q)=>{let R=q.map(O=>{if(O==null)return O;let U={...O};return Reflect.deleteProperty(U,"text"),U[i.textKey]=O.text??"",Reflect.deleteProperty(U,"value"),U[i.valueKey]=O.value??"",U});C.value=R;let Y=en(i,R);f.value=Y.texts,g.value=Y.values,i.valueType==="text"?(u("change",f.value,R),u("update:modelValue",f.value)):i.valueType==="item"?(u("change",R,R),u("update:modelValue",R)):(u("change",g.value,R),u("update:modelValue",g.value)),u("update:pathNodes",R)},P=F=>{let q=F.map(R=>{if(R==null)return R;let Y={...R};return Reflect.deleteProperty(Y,"text"),Y[i.textKey]=R.text??"",Reflect.deleteProperty(Y,"value"),Y[i.valueKey]=R.value??"",Y});u("pathChange",q)},$=F=>{y.value=!0,u("focus",g.value,F)},E=F=>{setTimeout(()=>{y.value=!1},0),u("blur",g.value,F)},K=t.computed(()=>({[`${B}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),D=t.computed(()=>ye(i.unit)>0),W=t.computed(()=>ye(i.unit)>0&&!y.value),H=t.computed(()=>({hidden:!W.value})),Z=F=>{C.value=[],f.value=[],g.value=[],u("update:modelValue",[]),u("change",[],F),u("clear",[]),u("update:pathNodes",[])},_=t.computed(()=>i.clearable&&!m.value&&!p.value),j=t.computed(()=>{let F=g.value&&g.value.length>0;return i.clearable&&F&&y.value}),I=F=>{j.value?Z(F):T()},L=t.computed(()=>j.value&&_.value?o:l),x=t.computed(()=>({action:!0}));return()=>{const F={class:S.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:d.value,onClick:T,onFocus:$,onBlur:E};s&&(F.disabled=!0);const q=[],R=t.h("input",F);q.push(R);const Y=[],O={class:["action-icon"]},U=t.h(L.value,O),G={class:x.value,onClick:I},Q=t.h("view",G,{default:()=>[U]});if(Y.push(Q),D.value){const De=t.h("view",{class:H.value},[i.unit]);Y.push(De)}const J={class:K.value},z=t.h("view",J,{default:()=>Y});q.push(z);const ee={default:()=>q};ee.label=c.slots.default,ee.prepend=c.slots.prepend,ee.append=c.slots.append,ee.fixedPreTip=c.slots.fixedPreTip,ee.fixedTip=c.slots.fixedTip;let te={};te.visible=V.value,te["onUpdate:visible"]=w,te.modelValue=g.value,te.onChange=M,te.onPathChange=P,te.options=v.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 ae=t.h(r,te);ee.hide=()=>[ae];const ce=Nt(i,sr);return t.h(a,{...ce,prop:`${i.prop}_item`},ee)}}}}const{componentName:vd,create:bd,scope:kd}=X("cascader-item"),ll=bd(yd(vd,kd,Se,oe.CircleClose,oe.ArrowRight,Kn,!1));var je=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function We(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ks={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",m="day",p="week",u="month",h="quarter",k="year",y="date",b="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,f=/\[([^\]]+)]|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,d={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("_")},g=function(P,$,E){var K=String(P);return!K||K.length>=$?P:""+Array($+1-K.length).join(E)+P},C={s:g,z:function(P){var $=-P.utcOffset(),E=Math.abs($),K=Math.floor(E/60),D=E%60;return($<=0?"+":"-")+g(K,2,"0")+":"+g(D,2,"0")},m:function P($,E){if($.date()<E.date())return-P(E,$);var K=12*(E.year()-$.year())+(E.month()-$.month()),D=$.clone().add(K,u),W=E-D<0,H=$.clone().add(K+(W?-1:1),u);return+(-(K+(E-D)/(W?D-H:H-D))||0)},a:function(P){return P<0?Math.ceil(P)||0:Math.floor(P)},p:function(P){return{M:u,y:k,w:p,d:m,D:y,h:c,m:i,s,ms:r,Q:h}[P]||String(P||"").toLowerCase().replace(/s$/,"")},u:function(P){return P===void 0}},B="en",S={};S[B]=d;var N=function(P){return P instanceof w},A=function P($,E,K){var D;if(!$)return B;if(typeof $=="string"){var W=$.toLowerCase();S[W]&&(D=W),E&&(S[W]=E,D=W);var H=$.split("-");if(!D&&H.length>1)return P(H[0])}else{var Z=$.name;S[Z]=$,D=Z}return!K&&D&&(B=D),D||!K&&B},V=function(P,$){if(N(P))return P.clone();var E=typeof $=="object"?$:{};return E.date=P,E.args=arguments,new w(E)},T=C;T.l=A,T.i=N,T.w=function(P,$){return V(P,{locale:$.$L,utc:$.$u,x:$.$x,$offset:$.$offset})};var w=function(){function P(E){this.$L=A(E.locale,null,!0),this.parse(E)}var $=P.prototype;return $.parse=function(E){this.$d=function(K){var D=K.date,W=K.utc;if(D===null)return new Date(NaN);if(T.u(D))return new Date;if(D instanceof Date)return new Date(D);if(typeof D=="string"&&!/Z$/i.test(D)){var H=D.match(v);if(H){var Z=H[2]-1||0,_=(H[7]||"0").substring(0,3);return W?new Date(Date.UTC(H[1],Z,H[3]||1,H[4]||0,H[5]||0,H[6]||0,_)):new Date(H[1],Z,H[3]||1,H[4]||0,H[5]||0,H[6]||0,_)}}return new Date(D)}(E),this.$x=E.x||{},this.init()},$.init=function(){var E=this.$d;this.$y=E.getFullYear(),this.$M=E.getMonth(),this.$D=E.getDate(),this.$W=E.getDay(),this.$H=E.getHours(),this.$m=E.getMinutes(),this.$s=E.getSeconds(),this.$ms=E.getMilliseconds()},$.$utils=function(){return T},$.isValid=function(){return this.$d.toString()!==b},$.isSame=function(E,K){var D=V(E);return this.startOf(K)<=D&&D<=this.endOf(K)},$.isAfter=function(E,K){return V(E)<this.startOf(K)},$.isBefore=function(E,K){return this.endOf(K)<V(E)},$.$g=function(E,K,D){return T.u(E)?this[K]:this.set(D,E)},$.unix=function(){return Math.floor(this.valueOf()/1e3)},$.valueOf=function(){return this.$d.getTime()},$.startOf=function(E,K){var D=this,W=!!T.u(K)||K,H=T.p(E),Z=function(R,Y){var O=T.w(D.$u?Date.UTC(D.$y,Y,R):new Date(D.$y,Y,R),D);return W?O:O.endOf(m)},_=function(R,Y){return T.w(D.toDate()[R].apply(D.toDate("s"),(W?[0,0,0,0]:[23,59,59,999]).slice(Y)),D)},j=this.$W,I=this.$M,L=this.$D,x="set"+(this.$u?"UTC":"");switch(H){case k:return W?Z(1,0):Z(31,11);case u:return W?Z(1,I):Z(0,I+1);case p:var F=this.$locale().weekStart||0,q=(j<F?j+7:j)-F;return Z(W?L-q:L+(6-q),I);case m:case y:return _(x+"Hours",0);case c:return _(x+"Minutes",1);case i:return _(x+"Seconds",2);case s:return _(x+"Milliseconds",3);default:return this.clone()}},$.endOf=function(E){return this.startOf(E,!1)},$.$set=function(E,K){var D,W=T.p(E),H="set"+(this.$u?"UTC":""),Z=(D={},D[m]=H+"Date",D[y]=H+"Date",D[u]=H+"Month",D[k]=H+"FullYear",D[c]=H+"Hours",D[i]=H+"Minutes",D[s]=H+"Seconds",D[r]=H+"Milliseconds",D)[W],_=W===m?this.$D+(K-this.$W):K;if(W===u||W===k){var j=this.clone().set(y,1);j.$d[Z](_),j.init(),this.$d=j.set(y,Math.min(this.$D,j.daysInMonth())).$d}else Z&&this.$d[Z](_);return this.init(),this},$.set=function(E,K){return this.clone().$set(E,K)},$.get=function(E){return this[T.p(E)]()},$.add=function(E,K){var D,W=this;E=Number(E);var H=T.p(K),Z=function(I){var L=V(W);return T.w(L.date(L.date()+Math.round(I*E)),W)};if(H===u)return this.set(u,this.$M+E);if(H===k)return this.set(k,this.$y+E);if(H===m)return Z(1);if(H===p)return Z(7);var _=(D={},D[i]=o,D[c]=l,D[s]=a,D)[H]||1,j=this.$d.getTime()+E*_;return T.w(j,this)},$.subtract=function(E,K){return this.add(-1*E,K)},$.format=function(E){var K=this,D=this.$locale();if(!this.isValid())return D.invalidDate||b;var W=E||"YYYY-MM-DDTHH:mm:ssZ",H=T.z(this),Z=this.$H,_=this.$m,j=this.$M,I=D.weekdays,L=D.months,x=function(Y,O,U,G){return Y&&(Y[O]||Y(K,W))||U[O].slice(0,G)},F=function(Y){return T.s(Z%12||12,Y,"0")},q=D.meridiem||function(Y,O,U){var G=Y<12?"AM":"PM";return U?G.toLowerCase():G},R={YY:String(this.$y).slice(-2),YYYY:this.$y,M:j+1,MM:T.s(j+1,2,"0"),MMM:x(D.monthsShort,j,L,3),MMMM:x(L,j),D:this.$D,DD:T.s(this.$D,2,"0"),d:String(this.$W),dd:x(D.weekdaysMin,this.$W,I,2),ddd:x(D.weekdaysShort,this.$W,I,3),dddd:I[this.$W],H:String(Z),HH:T.s(Z,2,"0"),h:F(1),hh:F(2),a:q(Z,_,!0),A:q(Z,_,!1),m:String(_),mm:T.s(_,2,"0"),s:String(this.$s),ss:T.s(this.$s,2,"0"),SSS:T.s(this.$ms,3,"0"),Z:H};return W.replace(f,function(Y,O){return O||R[Y]||H.replace(":","")})},$.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},$.diff=function(E,K,D){var W,H=T.p(K),Z=V(E),_=(Z.utcOffset()-this.utcOffset())*o,j=this-Z,I=T.m(this,Z);return I=(W={},W[k]=I/12,W[u]=I,W[h]=I/3,W[p]=(j-_)/6048e5,W[m]=(j-_)/864e5,W[c]=j/l,W[i]=j/o,W[s]=j/a,W)[H]||j,D?I:T.a(I)},$.daysInMonth=function(){return this.endOf(u).$D},$.$locale=function(){return S[this.$L]},$.locale=function(E,K){if(!E)return this.$L;var D=this.clone(),W=A(E,K,!0);return W&&(D.$L=W),D},$.clone=function(){return T.w(this.$d,this)},$.toDate=function(){return new Date(this.valueOf())},$.toJSON=function(){return this.isValid()?this.toISOString():null},$.toISOString=function(){return this.$d.toISOString()},$.toString=function(){return this.$d.toUTCString()},P}(),M=w.prototype;return V.prototype=M,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",m],["$M",u],["$y",k],["$D",y]].forEach(function(P){M[P[1]]=function($){return this.$g($,P[0],P[1])}}),V.extend=function(P,$){return P.$i||(P($,w,V),P.$i=!0),V},V.locale=A,V.isDayjs=N,V.unix=function(P){return V(1e3*P)},V.en=S[B],V.Ls=S,V.p={},V})})(ks);var Sd=ks.exports;const Fe=We(Sd);var Ss={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){var a={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"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,l=/\d\d/,r=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,i={},c=function(b){return(b=+b)+(b>68?1900:2e3)},m=function(b){return function(v){this[b]=+v}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(b){(this.zone||(this.zone={})).offset=function(v){if(!v||v==="Z")return 0;var f=v.match(/([+-]|\d\d)/g),d=60*f[1]+(+f[2]||0);return d===0?0:f[0]==="+"?-d:d}(b)}],u=function(b){var v=i[b];return v&&(v.indexOf?v:v.s.concat(v.f))},h=function(b,v){var f,d=i.meridiem;if(d){for(var g=1;g<=24;g+=1)if(b.indexOf(d(g,0,v))>-1){f=g>12;break}}else f=b===(v?"pm":"PM");return f},k={A:[s,function(b){this.afternoon=h(b,!1)}],a:[s,function(b){this.afternoon=h(b,!0)}],S:[/\d/,function(b){this.milliseconds=100*+b}],SS:[l,function(b){this.milliseconds=10*+b}],SSS:[/\d{3}/,function(b){this.milliseconds=+b}],s:[r,m("seconds")],ss:[r,m("seconds")],m:[r,m("minutes")],mm:[r,m("minutes")],H:[r,m("hours")],h:[r,m("hours")],HH:[r,m("hours")],hh:[r,m("hours")],D:[r,m("day")],DD:[l,m("day")],Do:[s,function(b){var v=i.ordinal,f=b.match(/\d+/);if(this.day=f[0],v)for(var d=1;d<=31;d+=1)v(d).replace(/\[|\]/g,"")===b&&(this.day=d)}],M:[r,m("month")],MM:[l,m("month")],MMM:[s,function(b){var v=u("months"),f=(u("monthsShort")||v.map(function(d){return d.slice(0,3)})).indexOf(b)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[s,function(b){var v=u("months").indexOf(b)+1;if(v<1)throw new Error;this.month=v%12||v}],Y:[/[+-]?\d+/,m("year")],YY:[l,function(b){this.year=c(b)}],YYYY:[/\d{4}/,m("year")],Z:p,ZZ:p};function y(b){var v,f;v=b,f=i&&i.formats;for(var d=(b=v.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,T,w){var M=w&&w.toUpperCase();return T||f[w]||a[w]||f[M].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(P,$,E){return $||E.slice(1)})})).match(o),g=d.length,C=0;C<g;C+=1){var B=d[C],S=k[B],N=S&&S[0],A=S&&S[1];d[C]=A?{regex:N,parser:A}:B.replace(/^\[|\]$/g,"")}return function(V){for(var T={},w=0,M=0;w<g;w+=1){var P=d[w];if(typeof P=="string")M+=P.length;else{var $=P.regex,E=P.parser,K=V.slice(M),D=$.exec(K)[0];E.call(T,D),V=V.replace(D,"")}}return function(W){var H=W.afternoon;if(H!==void 0){var Z=W.hours;H?Z<12&&(W.hours+=12):Z===12&&(W.hours=0),delete W.afternoon}}(T),T}}return function(b,v,f){f.p.customParseFormat=!0,b&&b.parseTwoDigitYear&&(c=b.parseTwoDigitYear);var d=v.prototype,g=d.parse;d.parse=function(C){var B=C.date,S=C.utc,N=C.args;this.$u=S;var A=N[1];if(typeof A=="string"){var V=N[2]===!0,T=N[3]===!0,w=V||T,M=N[2];T&&(M=N[2]),i=this.$locale(),!V&&M&&(i=f.Ls[M]),this.$d=function(K,D,W){try{if(["x","X"].indexOf(D)>-1)return new Date((D==="X"?1e3:1)*K);var H=y(D)(K),Z=H.year,_=H.month,j=H.day,I=H.hours,L=H.minutes,x=H.seconds,F=H.milliseconds,q=H.zone,R=new Date,Y=j||(Z||_?1:R.getDate()),O=Z||R.getFullYear(),U=0;Z&&!_||(U=_>0?_-1:R.getMonth());var G=I||0,Q=L||0,J=x||0,z=F||0;return q?new Date(Date.UTC(O,U,Y,G,Q,J,z+60*q.offset*1e3)):W?new Date(Date.UTC(O,U,Y,G,Q,J,z)):new Date(O,U,Y,G,Q,J,z)}catch{return new Date("")}}(B,A,S),this.init(),M&&M!==!0&&(this.$L=this.locale(M).$L),w&&B!=this.format(A)&&(this.$d=new Date("")),i={}}else if(A instanceof Array)for(var P=A.length,$=1;$<=P;$+=1){N[1]=A[$-1];var E=f.apply(this,N);if(E.isValid()){this.$d=E.$d,this.$L=E.$L,this.init();break}$===P&&(this.$d=new Date(""))}else g.call(this,C)}}})})(Ss);var Cd=Ss.exports;const wd=We(Cd);var Cs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o,l){var r=o.prototype,s=r.format;l.en.ordinal=function(i){var c=["th","st","nd","rd"],m=i%100;return"["+i+(c[(m-20)%10]||c[m]||c[0])+"]"},r.format=function(i){var c=this,m=this.$locale();if(!this.isValid())return s.bind(this)(i);var p=this.$utils(),u=(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 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 p.s(c.week(),h==="w"?1:2,"0");case"W":case"WW":return p.s(c.isoWeek(),h==="W"?1:2,"0");case"k":case"kk":return p.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)(u)}}})})(Cs);var Nd=Cs.exports;const Bd=We(Nd);var ws={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o,l){var r=o.prototype,s=function(u){return u&&(u.indexOf?u:u.s)},i=function(u,h,k,y,b){var v=u.name?u:u.$locale(),f=s(v[h]),d=s(v[k]),g=f||d.map(function(B){return B.slice(0,y)});if(!b)return g;var C=v.weekStart;return g.map(function(B,S){return g[(S+(C||0))%7]})},c=function(){return l.Ls[l.locale()]},m=function(u,h){return u.formats[h]||function(k){return k.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,b,v){return b||v.slice(1)})}(u.formats[h.toUpperCase()])},p=function(){var u=this;return{months:function(h){return h?h.format("MMMM"):i(u,"months")},monthsShort:function(h){return h?h.format("MMM"):i(u,"monthsShort","months",3)},firstDayOfWeek:function(){return u.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(u,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(u,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(u,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return m(u.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},l.localeData=function(){var u=c();return{firstDayOfWeek:function(){return u.weekStart||0},weekdays:function(){return l.weekdays()},weekdaysShort:function(){return l.weekdaysShort()},weekdaysMin:function(){return l.weekdaysMin()},months:function(){return l.months()},monthsShort:function(){return l.monthsShort()},longDateFormat:function(h){return m(u,h)},meridiem:u.meridiem,ordinal:u.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(u){return i(c(),"weekdays",null,null,u)},l.weekdaysShort=function(u){return i(c(),"weekdaysShort","weekdays",3,u)},l.weekdaysMin=function(u){return i(c(),"weekdaysMin","weekdays",2,u)}}})})(ws);var Ad=ws.exports;const Vd=We(Ad);var Ns={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){var a="week",o="year";return function(l,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 m=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var p=s(this).startOf(o).add(1,o).date(m),u=s(this).endOf(a);if(p.isBefore(u))return 1}var h=s(this).startOf(o).date(m).startOf(a).subtract(1,"millisecond"),k=this.diff(h,a,!0);return k<0?s(this).startOf("week").week():Math.ceil(k)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(Ns);var Td=Ns.exports;const $d=We(Td);var Bs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o){o.prototype.weekYear=function(){var l=this.month(),r=this.week(),s=this.year();return r===1&&l===11?s+1:l===0&&r>=52?s-1:s}}})})(Bs);var Ed=Bs.exports;const xd=We(Ed);var As={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o,l){o.prototype.dayOfYear=function(r){var s=Math.round((l(this).startOf("day")-l(this).startOf("year"))/864e5)+1;return r==null?s:this.add(r-s,"day")}}})})(As);var Dd=As.exports;const Id=We(Dd);var Vs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(Vs);var qd=Vs.exports;const Md=We(qd);var Ts={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(je,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(Ts);var Pd=Ts.exports;const Ld=We(Pd);Fe.extend(Vd);Fe.extend(Bd);Fe.extend(wd);Fe.extend($d);Fe.extend(xd);Fe.extend(Id);Fe.extend(Md);Fe.extend(Ld);const le={format(e,n){return Fe(e).format(n)},parser(e,n){return Fe(e,n).toDate()},isLeapYear(e){return e%4==0&&e%100!=0||e%400==0},getWhatDay(e,n,a){const l=new Date(e+"/"+n+"/"+a).getDay();return["星期日","星期一","星期二","星期三","星期四","星期五","星期六"][l]},getMonthPreDay(e,n){let o=new Date(e+"/"+n+"/01").getDay();return o==0&&(o=7),o},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 a=e.getFullYear(),o=this.getNumTwoBit(e.getMonth()+1),l=this.getNumTwoBit(e.getDate());return[a,o,l].join(n)},getDay(e,n){e=e||0;let a=n??new Date;const o=e*(1e3*60*60*24);return a=new Date(a.getTime()+o),this.date2Str(a)},compareDate(e,n){let a;typeof e=="string"?a=new Date(e.replace("-","/").replace("-","/")):a=e;let o;return typeof n=="string"?o=new Date(n.replace("-","/").replace("-","/")):o=n,!(a>=o)},isEqual(e,n){if(e===n)return!0;if(!e||!n)return!1;let a;typeof e=="string"?a=new Date(e).getTime():a=e;let o;return typeof n=="string"?o=new Date(n).getTime():o=n,a==o},getMonthWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a));let r=l.getDay(),s=l.getDate(),i=6-r;return o!==0&&(r=r==0?7:r,i=7-r),Math.ceil((s+i)/7)},getYearWeek:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=new Date(Number(e),0,1),s=Math.round((l.valueOf()-r.valueOf())/864e5);let i=l.getDay(),c=6-i;return o!==0&&(i=i==0?7:i,c=7-i),Math.ceil((s+c)/7)},getWeekDate:function(e,n,a,o=0){const l=new Date(Number(e),parseInt(n)-1,Number(a)),r=l.getTime();let s=l.getDay();if(o===0){const c=r-s*864e5,m=r+(6-s)*864e5,p=this.date2Str(new Date(c)),u=this.date2Str(new Date(m));return[p,u]}else{s=s==0?7:s;const i=24*60*60*1e3,c=r-(s-1)*i,m=r+(7-s)*i,p=this.date2Str(new Date(c)),u=this.date2Str(new Date(m));return[p,u]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=le.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=le.getWhatDay(+n[0],+n[1],+n[2]),n},inScope4Day(e,n,a){const o=new Date(new Date(n).setDate(n.getDate()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s},inScope4Month(e,n,a){const o=new Date(new Date(n).setMonth(n.getMonth()+a)),l=e.getTime(),r=o.getTime(),s=n.getTime();return r>s?l>=s&&l<=r:l>=r&&l<=s}},ir=new Date().getFullYear(),al={date:"YYYY-MM-DD",datetime:"YYYY-MM-DD HH:mm:ss",time:"HH:mm:ss","year-month":"YYYY-MM","month-day":"MM-DD",datehour:"YYYY-MM-DD HH","hour-minute":"HH:mm"},bn=(e,n,a)=>{let o;if(Ue(n)?o=n:typeof n=="string"&&ye(n)>0?o=le.parser(n,a):o=new Date,o.toString()==="Invalid Date")return null;let l=Math.max(o.getTime(),e.minDate.getTime());return l=Math.min(l,e.maxDate.getTime()),new Date(l)},Eo=(e,n,a)=>{Ue(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),le.format(new Date(o),a)};let xo={modelValue:{type:[String,Date]},confirmText:{type:String},cancelText:{type:String},type:{type:String,default:"date"},valueFormat:{type:String},visible:{type:Boolean,default:!1},title:{type:String,default:""},isShowChinese:{type:Boolean,default:!0},minuteStep:{type:Number,default:1},minDate:{type:Date,default:()=>new Date(ir-10,0,1),validator:Ue},maxDate:{type:Date,default:()=>new Date(ir+10,11,31),validator:Ue},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:zd,scope:Fd}=X("date-picker"),Rd=zd({components:{[bt.name]:bt},props:{...xo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(Fd),o={day:a("day"),year:a("year"),month:a("month"),hour:a("hour"),minute:a("minute"),seconds:a("seconds")},l=t.ref(!1);t.watch(()=>e.visible,d=>{l.value=d});function r(d,g){return new Date(d,g,0).getDate()}const s=(d,g)=>{const C=e[`${d}Date`],B=C.getFullYear();let S=1,N=1,A=0,V=0;d==="max"&&(S=12,N=r(g.getFullYear(),g.getMonth()+1),A=23,V=59);const T=V;return g.getFullYear()===B&&(S=C.getMonth()+1,g.getMonth()+1===S&&(N=C.getDate(),g.getDate()===N&&(A=C.getHours(),g.getHours()===A&&(V=C.getMinutes())))),{[`${d}Year`]:B,[`${d}Month`]:S,[`${d}Date`]:N,[`${d}Hour`]:A,[`${d}Minute`]:V,[`${d}Seconds`]:T}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:d,maxDate:g,maxMonth:C,maxHour:B,maxMinute:S,maxSeconds:N}=s("max",h.value),{minYear:A,minDate:V,minMonth:T,minHour:w,minMinute:M,minSeconds:P}=s("min",h.value);let $=[{type:"year",range:[A,d]},{type:"month",range:[T,C]},{type:"day",range:[V,g]},{type:"hour",range:[w,B]},{type:"minute",range:[M,S]},{type:"seconds",range:[P,N]}];switch(e.type){case"date":$=$.slice(0,3);break;case"datetime":$=$.slice(0,5);break;case"time":$=$.slice(3,6);break;case"year-month":$=$.slice(0,2);break;case"month-day":$=$.slice(1,3);break;case"datehour":$=$.slice(0,4);break;case"hour-minute":$=$.slice(3,5);break}return $}),c=(d,g,C)=>{if(!(g>d))return null;const B=[];for(;d<=g;)e.isShowChinese?B.push({text:d+o[C],value:d}):B.push({text:`${d}`,value:d}),C==="minute"?d+=e.minuteStep:d++;return B},m=t.computed(()=>{let d=[];return i.value.forEach(g=>{let C=c(g.range[0],g.range[1],g.type);C&&d.push(C)}),d}),p=(d,g)=>d==="year"?g.getFullYear():d==="month"?g.getMonth()+1:d==="day"?g.getDate():d==="hour"?g.getHours():d==="minute"?g.getMinutes():d==="seconds"?g.getSeconds():0,u=t.ref(),h=t.ref(null);t.watch(()=>e.modelValue,d=>{let g;if(typeof d=="string"?d.length==0?g=new Date:e.valueFormat?g=bn(e,e.modelValue,e.valueFormat):g=bn(e,d,al[e.type]):Ue(d)?g=d:g=new Date,!!g&&(!h.value||g.getTime()!==h.value.getTime())){h.value=g;let C=[];i.value.forEach(B=>{let S=p(B.type,g);C.push(S)}),u.value=C}},{immediate:!0});const k=d=>{if(e.type==="date"){const g=d[0],C=d[1]-1,B=Math.min(d[2],r(g,C+1));B!==d[2]&&(d[2]=B),h.value=new Date(g,C,B)}else if(e.type==="datetime"){const g=d[0],C=d[1]-1,B=Math.min(d[2],r(g,C+1)),S=d[3],N=d[4];B!==d[2]&&(d[2]=B),h.value=new Date(g,C,B,S,N)}else if(e.type==="time"){const g=d[0],C=d[1],B=d[2],S=h.value??new Date,N=new Date(S.getFullYear(),S.getMonth(),S.getDate(),g,C,B);h.value=N}else if(e.type==="year-month"){const g=d[0],C=d[1]-1;h.value=new Date(g,C)}else if(e.type==="month-day"){const C=(h.value??new Date).getFullYear(),B=d[0]-1,S=Math.min(d[1],r(C,B+1));S!==d[1]&&(d[1]=S);const N=new Date(C,B,S);h.value=N}else if(e.type==="datehour"){const g=d[0],C=d[1]-1,B=Math.min(d[2],r(g,C+1)),S=d[3];B!==d[2]&&(d[2]=B),h.value=new Date(g,C,B,S)}else if(e.type==="hour-minute"){const g=d[0],C=d[1],B=h.value??new Date,S=new Date(B.getFullYear(),B.getMonth(),B.getDate(),g,C);h.value=S}u.value=d};return{columns:m,dateIndexs:u,show:l,onChange:d=>{k(d)},onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:d=>{k(d),l.value=!1;let g=h.value??new Date;if(e.valueFormat){let C=Eo(e,g,e.valueFormat);n("update:modelValue",C)}else n("update:modelValue",g);n("update:visible",!1),n("confirm",d)},onClear:()=>{n("clear")}}}});function Od(e,n,a,o,l,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,onChange:e.onChange,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","onChange","onConfirm","onClose","onClear","visible-item-count","three-dimensional","swipe-duration","teleport-disable"])}const Un=ne(Rd,[["render",Od]]),Kd={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Ud(e){let n=e.format;if(!n){let a=e.type??"date";n=al[a]}return n}function Hd(e,n,a,o,l,r,s=!1){return{props:{...me,...ge,...xo,...Kd},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const m=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),k=h(i,["placeholder"]),y=t.ref(!1),v=xe(i,"modelValue",I=>I==null?null:typeof I=="string"?I.length==0?null:i.valueFormat?bn(i,I,i.valueFormat)??I:bn(i,I,al[i.type])??I:Ue(I)?I:null,u),f=t.computed(()=>{if(!v.value)return"";const I=Ud(i);return Eo(i,v.value,I)}),d="fox-input-item",g=t.computed(()=>({[d]:!0,"is-disabled":m.value,"is-readonly":p.value})),C=Be(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const I={};return C.value&&(I["text-align"]=C.value),I}),S=t.ref(!1),N=()=>{S.value=!0},A=()=>{S.value=!1};c.expose({showPicker:N,hidePicker:A});const V=I=>{S.value=I},T=I=>{if(v.value=I,i.valueFormat){let L=Eo(i,I,i.valueFormat);u("update:modelValue",L,{}),u("change",L,{})}else u("update:modelValue",I,{}),u("change",I,{})},w=I=>{let x=I.target.value;y.value=!0,u("focus",x,I)},M=I=>{setTimeout(()=>{y.value=!1},0);let x=I.target.value;i.maxLength&&x.length>Number(i.maxLength)&&(x=x.slice(0,Number(i.maxLength))),u("blur",x,I)},P=t.computed(()=>({[`${d}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),$=t.computed(()=>ye(i.unit)>0),E=t.computed(()=>ye(i.unit)>0&&!y.value),K=t.computed(()=>({hidden:!E.value})),D=I=>{v.value="",u("update:modelValue","",I),u("change","",I),u("clear",""),A()},W=t.computed(()=>i.clearable&&!m.value&&!p.value),H=t.computed(()=>{let I=ye(v.value)>0;return i.clearable&&I&&y.value}),Z=I=>{H.value?D(I):N()},_=t.computed(()=>H.value&&W.value?o:l),j=t.computed(()=>({action:!0}));return()=>{const I={class:g.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:w,onBlur:M};s&&(I.disabled=!0);const L=[],x=t.h("input",I);L.push(x);const F=[],q={class:["action-icon"]},R=t.h(_.value,q),Y={class:j.value,onClick:Z},O=t.h("view",Y,{default:()=>[R]});if(F.push(O),$.value){const ce=t.h("view",{class:K.value},[i.unit]);F.push(ce)}const U={class:P.value},G=t.h("view",U,{default:()=>F});L.push(G);const Q={default:()=>L};Q.label=c.slots.default,Q.prepend=c.slots.prepend,Q.append=c.slots.append,Q.fixedPreTip=c.slots.fixedPreTip,Q.fixedTip=c.slots.fixedTip;const J=ve(i,xo);J.valueFormat=null,J.disabled=!1,J.readonly=m.value||p.value,J.visible=S.value,J["onUpdate:visible"]=V,J.modelValue=v.value,J["onUpdate:modelValue"]=T,J.onClear=D;const z={};if(c.slots.top){const ce=c.slots.top();z.top=()=>ce}if(c.slots.bottom){const ce=c.slots.bottom();z.default=()=>ce}const ee=t.h(r,J,z);Q.hide=()=>[ee];const te=ve(i,ge,me);return t.h(a,{...te,prop:`${i.prop}_item`},Q)}}}}const{create:jd,componentName:Wd,scope:Yd}=X("date-item"),rl=jd(Hd(Wd,Yd,Se,oe.CircleClose,oe.Date,Un,!1)),Xd=39,Qd=64,{create:Gd,scope:Zd}=X("calendar-pane"),Jd=Gd({props:{type:{type:String,default:"one"},valueFormat:{type:String,default:"YYYY-MM-DD"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array],default:""},startDate:{type:String,default:le.getDay(0)},endDate:{type:String,default:le.getDay(365)},firstDayOfWeek:{type:Number,default:0}},emits:["choose","update","close","select"],setup(e,{emit:n,slots:a}){const{toLocaleRefs:o,t:l}=re.useFoxI18n(Zd),r=o(e,["title","confirmText","startText","endText","today"]),s=JSON.parse(l("weekdays")),i=t.ref([...s.slice(e.firstDayOfWeek,7),...s.slice(0,e.firstDayOfWeek)]),c=t.ref(null),m=t.ref(null),p=t.ref(null),u=t.ref(null),h=t.ref(0),k=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),y=t.computed(()=>a.btn),b=t.computed(()=>a["top-info"]),v=t.computed(()=>a["bottom-info"]),f=t.reactive({yearMonthTitle:"",defaultRange:[],currDate:"",propStartDate:"",propEndDate:"",unLoadPrev:!1,touchParams:{startY:0,endY:0,startTime:0,endTime:0,lastY:0,lastTime:0},transformY:0,translateY:0,scrollDistance:0,defaultData:[],chooseData:[],monthsData:[],dayPrefix:"fox-calendar__day",startData:"",endData:"",isRange:e.type==="range",timer:0,currentIndex:0,containerHeight:0,avgHeight:0,monthsNum:0}),d=q=>q.split("-"),g=q=>le.isEqual(f.currDate[0],q),C=q=>le.isEqual(f.currDate[1],q),B=q=>f.currDate?.length>0?f.currDate?.some(R=>le.isEqual(R,q)):!1,S=(q,R)=>R.curData[0]+"-"+R.curData[1]+"-"+le.getNumTwoBit(+q.day),N=(q,R)=>{const Y=S(q,R),{type:O}=e;return q.type=="curr"?le.isEqual(f.currDate,Y)||(O=="range"||O=="week")&&(g(Y)||C(Y))||O=="multiple"&&B(Y)?`${f.dayPrefix}--active`:f.propStartDate&&le.compareDate(Y,f.propStartDate)||f.propEndDate&&le.compareDate(f.propEndDate,Y)?`${f.dayPrefix}--disabled`:(O=="range"||O=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&le.compareDate(f.currDate[0],Y)&&le.compareDate(Y,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},A=()=>{const{type:q}=e;if(q=="range"&&f.chooseData.length==2||q!="range"){let R=f.chooseData.slice(0);q=="week"&&(R={weekDate:[T(f.chooseData[0]),T(f.chooseData[1])]}),n("choose",R),e.poppable&&n("update")}},V=(q,R,Y=!1)=>{if(N(q,R)!=`${f.dayPrefix}--disabled`){const{type:O}=e;let[U,G]=R.curData,Q=[...R.curData];if(Q[2]=le.getNumTwoBit(Number(q.day)),Q[3]=`${Q[0]}-${Q[1]}-${Q[2]}`,Q[4]=le.getWhatDay(+Q[0],+Q[1],+Q[2]),O=="multiple")if(f.currDate?.length>0){let J;f.currDate?.forEach((z,ee)=>{z==Q[3]&&(J=ee)}),Y?f.chooseData.push([...Q]):J!==void 0?(f.currDate.splice(J,1),f.chooseData.splice(J,1)):(f.currDate.push(Q[3]),f.chooseData.push([...Q]))}else f.currDate=[Q[3]],f.chooseData=[[...Q]];else if(O=="range"){let J=Object.values(f.currDate).length;J==2||J==0?f.currDate=[Q[3]]:le.compareDate(f.currDate[0],Q[3])?Array.isArray(f.currDate)&&f.currDate.push(Q[3]):Array.isArray(f.currDate)&&f.currDate.unshift(Q[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...Q]]:le.compareDate(f.chooseData[0][3],Q[3])?f.chooseData=[...f.chooseData,[...Q]]:f.chooseData=[[...Q],...f.chooseData]}else if(O=="week"){let J=le.getWeekDate(U,G,q.day,e.firstDayOfWeek);f.propStartDate&&le.compareDate(J[0],f.propStartDate)&&J.splice(0,1,f.propStartDate),f.propEndDate&&le.compareDate(f.propEndDate,J[1])&&J.splice(1,1,f.propEndDate),f.currDate=J,f.chooseData=[le.formatResultDate(J[0]),le.formatResultDate(J[1])]}else f.currDate=Q[3],f.chooseData=[...Q];if(!Y){let J=f.chooseData;O=="week"&&(J={weekDate:[T(f.chooseData[0]),T(f.chooseData[1])]}),n("select",J),(e.isAutoBackFill||!e.poppable)&&A()}}},T=q=>{let[R,Y,O]=q;return{date:q,monthWeekNum:le.getMonthWeek(R,Y,O,e.firstDayOfWeek),yearWeekNum:le.getYearWeek(R,Y,O,e.firstDayOfWeek)}},w=q=>{const R=q=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let Y=parseInt(R.curData[0]),O=parseInt(R.curData[1].toString().replace(/^0/,""));switch(q){case"prev":O==1&&(Y-=1),O=O==1?12:--O;break;case"next":O==12&&(Y+=1),O=O==12?1:++O;break}return[Y+"",le.getNumTwoBit(O),le.getMonthDays(String(Y),String(O))+""]},M=(q,R,Y)=>{let{year:O,month:U}=Y;return R=="prev"&&q>=7&&(q-=7),Array.from(Array(q),(G,Q)=>({day:String(Q+1),type:R,year:O,month:U}))},P=(q,R,Y,O)=>{q=q-e.firstDayOfWeek;let{year:U,month:G}=Y;return R=="prev"&&q>=7&&(q-=7),Array.from(Array(O),(J,z)=>({day:String(z+1),type:R,year:U,month:G})).slice(O-q)},$=(q,R)=>{const Y=le.getMonthPreDay(+q[0],+q[1]);let O=Number(q[1])-1,U=Number(q[0]);O<=0&&(O=12,U+=1);const G=le.getMonthDays(String(q[0]),String(q[1])),Q=le.getMonthDays(U+"",O+""),J={year:q[0],month:q[1]},z={curData:q,title:l("monthTitle",{year:J.year,month:J.month}),monthData:[...P(Y,"prev",{month:String(O),year:String(U)},Q),...M(G,"curr",J)],cssHeight:0,cssScrollHeight:0},ee=z.monthData.length>35?6:5;z.cssHeight=Xd+Qd*ee;let te=0;f.monthsData.length>0&&(te=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),z.cssScrollHeight=te,R=="next"?(!f.endData||!le.compareDate(`${f.endData[0]}-${f.endData[1]}-${le.getMonthDays(f.endData[0],f.endData[1])}`,`${q[0]}-${q[1]}-${q[2]}`))&&f.monthsData.push(z):!f.startData||!le.compareDate(`${q[0]}-${q[1]}-${q[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(z):f.unLoadPrev=!0},E=()=>{let q=e.startDate?e.startDate:le.getDay(0),R=e.endDate?e.endDate:le.getDay(365);f.propStartDate=q,f.propEndDate=R,f.startData=d(q),f.endData=d(R),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const Y={year:Number(f.startData[0]),month:Number(f.startData[1])},O={year:Number(f.endData[0]),month:Number(f.endData[1])};let U=O.month-Y.month;O.year-Y.year>0&&(U=U+12*(O.year-Y.year)),U<=0&&(U=1),$(f.startData,"next");let G=1;do $(w("next"),"next");while(G++<U);if(f.monthsNum=U,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(q&&le.compareDate(f.currDate[0],q)&&f.currDate.splice(0,1,q),R&&le.compareDate(R,f.currDate[1])&&f.currDate.splice(1,1,R),f.defaultData=[...d(f.currDate[0]),...d(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let Q=[],J={};f.currDate.forEach(z=>{q&&!le.compareDate(z,q)&&R&&!le.compareDate(R,z)&&(Object.hasOwnProperty.call(J,z)||(Q.push(z),J[z]=z))}),f.currDate=[...Q],f.defaultData=[...d(Q[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[Q,J,z]=d(f.currDate[0]),ee=le.getWeekDate(Q,J,z,e.firstDayOfWeek);f.currDate=ee,q&&le.compareDate(f.currDate[0],q)&&f.currDate.splice(0,1,q),R&&le.compareDate(R,f.currDate[1])&&f.currDate.splice(1,1,R),f.defaultData=[...d(f.currDate[0]),...d(f.currDate[1])]}}else f.currDate&&(q&&le.compareDate(f.currDate,q)?f.currDate=q:R&&!le.compareDate(f.currDate,R)&&(f.currDate=R),f.defaultData=[...d(f.currDate)])};$e({scrollToDate:q=>{le.compareDate(q,f.propStartDate)?q=f.propStartDate:le.compareDate(q,f.propEndDate)||(q=f.propEndDate);let R=d(q);f.monthsData.forEach((Y,O)=>{if(Y.title==l("monthTitle",{year:R[0],month:R[1]})&&c.value){let U=f.monthsData[O].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let G=0,Q=setInterval(()=>{if(G++,c.value){let J=U/10;c.value.scrollTop=c.value.scrollTop+J}G>=10&&(clearInterval(Q),c.value&&(c.value.scrollTop=f.monthsData[O].cssScrollHeight))},40)}else c.value.scrollTop=f.monthsData[O].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let q=0,R=0;f.defaultData.length>0&&f.monthsData.forEach((U,G)=>{U.title==l("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(q=G),(e.type=="range"||e.type=="week")&&U.title==l("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(R=G)}),H(f.monthsNum,q),f.currentIndex=q,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?(V({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),V({day:f.defaultData[5],type:"curr"},f.monthsData[R],!0)):e.type=="week"?V({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(U=>{let G=d(U),Q=f.currentIndex;f.monthsData.forEach((J,z)=>{J.title==l("monthTitle",{year:G[0],month:G[1]})&&(Q=z)}),V({day:G[2],type:"curr"},f.monthsData[Q],!0)}):V({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let Y=f.monthsData[f.monthsData.length-1],O=Y.cssHeight+Y.cssScrollHeight;Xe(()=>{c?.value&&m?.value&&u?.value&&(h.value=c.value.clientHeight,m.value.style.height=`${O}px`,c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(O/(f.monthsNum+1))}});const H=(q,R)=>{q>=3?R>0&&R<q?f.defaultRange=[R-1,R+3]:R==0?f.defaultRange=[R,R+4]:R==q&&(f.defaultRange=[R-2,R+2]):f.defaultRange=[0,q+2];let Y=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=Y},Z=(q,R)=>(e.type=="range"||e.type=="week")&&q.type=="curr"&&N(q,R)=="fox-calendar__day--active",_=(q,R)=>Z(q,R)&&g(S(q,R)),j=(q,R)=>f.currDate.length>=2&&C(S(q,R))?Z(q,R):!1,I=()=>{if(f.currDate.length>=2)return le.isEqual(f.currDate[0],f.currDate[1])},L=q=>{const R=`${q.year}-${q.month}-${Number(q.day)<10?"0"+q.day:q.day}`;return le.isEqual(R,le.date2Str(new Date))},x=q=>{if(f.monthsData.length<=1)return;const R=q.target.scrollTop;let Y=Math.floor(R/f.avgHeight);if(Y==0)R>=f.monthsData[Y+1].cssScrollHeight&&(Y+=1);else if(Y>0&&Y<f.monthsNum-1)R>=f.monthsData[Y+1].cssScrollHeight&&(Y+=1),R<f.monthsData[Y].cssScrollHeight&&(Y-=1);else{const O=Math.round(R+h.value);O<f.monthsData[Y].cssScrollHeight+f.monthsData[Y].cssHeight&&R>f.monthsData[Y-1].cssScrollHeight&&(Y-=1),Y+1<=f.monthsNum&&O>=f.monthsData[Y+1].cssScrollHeight+f.monthsData[Y+1].cssHeight&&(Y+=1),Y>=1&&R<f.monthsData[Y-1].cssScrollHeight&&(Y-=1)}f.currentIndex!==Y&&(f.currentIndex=Y,H(f.monthsNum,Y)),f.yearMonthTitle=f.monthsData[Y].title},F=()=>{f.chooseData.splice(0),f.monthsData.splice(0),E()};return E(),t.watch(()=>e.defaultValue,q=>{q&&e.poppable&&F()}),{weeks:i,compConthsData:k,showTopBtn:y,topInfo:b,bottomInfo:v,rangeTip:I,mothsViewScroll:x,getClass:N,isStartTip:_,isEndTip:j,chooseDay:V,isCurrDay:L,confirm:A,months:c,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:m,weeksPanel:p,viewArea:u}}}),_d={class:"fox-calendar__header"},ef={key:0,class:"fox-calendar__header-title"},tf={key:1,class:"fox-calendar__header-slot"},nf={key:2,class:"fox-calendar__header-subtitle"},of={class:"fox-calendar__weekdays",ref:"weeksPanel"},lf={class:"fox-calendar__panel",ref:"monthsPanel"},af={class:"fox-calendar__month-title"},rf={class:"fox-calendar__days"},sf=["onClick"],cf={class:"fox-calendar__day-value"},uf={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},df={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},ff={key:2,class:"fox-calendar__day-tips--curr"},mf={key:4,class:"fox-calendar__day-tip"},pf={key:0,class:"fox-calendar__footer"};function hf(e,n,a,o,l,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",_d,[e.showTitle?(t.openBlock(),t.createElementBlock("view",ef,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",tf,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",nf,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",of,[(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:n[0]||(n[0]=(...s)=>e.mothsViewScroll&&e.mothsViewScroll(...s))},[t.createElementVNode("view",lf,[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",af,t.toDisplayString(s.title),1),t.createElementVNode("view",rf,[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,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-calendar__day",e.getClass(c,s)]),onClick:p=>e.chooseDay(c,s)},[t.createElementVNode("view",cf,[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",uf,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",df,[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",ff,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",mf,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,sf))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",pf,[t.createElementVNode("view",{class:"fox-calendar__confirm",onClick:n[1]||(n[1]=(...s)=>e.confirm&&e.confirm(...s))},t.toDisplayString(e.confirmText),1)])):t.createCommentVNode("",!0)],2)}const cr=ne(Jd,[["render",hf]]),gf=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),on={type:{type:String,default:"one"},isAutoBackFill:{type:Boolean,default:!1},toDateAnimation:{type:Boolean,default:!0},poppable:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showSubTitle:{type:Boolean,default:!0},visible:{type:Boolean,default:!1},showToday:{type:Boolean,default:!0},title:{type:String,default:""},confirmText:{type:String,default:""},startText:{type:String,default:""},endText:{type:String,default:""},defaultValue:{type:[String,Array]},startDate:{type:String},endDate:{type:String},firstDayOfWeek:{type:Number,default:0,validator:e=>e>=0&&e<=6}},{create:yf}=X("calendar"),vf=yf({components:{[cr.name]:cr,[de.name]:de},props:{...on},emits:["choose","close","update:visible","select"],setup(e,{emit:n,slots:a}){const o=t.computed(()=>a.btn),l=t.computed(()=>a["top-info"]),r=t.computed(()=>a.day),s=t.computed(()=>a["bottom-info"]),i=t.ref(null),c=b=>{i.value?.scrollToDate(b)},m=()=>{i.value?.initPosition()};t.watch(()=>e.visible,b=>{b&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),$e({scrollToDate:c,initPosition:m});const p=()=>{n("update:visible",!1)},u=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{u()},update:p,close:u,select:b=>{n("select",b)},choose:b=>{u(),n("choose",b)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function bf(e,n,a,o,l,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 Hn=ne(vf,[["render",bf]]),ur={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}},co=(e,n)=>{let a;return Ue(e)?a=e:typeof e=="string"&&ye(e)>0?a=le.parser(e,n):a=new Date,a},ct=(e,n,a)=>(Ue(n)||(n=new Date),le.format(n,a)),ut=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=le.date2Str(e),r=le.getWhatDay(e.getFullYear(),e.getMonth()+1,e.getDate());return[n,a,o,l,r]};function kf(e,n,a,o,{CloseIcon:l,MarkIcon:r},s=!1){return{props:{...me,...ge,...on,...ur},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const m=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),k=h(i,["placeholder"]),y=t.ref(!1),b=t.computed(()=>i.type==="range"),v=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),f=()=>{v.startDate!==null&&(v.startDate=null,v.endDate=null,v.startArray=[],v.endArray=[])},d=(x,F="one",q="YYYY-MM-DD")=>{if(gf(x)){f();return}if(b.value&&Array.isArray(x)&&x.length==2){let R,Y;typeof x[0]=="string"?(R=co(x[0],q),Y=co(x[1],q)):(R=x[0],Y=x[1]);let O=ut(R),U=ut(Y);(v.startDate===null||v.startDate.getTime()!==R.getTime()||v.endDate?.getTime()!==Y.getTime())&&(v.startDate=R,v.startArray=O,v.endDate=Y,v.endArray=U)}else{let R;typeof x=="string"?R=co(x,q):R=x;let Y=ut(R);(v.startDate===null||v.startDate.getTime()!==R.getTime())&&(v.startDate=R,v.startArray=Y)}};d(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,x=>{d(x,i.type,i.valueFormat),u("setValue",x)});const g=t.computed(()=>{if(v.startDate===null)return"";if(b.value){let x=ct(i,v.startDate,i.format),F=ct(i,v.endDate,i.format);return`${x} ${i.rangeSeparator} ${F}`}else{let x=ct(i,v.startDate,i.format);return i.showWeek&&(x=`${x} ${v.startArray[4]}`),x}}),C=t.computed(()=>{if(v.startDate===null)return null;if(b.value){let x=le.date2Str(v.startDate),F=le.date2Str(v.endDate??new Date);return[x,F]}else return le.date2Str(v.startDate)}),B="fox-input-item",S=t.computed(()=>({[B]:!0,"is-disabled":m.value,"is-readonly":p.value})),N=Be(t.computed(()=>i.textAlign),"textAlign"),A=t.computed(()=>{const x={};return N.value&&(x["text-align"]=N.value),x}),V=t.ref(!1),T=()=>{p.value||m.value||(V.value=!0)},w=x=>{V.value=x},M=x=>{if(x){if(b.value&&Array.isArray(x)){let F=x[0],q=fe(F[0]),R=fe(F[1]),Y=fe(F[2]),O=new Date(q,R-1,Y),U=x[1];q=fe(U[0]),R=fe(U[1]),Y=fe(U[2]);let G=new Date(q,R-1,Y);if(v.startDate=O,v.startArray=ut(O),v.endDate=G,v.endArray=ut(G),i.valueFormat){let Q=ct(i,O,i.valueFormat),J=ct(i,G,i.valueFormat);u("update:modelValue",[Q,J],{})}else u("update:modelValue",[O,G],{})}else{let F=x,q=fe(F[0]),R=fe(F[1]),Y=fe(F[2]),O=new Date(q,R-1,Y);if(v.startDate=O,v.startArray=ut(O),i.valueFormat){let U=ct(i,O,i.valueFormat);u("update:modelValue",U,{})}else u("update:modelValue",O,{})}u("change",x,{})}},P=x=>{let q=x.target.value;y.value=!0,u("focus",q,x)},$=x=>{setTimeout(()=>{y.value=!1},0);let q=x.target.value;i.maxLength&&q.length>Number(i.maxLength)&&(q=q.slice(0,Number(i.maxLength))),u("blur",q,x)},E=t.computed(()=>({[`${B}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),K=t.computed(()=>ye(i.unit)>0),D=t.computed(()=>ye(i.unit)>0&&!y.value),W=t.computed(()=>({hidden:!D.value})),H=x=>{f(),u("update:modelValue",null,x),u("change","",x),u("clear","")},Z=t.computed(()=>i.clearable&&!m.value&&!p.value),_=t.computed(()=>{let x=ye(g.value)>0;return i.clearable&&x&&y.value}),j=x=>{_.value?H(x):T()},I=t.computed(()=>_.value&&Z.value?l:r),L=t.computed(()=>({action:!0}));return()=>{const x={class:S.value,style:A.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:T,onFocus:P,onBlur:$};s&&(x.disabled=!0);const F=[],q=t.h("input",x);F.push(q);const R=[],Y={class:["action-icon"]},O=t.h(I.value,Y),U={class:L.value,onClick:j},G=t.h("view",U,{default:()=>[O]});if(R.push(G),K.value){const De=t.h("view",{class:W.value},[i.unit]);R.push(De)}const Q={class:E.value},J=t.h("view",Q,{default:()=>R});F.push(J);const z={default:()=>F};z.label=c.slots.default,z.prepend=c.slots.prepend,z.append=c.slots.append,z.fixedPreTip=c.slots.fixedPreTip,z.fixedTip=c.slots.fixedTip;const ee=ve(i,on);ee.visible=V.value,ee["onUpdate:visible"]=w,ee["default-value"]=C.value,ee.onChoose=M;const te={};if(c.slots.btn){const De=c.slots.btn();te.btn=()=>De}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 ae=t.h(a,ee,te);z.hide=()=>[ae];const ce=Nt(i,on,ur);return t.h(o,{...ce,prop:`${i.prop}_item`},z)}}}}const{componentName:Sf,create:Cf,scope:wf}=X("calendar-item"),sl=Cf(kf(Sf,wf,Hn,Se,{CloseIcon:oe.CircleClose,MarkIcon:oe.Date},!1)),Nf={readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},shape:{type:String,default:"round"},label:{type:[String,Number,Boolean],default:""},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}};function Bf(e,{CheckNormal:n,Checked:a}){return{props:{...Nf},setup(o,{emit:l,slots:r}){const s=t.inject("parent",null),i=t.computed(()=>s.label.value===o.label),c=t.computed(()=>s.position),m=()=>{const y=[];if(i.value){if(r.checkedIcon)return r.checkedIcon();{const b=ie(o.iconSize),v=o.checkedIcon??a;return y.push("fox-radio__icon"),o.disabled&&y.push("is-disabled"),t.h(v,{width:b,height:b,class:y})}}else{if(r.icon)return r.icon();{const b=ie(o.iconSize),v=o.icon??n;return y.push("fox-radio__icon--unchecked"),o.disabled&&y.push("is-disabled"),t.h(v,{width:b,height:b,class:y})}}},p=()=>{const y=[`${e}__label`];return o.disabled&&y.push("is-disabled"),t.h("view",{class:y},r.default?.())},u=()=>{const y=[`${e}__button`];return i.value&&y.push(`${e}__button--active`),o.disabled&&y.push("is-disabled"),t.h("view",{class:y},r.default?.())},h=()=>{i.value||o.disabled||o.readonly||s.updateValue(o.label)},k=c.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${k?`${e}--reverse`:""}`,onClick:h},[o.shape=="button"?u():k?[p(),m()]:[m(),p()]])}}}const{componentName:Af,create:Vf}=X("radio"),jn=Vf(Bf(Af,{CheckNormal:oe.CheckNormal,Checked:oe.CheckChecked})),{componentName:dr,create:Tf}=X("radio-group"),Wn=Tf({props:{modelValue:{type:[Object],default:""},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:a}=Bt(),o=l=>a("update:modelValue",l);return t.provide("parent",{label:t.readonly(t.computed(()=>e.modelValue)),position:e.textPosition,updateValue:o}),t.watch(()=>e.modelValue,l=>a("change",l)),()=>{const l={};return e.textAlign&&(l["text-align"]=e.textAlign),t.h("view",{class:`${dr} ${dr}--${e.direction}`,style:l},n.default?.())}}});function fr(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(ln(e,r)===a)return l}else if(o==="item"){if(qe(a,r))return l}else if(Pt(e,r)===a)return l}return-1}function ln(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Pt(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function $f(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Ef(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let xf=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Df(){const e=t.getCurrentInstance();return new xf(e.proxy)}function If(e){return{text:e,value:e}}const mr={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},qf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String}},Mf={source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},modelValue:{type:[Number,String,Boolean,Object],default:""}};function Pf(e,n,a,o,l){return{props:{...me,...ge,...mr,...qf,...Mf},emits:["change","update:modelValue","setValue"],setup(r,s){const i=Te(t.computed(()=>r.readonly)),c=we(t.computed(()=>r.disabled)),m=Be(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return c.value}},r.prop??s.attrs.name),u=Df(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,d])=>{if(f){const g=await u.load("radio",f,d);if(g.length>0)if(typeof g[0]=="string"){const S=g.map(N=>If(N));h.value=S}else h.value=g}},{immediate:!0});let k=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([f,d])=>{k.value=fr(r,d,f,r.valueType),p("setValue",f)},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;if(k.value===-1)return null;const f=h.value[k.value];return Pt(r,f)}),b=f=>{let d=null,g=null;if(h.value.length>0){let C=fr(r,h.value,f,"value");k.value=C,C>=0&&(g=h.value[C],r.valueType==="text"?d=ln(r,g):r.valueType==="item"?d=g:d=Pt(r,g))}else d=f;p("update:modelValue",d),p("change",d,g)},v=()=>{let f=null,d=null;if(h.value.length>0&&k.value!==-1){let g=h.value[k.value];r.valueType==="text"?f=ln(r,g):r.valueType==="item"?f=g:f=Pt(r,g)}p("update:modelValue",f),p("change",f,d)};if($e({clear(){k.value!==-1&&(k.value=-1,v())}}),r.source){const f=()=>{const d=[],g=ve(r,mr);return h.value.forEach((C,B)=>{const S=Pt(r,C),N=$f(r,C);let A={...g,label:S,disabled:N};const V=Ef(r,C,B);A={...A,...V},c.value&&(A.disabled=!0),i.value&&(A.readonly=!0);const T={};if(s.slots.icon&&(T.icon=s.slots.icon),s.slots.checkedIcon&&(T.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const M=s.slots.text(C);T.default=()=>[M]}else{const M=ln(r,C);T.default=()=>M}let w=t.h(l,A,T);d.push(w)}),d};return()=>{const d=f(),g={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:m.value,modelValue:y,"onUpdate:modelValue":b},C=t.h(o,g,{default:()=>d}),B={default:()=>C};B.label=s.slots.default,B.prepend=s.slots.prepend,B.append=s.slots.append,B.fixedPreTip=s.slots.fixedPreTip,B.fixedTip=s.slots.fixedTip;const S=ve(r,ge,me);return t.h(a,{...S,prop:`${r.prop}_item`},B)}}else return()=>{const f=s.slots.options?.()??[];return t.h(o,{class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:m.value,modelValue:y,"update:modelValue":b},{default:()=>f})}}}}const{componentName:Lf,create:zf,scope:Ff}=X("radio-item"),il=zf(Pf(Lf,Ff,Se,Wn,jn)),Rf=(e,{CheckNormal:n,Checked:a,Indeterminate:o})=>({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(l,{slots:r}){const{emitEvent:s}=Bt(),i=t.inject("parent",null),c=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,d=>{c.partialSelect=d});const m=t.computed(()=>!!i),p=t.computed(()=>m.value?i.value.value.includes(l.label):!!l.modelValue),u=t.computed(()=>m.value?i.position:l.textPosition);let h="";const k=(d,g)=>{h="click",s("update:modelValue",d),s("change",d,g)};t.watch(()=>l.modelValue,d=>{h=="click"?h="":s("change",d)});const y=()=>{const d=[];if(c.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const g=ie(l.iconSize),C=l.indeterminateIcon??o;return d.push("fox-checkbox__icon--indeterminate"),l.disabled&&d.push("is-disabled"),t.h(C,{width:g,height:g,class:d})}}else if(p.value){if(r.checkedIcon)return r.checkedIcon();{const g=ie(l.iconSize),C=l.checkedIcon??a;return d.push("fox-checkbox__icon"),l.disabled&&d.push("is-disabled"),t.h(C,{width:g,height:g,class:d})}}else{if(r.icon)return r.icon();{const g=ie(l.iconSize),C=l.icon??n;return d.push("fox-checkbox__icon--unchecked"),l.disabled&&d.push("is-disabled"),t.h(C,{width:g,height:g,class:d})}}},b=()=>{const d=[`${e}__label`];return l.disabled&&d.push("is-disabled"),t.h("view",{class:d},r.default?.())},v=()=>{const d=[`${e}__button`];return p.value&&d.push(`${e}__button--active`),l.disabled&&d.push("is-disabled"),t.h("view",{class:d},r.default?.())},f=d=>{if(!(l.disabled||l.readonly)){if(p.value&&c.partialSelect){c.partialSelect=!1,k(p.value,r.default?.()[0].children);return}if(k(!p.value,r.default?.()[0].children),m.value){const g=i.value.value,C=i.max.value,{label:B}=l,S=g.indexOf(B);S>-1?g.splice(S,1):S<=-1&&(g.length<C||!C)&&g.push(B),i.updateValue(g)}}};return t.onMounted(()=>{m.value&&i.link(t.getCurrentInstance())}),t.onBeforeUnmount(()=>{m.value&&i.unlink(t.getCurrentInstance())}),()=>t.h("view",{class:`${e} ${e}--${l.shape} ${u.value==="left"?`${e}--reverse`:""}`,onClick:f},[l.shape=="button"?v():[y(),b()]])}}),{componentName:Of,create:Kf}=X("checkbox"),Yn=Kf(Rf(Of,{CheckNormal:oe.CheckNormal,Checked:oe.Checked,Indeterminate:oe.CheckDisabled})),{create:Uf,componentName:pr}=X("checkbox-group"),Xn=Uf({props:{modelValue:{type:Array,default:()=>[]},direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},emits:["change","update:modelValue"],setup(e,{slots:n}){const{emitEvent:a}=Bt(),o=t.reactive({children:[]}),l=m=>{m.proxy&&o.children.push(m.proxy)},r=m=>{m.proxy&&(o.children=o.children.filter(p=>p!==m.proxy))},s=m=>{a("update:modelValue",m),a("change",m)},i=m=>{const p=[];m&&o.children.forEach(u=>{u?.disabled||p.push(u?.label)}),a("update:modelValue",p)},c=()=>{const m=o.children.filter(p=>p?.disabled?!1:!e.modelValue.includes(p.label)).map(p=>p.label);a("update:modelValue",m)};return t.provide("parent",{value:t.computed(()=>Array.isArray(e.modelValue)?e.modelValue:[]),position:e.textPosition,max:t.computed(()=>e.max),updateValue:s,link:l,unlink:r}),t.watch(()=>e.modelValue,m=>{a("change",m)}),$e({toggleAll:i,toggleReverse:c}),()=>{const m={};return e.textAlign&&(m["text-align"]=e.textAlign),t.h("view",{class:`${pr} ${pr}--${e.direction}`,style:m},n.default?.())}}});function hr(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(Do(e,r)===a)return l}else if(o==="item"){if(qe(a,r))return l}else if(an(e,r)===a)return l}return-1}function Do(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function an(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Hf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function jf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Wf=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);let l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Yf(){const e=t.getCurrentInstance();return new Wf(e.proxy)}function Xf(e){return{text:e,value:e}}const Qf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},gr={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},Gf={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:[]}};function Zf(e,n,a,o,l){return{props:{...me,...ge,...Qf,...gr,...Gf},emits:["change","update:modelValue","setValue"],setup(r,s){const i=we(t.computed(()=>r.disabled)),c=we(t.computed(()=>r.readonly)),m=Be(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return i.value}},r.prop??s.attrs.name),u=Yf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,d])=>{if(f){const g=await u.load("checkbox",f,d);if(g.length>0)if(typeof g[0]=="string"){const S=g.map(N=>Xf(N));h.value=S}else h.value=g}},{immediate:!0});const k=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([f,d])=>{const g=[];Array.isArray(f)&&f.forEach(C=>{let B=hr(r,d,C,r.valueType);B!==-1&&g.push(B)}),!qe(g,k.value)&&(k.value=g,p("setValue",g))},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;let f=[];return k.value.forEach(d=>{let g=h.value[d];f.push(an(r,g))}),f}),b=f=>{let d=[],g=[];if(h.value.length>0){const C=[];Array.isArray(f)&&f.forEach(B=>{let S=hr(r,h.value,B,"value");S!==-1&&C.push(S);const N=h.value[S];g.push(N),r.valueType==="text"?d.push(Do(r,N)):r.valueType==="item"?d.push(N):d.push(an(r,N))}),k.value=C}else d=f;p("update:modelValue",d),p("change",d,g)},v=t.ref();if($e({toggleAll:f=>{v.value.toggleAll(f)},toggleReverse:()=>{v.value.toggleReverse()}}),r.source){const f=()=>{const d=[],g=ve(r,gr);return h.value.forEach((C,B)=>{const S=an(r,C),N=Hf(r,C);let A={...g,label:S,disabled:N};const V=jf(r,C,B);A={...A,...V},i.value&&(A.disabled=!0),c.value&&(A.readonly=!0);const T={};if(s.slots.icon&&(T.icon=s.slots.icon),s.slots.checkedIcon&&(T.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(T.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const M=s.slots.text(C);T.default=()=>[M]}else{const M=Do(r,C);T.default=()=>M}let w=t.h(l,A,T);d.push(w)}),d};return()=>{const d=f(),g={class:`${e}`,ref:v,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:y.value,"onUpdate:modelValue":b},C=t.h(o,g,{default:()=>d}),B={default:()=>C};B.label=s.slots.default,B.prepend=s.slots.prepend,B.append=s.slots.append,B.fixedPreTip=s.slots.fixedPreTip,B.fixedTip=s.slots.fixedTip;const S=ve(r,ge,me);return t.h(a,{...S,prop:`${r.prop}_item`},B)}}else return()=>{const f=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:v,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:m.value,modelValue:y,"onUpdate:modelValue":b},{default:()=>f})}}}}const{componentName:Jf,create:_f,scope:em}=X("checkbox-item"),cl=_f(Zf(Jf,em,Se,Xn,Yn)),Io={modelValue:{type:[String,Number,Boolean],default:!1},disabled:{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:tm,create:nm}=X("switch"),om=nm({components:{Loading1:oe.Loading1},props:{...Io},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const i=tm;return{[i]:!0,[a.value?"fox-switch-open":"fox-switch-close"]:!0,[`${i}-base`]:!0,"is-disabled":e.disabled}}),l=t.computed(()=>({backgroundColor:a.value?e.activeColor:e.inactiveColor}));let r="";const s=i=>{if(e.disabled||e.loading)return;r="click";const c=a.value?e.inactiveValue:e.activeValue;n("update:modelValue",c),n("change",c,i)};return t.watch(()=>e.modelValue,i=>{r=="click"?r="":n("change",i)}),{classes:o,style:l,isActive:a,onClick:s}}}),lm={class:"fox-switch-button"};function am(e,n,a,o,l,r){const s=t.resolveComponent("Loading1");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i)),style:t.normalizeStyle(e.style)},[t.createElementVNode("view",lm,[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 Qn=ne(om,[["render",am]]);function rm(e,n,a,o){return{props:{...me,...ge,...Io},emits:["change","update:modelValue","setValue"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),m=e,p=xe(l,"modelValue",null,c),u=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const k={...ve(l,Io),disabled:s.value||i.value,value:p.value,"onUpdate:modelValue":u},y=[],b=t.h(o,k);y.push(b);const v={default:()=>y};v.label=r.slots.default,v.fixedPreTip=r.slots.fixedPreTip,v.fixedTip=r.slots.fixedTip;const f=ve(l,ge,me);return f["content-class"]=m,t.h(a,{...f,prop:`${l.prop}_item`},v)}}}}const{componentName:sm,create:im,scope:cm}=X("switch-item"),ul=im(rm(sm,cm,Se,Qn));function um(e,n,a,o){return{props:{...me,...ge,placeholder:{type:String,default:""},textAlign:{type:String},modelValue:{type:[String],required:!1},desc:{type:[String],required:!1},icon:{type:[Object],required:!1},iconSize:{type:[String],required:!1,default:""}},emits:["click","focus","blur","change"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["change"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),{toLocaleRefs:m}=re.useFoxI18n(n),p=m(l,["placeholder"]),u=t.ref(l.modelValue);t.watch(()=>l.modelValue,M=>{u.value=M,c("change",M)});const h=t.computed(()=>({[`${e}`]:!0})),k=t.computed(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&ue(u.value),"is-disabled":s.value,"is-readonly":i.value})),y=Be(t.computed(()=>l.textAlign),"textAlign"),b=t.computed(()=>{const M={};return y.value&&(M["text-align"]=y.value),M}),v=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),f=t.computed(()=>ue(u.value)?p.placeholder.value:u.value),d=t.computed(()=>!ue(l.desc)||r.slots.sub),g=t.computed(()=>({[`${e}__sub`]:!0})),C=t.computed(()=>{const M={};return y.value&&(M["text-align"]=y.value),M}),B=()=>{c("focus",u.value)},S=()=>{c("blur",u.value)},N=t.computed(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),A=t.computed(()=>ye(l.unit)>0),V=M=>{s.value==!0||i.value==!0||c("click")},T=t.computed(()=>l.icon??a),w=t.computed(()=>({action:!0}));return()=>{const M=[];if(typeof r.slots.content=="function"){const I=r.slots.content();M.push(I)}else{const I=[];if(v.value){const F={tabIndex:0,class:k.value,style:b.value,onFocus:B,onBlur:S};let q=null;r.slots.main?q=t.h("view",F,[r.slots.main(f.value)]):q=t.h("view",F,[f.value]),I.push(q)}if(d.value){const F={tabIndex:0,class:g.value,style:C.value,onFocus:B,onBlur:S};let q=null;r.slots.sub?q=t.h("view",F,[r.slots.sub(l.desc)]):q=t.h("view",F,[l.desc]),I.push(q)}const L={class:h.value,onClick:V},x=t.h("view",L,I);M.push(x)}const P=[],$=ie(l.iconSize);let E=r.slots.icon;if(!E){const I={width:$,height:$,class:["action-icon"]};E=t.h(T.value,I)}const K={class:w.value,onClick:V},D=t.h("view",K,{default:()=>[E]});if(P.push(D),A.value){const I=t.h("view",{},[l.unit]);P.push(I)}const W={class:N.value},H=t.h("view",W,{default:()=>P});M.push(H);const Z={default:()=>M};Z.label=r.slots.default,Z.prepend=r.slots.prepend,Z.append=r.slots.append,Z.fixedPreTip=r.slots.fixedPreTip,Z.fixedTip=r.slots.fixedTip;const _=ve(l,ge,me);return t.h(o,{..._,prop:`${l.prop}_item`},Z)}}}}const{componentName:dm,create:fm,scope:mm}=X("link-item"),dl=fm(um(dm,mm,oe.ArrowRight,Se)),qo={count:{type:[String,Number],default:5},modelValue:{type:[String,Number],default:0},customIcon:{type:Object},size:{type:[String,Number],default:void 0},activeColor:{type:String,default:""},voidColor:{type:String,default:""},readonly:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},allowHalf:{type:Boolean,default:!1},touchable:{type:Boolean,default:!0},spacing:{type:[String,Number],default:void 0}},{create:pm,componentName:hm}=X("rate"),gm=pm({props:{...qo},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[hm]:!0})),r=k=>{n("update:modelValue",k),n("change",k)},s=(k,y)=>{if(e.disabled||e.readonly)return;let b=0;y===1&&e.modelValue===y||(b=y,e.allowHalf&&k==2&&(b-=.5)),r(b)},i=(k,y,b)=>{let v=0;for(let f=y.value.length-1;f>=0;f--){const d=y.value[f];if(k>d.offsetLeft){b?v=f+(k>d.offsetLeft+d.clientWidth/2?1:.5):v=f+1;break}}return v},c=_e(),m={onTouchStart(k){!e.touchable||e.readonly||c.start(k)},onTouchMove(k){e.touchable&&(c.move(k),c.isHorizontal()&&o.value&&(k.preventDefault(),r(i(c.moveX.value,o,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),u=t.computed(()=>e.customIcon??oe.StarFillN);return{classes:l,...m,onClick:s,toPxDesc:he,renderIcon:(k,y)=>t.h(k,y),rateRefs:o,refRandomId:p,slots:a,customIcon:u}}}),ym=["id"],vm={class:"fox-rate-item__icon--full"},bm={key:0,class:"fox-rate-item__icon--half"},km={key:1,class:"fox-rate-item__icon--half"};function Sm(e,n,a,o,l,r){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(s<Number(e.count)?{marginRight:e.toPxDesc(e.spacing)}:{})},[t.createElementVNode("view",vm,[(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",bm,[(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",km,[(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,ym))),128))],34)}const kt=ne(gm,[["render",Sm]]);function Cm(e,n,a,o){return{props:{...me,...ge,...qo},emits:["change","update:modelValue","setValue"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),m=e,p=xe(l,"modelValue",null,c),u=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const k={...ve(l,qo),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":u},y=[],b=t.h(o,k);y.push(b);const v={default:()=>y};if(r.slots.default){const g=r.slots.default();v.label=()=>g}const f=ve(l,ge,me);return f["content-class"]=m,t.h(a,f,v)}}}}const{componentName:wm,create:Nm,scope:Bm}=X("rate-item"),fl=Nm(Cm(wm,Bm,Se,kt)),Am=/scroll|auto|overlay/i,$s=window;function Vm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function Mo(e,n=$s){let a=e;for(;a&&a!==n&&Vm(a);){const{overflowY:o}=window.getComputedStyle(a);if(Am.test(o))return a;a=a.parentNode}return n}function Es(e,n=$s){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=Mo(e.value,n))}),a}const xs=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0,Tm={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},immediate:{type:[Boolean],default:!1}};function $m(e,n,a){return{props:{...Tm},emits:["scroll-change","load-more","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["pullText","loadText","loadMoreText"]),c=t.ref(),m=Es(c),p=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),u=t.computed(()=>({[e]:!0})),h=d=>d?d.offsetTop+h(d.offsetParent):0,k=()=>{let d=0,g=0,C="down";if(m.value==window){const B=xs();c.value&&(d=h(c.value)+c.value.offsetHeight-B-window.innerHeight),g=B}else{const{scrollHeight:B,clientHeight:S,scrollTop:N}=m.value;d=B-S-N,g=N}return p.beforeScrollTop>g?C="up":C="down",p.beforeScrollTop=g,l("scroll-change",g),d<=o.threshold&&C=="down"},y=()=>{Xe(()=>{if(!k()||!o.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,l("update:modelValue",!0),t.nextTick(()=>l("load-more"))})},b=()=>{m.value&&m.value.addEventListener("scroll",y,o.useCapture)},v=()=>{m.value&&m.value.removeEventListener("scroll",y,o.useCapture)};t.onMounted(()=>{b(),o.immediate&&y()}),t.onUnmounted(()=>{v()});const f=t.ref(!1);return t.onActivated(()=>{f.value&&(f.value=!1,b())}),t.onDeactivated(()=>{f.value=!0,v()}),t.watch(()=>o.modelValue,d=>{d||(p.isInfiniting=!1)}),()=>{const d={class:"fox-infinite__container"},g=t.h("view",d,[r?.default?.()]),C=[];if(p.isInfiniting){let A=r?.loading?.()??null;if(!A){let w=r?.loadingIcon?.()??null;if(!w){const $={class:["fox-infinite__bottom-box__img"]};w=t.h(a,$)}const M={class:"fox-infinite__bottom-box__text"},P=t.h("view",M,[i.loadText.value]);A=[w,P]}const V={class:"fox-infinite__bottom-box"},T=t.h("view",V,A);C.push(T)}else if(!o.hasMore){let A=r?.finished?.()??null;if(!A){const V={class:"fox-infinite__bottom-tips"};A=t.h("view",V,[i.loadMoreText.value]),C.push(A)}}const B={class:"fox-infinite__bottom"},S=t.h("view",B,C),N={class:u.value,ref:c};return t.h("view",N,[g,S])}}}}const{componentName:Em,create:xm,scope:Dm}=X("infinite-loading"),Gn=xm($m(Em,Dm,oe.Loading)),{componentName:Im,create:qm}=X("button"),Mm=qm({components:{Loading:oe.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:n,slots:a}){const{type:o,size:l,shape:r,disabled:s,loading:i,color:c,plain:m,block:p}=t.toRefs(e),u=y=>{!i.value&&!s.value&&n("click",y)},h=t.computed(()=>{const y=Im;return{[y]:!0,[`${y}--${o.value}`]:o.value,[`${y}--${l.value}`]:l.value,[`${y}--${r.value}`]:r.value,[`${y}--plain`]:m.value,[`${y}--block`]:p.value,[`${y}--disabled`]:s.value,[`${y}--loading`]:i.value}}),k=t.computed(()=>{const y={};return c?.value&&(m.value?(y.color=c.value,y.background="#fff",c.value?.includes("gradient")||(y.borderColor=c.value)):(y.color="#fff",y.background=c.value)),y});return{handleClick:u,classes:h,getStyle:k}}}),Pm={class:"fox-button__wrap"};function Lm(e,n,a,o,l,r){const s=t.resolveComponent("Loading");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",Pm,[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 Me=ne(Mm,[["render",Lm]]),zm={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},background:{type:String,default:""},inputBackground:{type:String,default:""},focusStyle:{type:Object,default:()=>({})},autofocus:{type:Boolean,default:!1},autoblur:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},inputAlign:{type:String,default:"left"}},Fm=(e,n,a)=>({props:{...zm},emits:["change","update:modelValue","blur","focus","clear","search","click-input","keyup-input","click-left-icon","click-right-icon"],setup(o,{slots:l}){const{emitEvent:r}=Bt(),{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["placeholder"]),c=t.reactive({active:!1}),m=t.computed(()=>({background:o.background})),p=t.computed(()=>({background:o.inputBackground})),u=V=>{let w=V.target.value;o.maxLength&&w.length>Number(o.maxLength)&&(w=w.slice(0,Number(o.maxLength))),r("update:modelValue",w,V),r("change",w,V)},h=t.ref({}),k=V=>{let w=V.target.value;c.active=!0,h.value=o.focusStyle,r("focus",w,V)},y=V=>{setTimeout(()=>{c.active=!1},0);let w=V.target.value;o.maxLength&&w.length>Number(o.maxLength)&&(w=w.slice(0,Number(o.maxLength))),h.value={},r("blur",w,V)},b=V=>{r("update:modelValue","",V),r("change","",V),r("clear","")},v=t.computed(()=>String(o.modelValue).length>0),f=t.computed(()=>{const V={};return v.value||(V.display="none"),V}),d=()=>{o.autoblur&&N.value?.blur(),r("search",o.modelValue)},g=V=>{r("keyup-input",V),V.key.toLocaleUpperCase()==="ENTER"&&d()},C=V=>{r("click-input",V)},B=V=>{r("click-left-icon",o.modelValue,V)},S=t.computed(()=>({textAlign:o.inputAlign})),N=t.ref(null);t.onMounted(()=>{o.autofocus&&N.value.focus()});const A=()=>{const V=[];if(l.leftin){const $={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:B},E=t.h("view",$,[l.leftin()]);V.push(E)}const T={ref:N,class:[`${e}__input-inner`],style:S.value,type:o.inputType,maxlengt:o.maxLength,placeholder:i.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:C,onInput:u,onFocus:k,onBlur:y,onkeyup:g},w=t.h("input",T);V.push(w);const M=[];if(o.clearable){const $={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:b},E=l?.clear?.()??o.clearIcon??a,K=t.h("view",$,[t.h(E)]);M.push(K)}if(l.rightin){const $={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},E=t.h("view",$,[l.rightin()]);M.push(E)}if(M.length>0){const $={class:`${e}__input-inner-right`},E=t.h("view",$,M);V.push(E)}const P={class:[`${e}__search-input`,`${o.shape}`],style:{...p.value,...h.value}};return t.h("view",P,V)};return()=>{const V=[];if(o.label){const M={class:`${e}__search-label`},P=t.h("span",M,[o.label]);V.push(P)}if(l.leftout){const M={class:[`${e}__search-icon`,`${e}__left-search-icon`]},P=t.h("view",M,[l.leftout()]);V.push(P)}const T=A();if(V.push(T),l.rightout){const M={class:[`${e}__search-icon`,`${e}__right-search-icon`]},P=t.h("view",M,[l.rightout()]);V.push(P)}const w={class:`${e}`,style:m.value};return t.h("view",w,V)}}}),{componentName:Rm,create:Om,scope:Km}=X("searchbar"),Zn=Om(Fm(Rm,Km,oe.CircleClose)),rn={poppable:{type:[Boolean],default:!1},modelValue:{type:[Array,Number,Boolean,String,Object],default:[]},visible:{type:[Boolean]},disabled:{type:[Boolean,String],required:!1},textPosition:{type:[String],required:!1},source:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},valueType:{type:String,required:!1,default:"value"},textKey:{type:String,required:!1,default:"text"},subTextKey:{type:String,required:!1,default:"subText"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},itemOptions:{type:[Object,Function],required:!1},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number]},pageSize:{type:[Number],required:!1,default:10},optionsHeight:{type:[String],required:!1},multiple:{type:[Boolean]},position:{type:[String],default:"bottom"},closeOnClickOverlay:{type:[Boolean],default:!0},title:{type:[String]},confirmText:{type:[String]},loadText:{type:[String]},loadMoreText:{type:[String]},isAutoBackFill:{type:[Boolean]},showHeader:{type:[Boolean],default:!0},showFooter:{type:[Boolean],default:!0},showSearchbar:{type:[Boolean],default:!0},searchKey:{type:String,required:!1,default:"keyword"},seachPlaceholder:{type:String,required:!1},popClass:{type:String,required:!1},popCloseable:{type:Boolean,required:!1,default:!0},beforeMethod:{type:Function},beforeClose:{type:Function}};function Um(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(sn(e,r)===a)return l}else if(o==="item"){if(qe(a,r))return l}else if(Ds(e,r)===a)return l}return-1}function sn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function yr(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Ds(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Hm(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function jm(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Wm=class{proxy;constructor(n){this.proxy=n}async load(n,a,o,l,r,s,i){if(Array.isArray(a)){let m=a;typeof i=="function"&&(m=m.filter(i));let p=(o-1)*l,u=p+l;u>m.length&&(u=m.length);const h=m.slice(p,u);return{totalSize:m.length,page:h}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s]);const c=Je(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ae(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r]))}};function Ym(){const e=t.getCurrentInstance();return new Wm(e.proxy)}function Xm(e,n,a,o,l,r,s,i,c,m,p){return{props:{...rn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(u,{slots:h}){const{emitEvent:k}=Bt(),{toLocaleRefs:y}=re.useFoxI18n(n),b=y(u,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),v=Ym(),f=t.ref([]),d=t.ref(0),g=t.ref(""),C=t.shallowRef(null),B=t.computed(()=>{const O={};return u.params&&Object.assign(O,u.params),ue(g.value)||(O[`${u.searchKey}`]=g.value),C.value&&Object.assign(O,C.value),O});let S=!0;const N=async(O,U,G)=>{try{if(V.value===!1)return;let Q=null;ue(g.value)||(Q=z=>{const ee=sn(u,z);if(typeof ee=="string"&&ee.includes(g.value))return!0;const te=yr(u,z);return!!(typeof te=="string"&&te.includes(g.value))});const J=await v.load("actionsheet",O,U,G,B.value,S,Q??void 0);S=!1,Array.isArray(J)?(f.value=J,d.value=1,V.value=!1):!Array.isArray(J.page)||J.page.length===0?(console.warn("[FoxUI] can not load more data"),V.value=!1):(Reflect.apply([].push,f.value,J.page),d.value=Math.ceil(f.value.length/u.pageSize),(J.totalSize&&f.value.length>=J.totalSize||G<J.page.length)&&(V.value=!1)),A.value=!1}catch(Q){console.error("[FoxUI] ActionSheet load more data fail",Q),V.value=!0,d.value=0,f.value=[]}setTimeout(()=>{k("loaded-data")},250)},A=t.ref(!1),V=t.ref(!0),T=async()=>{if(!u.source){A.value=!1;return}await N(u.source,d.value+1,u.pageSize)};t.watch(()=>g.value,(O,U)=>{ue(O)&&!ue(U)&&T()});const w=()=>{V.value=!0,d.value=0,f.value=[],u.source&&T()};t.watch([()=>u.source,()=>u.pageSize,()=>u.params],async([O,U,G])=>{u.source&&w()},{immediate:!0});const M=t.computed(()=>!u.multiple&&u.isAutoBackFill),P=t.ref([]);let $=null;const E=t.ref(u.visible);t.watch(()=>u.visible,O=>{E.value!==O&&(E.value=O),O?$=[...P.value]:$=null});const K=(O,U)=>{const G=[];return Array.isArray(O)||(O=[O]),O.forEach(Q=>{let J=Um(u,U,Q,u.valueType);J!==-1&&G.push(J)}),qe(G,P.value)?!1:(P.value=G,!0)};t.watch([()=>u.modelValue,()=>f.value],([O,U],[G,Q])=>{if(K(O,U)){const z=D();W(z)}},{deep:!0});const D=()=>{const O=[],U=[],G=[];for(let ee of P.value){const te=f.value[ee];U.push(te);const ae=sn(u,te);if(G.push(ae),u.valueType==="item")O.push(te);else if(u.valueType==="text")O.push(ae);else{const ce=Ds(u,te);O.push(ce)}}let Q=null,J=null,z=null;return u.multiple?(Q=O,J=G,z=U):(Q=O[0]??null,J=G[0]??null,z=U[0]??null),{value:Q,text:J,item:z}},W=O=>{k("update:modelValue",O.value),k("update:text",O.text),k("change",O.value,O.item,O.text)},H=()=>{$&&(P.value=$)},Z=O=>{const U=P.value.indexOf(O);u.multiple?U===-1?P.value.push(O):P.value.splice(U,1):U===-1?P.value=[O]:P.value=[],(M.value||!u.poppable&&!u.showFooter)&&I()},_=O=>{E.value=O,k("update:visible",O)},j=()=>{const O=()=>{H(),_(!1)},U=u.beforeMethod??u.beforeClose;if(typeof U=="function"){const G=U("close");gt(G)?G.then(Q=>{Q!==!1&&O()}).catch(()=>{O()}):G!==!1&&O()}else O()},I=()=>{const O=D(),U=()=>{W(O),_(!1)},G=u.beforeMethod??u.beforeClose;if(typeof G=="function"){const Q=G("confirm",O.value,O.item,O.text);gt(Q)?Q.then(J=>{J!==!1&&U()}).catch(()=>{U()}):Q!==!1&&U()}else U()},L=()=>{let O=b.title.value??"";h.title&&(O=h.title());const U=t.h("view",{class:["fox-actionsheet__header-title"]},[O]),G=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:j});return t.h("view",{class:["fox-actionsheet__header"]},[U,G])},x=()=>{let O=null;if(h.search)O=h.search();else{const U={onSearch:w,placeholder:b.seachPlaceholder.value,disabled:u.disabled,modelValue:g.value,"onUpdate:modelValue":G=>{g.value=G}};O=t.h(r,U,{leftin:()=>t.h(m)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[O])},F=(O,U,G,Q,J)=>{if(h.optionLabel)return h.optionLabel({text:O,checked:U,disabled:G,subText:Q,item:J});const z=[],ee=t.h("view",{class:"fox-actionsheet__list-item-text"},[O]);if(z.push(ee),Q){const te=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[Q]);z.push(te)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},z)},q=(O,U,G,Q)=>{if(h.optionIcon)return h.optionIcon({checked:O,disabled:U,iconSize:G,item:Q});if(O){if(h.checkedIcon)return h.checkedIcon({disabled:U,item:Q});{const J=u.checkedIcon??i;return t.h(J,{width:G,height:G,class:["fox-actionsheet__list-item-icon"]})}}else{if(h.icon)return h.icon({disabled:U,item:Q});{const J=u.icon??s;return t.h(J,{width:G,height:G,class:["fox-actionsheet__list-item-icon"]})}}},R=()=>{const O=[];for(let U=0;U<f.value.length;U++){const G=f.value[U],Q=sn(u,G),J=yr(u,G),z=["fox-actionsheet__list-item"],ee={};let te=Hm(u,G),ae=u.iconSize?ie(u.iconSize):null;const ce=jm(u,G,U);ce&&(te=te||ce.disabled,ce.class&&z.push(ce.class),ce.style&&Object.assign(ee,ce.style)),te=!!(u.disabled||te);const Ee=P.value.includes(U);te&&z.push("is-disabled"),Ee&&z.push("is-checked");const De={class:z,style:ee,key:`${U}`,onClick:()=>{te||Z(U)}};let Ye=[];if(h.option)Ye.push(h.option({item:G,checked:Ee,disabled:te}));else{const Rs=F(Q,Ee,te,J,G);Ye.push(Rs);const Os=q(Ee,te,ae,G);Ye.push(Os),u.textPosition==="right"&&Ye.reverse()}const eo=t.h("view",De,Ye);O.push(eo)}return O},Y=()=>{let O=[];if(h.buttons)O=h.buttons();else{const G=t.h(l,{type:"primary",block:"block",onClick:I,disabled:u.disabled},{default:()=>b.confirmText.value});O.push(G)}return t.h("view",{class:"fox-actionsheet__footer"},[O])};return $e({search:async(O=null,U=!0)=>{C.value=O&&t.toRaw(O),t.triggerRef(C),U&&(V.value=!0,d.value=0,f.value=[]),t.nextTick(()=>{T()})},clear:()=>{V.value=!0,d.value=0,f.value=[]},confirm:()=>{I()},cancel:()=>{j()}}),()=>{const O=[];if(u.showHeader){const ae=L();O.push(ae)}if(u.showSearchbar){const ae=x();O.push(ae)}let U=null;if(h.content)U=h.content();else{const ae=R(),ce={hasMore:V.value,loadText:b.loadText.value,loadMoreText:b.loadMoreText.value,modelValue:A.value,"onUpdate:modelValue":Ee=>{A.value=Ee},onLoadMore:T};U=t.h(o,ce,{default:()=>ae})}const G={};u.optionsHeight&&(G.height=u.optionsHeight);const Q={"fox-actionsheet__list":!0};u.poppable||(Q["fox-actionsheet__list--inner"]=!0);const J=t.h("view",{class:Q,style:G},[U]);if(O.push(J),u.showFooter&&!M.value){const ae=Y();O.push(ae)}const z=t.h("view",{class:"fox-actionsheet"},O);if(!u.poppable)return z;const ee=["fox-actionsheet__popup"];u.popClass&&ee.push(u.popClass);const te={popClass:ee.join(" "),visible:E.value,closeable:!1,"onUpdate:visible":_,position:u.position,round:"round",onClickOverlay:j,closeOnClickOverlay:u.closeOnClickOverlay};return t.h(a,te,{default:()=>z})}}}}const{componentName:Qm,create:Gm,scope:Zm}=X("actionsheet-pane"),Jn=Gm(Xm(Qm,Zm,de,Gn,Me,Zn,oe.CheckNormal,oe.Checked,oe.Close,oe.Search2)),vr={type:{type:String,default:"text"},placeholder:{type:String,default:""},textAlign:{type:String},maxLength:{type:[String,Number],required:!1},clearable:{type:Boolean,default:!0},unit:{type:[String],required:!1},text:{type:String},actionSheetClass:{type:String},separator:{type:[String],required:!1,defualt:" "}};function Jm(e,n,a,o,l,r,s){return{props:{...me,...ge,...vr,...rn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,c){const m=we(t.computed(()=>i.disabled)),p=Te(t.computed(()=>i.readonly)),{emitEvent:u}=Ne({componentName:e,validateCheckEvents:["blur","clear","change"],validateResetEvents:["focus","setValue"],get readonly(){return p.value},get disabled(){return m.value}},i.prop??c.attrs.name),{toLocaleRefs:h}=re.useFoxI18n(n),k=h(i,["placeholder"]),y=t.ref(!1),b=xe(i,"modelValue",null,u),v=t.ref(""),f=t.computed(()=>Array.isArray(v.value)?v.value.join(i.separator):v.value),d="fox-input-item",g=t.computed(()=>({[d]:!0,"is-disabled":m.value,"is-readonly":p.value})),C=Be(t.computed(()=>i.textAlign),"textAlign"),B=t.computed(()=>{const x={};return C.value&&(x["text-align"]=C.value),x}),S=t.ref(!1),N=()=>{S.value=!0},A=x=>{S.value=x},V=x=>{b.value=x,u("update:modelValue",x)},T=(x,F)=>{u("change",x,F)},w=x=>{let q=x.target.value;y.value=!0,u("focus",q,x)},M=x=>{setTimeout(()=>{y.value=!1},0);let q=x.target.value;i.maxLength&&q.length>Number(i.maxLength)&&(q=q.slice(0,Number(i.maxLength))),u("blur",q,x)},P=x=>{v.value=x,u("update:text",x)},$=t.computed(()=>({[`${d}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),E=t.computed(()=>ye(i.unit)>0),K=t.computed(()=>ye(i.unit)>0&&!y.value),D=t.computed(()=>({hidden:!K.value})),W=x=>{b.value="",u("update:modelValue","",x),u("change","",x),u("clear","")},H=t.computed(()=>i.clearable&&!m.value&&!p.value),Z=t.computed(()=>ye(b.value)>0&&y.value),_=x=>{Z.value?W(x):N()},j=t.computed(()=>Z.value&&H.value?o:l),I=t.computed(()=>({action:!0})),L=t.ref(null);return $e({search:x=>{L.value&&L.value.search(x)},clear:()=>{L.value&&L.value.clear},confirm:x=>{L.value&&L.value.confirm()},cancel:()=>{L.value&&L.value.cancel()}}),()=>{const x={class:g.value,style:B.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:N,onFocus:w,onBlur:M};s&&(x.disabled=!0);const F=[],q=t.h("input",x);F.push(q);const R=[],Y={class:["action-icon"]},O=t.h(j.value,Y),U={class:I.value,onClick:_},G=t.h("view",U,{default:()=>[O]});if(R.push(G),E.value){const De=t.h("view",{class:D.value},[i.unit]);R.push(De)}const Q={class:$.value},J=t.h("view",Q,{default:()=>R});F.push(J);const z={default:()=>F};z.label=c.slots.default,z.prepend=c.slots.prepend,z.append=c.slots.append,z.fixedPreTip=c.slots.fixedPreTip,z.fixedTip=c.slots.fixedTip;const ee=ve(i,rn);ee.ref=L,ee.class=i.actionsheetProps,ee.disabled=m.value||p.value,ee.visible=S.value,ee["onUpdate:visible"]=A,ee.modelValue=b.value,ee["onUpdate:modelValue"]=V,ee.text=v.value,ee["onUpdate:text"]=P,ee.onChange=T,ee.poppable=!0,ee["text-position"]=i.textPosition;const te={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},ae=t.h(r,ee,te);z.hide=()=>[ae];const ce=Nt(i,vr,rn);return t.h(a,{...ce,prop:`${i.prop}_item`},z)}}}}const{componentName:_m,create:ep,scope:tp}=X("actionsheet-item"),ml=ep(Jm(_m,tp,Se,oe.CircleClose,oe.ArrowRight,Jn)),Po={modelValue:{type:[Number,String],default:0},inputWidth:{type:[Number,String],default:""},buttonSize:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:9999},step:{type:[Number,String],default:1},decimalPlaces:{type:[Number,String],default:0},disabled:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},{componentName:np,create:op}=X("input-number"),lp=op({components:{Minus:oe.Minus,Plus:oe.Plus},props:{...Po},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const k=np;return{[k]:!0,[`${k}--disabled`]:e.disabled}}),o=k=>Number(k).toFixed(Number(e.decimalPlaces)),l=k=>{const y=k.target;n("update:modelValue",y.valueAsNumber,k)},r=(k,y)=>{let b=o(k);n("update:modelValue",b,y),n("change",b,y)},s=(k=Number(e.modelValue))=>k<Number(e.max)&&!e.disabled,i=(k=Number(e.modelValue))=>k>Number(e.min)&&!e.disabled,c=k=>{if(n("reduce",k),i()){let y=Number(e.modelValue)-Number(e.step);r(y,k)}else n("overlimit",k,"reduce")},m=k=>{if(n("add",k),s()){let y=Number(e.modelValue)+Number(e.step);r(y,k)}else n("overlimit",k,"add")},p=k=>{e.disabled||e.readonly||n("focus",k)},u=k=>{if(e.disabled||e.readonly)return;let b=k.target.valueAsNumber;b<Number(e.min)?b=Number(e.min):b>Number(e.max)&&(b=Number(e.max)),r(b,k),n("blur",k)},h=k=>{let y=Number(k);return y<Number(e.min)?y=Number(e.min):y>Number(e.max)&&(y=Number(e.max)),y};return t.watch(()=>[e.max,e.min],()=>{Number(e.min)>Number(e.max)&&console.warn("[FoxUI] <InputNumber>","props.max < props.min");const k=h(e.modelValue);k!==Number(e.modelValue)&&r(k,{})}),{classes:a,change:l,blur:u,focus:p,add:m,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:he}}}),ap=["min","max","disabled","readonly","value"];function rp(e,n,a,o,l,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:n[0]||(n[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:n[1]||(n[1]=(...c)=>e.change&&e.change(...c)),onBlur:n[2]||(n[2]=(...c)=>e.blur&&e.blur(...c)),onFocus:n[3]||(n[3]=(...c)=>e.focus&&e.focus(...c))},null,44,ap),t.createElementVNode("view",{class:t.normalizeClass(["fox-input-number__icon fox-input-number__right",{"fox-input-number__icon--disabled":!e.addAllow()}]),onClick:n[4]||(n[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 Ze=ne(lp,[["render",rp]]);function sp(e,n,a,o){return{props:{...me,...ge,...Po},emits:["change","update:modelValue","setValue"],setup(l,r){const s=we(t.computed(()=>l.disabled)),i=Te(t.computed(()=>l.readonly)),{emitEvent:c}=Ne({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),m=e,p=xe(l,"modelValue",null,c),u=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const h={"left-icon":r.slots["left-icon"],"right-icon":r.slots["right-icon"]},y={...ve(l,Po),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":u},b=t.h(o,y,h),v=[];v.push(b);const f={default:()=>v};f.label=r.slots.default,f.fixedPreTip=r.slots.fixedPreTip,f.fixedTip=r.slots.fixedTip;const d=ve(l,ge,me);return d["content-class"]=m,t.h(a,{...d,prop:`${l.prop}_item`},f)}}}}const{componentName:ip,create:cp,scope:up}=X("inputnumber-item"),pl=cp(sp(ip,up,Se,Ze)),dp={direction:{type:[String],default:"horizontal"},mode:{type:[String]},align:{type:[String]},modelValue:{type:[Number,Boolean,String]},disabled:{type:[Boolean,String],required:!1},data:{type:[Array,Function,String],required:!1},params:{type:[Object],required:!1},textKey:{type:String,required:!1,default:"text"},valueKey:{type:String,required:!1,default:"value"},disabledKey:{type:String,required:!1,default:"disabled"},visibleKey:{type:String,required:!1,default:"visible"},statusKey:{type:String,required:!1,default:"status"},doitKey:{type:String,required:!1,default:"doit"},labelKey:{type:String,required:!1,default:"label"},itemOptions:{type:[Object,Function],required:!1},step:{type:[Boolean,String]},clickNavigatePolicy:{type:[String]},icon:{type:[String]},iconSize:{type:[String,Number]},markIcon:{type:[String]},markIconSize:{type:[String,Number]},layout:{type:[Array],default:()=>["head","main","sub"]},scroll:{type:[Boolean]}};function fp(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function br(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function kr(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function mp(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function uo(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Sr(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Cr(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function fo(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let pp=class{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await Reflect.apply(a,null,[o]);const l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(l,null,[a,o]))}};function hp(){const e=t.getCurrentInstance();return new pp(e.proxy)}function gp(e,n,a,o){return{props:{...dp},emits:["update:modelValue","change","loaded-data"],setup(l,{slots:r,emit:s}){const i=e,c=hp(),m=t.ref([]),p=t.computed(()=>m.value.filter(I=>mp(l,I)!==!1)),u=t.ref(-1),h=()=>{const I=l.modelValue,L=p.value.findIndex(x=>br(l,x)===I);u.value!==L&&(u.value=L,l.scroll&&_(L,!1))};t.watch([()=>l.modelValue,p],()=>{h()});const k=I=>u.value===I,y=I=>{if(I<0&&I>=p.value.length)return!1;const L=p.value[I],F=(fo(l,L,I)??{}).status??uo(l,L);return k(I)||F},b=t.computed(()=>{const I={[i]:!0};return l.mode?I[`is-${l.mode}`]=!0:l.direction&&(I[`is-${l.direction}`]=!0),l.scroll&&(I["is-scroll"]=!0),I}),v=t.computed(()=>({})),f=(I,L,x,F,q)=>{const R={[`${i}__step`]:!0};return q&&(R[`${q}`]=!0),R[`${d.value}`]=!0,F&&(R["is-doit"]=!0),I===u.value?R["is-active"]=!0:L==="done"?R["is-done"]=!0:L==="error"?R["is-error"]=!0:L==="half"?R["is-half"]=!0:x?R["is-disabled"]=!0:R["is-normal"]=!0,R},d=t.computed(()=>{if(l.mode==="simple")return"start";let I=l.align;return I||(l.direction==="vertical"?I="start":I="center"),I}),g=(I,L={})=>{const x={...L};return d.value==="start"&&I===p.value.length-1?x.flex="0 0 auto":l.step?l.direction==="vertical"?x.height=l.step:x.width=l.step:x.flex="1 1 100%",x},C=(I,L)=>{let x={};if(L<p.value.length-1){const F=L+1;y(L)&&y(F)?l.direction==="vertical"?x.height="100%":x.width="100%":x.opacity="0"}return x},B=I=>p.value.length-1===I,S=(I,L)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&L>u.value||u.value===L)return;const x=u.value,F=L;u.value=L,l.scroll&&_(L,!1);const q=br(l,I);s("update:modelValue",q);const R={fromIndex:x,currentIndex:F,item:I,items:p.value,clickNavigatePolicy:l.clickNavigatePolicy};s("change",q,R)},N=t.ref(!0),A=async(I,L)=>{try{const x=await c.load("stesbar",I,L);Array.isArray(x)&&(m.value=x),N.value=!1}catch(x){console.error("[FoxUI] Load StepsBar Data Fail",x),m.value=[]}setTimeout(()=>{s("loaded-data")},250)};t.watch([()=>l.data,()=>l.params],async([I,L])=>{I&&A(I,L)},{immediate:!0});const V=(I,L,x,F,q)=>{let R=null;if(r.icon)R=r.icon({item:I,index:L,status:F});else if(F==="done"){const O={};l.iconSize&&(O.width=l.iconSize,O.height=l.iconSize);const U=l.icon??a;R=t.h(U,O)}else{const O=x??`${L+1}`;R=t.h("span",{},[O])}const Y={class:"fox-steps-bar__icon",onClick:()=>{q||S(I,L)}};return t.h("view",Y,[R])},T=(I,L,x)=>{const F=t.h("i",{class:"fox-steps-bar__line-inner",style:C(I,L)});return t.h("view",{class:"fox-steps-bar__line"},[F])},w=()=>{let I=null;if(r.markIcon)I=r.markIcon();else{const x={};l.iconSize&&(x.width=l.markIconSize,x.height=l.markIconSize);const F=l.markIcon??o;I=t.h(F,x)}return t.h("view",{class:"fox-steps-bar__mark"},[I])},M=(I,L,x,F,q)=>{const R=[];if(!B(L)){const U=T(I,L);R.push(U)}const Y=V(I,L,x,F,q);R.push(Y);const O={class:"fox-steps-bar__head"};return t.h("view",O,R)},P=(I,L,x,F)=>{let q=null;r.main?q=r.main({item:I,index:L,status:x}):q=fp(l,I);const R={class:"fox-steps-bar__main",onClick:()=>{F||S(I,L)}};return t.h("view",R,[q])},$=(I,L,x)=>{let F=null;if(r.sub){F=r.sub({item:I,index:L,status:x});const q={class:"fox-steps-bar__sub"};return t.h("view",q,[F])}return null},E=(I,L)=>{const x=fo(l,I,L)??{},F=x.status??uo(l,I);let q=kr(l,I);x.disabled===!0&&(q=!0),l.disabled===!0&&(q=!0);const R=x.label??Cr(l,I),Y=[],O=V(I,L,R,F,q);O&&Y.push(O);const U=P(I,L,F,q);if(U&&Y.push(U),!B(L)){const te=T(I,L);te&&Y.push(te)}const G=t.h("view",{class:"fox-steps-bar__head"},Y),Q=x.class,J=x.style??{};let z=Sr(l,I);x.doit===!0&&(z=!0);const ee={ref:Z(L),class:f(L,F,q,z,Q),style:g(L,J)};return t.h("view",ee,[G])},K=(I,L)=>{const x=fo(l,I,L)??{},F=x.status??uo(l,I);let q=kr(l,I);x.disabled===!0&&(q=!0),l.disabled===!0&&(q=!0);const R=x.label??Cr(l,I),Y=[],O=l.layout;for(let z of O)if(z==="head"){const ee=M(I,L,R,F,q);Y.push(ee)}else if(z==="main"){const ee=P(I,L,F,q);Y.push(ee)}else if(z==="sub"){const ee=$(I,L,F);Y.push(ee)}else if(z==="mark"){const ee=w();Y.push(ee)}const U=x.class,G=x.style??{};let Q=Sr(l,I);x.doit===!0&&(Q=!0);const J={ref:Z(L),class:f(L,F,q,Q,U),style:g(L,G)};return t.h("view",J,Y)},D=t.ref(),W=t.ref([]),H=(I,L)=>{W.value[L]=I},Z=I=>L=>{H(L,I)},_=(I,L)=>{const x=D.value,F=W.value;if(!x||!F||!F[I])return;const q=F[I];let R=0;l.direction==="vertical"?R=q.offsetTop-(x.offsetHeight-q.offsetHeight)/2:R=q.offsetLeft-(x.offsetWidth-q.offsetWidth)/2,j(x,R,L?0:.3,l.direction)},j=(I,L,x,F)=>{let q=0;const R=F==="horizontal"?I.scrollLeft:I.scrollTop,Y=x===0?1:Math.round(x*1e3/16);function O(){F==="horizontal"?I.scrollLeft+=(L-R)/Y:I.scrollTop+=(L-R)/Y,++q<Y&&Re(O)}O()};return()=>{const I=[];if(l.mode==="simple")for(let x=0;x<p.value.length;x++){const F=p.value[x],q=E(F,x);I.push(q)}else for(let x=0;x<p.value.length;x++){const F=p.value[x],q=K(F,x);I.push(q)}const L={ref:D,class:b.value,style:v.value};return t.h("view",L,I)}}}}const{componentName:yp,create:vp,scope:bp}=X("steps-bar"),hl=vp(gp(yp,bp,oe.Checklist,oe.ArrowRight));function kp(e){e.stopPropagation()}class Sp{startMove;updateMove;isTouch=!1;els=null;moving=!1;touchstart=null;touchmove=null;touchend=null;constructor(n,a){this.startMove=n,this.updateMove=a,this.isTouch=tl()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=nl(),o=(l,r,s,i)=>{this.updateMove({x:l,y:r})};this.touchstart=l=>{this.moving||(a.start(l),this.startMove({x:a.state.startX,y:a.state.startY}),document.addEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),document.addEventListener(this.isTouch?"touchend":"mouseup",this.touchend),this.moving=!0)},this.touchmove=l=>{this.moving&&(a.move(l),kp(l),o(a.state.deltaX,a.state.deltaY))},this.touchend=()=>{o(a.state.deltaX,a.state.deltaY),this.touchmove&&document.removeEventListener(this.isTouch?"touchmove":"mousemove",this.touchmove),this.touchend&&document.removeEventListener(this.isTouch?"touchend":"mouseup",this.touchend),a.reset(),this.moving=!1},this.els.forEach(l=>{this.touchstart&&l.addEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)})}close(){Array.isArray(this.els)&&this.els.forEach(n=>{this.touchstart&&n.removeEventListener(this.isTouch?"touchstart":"mousedown",this.touchstart)}),this.els=null}}function Cp(e,n){return new Sp(e,n)}const wp={customClass:{type:[String]},top:{type:[String]},right:{type:[String]},bottom:{type:[String]},left:{type:[String]},width:{type:[String]},height:{type:[String]},color:{type:[String]},background:{type:[String]},borderRadius:{type:[String]},draggable:{type:[Boolean]}},Np=(e,n,a,o=!1)=>({props:{...wp},emits:["click"],setup(l,{slots:r,emit:s}){const i=t.reactive({top:l.top,right:l.right,bottom:l.bottom,left:l.left}),c=t.computed(()=>{const d=[`${e}`];return l.customClass&&d.push(l.customClass),d}),m=t.computed(()=>{const d={};return ue(i.top)||(d.top=i.top),ue(i.right)||(d.right=i.right),ue(i.bottom)||(d.bottom=i.bottom),ue(i.left)||(d.left=i.left),ue(l.width)||(d.width=l.width),ue(l.height)||(d.height=l.height),ue(l.color)||(d.color=l.color),ue(l.background)||(d.background=l.background),ue(l.borderRadius)||(d["border-radius"]=l.borderRadius),d}),p=t.computed(()=>({[`${e}__icon`]:!0})),u=()=>{s("click")},h=t.ref(null),k=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},y={x:0,y:0},f=Cp(d=>{if(!h.value)return;const g=h.value;k(),i.left=g.offsetLeft,i.top=g.offsetTop,g.style.left=`${i.left}px`,g.style.top=`${i.top}px`,g.style.right=null,g.style.bottom=null,y.x=i.left,y.y=i.top},d=>{if(!h.value)return;const g=h.value;k(),i.left=y.x+d.x,i.top=y.y+d.y,g.style.left=`${i.left}px`,g.style.top=`${i.top}px`});return t.onMounted(()=>{if(l.draggable&&h.value){const d=[h.value];f.open(d)}}),t.onBeforeUnmount(()=>{l.draggable&&h.value&&f.close()}),()=>{let d=[];const g=typeof r.default=="function"?r.default():[];if(g&&g.length>0)d=g;else{const B=t.h(a,{class:p.value});d.push(B)}const C={ref:B=>{h.value=B},class:c.value,style:m.value,onClick:u};return t.h("view",C,d)}}}),{componentName:Bp,create:Ap,scope:Vp}=X("floating-button"),gl=Ap(Np(Bp,Vp,oe.Uploader,!1)),Tp={modelValue:{type:[Boolean],requried:!0},type:{type:[String],requried:!1,default:""},disabled:{type:[Boolean,String],requried:!1},textPosition:{type:[String],requried:!1},collapseText:{type:[String],requried:!1,default:"收起"},expandText:{type:[String],requried:!1,default:"更多"},icon:{type:[Object],requried:!1}};function $p(e,n,a){return{props:{...Tp},emits:["click","update:modelValue"],setup(o,{emit:l}){const r=t.computed(()=>{const u={[`${e}`]:!0};return o.disabled?u[`${e}--disabled`]=!0:u[`${e}--${o.type}`]=!0,u}),s=xe(o,"modelValue"),i=t.computed(()=>s.value?o.expandText??"":o.collapseText??""),c=t.computed(()=>({[`${e}__text`]:!0})),m=t.computed(()=>({[`${e}__icon`]:!0,"is-expand":!s.value,"is-collapse":s.value})),p=()=>{l("update:modelValue",!s.value)};return()=>{const u=[];if(i.value){const v={class:c.value},f=t.h("span",v,[i.value]);u.push(f)}const h={class:m.value},k=o.icon??a,y=t.h(k,h);return u.push(y),o.textPosition==="right"&&u.reverse(),t.h("view",{class:r.value,onClick:p},u)}}}}const{componentName:Ep,create:xp,scope:Dp}=X("more-button"),yl=xp($p(Ep,Dp,oe.RectUp)),Ip={width:{type:[String,Number]},height:{type:[String,Number]},type:{type:[String],required:!1,default:"info"},icon:{type:[String,Object],required:!1},closeIcon:{type:[String,Object],required:!1},showClose:{type:[Boolean],required:!1},title:{type:[String],required:!1},message:{type:[Array,String,Object],required:!1},showConfirmButton:{type:[Boolean],required:!1},confirmButtonText:{type:[String],required:!1},confirmText:{type:[String],required:!1},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},showCancelButton:{type:[Boolean],required:!1},cancelButtonText:{type:[String],required:!1},cancelText:{type:[String],required:!1},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},popClass:{type:[String]},position:{type:[String],default:"center"},closeOnClickOverlay:{type:[Boolean],required:!1,default:!0},unmount:{type:[Function],required:!1},callback:{type:[Function],required:!1}},qp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function Mp(e,n,a){return{props:{...Ip},setup(o,{attrs:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["confirmText","cancelText"]),c=e,m=t.ref(!0),p=C=>{m.value=C},u=C=>{if(typeof o.unmount=="function")try{o.unmount()}catch(B){console.error(B)}if(typeof o.callback=="function")try{o.callback(C)}catch(B){console.error(B)}},h=()=>{u("confirm")},k=()=>{u("cancel")},y=()=>{o.closeOnClickOverlay!==!1&&u("close")},b=(C,B)=>qp(C)?(B.src=C,t.h("img",B)):typeof C=="string"?(Array.isArray(B.class)?B.class.push(C):B.class&&typeof B.class=="object"?B[`${C}`]=!0:typeof B.class=="string"?B.class=`${B.class}, ${C}`:B.class=C,t.h(o.tag,B)):t.h(C,B),v=()=>{const C=[];if(o.icon){const S={class:[`${c}__header-icon`]},N=b(o.icon,S);C.push(N)}if(o.title){const S=t.h("view",{class:`${c}__header-title`},[o.title]);C.push(S)}if(o.showClose&&o.closeIcon){const S={class:[`${c}__header-close-icon`],onClick:y},N=b(o.closeIcon,S);C.push(N)}const B={class:[`${c}__header`]};return t.h("view",B,C)},f=(C,B)=>{const S=[];if(B){const A={class:`${c}__group-title`},V=t.h("view",A,[B]);S.push(V)}if(C){const A=[];Array.isArray(C)||(C=[C]);for(let V of C){const T={class:`${c}__group-row`,innerHTML:V},w=t.h("view",T);A.push(w)}if(A.length>0){const V={class:`${c}__group-rows`},T=t.h("view",V,A);S.push(T)}}if(S.length===0)return null;const N={class:`${c}__group`};return t.h("view",N,S)},d=()=>{const C=[];if(typeof o.message=="string")C.push(o.message);else if(Array.isArray(o.message))for(let S of o.message)if(typeof S=="string"){const N=f(S);C.push(N)}else{const N=f(S.content,S.title);C.push(N)}else if(typeof o.message=="function"){const S=o.message();C.push(S)}else{const S=o.message;C.push(S)}const B={class:`${c}__body`};return t.h("view",B,C)},g=()=>{const C=[];if(o.showCancelButton){const S={class:[`${c}__footer-button`],style:{},onClick:k};o.cancelButtonClass&&S.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(S.style,o.cancleButtonStyle);const N=t.h("button",S,[o.cancelButtonText??i.cancelText.value]);C.push(N)}if(o.showConfirmButton){const S={class:[`${c}__footer-button`],style:{},onClick:h};o.confirmButtonClass&&S.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(S.style,o.confirmButtonStyle);const N=t.h("button",S,[o.confirmButtonText??i.confirmText.value]);C.push(N)}if(C.length===0)return null;const B={class:`${c}__footer`};return t.h("view",B,C)};return()=>{const C=[],B=v();B&&C.push(B);const S=d();S&&C.push(S);const N=g();N&&C.push(N);const A={class:{[`${c}`]:!0,[`${c}--${o.type||"info"}`]:!0}},V=t.h("view",A,C),T=[`${c}__popup`];o.popClass&&T.push(o.popClass);const w={};o.width&&(w.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(w.height=typeof o.height=="number"?`${o.height}px`:o.height);const M={popClass:T.join(" "),style:w,visible:m.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":p,position:o.position,round:"round",onClickOverlay:y,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,M,{default:()=>V})}}}}const{componentName:Pp,create:Lp,scope:zp}=X("messagebox"),Fp=Lp(Mp(Pp,zp,de)),Rp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M82.5121%201.93968L81.7498%206.07825C81.6498%206.6214%2081.1284%206.98064%2080.5853%206.8806C80.4326%206.85251%2080.2886%206.78925%2080.1646%206.69578L77.1586%204.43061C76.7175%204.09823%2076.6294%203.47123%2076.9618%203.03016C77.0552%202.90617%2077.1762%202.80562%2077.3153%202.73655L81.0834%200.863097C81.5779%200.617235%2082.1782%200.818843%2082.4241%201.31339C82.5204%201.50712%2082.5512%201.72688%2082.5121%201.93968Z'%20fill='%23FFD1C9'%20%3e%3c/path%3e%3cpath%20d='M3.08218%20102.2L6.53454%2094.2358C6.75419%2093.7291%207.34251%2093.4968%207.84925%2093.7164C7.99216%2093.7778%208.11815%2093.872%208.21791%2093.9909L13.2085%2099.9384C13.5635%20100.361%2013.5081%20100.992%2013.0852%20101.347C12.9665%20101.447%2012.8261%20101.518%2012.675%20101.554L4.23203%20103.571C3.69484%20103.699%203.15538%20103.367%203.02699%20102.83C2.97674%20102.62%202.99607%20102.399%203.08218%20102.2Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23FF5959'%20%3e%3c/circle%3e%3cpath%20d='M59.935%2049.6213C61.3827%2051.069%2061.3827%2053.4162%2059.935%2054.864L45.935%2068.864C44.4873%2070.3117%2042.1401%2070.3117%2040.6924%2068.864C39.2447%2067.4162%2039.2447%2065.069%2040.6924%2063.6213L54.6924%2049.6213C56.1401%2048.1736%2058.4873%2048.1736%2059.935%2049.6213Z'%20fill='%23FFB5AD'%20%3e%3c/path%3e%3cpath%20d='M40.6924%2049.6213C39.2447%2051.069%2039.2447%2053.4162%2040.6924%2054.864L54.6924%2068.864C56.1401%2070.3117%2058.4873%2070.3117%2059.935%2068.864C61.3827%2067.4162%2061.3827%2065.069%2059.935%2063.6213L45.935%2049.6213C44.4873%2048.1736%2042.1401%2048.1736%2040.6924%2049.6213Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%23FFD1C9'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%23FFB5AD'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L102%20110L102%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Op="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='110'%20viewBox='0%200%20102%20110'%20fill='none'%3e%3cpath%20d='M8%2087L8%2095C8%2095.5523%207.55228%2096%207%2096C6.44772%2096%206%2095.5523%206%2095L6%2087L2%2087C1.44772%2087%201%2086.5523%201%2086C1%2085.4477%201.44772%2085%202%2085L6%2085L6%2082C6%2081.4477%206.44772%2081%207%2081C7.55228%2081%208%2081.4477%208%2082L8%2085L12%2085C12.5523%2085%2013%2085.4477%2013%2086C13%2086.5523%2012.5523%2087%2012%2087L8%2087Z'%20fill-rule='evenodd'%20fill='%2396CEFF'%20%3e%3c/path%3e%3cpath%20d='M89%205L89%2010C89%2010.5523%2088.5523%2011%2088%2011C87.4477%2011%2087%2010.5523%2087%2010L87%205L85%205C84.4477%205%2084%204.55228%2084%204C84%203.44772%2084.4477%203%2085%203L87%203L87%201C87%200.447715%2087.4477%200%2088%200C88.5523%200%2089%200.447715%2089%201L89%203L91%203C91.5523%203%2092%203.44772%2092%204C92%204.55228%2091.5523%205%2091%205L89%205Z'%20fill-rule='evenodd'%20fill='%23BDE2FF'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='59'%20r='28'%20fill='%23237FFA'%20%3e%3c/circle%3e%3crect%20x='47.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%2396CEFF'%20%3e%3c/rect%3e%3crect%20x='47.5'%20y='66'%20width='7'%20height='7'%20rx='4'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='106.5'%20r='3.5'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='30'%20r='7'%20fill='%2396CEFF'%20%3e%3c/circle%3e%3c/svg%3e",Kp="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='102'%20height='105'%20viewBox='0%200%20102%20105'%20fill='none'%3e%3cpath%20d='M7%2076C7.55228%2076%208%2076.4477%208%2077L7.999%2079.999L12%2080C12.5523%2080%2013%2080.4477%2013%2081C13%2081.5523%2012.5523%2082%2012%2082L7.999%2081.999L8%2090C8%2090.5523%207.55228%2091%207%2091C6.44772%2091%206%2090.5523%206%2090L5.999%2081.999L2%2082C1.44772%2082%201%2081.5523%201%2081C1%2080.4477%201.44772%2080%202%2080L5.999%2079.999L6%2077C6%2076.4477%206.44772%2076%207%2076Z'%20fill='%2338D677'%20%3e%3c/path%3e%3cpath%20d='M75%201.72421e-32C75.5523%20-1.01453e-16%2076%200.447715%2076%201L76%202.999L78%203C78.5523%203%2079%203.44772%2079%204C79%204.55228%2078.5523%205%2078%205L76%204.999L76%2010C76%2010.5523%2075.5523%2011%2075%2011C74.4477%2011%2074%2010.5523%2074%2010L74%204.999L72%205C71.4477%205%2071%204.55228%2071%204C71%203.44772%2071.4477%203%2072%203L74%202.999L74%201C74%200.447715%2074.4477%201.01453e-16%2075%201.72421e-32Z'%20fill='%238BF0AD'%20%3e%3c/path%3e%3ccircle%20cx='51'%20cy='54'%20r='28'%20fill='%2338D677'%20%3e%3c/circle%3e%3cpath%20d='M36.8787%2051.8786C38.3265%2050.4309%2040.6736%2050.4309%2042.1213%2051.8786L50.1214%2059.8786C51.5691%2061.3263%2051.5691%2063.6735%2050.1214%2065.1212C48.6737%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212L36.8787%2057.1212C35.431%2055.6735%2035.431%2053.3263%2036.8787%2051.8786Z'%20fill='%23B3F2C6'%20%3e%3c/path%3e%3cpath%20d='M64.1214%2045.8786C65.5691%2047.3263%2065.5691%2049.6735%2064.1214%2051.1212L50.1213%2065.1212C48.6736%2066.5689%2046.3265%2066.5689%2044.8787%2065.1212C43.431%2063.6735%2043.431%2061.3263%2044.8787%2059.8786L58.8788%2045.8786C60.3265%2044.4309%2062.6737%2044.4309%2064.1214%2045.8786Z'%20fill='%23FFFFFF'%20%3e%3c/path%3e%3ccircle%20cx='3.5'%20cy='14.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='85.5'%20cy='101.5'%20r='3.5'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3ccircle%20cx='95'%20cy='25'%20r='7'%20fill='%23B3F2C6'%20%3e%3c/circle%3e%3c/svg%3e",Up="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20width='101'%20height='110'%20viewBox='0%200%20101%20110'%20fill='none'%3e%3cg%20clip-path='url(%23clip-path-0)'%3e%3cpath%20d='M81.512%201.93968L80.7498%206.07825C80.6498%206.6214%2080.1284%206.98064%2079.5852%206.8806C79.4326%206.85251%2079.2886%206.78925%2079.1645%206.69578L76.1585%204.43061C75.7175%204.09823%2075.6293%203.47123%2075.9617%203.03016C76.0552%202.90617%2076.1761%202.80562%2076.3152%202.73655L80.0833%200.863097C80.5779%200.617235%2081.1781%200.818843%2081.424%201.31339C81.5203%201.50712%2081.5512%201.72688%2081.512%201.93968Z'%20fill='%23FEFAE0'%20%3e%3c/path%3e%3cpath%20d='M2.08224%20102.2L5.5346%2094.2358C5.75425%2093.7291%206.34257%2093.4968%206.84931%2093.7164C6.99222%2093.7778%207.11822%2093.872%207.21798%2093.9909L12.2086%2099.9384C12.5636%20100.361%2012.5082%20100.992%2012.0853%20101.347C11.9666%20101.447%2011.8261%20101.518%2011.675%20101.554L3.23209%20103.571C2.6949%20103.699%202.15544%20103.367%202.02705%20102.83C1.97681%20102.62%201.99613%20102.399%202.08224%20102.2Z'%20fill='%23FEE789'%20%3e%3c/path%3e%3ccircle%20cx='50'%20cy='59'%20r='28'%20fill='%23FAB007'%20%3e%3c/circle%3e%3crect%20x='46.5'%20y='45'%20width='7'%20height='17'%20rx='3'%20fill='%23FEE789'%20%3e%3c/rect%3e%3crect%20x='46.5'%20y='66'%20width='7'%20height='7'%20rx='3.5'%20fill='%23FFFFFF'%20%3e%3c/rect%3e%3ccircle%20cx='3.5'%20cy='19.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='84.5'%20cy='106.5'%20r='3.5'%20fill='%23FEE789'%20%3e%3c/circle%3e%3ccircle%20cx='94'%20cy='30'%20r='7'%20fill='%23FEE789'%20%3e%3c/circle%3e%3c/g%3e%3cdefs%3e%3cclipPath%20id='clip-path-0'%3e%3cpath%20d='M0%20110L101%20110L101%200L0%200L0%20110Z'%20fill='white'/%3e%3c/clipPath%3e%3c/defs%3e%3c/svg%3e",Hp=new Ln,jp={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Wp=e=>{let n=document.body,a=e.teleport;a!="body"&&(typeof a=="string"?n=document.querySelector(a):a&&(n=e.teleport));const o=document.createElement("view"),l=`messagebox-${Hp.get()}`;o.id=l,o.classList.add("fox-messagebox__root"),e.zIndex&&(o.style.zIndex=`${e.zIndex}`),e.unmount=()=>{const s=document.querySelector(`#${l}`);s&&s.parentNode?.removeChild(s)};const r=t.createVNode(Fp,e);n.appendChild(o),t.render(r,o)},ot={show:(e,n,a,o)=>{const l={...jp};n&&!Array.isArray(n)&&typeof n=="object"?Object.assign(l,n):(n&&(l.message=n),a&&typeof a=="object"?Object.assign(l,a):(typeof a=="string"&&(l.title=a),o&&typeof o=="object"?Object.assign(l,o):typeof o=="string"&&(l.type=o)));const r=l.type??"info";return l.icon||(r==="success"?l.icon=Kp:r==="warning"?l.icon=Up:r==="error"?l.icon=Rp:l.icon=Op),e==="alert"?(l.showCancelButton=!1,l.showConfirmButton=!0):e==="confirm"&&(l.showCancelButton=!0,l.showConfirmButton=!0),l.showClose&&!l.closeIcon&&(l.closeIcon=oe.Close),new Promise((s,i)=>{const c=l.callback;l.callback=m=>{if(typeof c=="function")try{c(m)}catch(p){console.error(p)}s({action:m})},Wp(l)})},alert:(e,n,a)=>ot.show("alert",e,n,a),confirm:(e,n,a)=>ot.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=ot.alert,e.config.globalProperties.$confirm=ot.confirm}},Yp=(e,n,a)=>{n=n??{bubbles:!1,cancelable:!1,detail:void 0};const o=document.createEvent("Events");let l=!0,r=!0;for(let i in n)i==="bubbles"?l=!!n[i]:i==="cancelable"?r=!!n[i]:o[i]=n[i];o.initEvent(e,l,r),(a??document).dispatchEvent(o)},Xp=new Ln,Qp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Gp=e=>`${e}-${Xp.get()}`,Zp=Symbol.for("InnerPageScopeKey"),Jp=Symbol.for("PageWrapperKey"),_p="FoxLeave",eh="FoxLeaveEnd",th={width:{type:[String,Number]},height:{type:[String,Number]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},visible:{type:Boolean,default:!0},showDelay:{type:Number,default:10},showClose:{type:Boolean,default:!0},closeIcon:{type:Object},showHeader:{type:Boolean,default:!1},popClass:{type:String},popStyle:{type:Object},position:{type:String,default:"center"},mode:{type:String}};function nh(e,n,a,o){return{props:{...ze,...th},emits:["update:visible"],setup(l,{attrs:r,slots:s,emit:i}){t.provide(Zp,!0);const c={};t.provide(Jp,c);const m=S=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),p=()=>{m()},u=e,h=S=>{k.value=S,i("update:visible",S)},k=t.ref(!1),y=(S,N)=>Qp(S)?(N.src=S,t.h("img",N)):typeof S=="string"?(Array.isArray(N.class)?N.class.push(S):N.class&&typeof N.class=="object"?N[`${S}`]=!0:typeof N.class=="string"?N.class=`${N.class}, ${S}`:N.class=S,t.h(l.tag,N)):t.h(S,N),b=()=>{if(!l.showHeader)return null;const S=[];if(s.header){const A=s.header();S.push(A)}else if(l.title){const A=t.h("view",{class:`${u}__header-title`},[l.title]);S.push(A)}if(S.length===0)return null;const N={class:[`${u}__header`]};return t.h("view",N,S)},v=()=>{if(!l.showClose)return null;const S={class:[`${u}__close-icon`],onClick:p},N=l.closeIcon??o;return y(N,S)};let f=null;const d=S=>{Yp(eh,{},f)},g=Gp(e),C=()=>{h(!0)},B=()=>{if(!f)return;const S=f.querySelector(".fox-overlay");S&&(S.classList.add("overlay-fade-leave-active"),S.classList.add("overlay-fade-leave-to"));const N=f.querySelector(".fox-popup");N&&(N.classList.add(`fox-popup-slide-${l.position}-leave-active`),N.classList.add(`fox-popup-slide-${l.position}-leave-to`),N.addEventListener("animationend",d,{once:!0}),N.addEventListener("transitionend",d,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{f=document.querySelector(`.${g}`),f?.addEventListener(_p,B,{once:!0}),C()}),()=>{const S=[],N=b();N&&S.push(N);const A=v();A&&S.push(A);const V=s.default?s.default():[];Reflect.apply([].push,S,V);const T={[`${u}`]:!0};l.mode&&(T[`${u}--${l.mode}`]=!0);const w={class:T},M=t.h("view",w,S),P=[`${u}__popup`,g];l.popClass&&P.push(l.popClass),l.position&&P.push(`${u}__popup--${l.position}`);const $={};l.width&&($.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&($.height=typeof l.height=="number"?`${l.height}px`:l.height);const K={...ve(l,ze),popClass:P.join(" "),style:$,visible:k.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":h},D=t.h(a,K,{default:()=>M});return t.h("div",{class:[`${u}__root`,g]},[D])}}}}const{componentName:oh,create:lh,scope:ah}=X("popup-wrapper"),vl=lh(nh(oh,ah,de,oe.Close)),rh={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function sh(e,n,a,o){return{props:{...rh},emits:["update:visible"],setup(l,{emit:r,slots:s}){const i=c=>{r("update:visible",c)};return()=>{const c=[`${e}__popup`];l.popClass&&c.push(l.popClass);const m={popClass:c,style:l.popStyle??{},position:"top",zIndex:l.zIndex,closeOnClickOverlay:l.closeOnClickOverlay,teleportDisable:!0,visible:l.visible,"onUpdate:visible":i},p=t.h(a,m,s),u={class:`${e}`};return t.h("view",u,[p])}}}}const{componentName:ih,create:ch,scope:uh}=X("dropdown"),bl=ch(sh(ih,uh,de));function dh(e,n){const a=document.createRange();a.setStart(e,0),a.setEnd(e,e.childNodes.length);const o=a.getBoundingClientRect().width;if(o>0){n(o);return}e.classList.add("is-selectable"),setTimeout(()=>{a.setStart(e,0),a.setEnd(e,e.childNodes.length);const l=a.getBoundingClientRect().width;e.classList.remove("is-selectable"),n(l)},500)}const fh={tag:{type:[String],required:!1,default:"span"},showOverflowTooltip:{type:[Boolean],required:!1},showArrow:{type:[Boolean],required:!1,default:!0},showAfter:{type:[Number],required:!1,default:300},hideAfter:{type:[Number],required:!1,default:0},type:{type:[String],required:!1},size:{type:[String],required:!1},truncated:{type:[Boolean,String],required:!1,default:!0},numberFormat:{type:[Boolean],required:!1,default:!1},decimalLength:{type:[Number,String],required:!1,default:-1},autoPadding:{type:[Boolean,String],required:!1,default:!1},digits:{type:[Number,String],required:!1,default:4},separator:{type:String,required:!1,default:" "},highlightFilter:{type:[String,Function],required:!1},mark:{type:[Boolean],required:!1},color:{type:[String],required:!1},icon:{type:[Object],required:!1},textPosition:{type:String,default:"right"},textColor:{type:String}};function mh(e,n,a,o=!1){return{props:{...fh},emits:["click"],setup(l,r){const s=t.ref(null),i=t.computed(()=>{const g={[`${e}`]:!0,"is-truncated":l.truncated};return l.type&&(g[`${e}--${l.type??"default"}`]=!0),l.size&&(g[`${e}--${l.size}`]=!0),g}),c=t.computed(()=>{const g={},C=l.textColor??l.color;return C&&(g.color=C),g}),m=(g,C)=>{let B=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const S=l.highlightFilter;if(g.indexOf(S)!==-1){const A=g.replace(new RegExp(S,"g"),`<span>${S}</span>`);C.innerHTML=A,C.class["is-highlight"]=!0,B=t.h(l.tag,C)}}else if(typeof l.highlightFilter=="function"){const S=l.highlightFilter(g);S&&(C.innerHTML=S,C.class["is-highlight"]=!0,B=t.h(l.tag,C))}return B},p=g=>{r.emit("click",g)};let u="";const h=()=>{const g=s.value;if(!g)return;const C=g.clientWidth;dh(g,B=>{const S=g.innerHTML??"";ue(S)||B<C||(u?a?.show(g,S,{type:"text",id:u,showArrow:l.showArrow},!0):u=a?.show(g,S,{type:"text",showArrow:l.showArrow},!0)??"")})},k=()=>{u&&a?.hide(u)};let y=null;const b=g=>{y||(y=setTimeout(()=>{h(),y=null},l.showAfter??0))},v=g=>{y&&(clearTimeout(y),y=null),setTimeout(()=>{k()},l.hideAfter??0)},f=()=>{const g=s.value;g&&(g.addEventListener("mouseover",b),g.addEventListener("mouseleave",v))},d=()=>{const g=s.value;g&&(g.removeEventListener("mouseover",b),g.removeEventListener("mouseleave",v))};return t.onMounted(()=>{!pe(l.showOverflowTooltip)||!a||f()}),t.onBeforeUnmount(()=>{!pe(l.showOverflowTooltip)||!a||d()}),()=>{const g={onClick:p,class:i.value,style:c.value,ref:s};let C=null;if(pe(l.numberFormat)&&typeof r.slots.default=="function"){const A=r.slots.default();if(Array.isArray(A)&&A.length===1){const V=A[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const T=fe(l.digits),w=fe(l.decimalLength),M=pe(l.autoPadding);let P=`${A[0].children}`,$=P.split("").reverse().join("");$=kn($,w,M,T,l.separator),P=$.split("").reverse().join(""),l.highlightFilter!==void 0&&(C=m(P,g)),C||(g.innerHTML=P,C=t.h(l.tag,g))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const A=r.slots.default();if(Array.isArray(A)&&A.length===1){const V=A[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const T=`${A[0].children}`;C=m(T,g),C||(g.innerHTML=T,C=t.h(l.tag,g))}}}C||(C=t.h(l.tag,g,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return C;let S=null;if(l.icon){const A={[`${e}__mark-wrap`]:!0};l.type&&(A[`${e}__mark-wrap--${l.type}`]=!0);const V={},T=l.color;T&&(V.color=T);const w={class:A,style:V};S=t.h("view",w,t.h(l.icon))}else if(r.slots.mark){const A={[`${e}__mark-wrap`]:!0};l.type&&(A[`${e}__mark-wrap--${l.type}`]=!0);const V={},T=l.color;T&&(V.color=T);const w={class:A,style:V};S=t.h("view",w,{default:r.slots.mark})}else{const A={[`${e}__mark`]:!0};l.type&&(A[`${e}__mark--${l.type??"default"}`]=!0);const V={},T=l.color;T&&(V["background-color"]=T);const w={class:A,style:V};S=t.h("view",w)}const N={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",N,[S,C])}}}}const{componentName:ph,create:hh,scope:gh}=X("text"),kl=hh(mh(ph,gh,At,!1));function yh(e,n,a,o,l){let r=[];Array.isArray(e)?r=e:r=[e];const s=[],i=n[0];if(Array.isArray(e)&&!Array.isArray(i)&&!i[l]){let c=n;for(let m=0;c&&m<r.length;m++){let p=r[m],u=c.find(h=>h[o]===p);if(!u)break;s.push(u[a])}return s}if(Array.isArray(i))for(let c=0;c<n.length&&c<r.length;c++){let m=n[c],p=r[c];const u=m.find(h=>h[o]===p);if(!u)break;s.push(u[a])}else{let c=n;for(let m=0;c&&m<r.length;m++){let p=r[m],u=c.find(h=>h[o]===p);if(!u)break;s.push(u[a]),c=u[l]}}return s}class vh{proxy;constructor(n){this.proxy=n}async load(n,a,o){if(Array.isArray(a))return a;if(typeof a=="function")return await a(o);const l=Je(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ae(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function bh(){const e=t.getCurrentInstance();return new vh(e.proxy)}const kh={tag:{type:[String,Object],required:!1,default:"span"},resolveTag:{type:[Boolean],required:!1,default:!1},source:{type:[Array,Function,String],required:!1},sourceType:{type:[String],required:!1,default:"mapping"},params:{type:[Object,String],required:!1},modelValue:{type:[String,Boolean,Number,Array],required:!1},separator:{type:[String,Boolean,Number,Array],required:!1,default:"/"},optionType:{type:String,required:!1},textKey:{type:[String],required:!1,default:"text"},valueKey:{type:[String],required:!1,default:"value"},childrenKey:{type:[String],required:!1,default:"children"},emptyText:{type:[String],required:!1},emptyTag:{type:[String],required:!1,default:"span"},emptyClass:{type:[String],required:!1}};function Sh(e,n,a=!1){return{props:{...kh},setup(o,{attrs:l,slots:r}){const s=bh(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([p,u])=>{i.value=await s.load(o.sourceType,p,u)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let p=yh(o.modelValue,i.value,o.textKey,o.valueKey,o.childrenKey);return p.length==0?o.emptyText??"":p.length===1?o.optionType=="item"?`${o.modelValue}${o.separator}${p[0]}`:p[0]:p.join(o.separator)}),m=o.resolveTag?t.resolveComponent(o.tag):o.tag;return()=>{const p={...l};return r.default?r.default({text:c.value,value:o.modelValue}):o.resolveTag?o.emptyText!==void 0&&o.emptyText===c.value?t.h(o.emptyTag??"span",{...l,class:o.emptyClass},c.value):t.h(m,p,{default:()=>c.value}):t.h(m,p,c.value)}}}}const{componentName:Ch,create:wh,scope:Nh}=X("mapping"),Sl=wh(Sh(Ch,Nh,!1));function Bh(e,n){return{inheritAttrs:!1,props:{name:{type:[String],required:!1,default:""},config:{type:[Object],required:!1,default:{}}},setup(a,{slots:o}){return Zr(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:p2,create:Ah,scope:h2}=X("domain-provider"),Cl=Ah(Bh()),Vh={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function Th(e,n){return{inheritAttrs:!1,props:Vh,setup(a,{slots:o}){if(it&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const s=(h,k)=>{if(p===null){r.set(h,{visible:null,callback:k});return}l.has(h)&&p.unobserve(h),l.set(h,{visible:null,callback:k}),p.observe(h)},i=h=>{if(p===null){r.delete(h);return}l.has(h)&&(l.delete(h),p.unobserve(h))};let c=a.initialVisibleObserverSize;Hi({acquire:()=>{const h=c>0;return c--,h},get disabled(){return a.disabled},get initialHeight(){return a.initialInvisibleObserverHeight},observe:s,unobserve:i});let p=null;const u=(h,k,y)=>{p=new IntersectionObserver(b=>{for(let v of b){let f=!1;v.intersectionRatio>0&&(f=!0);const d=l.get(v.target);if(d)try{if(a.loadPolicy==="lazy"&&!f&&d.visible!==null)return;d.visible=f,d.callback(f)}catch(g){console.error(g)}}},{root:h,rootMargin:k,threshold:y}),r.forEach((b,v)=>{l.set(v,b),p?.observe(v)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([h,k])=>{if(k||!h||p)return;let y=null;typeof h=="string"?y=document.querySelector(h):y=h,y&&u(y,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:g2,create:$h,scope:y2}=X("rolling-provider"),wl=$h(Th()),{componentName:Eh,create:xh}=X("cell"),Dh=xh({components:{Right:oe.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:n}){const a=t.computed(()=>{const r=Eh;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:he(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),Ih={key:0,class:"fox-cell__icon"},qh={key:1,class:"fox-cell__title"},Mh={class:"title"},Ph={class:"fox-cell__title-desc"};function Lh(e,n,a,o,l,r){const s=t.resolveComponent("Right");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.baseStyle),onClick:n[0]||(n[0]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.renderSlot(e.$slots,"default",{},()=>[e.$slots.icon?(t.openBlock(),t.createElementBlock("view",Ih,[t.renderSlot(e.$slots,"icon")])):t.createCommentVNode("",!0),e.title||e.subTitle||e.$slots.title?(t.openBlock(),t.createElementBlock("view",qh,[e.subTitle?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.renderSlot(e.$slots,"title",{},()=>[t.createElementVNode("view",Mh,t.toDisplayString(e.title),1)]),t.createElementVNode("view",Ph,t.toDisplayString(e.subTitle),1)],64)):t.renderSlot(e.$slots,"title",{key:1},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),7)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"link",{},()=>[e.isLink?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const Nl=ne(Dh,[["render",Lh]]),{componentName:zh,create:Fh}=X("cell-group"),Rh=Fh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[zh]:!0}))}}}),Oh={key:1,class:"fox-cell-group__title"},Kh={key:3,class:"fox-cell-group__desc"},Uh={class:"fox-cell-group__wrap"};function Hh(e,n,a,o,l,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",Oh,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",Kh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Uh,[t.renderSlot(e.$slots,"default")])],2)}const Bl=ne(Rh,[["render",Hh]]),{componentName:jh,create:Wh}=X("image"),Yh=Wh({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:oe.Image,ImageError:oe.ImageError},emits:["click","load","error"],setup(e,{emit:n}){const a=t.reactive({loading:!0,isError:!1,slotLoding:t.useSlots().loading,slotError:t.useSlots().error}),o=t.computed(()=>{const k=jh;return{[k]:!0,[`${k}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const k={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(y=>{y.forEach(b=>{b.isIntersecting&&(r.value=!0,l.value.disconnect())})},k),s.value&&l.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let k={};return e.width&&(k.width=he(e.width)),e.height&&(k.height=he(e.height)),e.radius!==void 0&&e.radius!==null&&(k.overflow="hidden",k.borderRadius=he(e.radius)),k}),m=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,k=>{a.isError=!1,a.loading=!0});const p=()=>{a.loading=!1,n("load")},u=()=>{a.isError=!0,a.loading=!1,n("error")},h=k=>{n("click",k)};return{...t.toRefs(a),imageClick:h,classes:o,styles:m,stylebox:c,error:u,load:p,show:r,imgRef:s}}}),Xh=["src","date-src","alt"],Qh={key:0,class:"fox-img-loading"},Gh={key:1,class:"fox-img-error"};function Zh(e,n,a,o,l,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:n[2]||(n[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:n[0]||(n[0]=(...c)=>e.load&&e.load(...c)),onError:n[1]||(n[1]=(...c)=>e.error&&e.error(...c)),style:t.normalizeStyle(e.styles)},null,44,Xh),e.loading?(t.openBlock(),t.createElementBlock("div",Qh,[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",Gh,[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 Al=ne(Yh,[["render",Zh]]),{create:Jh}=X("layout"),Vl=Jh({}),{componentName:_h,create:eg}=X("col"),tg=eg({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=_h,a=t.inject("gutter"),o=t.computed(()=>({[n]:!0,[`${n}-gutter`]:a,[`fox-col-${e.span}`]:!0,[`fox-col-offset-${e.offset}`]:!0})),l=t.computed(()=>({paddingLeft:a/2+"px",paddingRight:a/2+"px"}));return{classes:o,style:l}}});function ng(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const Tl=ne(tg,[["render",ng]]),{componentName:og,create:lg}=X("row"),ag=lg({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=og;t.provide("gutter",e.gutter);const a=(l,r)=>l?r?`fox-row-${l}-${r}`:"":`fox-row-${r}`;return{classes:t.computed(()=>e.type==="flex"?`
6
6
  ${a("",e.type)}
7
7
  ${a("justify",e.justify)}
8
8
  ${a("align",e.align)}
@@ -10,4 +10,4 @@
10
10
  ${n}
11
11
  `:`
12
12
  ${n}
13
- `)}}});function ag(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Vl=ne(lg,[["render",ag]]),{create:rg}=X("sticky"),sg=rg({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:n}){const a=t.ref(),o=t.ref(),l=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),i=t.computed(()=>l.fixed?{[e.position]:`${r.value}px`,transform:l.transform?`translate3d(0, ${l.transform}px, 0)`:void 0,position:l.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const m=e.container;if(!a.value&&!m)return;const p=Ve(a),u=o.value,h=Ve(u),b=Ve(m);l.height=p.height;const y=()=>{let v=!1;if(e.position==="top")v=m?r.value>p.top&&b.bottom>0:r.value>p.top;else{const f=document.documentElement.clientHeight;v=m?b.bottom>0&&f-r.value-h.height>b.top:f-r.value<p.bottom}return v},k=()=>{if(m)if(e.position==="top"){const v=b.bottom-r.value-h.height;return v<0?v:0}else{const v=document.documentElement.clientHeight,f=b.bottom-(v-r.value);return f<0?f:0}return 0};l.transform=k(),l.fixed=y()};return t.watch(()=>l.fixed,m=>{n("change",m)}),t.onMounted(()=>{c(),Io(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Io(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function ig(e,n,a,o,l,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 Kt=ne(sg,[["render",ig]]),{componentName:cg,create:ug}=X("divider"),dg=ug({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:t.computed(()=>{const o=cg;let l={[o]:!0},r={};return e.direction==="horizontal"?r={...l,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:r={...l,[`${o}-vertical`]:e.direction==="vertical"},r})}}});function fg(e,n,a,o,l,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 Tl=ne(dg,[["render",fg]]);function mg(e,n){const a=[],o=l=>{Array.isArray(l)&&l.forEach(r=>{if(t.isVNode(r)){if(n){if(r.type&&r.type.name===n){a.push(r);return}}else a.push(r);r.component?.subTree&&o(r.component.subTree.children),r.children&&o(r.children)}})};return o(e),a}function pg(e,n,a){const o=mg(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function hg(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=i=>{i.proxy&&(a.push(t.markRaw(i)),pg(o,a,n))},r=i=>{a.splice(a.indexOf(t.markRaw(i)),1)},s=Object.assign;return i=>(t.provide(e,s({add:l,remove:r,internalChildren:a},i)),{internalChildren:a})}const{componentName:Cr}=X("grid"),xs=Symbol("grid"),gg={columnNum:{type:[Number,String],default:4},border:{type:Boolean,default:!0},gutter:{type:[Number,String],default:0},center:{type:Boolean,default:!0},square:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},direction:{type:String},clickable:{type:Boolean,default:!1}},yg={props:gg,setup(e,{slots:n}){hg(xs,`${Cr}-item`)({props:e});const a=t.computed(()=>{const l=Cr;return{[l]:!0,[`${l}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const l={};return e.gutter&&(l.paddingLeft=he(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:vg}=X("grid"),$l=vg(yg);function bg(e){const n=t.inject(e,null);if(n){const a=t.getCurrentInstance(),{add:o,remove:l,internalChildren:r}=n;o(a),t.onUnmounted(()=>l(a));const s=t.computed(()=>r.indexOf(a));return{parent:n,index:s}}return{parent:null,index:t.ref(-1)}}const{create:kg,componentName:wr}=X("grid-item"),Sg=kg({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=bg(xs);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[wr]:!0})),s=t.computed(()=>{const m={flexBasis:`${100/+l.columnNum}%`};return l.square?m.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(m.paddingRight=he(l.gutter),o.value>=l.columnNum&&(m.marginTop=he(l.gutter))),m}),i=t.computed(()=>{const m=`${wr}__content`;return{[`${m}`]:!0,[`${m}--border`]:l.border,[`${m}--surround`]:l.border&&l.gutter,[`${m}--center`]:l.center,[`${m}--square`]:l.square,[`${m}--reverse`]:l.reverse,[`${m}--${l.direction}`]:!!l.direction,[`${m}--clickable`]:l.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:m=>{n("click",m)}}}}),Cg={class:"fox-grid-item__text"};function wg(e,n,a,o,l,r){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)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",Cg,[e.text?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.text),1)],64)):t.renderSlot(e.$slots,"text",{key:1})])],2)],6)}const El=ne(Sg,[["render",wg]]),{componentName:Ng,create:Bg}=X("navbar"),Ag=Bg({components:{Left:oe.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:n}){const{border:a,fixed:o,safeAreaInsetTop:l,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let m=t.ref();const p=t.computed(()=>{const v=Ng;return{[v]:!0,[`${v}--border`]:a.value,[`${v}--fixed`]:o.value,[`${v}--safe-area-inset-top`]:l.value}}),u=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{m.value=c?.value?.getBoundingClientRect().height,i.value.style.height=m.value+"px"})});function h(){n("on-click-back")}function b(){n("on-click-title")}function y(){n("on-click-icon")}function k(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:p,styles:u,handleLeft:h,handleCenter:b,handleCenterIcon:y,handleRight:k}}}),Vg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Tg={key:1,class:"fox-navbar__text"},$g={class:"fox-navbar__title"},Eg={key:0,class:"fox-navbar__text"},xg={key:1,class:"fox-navbar__text"},Dg={class:"fox-navbar__title"},Ig={key:0,class:"fox-navbar__text"};function qg(e,n,a,o,l,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Vg,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:n[0]||(n[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",Tg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",$g,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[1]||(n[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:n[3]||(n[3]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",Eg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6)],512)):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles)},[t.createElementVNode("view",{class:"fox-navbar__left",onClick:n[5]||(n[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",xg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Dg,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[6]||(n[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:n[8]||(n[8]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",Ig,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const xl=ne(Ag,[["render",qg]]),Mg=(e,n,a)=>({components:a,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}=re.useFoxI18n(n),s=r(o,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(u=!o.visible)=>{l("update:visible",u)},selected:(u,h)=>{l("selected",{item:u,event:h}),c.value=u.id},current:c}}}),{componentName:Pg,create:Lg,scope:zg}=X("fixednav"),Fg=Lg(Mg(Pg,zg,{[rt.name]:rt,Left:oe.Left})),Rg={class:"fox-fixednav__list"},Og=["onClick"],Kg=["src"],Ug={class:"span"},Hg={key:0,class:"b"},jg={class:"text"};function Wg(e,n,a,o,l,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:n[0]||(n[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",Rg,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.navList,(c,m)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-fixednav__list-item",{active:c.id==e.current}]),onClick:p=>e.selected(c,p),key:c.id||m},[t.createElementVNode("img",{src:c.icon},null,8,Kg),t.createElementVNode("view",Ug,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Hg,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Og))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{color:"#fff"}),t.createElementVNode("view",jg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Dl=ne(Fg,[["render",Wg]]),{componentName:Yg,create:Xg}=X("menu"),Qg=Xg({components:{ArrowUp2:oe.ArrowUp2,ArrowDown2:oe.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:n,slots:a}){const o=t.ref(),l=t.ref(0),r=t.ref(!1),s=()=>{const v=t.reactive([]),f=t.reactive([]);return{children:v,linkChildren:g=>{const C=S=>{S.proxy&&(f.push(S),v.push(S.proxy))},B=S=>{if(S.proxy){let N=f.indexOf(S);N>-1&&f.splice(N,1);let A=v.indexOf(S.proxy);N>-1&&v.splice(A,1)}};t.provide("menuParent",Object.assign({removeLink:B,link:C,children:v,internalChildren:f},g))}}},{children:i,linkChildren:c}=s(),m=t.computed(()=>i.some(v=>v.state.showWrapper)),p=t.computed(()=>({[Yg]:!0,"scroll-fixed":r.value})),u=()=>{if(o.value){const v=Ve(o);e.direction==="down"?l.value=v.bottom:l.value=window.innerHeight-v.top}};c({props:e,offset:l});const h=v=>{i.forEach((f,d)=>{d===v?(u(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},b=v=>Math.max(0,"scrollTop"in v?v.scrollTop:v.pageYOffset),y=()=>{const{scrollFixed:v}=e,f=b(window);r.value=f>(typeof v=="boolean"?30:Number(v))},k=v=>{let f="";const{titleClass:d}=e;return v&&(f+="active"),d&&(f+=` ${d}`),f};return t.onMounted(()=>{const{scrollFixed:v}=e;v&&window.addEventListener("scroll",y)}),t.onUnmounted(()=>{const{scrollFixed:v}=e;v&&window.removeEventListener("scroll",y)}),{toggleItem:h,children:i,opened:m,classes:p,barRef:o,getClasses:k}}}),Gg=["onClick"],Zg={class:"fox-menu__title-text"},Jg={class:"fox-menu__title-icon"};function _g(e,n,a,o,l,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,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:p=>!c.disabled&&e.toggleItem(m),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",Zg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Jg,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Gg))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Il=ne(Qg,[["render",_g]]),{componentName:ey,create:ty}=X("menu-item"),ny=ty({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[de.name]:de,Check:oe.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:a}){const o=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),l=()=>{const b=t.inject("menuParent",null);if(b){const y=t.getCurrentInstance(),{link:k,removeLink:v}=b;return k(y),t.onUnmounted(()=>{v(y)}),{parent:b}}},{parent:r}=l(),s=t.computed(()=>({[ey]:!0})),i=t.computed(()=>{const b={height:r.offset.value+"px"};return r.props.direction==="down"?b:{...b,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const b=e.options?.find(y=>y.value===e.modelValue);return b?b.text:""},state:o,parent:r,toggle:(b=!o.showPopup,y={})=>{b!==o.showPopup&&(o.showPopup=b,o.isShowPlaceholderElement=b,b&&(o.showWrapper=!0,n("open")))},onClick:b=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,b.value!==e.modelValue&&(n("update:modelValue",b.value),n("change",b.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),oy={class:"fox-menu-item__content fox-menu-item__overflow"},ly=["onClick"];function ay(e,n,a,o,l,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:n[0]||(n[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":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","destroy-on-close":!1,overlay:e.parent.props.overlay,onClosed:e.handleClose,lockScroll:e.parent.props.lockScroll,teleportDisable:!1,"close-on-click-overlay":e.parent.props.closeOnClickOverlay}),{default:t.withCtx(()=>[t.createElementVNode("view",oy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.options,(c,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:p=>e.onClick(c)},[c.value===e.modelValue?(t.openBlock(),t.createElementBlock("span",{key:0,class:t.normalizeClass(["fox-menu-item__span",[c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]])},[t.renderSlot(e.$slots,"icon",{},()=>[t.createVNode(s,t.mergeProps(e.$attrs,{color:e.parent.props.activeColor}),null,16,["color"])])],2)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass([c.value===e.modelValue?e.activeTitleClass:e.inactiveTitleClass]),style:t.normalizeStyle({color:c.value===e.modelValue?e.parent.props.activeColor:""})},t.toDisplayString(c.text),7)],14,ly))),128)),t.renderSlot(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}const ql=ne(ny,[["render",ay]]),{create:ry}=X("tabbar"),sy=ry({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,n){function a(l){o.value!==l&&(o.value=l,n.emit("update:modelValue",l),n.emit("change",l,o.children[l]))}const o=t.reactive({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:a});return t.provide("parent",o),t.watch(()=>e.modelValue,l=>{o.value=l}),{changeIndex:a}}});function iy(e,n,a,o,l,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 Ml=ne(sy,[["render",iy]]),{create:cy}=X("tabbar-item"),uy=cy({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,n){const a=t.inject("parent"),o=t.reactive({size:a.size,inactiveColor:a.inactiveColor,activeColor:a.activeColor,value:a.value,index:0}),l=t.getCurrentInstance();l!==null&&(m=>{if(m.proxy){let p=a.children.length;o.index=p;let u=Object.assign(m.proxy,{index:p});a.children.push(u)}})(l);const r=t.computed(()=>o.index===o.value);function s(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}const i=t.computed(()=>a?a.value:null);return t.watch(i,c=>{o.value=c}),{state:o,active:r,change:s}}}),dy={class:"fox-tabbar-item_icon-box"},fy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},my={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},py={key:1,class:"fox-tabbar-item_icon-box_dot"},hy={key:2},gy={key:0};function yy(e,n,a,o,l,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:n[0]||(n[0]=s=>e.change(e.state.index))},[t.createElementVNode("view",dy,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",fy,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",my,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",py)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",hy,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.icon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):t.createCommentVNode("",!0),!e.icon&&e.activeImg?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:t.normalizeStyle({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?(t.openBlock(),t.createElementBlock("view",gy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Pl=ne(uy,[["render",yy]]),{componentName:vy,create:by}=X("elevator"),ky=by({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,n){const a=t.ref(null),o=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}),l=t.computed(()=>({[vy]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>a.value.clientHeight),i=(f,d)=>f.getAttribute("data-"+d),c=f=>{t.nextTick(()=>{!o.listGroup.includes(f)&&f!=null&&o.listGroup.push(f)})},m=()=>{let f=0;o.listHeight.push(f);for(let d=0;d<o.listGroup.length;d++){let g=o.listGroup[d];f+=Math.floor(g.clientHeight),o.listHeight.push(f)}},p=f=>{!f&&f!==0||(f<0&&(f=0),f>o.listHeight.length-2&&(f=o.listHeight.length-2),o.codeIndex=f,a.value.scrollTo(0,o.listHeight[f]))},u=f=>{o.scrollStart=!0;let d=i(f.target,"index"),g=f.touches[0];o.touchState.y1=g.pageY,o.anchorIndex=+d,o.codeIndex=+d,p(+d)},h=f=>{let d=f.touches[0];o.touchState.y2=d.pageY;let g=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+g,p(o.codeIndex)},b=()=>{o.scrollStart=!1},y=(f,d)=>{n.emit("click-item",f,d),o.currentData=d,o.currentKey=f},k=f=>{n.emit("click-index",f)},v=f=>{let g=f.target.scrollTop;const C=o.listHeight;o.scrollY=g;for(let B=0;B<C.length-1;B++){let S=C[B],N=C[B+1];if(o.scrollY>=S&&o.scrollY<N){o.currentIndex=B,o.diff=N-o.scrollY;return}}o.currentIndex=C.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",v)}),$e({scrollTo:p}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(m)}),t.watch(()=>o.diff,f=>{const d=o.listHeight;let g=f>0&&f<e.titleHeight?f-e.titleHeight:0;o.scrollY+s.value===d[d.length-1]&&g!==0&&(g=0),o.fixedTop!==g&&(o.fixedTop=g)}),t.watch(()=>o.currentIndex,f=>{n.emit("change",f)}),{classes:l,...t.toRefs(o),fixedStyle:r,clientHeight:s,setListGroup:c,listview:a,touchStart:u,touchMove:h,touchEnd:b,handleClickItem:y,handleClickIndex:k}}}),Sy={class:"fox-elevator__list__item__code"},Cy=["onClick"],wy=["innerHTML"],Ny={class:"fox-elevator__fixed-title"},By={class:"fox-elevator__bars__inner"},Ay=["data-index","onClick"];function Vy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",{class:"fox-elevator__list",ref:"listview",style:t.normalizeStyle({height:isNaN(+e.height)?e.height:`${e.height}px`})},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,s=>(t.openBlock(),t.createElementBlock("view",{class:"fox-elevator__list__item",key:s[e.acceptKey],ref_for:!0,ref:e.setListGroup},[t.createElementVNode("view",Sy,t.toDisplayString(s[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===i.id&&e.currentKey===s[e.acceptKey]}]),key:i.id,onClick:c=>e.handleClickItem(s[e.acceptKey],i)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:1,item:i}):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:i.name},null,8,wy))],10,Cy))),128))]))),128)),e.isSticky?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__list__fixed",style:t.normalizeStyle(e.fixedStyle)},[t.createElementVNode("span",Ny,t.toDisplayString(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):t.createCommentVNode("",!0)],4),e.indexList.length?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__code--current"},t.toDisplayString(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-elevator__bars",onTouchstart:n[0]||(n[0]=(...s)=>e.touchStart&&e.touchStart(...s)),onTouchmove:n[1]||(n[1]=t.withModifiers((...s)=>e.touchMove&&e.touchMove(...s),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...s)=>e.touchEnd&&e.touchEnd(...s))},[t.createElementVNode("view",By,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:s[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":i,key:s[e.acceptKey],onClick:c=>e.handleClickIndex(s[e.acceptKey])},t.toDisplayString(s[e.acceptKey]),11,Ay))),128))])],32)],2)}const Ut=ne(ky,[["render",Vy]]),{componentName:y2,create:Ty,scope:$y}=X("pagination"),Ey=Ty({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:a}=re.useFoxI18n($y),o=a(e,["prevText","nextText"]),{modelValue:l,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:b,itemsPerPage:y}=t.toRefs(e),k=+h.value||Math.ceil(+b.value/+y.value);return Math.max(1,k)}),m=(h,b)=>{h>c.value||h<1||(h!=l.value&&n("update:modelValue",h),b&&n("change",h))},p=(h,b,y=!1)=>({number:h,text:b,active:y}),u=t.computed(()=>{if(r.value=="simple")return;let h=[];const b=c.value,y=+s.value;let k=1,v=b;const f=b>y;f&&(k=Math.max(l.value-Math.floor(y/2),1),v=k+y-1,v>b&&(v=b,k=v-y+1));for(var d=k;d<=v;d++){const g=p(d,d,l.value==d);h.push(g)}if(f&&y>0&&i.value){if(k>1){const g=p(k-1,"...");h.unshift(g)}if(v<b){const g=p(v+1,"...");h.push(g)}}return h});return t.watchEffect(()=>{m(l.value,!1)}),{...o,modelValue:l,select:m,countRef:c,mode:r,pages:u,forceEllipses:i}}}),xy={class:"fox-pagination"},Dy={key:0,class:"fox-pagination-contain"},Iy=["onClick"],qy={key:1,class:"fox-pagination-contain"},My={class:"fox-pagination-simple"};function Py(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",xy,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[0]=s=>e.select(e.modelValue-1,!0))},[t.renderSlot(e.$slots,"prev-text",{},()=>[t.createTextVNode(t.toDisplayString(e.prevText),1)])],2),e.mode=="multi"?(t.openBlock(),t.createElementBlock("view",Dy,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.pages,(s,i)=>(t.openBlock(),t.createElementBlock("view",{key:i+"pagination",class:t.normalizeClass(["fox-pagination-item",s.active?"active":""]),onClick:c=>e.select(s.number,!0)},[t.renderSlot(e.$slots,"page",{item:s},()=>[t.createTextVNode(t.toDisplayString(s.text),1)])],10,Iy))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",qy,[t.createElementVNode("view",My,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick:n[1]||(n[1]=s=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const Ll=ne(Ey,[["render",Py]]),Ly=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let h=await o(l,a);r.value.width=h.width||0,r.value.height=h.height||0}else r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=_e();let m="";const p=(h,b)=>{let y=h;switch(e.direction=="horizontal"?(m=h>0?"right":"left",y=Math.abs(y)/r.value.width*100):(m=b>0?"bottom":"top",y=b,y=Math.abs(y)/r.value?.height*100),y>85&&(y=85),m){case"left":case"top":n.isEnd()&&(y=0,i.moving=!1);break;case"right":case"bottom":y=-y,n.isBegin()&&(y=0,i.moving=!1);break}i.offset=y};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,p(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,m){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:l}};class zy{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Fy}=X("tabs"),Ry=Fy({components:{[Kt.name]:Kt,JoySmile:oe.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:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=T=>{T.forEach((w,M)=>{let P=w.type;if(P=P.name||P,P=="fox-tab-pane"){let $=new zy;if(w.props?.title||w.props?.["pane-key"]||w.props?.paneKey){let E=at(w.props?.["pane-key"]),K=E=="number"||E=="string"?String(w.props?.["pane-key"]):null,D=at(w.props?.paneKey),W=D=="number"||D=="string"?String(w.props?.paneKey):null;$.title=w.props?.title,$.paneKey=K||W||String(M),$.disabled=w.props?.disabled}r.value.push($)}else{if(w.children==" ")return;Array.isArray(w.children)&&s(w.children)}})},i=t.ref(e.modelValue||0),c=T=>{let w=r.value.findIndex(M=>M.paneKey==T);r.value.length==0||w==-1||(i.value=w)},m=t.computed(()=>e.titleScroll&&e.direction==="vertical"),p=t.ref(),u=t.ref([]),h=T=>{const w=p.value,M=u.value;if(!w||!M||!M[i.value])return;const P=M[i.value];let $=0;e.direction==="vertical"?$=P.offsetTop-w.offsetTop+10-(w.offsetHeight-P.offsetHeight)/2:$=P.offsetLeft-(w.offsetWidth-P.offsetWidth)/2,b(w,$,T?0:.3,e.direction)},b=(T,w,M,P)=>{let $=0;const E=P==="horizontal"?T.scrollLeft:T.scrollTop,K=M===0?1:Math.round(M*1e3/16);function D(){P==="horizontal"?T.scrollLeft+=(w-E)/K:T.scrollTop+=(w-E)/K,++$<K&&Re(D)}D()},y=(T=a.default?.())=>{r.value=[],T=T?.filter(w=>typeof w.children!="string"),T&&T.length&&s(T),c(e.modelValue),t.nextTick(()=>{h()})},k=T=>{l=T.fixed};t.watch(()=>a.default?.(),T=>{y(T)});const v=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,T=>{if(c(T),h(),l){let w=Ve(o.value).top+v(),M=Math.ceil(w-e.top);window.scrollTo({top:M,behavior:"smooth"})}}),t.onMounted(y),t.onActivated(y);const f={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,f.updateValue(r.value[i.value])},prev:()=>{i.value-=1,f.updateValue(r.value[i.value])},updateValue:T=>{n("update:modelValue",T.paneKey),n("change",T)},tabChange:(T,w)=>{n("click",T),!(T.disabled||i.value==w)&&(i.value=w,f.updateValue(T))},setTabItemRef:(T,w)=>{u.value[w]=T}},{tabsContentRef:d,touchState:g,touchMethods:C}=Ly(e,f),B=t.computed(()=>{let T=i.value*100;g.moving&&(T+=g.offset);let w={transform:e.direction=="horizontal"?`translate3d(-${T}%, 0, 0)`:`translate3d( 0,-${T}%, 0)`,transitionDuration:g.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(w={}),w}),S=t.computed(()=>({background:e.background})),N=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),A=t.computed(()=>{if(!e.titleGutter)return{};const T=he(e.titleGutter);return e.direction==="vertical"?{marginTop:T,marginBottom:T}:{marginLeft:T,marginRight:T}}),V=t.computed(()=>a.fixedTitle);return{navRef:p,tabsContentRef:d,titles:r,contentStyle:B,tabsNavStyle:S,titleStyle:A,tabsActiveStyle:N,container:o,getScrollY:m,onStickyScroll:k,...f,...C,hasFixedTitle:V}}}),Oy=["onClick"],Ky={key:0,class:"fox-tabs__titles-fixed-item"},Uy=["onClick"],Hy={key:0,class:"fox-tabs__titles-fixed-item"};function jy(e,n,a,o,l,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,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:p=>e.tabChange(c,m),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Oy))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Ky,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,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:p=>e.tabChange(c,m),key:c.paneKey,ref_for:!0,ref:p=>e.setTabItemRef(p,m)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Uy))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Hy,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[1]||(n[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[2]||(n[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const zl=ne(Ry,[["render",jy]]),{create:Wy}=X("tab-pane"),Yy=Wy({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=t.inject("tabsOpiton"),o=t.computed(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:o}}});function Xy(e,n,a,o,l,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 Fl=ne(Yy,[["render",Xy]]),{componentName:Nr,create:Qy}=X("indicator"),Gy=Qy({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:a}=t.toRefs(e);return{classes:t.computed(()=>{const l=Nr;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Nr,padZero:et}}});function Zy(e,n,a,o,l,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 Rl=ne(Gy,[["render",Zy]]),{componentName:Jy,create:_y}=X("side-navbar"),ev=_y({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=t.ref(null),a=t.reactive({count:1,observer:null}),o=t.computed(()=>({[Jy]:!0})),l=(s,i=1)=>{for(let c=0;c<s.length;c++){let m=s[c];m?.children?.[0]&&(m.children[0].style.paddingLeft=+e.offset*i+"px",m.className.includes("fox-side-navbar-item")||l(Array.from(m.children[1].children),++a.count))}a.count--},r=()=>{let s=n.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),l(s))};return t.onMounted(()=>{r(),a.observer=new MutationObserver(function(){a.count=1,r()}),a.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(a),list:n,classes:o}}}),tv={class:"fox-side-navbar__content"},nv={class:"fox-side-navbar__content__list",ref:"list"};function ov(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",tv,[t.createElementVNode("view",nv,[t.renderSlot(e.$slots,"default")],512)])],2)}const Ol=ne(ev,[["render",ov]]),{componentName:lv,create:av}=X("side-navbar-item"),rv=av({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[lv]:!0})),handleClick:()=>{n.emit("click")}})}),sv=["ikey"],iv={class:"fox-side-navbar-item__title"};function cv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[t.createElementVNode("span",iv,t.toDisplayString(e.title),1)],10,sv)}const Kl=ne(rv,[["render",cv]]),{componentName:uv,create:dv}=X("sub-side-navbar"),fv=dv({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:oe.ArrowDown2,ArrowUp2:oe.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=t.reactive({direction:""}),o=t.computed(()=>({[uv]:!0})),l=t.computed(()=>({height:a.direction?"0px":"auto"})),r=()=>{n.emit("title-click"),a.direction=a.direction?"":"up"};return t.onMounted(()=>{a.direction=e.open?"":"up"}),{...t.toRefs(a),classes:o,style:l,handleClick:r}}}),mv=["ikey"],pv={class:"fox-sub-side-navbar__title__text"},hv={class:"fox-sub-side-navbar__title__icon"};function gv(e,n,a,o,l,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:n[0]||(n[0]=t.withModifiers((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[t.createElementVNode("span",pv,t.toDisplayString(e.title),1),t.createElementVNode("span",hv,[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,mv)}const Ul=ne(fv,[["render",gv]]),{componentName:yv,create:vv}=X("range"),bv=vv({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}){const a=t.ref(0);let o,l;const r=t.ref(),s=t.ref(),i=_e(),c=t.computed(()=>{const{marks:$,max:E,min:K}=e;return Object.keys($).map(parseFloat).sort((H,Z)=>H-Z).filter(H=>H>=K&&H<=E)}),m=t.computed(()=>Number(e.max)-Number(e.min)),p=t.computed(()=>{const $=yv;return{[$]:!0,[`${$}-disabled`]:e.disabled,[`${$}-vertical`]:e.vertical,[`${$}-show-number`]:!e.hiddenRange}}),u=t.computed(()=>{const $="fox-range-container";return{[$]:!0,[`${$}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),b=t.computed(()=>({borderColor:e.buttonColor})),y=$=>!!e.range&&Array.isArray($),k=()=>{const{modelValue:$,min:E}=e;return y($)?`${($[1]-$[0])*100/m.value}%`:`${($-Number(E))*100/m.value}%`},v=()=>{const{modelValue:$,min:E}=e;return y($)?`${($[0]-Number(E))*100/m.value}%`:"0%"},f=t.computed(()=>e.vertical?{height:k(),top:v(),background:e.activeColor,transition:s.value?"none":void 0}:{width:k(),left:v(),background:e.activeColor,transition:s.value?"none":void 0}),d=$=>{const E="fox-range-mark",{modelValue:K,max:D,min:W}=e;let H=Number(W),Z=Number(D);if(e.range){const[j,I]=K;H=j,Z=I}else Z=K;let _=$<=Z&&$>=H;return{[`${E}-text`]:!0,[`${E}-text-active`]:_}},g=$=>{const{min:E,vertical:K}=e;let D={left:`${($-Number(E))/m.value*100}%`};return K&&(D={top:`${($-Number(E))/m.value*100}%`}),D},C=$=>{const{modelValue:E,max:K,min:D}=e;let W=Number(D),H=Number(K);if(e.range){const[j,I]=E;W=j,H=I}return{background:$<=H&&$>=W?e.activeColor:e.inactiveColor}},B=$=>{const{min:E,max:K,step:D}=e;return $=Math.max(+E,Math.min($,+K)),Math.round($/+D)*+D},S=($,E)=>JSON.stringify($)===JSON.stringify(E),N=$=>$[0]>$[1]?$.slice(0).reverse():$,A=($,E)=>{y($)?$=N($).map(B):$=B($),S($,e.modelValue)||n("update:modelValue",$),E&&!S($,o)&&n("change",$)},V=$=>{if(e.disabled)return;const{min:E,modelValue:K}=e,D=Ve(r);let W=$.clientX-D.left,H=D.width;e.vertical&&(W=$.clientY-D.top,H=D.height);const Z=Number(E)+W/H*m.value;if(y(K)){const[_,j]=K,I=(_+j)/2;Z<=I?A([Z,j],!0):A([_,Z],!0)}else A(Z,!0)},T=$=>{e.disabled||(i.start($),l=e.modelValue,y(l)?o=l.map(B):o=B(l),s.value="start")},w=$=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move($),s.value="draging";const E=Ve(r);let K=i.deltaX.value,D=E.width,W=K/D*m.value;e.vertical&&(K=i.deltaY.value,D=E.height,W=K/D*m.value),y(o)?l[a.value]=o[a.value]+W:l=o+W,A(l),$.stopPropagation(),$.preventDefault()},M=()=>{e.disabled||(s.value==="draging"&&(A(l,!0),n("drag-end")),s.value="")},P=$=>bn(e.modelValue)&&typeof $=="number"?e.modelValue[$]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:h,buttonStyle:b,onClick:V,onTouchStart:T,onTouchMove:w,onTouchEnd:M,...t.toRefs(e),barStyle:f,curValue:P,buttonIndex:a,containerClasses:u,markClassName:d,marksStyle:g,marksList:c,tickStyle:C}}}),kv={key:0,class:"fox-range-min"},Sv={key:0,class:"fox-range-mark"},Cv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],wv={key:0,class:"number"},Nv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Bv={key:0,class:"number"},Av={key:1,class:"fox-range-max"};function Vv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",kv,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((...s)=>e.onClick&&e.onClick(...s),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",Sv,[(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:n[0]||(n[0]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:n[1]||(n[1]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:n[3]||(n[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",wv,t.toDisplayString(e.curValue(s)),1))],4))],42,Cv)),64)):(t.openBlock(),t.createElementBlock("view",{key:1,role:"slider",class:"fox-range-button-wrapper",tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:n[4]||(n[4]=t.withModifiers(s=>{e.onTouchStart(s)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:n[6]||(n[6]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:n[8]||(n[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",Bv,t.toDisplayString(e.curValue()),1))],4))],40,Nv))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Av,t.toDisplayString(+e.max),1))],2)}const Ht=ne(bv,[["render",Vv]]),{create:Tv,scope:$v}=X("short-password"),Ev=Tv({components:{[de.name]:de,Tips:oe.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:n}){const{toLocaleRefs:a}=re.useFoxI18n($v),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>m(Number(e.length))),s=t.ref(e.visible),i=u=>{u.stopPropagation(),n("focus")};t.watch(()=>e.visible,u=>{s.value=u}),t.watch(()=>e.modelValue,u=>{l.value=u,String(u).length===r.value&&n("complete",u)});const c=()=>{n("update:visible",!1),n("close")},m=u=>Math.min(Math.max(4,u),6);return{comLen:r,realInput:l,onTouchStart:i,range:m,close:c,onTips:()=>{n("tips")},show:s,...o}}}),xv={class:"fox-short-password-title"},Dv={class:"fox-short-password-subtitle"},Iv={class:"fox-short-password-wrapper"},qv={key:0,class:"fox-short-password__item-icon"},Mv={class:"fox-short-password__message"},Pv={class:"fox-short-password--error"},Lv={key:0,class:"fox-short-password--forget"};function zv(e,n,a,o,l,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":n[2]||(n[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",xv,t.toDisplayString(e.title),1),t.createElementVNode("view",Dv,t.toDisplayString(e.desc),1),t.createElementVNode("div",Iv,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,m)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:m},[String(e.realInput).length>m?(t.openBlock(),t.createElementBlock("view",qv)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",Mv,[t.createElementVNode("view",Pv,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",Lv,[t.createVNode(s,{class:"icon",width:"11px",height:"11px"}),t.createElementVNode("view",{onClick:n[1]||(n[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 Hl=ne(Ev,[["render",zv]]);class Fv{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Rv=class{options;constructor(n){this.options=n}upload(){const n=this.options,a=new XMLHttpRequest;if(a.timeout=n.timeout,a.upload){a.upload.addEventListener("progress",o=>{n.onProgress?.(o,n)},!1),a.onreadystatechange=()=>{a.readyState===4&&(a.status==n.xhrState?n.onSuccess?.(a.responseText,n):n.onFailure?.(a.responseText,n))},a.withCredentials=n.withCredentials,a.open(n.method,n.url,!0);for(const[o,l]of Object.entries(n.headers))a.setRequestHeader(o,l);n.onStart?.(n),n.beforeXhrUpload?n.beforeXhrUpload(a,n):a.send(n.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}};class Ov{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const Ds=(e,{args:n=[],done:a,canceled:o})=>{if(e){const l=e.apply(null,n);gt(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:Kv}=X("progress"),Uv=Kv({components:{Checked:oe.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 n=!!t.useSlots().default,a=t.ref(e.strokeWidth+"px"),o=t.ref(),l=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:a,percentage:r,bgStyle:s,textStyle:i,progressOuter:o,insideText:l,slotDefault:n}}}),Hv={class:"fox-progress"},jv={key:0,class:"fox-progress-text"};function Wv(e,n,a,o,l,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",Hv,[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",jv,[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 jt=ne(Uv,[["render",Wv]]),{componentName:Yv,create:Xv,scope:Qv}=X("uploader"),Gv=Xv({components:{[jt.name]:jt,Photograph:oe.Photograph,Failure:oe.Failure,Loading:oe.Loading,Del:oe.Del,Link:oe.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,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(Qv),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[Yv]:!0})),s=()=>{let d={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(d.capture="camera"),t.h("input",d)},i=d=>{d.value=""},c=d=>{n("file-item-click",{fileItem:d})},m=(d,g)=>{const C=new Fv;C.url=e.url,C.formData=d.formData,C.timeout=e.timeout*1,C.method=e.method,C.xhrState=e.xhrState,C.headers=e.headers,C.withCredentials=e.withCredentials,C.beforeXhrUpload=e.beforeXhrUpload;try{C.sourceFile=d.formData.get(e.name)}catch{}C.onStart=S=>{d.status="ready",d.message=a("readyUpload"),p(g),n("start",S)},C.onProgress=(S,N)=>{d.status="uploading",d.message=a("uploading"),d.percentage=(S.loaded/S.total*100).toFixed(0),n("progress",{event:S,option:N,percentage:d.percentage})},C.onSuccess=(S,N)=>{d.status="success",d.message=a("success"),n("success",{responseText:S,option:N,fileItem:d}),n("update:fileList",o)},C.onFailure=(S,N)=>{d.status="error",d.message=a("error"),n("failure",{responseText:S,option:N,fileItem:d})};let B=new Rv(C);e.autoUpload?B.upload():l.push(new Promise((S,N)=>{S(B)}))},p=(d=-1)=>{d>-1?l.splice(d,1):(l=[],o.splice(0,o.length))},u=()=>{Promise.all(l).then(d=>{d.forEach(g=>g.upload())})},h=d=>{d.forEach((g,C)=>{const B=new FormData;for(const[N,A]of Object.entries(e.data))B.append(N,A);B.append(e.name,g);const S=t.reactive(new Ov);if(S.name=g.name,S.status="ready",S.type=g.type,S.formData=B,S.message=a("waitingUpload"),m(S,C),e.isPreview&&g.type.includes("image")){const N=new FileReader;N.onload=A=>{S.url=A.target.result,o.push(S)},N.readAsDataURL(g)}else o.push(S)})},b=d=>{const g=e.maximum*1,C=e.maximize*1,B=new Array;d=d.filter(N=>N.size>C?(B.push(N),!1):!0),B.length&&n("oversize",B);let S=d.length+o.length;return S>g&&d.splice(d.length-(S-g)),d},y=(d,g)=>{o.splice(g,1),n("delete",{file:d,fileList:o,index:g})},k=(d,g)=>{p(g),Ds(e.beforeDelete,{args:[d,o],done:()=>y(d,g)})},v=d=>{if(e.disabled)return;const g=d.target;let{files:C}=g;e.beforeUpload?e.beforeUpload(C).then(B=>f(B)):f(C),n("change",{fileList:o,event:d}),e.clearInput&&i(g)},f=d=>{const g=b(new Array().slice.call(d));h(g)};return{onChange:v,onDelete:k,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:p,submit:u,renderInput:s}}}),Zv={key:0,class:"fox-uploader__slot"},Jv={key:0,class:"fox-uploader__preview-img"},_v={key:0,class:"fox-uploader__preview__progress"},e0={class:"fox-uploader__preview__progress__msg"},t0=["onClick"],n0=["onClick","src"],o0={key:3,class:"fox-uploader__preview-img__file"},l0=["onClick"],a0={class:"file__name_tips"},r0={class:"tips"},s0={key:1,class:"fox-uploader__preview-list"},i0=["onClick"],c0={class:"file__name_tips"};function u0(e,n,a,o,l,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),m=t.resolveComponent("Del"),p=t.resolveComponent("fox-progress"),u=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",Zv,[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,b)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-uploader__preview",[e.listType]]),key:h.uid},[e.listType=="picture"&&!e.$slots.default?(t.openBlock(),t.createElementBlock("view",Jv,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",_v,[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",e0,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:y=>e.onDelete(h,b)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,t0)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:y=>e.fileItemClick(h),src:h.url},null,8,n0)):(t.openBlock(),t.createElementBlock("view",o0,[t.createElementVNode("view",{onClick:y=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",a0,t.toDisplayString(h.name),1)],8,l0)])),t.createElementVNode("view",r0,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",s0,[t.createElementVNode("view",{onClick:y=>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",c0,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(m,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:y=>e.onDelete(h,b)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,i0),h.status=="uploading"?(t.openBlock(),t.createBlock(p,{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(u,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const jl=ne(Gv,[["render",u0]]),d0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8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l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:m0,scope:p0}=X("number-keyboard"),h0=m0({components:{[de.name]:de},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:n}){const{toLocaleRefs:a}=re.useFoxI18n(p0),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:f}=e;let d={id:"lock",type:"lock"},g=Array.isArray(f)?f:[f];return g.length===1&&(d={id:g[0],type:"custom"}),[...c(),d,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const f=[];for(let d=1;d<=9;d++)f.push({id:d,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function m(){const f=c(),{customKey:d}=e;let g=Array.isArray(d)?d:[d];return g.length>2&&(g=[g[0],g[1]]),g.length==2&&e.title&&e.type!="rightColumn"&&(g=[g[0]]),g.length===1?e.title&&e.type!="rightColumn"?f.push({id:g[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:g[0],type:"custom"}):g.length===2&&f.push({id:g[0],type:"custom"},{id:0,type:"number"},{id:g[1],type:"custom"}),f}const p=t.computed(()=>e.type=="rightColumn"||e.title!=""?m():i()),u=()=>{e.visible&&n("blur")},h=f=>{const d=s.value;d&&!d.contains(f.target)&&u()};t.watch(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function b(f,d){d.stopPropagation(),l.value=f.id,(f.type=="number"||f.type=="custom")&&(n("input",f.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+f.id)),f.type=="lock"&&v(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function y(f){f.stopPropagation()}function k(f){f.preventDefault(),l.value=void 0}function v(){n("update:visible",!1),n("close")}return{...o,delImg:d0,lockImg:f0,clickKeyIndex:l,defaultKey:i,closeBoard:v,onTouchEnd:k,onTouchMove:y,onTouchstart:b,keysList:p,genCustomKeys:m,getBasicKeys:c,root:s,show:r}}}),g0={ref:"root"},y0={class:"fox-number-keyboard"},v0={key:0,class:"fox-number-keyboard__header"},b0={class:"fox-number-keyboard__title"},k0={class:"fox-number-keyboard__body"},S0={class:"fox-number-keyboard__keys"},C0=["onTouchstart"],w0=["src"],N0=["src"],B0={key:0,class:"fox-number-keyboard__sidebar"},A0={class:"fox-key__wrapper"},V0=["src"];function T0(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",g0,[t.createVNode(s,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=i=>e.show=i),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",y0,[e.title?(t.openBlock(),t.createElementBlock("div",v0,[t.createElementVNode("h3",b0,t.toDisplayString(e.title),1),e.type=="default"?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-number-keyboard__close",onClick:n[0]||(n[0]=i=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",k0,[t.createElementVNode("div",S0,[(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:n[1]||(n[1]=c=>e.onTouchMove(c)),onTouchend:n[2]||(n[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,w0)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,N0)):t.createCommentVNode("",!0)],42,C0)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",B0,[t.createElementVNode("div",A0,[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=i=>e.onTouchstart({id:"delete",type:"delete"},i)),onTouchmove:n[4]||(n[4]=i=>e.onTouchMove(i)),onTouchend:n[5]||(n[5]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("img",{src:e.delImg},null,8,V0)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[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 Wl=ne(h0,[["render",T0]]),{componentName:$0,create:E0}=X("swipe"),x0=E0({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 a=t.computed(()=>({[$0]:!0})),o=d=>d.value?.clientWidth||0,l=t.ref(),r=t.computed(()=>o(l)),s=t.ref(),i=t.computed(()=>o(s));let c=!1,m="",p="";const u=t.reactive({offset:0,moving:!1}),h=(d="")=>{c=!0,d&&(u.offset=d==="left"?-i.value:r.value),n("open",{name:e.name,position:m||d})},b=()=>{u.offset=0,c=!1,n("close",{name:e.name,position:m})},y=t.computed(()=>({transform:`translate3d(${u.offset}px, 0, 0)`})),k=d=>{m=d>0?"right":"left";let g=d;switch(m){case"left":c&&p===m?g=-i.value:g=Math.abs(d)>i.value?-i.value:d;break;case"right":c&&p===m?g=r.value:g=Math.abs(d)>r.value?r.value:d;break}u.offset=g},v=_e();return{classes:a,touchStyle:y,...{onTouchStart(d){e.disabled||v.start(d)},onTouchMove(d){e.disabled||(v.move(d),v.isHorizontal()&&(u.moving=!0,k(v.deltaX.value),e.touchMovePreventDefault&&d.preventDefault(),e.touchMoveStopPropagation&&d.stopPropagation()))},onTouchEnd(){if(u.moving)switch(u.moving=!1,p=m,m){case"left":Math.abs(u.offset)<=i.value/2?b():(u.offset=-i.value,h());break;case"right":Math.abs(u.offset)<=r.value/2?b():(u.offset=r.value,h());break}}},leftRef:l,rightRef:s,open:h,close:b}}}),D0={class:"fox-swipe__left",ref:"leftRef"},I0={class:"fox-swipe__content"},q0={class:"fox-swipe__right",ref:"rightRef"};function M0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",D0,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",I0,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",q0,[t.renderSlot(e.$slots,"right")],512)],38)}const Wt=ne(x0,[["render",M0]]),{componentName:P0,create:L0}=X("action-sheet"),z0=L0({components:{[de.name]:de,Loading:oe.Loading},props:{...ze,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const a=!!t.useSlots().default,o=t.computed(()=>({[P0]:!0}));return{slotDefault:a,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(c,m)=>{!c.disable&&!c.loading&&(n("choose",c,m),n("update:visible",!1))},close:c=>{n("close",c),n("update:visible",!1)},classes:o}}}),F0={key:0,class:"fox-action-sheet__title"},R0={key:1},O0={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},K0={key:1,class:"fox-action-sheet__menu"},U0=["onClick"],H0={key:1},j0={class:"fox-action-sheet__subdesc"};function W0(e,n,a,o,l,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",F0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",R0,[e.description?(t.openBlock(),t.createElementBlock("view",O0,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",K0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,m)=>(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:m,onClick:p=>e.chooseItem(c,m)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",H0,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",j0,t.toDisplayString(c[e.optionSubTag]),1)],14,U0))),128))])):t.createCommentVNode("",!0),e.cancelTxt?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-action-sheet__cancel",onClick:n[0]||(n[0]=(...c)=>e.cancelActionSheet&&e.cancelActionSheet(...c))},t.toDisplayString(e.cancelTxt),1)):t.createCommentVNode("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}const Yl=ne(z0,[["render",W0]]),{componentName:Y0,create:X0}=X("backtop"),Xl=X0({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:n,slots:a}){const o=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),l=t.computed(()=>({[Y0]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function i(y=0){o.scrollEl instanceof Window?window.scrollTo(0,y):o.scrollEl.scrollTop=y}function c(){let y=Xe(function k(){var v=e.duration-Math.max(0,o.startTime-+new Date+e.duration),f=v*-o.scrollTop/e.duration+o.scrollTop;i(f),y=Xe(k),(v==e.duration||f==0)&&Vr(y)})}function m(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function p(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function u(y){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",y)}function h(){b.value?o.scrollEl=b.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),m()}t.onMounted(()=>{e.distance==0&&(o.backTop=!0),h()}),t.onUnmounted(()=>{p()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,h())}),t.onDeactivated(()=>{o.keepAlive=!0,p()});const b=t.computed(()=>{if(typeof a.content=="function"){const y=a.content();return Array.isArray(y)?y[0]:y}return null});return()=>{const y=[];b.value&&y.push(b.value);const k=[];if(typeof a.default=="function")k.push(a.default());else{const f=t.h(oe.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});k.push(f)}const v=t.h("div",{class:l.value,style:r.value,onClick:u},k);return y.push(v),y}}}),{componentName:Q0,create:G0}=X("drag"),Z0=G0({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 a=t.ref(),o=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}}),l=t.computed(()=>({[Q0]:!0}));function r(){const u=document.documentElement;o.elWidth=a.value.offsetWidth,o.elHeight=a.value.offsetHeight,o.screenWidth=u.clientWidth,o.screenHeight=u.clientHeight}function s(u){o.boundary.left?+u.style.left.split("px")[0]>o.boundary.left?(u.style.left=+u.style.left.split("px")[0]-10+"px",Re(()=>{s(u)})):u.style.left=`${o.boundary.left}px`:+u.style.left.split("px")[0]>10?(u.style.left=+u.style.left.split("px")[0]-10+"px",Re(()=>{s(u)})):u.style.left="0px"}function i(u,h){h-parseInt(u.style.left.split("px")[0])>10?(u.style.left=parseInt(u.style.left.split("px")[0])+10+"px",Re(()=>{i(u,h)})):u.style.left=h+"px"}function c(u){u.preventDefault();const h=u.currentTarget;if(u.targetTouches.length===1){const b=u.targetTouches[0];o.nx=b.clientX-o.position.x,o.ny=b.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const y=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>y?o.xPum=y:o.xPum<=o.boundary.left&&(o.xPum=o.boundary.left),o.yPum<o.boundary.top?o.yPum=o.boundary.top:o.yPum>o.screenHeight-o.elHeight-o.boundary.bottom&&(o.yPum=o.screenHeight-o.elHeight-o.boundary.bottom),e.direction!="y"&&(h.style.left=o.xPum+"px"),e.direction!="x"&&(h.style.top=o.yPum+"px")}}function m(u){const h=u.currentTarget;let y=u.changedTouches[0].clientX;const k=o.screenWidth-o.elWidth-o.boundary.right;y>k?y=k:y<o.boundary.left?y=o.boundary.left:y=y<o.screenWidth/2?o.boundary.left:k,e.direction!="y"&&e.attract&&(y<o.screenWidth/2?Re(()=>{s(h)}):Re(()=>{i(h,k)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function p(u){const h=u.currentTarget,b=u.touches[0],y=u.targetTouches[0];o.startTop=h.offsetTop,o.startLeft=h.offsetLeft,o.position.x=b.clientX,o.position.y=b.clientY,o.nx=y.clientX-o.position.x,o.ny=y.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny}return t.onMounted(()=>{r(),o.boundary=e.boundary}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1)}),t.onDeactivated(()=>{o.keepAlive=!0;const u=a;u.value.removeEventListener("touchstart",p),u.value.removeEventListener("touchmove",c),u.value.removeEventListener("touchend",m)}),{classes:l,myDrag:a,touchStart:p,touchMove:c,touchEnd:m}}});function J0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=s=>e.touchStart(s)),onTouchmove:n[1]||(n[1]=s=>e.touchMove(s)),onTouchend:n[2]||(n[2]=s=>e.touchEnd(s))},[t.renderSlot(e.$slots,"default")],34)}const Ql=ne(Z0,[["render",J0]]),_0={width:{type:[String,Number]},height:{type:[String,Number]},plain:{type:[Boolean]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},showClose:{type:Boolean,default:!1},closeIcon:{type:Object},content:{type:[String,Object]},showFooter:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},cancelButtonText:{type:String},cancelText:{type:String},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},confirmButtonText:{type:String},confirmText:{type:String},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},footerDirection:{type:String,default:"horizontal"},popClass:{type:String},popStyle:{type:Object},beforeClose:{type:Function}},eb=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function tb(e,n,a,o,l){return{props:{...ze,..._0},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:m}=re.useFoxI18n(n),p=m(r,["confirmText","cancelText"]),u=e,h=t.ref(r.visible);t.watch(()=>r.visible,S=>{h.value!==S&&(h.value=S,S&&c("opened"))});const b=S=>{h.value=S,c("update:visible",S),c("update",S)},y=S=>{if(c(S),!(S==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const N=r.beforeClose(S);gt(N)?N.then(A=>{A&&(b(!1),c("closed",S))}):N===!0&&(b(!1),c("closed",S))}else b(!1),c("closed",S)},k=()=>{y("confirm")},v=()=>{y("cancel")},f=()=>{y("close")},d=(S,N)=>eb(S)?(N.src=S,t.h("img",N)):typeof S=="string"?(Array.isArray(N.class)?N.class.push(S):N.class&&typeof N.class=="object"?N[`${S}`]=!0:typeof N.class=="string"?N.class=`${N.class}, ${S}`:N.class=S,t.h(r.tag,N)):t.h(S,N),g=()=>{const S=[];if(i.header){const A=i.header();S.push(A)}else{if(r.title){const A=t.h("view",{class:`${u}__header-title`},[r.title]);S.push(A)}if(r.showClose){const A={class:[`${u}__header-close-icon`],onClick:f},V=r.closeIcon??l,T=d(V,A);S.push(T)}}if(S.length===0)return null;const N={class:[`${u}__header`]};return t.h("view",N,S)},C=()=>{const S=[];if(i.default)S.push(i.default());else{const A={class:[`${u}__content`]};if(r.textAlign&&A.class.push(r.textAlign),typeof r.content=="string"){A.innerHTML=r.content;const V=t.h("view",A);S.push(V)}else if(typeof r.content=="function"){const V=t.h("view",A,[r.content()]);S.push(V)}else{const V=t.h("view",A,[r.content]);S.push(V)}}if(S.length===0)return null;const N={class:[`${u}__body`]};return t.h("view",N,S)},B=()=>{if(!r.showFooter)return null;const S=[];if(i.footer)S.push(i.footer());else if(r.plain){if(r.showCancelButton){const A={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},onClick:v};r.cancelButtonClass&&A.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(A.style,r.cancleButtonStyle);const V=t.h("view",A,[r.cancelButtonText??p.cancelText.value]);S.push(V)}if(r.showConfirmButton){const A={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},onClick:k};r.confirmButtonClass&&A.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(A.style,r.confirmButtonStyle);const V=t.h("view",A,[r.confirmButtonText??p.confirmText.value]);S.push(V)}}else{if(r.showCancelButton){const A={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:v};r.cancelButtonClass&&A.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(A.style,r.cancleButtonStyle);const V=t.h(o,A,{default:()=>[r.cancelButtonText??p.cancelText.value]});S.push(V)}if(r.showConfirmButton){const A={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:k};r.confirmButtonClass&&A.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(A.style,r.confirmButtonStyle);const V=t.h(o,A,{default:()=>[r.confirmButtonText??p.confirmText.value]});S.push(V)}}if(S.length===0)return null;const N={class:[`${u}__footer`,`${u}__footer--${r.footerDirection}`]};return t.h("view",N,S)};return()=>{const S=[],N=g();N&&S.push(N);const A=C();A&&S.push(A);const V=B();V&&S.push(V);const T={class:{[`${u}`]:!0,[`${u}--plain`]:r.plain}},w=t.h("view",T,S),M=[`${u}__popup`];r.popClass&&M.push(r.popClass);const P={};r.width&&(P.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(P.height=typeof r.height=="number"?`${r.height}px`:r.height);const E={...ve(r,ze),popClass:M.join(" "),style:P,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":b,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,E,{default:()=>w})}}}}const{componentName:nb,create:ob,scope:lb}=X("dialog"),Is=ob(tb(nb,lb,de,Me,oe.Close));class ab{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 rb{options=new ab;constructor(n){let a=Object.assign(this.options,n),o=document.body,l=a.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=a.teleport);const r=document.createElement("view"),s=`dialog-${a.id}`;r.id=s;const i={setup(){return a.onUpdate=m=>{if(m===!1){const p=document.querySelector(`#${s}`);p&&p.parentNode?.removeChild(p)}},a?.onOpened&&a?.onOpened(),()=>t.h(Is,a)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Yt=function(e){return new rb(e)};Yt.install=e=>{e.use(Is),e.config.globalProperties.$dialog=Yt};const sb={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}},ib=(e,n,a)=>({props:{...sb},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["pullingText","loosingText","loadingText"]),c=el(),m=t.ref(),p=Ts(m),u=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=t.computed(()=>({[e]:!0})),b=t.computed(()=>{switch(u.status){case"pulling":return r.pulling?"":i.pullingText.value;case"loosing":return r.loosing?"":i.loosingText.value;case"loading":return r.loading?"":i.loadingText.value;default:return""}}),y=t.computed(()=>({transitionDuration:`${o.duration}s`,transform:u.distance?`translate3d(0,${u.distance}px, 0)`:""})),k=t.computed(()=>{const N={};return o.headHeight!=50&&(N.height=he(o.headHeight)),N}),v=N=>{const A=+(o.pullDistance||o.headHeight);let V=N;return N>A&&(N<A*2?V=(N+A)/2:V=A+N/4),Math.round(V)},f=(N,A)=>{const V=+(o.pullDistance||o.headHeight);u.distance=N,A?u.status="loading":N===0?u.status="normal":N<V?u.status="pulling":u.status="loosing",l("change",{status:u.status,distance:N})},d=()=>u.status!=="loading"&&u.status!=="complete",g=()=>p.value==window?$s()==0:p.value&&p.value.scrollTop==0,C=N=>{d()&&(g()?(c.start(N),u.isPullRefresh=!0,u.moving=!0):(u.distance=0,u.isPullRefresh=!1))},B=N=>{d()&&u.moving&&(c.move(N),c.isVertical()&&c.state.deltaY>0&&u.isPullRefresh&&(N.cancelable&&N.preventDefault(),f(v(c.state.deltaY))))},S=()=>{u.moving=!1,u.isPullRefresh&&d()&&c.state.deltaY&&(u.status==="loosing"?(f(+o.headHeight,!0),l("update:modelValue",!0),t.nextTick(()=>l("refresh"))):f(0)),setTimeout(()=>{c.reset()},0)};return t.watch(()=>o.modelValue,N=>{N?f(+o.headHeight,!0):f(0)}),()=>{const N=[];let A=null;if(u.status==="loading"){if(A=r?.loading?.()??null,!A){const K={class:["fox-pull-refresh-container-topbox-icon"]};A=t.h(a,K)}}else u.status==="pulling"?A=r?.pulling?.()??null:u.status==="loosing"&&(A=r?.loosing?.()??null);A&&N.push(A);const V={class:["fox-pull-refresh-container-topbox-text"]},T=t.h("dive",V,[b.value]);N.push(T);const w={class:["fox-pull-refresh-container-topbox"],style:k.value},M=t.h("div",w,N),P={class:"fox-pull-refresh-container",style:y.value},$=t.h("div",P,[M,r?.default?.()]),E={ref:m,class:h.value};return _o()?Object.assign(E,{onTouchstart:C,onTouchmove:B,onTouchend:S}):Object.assign(E,{onMousedown:C,onMousemove:B,onMouseup:S}),t.h("div",E,[$])}}}),{componentName:cb,create:ub,scope:db}=X("pull-refresh"),Gl=ub(ib(cb,db,oe.Loading)),{create:fb}=X("notify"),mb=fb({components:{[de.name]:de},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:n}){const a=()=>{e.onClick&&e.onClick()};let o=null;const l=()=>{o&&clearTimeout(o),o=null},r=()=>{n("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,m=>{s.value=e.visible;const p=e.duration;m&&p&&(o=setTimeout(()=>{r()},p))},{immediate:!0});return{onAfterLeave:()=>{l(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:s}}});function pb(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[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:n[0]||(n[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 Zl=ne(mb,[["render",pb]]),Mo={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let ft=[],Lt=[];const qs=e=>{if(e){const n=document.getElementById(e);Lt=Lt.filter(a=>a.id!==e),ft=ft.filter(a=>a!==e),n&&document.body.removeChild(n)}else ft.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Lt=[],ft=[]},hb=e=>{const n=document.getElementById(e.id);if(n){const a=Lt.find(l=>l.id===e.id);a?e={...Mo,...a,...e}:e={...Mo,...e};const o=t.createVNode(Zl,e);return t.render(o,n),o.component.data}},xt=e=>{e.unmount=qs;let n;if(e.id){if(n=e.id,ft.find(r=>r===e.id))return hb(e)}else n=new Date().getTime()+"";e={...Mo,...e},e.id=n,ft.push(e.id),Lt.push(e);const a=document.createElement("view");a.id="notify-"+e.id;const o={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(a)},e.duration)}),()=>t.h(Zl,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},Dt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Jl={text(e,n={}){return Dt(e),xt({...n,msg:e})},primary(e,n={}){return Dt(e),xt({...n,msg:e,type:"primary"})},success(e,n={}){return Dt(e),xt({...n,msg:e,type:"success"})},danger(e,n={}){return Dt(e),xt({...n,msg:e,type:"danger"})},warn(e,n={}){return Dt(e),xt({...n,msg:e,type:"warning"})},hide(){qs()},install(e){e.use(Zl)}},{create:gb}=X("toast"),yb=gb({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:n}){let a=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const l=()=>{a&&(clearTimeout(a),a=null)},r=()=>{o.mounted=!1},s=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),t.watch(()=>e.duration,b=>{b&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),m=()=>{const b=ie(e.iconSize);return t.h(e.icon,{width:b,height:b,color:e.iconColor})},p=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]),u=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:m,hasIcon:c,toastBodyClass:p,toastIconWrapperClass:u,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),vb={key:1,class:"fox-toast-title"},bb=["innerHTML"];function kb(e,n,a,o,l,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: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.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",vb,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,bb)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const _l=ne(yb,[["render",kb]]),Po={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 mt=[],zt=[];const Ms=e=>{if(e){const n=document.getElementById(e);zt=zt.filter(a=>a.id!==e),mt=mt.filter(a=>a!==e),n&&document.body.removeChild(n)}else mt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),zt=[],mt=[]},Sb=e=>{const n=document.getElementById(e.id);if(n){const a=zt.find(l=>l.id===e.id);a?e={...Po,...a,...e}:e={...Po,...e};const o=t.createVNode(_l,e);return t.render(o,n),At}},It=e=>{e.unmount=Ms;let n;if(e.id){if(n=e.id,mt.find(l=>l===e.id))return Sb(e)}else n=new Date().getTime()+"";e={...Po,...e},e.id=n,mt.push(e.id),zt.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(_l,e);return t.render(o,a),document.body.appendChild(a),At},en=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},At={text(e,n={}){return en(e),It({...n,type:"text",msg:e})},success(e,n={}){return en(e),It({icon:oe.Success,...n,msg:e,type:"success"})},fail(e,n={}){return en(e),It({icon:oe.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return en(e),It({icon:oe.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return It({icon:oe.Loading,...n,msg:e,type:"loading"})},hide(e){Ms(e)},install(e){e.use(_l),e.config.globalProperties.$toast=At}},{componentName:b2,create:Cb}=X("audio"),wb=Cb({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:oe.Service,[Ht.name]:Ht},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:a}){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 k=["webkitVisibilityState","visibilitychange"];try{for(let v=0;v<k.length;v++)document.addEventListener(k[v],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(v){v.message}});const r=k=>{const v=o.value;e.autoplay&&v&&v.paused&&v.play(),l.second=v.duration,l.duration=y(v.duration),n("can-play",k)},s=k=>{l.currentTime=parseInt(k.target.currentTime)},i=()=>{l.currentTime>0&&l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},c=()=>{const k=o.value;l.playing?(k.pause(),l.handPlaying=!1):(k.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},m=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},p=k=>{l.currentDuration=y(k),l.percent=k/l.second*100},u=()=>{l.playing=!1,n("ended")},h=k=>{const v=o.value;v.currentTime=l.second*k/100,n("changeProgress",v.currentTime)},b=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},y=k=>{if(!k)return"00:00:00";let v=parseInt(k),f=Math.floor(v/3600),d=Math.floor((v-f*3600)/60),g=v-f*3600-d*60,C="";return C+=("0"+f.toString()).slice(-2)+":",C+=("0"+d.toString()).slice(-2)+":",C+=("0"+g.toString()).slice(-2),C};return t.watch(()=>l.currentTime,k=>{p(k)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:b,forward:m,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:i,forward:m,changeStatus:c,progressChange:h,audioEnd:u,onTimeupdate:s,handleMute:b,onCanplay:r,slots:a}}}),Nb={class:"fox-audio"},Bb={key:0,class:"fox-audio__progress"},Ab={class:"fox-audio__time"},Vb={class:"fox-audio__bar"},Tb=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),$b={class:"fox-audio__time"},Eb={key:1,class:"fox-audio__icon"},xb=["controls","src","preload","autoplay","loop","muted"];function Db(e,n,a,o,l,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",Nb,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",Bb,[t.createElementVNode("div",Ab,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Vb,[t.createVNode(s,{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(()=>[Tb]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",$b,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Eb,[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(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: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,xb)])}const ea=ne(wb,[["render",Db]]),{componentName:k2,create:Ib,scope:qb}=X("audio-operate"),Mb=Ib({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(qb),o=t.inject("audioParent"),l=t.reactive(o),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(l),customSlot:r,t:a}}}),Pb={class:"fox-audio-operate"};function Lb(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Pb,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[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:n[1]||(n[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:n[2]||(n[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:n[3]||(n[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 ta=ne(Mb,[["render",Lb]]),{componentName:zb,create:Fb}=X("avatar"),Rb=Fb({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:a,bgColor:o,color:l}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),m=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const y=s?.avatarGroupRef?.value?.children;y&&b(y)});const p=t.computed(()=>({[zb]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||s?.props?.shape||"normal"}`]:!0})),u=t.computed(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${o.value}`,color:`${l.value}`,marginLeft:m.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(m.maxIndex-m.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),b=y=>{m.maxIndex=y.length;for(let k=0;k<y.length;k++)y[k]&&y[k].classList&&y[k].classList[0]=="fox-avatar"&&y[k].setAttribute("data-index",k+1);m.index=i?.value?.dataset?.index,m.index==m.maxIndex&&m.index!=s?.props?.maxCount&&(m.showMax=!0)};return{classes:p,styles:u,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(m)}}});function Ob(e,n,a,o,l,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 Xt=ne(Rb,[["render",Ob]]),{componentName:Kb,create:Ub}=X("avatar-group"),Hb=Ub({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:a}){t.toRefs(e);const o=t.ref(null),l=t.ref(0),r=t.computed(()=>({[Kb]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:l}),{classes:r,avatarGroupRef:o}}});function jb(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const na=ne(Hb,[["render",jb]]);var sn=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(sn||{});function Wb(e,n,a){let o=0,l=e.length-1,r=null;for(;o<=l;){r=Math.floor((o+l)/2);const s=e[r],i=a(s,n);if(i===1)return r;i===2?o=r+1:i===3&&(l=r-1)}return r}const{componentName:Yb,create:Xb}=X("list"),Br=document.documentElement.clientHeight||document.body.clientHeight||667,Qb=Xb({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Br},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref(null),l=t.ref(null),r=t.reactive({start:0,originStartIndex:0,scrollTop:0,list:e.listData.slice(),cachePositions:[],phantomHeight:e.height*e.listData.length}),s=t.computed(()=>Math.min(e.containerHeight,Br)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),m=t.computed(()=>({[Yb]:!0})),p=t.computed(()=>r.list.slice(r.start,c.value)),u=()=>{if(l.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let f=0;f<r.list.length;++f)r.cachePositions[f]={index:f,height:e.height,top:f*e.height,bottom:(f+1)*(e.height+e.margin),dValue:0}},b=()=>{let f=l.value.childNodes;f=Array.from(f).filter(N=>N.nodeType===1);const d=f[0];f.forEach((N,A)=>{if(!N)return;const V=Ve(N),{height:T}=V,M=r.cachePositions[A+r.start].height-T;M&&(r.cachePositions[A+r.start].bottom-=M,r.cachePositions[A+r.start].height=T,r.cachePositions[A+r.start].dValue=M)});let g=0;d&&(g=r.start);const C=r.cachePositions.length;let B=r.cachePositions[g].dValue;r.cachePositions[g].dValue=0;for(let N=g+1;N<C;++N){const A=r.cachePositions[N];r.cachePositions[N].top=r.cachePositions[N-1].bottom,r.cachePositions[N].bottom=r.cachePositions[N].bottom-B,A.dValue!==0&&(B+=A.dValue,A.dValue=0)}const S=r.cachePositions[C-1].bottom;r.phantomHeight=S},y=(f=0)=>{let d=Wb(r.cachePositions,f,(C,B)=>{const S=C.bottom;return S===B?sn.eq:S<B?sn.lt:sn.gt});return r.cachePositions[d].bottom<f&&(d+=1),d},k=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,a.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},v=()=>{const f=a.value?.scrollTop,{originStartIndex:d}=r,g=y(f);g!==d&&(r.originStartIndex=g,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&n("scroll-bottom")),n(f>r.scrollTop?"scroll-up":"scroll-down",f),r.scrollTop=f};return t.watch(()=>e.listData,f=>{if(r.list=f.slice(),r.list.length===f.length)h(),b();else{k();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&b()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:u,visibleData:p,classes:m,getContainerHeight:s,handleScrollEvent:v}}});function Gb(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[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 oa=ne(Qb,[["render",Gb]]),{componentName:Zb,create:Jb}=X("circleprogress"),_b=Jb({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 a=!!t.useSlots().default,o=Math.random().toString(36).slice(-8),l=t.computed(()=>({[Zb]:!0})),r=t.computed(()=>{const p=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${p} 0 90 a 45 45 0 1, ${p} 0 -90`}),s=t.computed(()=>Ae(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let p=283,u=p*Number(e.progress)/100;return{stroke:Ae(e.color)?`url(#${o})`:e.color,strokeDasharray:`${u}px ${p}px`}}),c=t.computed(()=>({stroke:e.pathColor})),m=t.computed(()=>{if(!Ae(e.color))return;let p=e.color;const u=Object.keys(p).sort((b,y)=>parseFloat(b)-parseFloat(y));let h=[];return u.map((b,y)=>{let k={key:"",value:""};k.key=b,k.value=p[b],h.push(k)}),h});return{classes:l,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:m,slotDefault:a,refRandomId:o}}}),ek={viewBox:"0 0 100 100"},tk=["id"],nk=["offset","stop-color"],ok=["d","stroke-width"],lk=["d","stroke","stroke-linecap","stroke-width"],ak={class:"fox-circleprogress-text"},rk={key:0};function sk(e,n,a,o,l,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",ek,[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,nk))),128))],8,tk)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,ok),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,lk)])),t.createElementVNode("div",ak,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",rk,t.toDisplayString(e.progress)+"%",1))])],6)}const la=ne(_b,[["render",sk]]),{componentName:ik,create:ck}=X("noticebar"),uk=ck({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},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:oe.Notice,CircleClose:oe.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=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(()=>({[ik]:!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})),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}),p=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),u=t.computed(()=>{let N={};if(e.complexAm)N={transform:`translateY(${r.distance}px)`};else if(r.animate){let A=~~(e.height/e.speed/4);N={transition:`all ${A==0?~~(e.height/e.speed):A}s`,"margin-top":`-${e.height}px`}}return N});t.watch(()=>e.text,N=>{h()}),t.watch(()=>e.list,N=>{r.scrollList=[...N]});const h=N=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const A=o.value.getBoundingClientRect().width,V=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?V>A:e.scrollable,r.isCanScroll?(r.wrapWidth=A,r.offsetWidth=V,r.duration=V/e.speed,r.animationClass="play"):r.animationClass=""},0)},b=N=>{n("click",N)},y=N=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",N)},k=N=>{r.firstRound=!1,n("across-end",N),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},v=()=>{f(),r.timer=setInterval(f,~~(e.height/e.speed/4*1e3)+e.standTime)},f=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},d=()=>{r.timer=setInterval(()=>{let N=100;for(let A=0;A<N;A++)g(A,!(A<N-1))},e.standTime+100*e.speed)},g=(N,A)=>{setTimeout(()=>{r.distance-=e.height/100,A&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},N*e.speed)},C=N=>{n("click",N)},B=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(a.default?S(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?d():v()},e.standTime)):h(e.text)}),t.watch(()=>a.default?a.default():[],N=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),S(N))});const S=N=>{N&&N.length>0&&(r.scrollList=N[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:m,contentStyle:p,horseLampStyle:u,wrap:o,content:l,handleClick:b,onClickIcon:y,onAnimationEnd:k,go:C,handleClickIcon:B,slots:a,toPxDesc:he,wrapContentClass:c}}}),dk={key:0,class:"fox-noticebar__page-lefticon"},fk={ref:"wrap",class:"fox-noticebar__page-wrap"},mk={class:"showNotica"},pk=["onClick"];function hk(e,n,a,o,l,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:n[3]||(n[3]=(...m)=>e.handleClick&&e.handleClick(...m))},[e.showLeftIcon?(t.openBlock(),t.createElementBlock("view",dk,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("view",fk,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...m)=>e.onAnimationEnd&&e.onAnimationEnd(...m)),"on:webkitAnimationEnd":n[1]||(n[1]=(...m)=>e.onAnimationEnd&&e.onAnimationEnd(...m))},[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:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=t.withModifiers((...m)=>e.onClickIcon&&e.onClickIcon(...m),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",mk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(m,p)=>(t.openBlock(),t.createBlock(c,{key:p,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:m},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(m,p)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:p,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:u=>e.go(m)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(m),1)])],12,pk))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=m=>!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 aa=ne(uk,[["render",hk]]),gk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/xdD/y9UyMD0TExP5sb+4uLj/y9X+w879ws3/y9X1tMH8s8H/y9UkJSWAgYHj5OT/ytTY2NheXWDs7e7r7Ozv8PDs7u55eYH09fXMzMzY2NgyMD3/y9UzMzP8s8GwsLDm5+eKiorv8PDLy8s6Ojrl5ubZ2trPz88UFBTh4uLV1dXc3Ny5ubnu7u7T09O1tbXf39+zsrLx8vLR0d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pM+1E089q1TipDRMIiZSde4OkduL1FOsm2CyXqBwTgvoN/2AWrGzwl2UgpO+og/il1+l33E87H98i51kAJxjvZ0Cp08lT074JcKKB8eUJMWwH+8K3v77/7N4LkfNLAGA28qgSl1xInpquROEseRhxSkAWPOM8wxRODSIt7GNHQanCpeQAtQURq4KR80AWOsNlmIK5vCpg0ZuVoNTqS9KpaTGbVp3aKSLlVOaZPCgOIjqKc7L6ojRAlRZxs8VoK5WMy6lTjT/gRak1QKlFFxO9FKsBZzZZZSWQBY3nNKllAOdG70CtDcP9/s4DHtSzEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:S2,create:bk,scope:kk}=X("empty"),Sk={empty:gk,error:yk,network:vk},Ck=bk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=re.useFoxI18n(kk),a=n(e,["description"]),{image:o,imageSize:l}=t.toRefs(e),r=t.computed(()=>l.value?typeof l.value=="number"?`width:${l.value}px;height:${l.value}px`:`width:${l.value};height:${l.value}`:""),i=o.value.startsWith("https://")||o.value.startsWith("http://")||o.value.startsWith("//")?o.value:Sk[o.value];return{...a,imageUrl:i,imgStyle:r}}}),wk={class:"fox-empty"},Nk=["src"],Bk={key:1,class:"fox-empty-description"};function Ak(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",wk,[t.createElementVNode("view",{class:"fox-empty-image",style:t.normalizeStyle(e.imgStyle)},[e.$slots.image?t.renderSlot(e.$slots,"image",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.imageUrl?(t.openBlock(),t.createElementBlock("img",{key:0,class:"img",src:e.imageUrl},null,8,Nk)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",Bk,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const ra=ne(Ck,[["render",Ak]]),{create:Vk,scope:Tk}=X("video"),$k=Vk({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:n}){const{t:a}=re.useFoxI18n(Tk),o=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}),l=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,S=>{S.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,S=>{o.state.isMuted=S?S.muted:!1},{immediate:!0});const s=()=>{o.videoElm=l.value,e.options.autoplay&&setTimeout(()=>{o.videoElm.play()},200),e.options.touchPlay&&(o.showTouchMask=!0),e.options.playsinline&&(o.videoElm.setAttribute("playsinline",e.options.playsinline),o.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),o.videoElm.setAttribute("x5-video-player-type","h5-page"),o.videoElm.setAttribute("x5-video-player-fullscreen",!1)),y(),o.showToolbox?i():(o.videoElm.addEventListener("play",()=>{o.state.playing=!0,n("play",o.videoElm)}),o.videoElm.addEventListener("pause",()=>{o.state.playing=!1,n("pause",o.videoElm)}),o.videoElm.addEventListener("ended",h),o.videoElm.addEventListener("timeupdate",dn(u,1e3)))},i=()=>{const S=l.value,N=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=S,o.progressBar.progressElm=N,o.progressBar.pos=N.getBoundingClientRect(),o.videoSet.progress.width=Math.round(N.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return o.state.playing=!0,!1;if(o.state.playing=!o.state.playing,o.videoElm)if(o.state.playing)try{setTimeout(()=>{o.videoElm.play()},200),o.videoElm.addEventListener("progress",()=>{p()}),o.videoElm.addEventListener("timeupdate",dn(u,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{b()}else o.videoElm.pause(),n("pause",o.videoElm)},m=S=>{var N=Math.floor(S/3600);N<10&&(N="0"+N);var A=Math.floor(S%3600/60);A<10&&(A="0"+A);var V=Math.round(S%3600%60);V<10&&(V="0"+V);var T="";return N!=0?T=N+":"+A+":"+V:T=A+":"+V,T},p=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},u=()=>{const S=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*S),o.videoSet.totalTime=m(o.videoElm.duration),o.videoSet.displayTime=m(o.videoElm.currentTime),n("time",o.videoSet.displayTime,o.videoSet.totalTime)},h=()=>{o.state.playing=!1,o.state.isEnd=!0,o.videoSet.displayTime="00:00",o.videoSet.progress.current=0,o.videoElm.currentTime=0,n("playend",o.videoElm)},b=()=>{o.state.isError=!0},y=()=>{o.state.vol=e.options.volume},k=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},v=()=>{},f=S=>{let A=S.targetTouches[0].pageX-o.progressBar.pos.left;A<=0&&(A=0),A>=o.videoSet.progress.width&&(A=o.videoSet.progress.width),o.videoSet.progress.current=A;let V=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&g(V,o.videoElm.duration)},d=S=>{let A=S.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=A;let V=A/o.videoSet.progress.width;o.videoElm.duration&&g(V,o.videoElm.duration)},g=(S,N)=>{o.videoElm.currentTime=Math.floor(S*N)},C=()=>{o.state.isError=!1,s()},B=()=>{o.state.fullScreen?(o.state.fullScreen=!1,document.webkitCancelFullScreen()):(o.state.fullScreen=!0,o.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:l,...t.toRefs(e),...t.toRefs(o),handleError:b,isDisabled:r,play:c,handleMuted:k,touchSlidSrart:v,touchSlidMove:f,touchSlidEnd:d,retry:C,fullScreen:B,t:a}}}),Ek={class:"fox-video",ref:"videocon"},xk=["muted","autoplay","loop","poster","controls","preload"],Dk=["src","type"],Ik={class:"fox-video-controller__now"},qk={class:"fox-video-controller__progress"},Mk={class:"fox-video-controller__progress-value",ref:"progressBar"},Pk=t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1),Lk=[Pk],zk={class:"fox-video-controller__played",ref:"playedBar"},Fk={class:"fox-video-controller__total"},Rk={class:"fox-video-error"},Ok={class:"fox-video-error-tip"};function Kk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",Ek,[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]=(...s)=>e.handleError&&e.handleError(...s))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,Dk)],40,xk),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[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:n[2]||(n[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:n[3]||(n[3]=(...s)=>e.play&&e.play(...s))}),t.createElementVNode("div",Ik,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",qk,[t.createElementVNode("div",Mk,[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:n[4]||(n[4]=t.withModifiers(s=>e.touchSlidMove(s),["stop","prevent"])),onTouchstart:n[5]||(n[5]=t.withModifiers(s=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=t.withModifiers(s=>e.touchSlidEnd(s),["stop"]))},Lk,36),t.createElementVNode("div",zk,null,512)],512)]),t.createElementVNode("div",Fk,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...s)=>e.handleMuted&&e.handleMuted(...s))},null,2),t.createElementVNode("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...s)=>e.fullScreen&&e.fullScreen(...s))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",Rk,[t.createElementVNode("p",Ok,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...s)=>e.retry&&e.retry(...s))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const St=ne($k,[["render",Kk]]),{create:Uk,componentName:Hk}=X("steps"),sa=Uk({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:a}){const o=t.reactive({children:[]}),l=t.computed(()=>{const i=Hk;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&o.children.push(i)},s=i=>{n("click-step",i)};return t.provide("parent",{relation:r,state:o,props:e,onEmit:s}),()=>t.h("view",{class:l.value},a.default?.())}}),{create:jk,componentName:Wk}=X("step"),Yk=jk({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=t.getCurrentInstance(),n=t.inject("parent");n.relation(e);const a=t.reactive({dot:n.props.progressDot}),o=t.computed(()=>n.state.children.indexOf(e)+1),l=()=>{const c=o.value;return c<+n.props.current?"finish":c===+n.props.current?"process":"wait"},r=t.computed(()=>l()),s=t.computed(()=>{const c=Wk;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:s,handleClickStep:i}}}),Xk={class:"fox-step-head"},Qk=t.createElementVNode("view",{class:"fox-step-line"},null,-1),Gk={class:"fox-step-icon-inner"},Zk={key:1,class:"fox-step-inner"},Jk={class:"fox-step-main"},_k={class:"fox-step-title"},eS={key:0},tS={key:0,class:"fox-step-content"},nS=["innerHTML"];function oS(e,n,a,o,l,r){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",Xk,[Qk,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",Gk,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",Zk,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",Jk,[t.createElementVNode("view",_k,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",eS,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",tS,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,nS)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ia=ne(Yk,[["render",oS]]),{create:lS,componentName:uo}=X("swiper"),aS=lS({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:n,slots:a}){const o=t.ref(),l=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=_e(),s=t.computed(()=>({[uo]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const D=uo;return{[`${D}-inner`]:!0,[`${D}-vertical`]:i.value}}),m=t.computed(()=>{const D=uo;return{[`${D}-pagination`]:!0,[`${D}-pagination-vertical`]:i.value}}),p=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),u=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>l.children.length),b=t.computed(()=>l[i.value?"height":"width"]),y=t.computed(()=>h.value*b.value),k=t.computed(()=>l.rect?(i.value?l.rect.height:l.rect.width)-b.value*h.value:0),v=t.computed(()=>(l.active+h.value)%h.value),f=()=>{let D=0;D=l.offset,l.style={transitionDuration:`${l.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${D}px)`,[i.value?"height":"width"]:`${b.value*h.value}px`,[i.value?"width":"height"]:`${i.value?l.width:l.height}px`}},d=D=>{let W=[];const H=l.childrenVNode.length;let Z=a?.default?.();if(Z=Z.filter(_=>_.children&&Array.isArray(_.children)),Z.forEach(_=>{W=W.concat(_.children)}),!H)l.childrenVNode=W.slice(),D.proxy&&l.children.push(D.proxy);else if(H>W.length)l.children=l.children.filter(_=>D.proxy!==_);else if(H<W.length){for(let _=0;_<H;_++)if(W[_].key!==l.childrenVNode[_].key){D.proxy&&l.children.splice(_,0,D.proxy),D.vnode&&l.childrenVNode.splice(_,0,D.vnode);break}H!==W.length&&(D.proxy&&l.children.push(D.proxy),D.vnode&&l.childrenVNode.push(D.vnode))}else l.childrenVNode=W.slice(),D.proxy&&l.children.push(D.proxy)},g=(D,W=0)=>{let H=D*b.value;e.loop||(H=Math.min(H,-k.value));let Z=W-H;return e.loop||(Z=Oe(Z,k.value,0)),Z},C=D=>{const{active:W}=l;return D?e.loop?Oe(W+D,-1,h.value):Oe(W+D,0,h.value-1):W},B=({pace:D=0,offset:W=0,isEmit:H=!1})=>{if(h.value<=1)return;const{active:Z}=l,_=C(D),j=g(_,W);if(e.loop){if(l.children[0]&&j!==k.value){const I=j<k.value;l.children[0].setOffset(I?y.value:0)}if(l.children[h.value-1]&&j!==0){const I=j>0;l.children[h.value-1].setOffset(I?-y.value:0)}}l.active=_,l.offset=j,H&&Z!==l.active&&n("change",v.value),f()},S=()=>{l.moving=!0,l.active<=-1&&B({pace:h.value}),l.active>=h.value&&B({pace:-h.value})},N=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},A=D=>{S(),r.reset(),Xe(()=>{Xe(()=>{l.moving=!1,B({pace:D,isEmit:!0})})})},V=()=>{A(-1)},T=()=>{A(1)},w=D=>{S(),r.reset(),Xe(()=>{l.moving=!1;let W;e.loop&&h.value===D?W=l.active===0?0:D:W=D%h.value,B({pace:W-l.active,isEmit:!0})})},M=()=>{e.autoPlay<=0||h.value<=1||(N(),l.autoplayTimer=setTimeout(()=>{T(),M()},Number(e.autoPlay)))},P=(D=+e.initPage)=>{N(),l.rect=o.value.getBoundingClientRect(),D=Math.min(h.value-1,D),l.width=e.width?+e.width:l.rect.width,l.height=e.height?+e.height:l.rect.height,l.active=D,l.offset=g(l.active),l.moving=!0,f(),M()},$=D=>{e.isPreventDefault&&D.preventDefault(),e.isStopPropagation&&D.stopPropagation(),e.touchable&&(r.start(D),l.touchTime=Date.now(),N(),S())},E=D=>{e.touchable&&l.moving&&(r.move(D),u.value&&B({offset:p.value}))},K=D=>{if(!e.touchable||!l.moving)return;const W=p.value/(Date.now()-l.touchTime);if((Math.abs(W)>.3||Math.abs(p.value)>+(b.value/2).toFixed(2))&&u.value){let Z=0;const _=i.value?r.offsetY.value:r.offsetX.value;e.loop?Z=_>0?p.value>0?-1:1:0:Z=-Math[p.value>0?"ceil":"floor"](p.value/b.value),B({pace:Z,isEmit:!0})}else p.value&&B({pace:0});l.moving=!1,f(),M()};return t.provide("parent",{props:e,size:b,relation:d}),$e({prev:V,next:T,to:w}),t.onDeactivated(()=>{N()}),t.onBeforeUnmount(()=>{N()}),t.watch(()=>e.initPage,D=>{t.nextTick(()=>{P(Number(D))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{P()})}),t.watch(()=>e.autoPlay,D=>{D>0?M():N()}),{state:l,classes:s,classesInner:c,classesPagination:m,container:o,activePagination:v,onTouchStart:$,onTouchMove:E,onTouchEnd:K}}});function rS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",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)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[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 Ct=ne(aS,[["render",rS]]),{create:sS,componentName:iS}=X("swiper-item"),cS=sS({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[iS]:!0})),r=t.computed(()=>{const i={},c=a?.props.direction;return a?.size.value&&(i[c==="horizontal"?"width":"height"]=`${a?.size.value}px`),o.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${o.offset}px)`),i}),s=i=>{o.offset=i};return t.onUnmounted(()=>{a.relation(t.getCurrentInstance(),"unmount")}),$e({setOffset:s}),{style:r,classes:l}}});function uS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const wt=ne(cS,[["render",uS]]),Ps={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:dS}=X("image-preview-item"),fS=dS({props:{...Ps,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:{[St.name]:St,[wt.name]:wt},setup(e,{emit:n}){const a=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),o=_e(),l=t.computed(()=>{const{rootWidth:V,rootHeight:T}=e,w=T/V;return a.imageRatio>w}),r=t.computed(()=>{const V=e.image;if(V&&V.src){const{scale:T,moveX:w,moveY:M,moving:P,zooming:$}=a,E={transitionDuration:$||P?"0s":".3s"};if(T!==1){const K=w/T,D=M/T;E.transform=`scale(${T}, ${T}) translate(${K}px, ${D}px)`}return E}return{}}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:V,rootHeight:T}=e,w=l.value?T/a.imageRatio:V;return Math.max(0,(a.scale*w-V)/2)}return 0}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:V,rootHeight:T}=e,w=l.value?T:V*a.imageRatio;return Math.max(0,(a.scale*w-T)/2)}return 0}),c=V=>{const{naturalWidth:T,naturalHeight:w}=V.target;a.imageRatio=w/T},m=()=>{p(1),a.moveX=0,a.moveY=0},p=V=>{V=Oe(V,+e.minZoom,+e.maxZoom+1),V!==a.scale&&(a.scale=V,n("scale",{scale:V,index:e.initNo}))},u=()=>{const V=a.scale>1?1:2;p(V),a.moveX=0,a.moveY=0},h=V=>Math.sqrt((V[0].clientX-V[1].clientX)**2+(V[0].clientY-V[1].clientY)**2);let b,y,k,v,f,d,g;const C=V=>{const{touches:T}=V,{offsetX:w}=o;o.start(V),g=T.length,b=a.moveX,y=a.moveY,d=Date.now(),a.moving=g===1&&a.scale!==1,a.zooming=g===2&&!w.value,a.zooming&&(k=a.scale,v=h(V.touches))},B=V=>{const{touches:T}=V;if(o.move(V),(a.moving||a.zooming)&&ko(V,!0),a.moving){const{deltaX:w,deltaY:M}=o,P=w.value+b,$=M.value+y;a.moveX=Oe(P,-s.value,s.value),a.moveY=Oe($,-i.value,i.value)}if(a.zooming&&T.length===2){const w=h(T),M=k*w/v;p(M)}},S=()=>{if(g==1&&e.video&&e.video.source||g>1)return;const{offsetX:V,offsetY:T}=o,w=Date.now()-d,M=250,P=5;V.value<P&&T.value<P&&w<M&&(f?(clearTimeout(f),f=null,u()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},M))},N=V=>{let T=!1;(a.moving||a.zooming)&&(T=!0,a.moving&&b===a.moveX&&y===a.moveY&&(T=!1),V.touches.length||(a.zooming&&(a.moveX=Oe(a.moveX,-s.value,s.value),a.moveY=Oe(a.moveY,-i.value,i.value),a.zooming=!1),a.moving=!1,b=0,y=0,k=1,a.scale<1&&m(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),ko(V,T),S(),o.reset()},A=()=>{n("close")};return t.watch(()=>e.initNo,m),t.watch(()=>e.show,V=>{V||m()}),{...t.toRefs(a),onTouchStart:C,onTouchMove:B,onTouchEnd:N,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:A}}}),mS=["src"];function pS(e,n,a,o,l,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:n[1]||(n[1]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[2]||(n[2]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[4]||(n[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:n[0]||(n[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,mS)):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 hS=ne(fS,[["render",pS]]),{create:gS}=X("image-preview"),yS=gS({props:{...Ps,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:hS,CircleClose:oe.CircleClose,[de.name]:de,[Ct.name]:Ct},setup(e,{emit:n}){const a=t.ref(),o=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),l=t.computed(()=>{const p="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${p}-right`:`${p}-left`}`}),r=t.computed(()=>bn(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=p=>{p!==o.active&&(o.active=p,n("change",o.active))},i=()=>{Ds(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},m=()=>{if(a.value){const p=Ve(a.value);o.rootHeight=p.height,o.rootWidth=p.width}};return t.watch(()=>e.show,p=>{o.showPop=p,p&&(s(e.initNo),m())}),t.watch(()=>e.initNo,p=>{p!=o.active&&s(p)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:a,...t.toRefs(o),onClose:i,mergeImages:r,setActive:s,iconClasses:l}}}),vS={class:"fox-image-preview",ref:"swipeRef"},bS={key:0,class:"fox-image-preview-index"};function kS(e,n,a,o,l,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=p=>e.showPop=p),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",vS,[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,(p,u)=>(t.openBlock(),t.createBlock(s,{key:u,video:u<e.videos.length?p:{},image:u>=e.videos.length?p:{},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",bS,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:n[0]||(n[0]=(...p)=>e.onClose&&e.onClose(...p))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Ls=ne(yS,[["render",kS]]);class SS{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 CS{options=new SS;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=ki(a,{name:"image-preview",components:[de,St,Ct,wt,rt],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(Ls,a))}})})}}const Zn=e=>new CS(e);Zn.install=e=>{e.use(Ls)};function wS(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{componentName:C2,create:NS}=X("countup"),BS=NS({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:n}){const a=t.ref(null),o=t.ref([]),l=A=>{A&&o.value.push(A)},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:m}=t.reactive(e);t.watch(()=>e.customChangeNum,(A,V)=>{u(),v(0)}),t.watch(()=>e.machinePrizeLevel,(A,V)=>{r.prizeLevelTrun=A}),t.watch(()=>e.initNum,(A,V)=>{r.current=A,r.valFlag=!1,p()}),t.watch(()=>e.endNum,(A,V)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;s&&(i||c?m!="machine"&&v():(k(),setTimeout(()=>{r.valFlag=!0},300)))},u=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(A,V,T)=>{const w=(A.toString().split(".")[1]||"").length,M=(V.toString().split(".")[1]||"").length,P=Math.pow(10,Math.max(w,M));return T=="-"?Number((A*P-V*P).toFixed(0))/P:Number((A*P+V*P).toFixed(0))/P},b=A=>{let{num_total_len:V,pointNum:T,initDigit1:w,initDigit2:M,sortFlag:P}=r,$=P=="add"||P=="equal"?String(M)[A-(V-T)]:10-Number(String(M)[A-(V-T)]),E=P=="add"||P=="equal"?String(w)[A]:10-Number(String(w)[A]),K=A>V-T-1?-$*100+"%":A<=String(w).length-1?-E*100+"%":0;return K=="-1000%"&&(K=0),K},y=A=>{let{num_total_len:V,pointNum:T,initDigit1:w,initDigit2:M,sortFlag:P}=r,$=String(M)[A-(V-T)];return A>V-T-1?$||0:A<=String(w).length-1?String(w)[A]:0},k=()=>{let{endNum:A,initNum:V,speed:T,toFixed:w}=e,M=setInterval(()=>{if(V>A)if(r.current<=A||r.current<=T)r.current=A.toFixed(w),clearInterval(M),n("scroll-end"),r.valFlag=!1;else{let P=parseFloat(String(r.current))-parseFloat(String(T));r.current=P.toFixed(w)}else if(r.current>=A)r.current=A.toFixed(w),clearInterval(M),n("scroll-end"),r.valFlag=!1;else{let P=parseFloat(String(r.current))+parseFloat(String(T));r.current=P.toFixed(w)}},e.during)},v=A=>{let{initNum:V,endNum:T,toFixed:w,customBgImg:M}=e;M&&(V=e.customChangeNum);let P,$,E,K;V!=0?(w!=0&&(V=Number(V.toFixed(w))),String(V).indexOf(".")>-1?(P=String(V).split(".")[0].length,$=String(V).split(".")[1].length):(P=String(V).length,$=0)):(P=1,$=0),T!=0?(w!=0&&(T=Number(T.toFixed(w))),String(T).indexOf(".")>-1?(E=String(T).split(".")[0].length,K=String(T).split(".")[1].length):(E=String(T).length,K=0)):(E=1,K=0);let D=P>=E?P:E,W=$>=K?$:K;r.num_total_len=D+W,r.pointNum=W,V>T?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(V,T,"-"),r.numberVal=Number(String(V))):V<T?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(T,V,"-"),r.numberVal=Number(String(T))):r.sortFlag="equal";var H=1;for(let _=0;_<r.pointNum;_++)H*=10;var Z=r.numberVal*H;if(r.relNum=Z,w!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(Z).length),String(V).indexOf(".")>-1){let _=String(V).split(".");r.initDigit1=Number(_[0]),r.initDigit2=Number(_[1])}else r.initDigit1=V,r.initDigit2=0;i&&!M?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let _=o.value[r.num_total_len-1];f(_)}):A!==0&&C()},f=A=>{u();var V=1;r.pointNum!=0&&(V=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{d(A),r.totalCount=h(r.totalCount,V,"-"),r.totalCount<=0&&(u(),n("scroll-end"),r.valFlag=!1)},e.during)},d=A=>{let V=A.getAttribute("turn-number"),T;if(r.sortFlag=="add"?T=parseInt(String(V))+1:T=parseInt(String(V))-1>=0?parseInt(String(V))-1:9,A.setAttribute("turn-number",String(T)),(A.style.transition=="none 0s ease 0s"||T==1||!A.style.transition)&&(A.style.transition=`all linear ${e.during}ms`),T==10||r.sortFlag=="reduce"&&T==0){var w=null;A.style.top=`-${r.sortFlag=="add"?T*100:(10-T)*100}%`,A.setAttribute("turn-number","0"),w=setTimeout(()=>{w&&clearTimeout(w),A.style.transition="none",A.style.top="0",g(A,T)},.975*e.during)}else A.style.top=`-${r.sortFlag=="add"?T*100:(10-T)*100}%`;A.style.top=="-100%"&&r.sortFlag=="reduce"&&d(A.previousSibling)},g=(A,V)=>{setTimeout(()=>{V==10&&A.previousSibling&&d(A.previousSibling)},200)},C=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{a.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},B=()=>{for(r.notPrize=[];r.notPrize.length<3;){var A=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(A)==-1&&r.notPrize.push(A)}};wS({machineLuck:()=>{const A=e.machineTurnMore<0?0:e.machineTurnMore;let V=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&B();for(let T=0;T<e.machineNum;T++)setTimeout(()=>{let w=V*(T+1+parseFloat(String(A)));r.prizeYPrev.length!=0&&(r.prizeY[T]=r.prizeYPrev[T]);let M=r.prizeYPrev[T]?r.prizeYPrev[T]:0,P=w+M+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(V-M);r.prizeLevelTrun<0&&(P+=e.numHeight*r.notPrize[T]),N(T,P,M)},500*T)}});const N=(A,V,T)=>{let w=setInterval(()=>{if(T<=V)T+=10,r.prizeY[A]=parseFloat(String(T));else if(clearInterval(w),w=null,r.finshMachine+=1,r.prizeY[A]=V,r.finshMachine==e.machineNum){let M=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach($=>{let E=$;for(;E>M;)E-=M;r.prizeYPrev.push(E)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{p()})}),t.onUnmounted(()=>{u(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:b,turnNumber:y}}}),AS={class:"fox-countup"},VS=["turn-number"];function TS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",AS,[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,m)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+m,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,VS))),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 ca=ne(BS,[["render",TS]]),$S=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:ES,create:xS}=X("countdown"),DS=xS({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:a}){const o=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),l=t.computed(()=>({[ES]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-$S(e.startTime),o.counting||(o.counting=!0),i()},i=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const b=Date.now()-o.diffTime,y=Math.max(o.handleEndTime-b,0);o.restTime=y,y||(o.counting=!1,u(),n("on-end")),y>0&&i()}}))},c=(b,y)=>{const k=b;let v={d:0,h:0,m:0,s:0,ms:0};const f=1e3,d=60*f,g=60*d,C=24*g;return k>0&&(v.d=k>=f?Math.floor(k/C):0,v.h=Math.floor(k%C/g),v.m=Math.floor(k%g/d),v.s=Math.floor(k%d/f),v.ms=Math.floor(k%f)),y=="custom"?v:m({...v})},m=b=>{let{d:y,h:k,m:v,s:f,ms:d}=b,g=e.format;if(g.includes("DD")?g=g.replace("DD",et(y)):k+=Number(y)*24,g.includes("HH")?g=g.replace("HH",et(k)):v+=Number(k)*60,g.includes("mm")?g=g.replace("mm",et(v)):f+=Number(v)*60,g.includes("ss")?g=g.replace("ss",et(f)):d+=Number(f)*1e3,g.includes("S")){const C=et(d,3).toString();g.includes("SSS")?g=g.replace("SSS",C):g.includes("SS")?g=g.replace("SS",C.slice(0,2)):g.includes("S")&&(g=g.replace("SS",C.slice(0,1)))}return g},p=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i(),n("on-restart",o.restTime))},u=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},h=()=>{e.autoStart||(u(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():o.restTime=e.time}),t.watch(()=>o.restTime,b=>{let y=c(b,"custom");n("update:modelValue",y),n("input",y)}),t.watch(()=>e.paused,(b,y)=>{y?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i()),n("on-restart",o.restTime)):o.counting&&u()}),t.watch(()=>e.endTime,b=>{s()}),t.watch(()=>e.startTime,b=>{s()}),{...t.toRefs(e),slots:a,classes:l,start:p,pause:u,renderTime:r,reset:h}}}),IS=["innerHTML"];function qS(e,n,a,o,l,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,IS))],2)}const ua=ne(DS,[["render",qS]]),{create:MS}=X("badge"),PS=MS({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 n=t.reactive({}),a=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),o=t.computed(()=>{if(e.dot)return;const l=e.value,r=e.max;return typeof l=="number"&&typeof r=="number"&&r<l?`${r}+`:l});return{state:n,stl:a,content:o}}}),LS={class:"fox-badge"},zS=["textContent"];function FS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",LS,[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,zS),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const da=ne(PS,[["render",FS]]),{componentName:RS,create:OS}=X("tag"),KS=OS({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:oe.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const s=RS;return{[s]:!0,[`${s}--${e.type}`]:!0,[`${s}--plain`]:e.plain,[`${s}--round`]:e.round,[`${s}--mark`]:e.mark,[`${s}--symbol`]:e.symbol,[`${s}--text`]:e.text,[`${s}--light`]:e.light}}),getStyle:()=>{const s={};return e.textColor?s.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(s.color=e.color),e.plain?(s.background="#fff",s["border-color"]=e.color):!e.text&&e.color&&(s.background=e.color),s},onClose:s=>{s.stopPropagation(),n("close",s)},onClick:s=>{n("click",s)}}}});function US(e,n,a,o,l,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const Qt=ne(KS,[["render",US]]),{create:HS}=X("popover"),jS=HS({components:{FoxPopup:de},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const d="fox-popover-arrow",g=e.location,C=g.split("-")[0];return`${d} ${d}-${C} ${d}--${g}`}),c=t.computed(()=>{const d={},{bgColor:g,arrowOffset:C,location:B}=e,S=B.split("-")[0],N=B.split("-")[1],A=16;return g&&(d[`border${m(S)}Color`]=g),e.arrowOffset!=0&&(["bottom","top"].includes(S)&&(N||(d.left=`calc(50% + ${C}px)`),N=="start"&&(d.left=`${A+C}px`),N=="end"&&(d.right=`${A-C}px`)),["left","right"].includes(S)&&(N||(d.top=`calc(50% - ${C}px)`),N=="start"&&(d.top=`${A-C}px`),N=="end"&&(d.bottom=`${A+C}px`))),d}),m=d=>(d=d.toLowerCase(),d=d.replace(/\b\w+\b/g,g=>g.substring(0,1).toUpperCase()+g.substring(1)),d),p=t.computed(()=>{let d={};if(!r.value||!s.value)return{};const g=s.value.width,C=s.value.height,{width:B,height:S,left:N,top:A}=r.value,{location:V,offset:T}=e,w=V.split("-")[0],M=V.split("-")[1];let P=0,$=0;if(bn(T)&&T.length==2&&(P+=Number(T[1]),$+=Number(T[0])),B){if(["bottom","top"].includes(w)){const E=w=="bottom"?S+P:-(C+P);d.top=`${A+E}px`,M||(d.left=`${-(g-B)/2+N+$}px`),M=="start"&&(d.left=`${N+$}px`),M=="end"&&(d.left=`${r.value.right+$}px`)}if(["left","right"].includes(w)){const E=w=="left"?-(g+P):B+P;d.left=`${N+E}px`,M||(d.top=`${A-C/2+S/2-4+$}px`),M=="start"&&(d.top=`${A+$}px`),M=="end"&&(d.top=`${A+S+$}px`)}}return d}),u=t.computed(()=>{const d={};return e.bgColor&&(d.background=e.bgColor),d}),h=()=>{let d=Ve(a.value);e.targetId&&(d=Ve(document.querySelector(`#${e.targetId}`))),r.value=d,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,d=>{l.value=d,d?(window.addEventListener("touchstart",f,!0),h()):window.removeEventListener("touchstart",f,!0)});const b=d=>{n("update",d),n("update:visible",d)},y=()=>{b(!e.visible),n("open")},k=()=>{n("update:visible",!1),n("close")},v=(d,g)=>{!d.disabled&&n("choose",d,g),e.closeOnClickAction&&k()},f=d=>{const g=a.value,C=o.value;let B=g&&!g.contains(d.target);if(e.targetId){const S=document.querySelector(`#${e.targetId}`);B=S&&!S.contains(d.target)}B&&C&&!C.contains(d.target)&&e.closeOnClickOutside&&k()};return{showPopup:l,openPopover:y,popoverArrow:i,closePopover:k,chooseItem:v,popoverRef:a,popoverContentRef:o,getRootPosition:p,customStyle:u,popoverArrowStyle:c,renderIcon:ts}}}),WS={ref:"popoverContentRef",class:"fox-popover-content-group"},YS=["onClick"],XS={class:"fox-popover-menu-item-name"};function QS(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.targetId?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:n[0]||(n[0]=(...i)=>e.openPopover&&e.openPopover(...i))},[t.renderSlot(e.$slots,"reference")],512)),t.createElementVNode("view",{class:t.normalizeClass(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:t.normalizeStyle(e.getRootPosition)},[t.createVNode(s,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.showPopup=i),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:t.normalizeStyle(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:t.withCtx(()=>[t.createElementVNode("view",WS,[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(m=>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",XS,t.toDisplayString(i.name),1)],10,YS))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Gt=ne(jS,[["render",QS]]),GS=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(n){const{avatarShape:a,round:o,avatarSize:l}=t.toRefs(n),r=t.computed(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${a.value}`]:a.value}});return{avatarShape:a,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:o.value}),getStyle:()=>l.value?{width:l.value,height:l.value}:{width:"50px",height:"50px"}}}}),{create:ZS}=X("skeleton"),JS=ZS(GS({[Xt.name]:Xt})),_S={key:0},e1={key:1,class:"fox-skeleton"},t1={key:0,class:"fox-skeleton-animation"},n1={class:"fox-skeleton-content"};function o1(e,n,a,o,l,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",e1,[e.animated?(t.openBlock(),t.createElementBlock("view",t1)):t.createCommentVNode("",!0),t.createElementVNode("view",n1,[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",_S,[t.renderSlot(e.$slots,"default")]))}const fa=ne(JS,[["render",o1]]),{create:l1,componentName:a1}=X("collapse"),r1=l1({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref(e.modelValue||(e.accordion?"":[])),l=t.computed(()=>({[a1]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,m,p=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,m,p)},s=c=>{if(e.accordion)o.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(o.value))if(o.value.includes(c)){const m=o.value.filter(p=>p!==c);r(m,c,!1)}else{const m=o.value.concat([c]);r(m,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?o.value===c:Array.isArray(o.value)?o.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:a,classes:l}}});function s1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const ma=ne(r1,[["render",s1]]),{create:i1,componentName:c1}=X("collapse-item"),u1=i1({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:oe.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=t.ref(null),a=t.ref(null),o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const h=c1;return{[h]:!0,[h+"__border"]:e.border}}),s=t.computed(()=>l?l.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},m=()=>{s.value&&(i.value="auto")},p=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},u=()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?p():u()}),{classes:r,renderIcon:ts,wrapperRef:n,contentRef:a,open:p,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:m}}}),d1={class:"fox-collapse-item__title-main"},f1={class:"fox-collapse-item__title-main-value"},m1=["innerHTML"],p1={key:2,class:"fox-collapse-item__title-label"},h1={key:0,class:"fox-collapse-item__title-sub"},g1=["innerHTML"],y1={key:0,class:"fox-collapse__item-extraWrapper"},v1={class:"fox-collapse__item-extraWrapper__extraRender"},b1={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function k1(e,n,a,o,l,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:n[0]||(n[0]=(...s)=>e.toggle&&e.toggle(...s))},[t.createElementVNode("view",d1,[t.createElementVNode("view",f1,[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,m1)),e.label?(t.openBlock(),t.createElementBlock("view",p1,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",h1,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,g1)),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",y1,[t.createElementVNode("div",v1,[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:n[1]||(n[1]=(...s)=>e.onTransitionEnd&&e.onTransitionEnd(...s))},[t.createElementVNode("view",b1,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const pa=ne(u1,[["render",k1]]),S1=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:C1,create:w1,scope:N1}=X("table"),B1=w1({components:{RenderColumn:S1,DownArrow:oe.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:n,slots:a}){const{t:o}=re.useFoxI18n(N1),l=t.reactive({curData:e.data}),r=t.computed(()=>({[C1]:!0})),s=b=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${b.align?b.align:""}`]:!0}),i=b=>b.stylehead?b.stylehead:"",c=b=>b.stylecolumn?b.stylecolumn:"",m=b=>e.columns.filter(y=>y.key===b)[0],p=b=>{const y=e.columns.filter(k=>k.key===b);return y[0].stylecolumn?y[0].stylecolumn:""},u=b=>{b.sorter&&(n("sorter",b),l.curData=typeof b.sorter=="function"?l.curData.sort(b.sorter):b.sorter==="default"?l.curData.sort():l.curData)},h=()=>e.columns.map(b=>[b.key,b.render]);return t.watch(()=>e.data,b=>{l.curData=b.slice()}),{...t.toRefs(l),classes:r,cellClasses:s,getColumnItem:m,getColumnItemStyle:p,handleSorterClick:u,sortDataItem:h,t:o,stylehead:i,stylecolumn:c}}}),A1={class:"fox-table__main__head"},V1={class:"fox-table__main__head__tr"},T1=["onClick"],$1={class:"fox-table__main__body"},E1={key:1},x1={key:0,class:"fox-table__nodata"},D1={key:0,class:"fox-table__nodata__text"},I1={key:1,class:"fox-table__summary"},q1=["innerHTML"];function M1(e,n,a,o,l,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",A1,[t.createElementVNode("view",V1,[(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(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,T1))),128))])]),t.createElementVNode("view",$1,[(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,p])=>(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 p=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[p,c[m]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",E1,t.toDisplayString(c[m]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",x1,[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",D1,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",I1,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,q1)])):t.createCommentVNode("",!0)],2)}const ha=ne(B1,[["render",M1]]),{componentName:P1,create:L1}=X("ellipsis"),z1=L1({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:n}){const a=t.ref(null);let o=null,l=0;const r=t.ref(),s=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>({[P1]:!0}));t.watch(()=>e.content,(k,v)=>{k!=v&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!a.value)return;const k=window.getComputedStyle(a.value);o=document.createElement("div"),Array.prototype.slice.apply(k).forEach(d=>{o.style.setProperty(d,k.getPropertyValue(d))}),o.style.position="fixed",o.style.left="999999px",o.style.top="999999px",o.style.zIndex="-1000",o.style.height="auto",o.style.minHeight="auto",o.style.maxHeight="auto",o.style.textOverflow="clip",o.style.whiteSpace="normal",o.style.webkitLineClamp="unset",o.style.display="block";const f=h(k.lineHeight==="normal"?e.lineHeight:k.lineHeight);l=Math.floor(f*(Number(e.rows)+.5)+h(k.paddingTop)+h(k.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),m()},m=()=>{if(o.offsetHeight<=l)s.exceeded=!1,document.body.removeChild(o);else{s.exceeded=!0;const k=e.content.length,v=Math.floor((0+k)/2),f=e.direction==="middle"?u([0,v],[v,k]):p(0,k);r.value=f,document.body.removeChild(o)}},p=(k,v)=>{const f=s.expanded?e.collapseText:e.expandText,d=e.content.length;if(v-k<=1)return e.direction==="end"?{leading:e.content.slice(0,k)+e.symbol}:{tailing:e.symbol+e.content.slice(v,d)};const g=Math.round((k+v)/2);return e.direction==="end"?o.innerText=e.content.slice(0,g)+e.symbol+f:o.innerText=f+e.symbol+e.content.slice(g,d),o.offsetHeight<=l?e.direction==="end"?p(g,v):p(k,g):e.direction==="end"?p(k,g):p(g,v)},u=(k,v)=>{const f=s.expanded?e.collapseText:e.expandText,d=e.content.length;if(k[1]-k[0]<=1&&v[1]-v[0]<=1)return{leading:e.content.slice(0,k[0])+e.symbol,tailing:e.symbol+e.content.slice(v[1],d)};const g=Math.floor((k[0]+k[1])/2),C=Math.ceil((v[0]+v[1])/2);return o.innerText=e.content.slice(0,g)+e.symbol+f+e.symbol+e.content.slice(C,d),o.offsetHeight<=l?u([g,k[1]],[v[0],C]):u([k[0],g],[C,v[1]])},h=k=>{if(!k)return 0;const v=k.match(/^\d*(\.\d*)?/);return v?Number(v[0]):0},b=k=>{k==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},y=()=>{n("click")};return{...t.toRefs(s),root:a,ellipsis:r,classes:i,clickHandle:b,handleClick:y}}}),F1={key:0},R1={key:1},O1={key:2};function K1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[2]||(n[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",F1,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",R1,[t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.leading),1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:n[0]||(n[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",O1,[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(s=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const ga=ne(z1,[["render",K1]]),{componentName:U1,create:H1}=X("animate"),j1=H1({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:a,loop:o,action:l}=t.toRefs(e),r=t.reactive({clicked:!1});let s=t.computed(()=>({"fox-animate__container":!0,[`${U1}-${a.value}`]:l.value==="initial"||r.clicked?a.value:!1,loop:o.value}));const i=c=>{r.clicked=!0,o.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",c)};return{...t.toRefs(r),classes:s,handleClick:i}}}),W1={class:"fox-animate"};function Y1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",W1,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[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 ya=ne(j1,[["render",Y1]]),{componentName:X1,create:Q1}=X("watermark"),G1=Q1({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 a=t.reactive({base64Url:""}),{zIndex:o,gapX:l,gapY:r,width:s,height:i,rotate:c,image:m,imageWidth:p,imageHeight:u,content:h,fontStyle:b,fontWeight:y,fontColor:k,fontSize:v,fontFamily:f}=e,d=()=>{const C=document.createElement("canvas"),B=window.devicePixelRatio,S=C.getContext("2d"),N=`${(l+s)*B}px`,A=`${(r+i)*B}px`,V=s*B,T=i*B;if(C.setAttribute("width",N),C.setAttribute("height",A),S){if(m){S.translate(V/2,T/2),S.rotate(Math.PI/180*Number(c));const w=new Image;w.crossOrigin="anonymous",w.referrerPolicy="no-referrer",w.src=m,w.onload=()=>{S.drawImage(w,-p*B/2,-u*B/2,p*B,u*B),S.restore(),a.base64Url=C.toDataURL()}}else if(h){S.textBaseline="middle",S.textAlign="center",S.translate(V/2,T/2),S.rotate(Math.PI/180*Number(c));const w=Number(v)*B;S.font=`${b} normal ${y} ${w}px/${T}px ${f}`,S.fillStyle=k,S.fillText(h,0,0),S.restore(),a.base64Url=C.toDataURL()}}else throw new Error("当前环境不支持Canvas")};d(),t.watch(()=>[o,l,r,s,i,c,m,p,u,h,b,y,k,v,f],()=>{d()});const g=t.computed(()=>{const C=X1;return{[C]:!0,[`${C}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:g}}});function Z1(e,n,a,o,l,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 va=ne(G1,[["render",Z1]]);function J1(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:_1,create:eC}=X("trend-arrow"),tC=eC({components:{TriangleUp:oe.TriangleUp,TriangleDown:oe.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 n=t.reactive({rateTrend:e.rate>0}),a=t.computed(()=>({[_1]:!0})),o=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;n.rateTrend=r>0;const m=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${J1(Number(m),s)}%`}),l=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:m}=e;return{color:m===0?c:i?n.rateTrend?s:r:c}});return{...t.toRefs(n),classes:a,calcRate:o,calcStyle:l}}});function nC(e,n,a,o,l,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 ba=ne(tC,[["render",nC]]),{create:oC}=X("tour"),lC=oC({components:{[Gt.name]:Gt,Close:oe.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:n}){const a=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),l=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:p,maskWidth:u,maskHeight:h}=e,{width:b,height:y,left:k,top:v}=o.value,f=[k+b/2,v+y/2],d=Number(u||b),g=Number(h||y);return{width:`${d+ +p[1]*2}px`,height:`${g+ +p[0]*2}px`,top:`${f[1]-g/2-+p[0]}px`,left:`${f[0]-d/2-+p[1]}px`}}),s=p=>{p=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,t.nextTick(()=>{a.showPopup=!0,i()}),n("change",a.active)},i=()=>{const p=document.querySelector(`#${e.steps[a.active].target}`),u=Ve(p);o.value=u},c=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},m=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{a.active=0,i()}),t.watch(()=>e.modelValue,p=>{p&&i(),a.active=0,a.showTour=p,a.showPopup=p}),{...t.toRefs(a),classes:l,maskStyle:r,changeStep:s,close:c,handleClickMask:m}}}),aC={key:0,class:"fox-tour-content"},rC={key:0,class:"fox-tour-content-top"},sC={class:"fox-tour-content-inner"},iC={class:"fox-tour-content-bottom"},cC={class:"fox-tour-content-bottom-init"},uC={class:"fox-tour-content-bottom-operate"},dC={key:1,class:"fox-tour-content fox-tour-content-tile"},fC={class:"fox-tour-content-inner"};function mC(e,n,a,o,l,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:n[0]||(n[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,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,style:{height:"0"}},[m==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":n[5]||(n[5]=p=>e.showPopup=p),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",aC,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",rC,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...p)=>e.close&&e.close(...p))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",sC,t.toDisplayString(c.content),1),t.createElementVNode("div",iC,[t.createElementVNode("div",cC,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",uC,[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:n[2]||(n[2]=p=>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:n[3]||(n[3]=(...p)=>e.close&&e.close(...p))},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:n[4]||(n[4]=p=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",dC,[t.createElementVNode("div",fC,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const ka=ne(lC,[["render",mC]]),{componentName:w2,create:pC,scope:hC}=X("address"),gC=pC({components:{Location:oe.Location,Location2:oe.Location2,Check:oe.Check,Close:oe.Close,Left:oe.Left,[de.name]:de,[Ut.name]:Ut},inheritAttrs:!1,props:{...ze,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(hC),o=t.ref(null),l=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),m=t.ref(["province","city","country","town"]),p=t.ref(null),u=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}}),b=E=>{if(!Array.isArray(E))throw new TypeError("params muse be array.");if(!E.length)return[];E.forEach(D=>{if(!D.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const K=[];return E=E.sort((D,W)=>D.title.localeCompare(W.title)),E.forEach(D=>{const W=K.findIndex(H=>H.title===D.title);W<=-1?K.push({title:D.title,list:[].concat(D)}):K[W].list.push(D)}),K};let y=t.ref([]),k=t.reactive({});const v=t.ref("self"),f=t.ref(20),d=()=>{const E=e.modelValue,K=E.length;if(K>0){if(i.value=K-1,h.value.length==0){i.value=0;return}for(let D=0;D<K;D++){let W=[];switch(D){case 0:W=e.province;break;case 1:W=e.city;break;case 2:W=e.country;break;default:W=e.town}y.value[D]=W.filter(H=>H.id==E[D])[0]}C()}},g=(E,K)=>E&&E.name||i.value<K&&E?E.name:e.columnsPlaceholder[K]||a("select"),C=()=>{N(),t.nextTick(()=>{const E=l.value&&l.value.getElementsByClassName("active")[0];if(E){const K=E.offsetLeft;f.value=K||20}})},B=E=>{const K=i.value;c.value=i.value;const D={custom:m.value[K]};y.value[K]=E;for(let W=K+2;W<4;W++)y.value.splice(W,1);K<3?(i.value=K+1,C(),D.next=m.value[i.value],D.value=E,n("change",D)):(T(),n("update:modelValue"))},S=(E,K)=>{c.value=i.value,g(E,K)&&(i.value=K,C())},N=()=>{const E=p.value,K=c.value,D=u.value[i.value];E?.scrollTop&&(u.value[K]=E?.scrollTop),t.nextTick(()=>{E?.scrollTo({top:D,behavior:"auto"})})},A=E=>{const K=e.existAddress;let D={};K.forEach(W=>{W&&W.selectedAddress&&(D=W),W.selectedAddress=!1}),E.selectedAddress=!0,k=E,n("selected",D,E,K),T()},V=()=>{y.value=[],i.value=0,C()},T=(E="self")=>{v.value=E=="cross"?"cross":"self",r.value=!1},w=()=>{v.value="mask"},M=()=>{const E={addressIdStr:"",addressStr:"",province:y.value[0],city:y.value[1],country:y.value[2],town:y.value[3]},K={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(D=>{const W=y.value[D];E.addressIdStr+=`${D?"_":""}${W&&W.id||0}`,E.addressStr+=W&&W.name||""}),K.data=E):K.data=k,V(),v.value=="self"?n("close",K):n("close-mask",{closeWay:v}),n("update:visible",!1)},P=()=>{const E=s.value;s.value=E=="exist"?"custom":"exist",V(),n("switch-module",{type:s.value})},$=(E,K)=>{B(K)};return t.watch(()=>e.visible,E=>{r.value=E}),t.watch(()=>r.value,E=>{E&&d()}),{showPopup:r,privateType:s,tabIndex:i,tabName:m,selectedRegion:y,switchModule:P,closeWay:v,close:M,getTabName:g,nextAreaList:B,regionLine:o,tabRegion:l,lineDistance:f,changeRegionTab:S,selectedExist:A,clickOverlay:w,handClose:T,handleElevatorItem:$,initCustomSelected:d,...t.toRefs(e),t:a,regionList:h,transformData:b,scrollDom:p}}}),yC={class:"fox-address"},vC={class:"fox-address__header"},bC={class:"fox-address__header__title"},kC={key:0,class:"fox-address__custom"},SC={class:"fox-address__region",ref:"tabRegion"},CC=["onClick"],wC={key:0,class:"active fox-address__region-item"},NC={key:0,class:"fox-address__detail"},BC={class:"fox-address__detail-list",ref:"scrollDom"},AC=["onClick"],VC={key:1,class:"fox-address__elevator-group"},TC={key:1,class:"fox-address__exist"},$C={class:"fox-address__exist-group"},EC={class:"fox-address__exist-group-list"},xC=["onClick"],DC={class:"fox-address__exist-item-info"},IC={key:0,class:"fox-address__exist-item-info-name"},qC={key:1,class:"fox-address__exist-item-info-phone"},MC={class:"fox-address__exist-item-info-bottom"},PC={class:"fox-address__exist-choose-btn"};function LC(e,n,a,o,l,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),m=t.resolveComponent("fox-elevator"),p=t.resolveComponent("Location2"),u=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(u,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",yC,[t.createElementVNode("view",vC,[t.createElementVNode("view",{class:"fox-address__header-back",onClick:n[0]||(n[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",bC,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:n[1]||(n[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",kC,[t.createElementVNode("view",SC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,b)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",b==e.tabIndex?"active":""]),key:b,onClick:y=>e.changeRegionTab(h,b)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,b)),1)],10,CC))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",wC,[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",NC,[t.createElementVNode("ul",BC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,b)=>(t.openBlock(),t.createElementBlock("li",{key:b,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick:y=>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,AC))),128))],512)])):(t.openBlock(),t.createElementBlock("view",VC,[t.createVNode(m,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",TC,[t.createElementVNode("div",$C,[t.createElementVNode("ul",EC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,b)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:b,onClick:y=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(p,{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",DC,[h.name?(t.openBlock(),t.createElementBlock("div",IC,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",qC,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",MC,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,xC))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:n[2]||(n[2]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.createElementVNode("div",PC,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 Sa=ne(gC,[["render",LC]]),{componentName:zC,create:FC}=X("barrage"),RC=FC({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 n=new Date().getTime(),a=!!t.useSlots().default,o=t.computed(()=>({[zC]:!0}));let l=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),m=t.ref(e.top),p=t.ref(0),u=e.speeds,h=t.ref(0);t.onMounted(()=>{b(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(k(),p.value=0,y("hidden")):document.visibilityState==="visible"&&b()})}),t.onUnmounted(()=>{i.value=[],k()});const b=()=>{h.value=l.value.offsetWidth,a&&y("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${h.value}px`),f()},300)},y=g=>{let B=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const S=[];B&&Array.from(B).forEach(N=>{g=="init"?(N.style.opacity="0",S.push(N)):(N.classList="",N.style={})}),g=="init"&&(i.value=S)},k=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,g=>{e.danmu.length>0&&(i.value=[...g])});const v=g=>{const C=p.value%i.value.length;!e.loop&&p.value===i.value.length?i.value.splice(i.value.length,0,g):i.value.splice(C,0,g)},f=()=>{k(),s=setTimeout(()=>{d()},e.frequency)},d=()=>{const g=e.loop?p.value%i.value.length:p.value;let C=document.createElement("view");a&&typeof i.value[g]=="object"?(C=i.value[g],C?.classList?.add("fox-barrage__item")):(C.innerHTML=i.value[g],C.classList.add("fox-barrage__item"),r.value.appendChild(C)),t.nextTick(()=>{const B=C.offsetHeight;if(C?.classList?.add("move"),C.style.animationDuration=`${u}ms`,C.style.top=g%c.value*(B+m.value)+20+"px",C.style.opacity="1",!a){const S=C.offsetWidth;C.style.width=S+20+"px"}C.addEventListener("animationend",()=>{a?C.classList.remove("move"):r.value.removeChild(C)}),!(!e.loop&&p.value>=i.value.length-1)&&(p.value++,p.value>=i.value.length&&(p.value=0),C.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:o,danmuList:i,dmBody:l,dmContainer:r,add:v}}});function OC(e,n,a,o,l,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 Ca=ne(RC,[["render",OC]]),{componentName:KC,create:UC,scope:HC}=X("signature"),jC=UC({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:{[Me.name]:Me},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:a}=re.useFoxI18n(HC),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),s=t.computed(()=>({[KC]:!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 d=document.createElement("canvas");return!!(d.getContext&&d.getContext("2d"))},m=()=>{l.value.addEventListener(i.events[0],p,!1)},p=d=>{d.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(i.events[1],u,!1),l.value.addEventListener(i.events[2],h,!1),l.value.addEventListener(i.events[3],b,!1)},u=d=>{d.preventDefault();let g=i.isSupportTouch?d.touches[0]:d;n("signing",g);let C=l.value.getBoundingClientRect(),B=g.clientX-C.left,S=g.clientY-C.top;i.ctx.lineTo(B,S),i.ctx.stroke()},h=d=>{d.preventDefault(),n("end"),l.value.removeEventListener(i.events[1],u,!1),l.value.removeEventListener(i.events[2],h,!1)},b=d=>{d.preventDefault(),l.value.removeEventListener(i.events[1],u,!1),l.value.removeEventListener(i.events[2],h,!1)},y=()=>{l.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},k=()=>{f(l.value)},v=d=>{if(!d)return!0;var g=document.createElement("canvas");return g.width=d.width,g.height=d.height,d?.toDataURL()==g.toDataURL()},f=d=>{let g;switch(e.type){case"png":g=d.toDataURL("image/png");break;case"jpg":g=d.toDataURL("image/jpeg",.8);break}const C=v(d)?"请绘制签名":d,B=v(d)?"":g;n("confirm",C,B)};return t.onMounted(()=>{c()&&(i.ctx=l.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,m())}),{...o,...t.toRefs(i),canvas:l,wrap:r,isCanvasSupported:c,confirm:k,clear:y,classes:s}}}),WC={class:"fox-signature-inner",ref:"wrap"},YC=["height","width"],XC={key:0,class:"fox-signature-unsopport"};function QC(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",WC,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,YC),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",XC,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(s,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[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:n[1]||(n[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const wa=ne(jC,[["render",QC]]),{componentName:GC,create:ZC,scope:JC}=X("time-select"),_C=ZC({components:{[de.name]:de},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,n)=>{const{t:a}=re.useFoxI18n(JC),o=t.computed(()=>({[GC]:!0})),l=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),s=t.computed(()=>e.currentTime),i=()=>{n.emit("update:visible",!1),n.emit("select",s.value)};return t.provide("currentKey",r),t.provide("currentTime",s),{classes:o,popStyle:l,props:e,close:i,t:a}}}),ew={class:"fox-time-select__title"},tw={class:"fox-time-select__title__fixed"},nw={key:0},ow={class:"fox-time-select__content"},lw={class:"fox-time-select__content__pannel"},aw={class:"fox-time-select__content__detail"};function rw(e,n,a,o,l,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",ew,[t.createElementVNode("view",tw,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",nw,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",ow,[t.createElementVNode("view",lw,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",aw,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Na=ne(_C,[["render",rw]]),{componentName:sw,create:iw}=X("time-pannel"),cw=iw({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,n)=>{const a=t.inject("currentKey"),o=t.reactive({currentKey:a}),l=t.computed(()=>({[sw]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function uw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=s=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const Ba=ne(cw,[["render",uw]]),{componentName:dw,create:fw}=X("time-detail"),mw=fw({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,n)=>{const a=t.inject("currentKey"),o=t.inject("currentTime"),l=t.reactive({currentKey:a,currentTime:o}),r=t.computed(()=>({[dw]:!0})),s=m=>{let p=l.currentTime.find(u=>u.key==l.currentKey);if(p)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":p.list.filter(u=>u===m).length>0}},i=t.computed(()=>e.times.find(m=>m.key==l.currentKey).list),c=m=>{n.emit("select",m)};return{classes:r,...t.toRefs(l),getClass:s,renderData:i,handleTime:c}}}),pw={class:"fox-time-detail__detail fox-time-detail__detail--moring"},hw={class:"fox-time-detail__detail__list"},gw=["onClick"];function yw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",pw,[t.createElementVNode("view",hw,[(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,gw))),128))])])],2)}const Aa=ne(mw,[["render",yw]]),{componentName:N2,create:vw,scope:bw}=X("sku-header"),kw=vw({props:{goods:{type:Object,default:{}}},emits:[],components:{[Ge.name]:Ge},setup(e,{emit:n,slots:a}){const{t:o}=re.useFoxI18n(bw);return{getSlots:r=>a[r],t:o}}}),Sw={class:"fox-sku-header"},Cw=["src"],ww={class:"fox-sku-header-right"},Nw={key:3,class:"fox-sku-header-right-extra"};function Bw(e,n,a,o,l,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",Sw,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,Cw),t.createElementVNode("view",ww,[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",Nw,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const Aw=ne(kw,[["render",Bw]]),{componentName:B2,create:Vw}=X("sku-select"),Tw=Vw({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:n}){const a=t.ref([]);return t.watch(()=>e.sku,l=>{a.value=[].slice.call(l)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(a.value=[].slice.call(e.sku))}),{skuInfo:a,changeSaleChild:(l,r,s,i)=>{l.checkFlag||l.disable||n("selectSku",{sku:l,skuIndex:r,parentSku:s,parentIndex:i})}}}}),$w={class:"fox-sku-select"},Ew={class:"fox-sku-select-item-title"},xw={class:"fox-sku-select-item-skus"},Dw=["onClick"];function Iw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",$w,[(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",Ew,t.toDisplayString(s.name),1),t.createElementVNode("view",xw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.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:p=>e.changeSaleChild(c,m,s,i),key:c.name},t.toDisplayString(c.name),11,Dw))),128))])]))),128))])}const qw=ne(Tw,[["render",Iw]]),{componentName:A2,create:Mw}=X("sku-stepper"),Pw=Mw({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:{[Ze.name]:Ze},setup(e,{emit:n}){const a=t.ref(e.stepperMin);return t.onMounted(()=>{a.value=e.stepperMin}),{goodsCount:a,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,m)=>{n("overLimit",{action:m,value:parseInt(a.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&at(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),Lw={class:"fox-sku-stepper"},zw={class:"fox-sku-stepper-title"},Fw=["innerHTML"],Rw={class:"fox-sku-stepper-count"};function Ow(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",Lw,[t.createElementVNode("view",zw,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,Fw),t.createElementVNode("view",Rw,[t.createVNode(s,{modelValue:e.goodsCount,"onUpdate:modelValue":n[0]||(n[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 Kw=ne(Pw,[["render",Ow]]),{componentName:V2,create:Uw}=X("sku-operate"),Hw=Uw({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:a}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{n("clickBtnOperate",s)},getSlots:s=>a[s]}}}),jw={key:0,class:"fox-sku-operate"},Ww={key:0,class:"fox-sku-operate-desc"},Yw={key:1,class:"fox-sku-operate-btn"},Xw=["onClick"];function Qw(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",jw,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",Ww,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",Yw,[(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,Xw))),128))]))])):t.createCommentVNode("",!0)}const Gw=ne(Hw,[["render",Qw]]),{componentName:T2,create:Zw,scope:Jw}=X("sku"),_w=Zw({props:{...ze,sku:{type:Array,default:[]},goods:{type:Object,default:{}},stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},btnOptions:{type:Array,default:()=>["confirm"]},stepperTitle:{type:String,default:""},stepperExtraText:{type:[Function,Boolean],default:!1},btnExtraText:{type:String,default:""},buyText:{type:String,default:""},addCartText:{type:String,default:""},confirmText:{type:String,default:""}},emits:["update:visible","select-sku","change-stepper","click-btn-operate","click-close-icon","click-overlay","close","reduce","add","over-limit"],components:{SkuHeader:Aw,SkuSelect:qw,SkuStepper:Kw,SkuOperate:Gw,[de.name]:de},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=re.useFoxI18n(Jw),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,v=>{r.value=v}),t.watch(()=>r.value,v=>{v==!1&&k()}),t.onMounted(()=>{});const i=v=>a[v],c=v=>{n("select-sku",v)},m=v=>{s.value=v,n("change-stepper",v)},p=v=>{n("add",v)},u=v=>{n("reduce",v)},h=v=>{n("over-limit",v)},b=v=>{n("click-btn-operate",{type:v,value:s.value})},y=v=>{v=="icon"&&n("click-close-icon"),v=="overlay"&&n("click-overlay"),v=="close"&&n("close"),r.value=!1},k=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:y,selectSku:c,changeStepper:m,stepperOverLimit:h,clickBtnOperate:b,add:p,reduce:u,getSlots:i,...l}}}),eN={class:"fox-sku"},tN={class:"fox-sku-content"};function nN(e,n,a,o,l,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),m=t.resolveComponent("sku-operate"),p=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(p,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=u=>e.showPopup=u),onClickCloseIcon:n[1]||(n[1]=u=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=u=>e.closePopup("overlay")),onClose:n[3]||(n[3]=u=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",eN,[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",tN,[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(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","teleportDisable","teleport"])}const Va=ne(_w,[["render",nN]]),{create:oN}=X("card"),lN=oN({components:{[Ge.name]:Ge,[Qt.name]:Qt},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:n,slots:a}){return{isHaveSlot:l=>a[l]}}}),aN={class:"fox-card"},rN={class:"fox-card__left"},sN=["src"],iN={class:"fox-card__right"},cN={class:"fox-card__right__title"},uN={key:0,class:"fox-card__right__price"},dN={class:"fox-card__right__other"},fN={class:"fox-card__right__shop"},mN={class:"fox-card__right__shop__name"};function pN(e,n,a,o,l,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",aN,[t.createElementVNode("div",rN,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,sN)]),t.createElementVNode("div",iN,[t.createElementVNode("div",cN,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",uN,[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",dN,[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",fN,[t.createElementVNode("div",mN,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Ta=ne(lN,[["render",pN]]),{create:hN,scope:gN}=X("ecard"),yN=hN({components:{[Ze.name]:Ze},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:n}){const{t:a}=re.useFoxI18n(gN),o=t.ref(null),l=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,b)=>{o.value=b,s.value=e.cardAmountMin,l.value=h.price,n("change",h),n("update:modelValue",h.price)},m=h=>{let y=h.target.value.replace(/[^\d]/g,"");r.value=y,l.value=y,Number(y)>e.cardAmountMax&&(r.value=e.cardAmountMax,l.value=e.cardAmountMax),Number(y)<e.cardAmountMin&&(r.value=e.cardAmountMin,l.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},p=()=>{o.value="input",s.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},u=h=>{s.value=h,n("changeStep",s.value,l.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:u,change:m,inputClick:p,stepValue:s,currentIndex:o,inputValue:r,money:i,t:a}}}),vN={class:"fox-ecard"},bN={class:"fox-ecard__title"},kN={class:"fox-ecard__list"},SN=["onClick"],CN={class:"fox-ecard__list__input--con"},wN=["placeholder"],NN={class:"fox-ecard__list__step"};function BN(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",vN,[t.createElementVNode("view",bN,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",kN,[(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:m=>e.handleClick(i,c)},t.toDisplayString(i.price),11,SN))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:n[2]||(n[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",CN,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":n[0]||(n[0]=i=>e.inputValue=i),onInput:n[1]||(n[1]=(...i)=>e.change&&e.change(...i)),placeholder:e.placeholder||e.t("placeholder")},null,40,wN),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",NN,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(s,{modelValue:e.stepValue,"onUpdate:modelValue":n[3]||(n[3]=i=>e.stepValue=i),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const $a=ne(yN,[["render",BN]]),{create:AN,scope:VN}=X("address-list-item"),TN=AN({components:{Del:oe.Del,Edit:oe.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(VN);return{delClick:s=>{n("delIcon",s,e.item),s.stopPropagation()},editClick:s=>{n("editIcon",s,e.item),s.stopPropagation()},contentsClick:s=>{n("clickItem",s,e.item),s.stopPropagation()},t:a}}}),$N={class:"fox-address-list-item__info"},EN={class:"fox-address-list-item__info-contact"},xN={class:"fox-address-list-item__info-contact-name"},DN={class:"fox-address-list-item__info-contact-tel"},IN={key:0,class:"fox-address-list-item__info-contact-default"},qN={class:"fox-address-list-item__info-handle"},MN={class:"fox-address-list-item__addr"};function PN(e,n,a,o,l,r){const s=t.resolveComponent("Del"),i=t.resolveComponent("Edit");return t.openBlock(),t.createElementBlock("div",{class:"fox-address-list-item",onClick:n[0]||(n[0]=(...c)=>e.contentsClick&&e.contentsClick(...c))},[t.createElementVNode("div",$N,[t.createElementVNode("div",EN,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",xN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",DN,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",IN,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",qN,[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",MN,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const Ar=ne(TN,[["render",PN]]),{create:LN}=X("address-list-general"),zN=LN({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:Ar,[Me.name]:Me,[Wt.name]:Wt},setup(e,{emit:n}){const a=()=>t.h(Ar,{item:e.item,onDelIcon(B){s(B)},onEditIcon(B){i(B)},onClickItem(B){c(B)}});let o=null;const l=t.ref(!1),r=t.ref(!1),s=B=>{n("delIcon",B,e.item),B.stopPropagation()},i=B=>{n("editIcon",B,e.item),B.stopPropagation()},c=B=>{l.value||(n("clickItem",B,e.item),B.stopPropagation())},m=B=>{n("longDel",B,e.item),B.stopPropagation()},p=B=>{o=0,r.value=!0,n("longDown",B,e.item)};return{renderCompontent:a,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:m,holddownstart:B=>{o=setTimeout(()=>{p(B)},300)},holddownmove:()=>{clearTimeout(o)},holddownend:()=>{clearTimeout(o)},copyCLick:B=>{n("longCopy",B,e.item),B.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:B=>{n("longSet",B,e.item),B.stopPropagation()},maskClick:B=>{o!=0&&(r.value=!1),B.stopPropagation(),B.preventDefault()},swipeDelClick:B=>{n("swipeDel",B,e.item),B.stopPropagation()},swipestart:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),FN={key:0,class:"fox-address-list-general"},RN={class:"fox-address-list-swipe"};function ON(e,n,a,o,l,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",RN,[(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",FN,[(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:n[3]||(n[3]=(...c)=>e.maskClick&&e.maskClick(...c))},[t.renderSlot(e.$slots,"longpress-all",{},()=>[t.createElementVNode("div",{class:"fox-address-list-general__mask-copy",onClick:n[0]||(n[0]=(...c)=>e.copyCLick&&e.copyCLick(...c))},"复制地址"),t.createElementVNode("div",{class:"fox-address-list-general__mask-set",onClick:n[1]||(n[1]=(...c)=>e.setDefault&&e.setDefault(...c))},"设置默认"),t.createElementVNode("div",{class:"fox-address-list-general__mask-del",onClick:n[2]||(n[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:n[4]||(n[4]=(...c)=>e.hideMaskClick&&e.hideMaskClick(...c))})):t.createCommentVNode("",!0)]))}const KN=ne(zN,[["render",ON]]),{componentName:UN,create:HN,scope:jN}=X("address-list"),WN=HN({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:KN,[Me.name]:Me},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(jN),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[UN]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(k=>Ur(l,k,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(k,v)=>{n("delIcon",k,v),k.stopPropagation()},c=(k,v)=>{n("editIcon",k,v),k.stopPropagation()},m=(k,v)=>{n("clickItem",k,v),k.stopPropagation()},p=(k,v)=>{n("longCopy",k,v),k.stopPropagation()},u=(k,v)=>{n("longSet",k,v),k.stopPropagation()},h=(k,v)=>{n("longDel",k,v),k.stopPropagation()},b=(k,v)=>{n("swipeDel",k,v),k.stopPropagation()},y=k=>{n("add",k),k.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:m,clickLongCopy:p,clickLongSet:u,clickLongDel:h,clickSwipeDel:b,addAddress:y,dataArray:o,t:a}}});function YN(e,n,a,o,l,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,m)=>(t.openBlock(),t.createBlock(s,{key:m,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:n[0]||(n[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 Ea=ne(WN,[["render",YN]]),{componentName:$2,create:XN}=X("category"),QN=XN({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:n,slots:a}){const o=t.ref(0),l=t.ref(!1);return{getChildList:s=>{o.value=s,n("change",s)},checkIndex:o,categoryLeft:l}}}),GN={class:"fox-category"},ZN={class:"fox-category__cateList"},JN={key:0},_N=["onClick"];function eB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",GN,[t.createElementVNode("div",ZN,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",JN,[(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,_N)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const xa=ne(QN,[["render",eB]]),{componentName:E2,create:tB}=X("category-pane"),nB=tB({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),oB={class:"fox-category-pane"},lB={key:0,class:"fox-category-pane__cateListRight"},aB={class:"fox-category-pane__childTitle"},rB={key:0,class:"fox-category-pane__childItemList"},sB=["onClick"],iB=["src"],cB={class:"fox-category-pane__skuImg"},uB={key:1,class:"fox-category-pane__cateListRight"},dB={class:"fox-category-pane__childTitle"},fB={key:0,class:"fox-category-pane__childItemList"},mB=["onClick"],pB={class:"fox-category-pane__skuName"},hB={key:2,class:"fox-category-pane__selfItemList"},gB=["onClick"];function yB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",oB,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",lB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",aB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",rB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,m)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:m,onClick:p=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,iB),t.createElementVNode("div",cB,t.toDisplayString(c?.catName),1)],8,sB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",uB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",dB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",fB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,m)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:m,onClick:p=>e.onChange(c)},[t.createElementVNode("div",pB,t.toDisplayString(c?.catName),1)],8,mB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",hB,[(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,gB))),128))])):t.createCommentVNode("",!0)])}const Da=ne(nB,[["render",yB]]),{componentName:x2,create:vB}=X("comment-header"),bB=vB({components:{[kt.name]:kt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),kB={class:"fox-comment-header__user"},SB={class:"fox-comment-header__user-avter"},CB=["src"],wB={class:"fox-comment-header__user-score"},NB={key:0,class:"fox-comment-header__time"};function BB(e,n,a,o,l,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:n[1]||(n[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",kB,[t.createElementVNode("view",SB,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,CB)):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",wB,[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":n[0]||(n[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",NB,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":n[2]||(n[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 AB=ne(bB,[["render",BB]]),{componentName:D2,create:VB}=X("comment-images"),TB=VB({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:oe.Right},emits:["click","clickImages"],setup(e,{emit:n}){const a=t.ref(!1),o=t.ref(1),l=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),l.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),l.value=e.videos.concat(e.images)}),{isShowImage:a,initIndex:o,showImages:(s,i)=>{const{videos:c,images:m}=e,p=s=="img"?i-c.length:i;n("clickImages",{type:s,index:p,value:s=="img"?m[p]:c[p]})},totalImages:l}}}),$B=["onClick"],EB=["src"],xB=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),DB=["onClick"],IB=["src"],qB={key:0,class:"fox-comment-images__mask"};function MB(e,n,a,o,l,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:m=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,EB),xB],8,$B))),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:m=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,IB),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",qB,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,DB)):t.createCommentVNode("",!0)],64))),128))],2)}const PB=ne(TB,[["render",MB]]),{componentName:I2,create:LB,scope:zB}=X("comment-bottom"),FB=LB({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:oe.Fabulous,Comment:oe.Comment,MoreX:oe.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(zB),o=t.ref(!1),l=t.ref([]);return t.onMounted(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&l.value.push(c)})}),{showPopver:o,operate:i=>{i=="more"&&(o.value=!o.value),n("clickOperate",i)},mergeOp:l,handleClick:()=>{n("handleClick")},t:a}}}),RB={class:"fox-comment-bottom"},OB={key:0},KB={class:"fox-comment-bottom__cpx"},UB=["onClick"];function HB(e,n,a,o,l,r){const s=t.resolveComponent("Fabulous"),i=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",RB,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...m)=>e.handleClick&&e.handleClick(...m)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",OB,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",KB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(m,p)=>(t.openBlock(),t.createElementBlock("view",{key:p,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${m}`]),onClick:u=>e.operate(m)},[m!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[m]),1),m=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),m=="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:n[1]||(n[1]=u=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,UB))),128))])])}const jB=ne(FB,[["render",HB]]),{componentName:WB,create:YB,scope:XB}=X("comment"),QB=YB({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:AB,CommentImages:PB,CommentBottom:jB,Right:oe.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(XB),o=t.computed(()=>({[WB]:!0})),l=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:o,conEllipsis:l,clickOperate:c=>{n("clickOperate",c)},handleClick:()=>{n("click",e.info)},clickImages:c=>{n("clickImages",c)},t:a}}}),GB=["innerHTML"],ZB={class:"fox-comment__follow-title"},JB={class:"fox-comment__follow-com"},_B={key:0,class:"fox-comment__follow-img"};function e2(e,n,a,o,l,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),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(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:n[0]||(n[0]=(...p)=>e.handleClick&&e.handleClick(...p)),innerHTML:e.info.content},null,12,GB),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:n[1]||(n[1]=(...p)=>e.handleClick&&e.handleClick(...p))},[t.createElementVNode("view",ZB,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",JB,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",_B,[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(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 Ia=ne(QB,[["render",e2]]),t2=[Ko,Ho,jo,Wo,Yo,Se,Xo,Qo,Go,Zo,Jo,Pn,tl,nl,ll,al,Un,Hn,rl,jn,Wn,sl,il,Bt,cl,ul,Gn,dl,fl,Ln,zn,Fn,ml,pl,hl,ot,gl,yl,vl,bl,kl,Sl,Me,Cl,wl,rt,de,Nl,Bl,Al,Vl,Kt,Tl,$l,El,xl,Dl,Il,ql,Ml,Pl,Ut,Ll,zl,Fl,Rl,Ol,Kl,Ul,Ht,Qn,Rn,Kn,On,Ze,kt,bt,Hl,jl,Wl,Wt,Yl,Xl,Ql,Yt,Xn,Gl,Jl,Yn,At,ea,ta,Xt,na,oa,jt,la,aa,ra,St,sa,ia,Ct,wt,Ge,Zn,ca,ua,da,Qt,Gt,fa,ma,pa,ha,ga,ya,va,ba,ka,Sa,Ca,wa,Na,Ba,Aa,Va,Ta,$a,Ea,xa,Da,Ia],n2=new bi(t2,"4.0.0");exports.ActionSheet=Yl;exports.ActionsheetItem=dl;exports.ActionsheetPane=Gn;exports.Address=Sa;exports.AddressList=Ea;exports.Animate=ya;exports.Audio=ea;exports.AudioOperate=ta;exports.Avatar=Xt;exports.AvatarGroup=na;exports.BackTop=Xl;exports.Badge=da;exports.Barrage=Ca;exports.Broadcast=Fo;exports.BroadcastKey=ke;exports.Button=Me;exports.Calendar=Kn;exports.CalendarItem=al;exports.Card=Ta;exports.Cascader=Rn;exports.CascaderItem=nl;exports.Category=xa;exports.CategoryPane=Da;exports.Cell=Cl;exports.CellGroup=wl;exports.Checkbox=jn;exports.CheckboxGroup=Wn;exports.CheckboxItem=sl;exports.CircleProgress=la;exports.Col=Al;exports.Collapse=ma;exports.CollapseItem=pa;exports.Comment=Ia;exports.Content=Wo;exports.CountDown=ua;exports.CountUp=ca;exports.DataItemsKey=dt;exports.DateItem=ll;exports.DatePicker=On;exports.DateUtils=le;exports.Dialog=Yt;exports.Divider=Tl;exports.Domain=Nn;exports.DomainKey=Ie;exports.DomainProvider=kl;exports.Drag=Ql;exports.Dropdown=yl;exports.Ecard=$a;exports.Elevator=Ut;exports.Ellipsis=ga;exports.Empty=ra;exports.FixedNav=Dl;exports.FloatingButton=pl;exports.FooterBar=jo;exports.FoxActionSheet=Yl;exports.FoxActionsheetItem=dl;exports.FoxActionsheetPane=Gn;exports.FoxAddress=Sa;exports.FoxAddressList=Ea;exports.FoxAnimate=ya;exports.FoxAudio=ea;exports.FoxAudioOperate=ta;exports.FoxAvatar=Xt;exports.FoxAvatarGroup=na;exports.FoxBackTop=Xl;exports.FoxBadge=da;exports.FoxBarrage=Ca;exports.FoxButton=Me;exports.FoxCalendar=Kn;exports.FoxCalendarItem=al;exports.FoxCard=Ta;exports.FoxCascader=Rn;exports.FoxCascaderItem=nl;exports.FoxCategory=xa;exports.FoxCategoryPane=Da;exports.FoxCell=Cl;exports.FoxCellGroup=wl;exports.FoxCheckbox=jn;exports.FoxCheckboxGroup=Wn;exports.FoxCheckboxItem=sl;exports.FoxCircleProgress=la;exports.FoxCol=Al;exports.FoxCollapse=ma;exports.FoxCollapseItem=pa;exports.FoxComment=Ia;exports.FoxContent=Wo;exports.FoxCountDown=ua;exports.FoxCountUp=ca;exports.FoxDateItem=ll;exports.FoxDatePicker=On;exports.FoxDialog=Yt;exports.FoxDivider=Tl;exports.FoxDomainProvider=kl;exports.FoxDrag=Ql;exports.FoxDropdown=yl;exports.FoxEcard=$a;exports.FoxElevator=Ut;exports.FoxEllipsis=ga;exports.FoxEmpty=ra;exports.FoxFixedNav=Dl;exports.FoxFloatingButton=pl;exports.FoxFooterBar=jo;exports.FoxGrid=$l;exports.FoxGridItem=El;exports.FoxGroup=Yo;exports.FoxHeaderBar=Ho;exports.FoxHintText=Bt;exports.FoxImage=Nl;exports.FoxImagePreview=Zn;exports.FoxIndicator=Rl;exports.FoxInfiniteLoading=Xn;exports.FoxInputItem=Go;exports.FoxInputNumber=Ze;exports.FoxInputnumberItem=fl;exports.FoxItem=Se;exports.FoxLayout=Bl;exports.FoxLinkItem=cl;exports.FoxList=oa;exports.FoxMapping=bl;exports.FoxMenu=Il;exports.FoxMenuItem=ql;exports.FoxMessageBox=ot;exports.FoxMoneyItem=Zo;exports.FoxMoreButton=hl;exports.FoxNavbar=xl;exports.FoxNoticeBar=aa;exports.FoxNotify=Jl;exports.FoxNumberKeyboard=Wl;exports.FoxOverLay=rt;exports.FoxPage=Ko;exports.FoxPagination=Ll;exports.FoxPicker=bt;exports.FoxPickerItem=tl;exports.FoxPopover=Gt;exports.FoxPopup=de;exports.FoxPopupWrapper=gl;exports.FoxPrice=Ge;exports.FoxProgress=jt;exports.FoxPullRefresh=Gl;exports.FoxRadio=Un;exports.FoxRadioGroup=Hn;exports.FoxRadioItem=rl;exports.FoxRange=Ht;exports.FoxRate=kt;exports.FoxRateItem=ul;exports.FoxRollingProvider=Sl;exports.FoxRow=Vl;exports.FoxRowItem=Xo;exports.FoxSearchBar=Qn;exports.FoxShortPassword=Hl;exports.FoxSideNavBar=Ol;exports.FoxSideNavBarItem=Kl;exports.FoxSignature=wa;exports.FoxSkeleton=fa;exports.FoxSku=Va;exports.FoxSlotItem=Qo;exports.FoxStep=ia;exports.FoxSteps=sa;exports.FoxStepsBar=ml;exports.FoxSticky=Kt;exports.FoxSubSideNavBar=Ul;exports.FoxSwipe=Wt;exports.FoxSwiper=Ct;exports.FoxSwiperItem=wt;exports.FoxSwitch=Yn;exports.FoxSwitchItem=il;exports.FoxTabPane=Fl;exports.FoxTabbar=Ml;exports.FoxTabbarItem=Pl;exports.FoxTable=ha;exports.FoxTabs=zl;exports.FoxTabsBar=Ln;exports.FoxTabsContainer=zn;exports.FoxTabsPane=Fn;exports.FoxTag=Qt;exports.FoxText=vl;exports.FoxTextarea=Pn;exports.FoxTextareaItem=Jo;exports.FoxTimeDetail=Aa;exports.FoxTimePannel=Ba;exports.FoxTimeSelect=Na;exports.FoxToast=At;exports.FoxTour=ka;exports.FoxTrendArrow=ba;exports.FoxUploader=jl;exports.FoxVideo=St;exports.FoxWaterMark=va;exports.Grid=$l;exports.GridItem=El;exports.Group=Yo;exports.HeaderBar=Ho;exports.HintText=Bt;exports.Image=Nl;exports.ImagePreview=Zn;exports.Indicator=Rl;exports.InfiniteLoading=Xn;exports.InputItem=Go;exports.InputNumber=Ze;exports.InputnumberItem=fl;exports.Item=Se;exports.Layout=Bl;exports.LinkItem=cl;exports.List=oa;exports.Mapping=bl;exports.Menu=Il;exports.MenuItem=ql;exports.MessageBox=ot;exports.MoneyItem=Zo;exports.MoreButton=hl;exports.Navbar=xl;exports.NoticeBar=aa;exports.Notify=Jl;exports.NumberKeyboard=Wl;exports.OverLay=rt;exports.Page=Ko;exports.Pagination=Ll;exports.Picker=bt;exports.PickerItem=tl;exports.Popover=Gt;exports.Popup=de;exports.PopupWrapper=gl;exports.Price=Ge;exports.PriorityPolicy=pn;exports.Progress=jt;exports.PullRefresh=Gl;exports.Radio=Un;exports.RadioGroup=Hn;exports.RadioItem=rl;exports.Range=Ht;exports.Rate=kt;exports.RateItem=ul;exports.RollingProvider=Sl;exports.Row=Vl;exports.RowItem=Xo;exports.SearchBar=Qn;exports.ShortPassword=Hl;exports.SideNavBar=Ol;exports.SideNavBarItem=Kl;exports.Signature=wa;exports.Skeleton=fa;exports.Sku=Va;exports.SlotItem=Qo;exports.Step=ia;exports.Steps=sa;exports.StepsBar=ml;exports.Sticky=Kt;exports.SubSideNavBar=Ul;exports.Swipe=Wt;exports.Swiper=Ct;exports.SwiperItem=wt;exports.Switch=Yn;exports.SwitchItem=il;exports.TabPane=Fl;exports.Tabbar=Ml;exports.TabbarItem=Pl;exports.Table=ha;exports.Tabs=zl;exports.TabsBar=Ln;exports.TabsContainer=zn;exports.TabsPane=Fn;exports.Tag=Qt;exports.Text=vl;exports.Textarea=Pn;exports.TextareaItem=Jo;exports.TimeDetail=Aa;exports.TimePannel=Ba;exports.TimeSelect=Na;exports.Toast=At;exports.Tour=ka;exports.TrendArrow=ba;exports.UniqueID=Mn;exports.Uploader=jl;exports.ValidateSchema=Xr;exports.ValidateSchemaKey=Ke;exports.Video=St;exports.WaterMark=va;exports.cancelRaf=Vr;exports.clamp=Oe;exports.clearNonNumber=bo;exports.clone=vo;exports.compareTo=go;exports.createBroadcast=Cn;exports.createValidateSchema=wn;exports.debounce=yt;exports.debounceRef=ci;exports.decimalLength=Kr;exports.default=n2;exports.defineBroadcast=_s;exports.defineConfigDomain=Qr;exports.defineDataItem=Zr;exports.defineDomain=Oo;exports.defineItem=Ne;exports.definePageState=Jr;exports.deleteGlobalValidator=li;exports.disabledProperty=we;exports.divide=zo;exports.excludeProps=Nt;exports.extend=lt;exports.floatData=Ur;exports.getGlobalValidateCheckEvents=jr;exports.getGlobalValidateResetEvents=Yr;exports.getPageContentAreaHeight=fn;exports.getPageContentAreaWidth=mn;exports.getPageFooterAreaHeight=Vn;exports.getPageHeaderAreaHeight=An;exports.getRootDomain=pt;exports.hasSymbol=Mr;exports.includeProps=ve;exports.indexOf=Zs;exports.installRules=Gr;exports.integerLength=Or;exports.isArray=bn;exports.isArrayLike=Lr;exports.isBrowser=it;exports.isDate=Ue;exports.isESModule=Ws;exports.isEmptyString=ue;exports.isEqual=qe;exports.isFunction=un;exports.isHidden=Sn;exports.isInnerPage=fi;exports.isMap=Us;exports.isNil=Dr;exports.isNumberString=Rr;exports.isObject=Ae;exports.isPlainObject=yo;exports.isPromise=gt;exports.isRegExp=Fr;exports.isSet=Hs;exports.isString=Ir;exports.isSubPage=mi;exports.isSymbol=js;exports.isTouch=_o;exports.isWindow=Pr;exports.lastIndexOf=Js;exports.makeArray=Gs;exports.merge=zr;exports.multiply=$r;exports.negate=Er;exports.nextTick=Xs;exports.numberFormat=vn;exports.objectToString=qr;exports.once=ui;exports.overrideGlobalValidateHandler=ni;exports.padZero=et;exports.preventDefault=ko;exports.property=Be;exports.raf=Re;exports.readonlyProperty=Te;exports.setGlobalValidateCheckEvents=ai;exports.setGlobalValidateHandler=ti;exports.setGlobalValidateMessages=si;exports.setGlobalValidateResetEvents=ri;exports.setGlobalValidator=oi;exports.throttle=dn;exports.toBoolean=pe;exports.toNumber=fe;exports.toPadding=Le;exports.toPx=ie;exports.toPxDesc=he;exports.toTypeString=kn;exports.toValue=xe;exports.tryTimes=Ro;exports.typeOf=at;exports.unNumberFormat=xr;exports.updatePageState=So;exports.useBroadcast=qt;exports.useDomain=He;exports.useExpose=$e;exports.useInnerSize=Tn;exports.usePageState=Bn;exports.usePosition=ss;exports.useRawTouch=el;exports.useRect=Ve;exports.useSize=Uo;exports.useTouch=_e;exports.valueLength=ye;
13
+ `)}}});function rg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const $l=ne(ag,[["render",rg]]),{create:sg}=X("sticky"),ig=sg({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:n}){const a=t.ref(),o=t.ref(),l=t.reactive({fixed:!1,height:0,transform:0}),r=t.computed(()=>e.position==="top"?Number(e.top):Number(e.bottom)),s=t.computed(()=>l.fixed?{height:`${l.height}px`}:{}),i=t.computed(()=>l.fixed?{[e.position]:`${r.value}px`,transform:l.transform?`translate3d(0, ${l.transform}px, 0)`:void 0,position:l.fixed?"fixed":void 0,zIndex:Number(e.zIndex)}:{}),c=()=>{const m=e.container;if(!a.value&&!m)return;const p=Ve(a),u=o.value,h=Ve(u),k=Ve(m);l.height=p.height;const y=()=>{let v=!1;if(e.position==="top")v=m?r.value>p.top&&k.bottom>0:r.value>p.top;else{const f=document.documentElement.clientHeight;v=m?k.bottom>0&&f-r.value-h.height>k.top:f-r.value<p.bottom}return v},b=()=>{if(m)if(e.position==="top"){const v=k.bottom-r.value-h.height;return v<0?v:0}else{const v=document.documentElement.clientHeight,f=k.bottom-(v-r.value);return f<0?f:0}return 0};l.transform=b(),l.fixed=y()};return t.watch(()=>l.fixed,m=>{n("change",m)}),t.onMounted(()=>{c(),Mo(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{Mo(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function cg(e,n,a,o,l,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 Ut=ne(ig,[["render",cg]]),{componentName:ug,create:dg}=X("divider"),fg=dg({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 o=ug;let l={[o]:!0},r={};return e.direction==="horizontal"?r={...l,[`${o}-center`]:n.slots.default,[`${o}-left`]:e.contentPosition==="left",[`${o}-right`]:e.contentPosition==="right",[`${o}-dashed`]:e.dashed,[`${o}-hairline`]:e.hairline}:r={...l,[`${o}-vertical`]:e.direction==="vertical"},r})}}});function mg(e,n,a,o,l,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 El=ne(fg,[["render",mg]]);function pg(e,n){const a=[],o=l=>{Array.isArray(l)&&l.forEach(r=>{if(t.isVNode(r)){if(n){if(r.type&&r.type.name===n){a.push(r);return}}else a.push(r);r.component?.subTree&&o(r.component.subTree.children),r.children&&o(r.children)}})};return o(e),a}function hg(e,n,a){const o=pg(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function gg(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=i=>{i.proxy&&(a.push(t.markRaw(i)),hg(o,a,n))},r=i=>{a.splice(a.indexOf(t.markRaw(i)),1)},s=Object.assign;return i=>(t.provide(e,s({add:l,remove:r,internalChildren:a},i)),{internalChildren:a})}const{componentName:wr}=X("grid"),Is=Symbol("grid"),yg={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}},vg={props:yg,setup(e,{slots:n}){gg(Is,`${wr}-item`)({props:e});const a=t.computed(()=>{const l=wr;return{[l]:!0,[`${l}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const l={};return e.gutter&&(l.paddingLeft=he(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:bg}=X("grid"),xl=bg(vg);function kg(e){const n=t.inject(e,null);if(n){const a=t.getCurrentInstance(),{add:o,remove:l,internalChildren:r}=n;o(a),t.onUnmounted(()=>l(a));const s=t.computed(()=>r.indexOf(a));return{parent:n,index:s}}return{parent:null,index:t.ref(-1)}}const{create:Sg,componentName:Nr}=X("grid-item"),Cg=Sg({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=kg(Is);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[Nr]:!0})),s=t.computed(()=>{const m={flexBasis:`${100/+l.columnNum}%`};return l.square?m.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(m.paddingRight=he(l.gutter),o.value>=l.columnNum&&(m.marginTop=he(l.gutter))),m}),i=t.computed(()=>{const m=`${Nr}__content`;return{[`${m}`]:!0,[`${m}--border`]:l.border,[`${m}--surround`]:l.border&&l.gutter,[`${m}--center`]:l.center,[`${m}--square`]:l.square,[`${m}--reverse`]:l.reverse,[`${m}--${l.direction}`]:!!l.direction,[`${m}--clickable`]:l.clickable}});return{rootClass:r,rootStyle:s,contentClass:i,handleClick:m=>{n("click",m)}}}}),wg={class:"fox-grid-item__text"};function Ng(e,n,a,o,l,r){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)},[t.renderSlot(e.$slots,"default"),t.createElementVNode("view",wg,[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 Dl=ne(Cg,[["render",Ng]]),{componentName:Bg,create:Ag}=X("navbar"),Vg=Ag({components:{Left:oe.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:n}){const{border:a,fixed:o,safeAreaInsetTop:l,placeholder:r,zIndex:s}=t.toRefs(e),i=t.ref(null),c=t.ref(null);let m=t.ref();const p=t.computed(()=>{const v=Bg;return{[v]:!0,[`${v}--border`]:a.value,[`${v}--fixed`]:o.value,[`${v}--safe-area-inset-top`]:l.value}}),u=t.computed(()=>({zIndex:s.value}));t.onMounted(()=>{o.value&&r.value&&t.nextTick(()=>{m.value=c?.value?.getBoundingClientRect().height,i.value.style.height=m.value+"px"})});function h(){n("on-click-back")}function k(){n("on-click-title")}function y(){n("on-click-icon")}function b(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:p,styles:u,handleLeft:h,handleCenter:k,handleCenterIcon:y,handleRight:b}}}),Tg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},$g={key:1,class:"fox-navbar__text"},Eg={class:"fox-navbar__title"},xg={key:0,class:"fox-navbar__text"},Dg={key:1,class:"fox-navbar__text"},Ig={class:"fox-navbar__title"},qg={key:0,class:"fox-navbar__text"};function Mg(e,n,a,o,l,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Tg,[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]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",$g,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Eg,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[1]||(n[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:n[3]||(n[3]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[2]||(n[2]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[4]||(n[4]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",xg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6)],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[5]||(n[5]=(...i)=>e.handleLeft&&e.handleLeft(...i))},[e.leftShow?t.renderSlot(e.$slots,"left-show",{key:0},()=>[t.createVNode(s,{height:"12px",color:"#979797"})]):t.createCommentVNode("",!0),e.leftText?(t.openBlock(),t.createElementBlock("view",Dg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Ig,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick:n[6]||(n[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:n[8]||(n[8]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))},[t.renderSlot(e.$slots,"title-icon",{onClick:n[7]||(n[7]=(...i)=>e.handleCenterIcon&&e.handleCenterIcon(...i))})])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"content")]),t.createElementVNode("view",{class:"fox-navbar__right",onClick:n[9]||(n[9]=(...i)=>e.handleRight&&e.handleRight(...i))},[e.desc?(t.openBlock(),t.createElementBlock("view",qg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Il=ne(Vg,[["render",Mg]]),Pg=(e,n,a)=>({components:a,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}=re.useFoxI18n(n),s=r(o,["activeText","unActiveText"]),i=t.computed(()=>({[e]:!0,active:o.visible,[o.type]:!0})),c=t.ref(-1);return{...s,classes:i,updateValue:(u=!o.visible)=>{l("update:visible",u)},selected:(u,h)=>{l("selected",{item:u,event:h}),c.value=u.id},current:c}}}),{componentName:Lg,create:zg,scope:Fg}=X("fixednav"),Rg=zg(Pg(Lg,Fg,{[rt.name]:rt,Left:oe.Left})),Og={class:"fox-fixednav__list"},Kg=["onClick"],Ug=["src"],Hg={class:"span"},jg={key:0,class:"b"},Wg={class:"text"};function Yg(e,n,a,o,l,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:n[0]||(n[0]=c=>e.updateValue(!1))},null,8,["visible"])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"list",{},()=>[t.createElementVNode("view",Og,[(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:p=>e.selected(c,p),key:c.id||m},[t.createElementVNode("img",{src:c.icon},null,8,Ug),t.createElementVNode("view",Hg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",jg,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Kg))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{color:"#fff"}),t.createElementVNode("view",Wg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const ql=ne(Rg,[["render",Yg]]),{componentName:Xg,create:Qg}=X("menu"),Gg=Qg({components:{ArrowUp2:oe.ArrowUp2,ArrowDown2:oe.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:n,slots:a}){const o=t.ref(),l=t.ref(0),r=t.ref(!1),s=()=>{const v=t.reactive([]),f=t.reactive([]);return{children:v,linkChildren:g=>{const C=S=>{S.proxy&&(f.push(S),v.push(S.proxy))},B=S=>{if(S.proxy){let N=f.indexOf(S);N>-1&&f.splice(N,1);let A=v.indexOf(S.proxy);N>-1&&v.splice(A,1)}};t.provide("menuParent",Object.assign({removeLink:B,link:C,children:v,internalChildren:f},g))}}},{children:i,linkChildren:c}=s(),m=t.computed(()=>i.some(v=>v.state.showWrapper)),p=t.computed(()=>({[Xg]:!0,"scroll-fixed":r.value})),u=()=>{if(o.value){const v=Ve(o);e.direction==="down"?l.value=v.bottom:l.value=window.innerHeight-v.top}};c({props:e,offset:l});const h=v=>{i.forEach((f,d)=>{d===v?(u(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},k=v=>Math.max(0,"scrollTop"in v?v.scrollTop:v.pageYOffset),y=()=>{const{scrollFixed:v}=e,f=k(window);r.value=f>(typeof v=="boolean"?30:Number(v))},b=v=>{let f="";const{titleClass:d}=e;return v&&(f+="active"),d&&(f+=` ${d}`),f};return t.onMounted(()=>{const{scrollFixed:v}=e;v&&window.addEventListener("scroll",y)}),t.onUnmounted(()=>{const{scrollFixed:v}=e;v&&window.removeEventListener("scroll",y)}),{toggleItem:h,children:i,opened:m,classes:p,barRef:o,getClasses:b}}}),Zg=["onClick"],Jg={class:"fox-menu__title-text"},_g={class:"fox-menu__title-icon"};function ey(e,n,a,o,l,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,m)=>(t.openBlock(),t.createElementBlock("view",{key:m,class:t.normalizeClass(["fox-menu__item",{disabled:c.disabled,active:c.state.showPopup}]),onClick:p=>!c.disabled&&e.toggleItem(m),style:t.normalizeStyle({color:c.state.showPopup?e.activeColor:""})},[t.createElementVNode("view",{class:t.normalizeClass(["fox-menu__title",e.getClasses(c.state.showPopup)])},[t.createElementVNode("view",Jg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",_g,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Zg))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Ml=ne(Gg,[["render",ey]]),{componentName:ty,create:ny}=X("menu-item"),oy=ny({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:{[de.name]:de,Check:oe.Check},emits:["update:modelValue","change","open","close"],setup(e,{emit:n,slots:a}){const o=t.reactive({showPopup:!1,transition:!0,showWrapper:!1,isShowPlaceholderElement:!1}),l=()=>{const k=t.inject("menuParent",null);if(k){const y=t.getCurrentInstance(),{link:b,removeLink:v}=k;return b(y),t.onUnmounted(()=>{v(y)}),{parent:k}}},{parent:r}=l(),s=t.computed(()=>({[ty]:!0})),i=t.computed(()=>{const k={height:r.offset.value+"px"};return r.props.direction==="down"?k:{...k,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const k=e.options?.find(y=>y.value===e.modelValue);return k?k.text:""},state:o,parent:r,toggle:(k=!o.showPopup,y={})=>{k!==o.showPopup&&(o.showPopup=k,o.isShowPlaceholderElement=k,k&&(o.showWrapper=!0,n("open")))},onClick:k=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,k.value!==e.modelValue&&(n("update:modelValue",k.value),n("change",k.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),ly={class:"fox-menu-item__content fox-menu-item__overflow"},ay=["onClick"];function ry(e,n,a,o,l,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:n[0]||(n[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":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","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",ly,[(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:p=>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,ay))),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 Pl=ne(oy,[["render",ry]]),{create:sy}=X("tabbar"),iy=sy({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,n){function a(l){o.value!==l&&(o.value=l,n.emit("update:modelValue",l),n.emit("change",l,o.children[l]))}const o=t.reactive({children:[],size:e.size,value:e.modelValue,inactiveColor:e.inactiveColor,activeColor:e.activeColor,changeIndex:a});return t.provide("parent",o),t.watch(()=>e.modelValue,l=>{o.value=l}),{changeIndex:a}}});function cy(e,n,a,o,l,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 Ll=ne(iy,[["render",cy]]),{create:uy}=X("tabbar-item"),dy=uy({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,n){const a=t.inject("parent"),o=t.reactive({size:a.size,inactiveColor:a.inactiveColor,activeColor:a.activeColor,value:a.value,index:0}),l=t.getCurrentInstance();l!==null&&(m=>{if(m.proxy){let p=a.children.length;o.index=p;let u=Object.assign(m.proxy,{index:p});a.children.push(u)}})(l);const r=t.computed(()=>o.index===o.value);function s(c){a&&typeof a.changeIndex=="function"&&a.changeIndex(c)}const i=t.computed(()=>a?a.value:null);return t.watch(i,c=>{o.value=c}),{state:o,active:r,change:s}}}),fy={class:"fox-tabbar-item_icon-box"},my={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},py={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},hy={key:1,class:"fox-tabbar-item_icon-box_dot"},gy={key:2},yy={key:0};function vy(e,n,a,o,l,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:n[0]||(n[0]=s=>e.change(e.state.index))},[t.createElementVNode("view",fy,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",my,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",py,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",hy)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",gy,[(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",yy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const zl=ne(dy,[["render",vy]]),{componentName:by,create:ky}=X("elevator"),Sy=ky({props:{height:{type:[Number,String],default:"200px"},acceptKey:{type:[String],default:"title"},indexList:{type:Array,default:()=>[]},isSticky:{type:[Boolean],default:!1},spaceHeight:{type:[Number],default:23},titleHeight:{type:[Number],default:35}},emits:["click-item","click-index","change"],setup(e,n){const a=t.ref(null),o=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}),l=t.computed(()=>({[by]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>a.value.clientHeight),i=(f,d)=>f.getAttribute("data-"+d),c=f=>{t.nextTick(()=>{!o.listGroup.includes(f)&&f!=null&&o.listGroup.push(f)})},m=()=>{let f=0;o.listHeight.push(f);for(let d=0;d<o.listGroup.length;d++){let g=o.listGroup[d];f+=Math.floor(g.clientHeight),o.listHeight.push(f)}},p=f=>{!f&&f!==0||(f<0&&(f=0),f>o.listHeight.length-2&&(f=o.listHeight.length-2),o.codeIndex=f,a.value.scrollTo(0,o.listHeight[f]))},u=f=>{o.scrollStart=!0;let d=i(f.target,"index"),g=f.touches[0];o.touchState.y1=g.pageY,o.anchorIndex=+d,o.codeIndex=+d,p(+d)},h=f=>{let d=f.touches[0];o.touchState.y2=d.pageY;let g=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+g,p(o.codeIndex)},k=()=>{o.scrollStart=!1},y=(f,d)=>{n.emit("click-item",f,d),o.currentData=d,o.currentKey=f},b=f=>{n.emit("click-index",f)},v=f=>{let g=f.target.scrollTop;const C=o.listHeight;o.scrollY=g;for(let B=0;B<C.length-1;B++){let S=C[B],N=C[B+1];if(o.scrollY>=S&&o.scrollY<N){o.currentIndex=B,o.diff=N-o.scrollY;return}}o.currentIndex=C.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",v)}),$e({scrollTo:p}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(m)}),t.watch(()=>o.diff,f=>{const d=o.listHeight;let g=f>0&&f<e.titleHeight?f-e.titleHeight:0;o.scrollY+s.value===d[d.length-1]&&g!==0&&(g=0),o.fixedTop!==g&&(o.fixedTop=g)}),t.watch(()=>o.currentIndex,f=>{n.emit("change",f)}),{classes:l,...t.toRefs(o),fixedStyle:r,clientHeight:s,setListGroup:c,listview:a,touchStart:u,touchMove:h,touchEnd:k,handleClickItem:y,handleClickIndex:b}}}),Cy={class:"fox-elevator__list__item__code"},wy=["onClick"],Ny=["innerHTML"],By={class:"fox-elevator__fixed-title"},Ay={class:"fox-elevator__bars__inner"},Vy=["data-index","onClick"];function Ty(e,n,a,o,l,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",Cy,t.toDisplayString(s[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===i.id&&e.currentKey===s[e.acceptKey]}]),key:i.id,onClick:c=>e.handleClickItem(s[e.acceptKey],i)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:1,item:i}):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:i.name},null,8,Ny))],10,wy))),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",By,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]=(...s)=>e.touchStart&&e.touchStart(...s)),onTouchmove:n[1]||(n[1]=t.withModifiers((...s)=>e.touchMove&&e.touchMove(...s),["stop","prevent"])),onTouchend:n[2]||(n[2]=(...s)=>e.touchEnd&&e.touchEnd(...s))},[t.createElementVNode("view",Ay,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:s[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":i,key:s[e.acceptKey],onClick:c=>e.handleClickIndex(s[e.acceptKey])},t.toDisplayString(s[e.acceptKey]),11,Vy))),128))])],32)],2)}const Ht=ne(Sy,[["render",Ty]]),{componentName:v2,create:$y,scope:Ey}=X("pagination"),xy=$y({props:{modelValue:{type:Number,default:1},mode:{type:String,default:"multi"},prevText:{type:String,default:""},nextText:{type:String,default:""},pageCount:{type:[String,Number],default:""},totalItems:{type:[String,Number],default:"0"},itemsPerPage:{type:[String,Number],default:"10"},showPageSize:{type:[String,Number],default:"5"},forceEllipses:{type:Boolean,default:!1}},components:{},emits:["change","update:modelValue"],setup(e,{emit:n}){const{toLocaleRefs:a}=re.useFoxI18n(Ey),o=a(e,["prevText","nextText"]),{modelValue:l,mode:r,showPageSize:s,forceEllipses:i}=t.toRefs(e),c=t.computed(()=>{const{pageCount:h,totalItems:k,itemsPerPage:y}=t.toRefs(e),b=+h.value||Math.ceil(+k.value/+y.value);return Math.max(1,b)}),m=(h,k)=>{h>c.value||h<1||(h!=l.value&&n("update:modelValue",h),k&&n("change",h))},p=(h,k,y=!1)=>({number:h,text:k,active:y}),u=t.computed(()=>{if(r.value=="simple")return;let h=[];const k=c.value,y=+s.value;let b=1,v=k;const f=k>y;f&&(b=Math.max(l.value-Math.floor(y/2),1),v=b+y-1,v>k&&(v=k,b=v-y+1));for(var d=b;d<=v;d++){const g=p(d,d,l.value==d);h.push(g)}if(f&&y>0&&i.value){if(b>1){const g=p(b-1,"...");h.unshift(g)}if(v<k){const g=p(v+1,"...");h.push(g)}}return h});return t.watchEffect(()=>{m(l.value,!1)}),{...o,modelValue:l,select:m,countRef:c,mode:r,pages:u,forceEllipses:i}}}),Dy={class:"fox-pagination"},Iy={key:0,class:"fox-pagination-contain"},qy=["onClick"],My={key:1,class:"fox-pagination-contain"},Py={class:"fox-pagination-simple"};function Ly(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Dy,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick:n[0]||(n[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",Iy,[(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,qy))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",My,[t.createElementVNode("view",Py,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]=s=>e.select(e.modelValue+1,!0))},[t.renderSlot(e.$slots,"next-text",{},()=>[t.createTextVNode(t.toDisplayString(e.nextText),1)])],2)])}const Fl=ne(xy,[["render",Ly]]),zy=(e,n,a,o)=>{const l=t.ref(),r=t.ref({width:0,height:0}),s=async()=>{if(a&&a.getEnv()!==a.ENV_TYPE.WEB){let h=await o(l,a);r.value.width=h.width||0,r.value.height=h.height||0}else r.value.width=l.value?.clientWidth||0,r.value.height=l.value?.clientHeight||0};t.onMounted(()=>{setTimeout(()=>{s()},100)});const i=t.reactive({offset:0,moving:!1}),c=_e();let m="";const p=(h,k)=>{let y=h;switch(e.direction=="horizontal"?(m=h>0?"right":"left",y=Math.abs(y)/r.value.width*100):(m=k>0?"bottom":"top",y=k,y=Math.abs(y)/r.value?.height*100),y>85&&(y=85),m){case"left":case"top":n.isEnd()&&(y=0,i.moving=!1);break;case"right":case"bottom":y=-y,n.isBegin()&&(y=0,i.moving=!1);break}i.offset=y};return{touchMethods:{onTouchStart(h){e.swipeable&&c.start(h)},onTouchMove(h){e.swipeable&&(c.move(h),i.moving=!0,p(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,m){case"left":case"top":i.offset>35&&n.next();break;case"right":case"bottom":i.offset<-35&&n.prev();break}}},touchState:i,tabsContentRef:l}};class Fy{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Ry}=X("tabs"),Oy=Ry({components:{[Ut.name]:Ut,JoySmile:oe.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:n,slots:a}){const o=t.ref(null);let l;t.provide("tabsOpiton",{activeKey:t.computed(()=>e.modelValue||"0"),autoHeight:t.computed(()=>e.autoHeight),animatedTime:t.computed(()=>e.animatedTime)});const r=t.ref([]),s=T=>{T.forEach((w,M)=>{let P=w.type;if(P=P.name||P,P=="fox-tab-pane"){let $=new Fy;if(w.props?.title||w.props?.["pane-key"]||w.props?.paneKey){let E=at(w.props?.["pane-key"]),K=E=="number"||E=="string"?String(w.props?.["pane-key"]):null,D=at(w.props?.paneKey),W=D=="number"||D=="string"?String(w.props?.paneKey):null;$.title=w.props?.title,$.paneKey=K||W||String(M),$.disabled=w.props?.disabled}r.value.push($)}else{if(w.children==" ")return;Array.isArray(w.children)&&s(w.children)}})},i=t.ref(e.modelValue||0),c=T=>{let w=r.value.findIndex(M=>M.paneKey==T);r.value.length==0||w==-1||(i.value=w)},m=t.computed(()=>e.titleScroll&&e.direction==="vertical"),p=t.ref(),u=t.ref([]),h=T=>{const w=p.value,M=u.value;if(!w||!M||!M[i.value])return;const P=M[i.value];let $=0;e.direction==="vertical"?$=P.offsetTop-w.offsetTop+10-(w.offsetHeight-P.offsetHeight)/2:$=P.offsetLeft-(w.offsetWidth-P.offsetWidth)/2,k(w,$,T?0:.3,e.direction)},k=(T,w,M,P)=>{let $=0;const E=P==="horizontal"?T.scrollLeft:T.scrollTop,K=M===0?1:Math.round(M*1e3/16);function D(){P==="horizontal"?T.scrollLeft+=(w-E)/K:T.scrollTop+=(w-E)/K,++$<K&&Re(D)}D()},y=(T=a.default?.())=>{r.value=[],T=T?.filter(w=>typeof w.children!="string"),T&&T.length&&s(T),c(e.modelValue),t.nextTick(()=>{h()})},b=T=>{l=T.fixed};t.watch(()=>a.default?.(),T=>{y(T)});const v=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,T=>{if(c(T),h(),l){let w=Ve(o.value).top+v(),M=Math.ceil(w-e.top);window.scrollTo({top:M,behavior:"smooth"})}}),t.onMounted(y),t.onActivated(y);const f={isBegin:()=>i.value==0,isEnd:()=>i.value==r.value.length-1,next:()=>{i.value+=1,f.updateValue(r.value[i.value])},prev:()=>{i.value-=1,f.updateValue(r.value[i.value])},updateValue:T=>{n("update:modelValue",T.paneKey),n("change",T)},tabChange:(T,w)=>{n("click",T),!(T.disabled||i.value==w)&&(i.value=w,f.updateValue(T))},setTabItemRef:(T,w)=>{u.value[w]=T}},{tabsContentRef:d,touchState:g,touchMethods:C}=zy(e,f),B=t.computed(()=>{let T=i.value*100;g.moving&&(T+=g.offset);let w={transform:e.direction=="horizontal"?`translate3d(-${T}%, 0, 0)`:`translate3d( 0,-${T}%, 0)`,transitionDuration:g.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(w={}),w}),S=t.computed(()=>({background:e.background})),N=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),A=t.computed(()=>{if(!e.titleGutter)return{};const T=he(e.titleGutter);return e.direction==="vertical"?{marginTop:T,marginBottom:T}:{marginLeft:T,marginRight:T}}),V=t.computed(()=>a.fixedTitle);return{navRef:p,tabsContentRef:d,titles:r,contentStyle:B,tabsNavStyle:S,titleStyle:A,tabsActiveStyle:N,container:o,getScrollY:m,onStickyScroll:b,...f,...C,hasFixedTitle:V}}}),Ky=["onClick"],Uy={key:0,class:"fox-tabs__titles-fixed-item"},Hy=["onClick"],jy={key:0,class:"fox-tabs__titles-fixed-item"};function Wy(e,n,a,o,l,r){const s=t.resolveComponent("JoySmile"),i=t.resolveComponent("fox-sticky");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-tabs",[e.direction]]),ref:"container"},[e.sticky?(t.openBlock(),t.createBlock(i,{key:0,top:e.top,container:e.container,onScroll:e.onStickyScroll},{default:t.withCtx(()=>[t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,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:p=>e.tabChange(c,m),key:c.paneKey},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Ky))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Uy,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)]),_:3},8,["top","container","onScroll"])):(t.openBlock(),t.createElementBlock("view",{key:1,class:t.normalizeClass(["fox-tabs__titles",{[e.type]:e.type,scrollable:e.titleScroll,"scroll-vertical":e.getScrollY,[e.size]:e.size}]),style:t.normalizeStyle(e.tabsNavStyle),ref:"navRef"},[e.$slots.titles?t.renderSlot(e.$slots,"titles",{key:0}):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.titles,(c,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:p=>e.tabChange(c,m),key:c.paneKey,ref_for:!0,ref:p=>e.setTabItemRef(p,m)},[t.renderSlot(e.$slots,"title",{title:c.title,paneKey:c.paneKey},()=>[e.type=="line"?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-tabs__titles-item__line",style:t.normalizeStyle(e.tabsActiveStyle)},null,4)):t.createCommentVNode("",!0),e.type=="smile"?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-tabs__titles-item__smile",style:t.normalizeStyle(e.tabsActiveStyle)},[t.createVNode(s,{color:e.color},null,8,["color"])],4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabs__titles-item__text",{ellipsis:e.ellipsis}])},t.toDisplayString(c.title),3)])],14,Hy))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",jy,[t.renderSlot(e.$slots,"fixedTitle")])):t.createCommentVNode("",!0)],64))],6)),t.createElementVNode("view",{class:"fox-tabs__content",ref:"tabsContentRef",style:t.normalizeStyle(e.contentStyle),onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[1]||(n[1]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[2]||(n[2]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c))},[t.renderSlot(e.$slots,"default")],36)],2)}const Rl=ne(Oy,[["render",Wy]]),{create:Yy}=X("tab-pane"),Xy=Yy({props:{title:{type:[String,Number],default:""},paneKey:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1}},emits:["click"],setup(e,{emit:n}){const a=t.inject("tabsOpiton"),o=t.computed(()=>({display:a.animatedTime.value==0&&e.paneKey!=a.activeKey.value?"none":void 0}));return{...a,paneStyle:o}}});function Qy(e,n,a,o,l,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 Ol=ne(Xy,[["render",Qy]]),{componentName:Br,create:Gy}=X("indicator"),Zy=Gy({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:a}=t.toRefs(e);return{classes:t.computed(()=>{const l=Br;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Br,padZero:et}}});function Jy(e,n,a,o,l,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 Kl=ne(Zy,[["render",Jy]]),{componentName:_y,create:ev}=X("side-navbar"),tv=ev({props:{offset:{type:[String,Number],default:15}},emits:[],setup:e=>{const n=t.ref(null),a=t.reactive({count:1,observer:null}),o=t.computed(()=>({[_y]:!0})),l=(s,i=1)=>{for(let c=0;c<s.length;c++){let m=s[c];m?.children?.[0]&&(m.children[0].style.paddingLeft=+e.offset*i+"px",m.className.includes("fox-side-navbar-item")||l(Array.from(m.children[1].children),++a.count))}a.count--},r=()=>{let s=n.value.childNodes;s.length&&(s=Array.from(s).filter(i=>i.nodeType!==3).map(i=>i),l(s))};return t.onMounted(()=>{r(),a.observer=new MutationObserver(function(){a.count=1,r()}),a.observer.observe(n.value,{attributes:!1,childList:!0,characterData:!1,subtree:!0})}),{...t.toRefs(a),list:n,classes:o}}}),nv={class:"fox-side-navbar__content"},ov={class:"fox-side-navbar__content__list",ref:"list"};function lv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",nv,[t.createElementVNode("view",ov,[t.renderSlot(e.$slots,"default")],512)])],2)}const Ul=ne(tv,[["render",lv]]),{componentName:av,create:rv}=X("side-navbar-item"),sv=rv({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[av]:!0})),handleClick:()=>{n.emit("click")}})}),iv=["ikey"],cv={class:"fox-side-navbar-item__title"};function uv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=t.withModifiers((...s)=>e.handleClick&&e.handleClick(...s),["stop"])),ikey:e.ikey},[t.createElementVNode("span",cv,t.toDisplayString(e.title),1)],10,iv)}const Hl=ne(sv,[["render",uv]]),{componentName:dv,create:fv}=X("sub-side-navbar"),mv=fv({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:oe.ArrowDown2,ArrowUp2:oe.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=t.reactive({direction:""}),o=t.computed(()=>({[dv]:!0})),l=t.computed(()=>({height:a.direction?"0px":"auto"})),r=()=>{n.emit("title-click"),a.direction=a.direction?"":"up"};return t.onMounted(()=>{a.direction=e.open?"":"up"}),{...t.toRefs(a),classes:o,style:l,handleClick:r}}}),pv=["ikey"],hv={class:"fox-sub-side-navbar__title__text"},gv={class:"fox-sub-side-navbar__title__icon"};function yv(e,n,a,o,l,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:n[0]||(n[0]=t.withModifiers((...c)=>e.handleClick&&e.handleClick(...c),["stop"]))},[t.createElementVNode("span",hv,t.toDisplayString(e.title),1),t.createElementVNode("span",gv,[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,pv)}const jl=ne(mv,[["render",yv]]),{componentName:vv,create:bv}=X("range"),kv=bv({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}){const a=t.ref(0);let o,l;const r=t.ref(),s=t.ref(),i=_e(),c=t.computed(()=>{const{marks:$,max:E,min:K}=e;return Object.keys($).map(parseFloat).sort((H,Z)=>H-Z).filter(H=>H>=K&&H<=E)}),m=t.computed(()=>Number(e.max)-Number(e.min)),p=t.computed(()=>{const $=vv;return{[$]:!0,[`${$}-disabled`]:e.disabled,[`${$}-vertical`]:e.vertical,[`${$}-show-number`]:!e.hiddenRange}}),u=t.computed(()=>{const $="fox-range-container";return{[$]:!0,[`${$}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),k=t.computed(()=>({borderColor:e.buttonColor})),y=$=>!!e.range&&Array.isArray($),b=()=>{const{modelValue:$,min:E}=e;return y($)?`${($[1]-$[0])*100/m.value}%`:`${($-Number(E))*100/m.value}%`},v=()=>{const{modelValue:$,min:E}=e;return y($)?`${($[0]-Number(E))*100/m.value}%`:"0%"},f=t.computed(()=>e.vertical?{height:b(),top:v(),background:e.activeColor,transition:s.value?"none":void 0}:{width:b(),left:v(),background:e.activeColor,transition:s.value?"none":void 0}),d=$=>{const E="fox-range-mark",{modelValue:K,max:D,min:W}=e;let H=Number(W),Z=Number(D);if(e.range){const[j,I]=K;H=j,Z=I}else Z=K;let _=$<=Z&&$>=H;return{[`${E}-text`]:!0,[`${E}-text-active`]:_}},g=$=>{const{min:E,vertical:K}=e;let D={left:`${($-Number(E))/m.value*100}%`};return K&&(D={top:`${($-Number(E))/m.value*100}%`}),D},C=$=>{const{modelValue:E,max:K,min:D}=e;let W=Number(D),H=Number(K);if(e.range){const[j,I]=E;W=j,H=I}return{background:$<=H&&$>=W?e.activeColor:e.inactiveColor}},B=$=>{const{min:E,max:K,step:D}=e;return $=Math.max(+E,Math.min($,+K)),Math.round($/+D)*+D},S=($,E)=>JSON.stringify($)===JSON.stringify(E),N=$=>$[0]>$[1]?$.slice(0).reverse():$,A=($,E)=>{y($)?$=N($).map(B):$=B($),S($,e.modelValue)||n("update:modelValue",$),E&&!S($,o)&&n("change",$)},V=$=>{if(e.disabled)return;const{min:E,modelValue:K}=e,D=Ve(r);let W=$.clientX-D.left,H=D.width;e.vertical&&(W=$.clientY-D.top,H=D.height);const Z=Number(E)+W/H*m.value;if(y(K)){const[_,j]=K,I=(_+j)/2;Z<=I?A([Z,j],!0):A([_,Z],!0)}else A(Z,!0)},T=$=>{e.disabled||(i.start($),l=e.modelValue,y(l)?o=l.map(B):o=B(l),s.value="start")},w=$=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move($),s.value="draging";const E=Ve(r);let K=i.deltaX.value,D=E.width,W=K/D*m.value;e.vertical&&(K=i.deltaY.value,D=E.height,W=K/D*m.value),y(o)?l[a.value]=o[a.value]+W:l=o+W,A(l),$.stopPropagation(),$.preventDefault()},M=()=>{e.disabled||(s.value==="draging"&&(A(l,!0),n("drag-end")),s.value="")},P=$=>Sn(e.modelValue)&&typeof $=="number"?e.modelValue[$]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:h,buttonStyle:k,onClick:V,onTouchStart:T,onTouchMove:w,onTouchEnd:M,...t.toRefs(e),barStyle:f,curValue:P,buttonIndex:a,containerClasses:u,markClassName:d,marksStyle:g,marksList:c,tickStyle:C}}}),Sv={key:0,class:"fox-range-min"},Cv={key:0,class:"fox-range-mark"},wv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],Nv={key:0,class:"number"},Bv=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],Av={key:0,class:"number"},Vv={key:1,class:"fox-range-max"};function Tv(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.containerClasses)},[e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Sv,t.toDisplayString(+e.min),1)),t.createElementVNode("view",{ref:"root",style:t.normalizeStyle(e.wrapperStyle),class:t.normalizeClass(e.classes),onClick:n[9]||(n[9]=t.withModifiers((...s)=>e.onClick&&e.onClick(...s),["stop"]))},[e.marksList.length>0?(t.openBlock(),t.createElementBlock("view",Cv,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.marksList,s=>(t.openBlock(),t.createElementBlock("span",{key:s,class:t.normalizeClass(e.markClassName(s)),style:t.normalizeStyle(e.marksStyle(s))},[t.createTextVNode(t.toDisplayString(s)+" ",1),t.createElementVNode("span",{class:"fox-range-tick",style:t.normalizeStyle(e.tickStyle(s))},null,4)],6))),128))])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-range-bar",style:t.normalizeStyle(e.barStyle)},[e.range?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},t.renderList([0,1],s=>t.createElementVNode("view",{key:s,role:"slider",class:t.normalizeClass({"fox-range-button-wrapper-left":s==0,"fox-range-button-wrapper-right":s==1}),tabindex:e.disabled?-1:0,"aria-valuemin":+e.min,"aria-valuenow":e.curValue(s),"aria-valuemax":+e.max,"aria-orientation":"horizontal",onTouchstart:t.withModifiers(i=>{typeof s=="number"&&(e.buttonIndex=s),e.onTouchStart(i)},["stop","prevent"]),onTouchmove:n[0]||(n[0]=t.withModifiers((...i)=>e.onTouchMove&&e.onTouchMove(...i),["stop","prevent"])),onTouchend:n[1]||(n[1]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onTouchcancel:n[2]||(n[2]=t.withModifiers((...i)=>e.onTouchEnd&&e.onTouchEnd(...i),["stop","prevent"])),onClick:n[3]||(n[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",Nv,t.toDisplayString(e.curValue(s)),1))],4))],42,wv)),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(s=>{e.onTouchStart(s)},["stop","prevent"])),onTouchmove:n[5]||(n[5]=t.withModifiers((...s)=>e.onTouchMove&&e.onTouchMove(...s),["stop","prevent"])),onTouchend:n[6]||(n[6]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onTouchcancel:n[7]||(n[7]=t.withModifiers((...s)=>e.onTouchEnd&&e.onTouchEnd(...s),["stop","prevent"])),onClick:n[8]||(n[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",Av,t.toDisplayString(e.curValue()),1))],4))],40,Bv))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Vv,t.toDisplayString(+e.max),1))],2)}const jt=ne(kv,[["render",Tv]]),{create:$v,scope:Ev}=X("short-password"),xv=$v({components:{[de.name]:de,Tips:oe.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:n}){const{toLocaleRefs:a}=re.useFoxI18n(Ev),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>m(Number(e.length))),s=t.ref(e.visible),i=u=>{u.stopPropagation(),n("focus")};t.watch(()=>e.visible,u=>{s.value=u}),t.watch(()=>e.modelValue,u=>{l.value=u,String(u).length===r.value&&n("complete",u)});const c=()=>{n("update:visible",!1),n("close")},m=u=>Math.min(Math.max(4,u),6);return{comLen:r,realInput:l,onTouchStart:i,range:m,close:c,onTips:()=>{n("tips")},show:s,...o}}}),Dv={class:"fox-short-password-title"},Iv={class:"fox-short-password-subtitle"},qv={class:"fox-short-password-wrapper"},Mv={key:0,class:"fox-short-password__item-icon"},Pv={class:"fox-short-password__message"},Lv={class:"fox-short-password--error"},zv={key:0,class:"fox-short-password--forget"};function Fv(e,n,a,o,l,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":n[2]||(n[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",Dv,t.toDisplayString(e.title),1),t.createElementVNode("view",Iv,t.toDisplayString(e.desc),1),t.createElementVNode("div",qv,[t.createElementVNode("view",{class:"fox-short-password__list",onTouchstart:n[0]||(n[0]=(...c)=>e.onTouchStart&&e.onTouchStart(...c))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(new Array(e.comLen),(c,m)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-short-password__item",key:m},[String(e.realInput).length>m?(t.openBlock(),t.createElementBlock("view",Mv)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",Pv,[t.createElementVNode("view",Lv,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",zv,[t.createVNode(s,{class:"icon",width:"11px",height:"11px"}),t.createElementVNode("view",{onClick:n[1]||(n[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 Wl=ne(xv,[["render",Fv]]);class Rv{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let Ov=class{options;constructor(n){this.options=n}upload(){const n=this.options,a=new XMLHttpRequest;if(a.timeout=n.timeout,a.upload){a.upload.addEventListener("progress",o=>{n.onProgress?.(o,n)},!1),a.onreadystatechange=()=>{a.readyState===4&&(a.status==n.xhrState?n.onSuccess?.(a.responseText,n):n.onFailure?.(a.responseText,n))},a.withCredentials=n.withCredentials,a.open(n.method,n.url,!0);for(const[o,l]of Object.entries(n.headers))a.setRequestHeader(o,l);n.onStart?.(n),n.beforeXhrUpload?n.beforeXhrUpload(a,n):a.send(n.formData)}else console.warn("浏览器不支持 XMLHttpRequest")}};class Kv{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const qs=(e,{args:n=[],done:a,canceled:o})=>{if(e){const l=e.apply(null,n);gt(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:Uv}=X("progress"),Hv=Uv({components:{Checked:oe.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 n=!!t.useSlots().default,a=t.ref(e.strokeWidth+"px"),o=t.ref(),l=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:a,percentage:r,bgStyle:s,textStyle:i,progressOuter:o,insideText:l,slotDefault:n}}}),jv={class:"fox-progress"},Wv={key:0,class:"fox-progress-text"};function Yv(e,n,a,o,l,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",jv,[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",Wv,[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 Wt=ne(Hv,[["render",Yv]]),{componentName:Xv,create:Qv,scope:Gv}=X("uploader"),Zv=Qv({components:{[Wt.name]:Wt,Photograph:oe.Photograph,Failure:oe.Failure,Loading:oe.Loading,Del:oe.Del,Link:oe.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,n)=>!0},onChange:{type:Function}},emits:["start","progress","oversize","success","failure","change","delete","update:fileList","file-item-click"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(Gv),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[Xv]:!0})),s=()=>{let d={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(d.capture="camera"),t.h("input",d)},i=d=>{d.value=""},c=d=>{n("file-item-click",{fileItem:d})},m=(d,g)=>{const C=new Rv;C.url=e.url,C.formData=d.formData,C.timeout=e.timeout*1,C.method=e.method,C.xhrState=e.xhrState,C.headers=e.headers,C.withCredentials=e.withCredentials,C.beforeXhrUpload=e.beforeXhrUpload;try{C.sourceFile=d.formData.get(e.name)}catch{}C.onStart=S=>{d.status="ready",d.message=a("readyUpload"),p(g),n("start",S)},C.onProgress=(S,N)=>{d.status="uploading",d.message=a("uploading"),d.percentage=(S.loaded/S.total*100).toFixed(0),n("progress",{event:S,option:N,percentage:d.percentage})},C.onSuccess=(S,N)=>{d.status="success",d.message=a("success"),n("success",{responseText:S,option:N,fileItem:d}),n("update:fileList",o)},C.onFailure=(S,N)=>{d.status="error",d.message=a("error"),n("failure",{responseText:S,option:N,fileItem:d})};let B=new Ov(C);e.autoUpload?B.upload():l.push(new Promise((S,N)=>{S(B)}))},p=(d=-1)=>{d>-1?l.splice(d,1):(l=[],o.splice(0,o.length))},u=()=>{Promise.all(l).then(d=>{d.forEach(g=>g.upload())})},h=d=>{d.forEach((g,C)=>{const B=new FormData;for(const[N,A]of Object.entries(e.data))B.append(N,A);B.append(e.name,g);const S=t.reactive(new Kv);if(S.name=g.name,S.status="ready",S.type=g.type,S.formData=B,S.message=a("waitingUpload"),m(S,C),e.isPreview&&g.type.includes("image")){const N=new FileReader;N.onload=A=>{S.url=A.target.result,o.push(S)},N.readAsDataURL(g)}else o.push(S)})},k=d=>{const g=e.maximum*1,C=e.maximize*1,B=new Array;d=d.filter(N=>N.size>C?(B.push(N),!1):!0),B.length&&n("oversize",B);let S=d.length+o.length;return S>g&&d.splice(d.length-(S-g)),d},y=(d,g)=>{o.splice(g,1),n("delete",{file:d,fileList:o,index:g})},b=(d,g)=>{p(g),qs(e.beforeDelete,{args:[d,o],done:()=>y(d,g)})},v=d=>{if(e.disabled)return;const g=d.target;let{files:C}=g;e.beforeUpload?e.beforeUpload(C).then(B=>f(B)):f(C),n("change",{fileList:o,event:d}),e.clearInput&&i(g)},f=d=>{const g=k(new Array().slice.call(d));h(g)};return{onChange:v,onDelete:b,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:p,submit:u,renderInput:s}}}),Jv={key:0,class:"fox-uploader__slot"},_v={key:0,class:"fox-uploader__preview-img"},e0={key:0,class:"fox-uploader__preview__progress"},t0={class:"fox-uploader__preview__progress__msg"},n0=["onClick"],o0=["onClick","src"],l0={key:3,class:"fox-uploader__preview-img__file"},a0=["onClick"],r0={class:"file__name_tips"},s0={class:"tips"},i0={key:1,class:"fox-uploader__preview-list"},c0=["onClick"],u0={class:"file__name_tips"};function d0(e,n,a,o,l,r){const s=t.resolveComponent("Failure"),i=t.resolveComponent("Loading"),c=t.resolveComponent("Link"),m=t.resolveComponent("Del"),p=t.resolveComponent("fox-progress"),u=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",Jv,[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,k)=>(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",_v,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",e0,[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",t0,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:y=>e.onDelete(h,k)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,n0)):t.createCommentVNode("",!0),h?.type?.includes("image")&&h.url?(t.openBlock(),t.createElementBlock("img",{key:2,class:"fox-uploader__preview-img__c",onClick:y=>e.fileItemClick(h),src:h.url},null,8,o0)):(t.openBlock(),t.createElementBlock("view",l0,[t.createElementVNode("view",{onClick:y=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",r0,t.toDisplayString(h.name),1)],8,a0)])),t.createElementVNode("view",s0,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",i0,[t.createElementVNode("view",{onClick:y=>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",u0,t.toDisplayString(h.name),1),e.isDeletable?(t.openBlock(),t.createBlock(m,{key:0,color:"#808080",class:"fox-uploader__preview-img__file__del",onClick:y=>e.onDelete(h,k)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,c0),h.status=="uploading"?(t.openBlock(),t.createBlock(p,{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(u,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const Yl=ne(Zv,[["render",d0]]),f0="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdG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A5NzYtLQ0K",{create:p0,scope:h0}=X("number-keyboard"),g0=p0({components:{[de.name]:de},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:n}){const{toLocaleRefs:a}=re.useFoxI18n(h0),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:f}=e;let d={id:"lock",type:"lock"},g=Array.isArray(f)?f:[f];return g.length===1&&(d={id:g[0],type:"custom"}),[...c(),d,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const f=[];for(let d=1;d<=9;d++)f.push({id:d,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function m(){const f=c(),{customKey:d}=e;let g=Array.isArray(d)?d:[d];return g.length>2&&(g=[g[0],g[1]]),g.length==2&&e.title&&e.type!="rightColumn"&&(g=[g[0]]),g.length===1?e.title&&e.type!="rightColumn"?f.push({id:g[0],type:"custom"},{id:0,type:"number"},{id:"delete",type:"delete"}):f.push({id:0,type:"number"},{id:g[0],type:"custom"}):g.length===2&&f.push({id:g[0],type:"custom"},{id:0,type:"number"},{id:g[1],type:"custom"}),f}const p=t.computed(()=>e.type=="rightColumn"||e.title!=""?m():i()),u=()=>{e.visible&&n("blur")},h=f=>{const d=s.value;d&&!d.contains(f.target)&&u()};t.watch(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function k(f,d){d.stopPropagation(),l.value=f.id,(f.type=="number"||f.type=="custom")&&(n("input",f.id),e.modelValue.length<Number(e.maxlength)&&n("update:modelValue",e.modelValue+f.id)),f.type=="lock"&&v(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function y(f){f.stopPropagation()}function b(f){f.preventDefault(),l.value=void 0}function v(){n("update:visible",!1),n("close")}return{...o,delImg:f0,lockImg:m0,clickKeyIndex:l,defaultKey:i,closeBoard:v,onTouchEnd:b,onTouchMove:y,onTouchstart:k,keysList:p,genCustomKeys:m,getBasicKeys:c,root:s,show:r}}}),y0={ref:"root"},v0={class:"fox-number-keyboard"},b0={key:0,class:"fox-number-keyboard__header"},k0={class:"fox-number-keyboard__title"},S0={class:"fox-number-keyboard__body"},C0={class:"fox-number-keyboard__keys"},w0=["onTouchstart"],N0=["src"],B0=["src"],A0={key:0,class:"fox-number-keyboard__sidebar"},V0={class:"fox-key__wrapper"},T0=["src"];function $0(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",y0,[t.createVNode(s,{visible:e.show,"onUpdate:visible":n[7]||(n[7]=i=>e.show=i),position:"bottom",popClass:e.popClass,overlay:!1,teleportDisable:!1},{default:t.withCtx(()=>[t.createElementVNode("div",v0,[e.title?(t.openBlock(),t.createElementBlock("div",b0,[t.createElementVNode("h3",k0,t.toDisplayString(e.title),1),e.type=="default"?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-number-keyboard__close",onClick:n[0]||(n[0]=i=>e.closeBoard())},t.toDisplayString(e.confirmText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),t.createElementVNode("div",S0,[t.createElementVNode("div",C0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.keysList,i=>(t.openBlock(),t.createElementBlock("div",{key:"key"+i.id,class:t.normalizeClass(["fox-key__wrapper",{"fox-key__wrapper--wider":i.id==0&&e.type=="rightColumn"&&Array.isArray(e.customKey)&&e.customKey.length==1}])},[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{"fox-key--active":i.id==e.clickKeyIndex},{"fox-key--lock":i.type=="lock"},{"fox-key--delete":i.type=="delete"}]),onTouchstart:c=>e.onTouchstart(i,c),onTouchmove:n[1]||(n[1]=c=>e.onTouchMove(c)),onTouchend:n[2]||(n[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,N0)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,B0)):t.createCommentVNode("",!0)],42,w0)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",A0,[t.createElementVNode("div",V0,[t.createElementVNode("div",{class:t.normalizeClass(["fox-key",{active:e.clickKeyIndex=="delete"}]),onTouchstart:n[3]||(n[3]=i=>e.onTouchstart({id:"delete",type:"delete"},i)),onTouchmove:n[4]||(n[4]=i=>e.onTouchMove(i)),onTouchend:n[5]||(n[5]=(...i)=>e.onTouchEnd&&e.onTouchEnd(...i))},[t.createElementVNode("img",{src:e.delImg},null,8,T0)],34)]),t.createElementVNode("div",{class:"fox-key__wrapper fox-key__wrapper--finish",onClick:n[6]||(n[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 Xl=ne(g0,[["render",$0]]),{componentName:E0,create:x0}=X("swipe"),D0=x0({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 a=t.computed(()=>({[E0]:!0})),o=d=>d.value?.clientWidth||0,l=t.ref(),r=t.computed(()=>o(l)),s=t.ref(),i=t.computed(()=>o(s));let c=!1,m="",p="";const u=t.reactive({offset:0,moving:!1}),h=(d="")=>{c=!0,d&&(u.offset=d==="left"?-i.value:r.value),n("open",{name:e.name,position:m||d})},k=()=>{u.offset=0,c=!1,n("close",{name:e.name,position:m})},y=t.computed(()=>({transform:`translate3d(${u.offset}px, 0, 0)`})),b=d=>{m=d>0?"right":"left";let g=d;switch(m){case"left":c&&p===m?g=-i.value:g=Math.abs(d)>i.value?-i.value:d;break;case"right":c&&p===m?g=r.value:g=Math.abs(d)>r.value?r.value:d;break}u.offset=g},v=_e();return{classes:a,touchStyle:y,...{onTouchStart(d){e.disabled||v.start(d)},onTouchMove(d){e.disabled||(v.move(d),v.isHorizontal()&&(u.moving=!0,b(v.deltaX.value),e.touchMovePreventDefault&&d.preventDefault(),e.touchMoveStopPropagation&&d.stopPropagation()))},onTouchEnd(){if(u.moving)switch(u.moving=!1,p=m,m){case"left":Math.abs(u.offset)<=i.value/2?k():(u.offset=-i.value,h());break;case"right":Math.abs(u.offset)<=r.value/2?k():(u.offset=r.value,h());break}}},leftRef:l,rightRef:s,open:h,close:k}}}),I0={class:"fox-swipe__left",ref:"leftRef"},q0={class:"fox-swipe__content"},M0={class:"fox-swipe__right",ref:"rightRef"};function P0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.touchStyle),onTouchstart:n[0]||(n[0]=(...s)=>e.onTouchStart&&e.onTouchStart(...s)),onTouchmove:n[1]||(n[1]=(...s)=>e.onTouchMove&&e.onTouchMove(...s)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[3]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s))},[t.createElementVNode("view",I0,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",q0,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",M0,[t.renderSlot(e.$slots,"right")],512)],38)}const Yt=ne(D0,[["render",P0]]),{componentName:L0,create:z0}=X("action-sheet"),F0=z0({components:{[de.name]:de,Loading:oe.Loading},props:{...ze,cancelTxt:{type:String,default:""},optionTag:{type:String,default:"name"},optionSubTag:{type:String,default:"subname"},chooseTagValue:{type:String,default:""},title:{type:String,default:""},color:{type:String,default:"#ee0a24"},description:{type:String,default:""},menuItems:{type:Array,default:()=>[]},closeAbled:{type:Boolean,default:!0}},emits:["cancel","close","choose","update:visible"],setup(e,{emit:n}){const a=!!t.useSlots().default,o=t.computed(()=>({[L0]:!0}));return{slotDefault:a,isHighlight:c=>e.chooseTagValue&&e.chooseTagValue===c[e.optionTag]?e.color:"",cancelActionSheet:()=>{n("cancel"),n("update:visible",!1)},chooseItem:(c,m)=>{!c.disable&&!c.loading&&(n("choose",c,m),n("update:visible",!1))},close:c=>{n("close",c),n("update:visible",!1)},classes:o}}}),R0={key:0,class:"fox-action-sheet__title"},O0={key:1},K0={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},U0={key:1,class:"fox-action-sheet__menu"},H0=["onClick"],j0={key:1},W0={class:"fox-action-sheet__subdesc"};function Y0(e,n,a,o,l,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",R0,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",O0,[e.description?(t.openBlock(),t.createElementBlock("view",K0,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",U0,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.menuItems,(c,m)=>(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:m,onClick:p=>e.chooseItem(c,m)},[c.loading?(t.openBlock(),t.createBlock(s,{key:0,name:"loading"})):(t.openBlock(),t.createElementBlock("view",j0,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",W0,t.toDisplayString(c[e.optionSubTag]),1)],14,H0))),128))])):t.createCommentVNode("",!0),e.cancelTxt?(t.openBlock(),t.createElementBlock("view",{key:2,class:"fox-action-sheet__cancel",onClick:n[0]||(n[0]=(...c)=>e.cancelActionSheet&&e.cancelActionSheet(...c))},t.toDisplayString(e.cancelTxt),1)):t.createCommentVNode("",!0)]))],2)]),_:3},8,["visible","onClickOverlay","closeOnClickOverlay"])}const Ql=ne(F0,[["render",Y0]]),{componentName:X0,create:Q0}=X("backtop"),Gl=Q0({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:n,slots:a}){const o=t.reactive({backTop:!1,scrollTop:0,scrollEl:window,startTime:0,keepAlive:!1}),l=t.computed(()=>({[X0]:!0,show:o.backTop})),r=t.computed(()=>({right:`${e.right}px`,bottom:`${e.bottom}px`,zIndex:e.zIndex}));function s(){o.scrollEl instanceof Window?o.scrollTop=o.scrollEl.pageYOffset:o.scrollTop=o.scrollEl.scrollTop,o.backTop=o.scrollTop>=e.distance}function i(y=0){o.scrollEl instanceof Window?window.scrollTo(0,y):o.scrollEl.scrollTop=y}function c(){let y=Xe(function b(){var v=e.duration-Math.max(0,o.startTime-+new Date+e.duration),f=v*-o.scrollTop/e.duration+o.scrollTop;i(f),y=Xe(b),(v==e.duration||f==0)&&Tr(y)})}function m(){o.scrollEl.addEventListener("scroll",s,!1),o.scrollEl.addEventListener("resize",s,!1)}function p(){o.scrollEl.removeEventListener("scroll",s,!1),o.scrollEl.removeEventListener("resize",s,!1)}function u(y){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",y)}function h(){k.value?o.scrollEl=k.value.el:e.elId&&document.getElementById(e.elId)&&(o.scrollEl=document.getElementById(e.elId)),m()}t.onMounted(()=>{e.distance==0&&(o.backTop=!0),h()}),t.onUnmounted(()=>{p()}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1,h())}),t.onDeactivated(()=>{o.keepAlive=!0,p()});const k=t.computed(()=>{if(typeof a.content=="function"){const y=a.content();return Array.isArray(y)?y[0]:y}return null});return()=>{const y=[];k.value&&y.push(k.value);const b=[];if(typeof a.default=="function")b.push(a.default());else{const f=t.h(oe.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});b.push(f)}const v=t.h("div",{class:l.value,style:r.value,onClick:u},b);return y.push(v),y}}}),{componentName:G0,create:Z0}=X("drag"),J0=Z0({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 a=t.ref(),o=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}}),l=t.computed(()=>({[G0]:!0}));function r(){const u=document.documentElement;o.elWidth=a.value.offsetWidth,o.elHeight=a.value.offsetHeight,o.screenWidth=u.clientWidth,o.screenHeight=u.clientHeight}function s(u){o.boundary.left?+u.style.left.split("px")[0]>o.boundary.left?(u.style.left=+u.style.left.split("px")[0]-10+"px",Re(()=>{s(u)})):u.style.left=`${o.boundary.left}px`:+u.style.left.split("px")[0]>10?(u.style.left=+u.style.left.split("px")[0]-10+"px",Re(()=>{s(u)})):u.style.left="0px"}function i(u,h){h-parseInt(u.style.left.split("px")[0])>10?(u.style.left=parseInt(u.style.left.split("px")[0])+10+"px",Re(()=>{i(u,h)})):u.style.left=h+"px"}function c(u){u.preventDefault();const h=u.currentTarget;if(u.targetTouches.length===1){const k=u.targetTouches[0];o.nx=k.clientX-o.position.x,o.ny=k.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny;const y=o.screenWidth-o.elWidth-o.boundary.right;Math.abs(o.xPum)>y?o.xPum=y:o.xPum<=o.boundary.left&&(o.xPum=o.boundary.left),o.yPum<o.boundary.top?o.yPum=o.boundary.top:o.yPum>o.screenHeight-o.elHeight-o.boundary.bottom&&(o.yPum=o.screenHeight-o.elHeight-o.boundary.bottom),e.direction!="y"&&(h.style.left=o.xPum+"px"),e.direction!="x"&&(h.style.top=o.yPum+"px")}}function m(u){const h=u.currentTarget;let y=u.changedTouches[0].clientX;const b=o.screenWidth-o.elWidth-o.boundary.right;y>b?y=b:y<o.boundary.left?y=o.boundary.left:y=y<o.screenWidth/2?o.boundary.left:b,e.direction!="y"&&e.attract&&(y<o.screenWidth/2?Re(()=>{s(h)}):Re(()=>{i(h,b)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function p(u){const h=u.currentTarget,k=u.touches[0],y=u.targetTouches[0];o.startTop=h.offsetTop,o.startLeft=h.offsetLeft,o.position.x=k.clientX,o.position.y=k.clientY,o.nx=y.clientX-o.position.x,o.ny=y.clientY-o.position.y,o.xPum=o.startLeft+o.nx,o.yPum=o.startTop+o.ny}return t.onMounted(()=>{r(),o.boundary=e.boundary}),t.onActivated(()=>{o.keepAlive&&(o.keepAlive=!1)}),t.onDeactivated(()=>{o.keepAlive=!0;const u=a;u.value.removeEventListener("touchstart",p),u.value.removeEventListener("touchmove",c),u.value.removeEventListener("touchend",m)}),{classes:l,myDrag:a,touchStart:p,touchMove:c,touchEnd:m}}});function _0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"myDrag",onTouchstart:n[0]||(n[0]=s=>e.touchStart(s)),onTouchmove:n[1]||(n[1]=s=>e.touchMove(s)),onTouchend:n[2]||(n[2]=s=>e.touchEnd(s))},[t.renderSlot(e.$slots,"default")],34)}const Zl=ne(J0,[["render",_0]]),eb={width:{type:[String,Number]},height:{type:[String,Number]},plain:{type:[Boolean]},closeOnClickOverlay:{type:Boolean,default:!1},title:{type:String},showClose:{type:Boolean,default:!1},closeIcon:{type:Object},content:{type:[String,Object]},showFooter:{type:Boolean,default:!0},showConfirmButton:{type:Boolean,default:!0},showCancelButton:{type:Boolean,default:!0},cancelButtonText:{type:String},cancelText:{type:String},cancelButtonClass:{type:[String],required:!1},cancelButtonStyle:{type:[Object],required:!1},confirmButtonText:{type:String},confirmText:{type:String},confirmButtonClass:{type:[String],required:!1},confirmButtonStyle:{type:[Object],required:!1},cancelAutoClose:{type:Boolean,default:!0},textAlign:{type:String,default:"center"},footerDirection:{type:String,default:"horizontal"},popClass:{type:String},popStyle:{type:Object},beforeClose:{type:Function}},tb=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function nb(e,n,a,o,l){return{props:{...ze,...eb},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:m}=re.useFoxI18n(n),p=m(r,["confirmText","cancelText"]),u=e,h=t.ref(r.visible);t.watch(()=>r.visible,S=>{h.value!==S&&(h.value=S,S&&c("opened"))});const k=S=>{h.value=S,c("update:visible",S),c("update",S)},y=S=>{if(c(S),!(S==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const N=r.beforeClose(S);gt(N)?N.then(A=>{A&&(k(!1),c("closed",S))}):N===!0&&(k(!1),c("closed",S))}else k(!1),c("closed",S)},b=()=>{y("confirm")},v=()=>{y("cancel")},f=()=>{y("close")},d=(S,N)=>tb(S)?(N.src=S,t.h("img",N)):typeof S=="string"?(Array.isArray(N.class)?N.class.push(S):N.class&&typeof N.class=="object"?N[`${S}`]=!0:typeof N.class=="string"?N.class=`${N.class}, ${S}`:N.class=S,t.h(r.tag,N)):t.h(S,N),g=()=>{const S=[];if(i.header){const A=i.header();S.push(A)}else{if(r.title){const A=t.h("view",{class:`${u}__header-title`},[r.title]);S.push(A)}if(r.showClose){const A={class:[`${u}__header-close-icon`],onClick:f},V=r.closeIcon??l,T=d(V,A);S.push(T)}}if(S.length===0)return null;const N={class:[`${u}__header`]};return t.h("view",N,S)},C=()=>{const S=[];if(i.default)S.push(i.default());else{const A={class:[`${u}__content`]};if(r.textAlign&&A.class.push(r.textAlign),typeof r.content=="string"){A.innerHTML=r.content;const V=t.h("view",A);S.push(V)}else if(typeof r.content=="function"){const V=t.h("view",A,[r.content()]);S.push(V)}else{const V=t.h("view",A,[r.content]);S.push(V)}}if(S.length===0)return null;const N={class:[`${u}__body`]};return t.h("view",N,S)},B=()=>{if(!r.showFooter)return null;const S=[];if(i.footer)S.push(i.footer());else if(r.plain){if(r.showCancelButton){const A={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},onClick:v};r.cancelButtonClass&&A.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(A.style,r.cancleButtonStyle);const V=t.h("view",A,[r.cancelButtonText??p.cancelText.value]);S.push(V)}if(r.showConfirmButton){const A={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},onClick:b};r.confirmButtonClass&&A.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(A.style,r.confirmButtonStyle);const V=t.h("view",A,[r.confirmButtonText??p.confirmText.value]);S.push(V)}}else{if(r.showCancelButton){const A={class:[`${u}__footer-button`,`${u}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:v};r.cancelButtonClass&&A.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(A.style,r.cancleButtonStyle);const V=t.h(o,A,{default:()=>[r.cancelButtonText??p.cancelText.value]});S.push(V)}if(r.showConfirmButton){const A={class:[`${u}__footer-button`,`${u}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:b};r.confirmButtonClass&&A.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(A.style,r.confirmButtonStyle);const V=t.h(o,A,{default:()=>[r.confirmButtonText??p.confirmText.value]});S.push(V)}}if(S.length===0)return null;const N={class:[`${u}__footer`,`${u}__footer--${r.footerDirection}`]};return t.h("view",N,S)};return()=>{const S=[],N=g();N&&S.push(N);const A=C();A&&S.push(A);const V=B();V&&S.push(V);const T={class:{[`${u}`]:!0,[`${u}--plain`]:r.plain}},w=t.h("view",T,S),M=[`${u}__popup`];r.popClass&&M.push(r.popClass);const P={};r.width&&(P.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(P.height=typeof r.height=="number"?`${r.height}px`:r.height);const E={...ve(r,ze),popClass:M.join(" "),style:P,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":k,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,E,{default:()=>w})}}}}const{componentName:ob,create:lb,scope:ab}=X("dialog"),Ms=lb(nb(ob,ab,de,Me,oe.Close));class rb{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 sb{options=new rb;constructor(n){let a=Object.assign(this.options,n),o=document.body,l=a.teleport;l!="body"&&(typeof l=="string"?o=document.querySelector(l):o=a.teleport);const r=document.createElement("view"),s=`dialog-${a.id}`;r.id=s;const i={setup(){return a.onUpdate=m=>{if(m===!1){const p=document.querySelector(`#${s}`);p&&p.parentNode?.removeChild(p)}},a?.onOpened&&a?.onOpened(),()=>t.h(Ms,a)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Xt=function(e){return new sb(e)};Xt.install=e=>{e.use(Ms),e.config.globalProperties.$dialog=Xt};const ib={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}},cb=(e,n,a)=>({props:{...ib},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["pullingText","loosingText","loadingText"]),c=nl(),m=t.ref(),p=Es(m),u=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=t.computed(()=>({[e]:!0})),k=t.computed(()=>{switch(u.status){case"pulling":return r.pulling?"":i.pullingText.value;case"loosing":return r.loosing?"":i.loosingText.value;case"loading":return r.loading?"":i.loadingText.value;default:return""}}),y=t.computed(()=>({transitionDuration:`${o.duration}s`,transform:u.distance?`translate3d(0,${u.distance}px, 0)`:""})),b=t.computed(()=>{const N={};return o.headHeight!=50&&(N.height=he(o.headHeight)),N}),v=N=>{const A=+(o.pullDistance||o.headHeight);let V=N;return N>A&&(N<A*2?V=(N+A)/2:V=A+N/4),Math.round(V)},f=(N,A)=>{const V=+(o.pullDistance||o.headHeight);u.distance=N,A?u.status="loading":N===0?u.status="normal":N<V?u.status="pulling":u.status="loosing",l("change",{status:u.status,distance:N})},d=()=>u.status!=="loading"&&u.status!=="complete",g=()=>p.value==window?xs()==0:p.value&&p.value.scrollTop==0,C=N=>{d()&&(g()?(c.start(N),u.isPullRefresh=!0,u.moving=!0):(u.distance=0,u.isPullRefresh=!1))},B=N=>{d()&&u.moving&&(c.move(N),c.isVertical()&&c.state.deltaY>0&&u.isPullRefresh&&(N.cancelable&&N.preventDefault(),f(v(c.state.deltaY))))},S=()=>{u.moving=!1,u.isPullRefresh&&d()&&c.state.deltaY&&(u.status==="loosing"?(f(+o.headHeight,!0),l("update:modelValue",!0),t.nextTick(()=>l("refresh"))):f(0)),setTimeout(()=>{c.reset()},0)};return t.watch(()=>o.modelValue,N=>{N?f(+o.headHeight,!0):f(0)}),()=>{const N=[];let A=null;if(u.status==="loading"){if(A=r?.loading?.()??null,!A){const K={class:["fox-pull-refresh-container-topbox-icon"]};A=t.h(a,K)}}else u.status==="pulling"?A=r?.pulling?.()??null:u.status==="loosing"&&(A=r?.loosing?.()??null);A&&N.push(A);const V={class:["fox-pull-refresh-container-topbox-text"]},T=t.h("dive",V,[k.value]);N.push(T);const w={class:["fox-pull-refresh-container-topbox"],style:b.value},M=t.h("div",w,N),P={class:"fox-pull-refresh-container",style:y.value},$=t.h("div",P,[M,r?.default?.()]),E={ref:m,class:h.value};return tl()?Object.assign(E,{onTouchstart:C,onTouchmove:B,onTouchend:S}):Object.assign(E,{onMousedown:C,onMousemove:B,onMouseup:S}),t.h("div",E,[$])}}}),{componentName:ub,create:db,scope:fb}=X("pull-refresh"),Jl=db(cb(ub,fb,oe.Loading)),{create:mb}=X("notify"),pb=mb({components:{[de.name]:de},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:n}){const a=()=>{e.onClick&&e.onClick()};let o=null;const l=()=>{o&&clearTimeout(o),o=null},r=()=>{n("update:visible",!1)},s=t.ref(!1),i=t.watch(()=>e.visible,m=>{s.value=e.visible;const p=e.duration;m&&p&&(o=setTimeout(()=>{r()},p))},{immediate:!0});return{onAfterLeave:()=>{l(),i&&i(),e.unmount&&e.unmount(e.id),e.onClose&&e.onClose()},clickCover:a,isShowPopup:s}}});function hb(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(s,{visible:e.isShowPopup,"onUpdate:visible":n[1]||(n[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:n[0]||(n[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 _l=ne(pb,[["render",hb]]),Lo={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let ft=[],zt=[];const Ps=e=>{if(e){const n=document.getElementById(e);zt=zt.filter(a=>a.id!==e),ft=ft.filter(a=>a!==e),n&&document.body.removeChild(n)}else ft.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),zt=[],ft=[]},gb=e=>{const n=document.getElementById(e.id);if(n){const a=zt.find(l=>l.id===e.id);a?e={...Lo,...a,...e}:e={...Lo,...e};const o=t.createVNode(_l,e);return t.render(o,n),o.component.data}},Dt=e=>{e.unmount=Ps;let n;if(e.id){if(n=e.id,ft.find(r=>r===e.id))return gb(e)}else n=new Date().getTime()+"";e={...Lo,...e},e.id=n,ft.push(e.id),zt.push(e);const a=document.createElement("view");a.id="notify-"+e.id;const o={setup(){return e.teleport=`#notify-${e.id}`,t.onMounted(()=>{setTimeout(()=>{e.onClose&&e.onClose(),document.body.removeChild(a)},e.duration)}),()=>t.h(_l,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},It=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},ea={text(e,n={}){return It(e),Dt({...n,msg:e})},primary(e,n={}){return It(e),Dt({...n,msg:e,type:"primary"})},success(e,n={}){return It(e),Dt({...n,msg:e,type:"success"})},danger(e,n={}){return It(e),Dt({...n,msg:e,type:"danger"})},warn(e,n={}){return It(e),Dt({...n,msg:e,type:"warning"})},hide(){Ps()},install(e){e.use(_l)}},{create:yb}=X("toast"),vb=yb({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:n}){let a=null;const o=t.reactive({mounted:!1});t.onMounted(()=>{o.mounted=!0});const l=()=>{a&&(clearTimeout(a),a=null)},r=()=>{o.mounted=!1},s=()=>{l(),e.duration&&(a=setTimeout(()=>{r()},e.duration))},i=()=>{e.closeOnClickOverlay&&(r(),n("close"))};e.duration&&s(),t.watch(()=>e.duration,k=>{k&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),m=()=>{const k=ie(e.iconSize);return t.h(e.icon,{width:k,height:k,color:e.iconColor})},p=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]),u=t.computed(()=>["fox-toast-icon-wrapper",{"fox-toast-icon-no-animation":!e.loadingRotate}]);return{state:o,hide:r,clickCover:i,renderIcon:m,hasIcon:c,toastBodyClass:p,toastIconWrapperClass:u,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),bb={key:1,class:"fox-toast-title"},kb=["innerHTML"];function Sb(e,n,a,o,l,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: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.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderIcon())))],2)):t.createCommentVNode("",!0),e.title?(t.openBlock(),t.createElementBlock("div",bb,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,kb)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const ta=ne(vb,[["render",Sb]]),zo={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 mt=[],Ft=[];const Ls=e=>{if(e){const n=document.getElementById(e);Ft=Ft.filter(a=>a.id!==e),mt=mt.filter(a=>a!==e),n&&document.body.removeChild(n)}else mt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Ft=[],mt=[]},Cb=e=>{const n=document.getElementById(e.id);if(n){const a=Ft.find(l=>l.id===e.id);a?e={...zo,...a,...e}:e={...zo,...e};const o=t.createVNode(ta,e);return t.render(o,n),Vt}},qt=e=>{e.unmount=Ls;let n;if(e.id){if(n=e.id,mt.find(l=>l===e.id))return Cb(e)}else n=new Date().getTime()+"";e={...zo,...e},e.id=n,mt.push(e.id),Ft.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(ta,e);return t.render(o,a),document.body.appendChild(a),Vt},tn=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Vt={text(e,n={}){return tn(e),qt({...n,type:"text",msg:e})},success(e,n={}){return tn(e),qt({icon:oe.Success,...n,msg:e,type:"success"})},fail(e,n={}){return tn(e),qt({icon:oe.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return tn(e),qt({icon:oe.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return qt({icon:oe.Loading,...n,msg:e,type:"loading"})},hide(e){Ls(e)},install(e){e.use(ta),e.config.globalProperties.$toast=Vt}},{componentName:k2,create:wb}=X("audio"),Nb=wb({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:oe.Service,[jt.name]:jt},emits:["fastBack","play","forward","ended","changeProgress","mute","can-play"],setup(e,{emit:n,slots:a}){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 v=0;v<b.length;v++)document.addEventListener(b[v],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(v){v.message}});const r=b=>{const v=o.value;e.autoplay&&v&&v.paused&&v.play(),l.second=v.duration,l.duration=y(v.duration),n("can-play",b)},s=b=>{l.currentTime=parseInt(b.target.currentTime)},i=()=>{l.currentTime>0&&l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},c=()=>{const b=o.value;l.playing?(b.pause(),l.handPlaying=!1):(b.play(),l.handPlaying=!0),l.playing=!l.playing,n("play",l.playing)},m=()=>{l.currentTime++,o.value.currentTime=l.currentTime,n("forward",l.currentTime)},p=b=>{l.currentDuration=y(b),l.percent=b/l.second*100},u=()=>{l.playing=!1,n("ended")},h=b=>{const v=o.value;v.currentTime=l.second*b/100,n("changeProgress",v.currentTime)},k=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},y=b=>{if(!b)return"00:00:00";let v=parseInt(b),f=Math.floor(v/3600),d=Math.floor((v-f*3600)/60),g=v-f*3600-d*60,C="";return C+=("0"+f.toString()).slice(-2)+":",C+=("0"+d.toString()).slice(-2)+":",C+=("0"+g.toString()).slice(-2),C};return t.watch(()=>l.currentTime,b=>{p(b)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:k,forward:m,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:i,forward:m,changeStatus:c,progressChange:h,audioEnd:u,onTimeupdate:s,handleMute:k,onCanplay:r,slots:a}}}),Bb={class:"fox-audio"},Ab={key:0,class:"fox-audio__progress"},Vb={class:"fox-audio__time"},Tb={class:"fox-audio__bar"},$b=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),Eb={class:"fox-audio__time"},xb={key:1,class:"fox-audio__icon"},Db=["controls","src","preload","autoplay","loop","muted"];function Ib(e,n,a,o,l,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",Bb,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",Ab,[t.createElementVNode("div",Vb,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Tb,[t.createVNode(s,{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(()=>[$b]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",Eb,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",xb,[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(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: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,Db)])}const na=ne(Nb,[["render",Ib]]),{componentName:S2,create:qb,scope:Mb}=X("audio-operate"),Pb=qb({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(Mb),o=t.inject("audioParent"),l=t.reactive(o),r=t.ref(t.useSlots().default);return{...t.toRefs(e),...t.toRefs(l),customSlot:r,t:a}}}),Lb={class:"fox-audio-operate"};function zb(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Lb,[e.type=="back"?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-audio-operate-item",onClick:n[0]||(n[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:n[1]||(n[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:n[2]||(n[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:n[3]||(n[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 oa=ne(Pb,[["render",zb]]),{componentName:Fb,create:Rb}=X("avatar"),Ob=Rb({props:{size:{type:String,default:""},shape:{type:String,default:"round"},bgColor:{type:String,default:"#eee"},color:{type:String,default:"#666"}},setup(e){const{size:n,shape:a,bgColor:o,color:l}=t.toRefs(e),r=["large","normal","small"],s=t.inject("avatarGroup",null),i=t.ref(null),c=t.reactive({lightTheme:!1}),m=t.reactive({index:1,showMax:!1,maxIndex:0});t.onMounted(()=>{const y=s?.avatarGroupRef?.value?.children;y&&k(y)});const p=t.computed(()=>({[Fb]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||s?.props?.shape||"normal"}`]:!0})),u=t.computed(()=>({width:r.indexOf(n.value)>-1?"":`${n.value}px`,height:r.indexOf(n.value)>-1?"":`${n.value}px`,backgroundColor:`${o.value}`,color:`${l.value}`,marginLeft:m.index!=1&&(s?.props?.span?`${s?.props?.span}px`:""),zIndex:s?.props?.zIndex=="right"?`${Math.abs(m.maxIndex-m.index)}`:""})),h=t.computed(()=>({backgroundColor:`${s?.props?.maxBgColor}`,color:`${s?.props?.maxColor}`})),k=y=>{m.maxIndex=y.length;for(let b=0;b<y.length;b++)y[b]&&y[b].classList&&y[b].classList[0]=="fox-avatar"&&y[b].setAttribute("data-index",b+1);m.index=i?.value?.dataset?.index,m.index==m.maxIndex&&m.index!=s?.props?.maxCount&&(m.showMax=!0)};return{classes:p,styles:u,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(m)}}});function Kb(e,n,a,o,l,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 Qt=ne(Ob,[["render",Kb]]),{componentName:Ub,create:Hb}=X("avatar-group"),jb=Hb({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:a}){t.toRefs(e);const o=t.ref(null),l=t.ref(0),r=t.computed(()=>({[Ub]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:l}),{classes:r,avatarGroupRef:o}}});function Wb(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"avatarGroupRef"},[t.renderSlot(e.$slots,"default")],2)}const la=ne(jb,[["render",Wb]]);var cn=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(cn||{});function Yb(e,n,a){let o=0,l=e.length-1,r=null;for(;o<=l;){r=Math.floor((o+l)/2);const s=e[r],i=a(s,n);if(i===1)return r;i===2?o=r+1:i===3&&(l=r-1)}return r}const{componentName:Xb,create:Qb}=X("list"),Ar=document.documentElement.clientHeight||document.body.clientHeight||667,Gb=Qb({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Ar},height:{type:Number,default:80},margin:{type:Number,default:10}},emits:["scroll-up","scroll-down","scroll-bottom"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref(null),l=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,Ar)),i=t.computed(()=>Math.ceil(s.value/e.height)),c=t.computed(()=>Math.min(r.originStartIndex+i.value+e.bufferSize,r.list.length)),m=t.computed(()=>({[Xb]:!0})),p=t.computed(()=>r.list.slice(r.start,c.value)),u=()=>{if(l.value)return`translate3d(0, ${r.start>=1?r.cachePositions[r.start-1].bottom:0}px, 0)`},h=()=>{r.cachePositions=[];for(let f=0;f<r.list.length;++f)r.cachePositions[f]={index:f,height:e.height,top:f*e.height,bottom:(f+1)*(e.height+e.margin),dValue:0}},k=()=>{let f=l.value.childNodes;f=Array.from(f).filter(N=>N.nodeType===1);const d=f[0];f.forEach((N,A)=>{if(!N)return;const V=Ve(N),{height:T}=V,M=r.cachePositions[A+r.start].height-T;M&&(r.cachePositions[A+r.start].bottom-=M,r.cachePositions[A+r.start].height=T,r.cachePositions[A+r.start].dValue=M)});let g=0;d&&(g=r.start);const C=r.cachePositions.length;let B=r.cachePositions[g].dValue;r.cachePositions[g].dValue=0;for(let N=g+1;N<C;++N){const A=r.cachePositions[N];r.cachePositions[N].top=r.cachePositions[N-1].bottom,r.cachePositions[N].bottom=r.cachePositions[N].bottom-B,A.dValue!==0&&(B+=A.dValue,A.dValue=0)}const S=r.cachePositions[C-1].bottom;r.phantomHeight=S},y=(f=0)=>{let d=Yb(r.cachePositions,f,(C,B)=>{const S=C.bottom;return S===B?cn.eq:S<B?cn.lt:cn.gt});return r.cachePositions[d].bottom<f&&(d+=1),d},b=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,a.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},v=()=>{const f=a.value?.scrollTop,{originStartIndex:d}=r,g=y(f);g!==d&&(r.originStartIndex=g,r.start=Math.max(r.originStartIndex-e.bufferSize,0),c.value>=r.list.length-1&&n("scroll-bottom")),n(f>r.scrollTop?"scroll-up":"scroll-down",f),r.scrollTop=f};return t.watch(()=>e.listData,f=>{if(r.list=f.slice(),r.list.length===f.length)h(),k();else{b();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&k()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:u,visibleData:p,classes:m,getContainerHeight:s,handleScrollEvent:v}}});function Zb(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes),style:t.normalizeStyle({height:`${e.getContainerHeight}px`}),onScrollPassive:n[0]||(n[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 aa=ne(Gb,[["render",Zb]]),{componentName:Jb,create:_b}=X("circleprogress"),ek=_b({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 a=!!t.useSlots().default,o=Math.random().toString(36).slice(-8),l=t.computed(()=>({[Jb]:!0})),r=t.computed(()=>{const p=e.clockwise?1:0;return`M 50 50 m 0 -45 a 45 45 0 1 ${p} 0 90 a 45 45 0 1, ${p} 0 -90`}),s=t.computed(()=>Ae(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let p=283,u=p*Number(e.progress)/100;return{stroke:Ae(e.color)?`url(#${o})`:e.color,strokeDasharray:`${u}px ${p}px`}}),c=t.computed(()=>({stroke:e.pathColor})),m=t.computed(()=>{if(!Ae(e.color))return;let p=e.color;const u=Object.keys(p).sort((k,y)=>parseFloat(k)-parseFloat(y));let h=[];return u.map((k,y)=>{let b={key:"",value:""};b.key=k,b.value=p[k],h.push(b)}),h});return{classes:l,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:m,slotDefault:a,refRandomId:o}}}),tk={viewBox:"0 0 100 100"},nk=["id"],ok=["offset","stop-color"],lk=["d","stroke-width"],ak=["d","stroke","stroke-linecap","stroke-width"],rk={class:"fox-circleprogress-text"},sk={key:0};function ik(e,n,a,o,l,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",tk,[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,ok))),128))],8,nk)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,lk),t.createElementVNode("path",{class:"fox-circleprogress-hover",style:t.normalizeStyle(e.hoverStyle),d:e.path,fill:"none",stroke:e.hoverColor,"stroke-linecap":e.strokeLinecap,"stroke-width":e.strokeWidth},null,12,ak)])),t.createElementVNode("div",rk,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",sk,t.toDisplayString(e.progress)+"%",1))])],6)}const ra=ne(ek,[["render",ik]]),{componentName:ck,create:uk}=X("noticebar"),dk=uk({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},showLeftIcon:{type:Boolean,default:!0}},components:{ScrollItem:function(e){return e.item.props.style=e.style,e.item.key=e.key,t.h(e.item)},Notice:oe.Notice,CircleClose:oe.CircleClose},emits:["click","close","across-end"],setup(e,{emit:n,slots:a}){const o=t.ref(null),l=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(()=>({[ck]:!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})),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}),p=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),u=t.computed(()=>{let N={};if(e.complexAm)N={transform:`translateY(${r.distance}px)`};else if(r.animate){let A=~~(e.height/e.speed/4);N={transition:`all ${A==0?~~(e.height/e.speed):A}s`,"margin-top":`-${e.height}px`}}return N});t.watch(()=>e.text,N=>{h()}),t.watch(()=>e.list,N=>{r.scrollList=[...N]});const h=N=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const A=o.value.getBoundingClientRect().width,V=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?V>A:e.scrollable,r.isCanScroll?(r.wrapWidth=A,r.offsetWidth=V,r.duration=V/e.speed,r.animationClass="play"):r.animationClass=""},0)},k=N=>{n("click",N)},y=N=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",N)},b=N=>{r.firstRound=!1,n("across-end",N),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},v=()=>{f(),r.timer=setInterval(f,~~(e.height/e.speed/4*1e3)+e.standTime)},f=()=>{r.animate=!0,setTimeout(()=>{r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.animate=!1},~~(e.height/e.speed/4*1e3))},d=()=>{r.timer=setInterval(()=>{let N=100;for(let A=0;A<N;A++)g(A,!(A<N-1))},e.standTime+100*e.speed)},g=(N,A)=>{setTimeout(()=>{r.distance-=e.height/100,A&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},N*e.speed)},C=N=>{n("click",N)},B=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(a.default?S(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?d():v()},e.standTime)):h(e.text)}),t.watch(()=>a.default?a.default():[],N=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),S(N))});const S=N=>{N&&N.length>0&&(r.scrollList=N[0].children)};return t.onActivated(()=>{r.keepAlive&&(r.keepAlive=!1)}),t.onDeactivated(()=>{r.keepAlive=!0,clearInterval(r.timer)}),t.onUnmounted(()=>{clearInterval(r.timer)}),{...t.toRefs(e),...t.toRefs(r),isEllipsis:i,classes:s,barStyle:m,contentStyle:p,horseLampStyle:u,wrap:o,content:l,handleClick:k,onClickIcon:y,onAnimationEnd:b,go:C,handleClickIcon:B,slots:a,toPxDesc:he,wrapContentClass:c}}}),fk={key:0,class:"fox-noticebar__page-lefticon"},mk={ref:"wrap",class:"fox-noticebar__page-wrap"},pk={class:"showNotica"},hk=["onClick"];function gk(e,n,a,o,l,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:n[3]||(n[3]=(...m)=>e.handleClick&&e.handleClick(...m))},[e.showLeftIcon?(t.openBlock(),t.createElementBlock("view",fk,[t.renderSlot(e.$slots,"left-icon",{},()=>[e.leftIcon?(t.openBlock(),t.createBlock(s,{key:0,size:"16px"})):t.createCommentVNode("",!0)])])):t.createCommentVNode("",!0),t.createElementVNode("view",mk,[t.createElementVNode("view",{ref:"content",class:t.normalizeClass(e.wrapContentClass),style:t.normalizeStyle(e.contentStyle),onAnimationend:n[0]||(n[0]=(...m)=>e.onAnimationEnd&&e.onAnimationEnd(...m)),"on:webkitAnimationEnd":n[1]||(n[1]=(...m)=>e.onAnimationEnd&&e.onAnimationEnd(...m))},[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:1,class:"fox-noticebar__page-righticon",onClick:n[2]||(n[2]=t.withModifiers((...m)=>e.onClickIcon&&e.onClickIcon(...m),["stop"]))},[e.$slots["right-icon"]?t.renderSlot(e.$slots,"right-icon",{key:0}):(t.openBlock(),t.createBlock(i,{key:1}))])):t.createCommentVNode("",!0)],6)),[[t.vShow,e.showNoticebar]]):t.createCommentVNode("",!0),e.scrollList.length>0&&e.direction=="vertical"&&e.showNoticebar?(t.openBlock(),t.createElementBlock("view",{key:1,class:"fox-noticebar__vertical",style:t.normalizeStyle(e.barStyle)},[e.slots.default?(t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[t.createElementVNode("div",pk,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(m,p)=>(t.openBlock(),t.createBlock(c,{key:p,style:t.normalizeStyle({height:e.height+"px","line-height":e.height+"px"}),item:m},null,8,["style","item"]))),128))])],4)):(t.openBlock(),t.createElementBlock("ul",{key:1,class:"fox-noticebar__vertical-list",style:t.normalizeStyle(e.horseLampStyle)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.scrollList,(m,p)=>(t.openBlock(),t.createElementBlock("li",{class:"fox-noticebar__vertical-item",key:p,style:t.normalizeStyle({height:e.toPxDesc(e.height),lineHeight:e.toPxDesc(e.height)}),onClick:u=>e.go(m)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(m),1)])],12,hk))),128))],4)),t.createElementVNode("view",{class:"go",onClick:n[4]||(n[4]=m=>!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 sa=ne(dk,[["render",gk]]),yk="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAqgAAAKoCAMAAACMZv1uAAAC+lBMVEUAAAD19fXz9PTd1tvf3t708vPx7/Dz9PTY2NjY2NjWy837+fr09/f09fU0MzX09fX08vP09fXMzMz19vbY2NgyMjLz9PT19vb29/cuLDrY2Njz6uzKw8Tx7e719vby8/PY2Nj19vb09fUrKzb09fX19vbc09X09fXLy8v19fX09PS5uLjV1dX09fXV1dXU1NT/y9X19va8vLz09vb19fXX19fSyssxLzz09fX09fX09fX19vb19fX19vbU1NQxLzz09fXY2Nj19vb19vYsKjNVVFYUFBT19fXMzMz09fX09fX09fXMzMzW1tavr6/09fX09fXY2NjX19ebm536ssD09fXMzMw1MzzY2Nj19fUyMTz/y9XMzMzMzMzR0dH09fXMzMzY2NjZ2dnY2NjExMQuLDUpJzAyMDzY2NhpaWrMzMz19vbLy8sVFRXMzMy5ubm6ubkqKTL8ws7/x9IqKjIpJy//y9X19va5uLi5uLi5uLjZ2dn09fW5uLi5uLjY2Ni5uLi4t7c1Mz/MzMwbGxv/ytS1jZn09vb09fUVFRUyMD25uLn+ydPY2NgUFBQUFBT/zNb+xtL/y9X/xdD/y9UyMD0TExP5sb+4uLj/y9X+w879ws3/y9X1tMH8s8H/y9UkJSWAgYHj5OT/ytTY2NheXWDs7e7r7Ozv8PDs7u55eYH09fXMzMzY2NgyMD3/y9UzMzP8s8GwsLDm5+eKiorv8PDLy8s6Ojrl5ubZ2trPz88UFBTh4uLV1dXc3Ny5ubnu7u7T09O1tbXf39+zsrLx8vLR0dHJycm8vLzj5OQ3NUHq6+vo6ek2NjbGxsbCwsK3t7f9x9K+vr79t8Q4ODjs7e0+O0XAwMBiYWaSkZVbW1/27e/8vspUSlZMTExwcHL709tERESjo6ZHQU5M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AGA28qgSl1xInpquROEseRhxSkAWPOM8wxRODSIt7GNHQanCpeQAtQURq4KR80AWOsNlmIK5vCpg0ZuVoNTqS9KpaTGbVp3aKSLlVOaZPCgOIjqKc7L6ojRAlRZxs8VoK5WMy6lTjT/gRak1QKlFFxO9FKsBZzZZZSWQBY3nNKllAOdG70CtDcP9/s4DHtSzEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:C2,create:kk,scope:Sk}=X("empty"),Ck={empty:yk,error:vk,network:bk},wk=kk({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=re.useFoxI18n(Sk),a=n(e,["description"]),{image:o,imageSize:l}=t.toRefs(e),r=t.computed(()=>l.value?typeof l.value=="number"?`width:${l.value}px;height:${l.value}px`:`width:${l.value};height:${l.value}`:""),i=o.value.startsWith("https://")||o.value.startsWith("http://")||o.value.startsWith("//")?o.value:Ck[o.value];return{...a,imageUrl:i,imgStyle:r}}}),Nk={class:"fox-empty"},Bk=["src"],Ak={key:1,class:"fox-empty-description"};function Vk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Nk,[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,Bk)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",Ak,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const ia=ne(wk,[["render",Vk]]),{create:Tk,scope:$k}=X("video"),Ek=Tk({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:n}){const{t:a}=re.useFoxI18n($k),o=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}),l=t.ref(null),r=t.computed(()=>e.options.disabled);t.watch(()=>e.source,S=>{S.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,S=>{o.state.isMuted=S?S.muted:!1},{immediate:!0});const s=()=>{o.videoElm=l.value,e.options.autoplay&&setTimeout(()=>{o.videoElm.play()},200),e.options.touchPlay&&(o.showTouchMask=!0),e.options.playsinline&&(o.videoElm.setAttribute("playsinline",e.options.playsinline),o.videoElm.setAttribute("webkit-playsinline",e.options.playsinline),o.videoElm.setAttribute("x5-video-player-type","h5-page"),o.videoElm.setAttribute("x5-video-player-fullscreen",!1)),y(),o.showToolbox?i():(o.videoElm.addEventListener("play",()=>{o.state.playing=!0,n("play",o.videoElm)}),o.videoElm.addEventListener("pause",()=>{o.state.playing=!1,n("pause",o.videoElm)}),o.videoElm.addEventListener("ended",h),o.videoElm.addEventListener("timeupdate",mn(u,1e3)))},i=()=>{const S=l.value,N=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=S,o.progressBar.progressElm=N,o.progressBar.pos=N.getBoundingClientRect(),o.videoSet.progress.width=Math.round(N.getBoundingClientRect().width)},c=()=>{if(e.options.autoplay&&e.options.disabled)return o.state.playing=!0,!1;if(o.state.playing=!o.state.playing,o.videoElm)if(o.state.playing)try{setTimeout(()=>{o.videoElm.play()},200),o.videoElm.addEventListener("progress",()=>{p()}),o.videoElm.addEventListener("timeupdate",mn(u,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{k()}else o.videoElm.pause(),n("pause",o.videoElm)},m=S=>{var N=Math.floor(S/3600);N<10&&(N="0"+N);var A=Math.floor(S%3600/60);A<10&&(A="0"+A);var V=Math.round(S%3600%60);V<10&&(V="0"+V);var T="";return N!=0?T=N+":"+A+":"+V:T=A+":"+V,T},p=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},u=()=>{const S=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*S),o.videoSet.totalTime=m(o.videoElm.duration),o.videoSet.displayTime=m(o.videoElm.currentTime),n("time",o.videoSet.displayTime,o.videoSet.totalTime)},h=()=>{o.state.playing=!1,o.state.isEnd=!0,o.videoSet.displayTime="00:00",o.videoSet.progress.current=0,o.videoElm.currentTime=0,n("playend",o.videoElm)},k=()=>{o.state.isError=!0},y=()=>{o.state.vol=e.options.volume},b=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},v=()=>{},f=S=>{let A=S.targetTouches[0].pageX-o.progressBar.pos.left;A<=0&&(A=0),A>=o.videoSet.progress.width&&(A=o.videoSet.progress.width),o.videoSet.progress.current=A;let V=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&g(V,o.videoElm.duration)},d=S=>{let A=S.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=A;let V=A/o.videoSet.progress.width;o.videoElm.duration&&g(V,o.videoElm.duration)},g=(S,N)=>{o.videoElm.currentTime=Math.floor(S*N)},C=()=>{o.state.isError=!1,s()},B=()=>{o.state.fullScreen?(o.state.fullScreen=!1,document.webkitCancelFullScreen()):(o.state.fullScreen=!0,o.videoElm.webkitRequestFullScreen())};return t.onMounted(()=>{s()}),{root:l,...t.toRefs(e),...t.toRefs(o),handleError:k,isDisabled:r,play:c,handleMuted:b,touchSlidSrart:v,touchSlidMove:f,touchSlidEnd:d,retry:C,fullScreen:B,t:a}}}),xk={class:"fox-video",ref:"videocon"},Dk=["muted","autoplay","loop","poster","controls","preload"],Ik=["src","type"],qk={class:"fox-video-controller__now"},Mk={class:"fox-video-controller__progress"},Pk={class:"fox-video-controller__progress-value",ref:"progressBar"},Lk=t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1),zk=[Lk],Fk={class:"fox-video-controller__played",ref:"playedBar"},Rk={class:"fox-video-controller__total"},Ok={class:"fox-video-error"},Kk={class:"fox-video-error-tip"};function Uk(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",xk,[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]=(...s)=>e.handleError&&e.handleError(...s))},[t.createElementVNode("source",{src:e.source.src,type:e.source.type},null,8,Ik)],40,Dk),e.showToolbox&&!e.isDisabled?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-video-mask",ref:"touchMask",onClick:n[1]||(n[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:n[2]||(n[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:n[3]||(n[3]=(...s)=>e.play&&e.play(...s))}),t.createElementVNode("div",qk,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",Mk,[t.createElementVNode("div",Pk,[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:n[4]||(n[4]=t.withModifiers(s=>e.touchSlidMove(s),["stop","prevent"])),onTouchstart:n[5]||(n[5]=t.withModifiers(s=>e.touchSlidSrart(),["stop"])),onTouchend:n[6]||(n[6]=t.withModifiers(s=>e.touchSlidEnd(s),["stop"]))},zk,36),t.createElementVNode("div",Fk,null,512)],512)]),t.createElementVNode("div",Rk,t.toDisplayString(e.videoSet.totalTime),1),t.createElementVNode("div",{class:t.normalizeClass(["fox-video-controller__volume",{muted:e.state.isMuted}]),onClick:n[7]||(n[7]=(...s)=>e.handleMuted&&e.handleMuted(...s))},null,2),t.createElementVNode("div",{class:"fox-video-controller__full",onClick:n[8]||(n[8]=(...s)=>e.fullScreen&&e.fullScreen(...s))})],2),[[t.vShow,e.showToolbox&&!e.isDisabled]]),t.withDirectives(t.createElementVNode("div",Ok,[t.createElementVNode("p",Kk,t.toDisplayString(e.t("errorTip")),1),t.createElementVNode("p",{class:"fox-video-error-retry",onClick:n[9]||(n[9]=(...s)=>e.retry&&e.retry(...s))},t.toDisplayString(e.t("clickRetry")),1)],512),[[t.vShow,e.state.isError]])],512)}const St=ne(Ek,[["render",Uk]]),{create:Hk,componentName:jk}=X("steps"),ca=Hk({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:a}){const o=t.reactive({children:[]}),l=t.computed(()=>{const i=jk;return{[i]:!0,[`${i}-${e.direction}`]:!0,[`${i}-dot`]:!!e.progressDot}}),r=i=>{i&&o.children.push(i)},s=i=>{n("click-step",i)};return t.provide("parent",{relation:r,state:o,props:e,onEmit:s}),()=>t.h("view",{class:l.value},a.default?.())}}),{create:Wk,componentName:Yk}=X("step"),Xk=Wk({props:{title:{type:String,default:""},content:{type:String,default:""}},emits:["click-step"],setup(){const{proxy:e}=t.getCurrentInstance(),n=t.inject("parent");n.relation(e);const a=t.reactive({dot:n.props.progressDot}),o=t.computed(()=>n.state.children.indexOf(e)+1),l=()=>{const c=o.value;return c<+n.props.current?"finish":c===+n.props.current?"process":"wait"},r=t.computed(()=>l()),s=t.computed(()=>{const c=Yk;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:s,handleClickStep:i}}}),Qk={class:"fox-step-head"},Gk=t.createElementVNode("view",{class:"fox-step-line"},null,-1),Zk={class:"fox-step-icon-inner"},Jk={key:1,class:"fox-step-inner"},_k={class:"fox-step-main"},eS={class:"fox-step-title"},tS={key:0},nS={key:0,class:"fox-step-content"},oS=["innerHTML"];function lS(e,n,a,o,l,r){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",Qk,[Gk,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",Zk,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",Jk,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",_k,[t.createElementVNode("view",eS,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",tS,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",nS,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,oS)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ua=ne(Xk,[["render",lS]]),{create:aS,componentName:mo}=X("swiper"),rS=aS({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:n,slots:a}){const o=t.ref(),l=t.reactive({active:0,num:0,rect:null,width:0,height:0,moving:!1,offset:0,touchTime:0,autoplayTimer:null,children:[],childrenVNode:[],style:{}}),r=_e(),s=t.computed(()=>({[mo]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const D=mo;return{[`${D}-inner`]:!0,[`${D}-vertical`]:i.value}}),m=t.computed(()=>{const D=mo;return{[`${D}-pagination`]:!0,[`${D}-pagination-vertical`]:i.value}}),p=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),u=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>l.children.length),k=t.computed(()=>l[i.value?"height":"width"]),y=t.computed(()=>h.value*k.value),b=t.computed(()=>l.rect?(i.value?l.rect.height:l.rect.width)-k.value*h.value:0),v=t.computed(()=>(l.active+h.value)%h.value),f=()=>{let D=0;D=l.offset,l.style={transitionDuration:`${l.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${D}px)`,[i.value?"height":"width"]:`${k.value*h.value}px`,[i.value?"width":"height"]:`${i.value?l.width:l.height}px`}},d=D=>{let W=[];const H=l.childrenVNode.length;let Z=a?.default?.();if(Z=Z.filter(_=>_.children&&Array.isArray(_.children)),Z.forEach(_=>{W=W.concat(_.children)}),!H)l.childrenVNode=W.slice(),D.proxy&&l.children.push(D.proxy);else if(H>W.length)l.children=l.children.filter(_=>D.proxy!==_);else if(H<W.length){for(let _=0;_<H;_++)if(W[_].key!==l.childrenVNode[_].key){D.proxy&&l.children.splice(_,0,D.proxy),D.vnode&&l.childrenVNode.splice(_,0,D.vnode);break}H!==W.length&&(D.proxy&&l.children.push(D.proxy),D.vnode&&l.childrenVNode.push(D.vnode))}else l.childrenVNode=W.slice(),D.proxy&&l.children.push(D.proxy)},g=(D,W=0)=>{let H=D*k.value;e.loop||(H=Math.min(H,-b.value));let Z=W-H;return e.loop||(Z=Oe(Z,b.value,0)),Z},C=D=>{const{active:W}=l;return D?e.loop?Oe(W+D,-1,h.value):Oe(W+D,0,h.value-1):W},B=({pace:D=0,offset:W=0,isEmit:H=!1})=>{if(h.value<=1)return;const{active:Z}=l,_=C(D),j=g(_,W);if(e.loop){if(l.children[0]&&j!==b.value){const I=j<b.value;l.children[0].setOffset(I?y.value:0)}if(l.children[h.value-1]&&j!==0){const I=j>0;l.children[h.value-1].setOffset(I?-y.value:0)}}l.active=_,l.offset=j,H&&Z!==l.active&&n("change",v.value),f()},S=()=>{l.moving=!0,l.active<=-1&&B({pace:h.value}),l.active>=h.value&&B({pace:-h.value})},N=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},A=D=>{S(),r.reset(),Xe(()=>{Xe(()=>{l.moving=!1,B({pace:D,isEmit:!0})})})},V=()=>{A(-1)},T=()=>{A(1)},w=D=>{S(),r.reset(),Xe(()=>{l.moving=!1;let W;e.loop&&h.value===D?W=l.active===0?0:D:W=D%h.value,B({pace:W-l.active,isEmit:!0})})},M=()=>{e.autoPlay<=0||h.value<=1||(N(),l.autoplayTimer=setTimeout(()=>{T(),M()},Number(e.autoPlay)))},P=(D=+e.initPage)=>{N(),l.rect=o.value.getBoundingClientRect(),D=Math.min(h.value-1,D),l.width=e.width?+e.width:l.rect.width,l.height=e.height?+e.height:l.rect.height,l.active=D,l.offset=g(l.active),l.moving=!0,f(),M()},$=D=>{e.isPreventDefault&&D.preventDefault(),e.isStopPropagation&&D.stopPropagation(),e.touchable&&(r.start(D),l.touchTime=Date.now(),N(),S())},E=D=>{e.touchable&&l.moving&&(r.move(D),u.value&&B({offset:p.value}))},K=D=>{if(!e.touchable||!l.moving)return;const W=p.value/(Date.now()-l.touchTime);if((Math.abs(W)>.3||Math.abs(p.value)>+(k.value/2).toFixed(2))&&u.value){let Z=0;const _=i.value?r.offsetY.value:r.offsetX.value;e.loop?Z=_>0?p.value>0?-1:1:0:Z=-Math[p.value>0?"ceil":"floor"](p.value/k.value),B({pace:Z,isEmit:!0})}else p.value&&B({pace:0});l.moving=!1,f(),M()};return t.provide("parent",{props:e,size:k,relation:d}),$e({prev:V,next:T,to:w}),t.onDeactivated(()=>{N()}),t.onBeforeUnmount(()=>{N()}),t.watch(()=>e.initPage,D=>{t.nextTick(()=>{P(Number(D))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{P()})}),t.watch(()=>e.autoPlay,D=>{D>0?M():N()}),{state:l,classes:s,classesInner:c,classesPagination:m,container:o,activePagination:v,onTouchStart:$,onTouchMove:E,onTouchEnd:K}}});function sS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{ref:"container",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)),onTouchend:n[2]||(n[2]=(...s)=>e.onTouchEnd&&e.onTouchEnd(...s)),onTouchcancel:n[3]||(n[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 Ct=ne(rS,[["render",sS]]),{create:iS,componentName:cS}=X("swiper-item"),uS=iS({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[cS]:!0})),r=t.computed(()=>{const i={},c=a?.props.direction;return a?.size.value&&(i[c==="horizontal"?"width":"height"]=`${a?.size.value}px`),o.offset&&(i.transform=`translate${c==="horizontal"?"X":"Y"}(${o.offset}px)`),i}),s=i=>{o.offset=i};return t.onUnmounted(()=>{a.relation(t.getCurrentInstance(),"unmount")}),$e({setOffset:s}),{style:r,classes:l}}});function dS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.style)},[t.renderSlot(e.$slots,"default")],6)}const wt=ne(uS,[["render",dS]]),zs={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:fS}=X("image-preview-item"),mS=fS({props:{...zs,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:{[St.name]:St,[wt.name]:wt},setup(e,{emit:n}){const a=t.reactive({scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}),o=_e(),l=t.computed(()=>{const{rootWidth:V,rootHeight:T}=e,w=T/V;return a.imageRatio>w}),r=t.computed(()=>{const V=e.image;if(V&&V.src){const{scale:T,moveX:w,moveY:M,moving:P,zooming:$}=a,E={transitionDuration:$||P?"0s":".3s"};if(T!==1){const K=w/T,D=M/T;E.transform=`scale(${T}, ${T}) translate(${K}px, ${D}px)`}return E}return{}}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:V,rootHeight:T}=e,w=l.value?T/a.imageRatio:V;return Math.max(0,(a.scale*w-V)/2)}return 0}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:V,rootHeight:T}=e,w=l.value?T:V*a.imageRatio;return Math.max(0,(a.scale*w-T)/2)}return 0}),c=V=>{const{naturalWidth:T,naturalHeight:w}=V.target;a.imageRatio=w/T},m=()=>{p(1),a.moveX=0,a.moveY=0},p=V=>{V=Oe(V,+e.minZoom,+e.maxZoom+1),V!==a.scale&&(a.scale=V,n("scale",{scale:V,index:e.initNo}))},u=()=>{const V=a.scale>1?1:2;p(V),a.moveX=0,a.moveY=0},h=V=>Math.sqrt((V[0].clientX-V[1].clientX)**2+(V[0].clientY-V[1].clientY)**2);let k,y,b,v,f,d,g;const C=V=>{const{touches:T}=V,{offsetX:w}=o;o.start(V),g=T.length,k=a.moveX,y=a.moveY,d=Date.now(),a.moving=g===1&&a.scale!==1,a.zooming=g===2&&!w.value,a.zooming&&(b=a.scale,v=h(V.touches))},B=V=>{const{touches:T}=V;if(o.move(V),(a.moving||a.zooming)&&Co(V,!0),a.moving){const{deltaX:w,deltaY:M}=o,P=w.value+k,$=M.value+y;a.moveX=Oe(P,-s.value,s.value),a.moveY=Oe($,-i.value,i.value)}if(a.zooming&&T.length===2){const w=h(T),M=b*w/v;p(M)}},S=()=>{if(g==1&&e.video&&e.video.source||g>1)return;const{offsetX:V,offsetY:T}=o,w=Date.now()-d,M=250,P=5;V.value<P&&T.value<P&&w<M&&(f?(clearTimeout(f),f=null,u()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},M))},N=V=>{let T=!1;(a.moving||a.zooming)&&(T=!0,a.moving&&k===a.moveX&&y===a.moveY&&(T=!1),V.touches.length||(a.zooming&&(a.moveX=Oe(a.moveX,-s.value,s.value),a.moveY=Oe(a.moveY,-i.value,i.value),a.zooming=!1),a.moving=!1,k=0,y=0,b=1,a.scale<1&&m(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),Co(V,T),S(),o.reset()},A=()=>{n("close")};return t.watch(()=>e.initNo,m),t.watch(()=>e.show,V=>{V||m()}),{...t.toRefs(a),onTouchStart:C,onTouchMove:B,onTouchEnd:N,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:A}}}),pS=["src"];function hS(e,n,a,o,l,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:n[1]||(n[1]=(...c)=>e.onTouchStart&&e.onTouchStart(...c)),onTouchmove:n[2]||(n[2]=(...c)=>e.onTouchMove&&e.onTouchMove(...c)),onTouchend:n[3]||(n[3]=(...c)=>e.onTouchEnd&&e.onTouchEnd(...c)),onTouchcancel:n[4]||(n[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:n[0]||(n[0]=(...c)=>e.imageLoad&&e.imageLoad(...c))},null,40,pS)):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 gS=ne(mS,[["render",hS]]),{create:yS}=X("image-preview"),vS=yS({props:{...zs,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:gS,CircleClose:oe.CircleClose,[de.name]:de,[Ct.name]:Ct},setup(e,{emit:n}){const a=t.ref(),o=t.reactive({showPop:e.show,active:0,rootWidth:0,rootHeight:0}),l=t.computed(()=>{const p="fox-image-preview-close";return`fox-image-preview-close-icon ${e.closeIconPosition=="top-right"?`${p}-right`:`${p}-left`}`}),r=t.computed(()=>Sn(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=p=>{p!==o.active&&(o.active=p,n("change",o.active))},i=()=>{qs(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},m=()=>{if(a.value){const p=Ve(a.value);o.rootHeight=p.height,o.rootWidth=p.width}};return t.watch(()=>e.show,p=>{o.showPop=p,p&&(s(e.initNo),m())}),t.watch(()=>e.initNo,p=>{p!=o.active&&s(p)}),t.onMounted(()=>{s(e.initNo)}),{swipeRef:a,...t.toRefs(o),onClose:i,mergeImages:r,setActive:s,iconClasses:l}}}),bS={class:"fox-image-preview",ref:"swipeRef"},kS={key:0,class:"fox-image-preview-index"};function SS(e,n,a,o,l,r){const s=t.resolveComponent("image-preview-item"),i=t.resolveComponent("fox-swiper"),c=t.resolveComponent("CircleClose"),m=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(m,{"pop-class":"fox-image-preview-custom-pop",visible:e.showPop,"onUpdate:visible":n[1]||(n[1]=p=>e.showPop=p),teleportDisable:e.teleportDisable,teleport:e.teleport,onClosed:e.onClose,"lock-scroll":""},{default:t.withCtx(()=>[t.createElementVNode("view",bS,[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,(p,u)=>(t.openBlock(),t.createBlock(s,{key:u,video:u<e.videos.length?p:{},image:u>=e.videos.length?p:{},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",kS,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:n[0]||(n[0]=(...p)=>e.onClose&&e.onClose(...p))},[t.renderSlot(e.$slots,"close-icon",{},()=>[t.createVNode(c,{color:"#ffffff"})])],2)):t.createCommentVNode("",!0)]),_:3},8,["visible","teleportDisable","teleport","onClosed"])}const Fs=ne(vS,[["render",SS]]);class CS{show=!1;images=[];videos=[];contentClose=!0;initNo=0;paginationVisible=!1;paginationColor="";autoplay=0;isWrapTeleport=!1;showIndex=!0;closeable=!1;closeIconPosition="top-right";beforeClose;maxZoom=3;minZoom=1/3;isLoop=!0;teleport="body"}class wS{options=new CS;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=Si(a,{name:"image-preview",components:[de,St,Ct,wt,rt],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(Fs,a))}})})}}const _n=e=>new wS(e);_n.install=e=>{e.use(Fs)};function NS(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{componentName:w2,create:BS}=X("countup"),AS=BS({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:n}){const a=t.ref(null),o=t.ref([]),l=A=>{A&&o.value.push(A)},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:m}=t.reactive(e);t.watch(()=>e.customChangeNum,(A,V)=>{u(),v(0)}),t.watch(()=>e.machinePrizeLevel,(A,V)=>{r.prizeLevelTrun=A}),t.watch(()=>e.initNum,(A,V)=>{r.current=A,r.valFlag=!1,p()}),t.watch(()=>e.endNum,(A,V)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;s&&(i||c?m!="machine"&&v():(b(),setTimeout(()=>{r.valFlag=!0},300)))},u=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(A,V,T)=>{const w=(A.toString().split(".")[1]||"").length,M=(V.toString().split(".")[1]||"").length,P=Math.pow(10,Math.max(w,M));return T=="-"?Number((A*P-V*P).toFixed(0))/P:Number((A*P+V*P).toFixed(0))/P},k=A=>{let{num_total_len:V,pointNum:T,initDigit1:w,initDigit2:M,sortFlag:P}=r,$=P=="add"||P=="equal"?String(M)[A-(V-T)]:10-Number(String(M)[A-(V-T)]),E=P=="add"||P=="equal"?String(w)[A]:10-Number(String(w)[A]),K=A>V-T-1?-$*100+"%":A<=String(w).length-1?-E*100+"%":0;return K=="-1000%"&&(K=0),K},y=A=>{let{num_total_len:V,pointNum:T,initDigit1:w,initDigit2:M,sortFlag:P}=r,$=String(M)[A-(V-T)];return A>V-T-1?$||0:A<=String(w).length-1?String(w)[A]:0},b=()=>{let{endNum:A,initNum:V,speed:T,toFixed:w}=e,M=setInterval(()=>{if(V>A)if(r.current<=A||r.current<=T)r.current=A.toFixed(w),clearInterval(M),n("scroll-end"),r.valFlag=!1;else{let P=parseFloat(String(r.current))-parseFloat(String(T));r.current=P.toFixed(w)}else if(r.current>=A)r.current=A.toFixed(w),clearInterval(M),n("scroll-end"),r.valFlag=!1;else{let P=parseFloat(String(r.current))+parseFloat(String(T));r.current=P.toFixed(w)}},e.during)},v=A=>{let{initNum:V,endNum:T,toFixed:w,customBgImg:M}=e;M&&(V=e.customChangeNum);let P,$,E,K;V!=0?(w!=0&&(V=Number(V.toFixed(w))),String(V).indexOf(".")>-1?(P=String(V).split(".")[0].length,$=String(V).split(".")[1].length):(P=String(V).length,$=0)):(P=1,$=0),T!=0?(w!=0&&(T=Number(T.toFixed(w))),String(T).indexOf(".")>-1?(E=String(T).split(".")[0].length,K=String(T).split(".")[1].length):(E=String(T).length,K=0)):(E=1,K=0);let D=P>=E?P:E,W=$>=K?$:K;r.num_total_len=D+W,r.pointNum=W,V>T?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(V,T,"-"),r.numberVal=Number(String(V))):V<T?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(T,V,"-"),r.numberVal=Number(String(T))):r.sortFlag="equal";var H=1;for(let _=0;_<r.pointNum;_++)H*=10;var Z=r.numberVal*H;if(r.relNum=Z,w!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(Z).length),String(V).indexOf(".")>-1){let _=String(V).split(".");r.initDigit1=Number(_[0]),r.initDigit2=Number(_[1])}else r.initDigit1=V,r.initDigit2=0;i&&!M?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let _=o.value[r.num_total_len-1];f(_)}):A!==0&&C()},f=A=>{u();var V=1;r.pointNum!=0&&(V=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{d(A),r.totalCount=h(r.totalCount,V,"-"),r.totalCount<=0&&(u(),n("scroll-end"),r.valFlag=!1)},e.during)},d=A=>{let V=A.getAttribute("turn-number"),T;if(r.sortFlag=="add"?T=parseInt(String(V))+1:T=parseInt(String(V))-1>=0?parseInt(String(V))-1:9,A.setAttribute("turn-number",String(T)),(A.style.transition=="none 0s ease 0s"||T==1||!A.style.transition)&&(A.style.transition=`all linear ${e.during}ms`),T==10||r.sortFlag=="reduce"&&T==0){var w=null;A.style.top=`-${r.sortFlag=="add"?T*100:(10-T)*100}%`,A.setAttribute("turn-number","0"),w=setTimeout(()=>{w&&clearTimeout(w),A.style.transition="none",A.style.top="0",g(A,T)},.975*e.during)}else A.style.top=`-${r.sortFlag=="add"?T*100:(10-T)*100}%`;A.style.top=="-100%"&&r.sortFlag=="reduce"&&d(A.previousSibling)},g=(A,V)=>{setTimeout(()=>{V==10&&A.previousSibling&&d(A.previousSibling)},200)},C=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{a.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},B=()=>{for(r.notPrize=[];r.notPrize.length<3;){var A=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(A)==-1&&r.notPrize.push(A)}};NS({machineLuck:()=>{const A=e.machineTurnMore<0?0:e.machineTurnMore;let V=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&B();for(let T=0;T<e.machineNum;T++)setTimeout(()=>{let w=V*(T+1+parseFloat(String(A)));r.prizeYPrev.length!=0&&(r.prizeY[T]=r.prizeYPrev[T]);let M=r.prizeYPrev[T]?r.prizeYPrev[T]:0,P=w+M+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(V-M);r.prizeLevelTrun<0&&(P+=e.numHeight*r.notPrize[T]),N(T,P,M)},500*T)}});const N=(A,V,T)=>{let w=setInterval(()=>{if(T<=V)T+=10,r.prizeY[A]=parseFloat(String(T));else if(clearInterval(w),w=null,r.finshMachine+=1,r.prizeY[A]=V,r.finshMachine==e.machineNum){let M=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach($=>{let E=$;for(;E>M;)E-=M;r.prizeYPrev.push(E)}),setTimeout(()=>{r.finshMachine=0,r.prizeLevelTrun<0?(n("scroll-end",!1),r.valFlag=!1):(n("scroll-end",!0),r.valFlag=!1)},130)}},30)};return t.onMounted(()=>{r.current=e.initNum,t.nextTick(()=>{p()})}),t.onUnmounted(()=>{u(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:k,turnNumber:y}}}),VS={class:"fox-countup"},TS=["turn-number"];function $S(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",VS,[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,m)=>(t.openBlock(),t.createElementBlock("view",{class:"fox-countup__number-item__span",key:"dote"+m,style:t.normalizeStyle({width:e.numWidth+"px",height:e.numHeight+"px",lineHeight:e.numHeight+"px"})},t.toDisplayString(c),5))),128))],12,TS))),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 da=ne(AS,[["render",$S]]),ES=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:xS,create:DS}=X("countdown"),IS=DS({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:a}){const o=t.reactive({restTime:0,timer:null,counting:!e.paused&&e.autoStart,handleEndTime:Date.now(),diffTime:0}),l=t.computed(()=>({[xS]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-ES(e.startTime),o.counting||(o.counting=!0),i()},i=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const k=Date.now()-o.diffTime,y=Math.max(o.handleEndTime-k,0);o.restTime=y,y||(o.counting=!1,u(),n("on-end")),y>0&&i()}}))},c=(k,y)=>{const b=k;let v={d:0,h:0,m:0,s:0,ms:0};const f=1e3,d=60*f,g=60*d,C=24*g;return b>0&&(v.d=b>=f?Math.floor(b/C):0,v.h=Math.floor(b%C/g),v.m=Math.floor(b%g/d),v.s=Math.floor(b%d/f),v.ms=Math.floor(b%f)),y=="custom"?v:m({...v})},m=k=>{let{d:y,h:b,m:v,s:f,ms:d}=k,g=e.format;if(g.includes("DD")?g=g.replace("DD",et(y)):b+=Number(y)*24,g.includes("HH")?g=g.replace("HH",et(b)):v+=Number(b)*60,g.includes("mm")?g=g.replace("mm",et(v)):f+=Number(v)*60,g.includes("ss")?g=g.replace("ss",et(f)):d+=Number(f)*1e3,g.includes("S")){const C=et(d,3).toString();g.includes("SSS")?g=g.replace("SSS",C):g.includes("SS")?g=g.replace("SS",C.slice(0,2)):g.includes("S")&&(g=g.replace("SS",C.slice(0,1)))}return g},p=()=>{!o.counting&&!e.autoStart&&(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i(),n("on-restart",o.restTime))},u=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},h=()=>{e.autoStart||(u(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():o.restTime=e.time}),t.watch(()=>o.restTime,k=>{let y=c(k,"custom");n("update:modelValue",y),n("input",y)}),t.watch(()=>e.paused,(k,y)=>{y?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i()),n("on-restart",o.restTime)):o.counting&&u()}),t.watch(()=>e.endTime,k=>{s()}),t.watch(()=>e.startTime,k=>{s()}),{...t.toRefs(e),slots:a,classes:l,start:p,pause:u,renderTime:r,reset:h}}}),qS=["innerHTML"];function MS(e,n,a,o,l,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,qS))],2)}const fa=ne(IS,[["render",MS]]),{create:PS}=X("badge"),LS=PS({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 n=t.reactive({}),a=t.computed(()=>({top:`${e.top}px`,right:`${e.right}px`,zIndex:e.zIndex,background:e.color})),o=t.computed(()=>{if(e.dot)return;const l=e.value,r=e.max;return typeof l=="number"&&typeof r=="number"&&r<l?`${r}+`:l});return{state:n,stl:a,content:o}}}),zS={class:"fox-badge"},FS=["textContent"];function RS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",zS,[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,FS),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const ma=ne(LS,[["render",RS]]),{componentName:OS,create:KS}=X("tag"),US=KS({props:{color:{type:String,default:""},textColor:{type:String,default:""},type:{type:String,default:"default"},plain:{type:Boolean,default:!1},round:{type:Boolean,default:!1},mark:{type:Boolean,default:!1},closeable:{type:Boolean,default:!1},symbol:{type:Boolean,default:!1},text:{type:Boolean,default:!1},light:{type:Boolean,default:!1}},components:{Close:oe.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const s=OS;return{[s]:!0,[`${s}--${e.type}`]:!0,[`${s}--plain`]:e.plain,[`${s}--round`]:e.round,[`${s}--mark`]:e.mark,[`${s}--symbol`]:e.symbol,[`${s}--text`]:e.text,[`${s}--light`]:e.light}}),getStyle:()=>{const s={};return e.textColor?s.color=e.textColor:(e.color&&e.plain||e.color&&e.text)&&(s.color=e.color),e.plain?(s.background="#fff",s["border-color"]=e.color):!e.text&&e.color&&(s.background=e.color),s},onClose:s=>{s.stopPropagation(),n("close",s)},onClick:s=>{n("click",s)}}}});function HS(e,n,a,o,l,r){const s=t.resolveComponent("Close");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.getStyle()),onClick:n[0]||(n[0]=(...i)=>e.onClick&&e.onClick(...i))},[t.renderSlot(e.$slots,"default"),e.closeable?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-tag--close",onClick:e.onClose},null,8,["onClick"])):t.createCommentVNode("",!0)],6)}const Gt=ne(US,[["render",HS]]),{create:jS}=X("popover"),WS=jS({components:{FoxPopup:de},props:{visible:{type:Boolean,default:!1},list:{type:Array,default:[]},theme:{type:String,default:"light"},location:{type:String,default:"bottom"},offset:{type:Array,default:[0,12]},arrowOffset:{type:Number,default:0},customClass:{type:String,default:""},showArrow:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},overlay:{type:Boolean,default:!1},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0},closeOnClickAction:{type:Boolean,default:!0},closeOnClickOutside:{type:Boolean,default:!0},targetId:{type:String,default:""},bgColor:{type:String,default:""},teleportDisable:{type:Boolean,default:!0}},emits:["update","update:visible","close","choose","open"],setup(e,{emit:n}){const a=t.ref(),o=t.ref(),l=t.ref(e.visible);let r=t.ref(),s=t.ref();const i=t.computed(()=>{const d="fox-popover-arrow",g=e.location,C=g.split("-")[0];return`${d} ${d}-${C} ${d}--${g}`}),c=t.computed(()=>{const d={},{bgColor:g,arrowOffset:C,location:B}=e,S=B.split("-")[0],N=B.split("-")[1],A=16;return g&&(d[`border${m(S)}Color`]=g),e.arrowOffset!=0&&(["bottom","top"].includes(S)&&(N||(d.left=`calc(50% + ${C}px)`),N=="start"&&(d.left=`${A+C}px`),N=="end"&&(d.right=`${A-C}px`)),["left","right"].includes(S)&&(N||(d.top=`calc(50% - ${C}px)`),N=="start"&&(d.top=`${A-C}px`),N=="end"&&(d.bottom=`${A+C}px`))),d}),m=d=>(d=d.toLowerCase(),d=d.replace(/\b\w+\b/g,g=>g.substring(0,1).toUpperCase()+g.substring(1)),d),p=t.computed(()=>{let d={};if(!r.value||!s.value)return{};const g=s.value.width,C=s.value.height,{width:B,height:S,left:N,top:A}=r.value,{location:V,offset:T}=e,w=V.split("-")[0],M=V.split("-")[1];let P=0,$=0;if(Sn(T)&&T.length==2&&(P+=Number(T[1]),$+=Number(T[0])),B){if(["bottom","top"].includes(w)){const E=w=="bottom"?S+P:-(C+P);d.top=`${A+E}px`,M||(d.left=`${-(g-B)/2+N+$}px`),M=="start"&&(d.left=`${N+$}px`),M=="end"&&(d.left=`${r.value.right+$}px`)}if(["left","right"].includes(w)){const E=w=="left"?-(g+P):B+P;d.left=`${N+E}px`,M||(d.top=`${A-C/2+S/2-4+$}px`),M=="start"&&(d.top=`${A+$}px`),M=="end"&&(d.top=`${A+S+$}px`)}}return d}),u=t.computed(()=>{const d={};return e.bgColor&&(d.background=e.bgColor),d}),h=()=>{let d=Ve(a.value);e.targetId&&(d=Ve(document.querySelector(`#${e.targetId}`))),r.value=d,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,d=>{l.value=d,d?(window.addEventListener("touchstart",f,!0),h()):window.removeEventListener("touchstart",f,!0)});const k=d=>{n("update",d),n("update:visible",d)},y=()=>{k(!e.visible),n("open")},b=()=>{n("update:visible",!1),n("close")},v=(d,g)=>{!d.disabled&&n("choose",d,g),e.closeOnClickAction&&b()},f=d=>{const g=a.value,C=o.value;let B=g&&!g.contains(d.target);if(e.targetId){const S=document.querySelector(`#${e.targetId}`);B=S&&!S.contains(d.target)}B&&C&&!C.contains(d.target)&&e.closeOnClickOutside&&b()};return{showPopup:l,openPopover:y,popoverArrow:i,closePopover:b,chooseItem:v,popoverRef:a,popoverContentRef:o,getRootPosition:p,customStyle:u,popoverArrowStyle:c,renderIcon:os}}}),YS={ref:"popoverContentRef",class:"fox-popover-content-group"},XS=["onClick"],QS={class:"fox-popover-menu-item-name"};function GS(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock(t.Fragment,null,[e.targetId?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,ref:"popoverRef",class:"fox-popover-wrapper",onClick:n[0]||(n[0]=(...i)=>e.openPopover&&e.openPopover(...i))},[t.renderSlot(e.$slots,"reference")],512)),t.createElementVNode("view",{class:t.normalizeClass(["fox-popover",`fox-popover--${e.theme}`,`${e.customClass}`]),style:t.normalizeStyle(e.getRootPosition)},[t.createVNode(s,{visible:e.showPopup,"onUpdate:visible":n[1]||(n[1]=i=>e.showPopup=i),"pop-class":`fox-popover-content fox-popover-content--${e.location}`,style:t.normalizeStyle(e.customStyle),position:"",transition:"fox-popover","teleport-disable":e.teleportDisable,overlay:e.overlay,duration:e.duration,"overlay-style":e.overlayStyle,"overlay-class":e.overlayClass,"close-on-click-overlay":e.closeOnClickOverlay},{default:t.withCtx(()=>[t.createElementVNode("view",YS,[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(m=>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",QS,t.toDisplayString(i.name),1)],10,XS))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Zt=ne(WS,[["render",GS]]),ZS=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(n){const{avatarShape:a,round:o,avatarSize:l}=t.toRefs(n),r=t.computed(()=>{const c="avatarClass";return{[c]:!0,[`${c}--${a.value}`]:a.value}});return{avatarShape:a,avatarClass:r,getBlockClass:c=>({[c]:!0,[`${c}--round`]:o.value}),getStyle:()=>l.value?{width:l.value,height:l.value}:{width:"50px",height:"50px"}}}}),{create:JS}=X("skeleton"),_S=JS(ZS({[Qt.name]:Qt})),e1={key:0},t1={key:1,class:"fox-skeleton"},n1={key:0,class:"fox-skeleton-animation"},o1={class:"fox-skeleton-content"};function l1(e,n,a,o,l,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",t1,[e.animated?(t.openBlock(),t.createElementBlock("view",n1)):t.createCommentVNode("",!0),t.createElementVNode("view",o1,[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",e1,[t.renderSlot(e.$slots,"default")]))}const pa=ne(_S,[["render",l1]]),{create:a1,componentName:r1}=X("collapse"),s1=a1({props:{modelValue:{type:[String,Number,Array],default:""},accordion:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(e,{emit:n}){const a=t.ref(null),o=t.ref(e.modelValue||(e.accordion?"":[])),l=t.computed(()=>({[r1]:!0}));t.watch(()=>e.modelValue,c=>{o.value=c});const r=(c,m,p=!0)=>{o.value=c,n("update:modelValue",c),n("change",c,m,p)},s=c=>{if(e.accordion)o.value===c?r("",c,!1):r(c,c,!0);else if(Array.isArray(o.value))if(o.value.includes(c)){const m=o.value.filter(p=>p!==c);r(m,c,!1)}else{const m=o.value.concat([c]);r(m,c,!0)}else console.warn("[FoxUI] <Collapse> 未开启手风琴模式时 v-model 应为数组")},i=c=>e.accordion?o.value===c:Array.isArray(o.value)?o.value.includes(c):!1;return t.provide("collapseParent",{updateVal:s,isExpanded:i}),{collapseDom:a,classes:l}}});function i1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),ref:"collapseDom"},[t.renderSlot(e.$slots,"default")],2)}const ha=ne(s1,[["render",i1]]),{create:c1,componentName:u1}=X("collapse-item"),d1=c1({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:oe.DownArrow},rotate:{type:[String,Number],default:180}},setup(e){const n=t.ref(null),a=t.ref(null),o=t.inject("collapseParent"),l=t.reactive(o),r=t.computed(()=>{const h=u1;return{[h]:!0,[h+"__border"]:e.border}}),s=t.computed(()=>l?l.isExpanded(e.name):!1),i=t.ref(s.value?"auto":"0px"),c=()=>{l.updateVal(e.name)},m=()=>{s.value&&(i.value="auto")},p=()=>{i.value="0px",requestAnimationFrame(()=>{requestAnimationFrame(()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto"})})},u=()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?p():u()}),{classes:r,renderIcon:os,wrapperRef:n,contentRef:a,open:p,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:m}}}),f1={class:"fox-collapse-item__title-main"},m1={class:"fox-collapse-item__title-main-value"},p1=["innerHTML"],h1={key:2,class:"fox-collapse-item__title-label"},g1={key:0,class:"fox-collapse-item__title-sub"},y1=["innerHTML"],v1={key:0,class:"fox-collapse__item-extraWrapper"},b1={class:"fox-collapse__item-extraWrapper__extraRender"},k1={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function S1(e,n,a,o,l,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:n[0]||(n[0]=(...s)=>e.toggle&&e.toggle(...s))},[t.createElementVNode("view",f1,[t.createElementVNode("view",m1,[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,p1)),e.label?(t.openBlock(),t.createElementBlock("view",h1,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",g1,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,y1)),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",v1,[t.createElementVNode("div",b1,[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:n[1]||(n[1]=(...s)=>e.onTransitionEnd&&e.onTransitionEnd(...s))},[t.createElementVNode("view",k1,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const ga=ne(d1,[["render",S1]]),C1=t.defineComponent({setup(e){return()=>t.h("view",{},e.slots[0]?e.slots[0](e.record):e.slots[1](e.record))},props:{slots:Array,record:Object}}),{componentName:w1,create:N1,scope:B1}=X("table"),A1=N1({components:{RenderColumn:C1,DownArrow:oe.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:n,slots:a}){const{t:o}=re.useFoxI18n(B1),l=t.reactive({curData:e.data}),r=t.computed(()=>({[w1]:!0})),s=k=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${k.align?k.align:""}`]:!0}),i=k=>k.stylehead?k.stylehead:"",c=k=>k.stylecolumn?k.stylecolumn:"",m=k=>e.columns.filter(y=>y.key===k)[0],p=k=>{const y=e.columns.filter(b=>b.key===k);return y[0].stylecolumn?y[0].stylecolumn:""},u=k=>{k.sorter&&(n("sorter",k),l.curData=typeof k.sorter=="function"?l.curData.sort(k.sorter):k.sorter==="default"?l.curData.sort():l.curData)},h=()=>e.columns.map(k=>[k.key,k.render]);return t.watch(()=>e.data,k=>{l.curData=k.slice()}),{...t.toRefs(l),classes:r,cellClasses:s,getColumnItem:m,getColumnItemStyle:p,handleSorterClick:u,sortDataItem:h,t:o,stylehead:i,stylecolumn:c}}}),V1={class:"fox-table__main__head"},T1={class:"fox-table__main__head__tr"},$1=["onClick"],E1={class:"fox-table__main__body"},x1={key:1},D1={key:0,class:"fox-table__nodata"},I1={key:0,class:"fox-table__nodata__text"},q1={key:1,class:"fox-table__summary"},M1=["innerHTML"];function P1(e,n,a,o,l,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",V1,[t.createElementVNode("view",T1,[(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(s,{key:0,width:"12px",height:"12px"})):t.createCommentVNode("",!0)],14,$1))),128))])]),t.createElementVNode("view",E1,[(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,p])=>(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 p=="function"?(t.openBlock(),t.createBlock(i,{key:0,slots:[p,c[m]],record:c},null,8,["slots","record"])):(t.openBlock(),t.createElementBlock("view",x1,t.toDisplayString(c[m]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",D1,[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",I1,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",q1,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,M1)])):t.createCommentVNode("",!0)],2)}const ya=ne(A1,[["render",P1]]),{componentName:L1,create:z1}=X("ellipsis"),F1=z1({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:n}){const a=t.ref(null);let o=null,l=0;const r=t.ref(),s=t.reactive({exceeded:!1,expanded:!1}),i=t.computed(()=>({[L1]:!0}));t.watch(()=>e.content,(b,v)=>{b!=v&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!a.value)return;const b=window.getComputedStyle(a.value);o=document.createElement("div"),Array.prototype.slice.apply(b).forEach(d=>{o.style.setProperty(d,b.getPropertyValue(d))}),o.style.position="fixed",o.style.left="999999px",o.style.top="999999px",o.style.zIndex="-1000",o.style.height="auto",o.style.minHeight="auto",o.style.maxHeight="auto",o.style.textOverflow="clip",o.style.whiteSpace="normal",o.style.webkitLineClamp="unset",o.style.display="block";const f=h(b.lineHeight==="normal"?e.lineHeight:b.lineHeight);l=Math.floor(f*(Number(e.rows)+.5)+h(b.paddingTop)+h(b.paddingBottom)),o.innerText=e.content,document.body.appendChild(o),m()},m=()=>{if(o.offsetHeight<=l)s.exceeded=!1,document.body.removeChild(o);else{s.exceeded=!0;const b=e.content.length,v=Math.floor((0+b)/2),f=e.direction==="middle"?u([0,v],[v,b]):p(0,b);r.value=f,document.body.removeChild(o)}},p=(b,v)=>{const f=s.expanded?e.collapseText:e.expandText,d=e.content.length;if(v-b<=1)return e.direction==="end"?{leading:e.content.slice(0,b)+e.symbol}:{tailing:e.symbol+e.content.slice(v,d)};const g=Math.round((b+v)/2);return e.direction==="end"?o.innerText=e.content.slice(0,g)+e.symbol+f:o.innerText=f+e.symbol+e.content.slice(g,d),o.offsetHeight<=l?e.direction==="end"?p(g,v):p(b,g):e.direction==="end"?p(b,g):p(g,v)},u=(b,v)=>{const f=s.expanded?e.collapseText:e.expandText,d=e.content.length;if(b[1]-b[0]<=1&&v[1]-v[0]<=1)return{leading:e.content.slice(0,b[0])+e.symbol,tailing:e.symbol+e.content.slice(v[1],d)};const g=Math.floor((b[0]+b[1])/2),C=Math.ceil((v[0]+v[1])/2);return o.innerText=e.content.slice(0,g)+e.symbol+f+e.symbol+e.content.slice(C,d),o.offsetHeight<=l?u([g,b[1]],[v[0],C]):u([b[0],g],[C,v[1]])},h=b=>{if(!b)return 0;const v=b.match(/^\d*(\.\d*)?/);return v?Number(v[0]):0},k=b=>{b==1?(s.expanded=!0,n("change","expand")):(s.expanded=!1,n("change","collapse"))},y=()=>{n("click")};return{...t.toRefs(s),root:a,ellipsis:r,classes:i,clickHandle:k,handleClick:y}}}),R1={key:0},O1={key:1},K1={key:2};function U1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[2]||(n[2]=(...s)=>e.handleClick&&e.handleClick(...s)),ref:"root"},[e.exceeded?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",R1,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",O1,[t.createTextVNode(t.toDisplayString(e.ellipsis&&e.ellipsis.leading),1),e.expandText?(t.openBlock(),t.createElementBlock("span",{key:0,class:"fox-ellipsis__text",onClick:n[0]||(n[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",K1,[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(s=>e.clickHandle(2),["stop"]))},t.toDisplayString(e.collapseText),1)):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)],2)}const va=ne(F1,[["render",U1]]),{componentName:H1,create:j1}=X("animate"),W1=j1({props:{type:{type:String,default:""},action:{type:String,default:"initial"},loop:{type:Boolean,default:!1},duration:{type:[String,Number]}},emits:["click"],setup(e,{emit:n}){const{type:a,loop:o,action:l}=t.toRefs(e),r=t.reactive({clicked:!1});let s=t.computed(()=>({"fox-animate__container":!0,[`${H1}-${a.value}`]:l.value==="initial"||r.clicked?a.value:!1,loop:o.value}));const i=c=>{r.clicked=!0,o.value||setTimeout(()=>{r.clicked=!1},1e3),n("click",c)};return{...t.toRefs(r),classes:s,handleClick:i}}}),Y1={class:"fox-animate"};function X1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Y1,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[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 ba=ne(W1,[["render",X1]]),{componentName:Q1,create:G1}=X("watermark"),Z1=G1({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 a=t.reactive({base64Url:""}),{zIndex:o,gapX:l,gapY:r,width:s,height:i,rotate:c,image:m,imageWidth:p,imageHeight:u,content:h,fontStyle:k,fontWeight:y,fontColor:b,fontSize:v,fontFamily:f}=e,d=()=>{const C=document.createElement("canvas"),B=window.devicePixelRatio,S=C.getContext("2d"),N=`${(l+s)*B}px`,A=`${(r+i)*B}px`,V=s*B,T=i*B;if(C.setAttribute("width",N),C.setAttribute("height",A),S){if(m){S.translate(V/2,T/2),S.rotate(Math.PI/180*Number(c));const w=new Image;w.crossOrigin="anonymous",w.referrerPolicy="no-referrer",w.src=m,w.onload=()=>{S.drawImage(w,-p*B/2,-u*B/2,p*B,u*B),S.restore(),a.base64Url=C.toDataURL()}}else if(h){S.textBaseline="middle",S.textAlign="center",S.translate(V/2,T/2),S.rotate(Math.PI/180*Number(c));const w=Number(v)*B;S.font=`${k} normal ${y} ${w}px/${T}px ${f}`,S.fillStyle=b,S.fillText(h,0,0),S.restore(),a.base64Url=C.toDataURL()}}else throw new Error("当前环境不支持Canvas")};d(),t.watch(()=>[o,l,r,s,i,c,m,p,u,h,k,y,b,v,f],()=>{d()});const g=t.computed(()=>{const C=Q1;return{[C]:!0,[`${C}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:g}}});function J1(e,n,a,o,l,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 ka=ne(Z1,[["render",J1]]);function _1(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:eC,create:tC}=X("trend-arrow"),nC=tC({components:{TriangleUp:oe.TriangleUp,TriangleDown:oe.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 n=t.reactive({rateTrend:e.rate>0}),a=t.computed(()=>({[eC]:!0})),o=t.computed(()=>{const{rate:r,digits:s,showSign:i,showZero:c}=e;n.rateTrend=r>0;const m=Math.abs(r);return!c&&r===0?"--":`${i&&r!==0?n.rateTrend?"+":"-":""}${_1(Number(m),s)}%`}),l=t.computed(()=>{const{dropColor:r,riseColor:s,syncTextColor:i,textColor:c,rate:m}=e;return{color:m===0?c:i?n.rateTrend?s:r:c}});return{...t.toRefs(n),classes:a,calcRate:o,calcStyle:l}}});function oC(e,n,a,o,l,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 Sa=ne(nC,[["render",oC]]),{create:lC}=X("tour"),aC=lC({components:{[Zt.name]:Zt,Close:oe.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:n}){const a=t.reactive({showTour:e.modelValue,showPopup:!1,active:0}),o=t.ref({}),l=t.computed(()=>"fox-tour"),r=t.computed(()=>{const{offset:p,maskWidth:u,maskHeight:h}=e,{width:k,height:y,left:b,top:v}=o.value,f=[b+k/2,v+y/2],d=Number(u||k),g=Number(h||y);return{width:`${d+ +p[1]*2}px`,height:`${g+ +p[0]*2}px`,top:`${f[1]-g/2-+p[0]}px`,left:`${f[0]-d/2-+p[1]}px`}}),s=p=>{p=="next"?a.active=a.active+1:a.active=a.active-1,a.showPopup=!1,t.nextTick(()=>{a.showPopup=!0,i()}),n("change",a.active)},i=()=>{const p=document.querySelector(`#${e.steps[a.active].target}`),u=Ve(p);o.value=u},c=()=>{a.showTour=!1,a.showPopup=!1,n("close",a.active),n("update:modelValue",!1)},m=()=>{e.closeOnClickOverlay&&c()};return t.onMounted(()=>{a.active=0,i()}),t.watch(()=>e.modelValue,p=>{p&&i(),a.active=0,a.showTour=p,a.showPopup=p}),{...t.toRefs(a),classes:l,maskStyle:r,changeStep:s,close:c,handleClickMask:m}}}),rC={key:0,class:"fox-tour-content"},sC={key:0,class:"fox-tour-content-top"},iC={class:"fox-tour-content-inner"},cC={class:"fox-tour-content-bottom"},uC={class:"fox-tour-content-bottom-init"},dC={class:"fox-tour-content-bottom-operate"},fC={key:1,class:"fox-tour-content fox-tour-content-tile"},mC={class:"fox-tour-content-inner"};function pC(e,n,a,o,l,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:n[0]||(n[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,m)=>(t.openBlock(),t.createElementBlock("div",{key:m,style:{height:"0"}},[m==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":n[5]||(n[5]=p=>e.showPopup=p),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",rC,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",sC,[t.createElementVNode("div",{onClick:n[1]||(n[1]=(...p)=>e.close&&e.close(...p))},[t.createVNode(s,{class:"fox-tour-content-top-close"})])])):t.createCommentVNode("",!0),t.createElementVNode("div",iC,t.toDisplayString(c.content),1),t.createElementVNode("div",cC,[t.createElementVNode("div",uC,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",dC,[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:n[2]||(n[2]=p=>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:n[3]||(n[3]=(...p)=>e.close&&e.close(...p))},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:n[4]||(n[4]=p=>e.changeStep("next"))},t.toDisplayString(e.nextStepTxt),1)):t.createCommentVNode("",!0)])])])])):t.createCommentVNode("",!0),e.type=="tile"?(t.openBlock(),t.createElementBlock("div",fC,[t.createElementVNode("div",mC,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const Ca=ne(aC,[["render",pC]]),{componentName:N2,create:hC,scope:gC}=X("address"),yC=hC({components:{Location:oe.Location,Location2:oe.Location2,Check:oe.Check,Close:oe.Close,Left:oe.Left,[de.name]:de,[Ht.name]:Ht},inheritAttrs:!1,props:{...ze,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(gC),o=t.ref(null),l=t.ref(null),r=t.ref(e.visible),s=t.ref(e.type),i=t.ref(0),c=t.ref(0),m=t.ref(["province","city","country","town"]),p=t.ref(null),u=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}}),k=E=>{if(!Array.isArray(E))throw new TypeError("params muse be array.");if(!E.length)return[];E.forEach(D=>{if(!D.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const K=[];return E=E.sort((D,W)=>D.title.localeCompare(W.title)),E.forEach(D=>{const W=K.findIndex(H=>H.title===D.title);W<=-1?K.push({title:D.title,list:[].concat(D)}):K[W].list.push(D)}),K};let y=t.ref([]),b=t.reactive({});const v=t.ref("self"),f=t.ref(20),d=()=>{const E=e.modelValue,K=E.length;if(K>0){if(i.value=K-1,h.value.length==0){i.value=0;return}for(let D=0;D<K;D++){let W=[];switch(D){case 0:W=e.province;break;case 1:W=e.city;break;case 2:W=e.country;break;default:W=e.town}y.value[D]=W.filter(H=>H.id==E[D])[0]}C()}},g=(E,K)=>E&&E.name||i.value<K&&E?E.name:e.columnsPlaceholder[K]||a("select"),C=()=>{N(),t.nextTick(()=>{const E=l.value&&l.value.getElementsByClassName("active")[0];if(E){const K=E.offsetLeft;f.value=K||20}})},B=E=>{const K=i.value;c.value=i.value;const D={custom:m.value[K]};y.value[K]=E;for(let W=K+2;W<4;W++)y.value.splice(W,1);K<3?(i.value=K+1,C(),D.next=m.value[i.value],D.value=E,n("change",D)):(T(),n("update:modelValue"))},S=(E,K)=>{c.value=i.value,g(E,K)&&(i.value=K,C())},N=()=>{const E=p.value,K=c.value,D=u.value[i.value];E?.scrollTop&&(u.value[K]=E?.scrollTop),t.nextTick(()=>{E?.scrollTo({top:D,behavior:"auto"})})},A=E=>{const K=e.existAddress;let D={};K.forEach(W=>{W&&W.selectedAddress&&(D=W),W.selectedAddress=!1}),E.selectedAddress=!0,b=E,n("selected",D,E,K),T()},V=()=>{y.value=[],i.value=0,C()},T=(E="self")=>{v.value=E=="cross"?"cross":"self",r.value=!1},w=()=>{v.value="mask"},M=()=>{const E={addressIdStr:"",addressStr:"",province:y.value[0],city:y.value[1],country:y.value[2],town:y.value[3]},K={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(D=>{const W=y.value[D];E.addressIdStr+=`${D?"_":""}${W&&W.id||0}`,E.addressStr+=W&&W.name||""}),K.data=E):K.data=b,V(),v.value=="self"?n("close",K):n("close-mask",{closeWay:v}),n("update:visible",!1)},P=()=>{const E=s.value;s.value=E=="exist"?"custom":"exist",V(),n("switch-module",{type:s.value})},$=(E,K)=>{B(K)};return t.watch(()=>e.visible,E=>{r.value=E}),t.watch(()=>r.value,E=>{E&&d()}),{showPopup:r,privateType:s,tabIndex:i,tabName:m,selectedRegion:y,switchModule:P,closeWay:v,close:M,getTabName:g,nextAreaList:B,regionLine:o,tabRegion:l,lineDistance:f,changeRegionTab:S,selectedExist:A,clickOverlay:w,handClose:T,handleElevatorItem:$,initCustomSelected:d,...t.toRefs(e),t:a,regionList:h,transformData:k,scrollDom:p}}}),vC={class:"fox-address"},bC={class:"fox-address__header"},kC={class:"fox-address__header__title"},SC={key:0,class:"fox-address__custom"},CC={class:"fox-address__region",ref:"tabRegion"},wC=["onClick"],NC={key:0,class:"active fox-address__region-item"},BC={key:0,class:"fox-address__detail"},AC={class:"fox-address__detail-list",ref:"scrollDom"},VC=["onClick"],TC={key:1,class:"fox-address__elevator-group"},$C={key:1,class:"fox-address__exist"},EC={class:"fox-address__exist-group"},xC={class:"fox-address__exist-group-list"},DC=["onClick"],IC={class:"fox-address__exist-item-info"},qC={key:0,class:"fox-address__exist-item-info-name"},MC={key:1,class:"fox-address__exist-item-info-phone"},PC={class:"fox-address__exist-item-info-bottom"},LC={class:"fox-address__exist-choose-btn"};function zC(e,n,a,o,l,r){const s=t.resolveComponent("Left"),i=t.resolveComponent("Close"),c=t.resolveComponent("Check"),m=t.resolveComponent("fox-elevator"),p=t.resolveComponent("Location2"),u=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(u,{position:"bottom","lock-scroll":e.lockScroll,onClose:e.close,onClickOverlay:e.clickOverlay,onOpen:n[3]||(n[3]=h=>e.closeWay="self"),visible:e.showPopup,"onUpdate:visible":n[4]||(n[4]=h=>e.showPopup=h),teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",vC,[t.createElementVNode("view",bC,[t.createElementVNode("view",{class:"fox-address__header-back",onClick:n[0]||(n[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",kC,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:n[1]||(n[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",SC,[t.createElementVNode("view",CC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,k)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",k==e.tabIndex?"active":""]),key:k,onClick:y=>e.changeRegionTab(h,k)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,k)),1)],10,wC))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",NC,[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",BC,[t.createElementVNode("ul",AC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,k)=>(t.openBlock(),t.createElementBlock("li",{key:k,class:t.normalizeClass(["fox-address__detail-item",e.selectedRegion[e.tabIndex]?.id==h.id?"active":""]),onClick:y=>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,VC))),128))],512)])):(t.openBlock(),t.createElementBlock("view",TC,[t.createVNode(m,{height:e.height,"index-list":e.transformData(e.regionList),onClickItem:e.handleElevatorItem},null,8,["height","index-list","onClickItem"])]))])):(t.openBlock(),t.createElementBlock("view",$C,[t.createElementVNode("div",EC,[t.createElementVNode("ul",xC,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,k)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:k,onClick:y=>e.selectedExist(h)},[h.selectedAddress?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"unselected-icon",{key:0},()=>[t.createVNode(p,{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",IC,[h.name?(t.openBlock(),t.createElementBlock("div",qC,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",MC,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",PC,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,DC))),128))])]),e.isShowCustomAddress?(t.openBlock(),t.createElementBlock("div",{key:0,class:"fox-address__exist-choose",onClick:n[2]||(n[2]=(...h)=>e.switchModule&&e.switchModule(...h))},[t.createElementVNode("div",LC,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 wa=ne(yC,[["render",zC]]),{componentName:FC,create:RC}=X("barrage"),OC=RC({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 n=new Date().getTime(),a=!!t.useSlots().default,o=t.computed(()=>({[FC]:!0}));let l=t.ref(document.createElement("div")),r=t.ref(document.createElement("div")),s=null;const i=t.ref(e.danmu),c=t.ref(e.rows),m=t.ref(e.top),p=t.ref(0),u=e.speeds,h=t.ref(0);t.onMounted(()=>{k(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(b(),p.value=0,y("hidden")):document.visibilityState==="visible"&&k()})}),t.onUnmounted(()=>{i.value=[],b()});const k=()=>{h.value=l.value.offsetWidth,a&&y("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${h.value}px`),f()},300)},y=g=>{let B=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const S=[];B&&Array.from(B).forEach(N=>{g=="init"?(N.style.opacity="0",S.push(N)):(N.classList="",N.style={})}),g=="init"&&(i.value=S)},b=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,g=>{e.danmu.length>0&&(i.value=[...g])});const v=g=>{const C=p.value%i.value.length;!e.loop&&p.value===i.value.length?i.value.splice(i.value.length,0,g):i.value.splice(C,0,g)},f=()=>{b(),s=setTimeout(()=>{d()},e.frequency)},d=()=>{const g=e.loop?p.value%i.value.length:p.value;let C=document.createElement("view");a&&typeof i.value[g]=="object"?(C=i.value[g],C?.classList?.add("fox-barrage__item")):(C.innerHTML=i.value[g],C.classList.add("fox-barrage__item"),r.value.appendChild(C)),t.nextTick(()=>{const B=C.offsetHeight;if(C?.classList?.add("move"),C.style.animationDuration=`${u}ms`,C.style.top=g%c.value*(B+m.value)+20+"px",C.style.opacity="1",!a){const S=C.offsetWidth;C.style.width=S+20+"px"}C.addEventListener("animationend",()=>{a?C.classList.remove("move"):r.value.removeChild(C)}),!(!e.loop&&p.value>=i.value.length-1)&&(p.value++,p.value>=i.value.length&&(p.value=0),C.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:o,danmuList:i,dmBody:l,dmContainer:r,add:v}}});function KC(e,n,a,o,l,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 Na=ne(OC,[["render",KC]]),{componentName:UC,create:HC,scope:jC}=X("signature"),WC=HC({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:{[Me.name]:Me},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:a}=re.useFoxI18n(jC),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),s=t.computed(()=>({[UC]:!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 d=document.createElement("canvas");return!!(d.getContext&&d.getContext("2d"))},m=()=>{l.value.addEventListener(i.events[0],p,!1)},p=d=>{d.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(i.events[1],u,!1),l.value.addEventListener(i.events[2],h,!1),l.value.addEventListener(i.events[3],k,!1)},u=d=>{d.preventDefault();let g=i.isSupportTouch?d.touches[0]:d;n("signing",g);let C=l.value.getBoundingClientRect(),B=g.clientX-C.left,S=g.clientY-C.top;i.ctx.lineTo(B,S),i.ctx.stroke()},h=d=>{d.preventDefault(),n("end"),l.value.removeEventListener(i.events[1],u,!1),l.value.removeEventListener(i.events[2],h,!1)},k=d=>{d.preventDefault(),l.value.removeEventListener(i.events[1],u,!1),l.value.removeEventListener(i.events[2],h,!1)},y=()=>{l.value.addEventListener(i.events[2],h,!1),i.ctx.clearRect(0,0,i.canvasWidth,i.canvasHeight),i.ctx.closePath(),n("clear")},b=()=>{f(l.value)},v=d=>{if(!d)return!0;var g=document.createElement("canvas");return g.width=d.width,g.height=d.height,d?.toDataURL()==g.toDataURL()},f=d=>{let g;switch(e.type){case"png":g=d.toDataURL("image/png");break;case"jpg":g=d.toDataURL("image/jpeg",.8);break}const C=v(d)?"请绘制签名":d,B=v(d)?"":g;n("confirm",C,B)};return t.onMounted(()=>{c()&&(i.ctx=l.value.getContext("2d"),i.canvasWidth=r.value.offsetWidth,i.canvasHeight=r.value.offsetHeight,m())}),{...o,...t.toRefs(i),canvas:l,wrap:r,isCanvasSupported:c,confirm:b,clear:y,classes:s}}}),YC={class:"fox-signature-inner",ref:"wrap"},XC=["height","width"],QC={key:0,class:"fox-signature-unsopport"};function GC(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(e.classes)},[t.createElementVNode("div",YC,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,XC),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",QC,t.toDisplayString(e.unSupportTpl),1))],512),t.createVNode(s,{class:"fox-signature-btn",type:"default",onClick:n[0]||(n[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:n[1]||(n[1]=i=>e.confirm())},{default:t.withCtx(()=>[t.createTextVNode(t.toDisplayString(e.confirmText),1)]),_:1})],2)}const Ba=ne(WC,[["render",GC]]),{componentName:ZC,create:JC,scope:_C}=X("time-select"),ew=JC({components:{[de.name]:de},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,n)=>{const{t:a}=re.useFoxI18n(_C),o=t.computed(()=>({[ZC]:!0})),l=t.computed(()=>({width:"100%",height:e.height})),r=t.computed(()=>e.currentKey),s=t.computed(()=>e.currentTime),i=()=>{n.emit("update:visible",!1),n.emit("select",s.value)};return t.provide("currentKey",r),t.provide("currentTime",s),{classes:o,popStyle:l,props:e,close:i,t:a}}}),tw={class:"fox-time-select__title"},nw={class:"fox-time-select__title__fixed"},ow={key:0},lw={class:"fox-time-select__content"},aw={class:"fox-time-select__content__pannel"},rw={class:"fox-time-select__content__detail"};function sw(e,n,a,o,l,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",tw,[t.createElementVNode("view",nw,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",ow,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",lw,[t.createElementVNode("view",aw,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",rw,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Aa=ne(ew,[["render",sw]]),{componentName:iw,create:cw}=X("time-pannel"),uw=cw({name:"timepannel",props:{name:{type:String,default:""},pannelKey:{type:[Number,String],default:0}},emits:["change"],setup:(e,n)=>{const a=t.inject("currentKey"),o=t.reactive({currentKey:a}),l=t.computed(()=>({[iw]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function dw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes),onClick:n[0]||(n[0]=s=>e.handlePannel(e.pannelKey))},t.toDisplayString(e.name),3)}const Va=ne(uw,[["render",dw]]),{componentName:fw,create:mw}=X("time-detail"),pw=mw({name:"timedetail",props:{times:{type:Array,default:()=>[]}},emits:["select"],setup:(e,n)=>{const a=t.inject("currentKey"),o=t.inject("currentTime"),l=t.reactive({currentKey:a,currentTime:o}),r=t.computed(()=>({[fw]:!0})),s=m=>{let p=l.currentTime.find(u=>u.key==l.currentKey);if(p)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":p.list.filter(u=>u===m).length>0}},i=t.computed(()=>e.times.find(m=>m.key==l.currentKey).list),c=m=>{n.emit("select",m)};return{classes:r,...t.toRefs(l),getClass:s,renderData:i,handleTime:c}}}),hw={class:"fox-time-detail__detail fox-time-detail__detail--moring"},gw={class:"fox-time-detail__detail__list"},yw=["onClick"];function vw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",hw,[t.createElementVNode("view",gw,[(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,yw))),128))])])],2)}const Ta=ne(pw,[["render",vw]]),{componentName:B2,create:bw,scope:kw}=X("sku-header"),Sw=bw({props:{goods:{type:Object,default:{}}},emits:[],components:{[Ge.name]:Ge},setup(e,{emit:n,slots:a}){const{t:o}=re.useFoxI18n(kw);return{getSlots:r=>a[r],t:o}}}),Cw={class:"fox-sku-header"},ww=["src"],Nw={class:"fox-sku-header-right"},Bw={key:3,class:"fox-sku-header-right-extra"};function Aw(e,n,a,o,l,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",Cw,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,ww),t.createElementVNode("view",Nw,[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",Bw,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const Vw=ne(Sw,[["render",Aw]]),{componentName:A2,create:Tw}=X("sku-select"),$w=Tw({props:{sku:{type:Array,default:()=>[]}},emits:["selectSku"],setup(e,{emit:n}){const a=t.ref([]);return t.watch(()=>e.sku,l=>{a.value=[].slice.call(l)},{deep:!0}),t.onMounted(()=>{e.sku.length>0&&(a.value=[].slice.call(e.sku))}),{skuInfo:a,changeSaleChild:(l,r,s,i)=>{l.checkFlag||l.disable||n("selectSku",{sku:l,skuIndex:r,parentSku:s,parentIndex:i})}}}}),Ew={class:"fox-sku-select"},xw={class:"fox-sku-select-item-title"},Dw={class:"fox-sku-select-item-skus"},Iw=["onClick"];function qw(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Ew,[(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",xw,t.toDisplayString(s.name),1),t.createElementVNode("view",Dw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.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:p=>e.changeSaleChild(c,m,s,i),key:c.name},t.toDisplayString(c.name),11,Iw))),128))])]))),128))])}const Mw=ne($w,[["render",qw]]),{componentName:V2,create:Pw}=X("sku-stepper"),Lw=Pw({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:{[Ze.name]:Ze},setup(e,{emit:n}){const a=t.ref(e.stepperMin);return t.onMounted(()=>{a.value=e.stepperMin}),{goodsCount:a,add:c=>{n("add",c)},reduce:c=>{n("reduce",c)},overlimit:(c,m)=>{n("overLimit",{action:m,value:parseInt(a.value+"")})},getExtraText:()=>{const{stepperExtraText:c}=e;return c&&at(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),zw={class:"fox-sku-stepper"},Fw={class:"fox-sku-stepper-title"},Rw=["innerHTML"],Ow={class:"fox-sku-stepper-count"};function Kw(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",zw,[t.createElementVNode("view",Fw,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,Rw),t.createElementVNode("view",Ow,[t.createVNode(s,{modelValue:e.goodsCount,"onUpdate:modelValue":n[0]||(n[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 Uw=ne(Lw,[["render",Kw]]),{componentName:T2,create:Hw}=X("sku-operate"),jw=Hw({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:a}){return{getBtnDesc:s=>({confirm:e.confirmText,cart:e.addCartText,buy:e.buyText})[s],clickBtnOperate:s=>{n("clickBtnOperate",s)},getSlots:s=>a[s]}}}),Ww={key:0,class:"fox-sku-operate"},Yw={key:0,class:"fox-sku-operate-desc"},Xw={key:1,class:"fox-sku-operate-btn"},Qw=["onClick"];function Gw(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",Ww,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",Yw,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",Xw,[(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,Qw))),128))]))])):t.createCommentVNode("",!0)}const Zw=ne(jw,[["render",Gw]]),{componentName:$2,create:Jw,scope:_w}=X("sku"),eN=Jw({props:{...ze,sku:{type:Array,default:[]},goods:{type:Object,default:{}},stepperMax:{type:[Number,String],default:99999},stepperMin:{type:[Number,String],default:1},btnOptions:{type:Array,default:()=>["confirm"]},stepperTitle:{type:String,default:""},stepperExtraText:{type:[Function,Boolean],default:!1},btnExtraText:{type:String,default:""},buyText:{type:String,default:""},addCartText:{type:String,default:""},confirmText:{type:String,default:""}},emits:["update:visible","select-sku","change-stepper","click-btn-operate","click-close-icon","click-overlay","close","reduce","add","over-limit"],components:{SkuHeader:Vw,SkuSelect:Mw,SkuStepper:Uw,SkuOperate:Zw,[de.name]:de},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=re.useFoxI18n(_w),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,v=>{r.value=v}),t.watch(()=>r.value,v=>{v==!1&&b()}),t.onMounted(()=>{});const i=v=>a[v],c=v=>{n("select-sku",v)},m=v=>{s.value=v,n("change-stepper",v)},p=v=>{n("add",v)},u=v=>{n("reduce",v)},h=v=>{n("over-limit",v)},k=v=>{n("click-btn-operate",{type:v,value:s.value})},y=v=>{v=="icon"&&n("click-close-icon"),v=="overlay"&&n("click-overlay"),v=="close"&&n("close"),r.value=!1},b=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:y,selectSku:c,changeStepper:m,stepperOverLimit:h,clickBtnOperate:k,add:p,reduce:u,getSlots:i,...l}}}),tN={class:"fox-sku"},nN={class:"fox-sku-content"};function oN(e,n,a,o,l,r){const s=t.resolveComponent("sku-header"),i=t.resolveComponent("SkuSelect"),c=t.resolveComponent("sku-stepper"),m=t.resolveComponent("sku-operate"),p=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(p,{position:"bottom",closeable:"",round:"",visible:e.showPopup,"onUpdate:visible":n[0]||(n[0]=u=>e.showPopup=u),onClickCloseIcon:n[1]||(n[1]=u=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=u=>e.closePopup("overlay")),onClose:n[3]||(n[3]=u=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",tN,[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",nN,[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(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","teleportDisable","teleport"])}const $a=ne(eN,[["render",oN]]),{create:lN}=X("card"),aN=lN({components:{[Ge.name]:Ge,[Gt.name]:Gt},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:n,slots:a}){return{isHaveSlot:l=>a[l]}}}),rN={class:"fox-card"},sN={class:"fox-card__left"},iN=["src"],cN={class:"fox-card__right"},uN={class:"fox-card__right__title"},dN={key:0,class:"fox-card__right__price"},fN={class:"fox-card__right__other"},mN={class:"fox-card__right__shop"},pN={class:"fox-card__right__shop__name"};function hN(e,n,a,o,l,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",rN,[t.createElementVNode("div",sN,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,iN)]),t.createElementVNode("div",cN,[t.createElementVNode("div",uN,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",dN,[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",fN,[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",mN,[t.createElementVNode("div",pN,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Ea=ne(aN,[["render",hN]]),{create:gN,scope:yN}=X("ecard"),vN=gN({components:{[Ze.name]:Ze},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:n}){const{t:a}=re.useFoxI18n(yN),o=t.ref(null),l=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,k)=>{o.value=k,s.value=e.cardAmountMin,l.value=h.price,n("change",h),n("update:modelValue",h.price)},m=h=>{let y=h.target.value.replace(/[^\d]/g,"");r.value=y,l.value=y,Number(y)>e.cardAmountMax&&(r.value=e.cardAmountMax,l.value=e.cardAmountMax),Number(y)<e.cardAmountMin&&(r.value=e.cardAmountMin,l.value=e.cardAmountMin),n("inputChange",Number(r.value)),n("update:modelValue",Number(r.value))},p=()=>{o.value="input",s.value=e.cardAmountMin,l.value=r.value,n("update:modelValue",r.value),n("inputClick")},u=h=>{s.value=h,n("changeStep",s.value,l.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:u,change:m,inputClick:p,stepValue:s,currentIndex:o,inputValue:r,money:i,t:a}}}),bN={class:"fox-ecard"},kN={class:"fox-ecard__title"},SN={class:"fox-ecard__list"},CN=["onClick"],wN={class:"fox-ecard__list__input--con"},NN=["placeholder"],BN={class:"fox-ecard__list__step"};function AN(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",bN,[t.createElementVNode("view",kN,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",SN,[(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:m=>e.handleClick(i,c)},t.toDisplayString(i.price),11,CN))),128)),t.createElementVNode("view",{class:t.normalizeClass(["fox-ecard__list__input",e.currentIndex=="input"?"active":""]),onClick:n[2]||(n[2]=(...i)=>e.inputClick&&e.inputClick(...i))},[t.createElementVNode("view",null,t.toDisplayString(e.otherValueText||e.t("otherValueText")),1),t.createElementVNode("view",wN,[t.withDirectives(t.createElementVNode("input",{class:"fox-ecard__list__input--input",type:"text","onUpdate:modelValue":n[0]||(n[0]=i=>e.inputValue=i),onInput:n[1]||(n[1]=(...i)=>e.change&&e.change(...i)),placeholder:e.placeholder||e.t("placeholder")},null,40,NN),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",BN,[t.createElementVNode("view",null,t.toDisplayString(e.suffix)+t.toDisplayString(e.money),1),t.createVNode(s,{modelValue:e.stepValue,"onUpdate:modelValue":n[3]||(n[3]=i=>e.stepValue=i),min:e.cardBuyMin,max:e.cardBuyMax,onChange:e.changeStep},null,8,["modelValue","min","max","onChange"])])])])}const xa=ne(vN,[["render",AN]]),{create:VN,scope:TN}=X("address-list-item"),$N=VN({components:{Del:oe.Del,Edit:oe.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(TN);return{delClick:s=>{n("delIcon",s,e.item),s.stopPropagation()},editClick:s=>{n("editIcon",s,e.item),s.stopPropagation()},contentsClick:s=>{n("clickItem",s,e.item),s.stopPropagation()},t:a}}}),EN={class:"fox-address-list-item__info"},xN={class:"fox-address-list-item__info-contact"},DN={class:"fox-address-list-item__info-contact-name"},IN={class:"fox-address-list-item__info-contact-tel"},qN={key:0,class:"fox-address-list-item__info-contact-default"},MN={class:"fox-address-list-item__info-handle"},PN={class:"fox-address-list-item__addr"};function LN(e,n,a,o,l,r){const s=t.resolveComponent("Del"),i=t.resolveComponent("Edit");return t.openBlock(),t.createElementBlock("div",{class:"fox-address-list-item",onClick:n[0]||(n[0]=(...c)=>e.contentsClick&&e.contentsClick(...c))},[t.createElementVNode("div",EN,[t.createElementVNode("div",xN,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",DN,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",IN,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",qN,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",MN,[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",PN,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const Vr=ne($N,[["render",LN]]),{create:zN}=X("address-list-general"),FN=zN({props:{item:{type:Object,default:{}},longPress:{type:Boolean,default:!1},swipeEdition:{type:Boolean,default:!1}},emits:["delIcon","editIcon","clickItem","longDown","longCopy","longSet","longDel","swipeDel"],components:{ItemContents:Vr,[Me.name]:Me,[Yt.name]:Yt},setup(e,{emit:n}){const a=()=>t.h(Vr,{item:e.item,onDelIcon(B){s(B)},onEditIcon(B){i(B)},onClickItem(B){c(B)}});let o=null;const l=t.ref(!1),r=t.ref(!1),s=B=>{n("delIcon",B,e.item),B.stopPropagation()},i=B=>{n("editIcon",B,e.item),B.stopPropagation()},c=B=>{l.value||(n("clickItem",B,e.item),B.stopPropagation())},m=B=>{n("longDel",B,e.item),B.stopPropagation()},p=B=>{o=0,r.value=!0,n("longDown",B,e.item)};return{renderCompontent:a,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:m,holddownstart:B=>{o=setTimeout(()=>{p(B)},300)},holddownmove:()=>{clearTimeout(o)},holddownend:()=>{clearTimeout(o)},copyCLick:B=>{n("longCopy",B,e.item),B.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:B=>{n("longSet",B,e.item),B.stopPropagation()},maskClick:B=>{o!=0&&(r.value=!1),B.stopPropagation(),B.preventDefault()},swipeDelClick:B=>{n("swipeDel",B,e.item),B.stopPropagation()},swipestart:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),RN={key:0,class:"fox-address-list-general"},ON={class:"fox-address-list-swipe"};function KN(e,n,a,o,l,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",ON,[(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",RN,[(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:n[3]||(n[3]=(...c)=>e.maskClick&&e.maskClick(...c))},[t.renderSlot(e.$slots,"longpress-all",{},()=>[t.createElementVNode("div",{class:"fox-address-list-general__mask-copy",onClick:n[0]||(n[0]=(...c)=>e.copyCLick&&e.copyCLick(...c))},"复制地址"),t.createElementVNode("div",{class:"fox-address-list-general__mask-set",onClick:n[1]||(n[1]=(...c)=>e.setDefault&&e.setDefault(...c))},"设置默认"),t.createElementVNode("div",{class:"fox-address-list-general__mask-del",onClick:n[2]||(n[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:n[4]||(n[4]=(...c)=>e.hideMaskClick&&e.hideMaskClick(...c))})):t.createCommentVNode("",!0)]))}const UN=ne(FN,[["render",KN]]),{componentName:HN,create:jN,scope:WN}=X("address-list"),YN=jN({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:UN,[Me.name]:Me},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(WN),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[HN]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(b=>Hr(l,b,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(b,v)=>{n("delIcon",b,v),b.stopPropagation()},c=(b,v)=>{n("editIcon",b,v),b.stopPropagation()},m=(b,v)=>{n("clickItem",b,v),b.stopPropagation()},p=(b,v)=>{n("longCopy",b,v),b.stopPropagation()},u=(b,v)=>{n("longSet",b,v),b.stopPropagation()},h=(b,v)=>{n("longDel",b,v),b.stopPropagation()},k=(b,v)=>{n("swipeDel",b,v),b.stopPropagation()},y=b=>{n("add",b),b.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:m,clickLongCopy:p,clickLongSet:u,clickLongDel:h,clickSwipeDel:k,addAddress:y,dataArray:o,t:a}}});function XN(e,n,a,o,l,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,m)=>(t.openBlock(),t.createBlock(s,{key:m,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:n[0]||(n[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 Da=ne(YN,[["render",XN]]),{componentName:E2,create:QN}=X("category"),GN=QN({props:{type:{type:String,default:"classify"},category:{type:Array,default:[]}},setup(e,{emit:n,slots:a}){const o=t.ref(0),l=t.ref(!1);return{getChildList:s=>{o.value=s,n("change",s)},checkIndex:o,categoryLeft:l}}}),ZN={class:"fox-category"},JN={class:"fox-category__cateList"},_N={key:0},eB=["onClick"];function tB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",ZN,[t.createElementVNode("div",JN,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",_N,[(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,eB)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Ia=ne(GN,[["render",tB]]),{componentName:x2,create:nB}=X("category-pane"),oB=nB({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),lB={class:"fox-category-pane"},aB={key:0,class:"fox-category-pane__cateListRight"},rB={class:"fox-category-pane__childTitle"},sB={key:0,class:"fox-category-pane__childItemList"},iB=["onClick"],cB=["src"],uB={class:"fox-category-pane__skuImg"},dB={key:1,class:"fox-category-pane__cateListRight"},fB={class:"fox-category-pane__childTitle"},mB={key:0,class:"fox-category-pane__childItemList"},pB=["onClick"],hB={class:"fox-category-pane__skuName"},gB={key:2,class:"fox-category-pane__selfItemList"},yB=["onClick"];function vB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",lB,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",aB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",rB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",sB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,m)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:m,onClick:p=>e.onChange(c)},[t.createElementVNode("img",{class:"fox-category-pane__childImg",src:c.backImg},null,8,cB),t.createElementVNode("div",uB,t.toDisplayString(c?.catName),1)],8,iB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",dB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",fB,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",mB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.childCateList,(c,m)=>(t.openBlock(),t.createElementBlock("div",{class:"fox-category-pane__childItem",key:m,onClick:p=>e.onChange(c)},[t.createElementVNode("div",hB,t.toDisplayString(c?.catName),1)],8,pB))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",gB,[(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,yB))),128))])):t.createCommentVNode("",!0)])}const qa=ne(oB,[["render",vB]]),{componentName:D2,create:bB}=X("comment-header"),kB=bB({components:{[kt.name]:kt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),SB={class:"fox-comment-header__user"},CB={class:"fox-comment-header__user-avter"},wB=["src"],NB={class:"fox-comment-header__user-score"},BB={key:0,class:"fox-comment-header__time"};function AB(e,n,a,o,l,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:n[1]||(n[1]=(...i)=>e.handleClick&&e.handleClick(...i))},[t.createElementVNode("view",SB,[t.createElementVNode("view",CB,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,wB)):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",NB,[t.createVNode(s,{modelValue:e.info.score,"onUpdate:modelValue":n[0]||(n[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",BB,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":n[2]||(n[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 VB=ne(kB,[["render",AB]]),{componentName:I2,create:TB}=X("comment-images"),$B=TB({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:oe.Right},emits:["click","clickImages"],setup(e,{emit:n}){const a=t.ref(!1),o=t.ref(1),l=t.ref([]);return t.watch(()=>[e.videos,e.images],s=>{s[0].length>0&&s[0].forEach(i=>{i.type="video"}),l.value=s[0].concat(s[1])},{deep:!0}),t.onMounted(()=>{e.videos.length>0&&e.videos.forEach(s=>{s.type="video"}),l.value=e.videos.concat(e.images)}),{isShowImage:a,initIndex:o,showImages:(s,i)=>{const{videos:c,images:m}=e,p=s=="img"?i-c.length:i;n("clickImages",{type:s,index:p,value:s=="img"?m[p]:c[p]})},totalImages:l}}}),EB=["onClick"],xB=["src"],DB=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),IB=["onClick"],qB=["src"],MB={key:0,class:"fox-comment-images__mask"};function PB(e,n,a,o,l,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:m=>e.showImages("video",c)},[t.createElementVNode("img",{src:i.mainUrl},null,8,xB),DB],8,EB))),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:m=>e.showImages("img",c+e.videos.length)},[t.createElementVNode("img",{src:i.smallImgUrl?i.smallImgUrl:i.imgUrl},null,8,qB),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",MB,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,IB)):t.createCommentVNode("",!0)],64))),128))],2)}const LB=ne($B,[["render",PB]]),{componentName:q2,create:zB,scope:FB}=X("comment-bottom"),RB=zB({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:oe.Fabulous,Comment:oe.Comment,MoreX:oe.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(FB),o=t.ref(!1),l=t.ref([]);return t.onMounted(()=>{const i=["replay","like","more"];e.operation&&e.operation.forEach(c=>{i.includes(c)&&l.value.push(c)})}),{showPopver:o,operate:i=>{i=="more"&&(o.value=!o.value),n("clickOperate",i)},mergeOp:l,handleClick:()=>{n("handleClick")},t:a}}}),OB={class:"fox-comment-bottom"},KB={key:0},UB={class:"fox-comment-bottom__cpx"},HB=["onClick"];function jB(e,n,a,o,l,r){const s=t.resolveComponent("Fabulous"),i=t.resolveComponent("Comment"),c=t.resolveComponent("MoreX");return t.openBlock(),t.createElementBlock("view",OB,[t.createElementVNode("view",{onClick:n[0]||(n[0]=(...m)=>e.handleClick&&e.handleClick(...m)),class:"fox-comment-bottom__lable"},[e.type!="complex"?(t.openBlock(),t.createElementBlock("span",KB,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",UB,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.mergeOp,(m,p)=>(t.openBlock(),t.createElementBlock("view",{key:p,class:t.normalizeClass(["fox-comment-bottom__cpx-item",`fox-comment-bottom__cpx-item--${m}`]),onClick:u=>e.operate(m)},[m!="more"?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createElementVNode("span",null,t.toDisplayString(e.info[m]),1),m=="like"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))],64)):t.createCommentVNode("",!0),m=="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:n[1]||(n[1]=u=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,HB))),128))])])}const WB=ne(RB,[["render",jB]]),{componentName:YB,create:XB,scope:QB}=X("comment"),GB=XB({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:VB,CommentImages:LB,CommentBottom:WB,Right:oe.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(QB),o=t.computed(()=>({[YB]:!0})),l=t.computed(()=>e.ellipsis?e.ellipsis:e.headerType=="complex"?6:2);return{classes:o,conEllipsis:l,clickOperate:c=>{n("clickOperate",c)},handleClick:()=>{n("click",e.info)},clickImages:c=>{n("clickImages",c)},t:a}}}),ZB=["innerHTML"],JB={class:"fox-comment__follow-title"},_B={class:"fox-comment__follow-com"},e2={key:0,class:"fox-comment__follow-img"};function t2(e,n,a,o,l,r){const s=t.resolveComponent("comment-header"),i=t.resolveComponent("comment-images"),c=t.resolveComponent("Right"),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(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:n[0]||(n[0]=(...p)=>e.handleClick&&e.handleClick(...p)),innerHTML:e.info.content},null,12,ZB),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:n[1]||(n[1]=(...p)=>e.handleClick&&e.handleClick(...p))},[t.createElementVNode("view",JB,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",_B,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",e2,[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(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 Ma=ne(GB,[["render",t2]]),n2=[Ho,Wo,Yo,Xo,Qo,Se,Go,Zo,Jo,_o,el,zn,ol,ll,rl,sl,jn,Wn,il,Yn,Xn,cl,ul,At,dl,fl,Jn,ml,pl,Fn,Rn,On,hl,gl,yl,ot,vl,bl,kl,Sl,Cl,wl,Me,Nl,Bl,rt,de,Al,Vl,Tl,$l,Ut,El,xl,Dl,Il,ql,Ml,Pl,Ll,zl,Ht,Fl,Rl,Ol,Kl,Ul,Hl,jl,jt,Zn,Kn,Hn,Un,Ze,kt,bt,Wl,Yl,Xl,Yt,Ql,Gl,Zl,Xt,Gn,Jl,ea,Qn,Vt,na,oa,Qt,la,aa,Wt,ra,sa,ia,St,ca,ua,Ct,wt,Ge,_n,da,fa,ma,Gt,Zt,pa,ha,ga,ya,va,ba,ka,Sa,Ca,wa,Na,Ba,Aa,Va,Ta,$a,Ea,xa,Da,Ia,qa,Ma],o2=new ki(n2,"4.0.0");exports.ActionSheet=Ql;exports.ActionsheetItem=ml;exports.ActionsheetPane=Jn;exports.Address=wa;exports.AddressList=Da;exports.Animate=ba;exports.Audio=na;exports.AudioOperate=oa;exports.Avatar=Qt;exports.AvatarGroup=la;exports.BackTop=Gl;exports.Badge=ma;exports.Barrage=Na;exports.Broadcast=Oo;exports.BroadcastKey=ke;exports.Button=Me;exports.Calendar=Hn;exports.CalendarItem=sl;exports.Card=Ea;exports.Cascader=Kn;exports.CascaderItem=ll;exports.Category=Ia;exports.CategoryPane=qa;exports.Cell=Nl;exports.CellGroup=Bl;exports.Checkbox=Yn;exports.CheckboxGroup=Xn;exports.CheckboxItem=cl;exports.CircleProgress=ra;exports.Col=Tl;exports.Collapse=ha;exports.CollapseItem=ga;exports.Comment=Ma;exports.Content=Xo;exports.CountDown=fa;exports.CountUp=da;exports.DataItemsKey=dt;exports.DateItem=rl;exports.DatePicker=Un;exports.DateUtils=le;exports.Dialog=Xt;exports.Divider=El;exports.Domain=An;exports.DomainKey=Ie;exports.DomainProvider=Cl;exports.Drag=Zl;exports.Dropdown=bl;exports.Ecard=xa;exports.Elevator=Ht;exports.Ellipsis=va;exports.Empty=ia;exports.FixedNav=ql;exports.FloatingButton=gl;exports.FooterBar=Yo;exports.FoxActionSheet=Ql;exports.FoxActionsheetItem=ml;exports.FoxActionsheetPane=Jn;exports.FoxAddress=wa;exports.FoxAddressList=Da;exports.FoxAnimate=ba;exports.FoxAudio=na;exports.FoxAudioOperate=oa;exports.FoxAvatar=Qt;exports.FoxAvatarGroup=la;exports.FoxBackTop=Gl;exports.FoxBadge=ma;exports.FoxBarrage=Na;exports.FoxButton=Me;exports.FoxCalendar=Hn;exports.FoxCalendarItem=sl;exports.FoxCard=Ea;exports.FoxCascader=Kn;exports.FoxCascaderItem=ll;exports.FoxCategory=Ia;exports.FoxCategoryPane=qa;exports.FoxCell=Nl;exports.FoxCellGroup=Bl;exports.FoxCheckbox=Yn;exports.FoxCheckboxGroup=Xn;exports.FoxCheckboxItem=cl;exports.FoxCircleProgress=ra;exports.FoxCol=Tl;exports.FoxCollapse=ha;exports.FoxCollapseItem=ga;exports.FoxComment=Ma;exports.FoxContent=Xo;exports.FoxCountDown=fa;exports.FoxCountUp=da;exports.FoxDateItem=rl;exports.FoxDatePicker=Un;exports.FoxDialog=Xt;exports.FoxDivider=El;exports.FoxDomainProvider=Cl;exports.FoxDrag=Zl;exports.FoxDropdown=bl;exports.FoxEcard=xa;exports.FoxElevator=Ht;exports.FoxEllipsis=va;exports.FoxEmpty=ia;exports.FoxFixedNav=ql;exports.FoxFloatingButton=gl;exports.FoxFooterBar=Yo;exports.FoxGrid=xl;exports.FoxGridItem=Dl;exports.FoxGroup=Qo;exports.FoxHeaderBar=Wo;exports.FoxHintText=At;exports.FoxImage=Al;exports.FoxImagePreview=_n;exports.FoxIndicator=Kl;exports.FoxInfiniteLoading=Gn;exports.FoxInputItem=Jo;exports.FoxInputNumber=Ze;exports.FoxInputnumberItem=pl;exports.FoxItem=Se;exports.FoxLayout=Vl;exports.FoxLinkItem=dl;exports.FoxList=aa;exports.FoxMapping=Sl;exports.FoxMenu=Ml;exports.FoxMenuItem=Pl;exports.FoxMessageBox=ot;exports.FoxMoneyItem=_o;exports.FoxMoreButton=yl;exports.FoxNavbar=Il;exports.FoxNoticeBar=sa;exports.FoxNotify=ea;exports.FoxNumberKeyboard=Xl;exports.FoxOverLay=rt;exports.FoxPage=Ho;exports.FoxPagination=Fl;exports.FoxPicker=bt;exports.FoxPickerItem=ol;exports.FoxPopover=Zt;exports.FoxPopup=de;exports.FoxPopupWrapper=vl;exports.FoxPrice=Ge;exports.FoxProgress=Wt;exports.FoxPullRefresh=Jl;exports.FoxRadio=jn;exports.FoxRadioGroup=Wn;exports.FoxRadioItem=il;exports.FoxRange=jt;exports.FoxRate=kt;exports.FoxRateItem=fl;exports.FoxRollingProvider=wl;exports.FoxRow=$l;exports.FoxRowItem=Go;exports.FoxSearchBar=Zn;exports.FoxShortPassword=Wl;exports.FoxSideNavBar=Ul;exports.FoxSideNavBarItem=Hl;exports.FoxSignature=Ba;exports.FoxSkeleton=pa;exports.FoxSku=$a;exports.FoxSlotItem=Zo;exports.FoxStep=ua;exports.FoxSteps=ca;exports.FoxStepsBar=hl;exports.FoxSticky=Ut;exports.FoxSubSideNavBar=jl;exports.FoxSwipe=Yt;exports.FoxSwiper=Ct;exports.FoxSwiperItem=wt;exports.FoxSwitch=Qn;exports.FoxSwitchItem=ul;exports.FoxTabPane=Ol;exports.FoxTabbar=Ll;exports.FoxTabbarItem=zl;exports.FoxTable=ya;exports.FoxTabs=Rl;exports.FoxTabsBar=Fn;exports.FoxTabsContainer=Rn;exports.FoxTabsPane=On;exports.FoxTag=Gt;exports.FoxText=kl;exports.FoxTextarea=zn;exports.FoxTextareaItem=el;exports.FoxTimeDetail=Ta;exports.FoxTimePannel=Va;exports.FoxTimeSelect=Aa;exports.FoxToast=Vt;exports.FoxTour=Ca;exports.FoxTrendArrow=Sa;exports.FoxUploader=Yl;exports.FoxVideo=St;exports.FoxWaterMark=ka;exports.Grid=xl;exports.GridItem=Dl;exports.Group=Qo;exports.HeaderBar=Wo;exports.HintText=At;exports.Image=Al;exports.ImagePreview=_n;exports.Indicator=Kl;exports.InfiniteLoading=Gn;exports.InputItem=Jo;exports.InputNumber=Ze;exports.InputnumberItem=pl;exports.Item=Se;exports.Layout=Vl;exports.LinkItem=dl;exports.List=aa;exports.Mapping=Sl;exports.Menu=Ml;exports.MenuItem=Pl;exports.MessageBox=ot;exports.MoneyItem=_o;exports.MoreButton=yl;exports.Navbar=Il;exports.NoticeBar=sa;exports.Notify=ea;exports.NumberKeyboard=Xl;exports.OverLay=rt;exports.Page=Ho;exports.Pagination=Fl;exports.Picker=bt;exports.PickerItem=ol;exports.Popover=Zt;exports.Popup=de;exports.PopupWrapper=vl;exports.Price=Ge;exports.PriorityPolicy=gn;exports.Progress=Wt;exports.PullRefresh=Jl;exports.Radio=jn;exports.RadioGroup=Wn;exports.RadioItem=il;exports.Range=jt;exports.Rate=kt;exports.RateItem=fl;exports.RollingProvider=wl;exports.Row=$l;exports.RowItem=Go;exports.SearchBar=Zn;exports.ShortPassword=Wl;exports.SideNavBar=Ul;exports.SideNavBarItem=Hl;exports.Signature=Ba;exports.Skeleton=pa;exports.Sku=$a;exports.SlotItem=Zo;exports.Step=ua;exports.Steps=ca;exports.StepsBar=hl;exports.Sticky=Ut;exports.SubSideNavBar=jl;exports.Swipe=Yt;exports.Swiper=Ct;exports.SwiperItem=wt;exports.Switch=Qn;exports.SwitchItem=ul;exports.TabPane=Ol;exports.Tabbar=Ll;exports.TabbarItem=zl;exports.Table=ya;exports.Tabs=Rl;exports.TabsBar=Fn;exports.TabsContainer=Rn;exports.TabsPane=On;exports.Tag=Gt;exports.Text=kl;exports.Textarea=zn;exports.TextareaItem=el;exports.TimeDetail=Ta;exports.TimePannel=Va;exports.TimeSelect=Aa;exports.Toast=Vt;exports.Tour=Ca;exports.TrendArrow=Sa;exports.UniqueID=Ln;exports.Uploader=Yl;exports.ValidateSchema=Qr;exports.ValidateSchemaKey=Ke;exports.Video=St;exports.WaterMark=ka;exports.cancelRaf=Tr;exports.clamp=Oe;exports.clearNonNumber=So;exports.clone=ko;exports.compareTo=vo;exports.createBroadcast=Nn;exports.createValidateSchema=Bn;exports.debounce=yt;exports.debounceRef=ui;exports.decimalLength=Ur;exports.default=o2;exports.defineBroadcast=ti;exports.defineConfigDomain=Zr;exports.defineDataItem=_r;exports.defineDomain=Uo;exports.defineItem=Ne;exports.definePageState=es;exports.defineSimpleItem=Bt;exports.deleteGlobalValidator=ri;exports.disabledProperty=we;exports.divide=Ro;exports.excludeProps=Nt;exports.extend=lt;exports.floatData=Hr;exports.getGlobalValidateCheckEvents=Wr;exports.getGlobalValidateResetEvents=Xr;exports.getPageContentAreaHeight=pn;exports.getPageContentAreaWidth=hn;exports.getPageFooterAreaHeight=$n;exports.getPageHeaderAreaHeight=Tn;exports.getRootDomain=pt;exports.hasSymbol=Pr;exports.includeProps=ve;exports.indexOf=_s;exports.installRules=Jr;exports.integerLength=Kr;exports.isArray=Sn;exports.isArrayLike=zr;exports.isBrowser=it;exports.isDate=Ue;exports.isESModule=Xs;exports.isEmptyString=ue;exports.isEqual=qe;exports.isFunction=dn;exports.isHidden=wn;exports.isInnerPage=mi;exports.isMap=js;exports.isNil=Ir;exports.isNumberString=Or;exports.isObject=Ae;exports.isPlainObject=bo;exports.isPromise=gt;exports.isRegExp=Rr;exports.isSet=Ws;exports.isString=qr;exports.isSubPage=pi;exports.isSymbol=Ys;exports.isTouch=tl;exports.isWindow=Lr;exports.lastIndexOf=ei;exports.makeArray=Js;exports.merge=Fr;exports.multiply=Er;exports.negate=xr;exports.nextTick=Gs;exports.numberFormat=kn;exports.objectToString=Mr;exports.once=di;exports.overrideGlobalValidateHandler=li;exports.padZero=et;exports.preventDefault=Co;exports.property=Be;exports.raf=Re;exports.readonlyProperty=Te;exports.setGlobalValidateCheckEvents=si;exports.setGlobalValidateHandler=oi;exports.setGlobalValidateMessages=ci;exports.setGlobalValidateResetEvents=ii;exports.setGlobalValidator=ai;exports.throttle=mn;exports.toBoolean=pe;exports.toNumber=fe;exports.toPadding=Le;exports.toPx=ie;exports.toPxDesc=he;exports.toTypeString=Cn;exports.toValue=xe;exports.tryTimes=Ko;exports.typeOf=at;exports.unNumberFormat=Dr;exports.updatePageState=wo;exports.useBroadcast=Mt;exports.useDomain=He;exports.useExpose=$e;exports.useInnerSize=En;exports.usePageState=Vn;exports.usePosition=cs;exports.useRawTouch=nl;exports.useRect=Ve;exports.useSize=jo;exports.useTouch=_e;exports.valueLength=ye;