@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 +4 -4
- package/dist/index.esm.js +4581 -4563
- package/dist/index.umd.js +4 -4
- package/dist/locale/index.esm.js +1 -1
- package/dist/locale/index.umd.js +1 -1
- package/dist/style.esm.js +1 -1
- package/dist/types/index.d.ts +15 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function(N,t){typeof exports=="object"&&typeof module<"u"?t(exports,require("vue"),require("@fox-js/validator"),require("@fox-js/icons-vue"),require("@fox-js/i18n")):typeof define=="function"&&define.amd?define(["exports","vue","@fox-js/validator","@fox-js/icons-vue","@fox-js/i18n"],t):(N=typeof globalThis<"u"?globalThis:N||self,t(N.FoxUI={},N.Vue,N.FoxValidator,N.FoxIconsVue,N.FoxI18n))})(this,function(N,t,tt,le,re){"use strict";/*!
|
|
2
|
-
* @fox-js/foxui-base v4.0.0
|
|
3
|
-
*/const
|
|
2
|
+
* @fox-js/foxui-base v4.0.0 Thu May 09 2024 11:40:02 GMT+0800 (中国标准时间)
|
|
3
|
+
*/const _t=window,Os=typeof window<"u";function Ks(){return typeof _t<"u"?_t.requestAnimationFrame||_t.webkitRequestAnimationFrame||function(e){_t.setTimeout(e,1e3/60)}:function(e){setTimeout(e,1e3/60)}}function La(e){Os?cancelAnimationFrame(e):clearTimeout(e)}const Xe=Ks();/*!
|
|
4
4
|
* @fox-js/big-decimal v4.0.1-6 Thu Aug 17 2023 21:31:19 GMT+0800 (中国标准时间)
|
|
5
|
-
*/function _t(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=Ne(e),n=Ne(n),[e,n]=eo(Ne(e),Ne(n)),a==1&&(o==1?e=_n(e):n=_n(n));let l=Pa(e,n);return a?a==2?"-"+Ne(l):e.length<l.length?Ne(l.substring(1)):"-"+Ne(_n(l)):Ne(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 Pa(n,r)}function Ne(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 eo(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 Pa(e,n){[e,n]=eo(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 Se=(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))(Se||{});function Vt(e,n=0,a=Se.HALF_EVEN){if(a===Se.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=Vt(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,La(l[1],r,o,a)?(o?"-":"")+to(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&&La(i,s,o,a)&&(s=to(s),s.length>n)?(o?"-":"")+to(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function La(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===Se.DOWN||!a&&o===Se.FLOOR||a&&o===Se.CEILING)return!1;if(o===Se.UP||a&&o===Se.FLOOR||!a&&o===Se.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 Se.HALF_DOWN:return!1;case Se.HALF_UP:return!0;case Se.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function to(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 no(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=Et(e),n=Et(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=Et(e.replace(".","")),n=Et(n.replace(".","")),e.length<n.length){let d=e;e=n,n=d}if(n=="0")return"0";let s=n.length,i=0,c=[],m=s-1,p="";for(let d=0;d<s;d++)c[d]=e.length-1;for(let d=0;d<2*e.length;d++){let h=0;for(let 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=Et(Os(p,r)),a==1&&(p="-"+p),p}function Os(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 Et(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 oo(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=Ne(n.replace(".","")),l>=0){let m=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(m==-1)e=Ne(e+new Array(l+1).join("0"));else if(l>m)e=e.replace(".",""),e=Ne(e+new Array(l-m+1).join("0"));else if(l<m){e=e.replace(".","");let p=e.length-m+l;e=Ne(e.substring(0,p)+"."+e.substring(p))}else l==m&&(e=Ne(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=_t(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?"-":"")+Ne(Vt(i,a-2))}function lo(e,n){return e=e.toString(),n=n.toString(),n=ao(n),_t(e,n)}function ao(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function za(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Fa(e),Fa(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=lo(e,no(n,Vt(oo(e,n),0,Se.FLOOR)));return a+o}function Fa(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ra(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]=eo(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 ie{value;static RoundingModes=Se;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=Ne(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+Ne(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=ie.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=ie.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 ie.getPrettyValue(this.value,n,a)}static round(n,a=0,o=Se.HALF_EVEN){if(n=ie.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return Vt(n,a,o)}round(n=0,a=Se.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ie(Vt(this.value,n,a))}static floor(n){return n=ie.validate(n),n.indexOf(".")===-1?n:ie.round(n,0,Se.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ie(this.value):new ie(this.value).round(0,Se.FLOOR)}static ceil(n){return n=ie.validate(n),n.indexOf(".")===-1?n:ie.round(n,0,Se.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ie(this.value):new ie(this.value).round(0,Se.CEILING)}static add(n,a){return n=ie.validate(n),a=ie.validate(a),_t(n,a)}add(n){return new ie(_t(this.value,n.getValue()))}static subtract(n,a){return n=ie.validate(n),a=ie.validate(a),lo(n,a)}subtract(n){return new ie(lo(this.value,n.getValue()))}static multiply(n,a){return n=ie.validate(n),a=ie.validate(a),no(n,a)}multiply(n){return new ie(no(this.value,n.getValue()))}static divide(n,a,o){return n=ie.validate(n),a=ie.validate(a),oo(n,a,o)}divide(n,a){return new ie(oo(this.value,n.getValue(),a))}static modulus(n,a){return n=ie.validate(n),a=ie.validate(a),za(n,a)}modulus(n){return new ie(za(this.value,n.getValue()))}static compareTo(n,a){return n=ie.validate(n),a=ie.validate(a),Ra(n,a)}compareTo(n){return Ra(this.value,n.getValue())}static negate(n){return n=ie.validate(n),ao(n)}negate(){return new ie(ao(this.value))}}function Oa(e,n){return ie.multiply(`${e}`,`${n}`)}function ro(e,n,a=8){return ie.divide(`${e}`,`${n}`,a)}function so(e,n){return e=`${e}`,n=`${n}`,ie.compareTo(e,n)}function Ka(e){return ie.negate(e)}function en(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 d="",h=i.split("").reverse();for(let k=0;k<h.length;k++)d+=h[k]+((k+1)%o==0&&k+1!=h.length?l:"");c.length==0?p=`${s}${d.split("").reverse().join("")}`:p=`${s}${d.split("").reverse().join("")}.${c}`}else c.length==0?p=`${s}${i}`:p=`${s}${i}.${c}`;return p}function Ua(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const nt=typeof window<"u",Oe=Xe;function Ha(e){return e==null}const tn=Array.isArray,Ks=e=>on(e)==="[object Map]",Us=e=>on(e)==="[object Set]",Ke=e=>e instanceof Date,nn=e=>typeof e=="function",ja=e=>typeof e=="string",Hs=e=>typeof e=="symbol",$e=e=>e!==null&&typeof e=="object",dt=e=>$e(e)&&nn(e.then)&&nn(e.catch),Wa=Object.prototype.toString,on=e=>Wa.call(e),io=e=>on(e)==="[object Object]",Ya=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function js(e){return e.__esModule||Ya&&e[Symbol.toStringTag]==="Module"}const Ws=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ot(...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]=ot(l,m,c)}else c!==void 0&&(n[s]=c)}}return n}function co(e,n,a=!1){if(!a)ot(!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)&&!io(s))continue;r=co(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)&&!io(s))continue;r=co(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const uo=Ws?Promise.resolve():null;function Ys(e,...n){uo!==null?n&&n.length>0?uo.then(()=>{e(n)}):uo.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function he(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function me(e){return typeof e=="number"?e:Number(e)}const Xs={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function lt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Xs[a]||"object"}function ln(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Xa(e){return e&&typeof e=="object"&&"setInterval"in e}function Qa(e){let n=!!e&&"length"in e&&e.length,a=lt(e);return a==="function"||Xa(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Ga(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 Qs(e,n=[]){let a=n;return e!=null&&(Qa(Object(e))?Ga(a,typeof e=="string"?[e]:e):a.push(e)),a}function Me(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=lt(e),o=lt(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(!Me(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(!Me(r,s))return!1}return!0}return!1}function Za(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function Ja(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 _a(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 er(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 tr(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 fo(e,n=!0,a=!0){n?e=tr(e,".",/\./g):e=e.replace(/\./g,""),a?e=tr(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function Gs(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Me(e,a))return!0}):n.indexOf(e)}function Zs(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Me(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function be(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ke(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function ut(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 nr=(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 mo(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const at=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Ue=(e,n,a)=>Math.min(Math.max(e,n),a),Ce=Symbol.for("BroadcastKey");class po{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="*"):Za(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 an(e,n,a,o){const l=new po(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function Js(e,n,a){const o=a;if(o[Ce])return o[Ce];const l=t.inject(Ce,null),r=new po(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[Ce]=r,t.provide(Ce,r),t.onUnmounted(()=>{r.destroy(),o[Ce]=void 0}),r}function Dt(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ce]??t.inject(Ce,null):t.inject(Ce,null)}const rt=e=>e.default??e;class _s{error(n,a){const o=a,l=Dt(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=Dt(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=Dt(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=Dt(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 It=new _s;function ei(e){It=e}function ti(e){It?Object.assign(It,e):It=e}function ni(e,n){rt(tt).setValidator(e,n)}function oi(e){rt(tt).deleteValidator(e)}let or=["blur","clear"];function li(e){or=e}function lr(){return or}let ar=["focus","change"];function ai(e){ar=e}function rr(){return ar}function ri(e){rt(tt).messages(e)}function xt(...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 rn(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 He=Symbol("ValidateSchemaKey");class sr{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=rn(xt(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=rn(o);const l=xt(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=It;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?rt(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?rt(tt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return rt(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=xt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=rn(n):this.rules=rn([n]);const o=xt(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=xt(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=rt(tt),c=new i(l),m=this.proxy??s;return c.validate(s,{context:m}).then(d=>{if(d.pass)this.success();else{let h="error";Array.isArray(d.errors)&&d.errors.length>0&&(h=d.errors[0].message??h,d.errors=[d.errors[0]],d.errors[0].ref=m),this.error(h)}return d}).catch(d=>{const h=d.message??`${d}`;return this.error(h),d})}}return Promise.resolve({pass:!0})}}function sn(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 sr(n,a,e)}const ir=Symbol("EventEmitterKey");class si{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 ft(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function cn(e,n){let a=0;return function(...o){const l=new Date().getTime();l-a<n||(a=l,Reflect.apply(e,null,[...o]))}}function ii(e,n){const a=ft((o,l)=>{e=o,l()},n);return t.customRef((o,l)=>({get(){return o(),e},set(r){a(r,l)}}))}function ci(e){let n=!1;return function(...a){n||(n=!0,Reflect.apply(e,null,[...a]))}}function ho(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 qe=Symbol("DomainKey"),mt=Symbol("DataItemsKey");class dn{_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 dn;function pt(){return di}function je(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[qe]??t.inject(qe,null):t.inject(qe,null)}const go=Symbol("OriginalDateKey");function yo(e,n,a=[],o){const l=t.getCurrentInstance(),r=l?.proxy;let s=t.inject(qe,null);s===null&&(s=pt());const i=e||n.prop||n.name,c=new dn(i);c.parent=s;const m=S=>{r[go]||h(S),c.set("modelValue",S)},p=()=>c.getForSelf("modelValue")??null,d=()=>r[go]??null,h=S=>{const b={};ot(!0,b,t.toRaw(S)),r[go]=b};t.isReactive(n)||typeof n=="function"?t.watch(n,S=>{c.merge(S,a)},{immediate:!0}):c.merge(n,a),n.modelValue&&h(n.modelValue),r[qe]=c,t.provide(qe,c);let k=null,y=null;if(l!==null){const S=t.inject(Ce,null);k=an(r,S,i,o),c.broadcast=k,r[Ce]=k,t.provide(Ce,k),r.broadcast=(f,u,...g)=>Reflect.apply(k.emit,k,[f,u,...g]);const b=t.inject(He,null);y=sn(r,b,{componentName:""}),c.validateSchema=y,r[He]=y,t.provide(He,y),r[mt]=new Map,r.validate=(f=!0)=>{const u=[];let g=null;const w={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const T=f;g={name:C=>C?T.indexOf(C)!==-1:!1}}else if(f!=null&&typeof f=="object"){const T=f;if(Object.assign(w,T),Array.isArray(T.include)&&T.include.length>0){const C=T.include;g={name:A=>A?C.indexOf(A)!==-1:!1}}else if(Array.isArray(T.exclude)&&T.exclude.length>0){const C=T.exclude;g={name:A=>A?C.indexOf(A)===-1:!1}}else g={name:"*"}}if(g){const T=k?.emitToChildren(g,"validate",w);T&&Reflect.apply([].push,u,T)}return u.length==1?u[0]:u.length>1?Promise.all(u).then(T=>{let C=[];return T.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(C=[...C,...A.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(f,u=!0,g=!1)=>{if(g===!0){Reflect.ownKeys(f).forEach(T=>{let C=String(T);const $=ur(c,C,{componentName:"",fieldName:C,pureDataValidate:!0},k,y);r[mt].set(C,$);const V=f[C];V&&$.validateSchema.setRule(V)});return}if(u){const w=Reflect.ownKeys(f),T={name:C=>w.includes(C)};k?.emitToChildren(T,"setNameValidateRules",f,!1)}},r.clearValidate=(f=!0)=>{let u=null;if(f===!0)u={name:"*"};else if(Array.isArray(f)&&f.length>0){const g=f;u={name:w=>w?g.indexOf(w)!==-1:!1}}else if(f!=null&&typeof f=="object"){const g=f;if(Array.isArray(g.include)&&g.include.length>0){const w=g.include;u={name:T=>T?w.indexOf(T)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const w=g.exclude;u={name:T=>T?w.indexOf(T)===-1:!1}}else u={name:"*"}}u&&k?.emitToChildren(u,"clearValidate",!1)},r.resetFields=f=>{const u=p();if(!u)return;const g={};if(ot(!0,g,d()??{}),Array.isArray(f))f.forEach(w=>{u[w]=g[w]});else if(f&&Array.isArray(f.include))(f.include??[]).forEach(T=>{u[T]=g[T]});else if(f&&Array.isArray(f.exclude)){let w=f.exclude??[];Reflect.ownKeys(g).forEach(T=>{w.includes(T)||(u[T]=g[T])})}else Object.assign(u,g);r.clearValidate(f)},r.setModelValue=(f,u)=>{!u||u===i?m(f):k?.emitToChildren({name:u},"setModelValue",f)},r.getModelValue=()=>p()}return t.onUnmounted(()=>{c.destroy(),r[qe]=void 0,r[mt]&&(r[mt].clear(),r[mt]=void 0),k!==null&&(k.destroy(),r[Ce]=void 0),y!==null&&(y.destroy(),r[He]=void 0)}),c}function cr(e,n,a=[]){const l=t.getCurrentInstance()?.proxy;let r=t.inject(qe,null);r===null&&(r=pt());const s=e||n.prop||n.name,i=new dn(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[qe]=i,t.provide(qe,i),t.onUnmounted(()=>{i.destroy(),l[qe]=void 0}),i}function dr(e,n,a){const l=je(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Be(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(Ce,null),i=an(l,s,r,a);l[Ce]=i,t.provide(Ce,i),l.broadcast=(y,S,...b)=>Reflect.apply(i.emit,i,[y,S,...b]);const c=t.inject(He,null);e.fieldName=e.fieldName??r;const m=sn(l,c,e);l[He]=m,t.provide(He,m),dr(l,m,r),l.validate=(y=null)=>{const S=[];let b=!1,f=!1;if(Array.isArray(y)&&y.indexOf(r)!==-1)f=!0,b=!0;else if(y&&typeof y=="object"){const u=y,g=u.ignoreDisabled??!0,w=u.ignoreReadonly??!0,T=u.ignoreHidden??!0;g===!0&&e.disabled===!0||w===!0&&e.readonly===!0||T===!0&&ln(l.$el)?f=!1:(Array.isArray(u.include)&&u.include.indexOf(r)!==-1||Array.isArray(u.exclude)&&u.exclude.indexOf(r),f=!0),b=u.deep??!1}else typeof y=="boolean"&&(b=y),f=!0;if(f){const u=m?.validate();S.push(u)}if(b){let u=null;const g={deep:!1};if(y===!0)u={name:"*"};else if(Array.isArray(y)&&y.length>0){const w=y;u={name:T=>T?w.indexOf(T)!==-1:!1}}else if(y!=null&&typeof y=="object"){const w=y;if(Object.assign(g,w),Array.isArray(w.include)&&w.include.length>0){const T=w.include;u={name:C=>C?T.indexOf(C)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const T=w.exclude;u={name:C=>C?T.indexOf(C)===-1:!1}}else u={name:"*"}}if(u){const w=i.emitToChildren(u,"validate",g);Reflect.apply([].push,S,w)}}return S.length==1?S[0]:S.length>1?Promise.all(S).then(u=>{let g=[];return u.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(g=[...g,...w.errors])}),g.length>0?{pass:!1,errors:g}:{pass:!0}}):Promise.resolve({pass:!0})},l.setValidateRule=y=>m?.setRule(y),l.setNameValidateRules=(y,S=!1)=>{const b=y[r];if(b&&m?.setRule(b),S){const f={name:u=>Reflect.ownKeys(y).includes(u)};i.emitToChildren(f,"setNameValidateRules",y,!1)}},l.clearValidate=(y=null)=>{(!Array.isArray(y)||y.indexOf(n??"")!==-1)&&m?.clear();let S=null;if(y===!0)S={name:"*"};else if(Array.isArray(y)&&y.length>0){const b=y;S={name:f=>f?b.indexOf(f)!==-1:!1}}else if(y!=null&&typeof y=="object"){const b=y;if(Array.isArray(b.include)&&b.include.length>0){const f=b.include;S={name:u=>u?f.indexOf(u)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const f=b.exclude;S={name:u=>u?f.indexOf(u)===-1:!1}}else S={name:"*"}}S&&i.emitToChildren(S,"clearValidate",!1)};const p=new si(l);l[ir]=p;const d=ft((y="validate")=>{y==="reset"?m.clear():m.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:lr()).forEach(y=>{p.on(y,S=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:rr()).forEach(y=>{p.on(y,S=>{d("reset")})}),t.onUnmounted(()=>{i.destroy(),l[Ce]=void 0,m.destroy(),l[He]=void 0,p.destroy(),l[ir]=void 0}),{broadcast:i,validateSchema:m,emitEvent:(y,...S)=>{Reflect.apply(p.emit,p,[y,...S])},onEvent:(y,S)=>{Reflect.apply(p.on,p,[S])},offEvent:(y,S)=>{Reflect.apply(p.off,p,[S])}}}function ur(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=sn({},l,a);r.validate=(p=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];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();d.push(y)}if(h){let y=null;const S={deep:!1};if(p===!0)y={name:"*"};else if(Array.isArray(p)&&p.length>0){const b=p;y={name:f=>f?b.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const b=p;if(Object.assign(S,b),Array.isArray(b.include)&&b.include.length>0){const f=b.include;y={name:u=>u?f.indexOf(u)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const f=b.exclude;y={name:u=>u?f.indexOf(u)===-1:!1}}else y={name:"*"}}if(y){const b=m.emitToChildren(y,"validate",S);Reflect.apply([].push,d,b)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(y=>{let S=[];return y.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(S=[...S,...b.errors])}),S.length>0?{pass:!1,errors:S}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>c?.setRule(p),r.setNameValidateRules=p=>{const d=p[s];d&&c?.setRule(d)};const m=an(null,o,s,r);return{broadcast:m,validateSchema:c}}const ge=e=>e?`${ce(e)}px`:"";function ce(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(nt){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=ce(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ce(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ce(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ce(e.right))),n}function bo(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=ce(a.headerHeight??n.headerHeight??-1),e.headerPadding=Le(a.headerPadding??n.headerPadding),e.footerHeight=ce(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=ce(c,r):e.height=ce(r)-ce(s,r)-ce(i,r),e.width=ce(a.width??n.width??0,l)}}function fr(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=ce(l.top),o.safeAreaBottom=ce(l.bottom),o.safeAreaLeft=ce(l.left),o.safeAreaRight=ce(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;bo(o,r,n,!0,s,i,c,m);const p=t.reactive(o),d=e.getForParent(Qe);d&&(o.height=pn(e,d),o.width=hn(e,d),t.watch([()=>pn(e,d),()=>hn(e,d)],([k,y])=>{p.height=k,p.width=y}));const h=!d;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([k,y,S=-1,b=-1,f=0,u=0])=>{bo(p,y,n,h,S,b,f,u)}),e.set(Qe,p),p}function un(e){return e.get(Qe)}function fn(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 mn(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=fn(e,n),o=mn(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 ui(e,n){const a=e.get("isInnerPage");return typeof a=="function"?Reflect.apply(a,{},[n,e]):!1}function fi(e){return!!e.getForParent(Qe)}var gn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(gn||{});function ko(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Te(e,n,a=1,o){const l=je();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(ko(c,o))return c}const s=e.value;return ko(s,o)?s:null}):t.computed(()=>{const r=e.value;return ko(r,o)?r:l?.get(n)})}function Ve(e){return Te(e,"readonly",0,function(a){return he(a)})}function Ae(e){return Te(e,"disabled",0,function(a){return he(a)})}function Ie(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 mr=new Map,yn=new Map;let So=null;function mi(e){So=e}function pr(e,n,a){if(a){let o=yn.get(a);o||(o=new Map,yn.set(a,o)),o.set(e,n)}else mr.set(e,n)}function Ge(e,n,a){!a&&So&&(a=So(e)??void 0);let o=null;if(a){let l=yn.get(a);l&&(o=l.get(n))}return o||(o=mr.get(n)),o}function pi(e,n){for(let a in e){const o=e[a];pr(a,o,n)}}function hi(e){yn.delete(e)}function gi(){return{top:0,left:0,bottom:0,right:0}}function yi(e=0,n=0){if(nt){const a=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:o-ce(e,o)-ce(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=cn(()=>{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=ot({},gi(),n.safeAreaInset),s=yi(o,l),i=ot({},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){mi(n)}setAPI(n,a,o){pr(n,a,o)}getAPI(n,a,o){return Ge(n,a,o)}batchSetAPI(n,a){pi(n,a)}clearScopeAPI(n){hi(n)}getRootDomain(){return pt()}}function Q(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"&&(ja(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={};nn(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)}}},hr=(e,n)=>e?t.h(e,n):"";function Ee(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const pe={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}},ye={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}},gr={column:{type:[String,Number],required:!1},columnWidth:{type:[String,Number],required:!1},gutter:{type:[String,Number],required:!1},minItemWidth:{type:[String,Number],required:!1},maxItemWidth:{type:[String,Number],required:!1}},yr={name:{type:String,required:!1},tag:{type:String,required:!1,default:"div"},modelValue:{type:String,required:!1},rules:{type:[Object],required:!1},pureDataRules:{type:[Object],required:!1},type:{type:[String],required:!1},justify:{type:[String],required:!1,default:"stretch"},align:{type:[String],required:!1,default:"start"},span:{type:[Number,String],required:!1,default:1},offset:{type:[Number],default:0},autoLayout:{type:[Boolean],required:!1,default:!0},isWrap:{type:[Boolean,String],required:!1,default:!0},width:{type:[String,Number],required:!1},height:{type:[String,Number],required:!1},showMark:{type:[String,Boolean],required:!1,default:!1},markColor:{type:[String],required:!1},title:{type:String,default:""},titleColor:{type:[String],required:!1},collapse:{type:[String,Boolean],requried:!1},showCollapse:{type:[String,Boolean],required:!1,default:!1},collapsePosition:{type:[String],requried:!1,default:"right"},collapseText:{type:[String],requried:!1},expandText:{type:[String],requried:!1},collapseIcon:{type:[Object],requried:!1},collapseHeight:{type:[String,Number],requried:!1},rollingDisplay:{type:[Boolean],requried:!1,default:!0}},br=[];for(const e in yr)br.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:{...pe,...gr,...Ci},setup(a,{slots:o}){const l=yo(a.name,a),r=t.inject(Si,!1);if(l){const p=fr(l,a);Ee({getPageContentHeight:()=>pn(l,p),getPageContentWidth:()=>hn(l,p),getPageHeaderHeight:()=>fn(l,p),getPageFooterHeight:()=>mn(l,p)}),p&&r&&(p.contentHeight="100%")}const s=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),c=t.getCurrentInstance(),m=(p,d=!1)=>{const h=c?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(p,!0,d)};return t.watch([()=>a.rules,()=>a.pureDataRules],([p,d],[h,k])=>{if(p&&h){const y=t.toRaw(h),S=t.toRaw(p),b=S?Reflect.ownKeys(S):[];(y?Reflect.ownKeys(y):[]).forEach(u=>{b.includes(u)||(S[u]=[])}),m(S)}if(d&&k){const y=t.toRaw(k),S=t.toRaw(d),b=S?Reflect.ownKeys(S):[];(y?Reflect.ownKeys(y):[]).forEach(u=>{b.includes(u)||(S[u]=[])}),m(S,!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:nA}=Q("page"),Co=Bi(wi(Ni));function wo(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function bn(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"),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=je(),i=s?un(s):null,c=t.inject(Ai,!1),m=e,p=t.computed(()=>{const B={[m]:!0,[`${m}--border`]:l.border,[`${m}--fixed`]:l.fixed};return c||(B[`${m}--safe-area-inset-top`]=l.safeAreaInsetTop),B}),d=t.computed(()=>({[`${m}__inner`]:!0,[`${m}__inner--${l.align}`]:!0})),h=l.height!==null&&l.height!==void 0?ce(l.height):null,k=t.computed(()=>{const B={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const P=Le(l.padding??i.headerPadding);return Object.assign(B,P),h&&(i.headerHeight=h),i.headerHeight>0&&(B.height=i.headerHeight),B.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,B.safeAreaTop>0&&(B.top=B.safeAreaTop+(P.top??0),B.height&&B.height>0&&(B.height=B.height+B.safeAreaTop)),B}if(h&&(B.height=h),l.padding){const P=Le(l.padding);Object.assign(B,P)}return B}),y=t.ref(null),S=()=>{if(i&&y.value&&!ln(y.value)){if(!o){const B=wo(y.value);i.headerAllHeight=B.height}return i.headerMounted=!0,!0}return!1};let b=null;t.onMounted(()=>{i&&(ho(S,50,5,50,!0),window.ResizeObserver&&y.value&&(b=new window.ResizeObserver(()=>{S()}),b.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,b&&(b.disconnect(),b=null))});const f=t.computed(()=>{const B={};return k.value.height!==null&&k.value.height!==void 0&&(B.height=`${k.value.height}px`),k.value.top!==null&&k.value.top!==void 0&&(B.paddingTop=`${k.value.top}px`),k.value.left!==null&&k.value.left!==void 0&&(B.paddingLeft=`${k.value.left}px`),k.value.right!==null&&k.value.right!==void 0&&(B.paddingRight=`${k.value.right}px`),k.value.bottom!==null&&k.value.bottom!==void 0&&(B.paddingBottom=`${k.value.bottom}px`),B}),u=t.computed(()=>!(k.value.height!==null&&k.value.height!==void 0&&k.value.height<=0));function g(){r.emit("back")}function w(){r.emit("click-title")}function T(){r.emit("click-right")}function C(){r.emit("click-right-text")}const A=()=>{if(!l.leftShow)return null;const B=[];if(r.slots.left)B.push(r.slots.left());else{if(r.slots.leftIcon){const P=t.h("view",{class:"left-icon",onClick:g},[r.slots.leftIcon()]);B.push(P)}else if(l.leftIcon){const P=t.h("view",{class:"left-icon",onClick:g},[t.h(l.leftIcon)]);B.push(P)}if(l.leftText){const P=t.h("view",{class:"left-text",onClick:g},[l.leftText]);B.push(P)}}return B.length===0?null:t.h("view",{class:"fox-header-bar__left"},B)},$=()=>{if(!l.rightShow)return null;const B=[];if(r.slots.right)B.push(r.slots.right());else{if(l.rightText){const P=t.h("view",{class:"right-text",onClick:C},[l.rightText]);B.push(P)}if(r.slots.rightIcon){const P=t.h("view",{class:"right-icon",onClick:T},[r.slots.rightIcon()]);B.push(P)}else if(l.rightIcon){const P=t.h("view",{class:"right-icon",onClick:T},[t.h(l.rightIcon)]);B.push(P)}}return B.length===0?null:t.h("view",{class:"fox-header-bar__right"},B)},V=()=>{if(!l.titleShow)return null;const B=[],P=r.slots.default?r.slots.default():null;if(P)B.push(P);else{if(l.title){const L=t.h("view",{class:"title-text"},[l.title]);B.push(L)}if(r.slots.titleIcon){const L=t.h("view",{class:"title-icon",onClick:w},[r.slots.titleIcon()]);B.push(L)}else if(l.titleIcon){const L=t.h("view",{class:"title-icon",onClick:w},[t.h(l.titleIcon)]);B.push(L)}}return B.length===0?null:t.h("view",{class:"fox-header-bar__title"},B)},E=()=>{const B=[],P=r.slots.bottom?r.slots.bottom():null;return P&&B.push(P),B.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},B)};return()=>{if(!u.value)return null;const B=[];if(r.slots.all)B.push(r.slots.all());else{const L=[],D=A();D&&L.push(D);const I=V();I&&L.push(I);const U=$();if(U&&L.push(U),L.length>0){const Y=t.h("view",{class:d.value},L);B.push(Y)}const q=E();q&&B.push(q)}if(B.length===0)return null;const P={class:p.value,style:f.value,ref:y};return t.h("view",P,B)}}}),{componentName:$i,create:Vi,scope:Ei}=Q("header-bar"),No=Vi(Ti($i,Ei,le.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=je(),s=r?un(r):null,i=t.inject(Di,!1),c=e,m=t.computed(()=>{const b={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return i||(b[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),b}),p=o.height!==null&&o.height!==void 0?ce(o.height):null,d=t.computed(()=>{const b={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(b,f),p&&(s.footerHeight=p),s.footerHeight>0&&(b.height=s.footerHeight),b.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,b.safeAreaBottom>0&&(b.bottom=b.safeAreaBottom+(f.bottom??0),b.height&&b.height>0&&(b.height=b.height+b.safeAreaBottom)),b}if(p&&(b.height=p),o.padding){const f=Le(o.padding);Object.assign(b,f)}return b}),h=t.ref(null),k=()=>{if(s&&h.value&&!ln(h.value)){if(!a){const b=wo(h.value);s.footerAllHeight=b.height}return s.footerMounted=!0,!0}return!1};let y=null;t.onMounted(()=>{s&&(ho(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 S=t.computed(()=>{const b={};return d.value.height!==null&&d.value.height!==void 0&&(b.height=ge(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(b.paddingTop=ge(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(b.paddingLeft=ge(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(b.paddingRight=ge(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(b.paddingBottom=ge(d.value.bottom)),b});return()=>{const b=l.slots.default?l.slots.default():[],f={ref:h,class:m.value,style:S.value};return t.h("view",f,b)}}}}const{componentName:xi,create:qi,scope:vi}=Q("footer-bar"),Bo=qi(Ii(xi,vi,!1));function Mi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=je(),l=t.computed(()=>({[e]:!0})),r=o?un(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=fn(o,r),d=mn(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:",d),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||d>0)&&(y=y<0?0:y,m.paddingBottom=`${d+y}px`);const S=(r&&r.contentPadding&&r.contentPadding.left)??-1;S>=0&&(m.paddingLeft=`${S}px`);const b=(r&&r.contentPadding&&r.contentPadding.right)??-1;return b>=0&&(m.paddingRight=`${b}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=ft(()=>{if(r&&i.value){const m=bn(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:Pi,create:Li,scope:oA}=Q("content"),zi=Li(Mi(Pi));function Fi(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 oe=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},Ao=oe(zi,[["render",Fi]]),ht="GroupStateKey",kr=Symbol.for("GroupScopeKey");function kn(){return t.inject(kr,!1)}function Sn(e=!0){t.provide(kr,e)}function Ri(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Ha(l)||(e[o]=l)})}function Oi(e,n={}){const o={type:"grid",width:e.get("width",-1),column:-1,gutter:-1};Ri(o,n);const l=t.shallowRef(o),r=t.markRaw({layout:l,passport:0,order:{index:0}});return e.set(ht,r),r}function To(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(ht);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=ce(r),d=ce(s);i||(i=m.type??"grid");const h=()=>{const k=n===""||n===-1,y=ce(n);let S=me(a);const b=ce(o);if(!k){let g=(y-(S-1)*b)/S;for(;d!==-1&&g>d;)S++,g=(y-(S-1)*b)/S;for(;p!==-1&&S>1&&g<p;)S--,g=(y-(S-1)*b)/S}let f=!1;const u=c.layout;u.value.width=n,u.value.column!==S&&(u.value.column=S,f=!0),u.value.gutter!==b&&(u.value.gutter=b,f=!0),u.value.type!==i&&(u.value.type=i,f=!0),f&&t.triggerRef(u)};if(l)h();else{const k=++c.passport;setTimeout(()=>{k===c.passport&&h()},50)}}function Cn(e,n=!1){let a;return n?a=e.getForParent(ht):a=e.get(ht),a.layout}function wn(e,n=!1){let a;return n?a=e.getForParent(ht):a=e.get(ht),a.order}function Sr(e,n=1){if(n==="stretch")return-1;const a=me(n);return a===-1?100:100*a/e}function Nn(e,n,a=1,o=0,l){const r={};let s=0;l?s=ce(l):s=Sr(n.column,a),s>0&&(r.width=`${s}%`);const i=Sr(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 Bn(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=me(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=me(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 Cr=Symbol("RollingStateKey");function Ki(e){t.provide(Cr,e)}function Ui(){return t.inject(Cr,null)}function $o(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 Hi(e){let n=$o(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=$o(a),console.info("2.---------- get expand height",n),document.body.removeChild(a)}return n}function ji(e,n,a){if(e<=0)return"1fr";const o=(e-(n-1)*a)/n;return o>0?`${o}px`:"1fr"}const Wi={...pe,...gr,...yr};function Yi(e,n,a){return{props:Wi,emits:["update:collapse"],setup(o,l){const r=yo(o.name,o,br),s=Oi(r,{type:o.type}),i=kn();Sn(!0);const c=o.rollingDisplay?Ui():null,m=t.ref(null),p=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),d=t.computed(()=>i&&r?Cn(r,!0).value:null),h=t.getCurrentInstance(),k=(H,Z=!1)=>{const G=h?.proxy;G&&typeof G.setNameValidateRules=="function"&&G.setNameValidateRules(H,!0,Z)};t.watch([()=>o.rules,()=>o.pureDataRules],([H,Z],[G,_])=>{if(H&&G){const F=t.toRaw(G),te=t.toRaw(H),ne=te?Reflect.ownKeys(te):[];(F?Reflect.ownKeys(F):[]).forEach(de=>{ne.includes(de)||(te[de]=[])}),k(te)}if(Z&&_){const F=t.toRaw(_),te=t.toRaw(Z),ne=te?Reflect.ownKeys(te):[];(F?Reflect.ownKeys(F):[]).forEach(de=>{ne.includes(de)||(te[de]=[])}),k(te,!0)}},{deep:!0});const y=e,S=t.computed(()=>{const H={};if(H.height=I.value,o.width)o.width!=="auto"&&(H.width=ge(o.width));else{const Z=i?wn(r,!0):null;if(d.value&&Z){if(d.value.type==="grid"){const G=Bn(Z,d.value,o.span,o.offset);Object.assign(H,G)}else if(d.value.type==="flow"){const G=Nn(Z,d.value,o.span,o.offset,o.width);Object.assign(H,G)}}}return H}),b=t.computed(()=>{const H=s.layout.value.type;return H==="grid"||H==="flow"?{[`${y}--${H}`]:!0,[`${y}--${H}-justify-${o.justify}`]:!0,[`${y}--${H}-align-${o.align}`]:!0,[`${y}--gutter`]:!0}:{[`${y}--${H}`]:!0,[`${y}--gutter`]:!0}}),f=t.computed(()=>{if(s.layout.value.type==="grid"){let Z="";if(o.columnWidth)Z=`repeat(auto-fill, ${o.columnWidth})`;else{const G=ji($.value,s.layout.value.column,s.layout.value.gutter);Z=`repeat(${s.layout.value.column}, ${G})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":Z}}}),u=t.toRef(o,"gutter"),g=t.toRef(o,"column"),w=t.computed(()=>i||p.value?!0:he(o.isWrap)),T=[],C=H=>{T.push(H)},A=()=>{let H=T.length;T.splice(0,H)},$=t.ref(-1),V=H=>{const Z=bn(H).width;Z>0&&Z!==$.value&&($.value=Z)};To(r,$.value,g.value,u.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([$,g,u],([H,Z,G])=>{s.order.index=0,To(r,H,Z,G,!1,o.minItemWidth,o.maxItemWidth,o.type)});const E=t.computed(()=>U.value?o.expandText??"":o.collapseText??""),B=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),P=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),L=t.ref(),D=t.ref(),I=t.computed(()=>q.value||ge(o.height)||""),U=t.ref(!1),q=t.ref(""),Y=t.ref(!1);let j=-1;const J=(H,Z=!0)=>{const G=L.value;if(G&&U.value!==H){if(j=j<=0?Hi(G):j,Y.value=!0,Z)if(G.style["will-change"]="height",G.ontransitionend=function(){G.ontransitionend=null,this.style["will-change"]="auto",H||(q.value="",Y.value=!1)},H){let _=0;o.collapseHeight?_=o.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(_=D.value.offsetHeight),q.value=`${j}px`,t.nextTick(()=>{q.value=`${_}px`})}else q.value=`${j}px`;else if(H){let _=0;o.collapseHeight?_=o.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(_=D.value.offsetHeight),q.value=`${_}px`}else Y.value=!1,q.value=`${j}px`;U.value=H,l.emit("update:collapse",H)}};t.watch(()=>o.collapse,H=>{J(H)});const ee=()=>{W()},W=H=>{H=H??!U.value,J(H)};Ee({toggleCollapse:W,doLayout:()=>{T[0]&&(V(T[0]),To(r,$.value,g.value,u.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let z=null,x=!0;const R=H=>{if(o.rules){const Z=t.toRaw(o.rules);k(Z)}if(o.pureDataRules){const Z=t.toRaw(o.pureDataRules);k(Z,!0)}if(nt&&(H&&J(he(o.collapse),!1),o.autoLayout&&Array.isArray(T)&&T.length>0)){const Z=T[0];V(Z),window.ResizeObserver&&(z=new window.ResizeObserver(()=>{V(Z)}),z.observe(Z))}},M=()=>{z?.disconnect(),z=null},O=!p.value||c?.acquire();O&&(m.value=p.value?!0:null),t.onMounted(()=>{if(O&&(R(x),x=!1),p.value&&c){let H=null,Z=c.initialHeight;c.observe(L.value,G=>{if(G!==m.value)if(G)m.value=!0,U.value||(q.value=""),H=setTimeout(()=>{H=null,m.value!==!1&&(R(x),x=!1)},100);else{if(H!==null&&clearTimeout(H),m.value=!1,!U.value)if(x)q.value=c.initialHeight;else{let _=$o(L.value);_<=0?q.value=Z:(q.value=`${_}px`,Z=q.value)}x||M()}})}}),t.onUnmounted(()=>{z?.disconnect(),c&&c.unobserve(L.value)});const X=(H="right")=>{const Z=[];if(E.value){const te={class:B.value},ne=t.h("span",te,[E.value]);Z.push(ne)}const G={class:P.value},_=o.collapseIcon??a,F=t.h(_,G);return Z.push(F),Z.length>0?t.h("div",{class:{[`${y}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:ee},Z):null},K=(H,Z,G,_)=>{const F={...b.value};return Z===0&&(F[`${y}__first`]=!0),G>=_-1&&(F[`${y}__last`]=!0),t.h("div",{ref:C,key:`${Z}`,class:F,style:f.value},H)};return()=>{if(p.value&&m.value!==!0){const F=o.tag||"div";return t.h(F,{ref:L,prop:o.name,class:{[`${y}`]:!0,"is-collapse":Y.value},style:S.value},[])}s.order.index=0;const H=[];let Z=0;if(l.slots.header){const F={key:`${Z++}`,ref:D,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},te=t.h("div",F,[l.slots.header()]);H.push(te)}else{const F=[],te=o.collapsePosition==="left";if(te&&o.showCollapse){const ne=X("left");ne&&F.push(ne)}if(o.title||l.slots.title){if(o.showMark){const ne={class:{[`${y}__header-mark`]:!0}};o.markColor&&(ne.style={background:o.markColor});const se=t.h("div",ne);F.push(se)}if(l.slots.title){const ne=t.h("div",{class:{[`${y}__header-title`]:!0}},[l.slots.title()]);F.push(ne)}else if(o.title){const ne=t.h("div",{class:{[`${y}__header-title`]:!0}},[o.title]);F.push(ne)}}if(l.slots.toolbar&&F.push(l.slots.toolbar()),!te&&o.showCollapse){const ne=X("right");ne&&F.push(ne)}if(F.length>0){const ne={key:`${Z++}`,ref:D,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},se=t.h("div",ne,F);H.push(se)}}A();const G=l.slots.default?l.slots.default():[],_=s.layout.value.type;if(_==="grid"){const F=K(G,Z++,0,G.length);H.push(F)}else if(_==="flow"){const F=K(G,Z++,0,G.length);H.push(F)}else for(let F=0;F<G.length;F++){const te=G[F],ne=K([te],Z++,F,G.length);H.push(ne)}if(w.value){const F=o.tag||"div";return t.h(F,{ref:L,prop:o.name,class:{[`${y}`]:!0,"is-collapse":Y.value},style:S.value},[H])}else return H}}}}const{componentName:Xi,create:Qi,scope:Gi}=Q("group"),Vo=Qi(Yi(Xi,Gi,le.RectUp));function Zi(e){return e===window}const Ji=/matrix\((.+)\)/,wr=e=>{const n=t.unref(e);if(!n)return{x:0,y:0};if(Zi(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=Ji.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 _i{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 ec{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 _i,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 Nr=new ec,Br={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:tc,create:nc}=Q("price"),oc=nc({props:{...Br},setup(e){const n=t.computed(()=>({[tc]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>be(e.price)==0?"":en(e.price,e.decimalLength,!0,me(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}}}),lc=["innerHTML"],ac=["innerHTML"];function rc(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,lc)):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,ac)):t.createCommentVNode("",!0)],2)}const Ze=oe(oc,[["render",rc]]),{componentName:Eo,create:sc}=Q("hint-text"),ic=sc({components:{Price:Ze},props:{...Br,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=(B,P,L,D,I,U)=>{const q=document.documentElement.clientWidth||document.body.clientWidth,Y=document.documentElement.clientHeight||document.body.clientHeight,j=B.split("-");let J=[];j[0]==="top"?J=["top","bottom","right","left"]:j[0]==="bottom"?J=["bottom","top","right","left"]:j[0]==="left"?J=["left","top","bottom","right"]:j[0]==="right"&&(J=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},W=[];for(let v=0;v<J.length;v++){const z=J[v];if(W[0]=z,j[1]&&(W[1]=j[1]),z==="top"){const x=P.y-U-e.arrowSize-e.offset;if(x>=0){ee.top=x;let R=0;j[1]==="start"?R=P.x:j[1]==="end"?R=P.x+L-I:R=P.x+L/2-I/2;const M=q-R-I;M<0?(R+=M,d.value=-M):d.value=0,ee.left=R<0?0:R;break}}else if(z==="bottom"){const x=P.y+D+e.arrowSize+e.offset;if(x+U<=Y){ee.top=x;let R=0;j[1]==="start"?R=P.x:j[1]==="end"?R=P.x+L-I:R=P.x+L/2-I/2;const M=q-R-I;M<0?(R+=M,d.value=-M):d.value=0,ee.left=R<0?0:R;break}}else if(z==="left"){const x=P.x-I-e.arrowSize-e.offset;if(x>=0){ee.left=x;let R=0;j[1]==="start"?R=P.y:j[1]==="end"?R=P.y+D-U:R=P.y+D/2-U/2,ee.top=R<0?0:R;break}}else if(z==="right"){const x=P.x+L+e.arrowSize+e.offset;if(x+I<=q){ee.left=x;let R=0;j[1]==="start"?R=P.y:j[1]==="end"?R=P.y+D-U:R=P.y+D/2-U/2,ee.top=R<0?0:R;break}}}return{bestPlacement:W.join("-"),bestInsetRect:ee}},p=(B,P,L=10)=>{if(!nt||P===!1||!B)return;o.value=wr(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const D=c.value.offsetHeight,I=c.value.offsetWidth,{bestPlacement:U,bestInsetRect:q}=m(e.placement,o.value,l.value,r.value,I,D);s.value=U,a.value=q,i.value=!0},d=t.ref(0),h=ft(()=>{p(e.message,e.visible)},10),k=t.ref(e.visible);t.watch(()=>e.visible,B=>{k.value=B});const y=t.computed(()=>k.value&&S.value),S=t.ref(!0),b=ft(B=>{const P=B[0];P&&(S.value=P.isIntersecting)},10),f=new IntersectionObserver(b);t.watch([()=>e.message,()=>e.visible],([B,P])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Nr.watch(e.reference,h),f.observe(e.reference)}),t.onBeforeMount(()=>{Nr.unwatch(e.reference,h),f.unobserve(e.reference),f.disconnect()});const u=t.computed(()=>{const B={[Eo]:!0};return s.value.startsWith("top")?B["is-top"]=!0:s.value.startsWith("right")?B["is-right"]=!0:s.value.startsWith("bottom")?B["is-bottom"]=!0:s.value.startsWith("right")&&(B["is-right"]=!0),e.size==="small"?B["is-small"]=!0:e.size==="large"&&(B["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(B[`${e.customClass}`]=!0),B}),g=t.computed(()=>{const B={};a.value.top!==null&&(B.top=`${a.value.top}px`),a.value.right!==null&&(B.right=`${a.value.right}px`),a.value.bottom!==null&&(B.bottom=`${a.value.bottom}px`),a.value.left!==null&&(B.left=`${a.value.left}px`),e.autoFit&&(B["min-width"]=`${l.value}px`);const P=document.documentElement.clientWidth||document.body.clientWidth;return B["max-width"]=`${P}px`,i.value&&(B.opacity="1"),e.transition||(B.transition="none"),e.zIndex&&(B["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(B,e.customStyle),B}),w=t.computed(()=>{const B=[`${Eo}__content`];return e.customTextClass&&B.push(e.customTextClass),B}),T=t.computed(()=>{const B={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(B,e.customTextStyle),B}),C=t.computed(()=>({[`${Eo}__arrow`]:!0})),A=t.computed(()=>{const B={};return e.showArrow?(B.width=`${e.arrowSize}px`,B.height=`${e.arrowSize}px`,s.value==="top"?(B.left="50%",B.bottom=`-${e.arrowSize}px`,B.transform=" translate(-50%, 0%)"):s.value==="top-start"?(B.left=`${e.arrowOffset+d.value}px`,B.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(B.right=`${e.arrowOffset-d.value}px`,B.bottom=`-${e.arrowSize}px`):s.value==="right"?(B.left=`-${e.arrowSize}px`,B.top="50%",B.transform=" translate(0%, -50%)"):s.value==="right-start"?(B.left=`-${e.arrowSize}px`,B.top=`${e.arrowOffset}px`):s.value==="right-end"?(B.left=`-${e.arrowSize}px`,B.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(B.left="50%",B.top=`-${e.arrowSize}px`,B.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(B.left=`${e.arrowOffset+d.value}px`,B.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(B.right=`${e.arrowOffset-d.value}px`,B.top=`-${e.arrowSize}px`):s.value==="left"?(B.right=`-${e.arrowSize}px`,B.top="50%",B.transform=" translate(0%, -50%)"):s.value==="left-start"?(B.right=`-${e.arrowSize}px`,B.top=`${e.arrowOffset}px`):s.value==="left-end"&&(B.right=`-${e.arrowSize}px`,B.bottom=`-${e.arrowOffset}px`),B):{display:"none"}}),$=t.computed(()=>y.value&&e.closeOnClick),V=t.computed(()=>{const B={};return e.zIndex&&(B["z-index"]=`${e.zIndex}`),B});return{show:y,tipRef:c,classes:u,styles:g,textClasses:w,textStyles:T,arrowClasses:C,arrowStyles:A,overlayShow:$,overlayStyle:V,onClickOverlay:()=>{k.value=!1,n.emit("update:visible",!1)}}}}),cc=["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,cc))],6),t.createElementVNode("div",{class:t.normalizeClass(e.arrowClasses),style:t.normalizeStyle(e.arrowStyles)},null,6)],6),[[t.vShow,e.show]])],64)}const Ar=oe(ic,[["render",dc]]);class An{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 Do={},uc=new An,gt=new Map,Tn=e=>{if(e){const n=document.getElementById(e);gt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of gt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}gt.clear()}},fc=e=>{e.unmount=Tn;const n=document.getElementById(e.id);if(n){const a=gt.get(e.id);a?e={...Do,...a,...e}:e={...Do,...e},e.transition=!1;const o=t.createVNode(Ar,e);return t.render(o,n),e.id}},mc=e=>{e.unmount=Tn;let n=e.id??`hinttext_${uc.get()}`;e={...Do,...e},e.id=n,gt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Ar,e);return t.render(o,a),document.body.appendChild(a),n},pc=e=>{if(!e){console.warn("[FoxUI HintText]: msg不能为空");return}},yt={show(e,n,a={},o=!0){pc(n);const l=a.id;return l&>.has(l)?fc({...a,message:n,reference:e}):(o&&Tn(),mc({...a,message:n,reference:e}))},hide(e){Tn(e)},install(e){e.config.globalProperties.$hintText=yt}};function hc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...pe,...ye},emits:["appear","disappear"],setup(l,r){const s=l.prop??r.attrs.name;Be({componentName:e,validate:!1},s);const i=je(),c=kn();Sn(!1);const m=t.computed(()=>c&&i?Cn(i,!1).value:null),p=e,d=t.ref(null),h=t.computed(()=>{const F={[p]:!0,[`${p}__gutter`]:m.value&&m.value.type!=="flow",[`${p}__stretch`]:l.span==="stretch",[`${p}__input--border`]:he(l.hasBorder)};if(F[l.errorMarkClass]=!!U.value,F[l.warnMarkClass]=!!D.value,F[l.infoMarkClass]=!!P.value,typeof d.value=="function"){const te=d.value(s);F[te]=!0}else if(typeof d.value=="string"){const te=d.value;F[te]=!0}return F}),k=t.ref(null),y=t.computed(()=>{const F={};if(l.width)l.width!=="auto"&&(F.width=ge(l.width));else{const te=c&&i?wn(i,!1):null;if(m.value&&te){if(m.value.type==="grid"){const ne=Bn(te,m.value,l.span,l.offset);Object.assign(F,ne)}else if(m.value.type==="flow"){const ne=Nn(te,m.value,l.span,l.offset,l.width);Object.assign(F,ne)}}}if(typeof k.value=="function"){const te=k.value(s);te&&Object.assign(F,te)}else if(k.value&&typeof k.value=="object"){const te=k.value;Object.assign(F,te)}return F}),S=t.ref(null),b=t.computed({get:()=>S.value??he(l.isRequired),set:F=>{S.value=F}}),f=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",u=Te(t.toRef(l,"labelPosition"),"labelPosition",gn.Near),g=t.computed(()=>u&&u.value==="top"?"top":u&&u.value==="right"?"right":"left"),w=t.computed(()=>({[`${p}__main`]:!0,[`${p}__main--${g.value}`]:!0})),T=t.computed(()=>({label:!0,[`label--${g.value}`]:!0})),C=Te(t.toRef(l,"labelWidth"),"labelWidth",gn.Near),A=t.computed(()=>C&&C.value?{width:ge(C.value)}:{}),$=t.computed(()=>({"label--string":!0,"label--required":b.value})),V=t.computed(()=>({content:!0,[l.contentClass]:!0})),E=t.computed(()=>({...l.contentStyle})),B=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ee({setRequired(F){b.value=F},setErrorTip(F){B.errorTip=F},setErrorIcon(F){B.errorIcon=F},setWarnTip(F){B.warnTip=F},setWarnIcon(F){B.warnIcon=F},setInfoTip(F){B.infoTip=F},setInfoIcon(F){B.infoIcon=F},setCustomClassName(F){d.value=F},setCustomStyle(F){k.value=F}});const P=t.computed(()=>l.infoTip||B.infoTip),L=t.computed(()=>l.infoIcon||B.infoIcon),D=t.computed(()=>l.warnTip||B.warnTip),I=t.computed(()=>l.warnIcon||B.warnIcon),U=t.computed(()=>l.errorTip||B.errorTip),q=t.computed(()=>l.errorIcon||B.errorIcon),Y=t.computed(()=>U.value?"error":D.value?"warn":P.value?"info":""),j=()=>Y.value.length>0,J=t.computed(()=>Y.value==="error"?U.value:Y.value==="warn"?D.value:Y.value==="info"?P.value:""),ee=t.computed(()=>Y.value==="error"?q.value:Y.value==="warn"?I.value:Y.value==="info"?L.value:null),W=t.computed(()=>{const F={[`${p}__tip`]:!0,[`${p}__tip--${Y.value}`]:!0,[`${p}--animate`]:!0};return Y.value==="error"&&l.errorClass?F[`${l.errorClass}`]=!0:Y.value==="warn"&&l.warnClass?F[`${l.warnClass}`]=!0:Y.value==="info"&&l.infoClass&&(F[`${l.infoClass}`]=!0),F}),v=t.computed(()=>{const F={};return u&&u.value==="top"||!f()?F["padding-left"]="0px":C&&C.value&&(F["padding-left"]=ge(C.value)),F}),z=t.ref();let x="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([F,te,ne,se])=>{z.value&&(F&&!ue(te)?x?a.show(z.value,te,{...se,id:x,type:ne},!0):x=a.show(z.value,te,{...se,type:ne},!0):a.hide(x))});let R=null;const M=()=>{R||!z.value||(R=new IntersectionObserver(F=>{let te=!1;for(let ne of F)if(ne.intersectionRatio>0){te=!0,te&&r.emit("appear",ne);break}te||r.emit("disappear")}),R.observe(z.value))},O=()=>{!R||!z.value||(R.unobserve(z.value),R=null)};t.watch(()=>he(l.appearListen),F=>{F?M():O()}),t.onMounted(()=>{he(l.appearListen)&&M()}),t.onUnmounted(O);const X=()=>{if(!f())return null;const F=[],te=r.slots?.label?.()??l.label,ne={class:$.value},se=t.h("div",ne,[te]);if(F.push(se),r.slots.fixedPreTip){const xe=r.slots.fixedPreTip();F.push(xe)}const de={class:T.value,style:A.value};return t.h("div",de,F)},K=()=>{const F=[];if(r.slots.prepend){const ne=r.slots.prepend();F.push(ne)}if(r.slots.default){const ne=r.slots.default();F.push(ne)}if(r.slots.append){const ne=r.slots.append();F.push(ne)}if(r.slots.fixedTip){const ne={class:[`${p}__fixed-tip`]},se=t.h("div",ne,[r.slots.fixedTip()]);F.push(se)}const te={ref:z,class:V.value,style:E.value};return t.h("div",te,F)},H=()=>{const F=ee.value;return F?typeof F=="function"?t.h("div",{class:"fox-item__tip--icon"},[F()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(F)]):null},Z=()=>{const F=J.value;return F?typeof F=="function"?t.h("div",{class:"fox-item__tip--text"},[F()]):t.h("div",{class:"fox-item__tip--text"},[F]):null},G=()=>{if(!j())return null;const F=[],te=H();te&&F.push(te);const ne=Z();ne&&F.push(ne);const se={class:W.value,style:v.value};return t.h("div",se,F)},_=()=>r.slots?.hide?.()??null;return()=>{const F=[],te=[],ne=X();ne&&te.push(ne);const se=K();se&&te.push(se);const de={class:w.value},xe=t.h("div",de,te);F.push(xe);const ve=G();ve&&F.push(ve);const et=_();et&&F.push(et);const va={class:h.value,style:y.value,prop:l.prop};return t.h("div",va,F)}}}}const{componentName:gc,create:yc,scope:bc}=Q("item"),we=yc(hc(gc,bc,yt,!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=je(),i=kn();Sn(!1);const c=t.computed(()=>{const m={};if(a.width)a.width!=="auto"&&(m.width=ge(a.width));else if(i&&s){const p=Cn(s,!1),d=wn(s,!1);if(p.value&&d){if(p.value.type==="grid"){const h=Bn(d,p.value,a.span,a.offset);Object.assign(m,h)}else if(p.value.type==="flow"){const h=Nn(d,p.value,a.span,a.offset,a.width);Object.assign(m,h)}}}return m});return()=>{const m=[];if(o.slots.default){const d=o.slots.default();if(a.divide)for(let h=0;h<d.length;h++){if(h>0){const k=t.h("div",{class:{[`${l}__divide`]:!0}});m.push(k)}m.push(d[h])}else Reflect.apply([].push,m,d)}const p={class:r.value,style:c.value};return t.h("div",p,m)}}}}const{componentName:Sc,create:Cc,scope:lA}=Q("row-item"),Io=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=je(),r=kn();Sn(!1);const s=t.computed(()=>r&&l?Cn(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=ge(a.width));else{const d=r&&l?wn(l,!1):null;if(s.value&&d){if(s.value.type==="grid"){const h=Bn(d,s.value,a.span,a.offset);Object.assign(p,h)}else if(s.value.type==="flow"){const h=Nn(d,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:aA}=Q("slot-item"),xo=Bc(wc(Nc)),Tr={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:{...pe,...ye,...Tr},emits:["change","update:modelValue","blur","focus","clear"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:c}=Be({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"]),d=t.ref(!1),h=Ie(l,"modelValue"),k=e,y=t.computed(()=>({[k]:!0,"is-disabled":s.value,"is-readonly":i.value})),S=Te(t.computed(()=>l.textAlign),"textAlign"),b=t.computed(()=>{const I={};return S.value&&(I["text-align"]=S.value),I}),f=I=>{let q=I.target.value;l.type==="digit"&&(q=fo(q,!0)),l.type==="number"&&(q=fo(q,!1)),l.maxLength&&q.length>Number(l.maxLength)&&(q=q.slice(0,Number(l.maxLength))),h.value=q,c("update:modelValue",q,I),c("change",q,I)};let u=Ie(l,"hintText"),g=t.ref(!1);const w=I=>{let q=I.target.value;d.value=!0,ue(u.value)||(g.value=!0),c("focus",q,I)},T=I=>{setTimeout(()=>{g.value&&(g.value=!1),d.value=!1},0);let q=I.target.value;l.maxLength&&q.length>Number(l.maxLength)&&(q=q.slice(0,Number(l.maxLength))),c("blur",q,I)},C=t.computed(()=>({[`${k}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),A=t.computed(()=>{const I={};return r.slots.append&&!$.value&&!L.value&&(I.display="none"),I}),$=t.computed(()=>be(l.unit)>0),V=t.computed(()=>!L.value),E=t.computed(()=>({[`${k}__unit`]:!0,hidden:!V.value})),B=I=>{h.value="",c("update:modelValue","",I),c("change","",I),c("clear","")},P=t.computed(()=>he(l.clearable)&&!s.value&&!i.value),L=t.computed(()=>{let I=be(h.value)>0;return he(l.clearable)&&I&&d.value}),D=t.computed(()=>({action:!0,hidden:!L.value}));return()=>{const I={class:y.value,style:b.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:w,onBlur:T},U=[],q=t.h("input",I);U.push(q);const Y=[];if(P.value){const x={class:["action-icon"]},R=t.h(o,x),M={class:D.value,onClick:B},O=t.h("view",M,{default:()=>[R]});Y.push(O)}if($.value){const x=t.h("view",{class:E.value},[l.unit]);Y.push(x)}const j={class:C.value,style:A.value},J=t.h("view",j,{default:()=>Y});U.push(J);const ee={default:()=>U};ee.label=r.slots.default,ee.prepend=r.slots.prepend,ee.append=r.slots.append,ee.fixedPreTip=r.slots.fixedPreTip,ee.fixedTip=r.slots.fixedTip;const v={...ut(l,Tr),hintText:u.value,hintVisible:g.value,prop:`${l.prop}_item`};return t.h(a,v,ee)}}}}const{componentName:Tc,create:$c,scope:Vc}=Q("input-item"),qo=$c(Ac(Tc,Vc,we,le.CircleClose));function $r(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 Vr(e,n,a=20){if(typeof n=="string"&&(n=me(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Oa(`${e}`,`${n}`);return $r(o)}else{let o=ro(`${e}`,Ka(`${n}`),20);return $r(o)}}function Ec(e,n=-1,a=!1,o=3,l=","){return en(e,n,a,o,l)}function Er(e,n,a,o,l=!0){if(e=="")return"";if(e=Ua(e),n=me(n),n==1)return e;if(o)e=Vr(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(me(a)+2,"0"):e=ro(e,1,me(a)));else{let r=-1*n;e=Vr(e,r)}return e}function Dr(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=he(n.minInclude),l=so(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=he(n.maxInclude),l=so(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const Ir={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:{...pe,...ye,...Ir},emits:["change","update:modelValue","blur","focus","clear"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:c}=Be({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),m=t.ref(!1),p=Ie(l,"modelValue"),d=t.ref("");t.watch([()=>p.value,()=>l.rates,()=>l.precision],([j,J,ee])=>{if(ue(j)){d.value="";return}const W=Er(j,J,ee,!1);d.value!==W&&(d.value=W)},{immediate:!0});const h=t.computed(()=>{let j="";return m.value&&(j=d.value),j}),{t:k}=re.useFoxI18n(n),y=t.computed(()=>{let j=l.placeholder??"";return!m.value&&!ue(d.value)?j=Ec(d.value,l.decimalLength,l.autoPadding,l.digits,l.separator):j=ue(j)?k(["placeholder"]):j,j}),S=e,b=t.computed(()=>({[S]:!0,[`${S}__placeholder`]:d.value.length>0,"is-disabled":s.value,"is-readonly":i.value})),f=Te(t.computed(()=>l.textAlign),"textAlign"),u=t.computed(()=>{const j={};return f.value&&(j["text-align"]=f.value),j}),g=t.ref(""),w=t.computed(()=>{let j=g.value;return ue(j)&&(j=l.errorTip??""),j}),T=t.ref(""),C=t.ref(!1),A=j=>{let ee=j.target.value;if(ue(ee)){d.value="",p.value="",c("update:modelValue","",j),c("change","",j),he(l.showTip)&&C.value&&(C.value=!1);return}if(ee.length>=2){let W=ee;if(W.charAt(0)=="-"&&(W=W.substring(1)),W.length>=2&&W.charAt(0)=="0"&&W.charAt(1)!="."){t.triggerRef(d);return}}if(ee!="-"){if(!Ja(ee)){t.triggerRef(d);return}if(l.integerLength!=-1&&_a(ee)>Number(l.integerLength)){t.triggerRef(d);return}if(l.decimalLength&&l.decimalLength!=-1&&er(ee)>Number(l.decimalLength)){t.triggerRef(d);return}let W=Dr(ee,l);if(W.maxValid===!1){g.value=W.message,t.triggerRef(d);return}}else if(l.min!=null&&me(l.min)>=0){t.triggerRef(d);return}T.value=ee,he(l.showTip)&&(C.value=ee.length>0),d.value=ee,p.value=Er(ee,l.rates,l.precision,!0),c("update:modelValue",p.value,j),c("change",p.value,j)},$=j=>{if(m.value=!0,he(l.showTip)){let J=d.value;ue(J)&&(J=l.hintText),ue(J)||(T.value=J,C.value=!0)}g.value="",c("focus",p.value,j)},V=j=>{if(setTimeout(()=>{m.value=!1,he(l.showTip)&&C.value===!0&&(C.value=!1)},0),!ue(d.value)){let J=Dr(d.value,l);if(J.minValid===!1||J.maxValid===!1){g.value=J.message;return}}c("update:modelValue",p.value,j),c("blur",p.value,j)},E=t.computed(()=>({[`${S}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),B=t.computed(()=>{const j={};return r.slots.append&&!P.value&&!q.value&&(j.display="none"),j}),P=t.computed(()=>be(l.unit)>0),L=t.computed(()=>!q.value),D=t.computed(()=>({[`${S}__unit`]:!0,hidden:!L.value})),I=j=>{p.value="",c("update:modelValue","",j),c("change","",j),c("clear","")},U=t.computed(()=>he(l.clearable)&&!s.value&&!i.value),q=t.computed(()=>{let j=be(p.value)>0;return he(l.clearable)&&j&&m.value}),Y=t.computed(()=>({action:!0,hidden:!q.value}));return()=>{let j={class:b.value,style:u.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:A,onFocus:$,onBlur:V},J=[],ee=t.h("input",j);J.push(ee);let W=[];if(U.value){const X={class:["action-icon"]},K=t.h(o,X),H={class:Y.value,onClick:I},Z=t.h("view",H,{default:()=>[K]});W.push(Z)}if(P.value){const X=t.h("view",{class:D.value},[l.unit]);W.push(X)}const v={class:E.value,style:B.value},z=t.h("view",v,{default:()=>W});J.push(z);const x={default:()=>J};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 M={...ut(l,Ir),errorTip:w.value,hintText:T.value,hintVisible:C.value,hintType:"number",prop:`${l.prop}_item`};return t.h(a,M,x)}}}}const{componentName:Ic,create:xc,scope:qc}=Q("money-item"),vo=xc(Dc(Ic,qc,we,le.CircleClose)),Mo={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:vc,create:Mc,scope:Pc}=Q("textarea"),Lc=Mc({props:{...Mo},emits:["update:modelValue","change","blur","focus"],setup(e,{emit:n}){let{toLocaleRefs:a}=re.useFoxI18n(Pc);const o=a(e,["placeholder"]),l=t.ref(),r=t.computed(()=>{const h=vc;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:S}=e.autosize;y!==void 0&&(k=Math.min(k,y)),S!==void 0&&(k=Math.max(k,S))}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})}}}}),zc=["rows","disabled","readonly","value","maxlength","placeholder","autofocus"],Fc={key:0,class:"fox-textarea__limit"};function Rc(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,zc),e.limitShow?(t.openBlock(),t.createElementBlock("view",Fc,t.toDisplayString(e.modelValue?e.modelValue.length:0)+"/"+t.toDisplayString(e.maxLength),1)):t.createCommentVNode("",!0)],2)}const $n=oe(Lc,[["render",Rc]]);function Oc(e,n,a,o){return{props:{...pe,...ye,...Mo},emits:["update:modelValue","change","blur","focus"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:c}=Be({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),m=Ie(l,"modelValue"),p=S=>{m.value=S,c("update:modelValue",S,{}),c("change",S,{})};let d=Ie(l,"hintText"),h=t.ref(!1);const k=S=>{ue(d.value)||(h.value=!0),c("focus",m.value,S)},y=S=>{setTimeout(()=>{h.value&&(h.value=!1)},0),c("blur",m.value,S)};return()=>{const b={...ke(l,Mo),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":p,onFocus:k,onBlur:y},f=[],u=t.h(o,b);f.push(u);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 w=ke(l,ye,pe);return t.h(a,{...w,prop:`${l.prop}_item`},g)}}}}const{componentName:Kc,create:Uc,scope:Hc}=Q("textarea-item"),Po=Uc(Oc(Kc,Hc,we,$n));function jc(e){return e===window}const De=e=>{const n=t.unref(e);if(jc(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 Wc=2e3;const xr=()=>Wc++,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:{}}},Yc=(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=xr());const r=t.computed(()=>{const S=e,b=[S,`${S}--${a.position}`];return a.round&&b.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&b.push(`${S}--${a.position}--safebottom`),typeof a.popClass=="string"?b.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(f=>{b.push(f)}),b}),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=xr(),a.destroyOnClose&&(l.showSlot=!0),o("open")},m=()=>{o("update:visible",!1),o("close"),a.destroyOnClose&&setTimeout(()=>{l.showSlot=!1},+a.duration*1e3)},p=S=>{o("click-pop",S)},d=S=>{S.stopPropagation(),o("click-close-icon",S),o("update:visible",!1)},h=S=>{o("click-overlay",S),a.closeOnClickOverlay&&o("update:visible",!1)},k=S=>{o("opend",S)},y=S=>{o("closed",S)};return t.watch(()=>a.visible,S=>{a.visible?c():m()}),t.watch(()=>a.closeable,S=>{l.closed=S}),{...t.toRefs(l),popStyle:s,transitionName:i,classes:r,onClick:p,onClickCloseIcon:d,onClickOverlay:h,onOpened:k,onClosed:y}}});let qt=0;const qr="fox-overflow-hidden",vr=()=>nt?document.body:{classList:[]},Xc=e=>[()=>{if(e())try{!qt&&vr().classList.add(qr),qt++}catch{}},()=>{if(e()&&qt)try{qt--,!qt&&vr().classList.remove(qr)}catch{}}],Qc={visible:{type:Boolean,default:!1},zIndex:{type:[Number,String],default:2e3},duration:{type:[Number,String],default:.3},lockScroll:{type:Boolean,default:!0},overlayClass:{type:String,default:""},overlayStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}},{componentName:Gc,create:Zc}=Q("overlay"),Jc=Zc({props:{...Qc},emits:["click","update:visible"],setup(e,{emit:n}){const[a,o]=Xc(()=>e.lockScroll),l=t.computed(()=>({[Gc]:!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 _c(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 st=oe(Jc,[["render",_c]]),{componentName:ed,create:td}=Q("popup"),nd=td(Yc(ed,{FoxOverLay:st,Close:le.Close}));function od(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 fe=oe(nd,[["render",od]]),Mr=10;function Pr(e,n){return e>n&&e>Mr?"horizontal":n>e&&n>Mr?"vertical":""}function Lo(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function zo(){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=Pr(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 Je(){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(""),d=()=>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:b=>{if(b.touches){const g=b.touches[0];s.value=g.clientX-e.value,i.value=g.clientY-n.value,l.value=g.clientX,r.value=g.clientY}else{const u=b;s.value=u.clientX-e.value,i.value=u.clientY-n.value,l.value=u.clientX,r.value=u.clientY}c.value=Math.abs(s.value),m.value=Math.abs(i.value),o.value=Date.now()-a.value,p.value||(p.value=Pr(c.value,m.value))},start:b=>{if(k(),b.touches){const g=b.touches[0];e.value=g.clientX,n.value=g.clientY}else{const u=b;e.value=u.clientX,n.value=u.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:d,isHorizontal:h}}const Lr={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}},Fo={...ze,...Lr,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 zr=36;function ld(){return zr}function ad(e){zr=e}function Fe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ro(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function rd(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function it(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Fr(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let sd=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=Ge(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):($e(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function id(){const e=t.getCurrentInstance();return new sd(e.proxy)}function Rr(e,n,a){const o=Fe(e,n),l=Fe(e,a);if(o!==l)return!1;const r=it(e,n),s=it(e,a);return r===s}function cd(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 Fe(e,p)===i;if(r==="value"){let d=it(e,p);return d==null&&(d=Fe(e,p)),d===i}else if(r==="item")return Rr(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(d=>{if(r==="text")return Fe(e,d)===c;if(r==="value"){let h=it(e,d);return h==null&&(h=Fe(e,d)),h===c}else if(r==="item")return Rr(e,d,c)});if(m==-1)break;l.push(m);const p=Ro(e,s[m]);if(!Array.isArray(p))break;s=p}}return l}function Or(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=Fe(e,m);if(l.texts.push(p),l.items.push(m),r==="text")l.values.push(p);else if(r==="value"){let d=it(e,m);d==null&&(d=p),l.values.push(d)}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 d=Fe(e,m);if(l.texts.push(d),l.items.push(p),r==="text")l.values.push(d);else if(r==="value"){let h=it(e,m);h==null&&(h=d),l.values.push(h)}else l.values.push(p);if(!Array.isArray(m.children))break;s=m.children}}return l}function Kr(e){return{text:e,value:e}}const dd=15,ud=300,fd=200,{create:md}=Q("picker-column");function pd(e){e.stopPropagation()}function hd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&pd(e)}const gd=md({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},...Lr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${me(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=A=>A>=d.currIndex+8||A<=d.currIndex-8,i=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${r.value}px`})),c=A=>`transform: rotate3d(1, 0, 0, ${-d.rotation*A}deg) translate3d(0px, 0px, 104px)`,m=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+r.value}px, 0)`})),p=t.ref(null),d=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=A=>Fe(e,A),k=A=>it(e,A),y=Je(),S=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},b=(A,$=!1,V=!1)=>{if(d.currIndex=A,$){const E=()=>{d.moving=!1,n("update:modelValue",A),n("change",A)};V?d.transitionEndTrigger=E:E()}},f=(A,$,V)=>{let E=A+d.startDistance;if($==="end"){const B=-(e.source.length-1)*e.itemHeight;E<B&&(E=B),E>0&&(E=0);let P=Math.abs(Math.round(-E/e.itemHeight));const L=-P*e.itemHeight,D=`${(P+1)*d.rotation}deg`,I=V?V>0:!1;b(P,!0,I),u(L,$,V,D)}else{let B=(-E/e.itemHeight+1)*d.rotation;const P=(e.source.length+1)*d.rotation,L=0;if(B=Math.min(Math.max(B,L),P),e.threeDimensional&&(B<L||B>P))return;u(E,null,void 0,`${B}deg`)}},u=(A=0,$,V=fd,E)=>{$==="end"?d.scrollTime=V:d.scrollTime=0,d.deg=E,d.scrollDistance=A},g=(A,$)=>(A=Math.abs(A/$)/.003*(A<0?-1:1),A),w=A=>{e.readonly||(d.startDistance=d.scrollDistance,y.start(A),d.transitionEndTrigger=null)},T=A=>{e.readonly||(d.moving=!0,y.move(A),y.isVertical()&&(d.moving=!0,hd(A,!0)),f(y.deltaY.value,"",0))},C=()=>{if(e.readonly)return;const A=y.deltaY.value,$=y.duration.value;if($<ud&&Math.abs(A)>dd){const E=g(A,$);f(E,"end",e.swipeDuration)}else f(A,"end",0)};return t.watch(()=>e.modelValue,A=>{const $=d.currIndex-A;if($!==0){d.currIndex=A,d.startDistance=d.scrollDistance;const V=$*e.itemHeight;f(V,"",0)}}),t.watch(()=>e.source,A=>{if(d.currIndex>=A.length){const E=(A.length-1-d.currIndex)*e.itemHeight;d.startDistance=d.scrollDistance,f(E,"end",0)}}),t.watch(()=>e.visible,A=>{A===!1&&S()}),t.onMounted(()=>{const A=-e.modelValue*e.itemHeight;f(A)}),{classes:a,styles:o,contentClasses:l,itemText:h,itemValue:k,...t.toRefs(d),roller:p,getItemText:Fe,onTouchStart:w,onTouchMove:T,onTouchEnd:C,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:m,stopMomentum:S}}}),yd={key:1,class:"fox-picker__item-tile"};function bd(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",yd,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const kd=oe(gd,[["render",bd]]),{create:Sd,componentName:Cd,scope:wd}=Q("picker"),Nd=Sd({components:{Column:kd,Popup:fe},props:{...Fo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=re.useFoxI18n(wd),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(ld());t.watch(()=>e.visible,B=>{B&&s.value<=0&&setTimeout(()=>{if(r.value){const P=De(r.value);s.value=P.height,ad(s.value)}},50)});const i=t.computed(()=>({[Cd]:!0})),c=id(),m=t.ref("singleColumn");let p=t.ref([]);t.watch([()=>e.source,()=>e.params],async([B,P])=>{if(B){let L=await c.load("picker",B,P);if(L.length>0){let D=L[0];if(Array.isArray(D)){if(typeof D[0]=="string"){let I=L,U=[];I.forEach(q=>{let Y=q.map(j=>Kr(j));U.push(Y)}),p.value=U}else p.value=L;m.value="multipleColumn"}else if(typeof D=="string"){let I=L,U=[],q=I.map(Y=>Kr(Y));U.push(q),p.value=U,m.value="singleColumn"}else{const I=Ro(e,D);Array.isArray(I)?(m.value="cascade",p.value=[L]):(m.value="singleColumn",p.value=[L])}}else p.value=[]}},{immediate:!0});const d=t.ref([]),h=t.ref(e.modelValue),k=t.ref([]),y=t.ref([]);t.watch([()=>e.modelValue,()=>p.value],([B,P])=>{let L=cd(e,B,P,m.value);if(!Me(L,y.value)){y.value=L;let D=Or(e,L,P,m.value);D&&(d.value=D.texts,n("update:text",d.value))}});const S=t.ref(e.visible);t.watch(()=>e.visible,B=>{S.value=B});const b=B=>{let P=Fr(e,B);return $e(P)?P.defaultIndex??0:0},f=B=>{if(e.readonly===!0)return!0;let P=Fr(e,B);return $e(P)?P.readonly??!1:!1},u=(B,P)=>{let L=y.value;L[B]=P;for(let I=0;I<B;I++)L[I]==null&&(L[I]=b(I));if(m.value==="cascade")for(let I=B+1;I<w.value.length;I++){let U=b(I);I<L.length?L[I]=U:L.push(U)}else for(let I=L.length;I<w.value.length;I++){let U=b(I);L.push(U)}y.value=L;let D=Or(e,L,p.value,m.value);D&&(d.value=D.texts,h.value=D.values,k.value=D.items)},g=B=>B<y.value.length?y.value[B]:b(B),w=t.computed(()=>{if(p.value.length==0)return[];if(m.value=="singleColumn"||m.value=="multipleColumn")return p.value;let B=[],P=0,L=p.value[0],D=0;for(;;){let I=L.map(Y=>{let j=Object.assign({},Y);return rd(e,j,null),j});B.push(I),P>=y.value.length?D=0:D=y.value[P],(D<0||D>=L.length)&&(D=0);let U=L[D];const q=Ro(e,U);if(!Array.isArray(q))break;L=q,P++}return B}),T=t.computed(()=>me(+e.visibleItemCount-1)/2*s.value),C=(B=!1)=>{if(e.readonly===!0){B&&n("update:visible",!1);return}let P=p.value.length-1;for(;P>=0&&!(y.value[P]===null||y.value[P]===void 0);P--);if(P>=0&&u(P,0),m.value==="singleColumn"){let L=h.value.length>0?h.value[0]:"",D=k.value.length>0?k.value[0]:null;n("update:modelValue",L),n("update:text",d.value),n("change",L,D),B&&(n("confirm",L),n("update:visible",!1))}else n("update:modelValue",h.value),n("update:text",d.value),n("change",h.value,k.value),B&&(n("confirm",h.value),n("update:visible",!1))};return{...l,pickerLineRef:r,classes:i,columns:w,dataType:m,show:S,itemHeight:s,top:T,isReadonly:f,getIndex:g,change:(B,P)=>{if(u(B,P),e.isAutoBackFill){const L=!S.value;C(L)}},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{C(!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)}}}}),Bd={class:"fox-picker__bar"},Ad={class:"fox-picker__title"},Td={class:"fox-picker__bar__action"},$d={class:"fox-picker__column"};function Vd(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",Bd,[t.createElementVNode("view",Ad,t.toDisplayString(e.title),1),t.createElementVNode("view",Td,[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",$d,[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=oe(Nd,[["render",Vd]]);function Ed(e,n,a,o,l,r,s=!0){return{props:{...pe,...ye,...Fo,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=Ae(t.computed(()=>i.disabled)),p=Ve(t.computed(()=>i.readonly)),{emitEvent:d}=Be({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),k=h(i,["placeholder"]),y=t.ref(!1),S=Ie(i,"modelValue"),b=t.ref([]),f=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),u="fox-input-item",g=t.computed(()=>({[u]:!0,"is-disabled":m.value,"is-readonly":p.value})),w=Te(t.computed(()=>i.textAlign),"textAlign"),T=t.computed(()=>{const z={};return w.value&&(z["text-align"]=w.value),z}),C=t.ref(!1),A=()=>{C.value=!0},$=z=>{C.value=z},V=z=>{S.value=z,d("update:modelValue",z)},E=(z,x)=>{d("change",z,x)},B=z=>{let R=z.target.value;y.value=!0,d("focus",R,z)},P=z=>{setTimeout(()=>{y.value=!1},0);let R=z.target.value;i.maxLength&&R.length>Number(i.maxLength)&&(R=R.slice(0,Number(i.maxLength))),d("blur",R,z)},L=z=>{b.value=z,Array.isArray(z)&&z.length===0?d("update:text",z[0]):d("update:text",z)},D=t.computed(()=>({[`${u}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),I=t.computed(()=>be(i.unit)>0),U=t.computed(()=>be(i.unit)>0&&!y.value),q=t.computed(()=>({hidden:!U.value})),Y=z=>{S.value="",d("update:modelValue","",z),d("change","",z),d("clear","")},j=t.computed(()=>i.clearable&&!m.value&&!p.value),J=t.computed(()=>be(S.value)>0&&y.value),ee=z=>{J.value?Y(z):A()},W=t.computed(()=>J.value&&j.value?o:l),v=t.computed(()=>({action:!0}));return()=>{const z={class:g.value,style:T.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:A,onFocus:B,onBlur:P};s&&(z.disabled=!0);const x=[],R=t.h("input",z);x.push(R);const M=[],O={class:["action-icon"]},X=t.h(W.value,O),K={class:v.value,onClick:ee},H=t.h("view",K,{default:()=>[X]});if(M.push(H),I.value){const de=t.h("view",{class:q.value},[i.unit]);M.push(de)}const Z={class:D.value},G=t.h("view",Z,{default:()=>M});x.push(G);const _={default:()=>x};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const F=ke(i,Fo);F.disabled=!1,F.readonly=m.value||p.value,F.visible=C.value,F["onUpdate:visible"]=$,F.modelValue=S.value,F["onUpdate:modelValue"]=V,F.text=b.value,F["onUpdate:text"]=L,F.onChange=E;const te=t.h(r,F);_.hide=()=>[te];const ne=ke(i,ye,pe);return t.h(a,ne,_)}}}}const{componentName:Dd,create:Id,scope:xd}=Q("picker-item"),Oo=Id(Ed(Dd,xd,we,le.CircleClose,le.ArrowRight,bt,!1)),Vn=(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,d={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:m,_parent:n};return d.children&&d.children.length&&(d.children=Vn(d.children,d,a)),d}),Ur=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&Ur(o.children,n)},qd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},vd=(e,n)=>{const a={...qd,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(m=>{m={...m};const{[l]:p,[r]:d}=m,h=c[d]=c[d]||[];!i.length&&d===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,d)=>p[s]-d[s])}),c=null,i},Md={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}},Hr=(e,n)=>n[e.textKey],vt=(e,n)=>n[e.valueKey],Pd=(e,n)=>n[e.visibleKey],jr=(e,n)=>n[e.disabledKey],Ld=(e,n)=>{const a=n[e.doitKey];return he(a)},zd=(e,n)=>{const a=n[e.numKey];return a==null?null:me(n[a])},Wr=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function Fd(e,n,a,o=!1){return{props:{...Md},emits:["update:modelValue","change","click"],setup(l,{slots:r,emit:s}){const i=t.computed(()=>{const W={};return W[`${e}`]=!0,W}),c=t.computed(()=>{const W={};return W[`${e}__titles`]=!0,W[`${l.direction}`]=!0,l.align==="left"&&(W.left=!0),l.scroll===!0&&(W.scrollable=!0),l.shape&&(W[`${l.shape}`]=!0),W}),m=t.computed(()=>({})),p=t.computed(()=>{if(!l.gutter)return 0;const W=ce(l.gutter);return W<=0?0:W}),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,W=>{d.value!==W&&(d.value=W,q(!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 W={};return S.value||(W.display="none"),W}),y=t.ref(),S=t.ref(!1),b=()=>{const W=!S.value;f(W)},f=W=>{const v=W;v?(S.value=v,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",()=>{S.value=!1},{once:!0}):setTimeout(()=>{S.value=!1},0))},u=t.ref(),g=t.ref([]),w=(W,v)=>{g.value[v]=W},T=W=>v=>{w(v,W)},C=(W,v)=>{const z=u.value,x=g.value;if(!z||!x||!x[W])return;const R=x[W];let M=0;l.direction==="vertical"?M=R.offsetTop-(z.offsetHeight-R.offsetHeight)/2:M=R.offsetLeft-(z.offsetWidth-R.offsetWidth)/2,A(z,M,v?0:.3,l.direction)},A=(W,v,z,x)=>{let R=0;const M=x==="horizontal"?W.scrollLeft:W.scrollTop,O=z===0?1:Math.round(z*1e3/16);function X(){x==="horizontal"?W.scrollLeft+=(v-M)/O:W.scrollTop+=(v-M)/O,++R<O&&Oe(X)}X()},$=(W,v)=>{const z=vt(l,W),x={};return x[`${e}__titles-item`]=!0,x.disabled=jr(l,W),x.active=z===d.value,l.shape&&(x[`${l.shape}`]=!0),l.ellipsis&&(x.ellipsis=!0),v&&(v.class&&(x[`${v.class}`]=!0),v.disabled===!0&&(x.disabled=v.disabled)),x},V=(W,v)=>{const z={};if(p.value>0){const x=Math.abs(p.value/2);l.direction==="vertical"?(z["margin-top"]=`${x}px`,z["margin-bottom"]=`${x}px`):(z["margin-left"]=`${x}px`,z["margin-right"]=`${x}px`)}return v&&v.style&&Object.assign(z,v.style),z},E=(W,v)=>`${vt(l,W)??v}`,B=(W,v)=>{const z=vt(l,W),x={};x[`${e}__popup-item`]=!0,x.disabled=jr(l,W),x.active=z===d.value,l.shape&&(x[`${l.shape}`]=!0);const R=Wr(l,W,v);return R&&R.disabled===!0&&(x.disabled=R.disabled),x},P=t.computed(()=>(l.data??[]).filter(v=>Pd(l,v)!==!1)),L=(W,v)=>{const z=vt(l,W);if(s("click",W,v),d.value==z)return;const x=()=>{d.value=z,l.scroll&&C(v,!1),s("update:modelValue",z),s("change",W,v)};if(typeof l.beforeChange=="function"){const R=l.beforeChange(W,v);dt(R)?R.then(M=>{M!==!1&&x()}).catch(()=>{x()}):R!==!1&&x()}else x()},D=(W,v)=>function(){L(W,v)},I=(W,v)=>{L(W,v),f(!1)},U=(W,v)=>function(){I(W,v)},q=W=>{if(!Array.isArray(l.data)||!l.scroll)return;const v=l.data.findIndex(z=>vt(l,z)===d.value);v!==-1&&C(v,W)};t.watch(()=>l.data,()=>{setTimeout(q,0)}),t.onMounted(()=>{q(!0)});const Y=(W,v)=>{if(r.item)return r.item({item:W,index:v});const z=Wr(l,W,v),x=[];if(r.text){const X=r.text({item:W,index:v});x.push(X)}else{const X=[];if(z?.doit===!0||Ld(l,W)){const G={class:[`${e}__titles-item-tip`,"doit"]},_=t.h("view",G);X.push(_)}const K=z?.num??zd(l,W);if(K){let G="";const _=me(K);_>=100?G="99+":G=`${_}`;const F={class:[`${e}__titles-item-tip`,"num"]},te=t.h("view",F,[G]);X.push(te)}const H={class:`${e}__titles-item-text`};X.push(Hr(l,W));const Z=t.h("view",H,X);x.push(Z)}const R={class:`${e}__titles-item-line`},M=t.h("view",R);x.push(M);const O={ref:T(v),class:$(W,z),style:V(W,z),key:E(W,v),onClick:D(W,v)};return t.h("view",O,x)},j=()=>{const W=r.default?r.default():[];if(W.length===0)for(let z=0;z<P.value.length;z++){const x=P.value[z],R=Y(x,z);W.push(R)}const v={ref:u,class:c.value,style:m.value};return t.h("view",v,W)},J=()=>{let W=null;r.navigation?W=r.navigation():W=t.h(a);const v={class:`${e}__navigation`,onClick:b};return t.h("view",v,[W])},ee=()=>{const W=[];for(let z=0;z<P.value.length;z++){const x=P.value[z];let R=null;r.popupItem?R=r.popupItem({item:x,index:z}):R=Hr(l,x);const M={class:B(x,z),key:E(x,z),onClick:U(x,z)},O=t.h("view",M,[R]);W.push(O)}const v={class:h.value,style:k.value};return t.h("view",v,W)};return()=>{const W=[],v=j();if(W.push(v),l.showQuickNavigation){const x=J();W.push(x);const R=ee();W.push(R)}const z={class:i.value};return t.h("view",z,W)}}}}const{create:Rd,componentName:Od,scope:Kd}=Q("tabs-bar"),En=Rd(Fd(Od,Kd,le.MoreH,!1)),Yr=Symbol("TabsStatesKey"),Ud={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function Hd(e,n,a=!1){return{props:{...Ud},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:S=>{const b={name:S};i.current.value===S&&(b.loaded=!0),s.value.push(b),t.triggerRef(s)},remove:S=>{const b=s.value.findIndex(f=>f.name===S);b!==-1&&s.value.splice(b,1)},isLoaded:S=>{if(!o.lazy)return!0;const b=s.value.findIndex(f=>f.name===S);return b!==-1?i.current.value?s.value[b].loaded??!1:b===0:!1}};t.provide(Yr,i);const c=S=>{const b=s.value.findIndex(f=>f.name===S);b!==-1&&(s.value[b].loaded=!0,t.triggerRef(s))};t.watch([()=>o.modelValue,()=>o.direction],([S,b])=>{i.current.value!==S&&(i.current.value=S??"",c(S??"")),i.direction.value!==b&&(i.direction.value=b)});const m=t.ref(null),p=t.ref(null),d=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0}));let h=!0;const k=t.computed(()=>{const S={},b=s.value.length;if(b<=0)return S;const f=s.value.findIndex(u=>u.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(S.height=`${b*i.tabHeight.value}px`,f!==-1&&(S.transform=`translate(0, -${f*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(S.width=`${b*i.tabWidth.value}px`,f!==-1&&(S.transform=`translate(-${f*i.tabWidth.value}px, 0)`)),h&&(h=!1,S.transition="transform 0s ease"),S});let y=null;return t.onMounted(()=>{if(!m.value)return;const S=()=>{const b=bn(m.value);i.tabWidth.value=b.width,i.tabHeight.value=b.height};window.ResizeObserver&&(y=new window.ResizeObserver(S),y.observe(m.value)),S()}),t.onBeforeUnmount(()=>{y&&(y.disconnect(),y=null)}),()=>{const S={class:`${e}__panes`,style:k.value,ref:p},b=t.h("view",S,[r?.default?.()]),f={class:d.value,ref:m};return t.h("view",f,[b])}}}}const{create:jd,componentName:Wd,scope:Yd}=Q("tabs-container"),Dn=jd(Hd(Wd,Yd,!1)),Xd={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Qd(e,n,a){return{props:{...Xd},setup(o,{emit:l,slots:r}){const s=t.inject(Yr);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?he(o.loaded):s.isLoaded(o.paneKey));return()=>{let m=[];if(c.value)m=r?.default?.()??[];else if(r.empty)m=r.empty();else{const d={class:`${e}__empty-icon`},h=o.emptyIcon??a,k=t.h(h,d),y={class:`${e}__empty-text`},S=o.emptyText??"Loading",b=t.h("view",y,[S]),f={class:`${e}__empty`},u=t.h("view",f,[k,b]);m.push(u)}const p={class:`${e}`,style:i.value};return t.h("view",p,m)}}}}const{create:Gd,componentName:Zd,scope:Jd}=Q("tabs-pane"),In=Gd(Qd(Zd,Jd,le.Loading));class Xr{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=Vn(n,null,this.config)}updateChildren(n,a){a?a.children=Vn(n,a,this.config):this.nodes=Vn(n,null,this.config)}getNodeByValue(n){let a;return Ur(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:_d,scope:eu}=Q("cascader-pane"),tu=_d({components:{Loading:le.Loading,Checklist:le.Checklist,TabsBar:En,TabsContainer:Dn,TabsPane:In},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(eu),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 Xr([],{})),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((u,g)=>({text:u.selectedNode?u.selectedNode.text:a("select"),value:g}))),d=new Map;let h;const k=async()=>{d.clear(),c.value=[],l.value=0,r.value=!1,h=null;let{options:u}=e;o.value.convertConfig&&(u=vd(u,o.value.convertConfig)),i.value=new Xr(u,{value:o.value.valueKey,text:o.value.textKey,children:o.value.childrenKey}),m.value&&!i.value.nodes.length&&await S({root:!0,loading:!0,text:"",value:""}),c.value=[{nodes:i.value.nodes,selectedNode:null}],y()},y=async()=>{const u=s.value;if(u===void 0||!i.value.nodes.length)return;if(u.length===0){l.value=0,c.value=[{nodes:i.value.nodes,selectedNode:null}];return}let g=u;if(m.value&&Array.isArray(u)&&u.length){g=[];let w=i.value.nodes.find(T=>T.value===u[0]);if(w){g=[w.value],r.value=!0;const T=await u.slice(1).reduce(async(C,A)=>{const $=await C;await S($);const V=$?.children?.find(E=>E.value===A);return V&&g.push(A),Promise.resolve(V)},Promise.resolve(w));await S(T),r.value=!1}}g.length&&u===e.modelValue&&i.value.getPathNodesByValue(g).map((T,C)=>{l.value=C,f.handleNode(T,!0)})},S=async u=>{if(!u)return;if(!o.value.lazyLoad){u.leaf=!0;return}if(i.value.isLeaf(u,m.value)||i.value.hasChildren(u,m.value))return;u.loading=!0;const g=u.root?null:u;let w=d.get(u);w||(w=new Promise(C=>{o.value.lazyLoad?.(u,C)}),d.set(u,w));const T=await w;Array.isArray(T)&&T.length>0?i.value.updateChildren(T,g):u.leaf=!0,u.loading=!1,d.delete(u)},b=u=>{const g=u.map(w=>w.value);s.value=g,n("change",g,u),n("update:modelValue",g,u)},f={async handleNode(u,g){const{disabled:w,loading:T}=u;if(!(!g&&w||!c.value[l.value])){if(i.value.isLeaf(u,m.value)){if(u.leaf=!0,c.value[l.value].selectedNode=u,c.value=c.value.slice(0,u.level+1),!g){const C=c.value.map(A=>A.selectedNode);b(C),n("pathChange",C)}return}if(i.value.hasChildren(u,m.value)){const C=u.level+1;if(c.value[l.value].selectedNode=u,c.value=c.value.slice(0,C),c.value.push({nodes:u.children||[],selectedNode:null}),l.value=C,!g){const A=c.value.map($=>$.selectedNode);n("pathChange",A)}return}h=u,!T&&(await S(u),h===u&&(c.value[l.value].selectedNode=u,f.handleNode(u,g)))}},handleTabChange(u,g){h=null},formatTabTitle(u){return u.selectedNode?u.selectedNode.text:a("select")},isSelected(u,g){return u.selectedNode&&u.selectedNode.value===g.value}};return t.watch([o,()=>e.options],()=>{k()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,u=>{u!==s.value&&(s.value=u,y())}),t.watch(()=>e.visible,u=>{u&&Array.isArray(s.value)&&s.value.length>0&&y()}),{panes:c,panesTitles:p,initLoading:r,tabsCursor:l,...f}}}),nu={class:"fox-cascader"},ou={role:"menu",class:"fox-cascader__pane"},lu=["aria-checked","aria-disabled","onClick"],au={class:"fox-cascader__item__title"},ru=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function su(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",nu,[t.createVNode(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=d=>e.tabsCursor=d),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]=d=>e.tabsCursor=d)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(d,h)=>(t.openBlock(),t.createBlock(m,{"pane-key":h,key:h},{default:t.withCtx(()=>[t.createElementVNode("view",ou,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,k=>(t.openBlock(),t.createElementBlock("view",{key:k.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,k),disabled:k.disabled}]),"aria-checked":e.isSelected(d,k),"aria-disabled":k.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(k,!1)},[t.createElementVNode("view",au,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,lu))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(m,{key:1,"pane-key":0},{default:t.withCtx(()=>[ru]),_:1}))]),_:1},8,["modelValue"])])}const iu=oe(tu,[["render",su]]),{create:cu}=Q("cascader"),du=cu({components:{FoxCascaderPane:iu,FoxPopup:fe},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}}}),uu=["innerHTML"];function fu(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,uu)):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 xn=oe(du,[["render",fu]]);function Mt(e,n){const a=e.textKey??"text";return n[a]??""}function Pt(e,n){const a=e.valueKey??"value";return n[a]}function Qr(e,n){const a=e.childrenKey??"children";return n[a]}function qn(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=Mt(e,l),s=Pt(e,l);a.texts.push(r),a.values.push(s??"")}return a}function Gr(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Mt(e,n[s])===r){const c=Pt(e,n[s])??"",m={[e.textKey]:r,[e.valueKey]:c};l.push(m);const p=Qr(e,n[s]);Array.isArray(p)&&Gr(e,p,a,o+1,l);return}}function Zr(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Pt(e,n[s])===r){const c=Mt(e,n[s])??"",m={[e.textKey]:c,[e.valueKey]:r};l.push(m);const p=Qr(e,n[s]);Array.isArray(p)&&Zr(e,p,a,o+1,l);return}}function Ko(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=Mt(e,n[o]),r=Mt(e,a[o]);if(l!==r)return!1;const s=Pt(e,n[o]),i=Pt(e,a[o]);if(s!==i)return!1}return!0}let mu=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=Ge(this.proxy,o);return l===null?(console.error(`${o} component not found api function`),[]):($e(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await l(n,a))}};function pu(){const e=t.getCurrentInstance();return new mu(e.proxy)}const Jr={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 hu(e,n,a,o,l,r,s=!1){return{props:{...pe,...ye,...Jr},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes"],setup(i,c){const m=Ae(t.computed(()=>i.disabled)),p=Ve(t.computed(()=>i.readonly)),{emitEvent:d}=Be({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),k=h(i,["placeholder"]),y=t.ref(!1),S=pu(),b=t.ref([]);t.watch([()=>i.source,()=>i.params],async([R,M])=>{R&&(b.value=await S.load(R,M))},{immediate:!0});const f=t.ref([]),u=t.computed(()=>Array.isArray(f.value)?f.value.join(" "):f.value),g=t.ref([]),w=t.ref([]);t.watch([()=>i.modelValue],async([R])=>{if(i.lazy===!0){w.value.length==0&&(f.value=Array.isArray(R)?R:[],g.value=Array.isArray(R)?R:[]);return}if(i.valueType==="item"){let M=R;if(!Ko(i,M,w.value)){w.value=M;let O=qn(i,M);f.value=O.texts,g.value=O.values}}else if(i.valueType==="text"){let M=R,O=[];if(Gr(i,b.value,M,0,O),!Ko(i,O,w.value)){w.value=O;let X=qn(i,O);M.value=X.texts,g.value=X.values}}else{let M=[];if(Zr(i,b.value,R,0,M),!Ko(i,M,w.value)){w.value=M;let O=qn(i,M);f.value=O.texts,g.value=O.values}}},{immediate:!0});const T="fox-input-item",C=t.computed(()=>({[T]:!0,"is-disabled":m.value,"is-readonly":p.value})),A=Te(t.computed(()=>i.textAlign),"textAlign"),$=t.computed(()=>{const R={};return A.value&&(R["text-align"]=A.value),R}),V=t.ref(!1),E=()=>{m.value===!0||p.value===!0||(V.value=!0)},B=R=>{V.value=R},P=(R,M)=>{let O=M.map(K=>{if(K==null)return K;let H={...K};return Reflect.deleteProperty(H,"text"),H[i.textKey]=K.text??"",Reflect.deleteProperty(H,"value"),H[i.valueKey]=K.value??"",H});w.value=O;let X=qn(i,O);f.value=X.texts,g.value=X.values,i.valueType==="text"?(d("change",f.value,O),d("update:modelValue",f.value)):i.valueType==="item"?(d("change",O,O),d("update:modelValue",O)):(d("change",g.value,O),d("update:modelValue",g.value)),d("update:pathNodes",O)},L=R=>{let M=R.map(O=>{if(O==null)return O;let X={...O};return Reflect.deleteProperty(X,"text"),X[i.textKey]=O.text??"",Reflect.deleteProperty(X,"value"),X[i.valueKey]=O.value??"",X});d("pathChange",M)},D=R=>{y.value=!0,d("focus",g.value,R)},I=R=>{setTimeout(()=>{y.value=!1},0),d("blur",g.value,R)},U=t.computed(()=>({[`${T}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),q=t.computed(()=>be(i.unit)>0),Y=t.computed(()=>be(i.unit)>0&&!y.value),j=t.computed(()=>({hidden:!Y.value})),J=R=>{w.value=[],f.value=[],g.value=[],d("update:modelValue",[]),d("change",[],R),d("clear",[]),d("update:pathNodes",[])},ee=t.computed(()=>i.clearable&&!m.value&&!p.value),W=t.computed(()=>{let R=g.value&&g.value.length>0;return i.clearable&&R&&y.value}),v=R=>{W.value?J(R):E()},z=t.computed(()=>W.value&&ee.value?o:l),x=t.computed(()=>({action:!0}));return()=>{const R={class:C.value,style:$.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:E,onFocus:D,onBlur:I};s&&(R.disabled=!0);const M=[],O=t.h("input",R);M.push(O);const X=[],K={class:["action-icon"]},H=t.h(z.value,K),Z={class:x.value,onClick:v},G=t.h("view",Z,{default:()=>[H]});if(X.push(G),q.value){const ve=t.h("view",{class:j.value},[i.unit]);X.push(ve)}const _={class:U.value},F=t.h("view",_,{default:()=>X});M.push(F);const te={default:()=>M};te.label=c.slots.default,te.prepend=c.slots.prepend,te.append=c.slots.append,te.fixedPreTip=c.slots.fixedPreTip,te.fixedTip=c.slots.fixedTip;let ne={};ne.visible=V.value,ne["onUpdate:visible"]=B,ne.modelValue=g.value,ne.onChange=P,ne.onPathChange=L,ne.options=b.value,ne.title=i.title,ne.lazy=i.lazy,ne.lazyLoad=i.lazyLoad,ne.valueKey=i.valueKey,ne.textKey=i.textKey,ne.childrenKey=i.childrenKey,ne.convertConfig=i.convertConfig;const se=t.h(r,ne);te.hide=()=>[se];const de=ut(i,Jr);return t.h(a,{...de,prop:`${i.prop}_item`},te)}}}}const{componentName:gu,create:yu,scope:bu}=Q("cascader-item"),Uo=yu(hu(gu,bu,we,le.CircleClose,le.ArrowRight,xn,!1));var We=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var _r={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",m="day",p="week",d="month",h="quarter",k="year",y="date",S="Invalid Date",b=/^(\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,u={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(L,D,I){var U=String(L);return!U||U.length>=D?L:""+Array(D+1-U.length).join(I)+L},w={s:g,z:function(L){var D=-L.utcOffset(),I=Math.abs(D),U=Math.floor(I/60),q=I%60;return(D<=0?"+":"-")+g(U,2,"0")+":"+g(q,2,"0")},m:function L(D,I){if(D.date()<I.date())return-L(I,D);var U=12*(I.year()-D.year())+(I.month()-D.month()),q=D.clone().add(U,d),Y=I-q<0,j=D.clone().add(U+(Y?-1:1),d);return+(-(U+(I-q)/(Y?q-j:j-q))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:d,y:k,w:p,d:m,D:y,h:c,m:i,s,ms:r,Q:h}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},T="en",C={};C[T]=u;var A=function(L){return L instanceof B},$=function L(D,I,U){var q;if(!D)return T;if(typeof D=="string"){var Y=D.toLowerCase();C[Y]&&(q=Y),I&&(C[Y]=I,q=Y);var j=D.split("-");if(!q&&j.length>1)return L(j[0])}else{var J=D.name;C[J]=D,q=J}return!U&&q&&(T=q),q||!U&&T},V=function(L,D){if(A(L))return L.clone();var I=typeof D=="object"?D:{};return I.date=L,I.args=arguments,new B(I)},E=w;E.l=$,E.i=A,E.w=function(L,D){return V(L,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var B=function(){function L(I){this.$L=$(I.locale,null,!0),this.parse(I)}var D=L.prototype;return D.parse=function(I){this.$d=function(U){var q=U.date,Y=U.utc;if(q===null)return new Date(NaN);if(E.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var j=q.match(b);if(j){var J=j[2]-1||0,ee=(j[7]||"0").substring(0,3);return Y?new Date(Date.UTC(j[1],J,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ee)):new Date(j[1],J,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ee)}}return new Date(q)}(I),this.$x=I.x||{},this.init()},D.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},D.$utils=function(){return E},D.isValid=function(){return this.$d.toString()!==S},D.isSame=function(I,U){var q=V(I);return this.startOf(U)<=q&&q<=this.endOf(U)},D.isAfter=function(I,U){return V(I)<this.startOf(U)},D.isBefore=function(I,U){return this.endOf(U)<V(I)},D.$g=function(I,U,q){return E.u(I)?this[U]:this.set(q,I)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(I,U){var q=this,Y=!!E.u(U)||U,j=E.p(I),J=function(O,X){var K=E.w(q.$u?Date.UTC(q.$y,X,O):new Date(q.$y,X,O),q);return Y?K:K.endOf(m)},ee=function(O,X){return E.w(q.toDate()[O].apply(q.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(X)),q)},W=this.$W,v=this.$M,z=this.$D,x="set"+(this.$u?"UTC":"");switch(j){case k:return Y?J(1,0):J(31,11);case d:return Y?J(1,v):J(0,v+1);case p:var R=this.$locale().weekStart||0,M=(W<R?W+7:W)-R;return J(Y?z-M:z+(6-M),v);case m:case y:return ee(x+"Hours",0);case c:return ee(x+"Minutes",1);case i:return ee(x+"Seconds",2);case s:return ee(x+"Milliseconds",3);default:return this.clone()}},D.endOf=function(I){return this.startOf(I,!1)},D.$set=function(I,U){var q,Y=E.p(I),j="set"+(this.$u?"UTC":""),J=(q={},q[m]=j+"Date",q[y]=j+"Date",q[d]=j+"Month",q[k]=j+"FullYear",q[c]=j+"Hours",q[i]=j+"Minutes",q[s]=j+"Seconds",q[r]=j+"Milliseconds",q)[Y],ee=Y===m?this.$D+(U-this.$W):U;if(Y===d||Y===k){var W=this.clone().set(y,1);W.$d[J](ee),W.init(),this.$d=W.set(y,Math.min(this.$D,W.daysInMonth())).$d}else J&&this.$d[J](ee);return this.init(),this},D.set=function(I,U){return this.clone().$set(I,U)},D.get=function(I){return this[E.p(I)]()},D.add=function(I,U){var q,Y=this;I=Number(I);var j=E.p(U),J=function(v){var z=V(Y);return E.w(z.date(z.date()+Math.round(v*I)),Y)};if(j===d)return this.set(d,this.$M+I);if(j===k)return this.set(k,this.$y+I);if(j===m)return J(1);if(j===p)return J(7);var ee=(q={},q[i]=o,q[c]=l,q[s]=a,q)[j]||1,W=this.$d.getTime()+I*ee;return E.w(W,this)},D.subtract=function(I,U){return this.add(-1*I,U)},D.format=function(I){var U=this,q=this.$locale();if(!this.isValid())return q.invalidDate||S;var Y=I||"YYYY-MM-DDTHH:mm:ssZ",j=E.z(this),J=this.$H,ee=this.$m,W=this.$M,v=q.weekdays,z=q.months,x=function(X,K,H,Z){return X&&(X[K]||X(U,Y))||H[K].slice(0,Z)},R=function(X){return E.s(J%12||12,X,"0")},M=q.meridiem||function(X,K,H){var Z=X<12?"AM":"PM";return H?Z.toLowerCase():Z},O={YY:String(this.$y).slice(-2),YYYY:this.$y,M:W+1,MM:E.s(W+1,2,"0"),MMM:x(q.monthsShort,W,z,3),MMMM:x(z,W),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:x(q.weekdaysMin,this.$W,v,2),ddd:x(q.weekdaysShort,this.$W,v,3),dddd:v[this.$W],H:String(J),HH:E.s(J,2,"0"),h:R(1),hh:R(2),a:M(J,ee,!0),A:M(J,ee,!1),m:String(ee),mm:E.s(ee,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:j};return Y.replace(f,function(X,K){return K||O[X]||j.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(I,U,q){var Y,j=E.p(U),J=V(I),ee=(J.utcOffset()-this.utcOffset())*o,W=this-J,v=E.m(this,J);return v=(Y={},Y[k]=v/12,Y[d]=v,Y[h]=v/3,Y[p]=(W-ee)/6048e5,Y[m]=(W-ee)/864e5,Y[c]=W/l,Y[i]=W/o,Y[s]=W/a,Y)[j]||W,q?v:E.a(v)},D.daysInMonth=function(){return this.endOf(d).$D},D.$locale=function(){return C[this.$L]},D.locale=function(I,U){if(!I)return this.$L;var q=this.clone(),Y=$(I,U,!0);return Y&&(q.$L=Y),q},D.clone=function(){return E.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},L}(),P=B.prototype;return V.prototype=P,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",m],["$M",d],["$y",k],["$D",y]].forEach(function(L){P[L[1]]=function(D){return this.$g(D,L[0],L[1])}}),V.extend=function(L,D){return L.$i||(L(D,B,V),L.$i=!0),V},V.locale=$,V.isDayjs=A,V.unix=function(L){return V(1e3*L)},V.en=C[T],V.Ls=C,V.p={},V})})(_r);var ku=_r.exports;const Re=Ye(ku);var es={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,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(S){return(S=+S)+(S>68?1900:2e3)},m=function(S){return function(b){this[S]=+b}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(S){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var f=b.match(/([+-]|\d\d)/g),u=60*f[1]+(+f[2]||0);return u===0?0:f[0]==="+"?-u:u}(S)}],d=function(S){var b=i[S];return b&&(b.indexOf?b:b.s.concat(b.f))},h=function(S,b){var f,u=i.meridiem;if(u){for(var g=1;g<=24;g+=1)if(S.indexOf(u(g,0,b))>-1){f=g>12;break}}else f=S===(b?"pm":"PM");return f},k={A:[s,function(S){this.afternoon=h(S,!1)}],a:[s,function(S){this.afternoon=h(S,!0)}],S:[/\d/,function(S){this.milliseconds=100*+S}],SS:[l,function(S){this.milliseconds=10*+S}],SSS:[/\d{3}/,function(S){this.milliseconds=+S}],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(S){var b=i.ordinal,f=S.match(/\d+/);if(this.day=f[0],b)for(var u=1;u<=31;u+=1)b(u).replace(/\[|\]/g,"")===S&&(this.day=u)}],M:[r,m("month")],MM:[l,m("month")],MMM:[s,function(S){var b=d("months"),f=(d("monthsShort")||b.map(function(u){return u.slice(0,3)})).indexOf(S)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[s,function(S){var b=d("months").indexOf(S)+1;if(b<1)throw new Error;this.month=b%12||b}],Y:[/[+-]?\d+/,m("year")],YY:[l,function(S){this.year=c(S)}],YYYY:[/\d{4}/,m("year")],Z:p,ZZ:p};function y(S){var b,f;b=S,f=i&&i.formats;for(var u=(S=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(V,E,B){var P=B&&B.toUpperCase();return E||f[B]||a[B]||f[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(L,D,I){return D||I.slice(1)})})).match(o),g=u.length,w=0;w<g;w+=1){var T=u[w],C=k[T],A=C&&C[0],$=C&&C[1];u[w]=$?{regex:A,parser:$}:T.replace(/^\[|\]$/g,"")}return function(V){for(var E={},B=0,P=0;B<g;B+=1){var L=u[B];if(typeof L=="string")P+=L.length;else{var D=L.regex,I=L.parser,U=V.slice(P),q=D.exec(U)[0];I.call(E,q),V=V.replace(q,"")}}return function(Y){var j=Y.afternoon;if(j!==void 0){var J=Y.hours;j?J<12&&(Y.hours+=12):J===12&&(Y.hours=0),delete Y.afternoon}}(E),E}}return function(S,b,f){f.p.customParseFormat=!0,S&&S.parseTwoDigitYear&&(c=S.parseTwoDigitYear);var u=b.prototype,g=u.parse;u.parse=function(w){var T=w.date,C=w.utc,A=w.args;this.$u=C;var $=A[1];if(typeof $=="string"){var V=A[2]===!0,E=A[3]===!0,B=V||E,P=A[2];E&&(P=A[2]),i=this.$locale(),!V&&P&&(i=f.Ls[P]),this.$d=function(U,q,Y){try{if(["x","X"].indexOf(q)>-1)return new Date((q==="X"?1e3:1)*U);var j=y(q)(U),J=j.year,ee=j.month,W=j.day,v=j.hours,z=j.minutes,x=j.seconds,R=j.milliseconds,M=j.zone,O=new Date,X=W||(J||ee?1:O.getDate()),K=J||O.getFullYear(),H=0;J&&!ee||(H=ee>0?ee-1:O.getMonth());var Z=v||0,G=z||0,_=x||0,F=R||0;return M?new Date(Date.UTC(K,H,X,Z,G,_,F+60*M.offset*1e3)):Y?new Date(Date.UTC(K,H,X,Z,G,_,F)):new Date(K,H,X,Z,G,_,F)}catch{return new Date("")}}(T,$,C),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),B&&T!=this.format($)&&(this.$d=new Date("")),i={}}else if($ instanceof Array)for(var L=$.length,D=1;D<=L;D+=1){A[1]=$[D-1];var I=f.apply(this,A);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}D===L&&(this.$d=new Date(""))}else g.call(this,w)}}})})(es);var Su=es.exports;const Cu=Ye(Su);var ts={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,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(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return 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)(d)}}})})(ts);var wu=ts.exports;const Nu=Ye(wu);var ns={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o,l){var r=o.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,h,k,y,S){var b=d.name?d:d.$locale(),f=s(b[h]),u=s(b[k]),g=f||u.map(function(T){return T.slice(0,y)});if(!S)return g;var w=b.weekStart;return g.map(function(T,C){return g[(C+(w||0))%7]})},c=function(){return l.Ls[l.locale()]},m=function(d,h){return d.formats[h]||function(k){return k.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,S,b){return S||b.slice(1)})}(d.formats[h.toUpperCase()])},p=function(){var d=this;return{months:function(h){return h?h.format("MMMM"):i(d,"months")},monthsShort:function(h){return h?h.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(d,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return m(d.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},l.localeData=function(){var d=c();return{firstDayOfWeek:function(){return d.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(d,h)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(d){return i(c(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return i(c(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return i(c(),"weekdaysMin","weekdays",2,d)}}})})(ns);var Bu=ns.exports;const Au=Ye(Bu);var os={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,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),d=s(this).endOf(a);if(p.isBefore(d))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)}}})})(os);var Tu=os.exports;const $u=Ye(Tu);var ls={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,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}}})})(ls);var Vu=ls.exports;const Eu=Ye(Vu);var as={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,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 Du=as.exports;const Iu=Ye(Du);var rs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(rs);var xu=rs.exports;const qu=Ye(xu);var ss={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(ss);var vu=ss.exports;const Mu=Ye(vu);Re.extend(Au),Re.extend(Nu),Re.extend(Cu),Re.extend($u),Re.extend(Eu),Re.extend(Iu),Re.extend(qu),Re.extend(Mu);const ae={format(e,n){return Re(e).format(n)},parser(e,n){return Re(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)),d=this.date2Str(new Date(m));return[p,d]}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)),d=this.date2Str(new Date(m));return[p,d]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ae.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ae.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}},is=new Date().getFullYear(),Ho={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"},vn=(e,n,a)=>{let o;if(Ke(n)?o=n:typeof n=="string"&&be(n)>0?o=ae.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)},jo=(e,n,a)=>{Ke(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),ae.format(new Date(o),a)};let Wo={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(is-10,0,1),validator:Ke},maxDate:{type:Date,default:()=>new Date(is+10,11,31),validator:Ke},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:Pu,scope:Lu}=Q("date-picker"),zu=Pu({components:{[bt.name]:bt},props:{...Wo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(Lu),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,u=>{l.value=u});function r(u,g){return new Date(u,g,0).getDate()}const s=(u,g)=>{const w=e[`${u}Date`],T=w.getFullYear();let C=1,A=1,$=0,V=0;u==="max"&&(C=12,A=r(g.getFullYear(),g.getMonth()+1),$=23,V=59);const E=V;return g.getFullYear()===T&&(C=w.getMonth()+1,g.getMonth()+1===C&&(A=w.getDate(),g.getDate()===A&&($=w.getHours(),g.getHours()===$&&(V=w.getMinutes())))),{[`${u}Year`]:T,[`${u}Month`]:C,[`${u}Date`]:A,[`${u}Hour`]:$,[`${u}Minute`]:V,[`${u}Seconds`]:E}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:u,maxDate:g,maxMonth:w,maxHour:T,maxMinute:C,maxSeconds:A}=s("max",h.value),{minYear:$,minDate:V,minMonth:E,minHour:B,minMinute:P,minSeconds:L}=s("min",h.value);let D=[{type:"year",range:[$,u]},{type:"month",range:[E,w]},{type:"day",range:[V,g]},{type:"hour",range:[B,T]},{type:"minute",range:[P,C]},{type:"seconds",range:[L,A]}];switch(e.type){case"date":D=D.slice(0,3);break;case"datetime":D=D.slice(0,5);break;case"time":D=D.slice(3,6);break;case"year-month":D=D.slice(0,2);break;case"month-day":D=D.slice(1,3);break;case"datehour":D=D.slice(0,4);break;case"hour-minute":D=D.slice(3,5);break}return D}),c=(u,g,w)=>{if(!(g>u))return null;const T=[];for(;u<=g;)e.isShowChinese?T.push({text:u+o[w],value:u}):T.push({text:`${u}`,value:u}),w==="minute"?u+=e.minuteStep:u++;return T},m=t.computed(()=>{let u=[];return i.value.forEach(g=>{let w=c(g.range[0],g.range[1],g.type);w&&u.push(w)}),u}),p=(u,g)=>u==="year"?g.getFullYear():u==="month"?g.getMonth()+1:u==="day"?g.getDate():u==="hour"?g.getHours():u==="minute"?g.getMinutes():u==="seconds"?g.getSeconds():0,d=t.ref(),h=t.ref(null);t.watch(()=>e.modelValue,u=>{let g;if(typeof u=="string"?u.length==0?g=new Date:e.valueFormat?g=vn(e,e.modelValue,e.valueFormat):g=vn(e,u,Ho[e.type]):Ke(u)?g=u:g=new Date,!!g&&(!h.value||g.getTime()!==h.value.getTime())){h.value=g;let w=[];i.value.forEach(T=>{let C=p(T.type,g);w.push(C)}),d.value=w}},{immediate:!0});const k=u=>{if(e.type==="date"){const g=u[0],w=u[1]-1,T=Math.min(u[2],r(g,w+1));T!==u[2]&&(u[2]=T),h.value=new Date(g,w,T)}else if(e.type==="datetime"){const g=u[0],w=u[1]-1,T=Math.min(u[2],r(g,w+1)),C=u[3],A=u[4];T!==u[2]&&(u[2]=T),h.value=new Date(g,w,T,C,A)}else if(e.type==="time"){const g=u[0],w=u[1],T=u[2],C=h.value??new Date,A=new Date(C.getFullYear(),C.getMonth(),C.getDate(),g,w,T);h.value=A}else if(e.type==="year-month"){const g=u[0],w=u[1]-1;h.value=new Date(g,w)}else if(e.type==="month-day"){const w=(h.value??new Date).getFullYear(),T=u[0]-1,C=Math.min(u[1],r(w,T+1));C!==u[1]&&(u[1]=C);const A=new Date(w,T,C);h.value=A}else if(e.type==="datehour"){const g=u[0],w=u[1]-1,T=Math.min(u[2],r(g,w+1)),C=u[3];T!==u[2]&&(u[2]=T),h.value=new Date(g,w,T,C)}else if(e.type==="hour-minute"){const g=u[0],w=u[1],T=h.value??new Date,C=new Date(T.getFullYear(),T.getMonth(),T.getDate(),g,w);h.value=C}d.value=u};return{columns:m,dateIndexs:d,show:l,onChange:u=>{k(u)},onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:u=>{k(u),l.value=!1;let g=h.value??new Date;if(e.valueFormat){let w=jo(e,g,e.valueFormat);n("update:modelValue",w)}else n("update:modelValue",g);n("update:visible",!1),n("confirm",u)},onClear:()=>{n("clear")}}}});function Fu(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 Mn=oe(zu,[["render",Fu]]),Ru={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Ou(e){let n=e.format;if(!n){let a=e.type??"date";n=Ho[a]}return n}function Ku(e,n,a,o,l,r,s=!1){return{props:{...pe,...ye,...Wo,...Ru},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const m=Ae(t.computed(()=>i.disabled)),p=Ve(t.computed(()=>i.readonly)),{emitEvent:d}=Be({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),k=h(i,["placeholder"]),y=t.ref(!1),b=Ie(i,"modelValue",v=>v==null?null:typeof v=="string"?v.length==0?null:i.valueFormat?vn(i,v,i.valueFormat)??v:vn(i,v,Ho[i.type])??v:Ke(v)?v:null),f=t.computed(()=>{if(!b.value)return"";const v=Ou(i);return jo(i,b.value,v)}),u="fox-input-item",g=t.computed(()=>({[u]:!0,"is-disabled":m.value,"is-readonly":p.value})),w=Te(t.computed(()=>i.textAlign),"textAlign"),T=t.computed(()=>{const v={};return w.value&&(v["text-align"]=w.value),v}),C=t.ref(!1),A=()=>{C.value=!0},$=()=>{C.value=!1};c.expose({showPicker:A,hidePicker:$});const V=v=>{C.value=v},E=v=>{if(b.value=v,i.valueFormat){let z=jo(i,v,i.valueFormat);d("update:modelValue",z,{}),d("change",z,{})}else d("update:modelValue",v,{}),d("change",v,{})},B=v=>{let x=v.target.value;y.value=!0,d("focus",x,v)},P=v=>{setTimeout(()=>{y.value=!1},0);let x=v.target.value;i.maxLength&&x.length>Number(i.maxLength)&&(x=x.slice(0,Number(i.maxLength))),d("blur",x,v)},L=t.computed(()=>({[`${u}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),D=t.computed(()=>be(i.unit)>0),I=t.computed(()=>be(i.unit)>0&&!y.value),U=t.computed(()=>({hidden:!I.value})),q=v=>{b.value="",d("update:modelValue","",v),d("change","",v),d("clear",""),$()},Y=t.computed(()=>i.clearable&&!m.value&&!p.value),j=t.computed(()=>{let v=be(b.value)>0;return i.clearable&&v&&y.value}),J=v=>{j.value?q(v):A()},ee=t.computed(()=>j.value&&Y.value?o:l),W=t.computed(()=>({action:!0}));return()=>{const v={class:g.value,style:T.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:A,onFocus:B,onBlur:P};s&&(v.disabled=!0);const z=[],x=t.h("input",v);z.push(x);const R=[],M={class:["action-icon"]},O=t.h(ee.value,M),X={class:W.value,onClick:J},K=t.h("view",X,{default:()=>[O]});if(R.push(K),D.value){const de=t.h("view",{class:U.value},[i.unit]);R.push(de)}const H={class:L.value},Z=t.h("view",H,{default:()=>R});z.push(Z);const G={default:()=>z};G.label=c.slots.default,G.prepend=c.slots.prepend,G.append=c.slots.append,G.fixedPreTip=c.slots.fixedPreTip,G.fixedTip=c.slots.fixedTip;const _=ke(i,Wo);_.valueFormat=null,_.disabled=!1,_.readonly=m.value||p.value,_.visible=C.value,_["onUpdate:visible"]=V,_.modelValue=b.value,_["onUpdate:modelValue"]=E,_.onClear=q;const F={};if(c.slots.top){const de=c.slots.top();F.top=()=>de}if(c.slots.bottom){const de=c.slots.bottom();F.default=()=>de}const te=t.h(r,_,F);G.hide=()=>[te];const ne=ke(i,ye,pe);return t.h(a,{...ne,prop:`${i.prop}_item`},G)}}}}const{create:Uu,componentName:Hu,scope:ju}=Q("date-item"),Yo=Uu(Ku(Hu,ju,we,le.CircleClose,le.Date,Mn,!1)),Wu=39,Yu=64,{create:Xu,scope:Qu}=Q("calendar-pane"),Gu=Xu({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:ae.getDay(0)},endDate:{type:String,default:ae.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(Qu),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),d=t.ref(null),h=t.ref(0),k=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),y=t.computed(()=>a.btn),S=t.computed(()=>a["top-info"]),b=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}),u=M=>M.split("-"),g=M=>ae.isEqual(f.currDate[0],M),w=M=>ae.isEqual(f.currDate[1],M),T=M=>f.currDate?.length>0?f.currDate?.some(O=>ae.isEqual(O,M)):!1,C=(M,O)=>O.curData[0]+"-"+O.curData[1]+"-"+ae.getNumTwoBit(+M.day),A=(M,O)=>{const X=C(M,O),{type:K}=e;return M.type=="curr"?ae.isEqual(f.currDate,X)||(K=="range"||K=="week")&&(g(X)||w(X))||K=="multiple"&&T(X)?`${f.dayPrefix}--active`:f.propStartDate&&ae.compareDate(X,f.propStartDate)||f.propEndDate&&ae.compareDate(f.propEndDate,X)?`${f.dayPrefix}--disabled`:(K=="range"||K=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ae.compareDate(f.currDate[0],X)&&ae.compareDate(X,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},$=()=>{const{type:M}=e;if(M=="range"&&f.chooseData.length==2||M!="range"){let O=f.chooseData.slice(0);M=="week"&&(O={weekDate:[E(f.chooseData[0]),E(f.chooseData[1])]}),n("choose",O),e.poppable&&n("update")}},V=(M,O,X=!1)=>{if(A(M,O)!=`${f.dayPrefix}--disabled`){const{type:K}=e;let[H,Z]=O.curData,G=[...O.curData];if(G[2]=ae.getNumTwoBit(Number(M.day)),G[3]=`${G[0]}-${G[1]}-${G[2]}`,G[4]=ae.getWhatDay(+G[0],+G[1],+G[2]),K=="multiple")if(f.currDate?.length>0){let _;f.currDate?.forEach((F,te)=>{F==G[3]&&(_=te)}),X?f.chooseData.push([...G]):_!==void 0?(f.currDate.splice(_,1),f.chooseData.splice(_,1)):(f.currDate.push(G[3]),f.chooseData.push([...G]))}else f.currDate=[G[3]],f.chooseData=[[...G]];else if(K=="range"){let _=Object.values(f.currDate).length;_==2||_==0?f.currDate=[G[3]]:ae.compareDate(f.currDate[0],G[3])?Array.isArray(f.currDate)&&f.currDate.push(G[3]):Array.isArray(f.currDate)&&f.currDate.unshift(G[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...G]]:ae.compareDate(f.chooseData[0][3],G[3])?f.chooseData=[...f.chooseData,[...G]]:f.chooseData=[[...G],...f.chooseData]}else if(K=="week"){let _=ae.getWeekDate(H,Z,M.day,e.firstDayOfWeek);f.propStartDate&&ae.compareDate(_[0],f.propStartDate)&&_.splice(0,1,f.propStartDate),f.propEndDate&&ae.compareDate(f.propEndDate,_[1])&&_.splice(1,1,f.propEndDate),f.currDate=_,f.chooseData=[ae.formatResultDate(_[0]),ae.formatResultDate(_[1])]}else f.currDate=G[3],f.chooseData=[...G];if(!X){let _=f.chooseData;K=="week"&&(_={weekDate:[E(f.chooseData[0]),E(f.chooseData[1])]}),n("select",_),(e.isAutoBackFill||!e.poppable)&&$()}}},E=M=>{let[O,X,K]=M;return{date:M,monthWeekNum:ae.getMonthWeek(O,X,K,e.firstDayOfWeek),yearWeekNum:ae.getYearWeek(O,X,K,e.firstDayOfWeek)}},B=M=>{const O=M=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let X=parseInt(O.curData[0]),K=parseInt(O.curData[1].toString().replace(/^0/,""));switch(M){case"prev":K==1&&(X-=1),K=K==1?12:--K;break;case"next":K==12&&(X+=1),K=K==12?1:++K;break}return[X+"",ae.getNumTwoBit(K),ae.getMonthDays(String(X),String(K))+""]},P=(M,O,X)=>{let{year:K,month:H}=X;return O=="prev"&&M>=7&&(M-=7),Array.from(Array(M),(Z,G)=>({day:String(G+1),type:O,year:K,month:H}))},L=(M,O,X,K)=>{M=M-e.firstDayOfWeek;let{year:H,month:Z}=X;return O=="prev"&&M>=7&&(M-=7),Array.from(Array(K),(_,F)=>({day:String(F+1),type:O,year:H,month:Z})).slice(K-M)},D=(M,O)=>{const X=ae.getMonthPreDay(+M[0],+M[1]);let K=Number(M[1])-1,H=Number(M[0]);K<=0&&(K=12,H+=1);const Z=ae.getMonthDays(String(M[0]),String(M[1])),G=ae.getMonthDays(H+"",K+""),_={year:M[0],month:M[1]},F={curData:M,title:l("monthTitle",{year:_.year,month:_.month}),monthData:[...L(X,"prev",{month:String(K),year:String(H)},G),...P(Z,"curr",_)],cssHeight:0,cssScrollHeight:0},te=F.monthData.length>35?6:5;F.cssHeight=Wu+Yu*te;let ne=0;f.monthsData.length>0&&(ne=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),F.cssScrollHeight=ne,O=="next"?(!f.endData||!ae.compareDate(`${f.endData[0]}-${f.endData[1]}-${ae.getMonthDays(f.endData[0],f.endData[1])}`,`${M[0]}-${M[1]}-${M[2]}`))&&f.monthsData.push(F):!f.startData||!ae.compareDate(`${M[0]}-${M[1]}-${M[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(F):f.unLoadPrev=!0},I=()=>{let M=e.startDate?e.startDate:ae.getDay(0),O=e.endDate?e.endDate:ae.getDay(365);f.propStartDate=M,f.propEndDate=O,f.startData=u(M),f.endData=u(O),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const X={year:Number(f.startData[0]),month:Number(f.startData[1])},K={year:Number(f.endData[0]),month:Number(f.endData[1])};let H=K.month-X.month;K.year-X.year>0&&(H=H+12*(K.year-X.year)),H<=0&&(H=1),D(f.startData,"next");let Z=1;do D(B("next"),"next");while(Z++<H);if(f.monthsNum=H,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(M&&ae.compareDate(f.currDate[0],M)&&f.currDate.splice(0,1,M),O&&ae.compareDate(O,f.currDate[1])&&f.currDate.splice(1,1,O),f.defaultData=[...u(f.currDate[0]),...u(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let G=[],_={};f.currDate.forEach(F=>{M&&!ae.compareDate(F,M)&&O&&!ae.compareDate(O,F)&&(Object.hasOwnProperty.call(_,F)||(G.push(F),_[F]=F))}),f.currDate=[...G],f.defaultData=[...u(G[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[G,_,F]=u(f.currDate[0]),te=ae.getWeekDate(G,_,F,e.firstDayOfWeek);f.currDate=te,M&&ae.compareDate(f.currDate[0],M)&&f.currDate.splice(0,1,M),O&&ae.compareDate(O,f.currDate[1])&&f.currDate.splice(1,1,O),f.defaultData=[...u(f.currDate[0]),...u(f.currDate[1])]}}else f.currDate&&(M&&ae.compareDate(f.currDate,M)?f.currDate=M:O&&!ae.compareDate(f.currDate,O)&&(f.currDate=O),f.defaultData=[...u(f.currDate)])};Ee({scrollToDate:M=>{ae.compareDate(M,f.propStartDate)?M=f.propStartDate:ae.compareDate(M,f.propEndDate)||(M=f.propEndDate);let O=u(M);f.monthsData.forEach((X,K)=>{if(X.title==l("monthTitle",{year:O[0],month:O[1]})&&c.value){let H=f.monthsData[K].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let Z=0,G=setInterval(()=>{if(Z++,c.value){let _=H/10;c.value.scrollTop=c.value.scrollTop+_}Z>=10&&(clearInterval(G),c.value&&(c.value.scrollTop=f.monthsData[K].cssScrollHeight))},40)}else c.value.scrollTop=f.monthsData[K].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let M=0,O=0;f.defaultData.length>0&&f.monthsData.forEach((H,Z)=>{H.title==l("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(M=Z),(e.type=="range"||e.type=="week")&&H.title==l("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(O=Z)}),j(f.monthsNum,M),f.currentIndex=M,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[O],!0)):e.type=="week"?V({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(H=>{let Z=u(H),G=f.currentIndex;f.monthsData.forEach((_,F)=>{_.title==l("monthTitle",{year:Z[0],month:Z[1]})&&(G=F)}),V({day:Z[2],type:"curr"},f.monthsData[G],!0)}):V({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let X=f.monthsData[f.monthsData.length-1],K=X.cssHeight+X.cssScrollHeight;Xe(()=>{c?.value&&m?.value&&d?.value&&(h.value=c.value.clientHeight,m.value.style.height=`${K}px`,c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(K/(f.monthsNum+1))}});const j=(M,O)=>{M>=3?O>0&&O<M?f.defaultRange=[O-1,O+3]:O==0?f.defaultRange=[O,O+4]:O==M&&(f.defaultRange=[O-2,O+2]):f.defaultRange=[0,M+2];let X=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=X},J=(M,O)=>(e.type=="range"||e.type=="week")&&M.type=="curr"&&A(M,O)=="fox-calendar__day--active",ee=(M,O)=>J(M,O)&&g(C(M,O)),W=(M,O)=>f.currDate.length>=2&&w(C(M,O))?J(M,O):!1,v=()=>{if(f.currDate.length>=2)return ae.isEqual(f.currDate[0],f.currDate[1])},z=M=>{const O=`${M.year}-${M.month}-${Number(M.day)<10?"0"+M.day:M.day}`;return ae.isEqual(O,ae.date2Str(new Date))},x=M=>{if(f.monthsData.length<=1)return;const O=M.target.scrollTop;let X=Math.floor(O/f.avgHeight);if(X==0)O>=f.monthsData[X+1].cssScrollHeight&&(X+=1);else if(X>0&&X<f.monthsNum-1)O>=f.monthsData[X+1].cssScrollHeight&&(X+=1),O<f.monthsData[X].cssScrollHeight&&(X-=1);else{const K=Math.round(O+h.value);K<f.monthsData[X].cssScrollHeight+f.monthsData[X].cssHeight&&O>f.monthsData[X-1].cssScrollHeight&&(X-=1),X+1<=f.monthsNum&&K>=f.monthsData[X+1].cssScrollHeight+f.monthsData[X+1].cssHeight&&(X+=1),X>=1&&O<f.monthsData[X-1].cssScrollHeight&&(X-=1)}f.currentIndex!==X&&(f.currentIndex=X,j(f.monthsNum,X)),f.yearMonthTitle=f.monthsData[X].title},R=()=>{f.chooseData.splice(0),f.monthsData.splice(0),I()};return I(),t.watch(()=>e.defaultValue,M=>{M&&e.poppable&&R()}),{weeks:i,compConthsData:k,showTopBtn:y,topInfo:S,bottomInfo:b,rangeTip:v,mothsViewScroll:x,getClass:A,isStartTip:ee,isEndTip:W,chooseDay:V,isCurrDay:z,confirm:$,months:c,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:m,weeksPanel:p,viewArea:d}}}),Zu={class:"fox-calendar__header"},Ju={key:0,class:"fox-calendar__header-title"},_u={key:1,class:"fox-calendar__header-slot"},ef={key:2,class:"fox-calendar__header-subtitle"},tf={class:"fox-calendar__weekdays",ref:"weeksPanel"},nf={class:"fox-calendar__panel",ref:"monthsPanel"},of={class:"fox-calendar__month-title"},lf={class:"fox-calendar__days"},af=["onClick"],rf={class:"fox-calendar__day-value"},sf={key:0,class:"fox-calendar__day-tips fox-calendar__day-tips--top"},cf={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},df={key:2,class:"fox-calendar__day-tips--curr"},uf={key:4,class:"fox-calendar__day-tip"},ff={key:0,class:"fox-calendar__footer"};function mf(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",Zu,[e.showTitle?(t.openBlock(),t.createElementBlock("view",Ju,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.showTopBtn?(t.openBlock(),t.createElementBlock("view",_u,[t.renderSlot(e.$slots,"btn")])):t.createCommentVNode("",!0),e.showSubTitle?(t.openBlock(),t.createElementBlock("view",ef,t.toDisplayString(e.yearMonthTitle),1)):t.createCommentVNode("",!0),t.createElementVNode("view",tf,[(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",nf,[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",of,t.toDisplayString(s.title),1),t.createElementVNode("view",lf,[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",rf,[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",sf,[t.renderSlot(e.$slots,"top-info",{date:c.type=="curr"?c:""})])):t.createCommentVNode("",!0),e.bottomInfo?(t.openBlock(),t.createElementBlock("view",cf,[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",uf,t.toDisplayString(e.endText),1)):t.createCommentVNode("",!0)],10,af))),128))],2)])]))),128))],4)],512)],544),e.poppable&&!e.isAutoBackFill?(t.openBlock(),t.createElementBlock("view",ff,[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 cs=oe(Gu,[["render",mf]]),pf=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),Pn={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:hf}=Q("calendar"),gf=hf({components:{[cs.name]:cs,[fe.name]:fe},props:{...Pn},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=S=>{i.value?.scrollToDate(S)},m=()=>{i.value?.initPosition()};t.watch(()=>e.visible,S=>{S&&t.nextTick(()=>{i.value?i.value.doLayout():setTimeout(()=>{i.value&&i.value.doLayout()},250)})}),Ee({scrollToDate:c,initPosition:m});const p=()=>{n("update:visible",!1)},d=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{d()},update:p,close:d,select:S=>{n("select",S)},choose:S=>{d(),n("choose",S)},calendarRef:i,showTopBtn:o,topInfo:l,dayInfo:r,bottomInfo:s}}});function yf(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 Ln=oe(gf,[["render",yf]]),ds={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}},Xo=(e,n)=>{let a;return Ke(e)?a=e:typeof e=="string"&&be(e)>0?a=ae.parser(e,n):a=new Date,a},kt=(e,n,a)=>(Ke(n)||(n=new Date),ae.format(n,a)),St=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=ae.date2Str(e),r=ae.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:{...pe,...ye,...Pn,...ds},emits:["change","update:modelValue","blur","focus","clear"],setup(i,c){const m=Ae(t.computed(()=>i.disabled)),p=Ve(t.computed(()=>i.readonly)),{emitEvent:d}=Be({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),k=h(i,["placeholder"]),y=t.ref(!1),S=t.computed(()=>i.type==="range"),b=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),f=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},u=(x,R="one",M="YYYY-MM-DD")=>{if(pf(x)){f();return}if(S.value&&Array.isArray(x)&&x.length==2){let O,X;typeof x[0]=="string"?(O=Xo(x[0],M),X=Xo(x[1],M)):(O=x[0],X=x[1]);let K=St(O),H=St(X);(b.startDate===null||b.startDate.getTime()!==O.getTime()||b.endDate?.getTime()!==X.getTime())&&(b.startDate=O,b.startArray=K,b.endDate=X,b.endArray=H)}else{let O;typeof x=="string"?O=Xo(x,M):O=x;let X=St(O);(b.startDate===null||b.startDate.getTime()!==O.getTime())&&(b.startDate=O,b.startArray=X)}};u(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,x=>{u(x,i.type,i.valueFormat)});const g=t.computed(()=>{if(b.startDate===null)return"";if(S.value){let x=kt(i,b.startDate,i.format),R=kt(i,b.endDate,i.format);return`${x} ${i.rangeSeparator} ${R}`}else{let x=kt(i,b.startDate,i.format);return i.showWeek&&(x=`${x} ${b.startArray[4]}`),x}}),w=t.computed(()=>{if(b.startDate===null)return null;if(S.value){let x=ae.date2Str(b.startDate),R=ae.date2Str(b.endDate??new Date);return[x,R]}else return ae.date2Str(b.startDate)}),T="fox-input-item",C=t.computed(()=>({[T]:!0,"is-disabled":m.value,"is-readonly":p.value})),A=Te(t.computed(()=>i.textAlign),"textAlign"),$=t.computed(()=>{const x={};return A.value&&(x["text-align"]=A.value),x}),V=t.ref(!1),E=()=>{p.value||m.value||(V.value=!0)},B=x=>{V.value=x},P=x=>{if(x){if(S.value&&Array.isArray(x)){let R=x[0],M=me(R[0]),O=me(R[1]),X=me(R[2]),K=new Date(M,O-1,X),H=x[1];M=me(H[0]),O=me(H[1]),X=me(H[2]);let Z=new Date(M,O-1,X);if(b.startDate=K,b.startArray=St(K),b.endDate=Z,b.endArray=St(Z),i.valueFormat){let G=kt(i,K,i.valueFormat),_=kt(i,Z,i.valueFormat);d("update:modelValue",[G,_],{})}else d("update:modelValue",[K,Z],{})}else{let R=x,M=me(R[0]),O=me(R[1]),X=me(R[2]),K=new Date(M,O-1,X);if(b.startDate=K,b.startArray=St(K),i.valueFormat){let H=kt(i,K,i.valueFormat);d("update:modelValue",H,{})}else d("update:modelValue",K,{})}d("change",x,{})}},L=x=>{let M=x.target.value;y.value=!0,d("focus",M,x)},D=x=>{setTimeout(()=>{y.value=!1},0);let M=x.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),d("blur",M,x)},I=t.computed(()=>({[`${T}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),U=t.computed(()=>be(i.unit)>0),q=t.computed(()=>be(i.unit)>0&&!y.value),Y=t.computed(()=>({hidden:!q.value})),j=x=>{f(),d("update:modelValue",null,x),d("change","",x),d("clear","")},J=t.computed(()=>i.clearable&&!m.value&&!p.value),ee=t.computed(()=>{let x=be(g.value)>0;return i.clearable&&x&&y.value}),W=x=>{ee.value?j(x):E()},v=t.computed(()=>ee.value&&J.value?l:r),z=t.computed(()=>({action:!0}));return()=>{const x={class:C.value,style:$.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:E,onFocus:L,onBlur:D};s&&(x.disabled=!0);const R=[],M=t.h("input",x);R.push(M);const O=[],X={class:["action-icon"]},K=t.h(v.value,X),H={class:z.value,onClick:W},Z=t.h("view",H,{default:()=>[K]});if(O.push(Z),U.value){const ve=t.h("view",{class:Y.value},[i.unit]);O.push(ve)}const G={class:I.value},_=t.h("view",G,{default:()=>O});R.push(_);const F={default:()=>R};F.label=c.slots.default,F.prepend=c.slots.prepend,F.append=c.slots.append,F.fixedPreTip=c.slots.fixedPreTip,F.fixedTip=c.slots.fixedTip;const te=ke(i,Pn);te.visible=V.value,te["onUpdate:visible"]=B,te["default-value"]=w.value,te.onChoose=P;const ne={};if(c.slots.btn){const ve=c.slots.btn();ne.btn=()=>ve}c.slots.day&&(ne.day=c.slots.day),c.slots.topInfo&&(ne.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(ne.bottomInfo=c.slots.bottomInfo);const se=t.h(a,te,ne);F.hide=()=>[se];const de=ut(i,Pn,ds);return t.h(o,{...de,prop:`${i.prop}_item`},F)}}}}const{componentName:kf,create:Sf,scope:Cf}=Q("calendar-item"),Qo=Sf(bf(kf,Cf,Ln,we,{CloseIcon:le.CircleClose,MarkIcon:le.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 S=ce(o.iconSize),b=o.checkedIcon??a;return y.push("fox-radio__icon"),o.disabled&&y.push("is-disabled"),t.h(b,{width:S,height:S,class:y})}}else{if(r.icon)return r.icon();{const S=ce(o.iconSize),b=o.icon??n;return y.push("fox-radio__icon--unchecked"),o.disabled&&y.push("is-disabled"),t.h(b,{width:S,height:S,class:y})}}},p=()=>{const y=[`${e}__label`];return o.disabled&&y.push("is-disabled"),t.h("view",{class:y},r.default?.())},d=()=>{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"?d():k?[p(),m()]:[m(),p()]])}}}const{componentName:Bf,create:Af}=Q("radio"),zn=Af(Nf(Bf,{CheckNormal:le.CheckNormal,Checked:le.CheckChecked})),{componentName:us,create:Tf}=Q("radio-group"),Fn=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,{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:`${us} ${us}--${e.direction}`,style:l},a.default?.())}}});function fs(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(Me(a,r))return l}else if(Lt(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 Lt(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 Vf(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=Ge(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):($e(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function Df(){const e=t.getCurrentInstance();return new Ef(e.proxy)}function If(e){return{text:e,value:e}}const ms={shape:{type:String,default:"round"},icon:{type:[Object]},checkedIcon:{type:[Object]},iconSize:{type:[String,Number],default:""}},xf={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 vf(e,n,a,o,l){return{props:{...pe,...ye,...ms,...xf,...qf},emits:["change","update:modelValue"],setup(r,s){const i=Ve(t.computed(()=>r.readonly)),c=Ae(t.computed(()=>r.disabled)),m=Te(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return i.value},get disabled(){return c.value}},r.prop??s.attrs.name),d=Df(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,u])=>{if(f){const g=await d.load("radio",f,u);if(g.length>0)if(typeof g[0]=="string"){const C=g.map(A=>If(A));h.value=C}else h.value=g}},{immediate:!0});let k=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([f,u])=>{k.value=fs(r,u,f,r.valueType)},{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 Lt(r,f)}),S=f=>{let u=null,g=null;if(h.value.length>0){let w=fs(r,h.value,f,"value");k.value=w,w>=0&&(g=h.value[w],r.valueType==="text"?u=Rn(r,g):r.valueType==="item"?u=g:u=Lt(r,g))}else u=f;p("update:modelValue",u),p("change",u,g)},b=()=>{let f=null,u=null;if(h.value.length>0&&k.value!==-1){let g=h.value[k.value];r.valueType==="text"?f=Rn(r,g):r.valueType==="item"?f=g:f=Lt(r,g)}p("update:modelValue",f),p("change",f,u)};if(Ee({clear(){k.value!==-1&&(k.value=-1,b())}}),r.source){const f=()=>{const u=[],g=ke(r,ms);return h.value.forEach((w,T)=>{const C=Lt(r,w),A=$f(r,w);let $={...g,label:C,disabled:A};const V=Vf(r,w,T);$={...$,...V},c.value&&($.disabled=!0),i.value&&($.readonly=!0);const E={};if(s.slots.icon&&(E.icon=s.slots.icon),s.slots.checkedIcon&&(E.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const P=s.slots.text(w);E.default=()=>[P]}else{const P=Rn(r,w);E.default=()=>P}let B=t.h(l,$,E);u.push(B)}),u};return()=>{const u=f(),g={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:m.value,modelValue:y,"onUpdate:modelValue":S},w=t.h(o,g,{default:()=>u}),T={default:()=>w};T.label=s.slots.default,T.prepend=s.slots.prepend,T.append=s.slots.append,T.fixedPreTip=s.slots.fixedPreTip,T.fixedTip=s.slots.fixedTip;const C=ke(r,ye,pe);return t.h(a,{...C,prop:`${r.prop}_item`},T)}}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":S},{default:()=>f})}}}}const{componentName:Mf,create:Pf,scope:Lf}=Q("radio-item"),Go=Pf(vf(Mf,Lf,we,Fn,zn)),zf=(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,u=>{c.partialSelect=u});const m=t.computed(()=>!!i),p=t.computed(()=>m.value?i.value.value.includes(l.label):!!l.modelValue),d=t.computed(()=>m.value?i.position:l.textPosition);let h="";const k=(u,g)=>{h="click",r("update:modelValue",u),r("change",u,g)};t.watch(()=>l.modelValue,u=>{h=="click"?h="":r("change",u)});const y=()=>{const u=[];if(c.partialSelect){if(s.indeterminateIcon)return s.indeterminateIcon();{const g=ce(l.iconSize),w=l.indeterminateIcon??o;return u.push("fox-checkbox__icon--indeterminate"),l.disabled&&u.push("is-disabled"),t.h(w,{width:g,height:g,class:u})}}else if(p.value){if(s.checkedIcon)return s.checkedIcon();{const g=ce(l.iconSize),w=l.checkedIcon??a;return u.push("fox-checkbox__icon"),l.disabled&&u.push("is-disabled"),t.h(w,{width:g,height:g,class:u})}}else{if(s.icon)return s.icon();{const g=ce(l.iconSize),w=l.icon??n;return u.push("fox-checkbox__icon--unchecked"),l.disabled&&u.push("is-disabled"),t.h(w,{width:g,height:g,class:u})}}},S=()=>{const u=[`${e}__label`];return l.disabled&&u.push("is-disabled"),t.h("view",{class:u},s.default?.())},b=()=>{const u=[`${e}__button`];return p.value&&u.push(`${e}__button--active`),l.disabled&&u.push("is-disabled"),t.h("view",{class:u},s.default?.())},f=u=>{if(!(l.disabled||l.readonly)){if(p.value&&c.partialSelect){c.partialSelect=!1,k(p.value,s.default?.()[0].children);return}if(k(!p.value,s.default?.()[0].children),m.value){const g=i.value.value,w=i.max.value,{label:T}=l,C=g.indexOf(T);C>-1?g.splice(C,1):C<=-1&&(g.length<w||!w)&&g.push(T),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} ${d.value==="left"?`${e}--reverse`:""}`,onClick:f},[l.shape=="button"?b():[y(),S()]])}}),{componentName:Ff,create:Rf}=Q("checkbox"),On=Rf(zf(Ff,{CheckNormal:le.CheckNormal,Checked:le.Checked,Indeterminate:le.CheckDisabled})),{create:Of,componentName:ps}=Q("checkbox-group"),Kn=Of({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(d=>{d?.disabled||p.push(d?.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)}),Ee({toggleAll:i,toggleReverse:c}),()=>{const m={};return e.textAlign&&(m["text-align"]=e.textAlign),t.h("view",{class:`${ps} ${ps}--${e.direction}`,style:m},n.default?.())}}});function hs(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(Zo(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if(Un(e,r)===a)return l}return-1}function Zo(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Un(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Kf(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Uf(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Hf=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=Ge(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):($e(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function jf(){const e=t.getCurrentInstance();return new Hf(e.proxy)}function Wf(e){return{text:e,value:e}}const Yf={direction:{type:String,default:"vertical"},textPosition:{type:String,default:"right"},textAlign:{type:String},max:{type:Number,default:0}},gs={icon:{type:[Object]},checkedIcon:{type:[Object]},indeterminateIcon:{type:[Object]},iconSize:{type:[String,Number],default:""},shape:{type:String,default:"round"}},Xf={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 Qf(e,n,a,o,l){return{props:{...pe,...ye,...Yf,...gs,...Xf},emits:["change","update:modelValue"],setup(r,s){const i=Ae(t.computed(()=>r.disabled)),c=Ae(t.computed(()=>r.readonly)),m=Te(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get readonly(){return c.value},get disabled(){return i.value}},r.prop??s.attrs.name),d=jf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,u])=>{if(f){const g=await d.load("checkbox",f,u);if(g.length>0)if(typeof g[0]=="string"){const C=g.map(A=>Wf(A));h.value=C}else h.value=g}},{immediate:!0});const k=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([f,u])=>{const g=[];Array.isArray(f)&&f.forEach(w=>{let T=hs(r,u,w,r.valueType);T!==-1&&g.push(T)}),!Me(g,k.value)&&(k.value=g)},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;let f=[];return k.value.forEach(u=>{let g=h.value[u];f.push(Un(r,g))}),f}),S=f=>{let u=[],g=[];if(h.value.length>0){const w=[];Array.isArray(f)&&f.forEach(T=>{let C=hs(r,h.value,T,"value");C!==-1&&w.push(C);const A=h.value[C];g.push(A),r.valueType==="text"?u.push(Zo(r,A)):r.valueType==="item"?u.push(A):u.push(Un(r,A))}),k.value=w}else u=f;p("update:modelValue",u),p("change",u,g)},b=t.ref();if(Ee({toggleAll:f=>{b.value.toggleAll(f)},toggleReverse:()=>{b.value.toggleReverse()}}),r.source){const f=()=>{const u=[],g=ke(r,gs);return h.value.forEach((w,T)=>{const C=Un(r,w),A=Kf(r,w);let $={...g,label:C,disabled:A};const V=Uf(r,w,T);$={...$,...V},i.value&&($.disabled=!0),c.value&&($.readonly=!0);const E={};if(s.slots.icon&&(E.icon=s.slots.icon),s.slots.checkedIcon&&(E.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(E.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const P=s.slots.text(w);E.default=()=>[P]}else{const P=Zo(r,w);E.default=()=>P}let B=t.h(l,$,E);u.push(B)}),u};return()=>{const u=f(),g={class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:y.value,"onUpdate:modelValue":S},w=t.h(o,g,{default:()=>u}),T={default:()=>w};T.label=s.slots.default,T.prepend=s.slots.prepend,T.append=s.slots.append,T.fixedPreTip=s.slots.fixedPreTip,T.fixedTip=s.slots.fixedTip;const C=ke(r,ye,pe);return t.h(a,{...C,prop:`${r.prop}_item`},T)}}else return()=>{const f=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,textAlign:m.value,modelValue:y,"onUpdate:modelValue":S},{default:()=>f})}}}}const{componentName:Gf,create:Zf,scope:Jf}=Q("checkbox-item"),Jo=Zf(Qf(Gf,Jf,we,Kn,On)),_o={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:_f,create:em}=Q("switch"),tm=em({components:{Loading1:le.Loading1},props:{..._o},emits:["change","update:modelValue","update:loading"],setup(e,{emit:n}){const a=t.computed(()=>e.modelValue===e.activeValue),o=t.computed(()=>{const i=_f;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}}}),nm={class:"fox-switch-button"};function om(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",nm,[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 Hn=oe(tm,[["render",om]]);function lm(e,n,a,o){return{props:{...pe,...ye,..._o},emits:["change","update:modelValue"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:c}=Be({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=Ie(l,"modelValue"),d=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const k={...ke(l,_o),disabled:s.value||i.value,value:p.value,"onUpdate:modelValue":d},y=[],S=t.h(o,k);y.push(S);const b={default:()=>y};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const f=ke(l,ye,pe);return f["content-class"]=m,t.h(a,{...f,prop:`${l.prop}_item`},b)}}}}const{componentName:am,create:rm,scope:sm}=Q("switch-item"),el=rm(lm(am,sm,we,Hn));function im(e,n,a,o){return{props:{...pe,...ye,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=Ae(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:c}=Be({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"]),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,P=>{d.value=P,c("change",P)});const h=t.computed(()=>({[`${e}`]:!0})),k=t.computed(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&ue(d.value),"is-disabled":s.value,"is-readonly":i.value})),y=Te(t.computed(()=>l.textAlign),"textAlign"),S=t.computed(()=>{const P={};return y.value&&(P["text-align"]=y.value),P}),b=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),f=t.computed(()=>ue(d.value)?p.placeholder.value:d.value),u=t.computed(()=>!ue(l.desc)||r.slots.sub),g=t.computed(()=>({[`${e}__sub`]:!0})),w=t.computed(()=>{const P={};return y.value&&(P["text-align"]=y.value),P}),T=()=>{c("focus",d.value)},C=()=>{c("blur",d.value)},A=t.computed(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),$=t.computed(()=>be(l.unit)>0),V=P=>{s.value==!0||i.value==!0||c("click")},E=t.computed(()=>l.icon??a),B=t.computed(()=>({action:!0}));return()=>{const P=[];if(typeof r.slots.content=="function"){const v=r.slots.content();P.push(v)}else{const v=[];if(b.value){const R={tabIndex:0,class:k.value,style:S.value,onFocus:T,onBlur:C};let M=null;r.slots.main?M=t.h("view",R,[r.slots.main(f.value)]):M=t.h("view",R,[f.value]),v.push(M)}if(u.value){const R={tabIndex:0,class:g.value,style:w.value,onFocus:T,onBlur:C};let M=null;r.slots.sub?M=t.h("view",R,[r.slots.sub(l.desc)]):M=t.h("view",R,[l.desc]),v.push(M)}const z={class:h.value,onClick:V},x=t.h("view",z,v);P.push(x)}const L=[],D=ce(l.iconSize);let I=r.slots.icon;if(!I){const v={width:D,height:D,class:["action-icon"]};I=t.h(E.value,v)}const U={class:B.value,onClick:V},q=t.h("view",U,{default:()=>[I]});if(L.push(q),$.value){const v=t.h("view",{},[l.unit]);L.push(v)}const Y={class:A.value},j=t.h("view",Y,{default:()=>L});P.push(j);const J={default:()=>P};J.label=r.slots.default,J.prepend=r.slots.prepend,J.append=r.slots.append,J.fixedPreTip=r.slots.fixedPreTip,J.fixedTip=r.slots.fixedTip;const ee=ke(l,ye,pe);return t.h(o,{...ee,prop:`${l.prop}_item`},J)}}}}const{componentName:cm,create:dm,scope:um}=Q("link-item"),tl=dm(im(cm,um,le.ArrowRight,we)),nl={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:fm,componentName:mm}=Q("rate"),pm=fm({props:{...nl},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[mm]:!0})),r=k=>{n("update:modelValue",k),n("change",k)},s=(k,y)=>{if(e.disabled||e.readonly)return;let S=0;y===1&&e.modelValue===y||(S=y,e.allowHalf&&k==2&&(S-=.5)),r(S)},i=(k,y,S)=>{let b=0;for(let f=y.value.length-1;f>=0;f--){const u=y.value[f];if(k>u.offsetLeft){S?b=f+(k>u.offsetLeft+u.clientWidth/2?1:.5):b=f+1;break}}return b},c=Je(),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),d=t.computed(()=>e.customIcon??le.StarFillN);return{classes:l,...m,onClick:s,toPxDesc:ge,renderIcon:(k,y)=>t.h(k,y),rateRefs:o,refRandomId:p,slots:a,customIcon:d}}}),hm=["id"],gm={class:"fox-rate-item__icon--full"},ym={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",gm,[(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",ym,[(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,hm))),128))],34)}const Ct=oe(pm,[["render",km]]);function Sm(e,n,a,o){return{props:{...pe,...ye,...nl},emits:["change","update:modelValue"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:c}=Be({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=Ie(l,"modelValue"),d=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const k={...ke(l,nl),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":d},y=[],S=t.h(o,k);y.push(S);const b={default:()=>y};if(r.slots.default){const g=r.slots.default();b.label=()=>g}const f=ke(l,ye,pe);return f["content-class"]=m,t.h(a,f,b)}}}}const{componentName:Cm,create:wm,scope:Nm}=Q("rate-item"),ol=wm(Sm(Cm,Nm,we,Ct)),Bm=/scroll|auto|overlay/i,ys=window;function Am(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function ll(e,n=ys){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 bs(e,n=ys){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=ll(e.value,n))}),a}const ks=()=>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=bs(c),p=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=t.computed(()=>({[e]:!0})),h=u=>u?u.offsetTop+h(u.offsetParent):0,k=()=>{let u=0,g=0,w="down";if(m.value==window){const T=ks();c.value&&(u=h(c.value)+c.value.offsetHeight-T-window.innerHeight),g=T}else{const{scrollHeight:T,clientHeight:C,scrollTop:A}=m.value;u=T-C-A,g=A}return p.beforeScrollTop>g?w="up":w="down",p.beforeScrollTop=g,l("scroll-change",g),u<=o.threshold&&w=="down"},y=()=>{Xe(()=>{if(!k()||!o.hasMore||p.isInfiniting)return!1;p.isInfiniting=!0,l("update:modelValue",!0),t.nextTick(()=>l("load-more"))})},S=()=>{m.value&&m.value.addEventListener("scroll",y,o.useCapture)},b=()=>{m.value&&m.value.removeEventListener("scroll",y,o.useCapture)};t.onMounted(()=>{S(),o.immediate&&y()}),t.onUnmounted(()=>{b()});const f=t.ref(!1);return t.onActivated(()=>{f.value&&(f.value=!1,S())}),t.onDeactivated(()=>{f.value=!0,b()}),t.watch(()=>o.modelValue,u=>{u||(p.isInfiniting=!1)}),()=>{const u={class:"fox-infinite__container"},g=t.h("view",u,[r?.default?.()]),w=[];if(p.isInfiniting){let $=r?.loading?.()??null;if(!$){let B=r?.loadingIcon?.()??null;if(!B){const D={class:["fox-infinite__bottom-box__img"]};B=t.h(a,D)}const P={class:"fox-infinite__bottom-box__text"},L=t.h("view",P,[i.loadText.value]);$=[B,L]}const V={class:"fox-infinite__bottom-box"},E=t.h("view",V,$);w.push(E)}else if(!o.hasMore){let $=r?.finished?.()??null;if(!$){const V={class:"fox-infinite__bottom-tips"};$=t.h("view",V,[i.loadMoreText.value]),w.push($)}}const T={class:"fox-infinite__bottom"},C=t.h("view",T,w),A={class:d.value,ref:c};return t.h("view",A,[g,C])}}}}const{componentName:Vm,create:Em,scope:Dm}=Q("infinite-loading"),jn=Em($m(Vm,Dm,le.Loading)),{componentName:Im,create:xm}=Q("button"),qm=xm({components:{Loading:le.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),d=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:d,classes:h,getStyle:k}}}),vm={class:"fox-button__wrap"};function Mm(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",vm,[e.loading?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-icon-loading"})):t.createCommentVNode("",!0),e.$slots.icon&&!e.loading?t.renderSlot(e.$slots,"icon",{key:1}):t.createCommentVNode("",!0),e.$slots.default?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass({"fox-button__text":e.$slots.icon||e.loading})},[t.renderSlot(e.$slots,"default")],2)):t.createCommentVNode("",!0)])],6)}const Pe=oe(qm,[["render",Mm]]),Pm={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"}},Lm=(e,n,a)=>({props:{...Pm},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})),d=V=>{let B=V.target.value;o.maxLength&&B.length>Number(o.maxLength)&&(B=B.slice(0,Number(o.maxLength))),l("update:modelValue",B,V),l("change",B,V)},h=t.ref({}),k=V=>{let B=V.target.value;c.active=!0,h.value=o.focusStyle,l("focus",B,V)},y=V=>{setTimeout(()=>{c.active=!1},0);let B=V.target.value;o.maxLength&&B.length>Number(o.maxLength)&&(B=B.slice(0,Number(o.maxLength))),h.value={},l("blur",B,V)},S=V=>{l("update:modelValue","",V),l("change","",V),l("clear","")},b=t.computed(()=>String(o.modelValue).length>0),f=t.computed(()=>{const V={};return b.value||(V.display="none"),V}),u=()=>{o.autoblur&&A.value?.blur(),l("search",o.modelValue)},g=V=>{l("keyup-input",V),V.key.toLocaleUpperCase()==="ENTER"&&u()},w=V=>{l("click-input",V)},T=V=>{l("click-left-icon",o.modelValue,V)},C=t.computed(()=>({textAlign:o.inputAlign})),A=t.ref(null);t.onMounted(()=>{o.autofocus&&A.value.focus()});const $=()=>{const V=[];if(r.leftin){const D={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:T},I=t.h("view",D,[r.leftin()]);V.push(I)}const E={ref:A,class:[`${e}__input-inner`],style:C.value,type:o.inputType,maxlengt:o.maxLength,placeholder:i.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:w,onInput:d,onFocus:k,onBlur:y,onkeyup:g},B=t.h("input",E);V.push(B);const P=[];if(o.clearable){const D={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:S},I=r?.clear?.()??o.clearIcon??a,U=t.h("view",D,[t.h(I)]);P.push(U)}if(r.rightin){const D={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},I=t.h("view",D,[r.rightin()]);P.push(I)}if(P.length>0){const D={class:`${e}__input-inner-right`},I=t.h("view",D,P);V.push(I)}const L={class:[`${e}__search-input`,`${o.shape}`],style:{...p.value,...h.value}};return t.h("view",L,V)};return()=>{const V=[];if(o.label){const P={class:`${e}__search-label`},L=t.h("span",P,[o.label]);V.push(L)}if(r.leftout){const P={class:[`${e}__search-icon`,`${e}__left-search-icon`]},L=t.h("view",P,[r.leftout()]);V.push(L)}const E=$();if(V.push(E),r.rightout){const P={class:[`${e}__search-icon`,`${e}__right-search-icon`]},L=t.h("view",P,[r.rightout()]);V.push(L)}const B={class:`${e}`,style:m.value};return t.h("view",B,V)}}}),{componentName:zm,create:Fm,scope:Rm}=Q("searchbar"),Wn=Fm(Lm(zm,Rm,le.CircleClose)),Yn={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 Om(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(Xn(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if(Cs(e,r)===a)return l}return-1}function Xn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ss(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Cs(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Km(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function Um(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let Hm=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,d=p+l;d>m.length&&(d=m.length);const h=m.slice(p,d);return{totalSize:m.length,page:h}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s]);const c=Ge(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):($e(r)&&t.isReactive(r)&&(r=t.toRaw(r)),await Reflect.apply(c,null,[a,o,l,r]))}};function jm(){const e=t.getCurrentInstance();return new Hm(e.proxy)}function Wm(e,n,a,o,l,r,s,i,c,m,p){return{props:{...Yn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{emit:h,slots:k}){const{toLocaleRefs:y}=re.useFoxI18n(n),S=y(d,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),b=jm(),f=t.ref([]),u=t.ref(0),g=t.ref(""),w=t.shallowRef(null),T=t.computed(()=>{const K={};return d.params&&Object.assign(K,d.params),ue(g.value)||(K[`${d.searchKey}`]=g.value),w.value&&Object.assign(K,w.value),K});let C=!0;const A=async(K,H,Z)=>{try{if(V.value===!1)return;let G=null;ue(g.value)||(G=F=>{const te=Xn(d,F);if(typeof te=="string"&&te.includes(g.value))return!0;const ne=Ss(d,F);return!!(typeof ne=="string"&&ne.includes(g.value))});const _=await b.load("actionsheet",K,H,Z,T.value,C,G??void 0);C=!1,Array.isArray(_)?(f.value=_,u.value=1,V.value=!1):!Array.isArray(_.page)||_.page.length===0?(console.warn("[FoxUI] can not load more data"),V.value=!1):(Reflect.apply([].push,f.value,_.page),u.value=Math.ceil(f.value.length/d.pageSize),(_.totalSize&&f.value.length>=_.totalSize||Z<_.page.length)&&(V.value=!1)),$.value=!1}catch(G){console.error("[FoxUI] ActionSheet load more data fail",G),V.value=!0,u.value=0,f.value=[]}setTimeout(()=>{h("loaded-data")},250)},$=t.ref(!1),V=t.ref(!0),E=async()=>{if(!d.source){$.value=!1;return}await A(d.source,u.value+1,d.pageSize)};t.watch(()=>g.value,(K,H)=>{ue(K)&&!ue(H)&&E()});const B=()=>{V.value=!0,u.value=0,f.value=[],d.source&&E()};t.watch([()=>d.source,()=>d.pageSize,()=>d.params],async([K,H,Z])=>{d.source&&B()},{immediate:!0});const P=t.computed(()=>!d.multiple&&d.isAutoBackFill),L=t.ref([]);let D=null;const I=t.ref(d.visible);t.watch(()=>d.visible,K=>{I.value!==K&&(I.value=K),K?D=[...L.value]:D=null});const U=(K,H)=>{const Z=[];return Array.isArray(K)||(K=[K]),K.forEach(G=>{let _=Om(d,H,G,d.valueType);_!==-1&&Z.push(_)}),Me(Z,L.value)?!1:(L.value=Z,!0)};t.watch([()=>d.modelValue,()=>f.value],([K,H],[Z,G])=>{if(U(K,H)){const F=q();Y(F)}},{deep:!0});const q=()=>{const K=[],H=[],Z=[];for(let te of L.value){const ne=f.value[te];H.push(ne);const se=Xn(d,ne);if(Z.push(se),d.valueType==="item")K.push(ne);else if(d.valueType==="text")K.push(se);else{const de=Cs(d,ne);K.push(de)}}let G=null,_=null,F=null;return d.multiple?(G=K,_=Z,F=H):(G=K[0]??null,_=Z[0]??null,F=H[0]??null),{value:G,text:_,item:F}},Y=K=>{h("update:modelValue",K.value),h("update:text",K.text),h("change",K.value,K.item,K.text)},j=()=>{D&&(L.value=D)},J=K=>{const H=L.value.indexOf(K);d.multiple?H===-1?L.value.push(K):L.value.splice(H,1):H===-1?L.value=[K]:L.value=[],(P.value||!d.poppable&&!d.showFooter)&&v()},ee=K=>{I.value=K,h("update:visible",K)},W=()=>{const K=()=>{j(),ee(!1)},H=d.beforeMethod??d.beforeClose;if(typeof H=="function"){const Z=H("close");dt(Z)?Z.then(G=>{G!==!1&&K()}).catch(()=>{K()}):Z!==!1&&K()}else K()},v=()=>{const K=q(),H=()=>{Y(K),ee(!1)},Z=d.beforeMethod??d.beforeClose;if(typeof Z=="function"){const G=Z("confirm",K.value,K.item,K.text);dt(G)?G.then(_=>{_!==!1&&H()}).catch(()=>{H()}):G!==!1&&H()}else H()},z=()=>{let K=S.title.value??"";k.title&&(K=k.title());const H=t.h("view",{class:["fox-actionsheet__header-title"]},[K]),Z=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:W});return t.h("view",{class:["fox-actionsheet__header"]},[H,Z])},x=()=>{let K=null;if(k.search)K=k.search();else{const H={onSearch:B,placeholder:S.seachPlaceholder.value,disabled:d.disabled,modelValue:g.value,"onUpdate:modelValue":Z=>{g.value=Z}};K=t.h(r,H,{leftin:()=>t.h(m)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[K])},R=(K,H,Z,G,_)=>{if(k.optionLabel)return k.optionLabel({text:K,checked:H,disabled:Z,subText:G,item:_});const F=[],te=t.h("view",{class:"fox-actionsheet__list-item-text"},[K]);if(F.push(te),G){const ne=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[G]);F.push(ne)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},F)},M=(K,H,Z,G)=>{if(k.optionIcon)return k.optionIcon({checked:K,disabled:H,iconSize:Z,item:G});if(K){if(k.checkedIcon)return k.checkedIcon({disabled:H,item:G});{const _=d.checkedIcon??i;return t.h(_,{width:Z,height:Z,class:["fox-actionsheet__list-item-icon"]})}}else{if(k.icon)return k.icon({disabled:H,item:G});{const _=d.icon??s;return t.h(_,{width:Z,height:Z,class:["fox-actionsheet__list-item-icon"]})}}},O=()=>{const K=[];for(let H=0;H<f.value.length;H++){const Z=f.value[H],G=Xn(d,Z),_=Ss(d,Z),F=["fox-actionsheet__list-item"],te={};let ne=Km(d,Z),se=d.iconSize?ce(d.iconSize):null;const de=Um(d,Z,H);de&&(ne=ne||de.disabled,de.class&&F.push(de.class),de.style&&Object.assign(te,de.style)),ne=!!(d.disabled||ne);const xe=L.value.includes(H);ne&&F.push("is-disabled"),xe&&F.push("is-checked");const ve={class:F,style:te,key:`${H}`,onClick:()=>{ne||J(H)}};let et=[];if(k.option)et.push(k.option({item:Z,checked:xe,disabled:ne}));else{const eA=R(G,xe,ne,_,Z);et.push(eA);const tA=M(xe,ne,se,Z);et.push(tA),d.textPosition==="right"&&et.reverse()}const va=t.h("view",ve,et);K.push(va)}return K},X=()=>{let K=[];if(k.buttons)K=k.buttons();else{const Z=t.h(l,{type:"primary",block:"block",onClick:v,disabled:d.disabled},{default:()=>S.confirmText.value});K.push(Z)}return t.h("view",{class:"fox-actionsheet__footer"},[K])};return Ee({search:async(K=null,H=!0)=>{w.value=K&&t.toRaw(K),t.triggerRef(w),H&&(V.value=!0,u.value=0,f.value=[]),t.nextTick(()=>{E()})},clear:()=>{V.value=!0,u.value=0,f.value=[]},confirm:()=>{v()},cancel:()=>{W()}}),()=>{const K=[];if(d.showHeader){const se=z();K.push(se)}if(d.showSearchbar){const se=x();K.push(se)}let H=null;if(k.content)H=k.content();else{const se=O(),de={hasMore:V.value,loadText:S.loadText.value,loadMoreText:S.loadMoreText.value,modelValue:$.value,"onUpdate:modelValue":xe=>{$.value=xe},onLoadMore:E};H=t.h(o,de,{default:()=>se})}const Z={};d.optionsHeight&&(Z.height=d.optionsHeight);const G={"fox-actionsheet__list":!0};d.poppable||(G["fox-actionsheet__list--inner"]=!0);const _=t.h("view",{class:G,style:Z},[H]);if(K.push(_),d.showFooter&&!P.value){const se=X();K.push(se)}const F=t.h("view",{class:"fox-actionsheet"},K);if(!d.poppable)return F;const te=["fox-actionsheet__popup"];d.popClass&&te.push(d.popClass);const ne={popClass:te.join(" "),visible:I.value,closeable:!1,"onUpdate:visible":ee,position:d.position,round:"round",onClickOverlay:W,closeOnClickOverlay:d.closeOnClickOverlay};return t.h(a,ne,{default:()=>F})}}}}const{componentName:Ym,create:Xm,scope:Qm}=Q("actionsheet-pane"),Qn=Xm(Wm(Ym,Qm,fe,jn,Pe,Wn,le.CheckNormal,le.Checked,le.Close,le.Search2)),ws={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 Gm(e,n,a,o,l,r,s){return{props:{...pe,...ye,...ws,...Yn},emits:["change","update:modelValue","blur","focus","clear","update:text"],setup(i,c){const m=Ae(t.computed(()=>i.disabled)),p=Ve(t.computed(()=>i.readonly)),{emitEvent:d}=Be({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),k=h(i,["placeholder"]),y=t.ref(!1),S=Ie(i,"modelValue"),b=t.ref(""),f=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),u="fox-input-item",g=t.computed(()=>({[u]:!0,"is-disabled":m.value,"is-readonly":p.value})),w=Te(t.computed(()=>i.textAlign),"textAlign"),T=t.computed(()=>{const x={};return w.value&&(x["text-align"]=w.value),x}),C=t.ref(!1),A=()=>{C.value=!0},$=x=>{C.value=x},V=x=>{S.value=x,d("update:modelValue",x)},E=(x,R)=>{d("change",x,R)},B=x=>{let M=x.target.value;y.value=!0,d("focus",M,x)},P=x=>{setTimeout(()=>{y.value=!1},0);let M=x.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),d("blur",M,x)},L=x=>{b.value=x,d("update:text",x)},D=t.computed(()=>({[`${u}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),I=t.computed(()=>be(i.unit)>0),U=t.computed(()=>be(i.unit)>0&&!y.value),q=t.computed(()=>({hidden:!U.value})),Y=x=>{S.value="",d("update:modelValue","",x),d("change","",x),d("clear","")},j=t.computed(()=>i.clearable&&!m.value&&!p.value),J=t.computed(()=>be(S.value)>0&&y.value),ee=x=>{J.value?Y(x):A()},W=t.computed(()=>J.value&&j.value?o:l),v=t.computed(()=>({action:!0})),z=t.ref(null);return Ee({search:x=>{z.value&&z.value.search(x)},clear:()=>{z.value&&z.value.clear},confirm:x=>{z.value&&z.value.confirm()},cancel:()=>{z.value&&z.value.cancel()}}),()=>{const x={class:g.value,style:T.value,type:"text",maxlength:i.maxLength,placeholder:k.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:A,onFocus:B,onBlur:P};s&&(x.disabled=!0);const R=[],M=t.h("input",x);R.push(M);const O=[],X={class:["action-icon"]},K=t.h(W.value,X),H={class:v.value,onClick:ee},Z=t.h("view",H,{default:()=>[K]});if(O.push(Z),I.value){const ve=t.h("view",{class:q.value},[i.unit]);O.push(ve)}const G={class:D.value},_=t.h("view",G,{default:()=>O});R.push(_);const F={default:()=>R};F.label=c.slots.default,F.prepend=c.slots.prepend,F.append=c.slots.append,F.fixedPreTip=c.slots.fixedPreTip,F.fixedTip=c.slots.fixedTip;const te=ke(i,Yn);te.ref=z,te.class=i.actionsheetProps,te.disabled=m.value||p.value,te.visible=C.value,te["onUpdate:visible"]=$,te.modelValue=S.value,te["onUpdate:modelValue"]=V,te.text=b.value,te["onUpdate:text"]=L,te.onChange=E,te.poppable=!0,te["text-position"]=i.textPosition;const ne={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},se=t.h(r,te,ne);F.hide=()=>[se];const de=ut(i,ws,Yn);return t.h(a,{...de,prop:`${i.prop}_item`},F)}}}}const{componentName:Zm,create:Jm,scope:_m}=Q("actionsheet-item"),al=Jm(Gm(Zm,_m,we,le.CircleClose,le.ArrowRight,Qn)),rl={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:ep,create:tp}=Q("input-number"),np=tp({components:{Minus:le.Minus,Plus:le.Plus},props:{...rl},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const k=ep;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 S=o(k);n("update:modelValue",S,y),n("change",S,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)},d=k=>{if(e.disabled||e.readonly)return;let S=k.target.valueAsNumber;S<Number(e.min)?S=Number(e.min):S>Number(e.max)&&(S=Number(e.max)),r(S,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:d,focus:p,add:m,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:ge}}}),op=["min","max","disabled","readonly","value"];function lp(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,op),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 _e=oe(np,[["render",lp]]);function ap(e,n,a,o){return{props:{...pe,...ye,...rl},emits:["change","update:modelValue"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=Ve(t.computed(()=>l.readonly)),{emitEvent:c}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),m=e,p=Ie(l,"modelValue"),d=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={...ke(l,rl),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":d},S=t.h(o,y,h),b=[];b.push(S);const f={default:()=>b};f.label=r.slots.default,f.fixedPreTip=r.slots.fixedPreTip,f.fixedTip=r.slots.fixedTip;const u=ke(l,ye,pe);return u["content-class"]=m,t.h(a,{...u,prop:`${l.prop}_item`},f)}}}}const{componentName:rp,create:sp,scope:ip}=Q("inputnumber-item"),sl=sp(ap(rp,ip,we,_e)),cp={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 Ns(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Bs(e,n){return typeof e.disabledKey=="string"&&e.disabledKey.length>0?n[e.disabledKey]:n.disabled??null}function up(e,n){return typeof e.visibleKey=="string"&&e.visibleKey.length>0?n[e.visibleKey]:n.visible??null}function il(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function As(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function Ts(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function cl(e,n,a){return typeof e.itemOptions=="function"?e.itemOptions(n,a):e.itemOptions}let fp=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=Ge(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):($e(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await Reflect.apply(l,null,[a,o]))}};function mp(){const e=t.getCurrentInstance();return new fp(e.proxy)}function pp(e,n,a,o){return{props:{...cp},emits:["update:modelValue","change","loaded-data"],setup(l,{slots:r,emit:s}){const i=e,c=mp(),m=t.ref([]),p=t.computed(()=>m.value.filter(v=>up(l,v)!==!1)),d=t.ref(-1),h=()=>{const v=l.modelValue,z=p.value.findIndex(x=>Ns(l,x)===v);d.value!==z&&(d.value=z,l.scroll&&ee(z,!1))};t.watch([()=>l.modelValue,p],()=>{h()});const k=v=>d.value===v,y=v=>{if(v<0&&v>=p.value.length)return!1;const z=p.value[v],R=(cl(l,z,v)??{}).status??il(l,z);return k(v)||R},S=t.computed(()=>{const v={[i]:!0};return l.mode?v[`is-${l.mode}`]=!0:l.direction&&(v[`is-${l.direction}`]=!0),l.scroll&&(v["is-scroll"]=!0),v}),b=t.computed(()=>({})),f=(v,z,x,R,M)=>{const O={[`${i}__step`]:!0};return M&&(O[`${M}`]=!0),O[`${u.value}`]=!0,R&&(O["is-doit"]=!0),v===d.value?O["is-active"]=!0:z==="done"?O["is-done"]=!0:z==="error"?O["is-error"]=!0:z==="half"?O["is-half"]=!0:x?O["is-disabled"]=!0:O["is-normal"]=!0,O},u=t.computed(()=>{if(l.mode==="simple")return"start";let v=l.align;return v||(l.direction==="vertical"?v="start":v="center"),v}),g=(v,z={})=>{const x={...z};return u.value==="start"&&v===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},w=(v,z)=>{let x={};if(z<p.value.length-1){const R=z+1;y(z)&&y(R)?l.direction==="vertical"?x.height="100%":x.width="100%":x.opacity="0"}return x},T=v=>p.value.length-1===v,C=(v,z)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&z>d.value||d.value===z)return;const x=d.value,R=z;d.value=z,l.scroll&&ee(z,!1);const M=Ns(l,v);s("update:modelValue",M);const O={fromIndex:x,currentIndex:R,item:v,items:p.value,clickNavigatePolicy:l.clickNavigatePolicy};s("change",M,O)},A=t.ref(!0),$=async(v,z)=>{try{const x=await c.load("stesbar",v,z);Array.isArray(x)&&(m.value=x),A.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([v,z])=>{v&&$(v,z)},{immediate:!0});const V=(v,z,x,R,M)=>{let O=null;if(r.icon)O=r.icon({item:v,index:z,status:R});else if(R==="done"){const K={};l.iconSize&&(K.width=l.iconSize,K.height=l.iconSize);const H=l.icon??a;O=t.h(H,K)}else{const K=x??`${z+1}`;O=t.h("span",{},[K])}const X={class:"fox-steps-bar__icon",onClick:()=>{M||C(v,z)}};return t.h("view",X,[O])},E=(v,z,x)=>{const R=t.h("i",{class:"fox-steps-bar__line-inner",style:w(v,z)});return t.h("view",{class:"fox-steps-bar__line"},[R])},B=()=>{let v=null;if(r.markIcon)v=r.markIcon();else{const x={};l.iconSize&&(x.width=l.markIconSize,x.height=l.markIconSize);const R=l.markIcon??o;v=t.h(R,x)}return t.h("view",{class:"fox-steps-bar__mark"},[v])},P=(v,z,x,R,M)=>{const O=[];if(!T(z)){const H=E(v,z);O.push(H)}const X=V(v,z,x,R,M);O.push(X);const K={class:"fox-steps-bar__head"};return t.h("view",K,O)},L=(v,z,x,R)=>{let M=null;r.main?M=r.main({item:v,index:z,status:x}):M=dp(l,v);const O={class:"fox-steps-bar__main",onClick:()=>{R||C(v,z)}};return t.h("view",O,[M])},D=(v,z,x)=>{let R=null;if(r.sub){R=r.sub({item:v,index:z,status:x});const M={class:"fox-steps-bar__sub"};return t.h("view",M,[R])}return null},I=(v,z)=>{const x=cl(l,v,z)??{},R=x.status??il(l,v);let M=Bs(l,v);x.disabled===!0&&(M=!0),l.disabled===!0&&(M=!0);const O=x.label??Ts(l,v),X=[],K=V(v,z,O,R,M);K&&X.push(K);const H=L(v,z,R,M);if(H&&X.push(H),!T(z)){const ne=E(v,z);ne&&X.push(ne)}const Z=t.h("view",{class:"fox-steps-bar__head"},X),G=x.class,_=x.style??{};let F=As(l,v);x.doit===!0&&(F=!0);const te={ref:J(z),class:f(z,R,M,F,G),style:g(z,_)};return t.h("view",te,[Z])},U=(v,z)=>{const x=cl(l,v,z)??{},R=x.status??il(l,v);let M=Bs(l,v);x.disabled===!0&&(M=!0),l.disabled===!0&&(M=!0);const O=x.label??Ts(l,v),X=[],K=l.layout;for(let F of K)if(F==="head"){const te=P(v,z,O,R,M);X.push(te)}else if(F==="main"){const te=L(v,z,R,M);X.push(te)}else if(F==="sub"){const te=D(v,z,R);X.push(te)}else if(F==="mark"){const te=B();X.push(te)}const H=x.class,Z=x.style??{};let G=As(l,v);x.doit===!0&&(G=!0);const _={ref:J(z),class:f(z,R,M,G,H),style:g(z,Z)};return t.h("view",_,X)},q=t.ref(),Y=t.ref([]),j=(v,z)=>{Y.value[z]=v},J=v=>z=>{j(z,v)},ee=(v,z)=>{const x=q.value,R=Y.value;if(!x||!R||!R[v])return;const M=R[v];let O=0;l.direction==="vertical"?O=M.offsetTop-(x.offsetHeight-M.offsetHeight)/2:O=M.offsetLeft-(x.offsetWidth-M.offsetWidth)/2,W(x,O,z?0:.3,l.direction)},W=(v,z,x,R)=>{let M=0;const O=R==="horizontal"?v.scrollLeft:v.scrollTop,X=x===0?1:Math.round(x*1e3/16);function K(){R==="horizontal"?v.scrollLeft+=(z-O)/X:v.scrollTop+=(z-O)/X,++M<X&&Oe(K)}K()};return()=>{const v=[];if(l.mode==="simple")for(let x=0;x<p.value.length;x++){const R=p.value[x],M=I(R,x);v.push(M)}else for(let x=0;x<p.value.length;x++){const R=p.value[x],M=U(R,x);v.push(M)}const z={ref:q,class:S.value,style:b.value};return t.h("view",z,v)}}}}const{componentName:hp,create:gp,scope:yp}=Q("steps-bar"),dl=gp(pp(hp,yp,le.Checklist,le.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=Lo()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=zo(),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 u=[`${e}`];return l.customClass&&u.push(l.customClass),u}),m=t.computed(()=>{const u={};return ue(i.top)||(u.top=i.top),ue(i.right)||(u.right=i.right),ue(i.bottom)||(u.bottom=i.bottom),ue(i.left)||(u.left=i.left),ue(l.width)||(u.width=l.width),ue(l.height)||(u.height=l.height),ue(l.color)||(u.color=l.color),ue(l.background)||(u.background=l.background),ue(l.borderRadius)||(u["border-radius"]=l.borderRadius),u}),p=t.computed(()=>({[`${e}__icon`]:!0})),d=()=>{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=Sp(u=>{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},u=>{if(!h.value)return;const g=h.value;k(),i.left=y.x+u.x,i.top=y.y+u.y,g.style.left=`${i.left}px`,g.style.top=`${i.top}px`});return t.onMounted(()=>{if(l.draggable&&h.value){const u=[h.value];f.open(u)}}),t.onBeforeUnmount(()=>{l.draggable&&h.value&&f.close()}),()=>{let u=[];const g=typeof r.default=="function"?r.default():[];if(g&&g.length>0)u=g;else{const T=t.h(a,{class:p.value});u.push(T)}const w={ref:T=>{h.value=T},class:c.value,style:m.value,onClick:d};return t.h("view",w,u)}}}),{componentName:Np,create:Bp,scope:Ap}=Q("floating-button"),ul=Bp(wp(Np,Ap,le.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 d={[`${e}`]:!0};return o.disabled?d[`${e}--disabled`]=!0:d[`${e}--${o.type}`]=!0,d}),s=Ie(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 d=[];if(i.value){const b={class:c.value},f=t.h("span",b,[i.value]);d.push(f)}const h={class:m.value},k=o.icon??a,y=t.h(k,h);return d.push(y),o.textPosition==="right"&&d.reverse(),t.h("view",{class:r.value,onClick:p},d)}}}}const{componentName:Vp,create:Ep,scope:Dp}=Q("more-button"),fl=Ep($p(Vp,Dp,le.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}},xp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function qp(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=w=>{m.value=w},d=w=>{if(typeof o.unmount=="function")try{o.unmount()}catch(T){console.error(T)}if(typeof o.callback=="function")try{o.callback(w)}catch(T){console.error(T)}},h=()=>{d("confirm")},k=()=>{d("cancel")},y=()=>{o.closeOnClickOverlay!==!1&&d("close")},S=(w,T)=>xp(w)?(T.src=w,t.h("img",T)):typeof w=="string"?(Array.isArray(T.class)?T.class.push(w):T.class&&typeof T.class=="object"?T[`${w}`]=!0:typeof T.class=="string"?T.class=`${T.class}, ${w}`:T.class=w,t.h(o.tag,T)):t.h(w,T),b=()=>{const w=[];if(o.icon){const C={class:[`${c}__header-icon`]},A=S(o.icon,C);w.push(A)}if(o.title){const C=t.h("view",{class:`${c}__header-title`},[o.title]);w.push(C)}if(o.showClose&&o.closeIcon){const C={class:[`${c}__header-close-icon`],onClick:y},A=S(o.closeIcon,C);w.push(A)}const T={class:[`${c}__header`]};return t.h("view",T,w)},f=(w,T)=>{const C=[];if(T){const $={class:`${c}__group-title`},V=t.h("view",$,[T]);C.push(V)}if(w){const $=[];Array.isArray(w)||(w=[w]);for(let V of w){const E={class:`${c}__group-row`,innerHTML:V},B=t.h("view",E);$.push(B)}if($.length>0){const V={class:`${c}__group-rows`},E=t.h("view",V,$);C.push(E)}}if(C.length===0)return null;const A={class:`${c}__group`};return t.h("view",A,C)},u=()=>{const w=[];if(typeof o.message=="string")w.push(o.message);else if(Array.isArray(o.message))for(let C of o.message)if(typeof C=="string"){const A=f(C);w.push(A)}else{const A=f(C.content,C.title);w.push(A)}else if(typeof o.message=="function"){const C=o.message();w.push(C)}else{const C=o.message;w.push(C)}const T={class:`${c}__body`};return t.h("view",T,w)},g=()=>{const w=[];if(o.showCancelButton){const C={class:[`${c}__footer-button`],style:{},onClick:k};o.cancelButtonClass&&C.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(C.style,o.cancleButtonStyle);const A=t.h("button",C,[o.cancelButtonText??i.cancelText.value]);w.push(A)}if(o.showConfirmButton){const C={class:[`${c}__footer-button`],style:{},onClick:h};o.confirmButtonClass&&C.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(C.style,o.confirmButtonStyle);const A=t.h("button",C,[o.confirmButtonText??i.confirmText.value]);w.push(A)}if(w.length===0)return null;const T={class:`${c}__footer`};return t.h("view",T,w)};return()=>{const w=[],T=b();T&&w.push(T);const C=u();C&&w.push(C);const A=g();A&&w.push(A);const $={class:{[`${c}`]:!0,[`${c}--${o.type||"info"}`]:!0}},V=t.h("view",$,w),E=[`${c}__popup`];o.popClass&&E.push(o.popClass);const B={};o.width&&(B.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(B.height=typeof o.height=="number"?`${o.height}px`:o.height);const P={popClass:E.join(" "),style:B,visible:m.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":p,position:o.position,round:"round",onClickOverlay:y,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,P,{default:()=>V})}}}}const{componentName:vp,create:Mp,scope:Pp}=Q("messagebox"),Lp=Mp(qp(vp,Pp,fe)),zp="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",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%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",Rp="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",Op="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",Kp=new An,Up={showCancelButton:!0,cancelText:"取消",showConfirmButton:!0,confirmText:"确认"},Hp=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-${Kp.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(Lp,e);n.appendChild(o),t.render(r,o)},ct={show:(e,n,a,o)=>{const l={...Up};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=Rp:r==="warning"?l.icon=Op:r==="error"?l.icon=zp:l.icon=Fp),e==="alert"?(l.showCancelButton=!1,l.showConfirmButton=!0):e==="confirm"&&(l.showCancelButton=!0,l.showConfirmButton=!0),l.showClose&&!l.closeIcon&&(l.closeIcon=le.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})},Hp(l)})},alert:(e,n,a)=>ct.show("alert",e,n,a),confirm:(e,n,a)=>ct.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=ct.alert,e.config.globalProperties.$confirm=ct.confirm}},jp=(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)},Wp=new An,Yp=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0),Xp=e=>`${e}-${Wp.get()}`,Qp=Symbol.for("InnerPageScopeKey"),Gp=Symbol.for("PageWrapperKey"),Zp="FoxLeave",Jp="FoxLeaveEnd",_p={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 eh(e,n,a,o){return{props:{...ze,..._p},emits:["update:visible"],setup(l,{attrs:r,slots:s,emit:i}){t.provide(Qp,!0);const c={};t.provide(Gp,c);const m=C=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),p=()=>{m()},d=e,h=C=>{k.value=C,i("update:visible",C)},k=t.ref(!1),y=(C,A)=>Yp(C)?(A.src=C,t.h("img",A)):typeof C=="string"?(Array.isArray(A.class)?A.class.push(C):A.class&&typeof A.class=="object"?A[`${C}`]=!0:typeof A.class=="string"?A.class=`${A.class}, ${C}`:A.class=C,t.h(l.tag,A)):t.h(C,A),S=()=>{if(!l.showHeader)return null;const C=[];if(s.header){const $=s.header();C.push($)}else if(l.title){const $=t.h("view",{class:`${d}__header-title`},[l.title]);C.push($)}if(C.length===0)return null;const A={class:[`${d}__header`]};return t.h("view",A,C)},b=()=>{if(!l.showClose)return null;const C={class:[`${d}__close-icon`],onClick:p},A=l.closeIcon??o;return y(A,C)};let f=null;const u=C=>{jp(Jp,{},f)},g=Xp(e),w=()=>{h(!0)},T=()=>{if(!f)return;const C=f.querySelector(".fox-overlay");C&&(C.classList.add("overlay-fade-leave-active"),C.classList.add("overlay-fade-leave-to"));const A=f.querySelector(".fox-popup");A&&(A.classList.add(`fox-popup-slide-${l.position}-leave-active`),A.classList.add(`fox-popup-slide-${l.position}-leave-to`),A.addEventListener("animationend",u,{once:!0}),A.addEventListener("transitionend",u,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{f=document.querySelector(`.${g}`),f?.addEventListener(Zp,T,{once:!0}),w()}),()=>{const C=[],A=S();A&&C.push(A);const $=b();$&&C.push($);const V=s.default?s.default():[];Reflect.apply([].push,C,V);const E={[`${d}`]:!0};l.mode&&(E[`${d}--${l.mode}`]=!0);const B={class:E},P=t.h("view",B,C),L=[`${d}__popup`,g];l.popClass&&L.push(l.popClass),l.position&&L.push(`${d}__popup--${l.position}`);const D={};l.width&&(D.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(D.height=typeof l.height=="number"?`${l.height}px`:l.height);const U={...ke(l,ze),popClass:L.join(" "),style:D,visible:k.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":h},q=t.h(a,U,{default:()=>P});return t.h("div",{class:[`${d}__root`,g]},[q])}}}}const{componentName:th,create:nh,scope:oh}=Q("popup-wrapper"),ml=nh(eh(th,oh,fe,le.Close)),lh={visible:{type:Boolean},zIndex:{type:Number,default:1},popClass:{type:String},popStyle:{type:Object},closeOnClickOverlay:{type:Boolean,default:!0}};function ah(e,n,a,o){return{props:{...lh},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),d={class:`${e}`};return t.h("view",d,[p])}}}}const{componentName:rh,create:sh,scope:ih}=Q("dropdown"),pl=sh(ah(rh,ih,fe));function ch(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 uh(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={},w=l.textColor??l.color;return w&&(g.color=w),g}),m=(g,w)=>{let T=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const C=l.highlightFilter;if(g.indexOf(C)!==-1){const $=g.replace(new RegExp(C,"g"),`<span>${C}</span>`);w.innerHTML=$,w.class["is-highlight"]=!0,T=t.h(l.tag,w)}}else if(typeof l.highlightFilter=="function"){const C=l.highlightFilter(g);C&&(w.innerHTML=C,w.class["is-highlight"]=!0,T=t.h(l.tag,w))}return T},p=g=>{r.emit("click",g)};let d="";const h=()=>{const g=s.value;if(!g)return;const w=g.clientWidth;ch(g,T=>{const C=g.innerHTML??"";ue(C)||T<w||(d?a?.show(g,C,{type:"text",id:d,showArrow:l.showArrow},!0):d=a?.show(g,C,{type:"text",showArrow:l.showArrow},!0)??"")})},k=()=>{d&&a?.hide(d)};let y=null;const S=g=>{y||(y=setTimeout(()=>{h(),y=null},l.showAfter??0))},b=g=>{y&&(clearTimeout(y),y=null),setTimeout(()=>{k()},l.hideAfter??0)},f=()=>{const g=s.value;g&&(g.addEventListener("mouseover",S),g.addEventListener("mouseleave",b))},u=()=>{const g=s.value;g&&(g.removeEventListener("mouseover",S),g.removeEventListener("mouseleave",b))};return t.onMounted(()=>{!he(l.showOverflowTooltip)||!a||f()}),t.onBeforeUnmount(()=>{!he(l.showOverflowTooltip)||!a||u()}),()=>{const g={onClick:p,class:i.value,style:c.value,ref:s};let w=null;if(he(l.numberFormat)&&typeof r.slots.default=="function"){const $=r.slots.default();if(Array.isArray($)&&$.length===1){const V=$[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const E=me(l.digits),B=me(l.decimalLength),P=he(l.autoPadding);let L=`${$[0].children}`,D=L.split("").reverse().join("");D=en(D,B,P,E,l.separator),L=D.split("").reverse().join(""),l.highlightFilter!==void 0&&(w=m(L,g)),w||(g.innerHTML=L,w=t.h(l.tag,g))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const $=r.slots.default();if(Array.isArray($)&&$.length===1){const V=$[0].type.toString();if(V==="Symbol(Text)"||V==="Symbol(v-txt)"){const E=`${$[0].children}`;w=m(E,g),w||(g.innerHTML=E,w=t.h(l.tag,g))}}}w||(w=t.h(l.tag,g,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return w;let C=null;if(l.icon){const $={[`${e}__mark-wrap`]:!0};l.type&&($[`${e}__mark-wrap--${l.type}`]=!0);const V={},E=l.color;E&&(V.color=E);const B={class:$,style:V};C=t.h("view",B,t.h(l.icon))}else if(r.slots.mark){const $={[`${e}__mark-wrap`]:!0};l.type&&($[`${e}__mark-wrap--${l.type}`]=!0);const V={},E=l.color;E&&(V.color=E);const B={class:$,style:V};C=t.h("view",B,{default:r.slots.mark})}else{const $={[`${e}__mark`]:!0};l.type&&($[`${e}__mark--${l.type??"default"}`]=!0);const V={},E=l.color;E&&(V["background-color"]=E);const B={class:$,style:V};C=t.h("view",B)}const A={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",A,[C,w])}}}}const{componentName:fh,create:mh,scope:ph}=Q("text"),hl=mh(uh(fh,ph,yt,!1));function hh(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],d=c.find(h=>h[o]===p);if(!d)break;s.push(d[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 d=m.find(h=>h[o]===p);if(!d)break;s.push(d[a])}else{let c=n;for(let m=0;c&&m<r.length;m++){let p=r[m],d=c.find(h=>h[o]===p);if(!d)break;s.push(d[a]),c=d[l]}}return s}class gh{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=Ge(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):($e(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function yh(){const e=t.getCurrentInstance();return new gh(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=yh(),i=t.ref([]);t.watch([()=>o.source,()=>o.params],async([p,d])=>{i.value=await s.load(o.sourceType,p,d)},{immediate:!0});const c=t.computed(()=>{if(!Array.isArray(i.value)||i.value.length===0)return"";let p=hh(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}=Q("mapping"),gl=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 cr(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:rA,create:Bh,scope:sA}=Q("domain-provider"),yl=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 Th(e,n){return{inheritAttrs:!1,props:Ah,setup(a,{slots:o}){if(nt&&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;Ki({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 d=(h,k,y)=>{p=new IntersectionObserver(S=>{for(let b of S){let f=!1;b.intersectionRatio>0&&(f=!0);const u=l.get(b.target);if(u)try{if(a.loadPolicy==="lazy"&&!f&&u.visible!==null)return;u.visible=f,u.callback(f)}catch(g){console.error(g)}}},{root:h,rootMargin:k,threshold:y}),r.forEach((S,b)=>{l.set(b,S),p?.observe(b)}),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&&d(y,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:iA,create:$h,scope:cA}=Q("rolling-provider"),bl=$h(Th()),{componentName:Vh,create:Eh}=Q("cell"),Dh=Eh({components:{Right:le.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=Vh;return{[r]:!0,[`${r}--clickable`]:e.isLink,[`${r}--center`]:e.center,[`${r}--large`]:e.size=="large"}}),o=t.computed(()=>({borderRadius:ge(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),Ih={key:0,class:"fox-cell__icon"},xh={key:1,class:"fox-cell__title"},qh={class:"title"},vh={class:"fox-cell__title-desc"};function Mh(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",xh,[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",vh,t.toDisplayString(e.subTitle),1)],64)):t.renderSlot(e.$slots,"title",{key:1},()=>[t.createTextVNode(t.toDisplayString(e.title),1)])])):t.createCommentVNode("",!0),e.desc?(t.openBlock(),t.createElementBlock("view",{key:2,class:t.normalizeClass(["fox-cell__value",{"fox-cell__value--alone":!e.title&&!e.subTitle&&!e.$slots.title}]),style:t.normalizeStyle({"text-align":e.descTextAlign})},t.toDisplayString(e.desc),7)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"link",{},()=>[e.isLink?(t.openBlock(),t.createBlock(s,{key:0,class:"fox-cell__link"})):t.createCommentVNode("",!0)])])],6)}const kl=oe(Dh,[["render",Mh]]),{componentName:Ph,create:Lh}=Q("cell-group"),zh=Lh({props:{title:{type:String,default:""},desc:{type:String,default:""}},setup(){return{classes:t.computed(()=>({[Ph]:!0}))}}}),Fh={key:1,class:"fox-cell-group__title"},Rh={key:3,class:"fox-cell-group__desc"},Oh={class:"fox-cell-group__wrap"};function Kh(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",Fh,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",Rh,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.createElementVNode("view",Oh,[t.renderSlot(e.$slots,"default")])],2)}const Sl=oe(zh,[["render",Kh]]),{componentName:Uh,create:Hh}=Q("image"),jh=Hh({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:le.Image,ImageError:le.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=Uh;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(S=>{S.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=ge(e.width)),e.height&&(k.height=ge(e.height)),e.radius!==void 0&&e.radius!==null&&(k.overflow="hidden",k.borderRadius=ge(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")},d=()=>{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:d,load:p,show:r,imgRef:s}}}),Wh=["src","date-src","alt"],Yh={key:0,class:"fox-img-loading"},Xh={key:1,class:"fox-img-error"};function Qh(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,Wh),e.loading?(t.openBlock(),t.createElementBlock("div",Yh,[e.slotLoding?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(s,{key:0,width:"16px",height:"20px",name:"image"})),t.renderSlot(e.$slots,"loading")])):t.createCommentVNode("",!0),e.isError&&!e.loading?(t.openBlock(),t.createElementBlock("div",Xh,[e.slotError?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(i,{key:0,width:"16px",height:"20px",name:"imageError"})),t.renderSlot(e.$slots,"error")])):t.createCommentVNode("",!0)],6)}const Cl=oe(jh,[["render",Qh]]),{create:Gh}=Q("layout"),wl=Gh({}),{componentName:Zh,create:Jh}=Q("col"),_h=Jh({props:{span:{type:[String,Number],default:"24"},offset:{type:[String,Number],default:"0"}},setup(e){const n=Zh,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 eg(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 Nl=oe(_h,[["render",eg]]),{componentName:tg,create:ng}=Q("row"),og=ng({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=tg;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 en(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=Ne(e),n=Ne(n),[e,n]=no(Ne(e),Ne(n)),a==1&&(o==1?e=to(e):n=to(n));let l=za(e,n);return a?a==2?"-"+Ne(l):e.length<l.length?Ne(l.substring(1)):"-"+Ne(to(l)):Ne(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 za(n,r)}function Ne(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 no(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 za(e,n){[e,n]=no(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 Se=(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))(Se||{});function Et(e,n=0,a=Se.HALF_EVEN){if(a===Se.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=Et(e,0,a),(o?"-":"")+c+new Array(n+1).join("0")}}if(n==0)return r.length,Fa(l[1],r,o,a)?(o?"-":"")+oo(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&&Fa(i,s,o,a)&&(s=oo(s),s.length>n)?(o?"-":"")+oo(r,parseInt(s[0]))+"."+s.substring(1):(o?"-":"")+r+"."+s}function Fa(e,n,a,o){if(!e||e===new Array(e.length+1).join("0")||o===Se.DOWN||!a&&o===Se.FLOOR||a&&o===Se.CEILING)return!1;if(o===Se.UP||a&&o===Se.FLOOR||!a&&o===Se.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 Se.HALF_DOWN:return!1;case Se.HALF_UP:return!0;case Se.HALF_EVEN:default:return parseInt(n[n.length-1])%2==1}}function oo(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 lo(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=Dt(e),n=Dt(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=Dt(e.replace(".","")),n=Dt(n.replace(".","")),e.length<n.length){let d=e;e=n,n=d}if(n=="0")return"0";let s=n.length,i=0,c=[],m=s-1,p="";for(let d=0;d<s;d++)c[d]=e.length-1;for(let d=0;d<2*e.length;d++){let h=0;for(let S=n.length-1;S>=m&&S>=0;S--)c[S]>-1&&c[S]<e.length&&(h+=parseInt(e[c[S]--])*parseInt(n[S]));h+=i,i=Math.floor(h/10),p=h%10+p,m--}return p=Dt(Us(p,r)),a==1&&(p="-"+p),p}function Us(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 Dt(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 ao(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=Ne(n.replace(".","")),l>=0){let m=e.indexOf(".")>0?e.length-e.indexOf(".")-1:-1;if(m==-1)e=Ne(e+new Array(l+1).join("0"));else if(l>m)e=e.replace(".",""),e=Ne(e+new Array(l-m+1).join("0"));else if(l<m){e=e.replace(".","");let p=e.length-m+l;e=Ne(e.substring(0,p)+"."+e.substring(p))}else l==m&&(e=Ne(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=en(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?"-":"")+Ne(Et(i,a-2))}function ro(e,n){return e=e.toString(),n=n.toString(),n=so(n),en(e,n)}function so(e){return e[0]=="-"?e=e.substr(1):e="-"+e,e}function Ra(e,n){if(n==0)throw new Error("Cannot divide by 0");e=e.toString(),n=n.toString(),Oa(e),Oa(n);let a="";e[0]=="-"&&(a="-",e=e.substr(1)),n[0]=="-"&&(n=n.substr(1));let o=ro(e,lo(n,Et(ao(e,n),0,Se.FLOOR)));return a+o}function Oa(e){if(e.indexOf(".")!=-1)throw new Error("Modulus of non-integers not supported")}function Ka(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]=no(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 ie{value;static RoundingModes=Se;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=Ne(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+Ne(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=ie.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=ie.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 ie.getPrettyValue(this.value,n,a)}static round(n,a=0,o=Se.HALF_EVEN){if(n=ie.validate(n),isNaN(a))throw Error("Precision is not a number: "+a);return Et(n,a,o)}round(n=0,a=Se.HALF_EVEN){if(isNaN(n))throw Error("Precision is not a number: "+n);return new ie(Et(this.value,n,a))}static floor(n){return n=ie.validate(n),n.indexOf(".")===-1?n:ie.round(n,0,Se.FLOOR)}floor(){return this.value.indexOf(".")===-1?new ie(this.value):new ie(this.value).round(0,Se.FLOOR)}static ceil(n){return n=ie.validate(n),n.indexOf(".")===-1?n:ie.round(n,0,Se.CEILING)}ceil(){return this.value.indexOf(".")===-1?new ie(this.value):new ie(this.value).round(0,Se.CEILING)}static add(n,a){return n=ie.validate(n),a=ie.validate(a),en(n,a)}add(n){return new ie(en(this.value,n.getValue()))}static subtract(n,a){return n=ie.validate(n),a=ie.validate(a),ro(n,a)}subtract(n){return new ie(ro(this.value,n.getValue()))}static multiply(n,a){return n=ie.validate(n),a=ie.validate(a),lo(n,a)}multiply(n){return new ie(lo(this.value,n.getValue()))}static divide(n,a,o){return n=ie.validate(n),a=ie.validate(a),ao(n,a,o)}divide(n,a){return new ie(ao(this.value,n.getValue(),a))}static modulus(n,a){return n=ie.validate(n),a=ie.validate(a),Ra(n,a)}modulus(n){return new ie(Ra(this.value,n.getValue()))}static compareTo(n,a){return n=ie.validate(n),a=ie.validate(a),Ka(n,a)}compareTo(n){return Ka(this.value,n.getValue())}static negate(n){return n=ie.validate(n),so(n)}negate(){return new ie(so(this.value))}}function Ua(e,n){return ie.multiply(`${e}`,`${n}`)}function io(e,n,a=8){return ie.divide(`${e}`,`${n}`,a)}function co(e,n){return e=`${e}`,n=`${n}`,ie.compareTo(e,n)}function Ha(e){return ie.negate(e)}function tn(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 d="",h=i.split("").reverse();for(let S=0;S<h.length;S++)d+=h[S]+((S+1)%o==0&&S+1!=h.length?l:"");c.length==0?p=`${s}${d.split("").reverse().join("")}`:p=`${s}${d.split("").reverse().join("")}.${c}`}else c.length==0?p=`${s}${i}`:p=`${s}${i}.${c}`;return p}function ja(e){let n=`${e}`,a=n.charAt(0);a=="-"?n=n.substring(1):a="";let o=n.replace(/[^\d\.-]/g,"");return`${a}${o}`}const nt=typeof window<"u",Oe=Xe;function Wa(e){return e==null}const nn=Array.isArray,Hs=e=>ln(e)==="[object Map]",js=e=>ln(e)==="[object Set]",Ke=e=>e instanceof Date,on=e=>typeof e=="function",Ya=e=>typeof e=="string",Ws=e=>typeof e=="symbol",Ve=e=>e!==null&&typeof e=="object",dt=e=>Ve(e)&&on(e.then)&&on(e.catch),Xa=Object.prototype.toString,ln=e=>Xa.call(e),uo=e=>ln(e)==="[object Object]",Qa=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function Ys(e){return e.__esModule||Qa&&e[Symbol.toStringTag]==="Module"}const Xs=typeof Promise<"u"&&Promise.toString().indexOf("[native code]")!==-1;function ot(...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]=ot(l,m,c)}else c!==void 0&&(n[s]=c)}}return n}function fo(e,n,a=!1){if(!a)ot(!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)&&!uo(s))continue;r=fo(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)&&!uo(s))continue;r=fo(r,s,a),e[l]=r}else{if(typeof s=="function")continue;e[l]=s}}}return e}const mo=Xs?Promise.resolve():null;function Qs(e,...n){mo!==null?n&&n.length>0?mo.then(()=>{e(n)}):mo.then(e):n&&n.length>0?setTimeout(()=>{e(n)}):setTimeout(e)}function he(e){return e==null?!1:typeof e=="boolean"?e:typeof e=="string"?e.toLocaleLowerCase()==="true":!!e}function me(e){return typeof e=="number"?e:Number(e)}const Gs={"[object Boolean]":"boolean","[object Number]":"number","[object String]":"string","[object Function]":"function","[object Array]":"array","[object Date]":"date","[object RegExp]":"regExp","[object Object]":"object"};function lt(e){let a=Object.prototype.toString.call(e);return e==null?String(e):Gs[a]||"object"}function an(e){if(!e)return!0;const{display:n}=window.getComputedStyle(e);return n==="none"}function Ga(e){return e&&typeof e=="object"&&"setInterval"in e}function Za(e){let n=!!e&&"length"in e&&e.length,a=lt(e);return a==="function"||Ga(e)?!1:a==="array"||n===0||typeof n=="number"&&n>0&&n-1 in e}function Ja(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 Zs(e,n=[]){let a=n;return e!=null&&(Za(Object(e))?Ja(a,typeof e=="string"?[e]:e):a.push(e)),a}function Me(e,n){if(e==n)return!0;if(e===void 0||n===void 0)return!1;let a=lt(e),o=lt(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(!Me(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(!Me(r,s))return!1}return!0}return!1}function _a(e){return Object.prototype.toString.call(e)==="[object RegExp]"}const ue=e=>e==null?!0:typeof e!="string"?!1:e.length===0;function er(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 tr(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 nr(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 or(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 po(e,n=!0,a=!0){n?e=or(e,".",/\./g):e=e.replace(/\./g,""),a?e=or(e,"-",/-/g):e=e.replace(/-/,"");const o=n?/[^-0-9.]/g:/[^-0-9]/g;return e.replace(o,"")}function Js(e,n){return typeof e=="object"||Array.isArray(e)?n.findIndex(a=>{if(Me(e,a))return!0}):n.indexOf(e)}function _s(e,n){if(typeof e=="object"||Array.isArray(e)){let a=n.reverse().findIndex(o=>{if(Me(e,o))return!0});return a!==-1&&(a=n.length-1-a),a}return n.lastIndexOf(e)}function be(e){return e==null||e==null?0:typeof e=="string"?e.length:`${e}`.length}function ke(e,...n){const a={};return n.forEach(o=>{for(const l in o)a[l]=e[l]}),a}function ut(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 lr=(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 ho(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&e.stopPropagation()}const at=(e,n=2)=>{for(e+="";e.length<n;)e="0"+e;return e.toString()},Ue=(e,n,a)=>Math.min(Math.max(e,n),a),Ce=Symbol.for("BroadcastKey");class go{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="*"):_a(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 rn(e,n,a,o){const l=new go(n,e,a);if(o&&typeof o=="object")for(const r in o)l.on(r,o[r]);return l}function ei(e,n,a){const o=a;if(o[Ce])return o[Ce];const l=t.inject(Ce,null),r=new go(l,a,e);if(n&&typeof n=="object")for(const s in n)r.on(s,n[s]);return o[Ce]=r,t.provide(Ce,r),t.onUnmounted(()=>{r.destroy(),o[Ce]=void 0}),r}function It(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[Ce]??t.inject(Ce,null):t.inject(Ce,null)}const rt=e=>e.default??e;class ti{error(n,a){const o=a,l=It(a);l?l.emit({name:"*",maxLevel:1},"setErrorTip",n):typeof o.setErrorTip=="function"&&o.setErrorTip(n)}reset(n){const a=n,o=It(n);o?o.emit({name:"*",maxLevel:1},"setErrorTip",""):typeof a.setErrorTip=="function"&&a.setErrorTip("")}success(n){const a=n,o=It(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=It(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 xt=new ti;function ni(e){xt=e}function oi(e){xt?Object.assign(xt,e):xt=e}function li(e,n){rt(tt).setValidator(e,n)}function ai(e){rt(tt).deleteValidator(e)}let ar=["blur","clear"];function ri(e){ar=e}function rr(){return ar}let sr=["focus","change","setValue"];function si(e){sr=e}function ir(){return sr}function ii(e){rt(tt).messages(e)}function qt(...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 sn(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 He=Symbol("ValidateSchemaKey");class cr{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=sn(qt(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=sn(o);const l=qt(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=xt;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?rt(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?rt(tt).deleteValidator(n):Reflect.deleteProperty(this.validators,n)}hasValidator(n,a=!1){if(a)return rt(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=qt(this.attrRules,this.rules);n===null?this.rules=[]:Array.isArray(n)?this.rules=sn(n):this.rules=sn([n]);const o=qt(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=qt(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=rt(tt),c=new i(l),m=this.proxy??s;return c.validate(s,{context:m}).then(d=>{if(d.pass)this.success();else{let h="error";Array.isArray(d.errors)&&d.errors.length>0&&(h=d.errors[0].message??h,d.errors=[d.errors[0]],d.errors[0].ref=m),this.error(h)}return d}).catch(d=>{const h=d.message??`${d}`;return this.error(h),d})}}return Promise.resolve({pass:!0})}}function cn(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 cr(n,a,e)}const dn=Symbol("EventEmitterKey");class dr{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 ft(e,n){let a=null;return function(...o){a&&clearTimeout(a),a=setTimeout(()=>{a=null,Reflect.apply(e,null,[...o])},n)}}function un(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=ft((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 yo(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 qe=Symbol("DomainKey"),mt=Symbol("DataItemsKey");class fn{_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 ui=new fn;function pt(){return ui}function je(e=null){return e||(e=t.getCurrentInstance()?.proxy??null),e?e[qe]??t.inject(qe,null):t.inject(qe,null)}const bo=Symbol("OriginalDateKey");function ko(e,n,a=[],o){const l=t.getCurrentInstance(),r=l?.proxy;let s=t.inject(qe,null);s===null&&(s=pt());const i=e||n.prop||n.name,c=new fn(i);c.parent=s;const m=k=>{r[bo]||h(k),c.set("modelValue",k)},p=()=>c.getForSelf("modelValue")??null,d=()=>r[bo]??null,h=k=>{const b={};ot(!0,b,t.toRaw(k)),r[bo]=b};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[qe]=c,t.provide(qe,c);let S=null,y=null;if(l!==null){const k=t.inject(Ce,null);S=rn(r,k,i,o),c.broadcast=S,r[Ce]=S,t.provide(Ce,S),r.broadcast=(f,u,...g)=>Reflect.apply(S.emit,S,[f,u,...g]);const b=t.inject(He,null);y=cn(r,b,{componentName:""}),c.validateSchema=y,r[He]=y,t.provide(He,y),r[mt]=new Map,r.validate=(f=!0)=>{const u=[];let g=null;const w={deep:!1};if(f===!0)g={name:"*"};else if(Array.isArray(f)&&f.length>0){const T=f;g={name:C=>C?T.indexOf(C)!==-1:!1}}else if(f!=null&&typeof f=="object"){const T=f;if(Object.assign(w,T),Array.isArray(T.include)&&T.include.length>0){const C=T.include;g={name:A=>A?C.indexOf(A)!==-1:!1}}else if(Array.isArray(T.exclude)&&T.exclude.length>0){const C=T.exclude;g={name:A=>A?C.indexOf(A)===-1:!1}}else g={name:"*"}}if(g){const T=S?.emitToChildren(g,"validate",w);T&&Reflect.apply([].push,u,T)}return u.length==1?u[0]:u.length>1?Promise.all(u).then(T=>{let C=[];return T.forEach(A=>{A.pass===!1&&Array.isArray(A.errors)&&(C=[...C,...A.errors])}),C.length>0?{pass:!1,errors:C}:{pass:!0}}):Promise.resolve({pass:!0})},r.setNameValidateRules=(f,u=!0,g=!1)=>{if(g===!0){Reflect.ownKeys(f).forEach(T=>{let C=String(T);const V=mr(c,C,{componentName:"",fieldName:C,pureDataValidate:!0},S,y);r[mt].set(C,V);const $=f[C];$&&V.validateSchema.setRule($)});return}if(u){const w=Reflect.ownKeys(f),T={name:C=>w.includes(C)};S?.emitToChildren(T,"setNameValidateRules",f,!1)}},r.clearValidate=(f=!0)=>{let u=null;if(f===!0)u={name:"*"};else if(Array.isArray(f)&&f.length>0){const g=f;u={name:w=>w?g.indexOf(w)!==-1:!1}}else if(f!=null&&typeof f=="object"){const g=f;if(Array.isArray(g.include)&&g.include.length>0){const w=g.include;u={name:T=>T?w.indexOf(T)!==-1:!1}}else if(Array.isArray(g.exclude)&&g.exclude.length>0){const w=g.exclude;u={name:T=>T?w.indexOf(T)===-1:!1}}else u={name:"*"}}u&&S?.emitToChildren(u,"clearValidate",!1)},r.resetFields=f=>{const u=p();if(!u)return;const g={};if(ot(!0,g,d()??{}),Array.isArray(f))f.forEach(w=>{u[w]=g[w]});else if(f&&Array.isArray(f.include))(f.include??[]).forEach(T=>{u[T]=g[T]});else if(f&&Array.isArray(f.exclude)){let w=f.exclude??[];Reflect.ownKeys(g).forEach(T=>{w.includes(T)||(u[T]=g[T])})}else Object.assign(u,g);r.clearValidate(f)},r.setModelValue=(f,u)=>{!u||u===i?m(f):S?.emitToChildren({name:u},"setModelValue",f)},r.getModelValue=()=>p()}return t.onUnmounted(()=>{c.destroy(),r[qe]=void 0,r[mt]&&(r[mt].clear(),r[mt]=void 0),S!==null&&(S.destroy(),r[Ce]=void 0),y!==null&&(y.destroy(),r[He]=void 0)}),c}function ur(e,n,a=[]){const l=t.getCurrentInstance()?.proxy;let r=t.inject(qe,null);r===null&&(r=pt());const s=e||n.prop||n.name,i=new fn(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[qe]=i,t.provide(qe,i),t.onUnmounted(()=>{i.destroy(),l[qe]=void 0}),i}function fr(e,n,a){const l=je(e)?.get("rules");if(!l)return;let r=l[a];r&&(Array.isArray(r)||(r=[r]),n.setRule(r))}function Be(e,n,a){const l=t.getCurrentInstance()?.proxy,r=n??"",s=t.inject(Ce,null),i=rn(l,s,r,a);l[Ce]=i,t.provide(Ce,i),l.broadcast=(y,k,...b)=>Reflect.apply(i.emit,i,[y,k,...b]);const c=t.inject(He,null);e.fieldName=e.fieldName??r;const m=cn(l,c,e);l[He]=m,t.provide(He,m),fr(l,m,r),l.validate=(y=null)=>{const k=[];let b=!1,f=!1;if(Array.isArray(y)&&y.indexOf(r)!==-1)f=!0,b=!0;else if(y&&typeof y=="object"){const u=y,g=u.ignoreDisabled??!0,w=u.ignoreReadonly??!0,T=u.ignoreHidden??!0;g===!0&&e.disabled===!0||w===!0&&e.readonly===!0||T===!0&&an(l.$el)?f=!1:(Array.isArray(u.include)&&u.include.indexOf(r)!==-1||Array.isArray(u.exclude)&&u.exclude.indexOf(r),f=!0),b=u.deep??!1}else typeof y=="boolean"&&(b=y),f=!0;if(f){const u=m?.validate();k.push(u)}if(b){let u=null;const g={deep:!1};if(y===!0)u={name:"*"};else if(Array.isArray(y)&&y.length>0){const w=y;u={name:T=>T?w.indexOf(T)!==-1:!1}}else if(y!=null&&typeof y=="object"){const w=y;if(Object.assign(g,w),Array.isArray(w.include)&&w.include.length>0){const T=w.include;u={name:C=>C?T.indexOf(C)!==-1:!1}}else if(Array.isArray(w.exclude)&&w.exclude.length>0){const T=w.exclude;u={name:C=>C?T.indexOf(C)===-1:!1}}else u={name:"*"}}if(u){const w=i.emitToChildren(u,"validate",g);Reflect.apply([].push,k,w)}}return k.length==1?k[0]:k.length>1?Promise.all(k).then(u=>{let g=[];return u.forEach(w=>{w.pass===!1&&Array.isArray(w.errors)&&(g=[...g,...w.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 b=y[r];if(b&&m?.setRule(b),k){const f={name:u=>Reflect.ownKeys(y).includes(u)};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 b=y;k={name:f=>f?b.indexOf(f)!==-1:!1}}else if(y!=null&&typeof y=="object"){const b=y;if(Array.isArray(b.include)&&b.include.length>0){const f=b.include;k={name:u=>u?f.indexOf(u)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const f=b.exclude;k={name:u=>u?f.indexOf(u)===-1:!1}}else k={name:"*"}}k&&i.emitToChildren(k,"clearValidate",!1)};const p=new dr(l);l[dn]=p;const d=ft((y="validate")=>{y==="reset"?m.clear():m.validate()},60);return(Array.isArray(e.validateCheckEvents)?e.validateCheckEvents:rr()).forEach(y=>{p.on(y,k=>{d("validate")})}),(Array.isArray(e.validateResetEvents)?e.validateResetEvents:ir()).forEach(y=>{p.on(y,k=>{d("reset")})}),t.onUnmounted(()=>{i.destroy(),l[Ce]=void 0,m.destroy(),l[He]=void 0,p.destroy(),l[dn]=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 mr(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=cn({},l,a);r.validate=(p=null)=>{if(!i.isExist())return console.warn(`validate error: field [${s}] not exist`),Promise.resolve({pass:!0});const d=[];let h=!1,S=!1;if(Array.isArray(p)&&p.indexOf(s)!==-1)S=!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),S=!0,h=y.deep??!1}else typeof p=="boolean"&&(h=p),S=!0;if(S){const y=c?.validate();d.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 b=p;y={name:f=>f?b.indexOf(f)!==-1:!1}}else if(p!=null&&typeof p=="object"){const b=p;if(Object.assign(k,b),Array.isArray(b.include)&&b.include.length>0){const f=b.include;y={name:u=>u?f.indexOf(u)!==-1:!1}}else if(Array.isArray(b.exclude)&&b.exclude.length>0){const f=b.exclude;y={name:u=>u?f.indexOf(u)===-1:!1}}else y={name:"*"}}if(y){const b=m.emitToChildren(y,"validate",k);Reflect.apply([].push,d,b)}}return d.length==1?d[0]:d.length>1?Promise.all(d).then(y=>{let k=[];return y.forEach(b=>{b.pass===!1&&Array.isArray(b.errors)&&(k=[...k,...b.errors])}),k.length>0?{pass:!1,errors:k}:{pass:!0}}):Promise.resolve({pass:!0})},r.setValidateRule=p=>c?.setRule(p),r.setNameValidateRules=p=>{const d=p[s];d&&c?.setRule(d)};const m=rn(null,o,s,r);return{broadcast:m,validateSchema:c}}function ht(){const n=t.getCurrentInstance()?.proxy,a=new dr(n);return n[dn]=a,t.onUnmounted(()=>{a.destroy(),n[dn]=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 ge=e=>e?`${ce(e)}px`:"";function ce(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(nt){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=ce(e.top)),e.left!==null&&e.left!==void 0&&(n.left=ce(e.left)),e.bottom!==null&&e.bottom!==void 0&&(n.bottom=ce(e.bottom)),e.right!==null&&e.right!==void 0&&(n.right=ce(e.right))),n}function So(e,n,a={},o=!0,l=-1,r=-1,s=0,i=0){if(e.headerHeight=ce(a.headerHeight??n.headerHeight??-1),e.headerPadding=Le(a.headerPadding??n.headerPadding),e.footerHeight=ce(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=ce(c,r):e.height=ce(r)-ce(s,r)-ce(i,r),e.width=ce(a.width??n.width??0,l)}}function pr(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=ce(l.top),o.safeAreaBottom=ce(l.bottom),o.safeAreaLeft=ce(l.left),o.safeAreaRight=ce(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),d=e.getForParent(Qe);d&&(o.height=gn(e,d),o.width=yn(e,d),t.watch([()=>gn(e,d),()=>yn(e,d)],([S,y])=>{p.height=S,p.width=y}));const h=!d;return t.watch([()=>n.height,()=>e.get("pageLayout"),()=>e.get("rootWidth"),()=>e.get("rootHeight"),()=>e.get("headerBarHeight"),()=>e.get("footerBarHeight")],([S,y,k=-1,b=-1,f=0,u=0])=>{So(p,y,n,h,k,b,f,u)}),e.set(Qe,p),p}function mn(e){return e.get(Qe)}function pn(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 hn(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 gn(e,n){if(n=n??e.get(Qe),n){if(n.contentInnerHeight)return n.contentInnerHeight;const a=pn(e,n),o=hn(e,n);return n.height-a-o-(n.contentPadding.top??0)-(n.contentPadding.bottom??0)}return 0}function yn(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 bn=(e=>(e[e.Parent=0]="Parent",e[e.Near=1]="Near",e))(bn||{});function Co(e,n){return e==null?!1:typeof n=="function"?n(e):!0}function Te(e,n,a=1,o){const l=je();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(Co(c,o))return c}const s=e.value;return Co(s,o)?s:null}):t.computed(()=>{const r=e.value;return Co(r,o)?r:l?.get(n)})}function $e(e){return Te(e,"readonly",0,function(a){return he(a)})}function Ae(e){return Te(e,"disabled",0,function(a){return he(a)})}function Ie(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 hr=new Map,kn=new Map;let wo=null;function pi(e){wo=e}function gr(e,n,a){if(a){let o=kn.get(a);o||(o=new Map,kn.set(a,o)),o.set(e,n)}else hr.set(e,n)}function Ge(e,n,a){!a&&wo&&(a=wo(e)??void 0);let o=null;if(a){let l=kn.get(a);l&&(o=l.get(n))}return o||(o=hr.get(n)),o}function hi(e,n){for(let a in e){const o=e[a];gr(a,o,n)}}function gi(e){kn.delete(e)}function yi(){return{top:0,left:0,bottom:0,right:0}}function bi(e=0,n=0){if(nt){const a=document.documentElement.clientWidth||document.body.clientWidth,o=document.documentElement.clientHeight||document.body.clientHeight,l={width:a,height:o-ce(e,o)-ce(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=un(()=>{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=ot({},yi(),n.safeAreaInset),s=bi(o,l),i=ot({},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){gr(n,a,o)}getAPI(n,a,o){return Ge(n,a,o)}batchSetAPI(n,a){hi(n,a)}clearScopeAPI(n){gi(n)}getRootDomain(){return pt()}}function Q(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"&&(Ya(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={};on(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)}}},yr=(e,n)=>e?t.h(e,n):"";function Ee(e,n=null){if(n||(n=t.getCurrentInstance()),n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const pe={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}},ye={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}},br={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}},kr={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}},Sr=[];for(const e in kr)Sr.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:{...pe,...br,...wi},setup(a,{slots:o}){const l=ko(a.name,a),r=t.inject(Ci,!1);if(l){const p=pr(l,a);Ee({getPageContentHeight:()=>gn(l,p),getPageContentWidth:()=>yn(l,p),getPageHeaderHeight:()=>pn(l,p),getPageFooterHeight:()=>hn(l,p)}),p&&r&&(p.contentHeight="100%")}const s=t.computed(()=>({[e]:!0})),i=t.computed(()=>({})),c=t.getCurrentInstance(),m=(p,d=!1)=>{const h=c?.proxy;h&&typeof h.setNameValidateRules=="function"&&h.setNameValidateRules(p,!0,d)};return t.watch([()=>a.rules,()=>a.pureDataRules],([p,d],[h,S])=>{if(p&&h){const y=t.toRaw(h),k=t.toRaw(p),b=k?Reflect.ownKeys(k):[];(y?Reflect.ownKeys(y):[]).forEach(u=>{b.includes(u)||(k[u]=[])}),m(k)}if(d&&S){const y=t.toRaw(S),k=t.toRaw(d),b=k?Reflect.ownKeys(k):[];(y?Reflect.ownKeys(y):[]).forEach(u=>{b.includes(u)||(k[u]=[])}),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:Bi,create:Ai,scope:oA}=Q("page"),No=Ai(Ni(Bi));function Bo(e){const n=t.unref(e);return{width:n.offsetWidth,height:n.offsetHeight}}function Sn(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 Ti=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=je(),i=s?mn(s):null,c=t.inject(Ti,!1),m=e,p=t.computed(()=>{const B={[m]:!0,[`${m}--border`]:l.border,[`${m}--fixed`]:l.fixed};return c||(B[`${m}--safe-area-inset-top`]=l.safeAreaInsetTop),B}),d=t.computed(()=>({[`${m}__inner`]:!0,[`${m}__inner--${l.align}`]:!0})),h=l.height!==null&&l.height!==void 0?ce(l.height):null,S=t.computed(()=>{const B={safeAreaTop:null,height:null,left:null,top:null,right:null,bottom:null};if(s&&i){const P=Le(l.padding??i.headerPadding);return Object.assign(B,P),h&&(i.headerHeight=h),i.headerHeight>0&&(B.height=i.headerHeight),B.safeAreaTop=i.safeAreaTop===-1?0:i.safeAreaTop,B.safeAreaTop>0&&(B.top=B.safeAreaTop+(P.top??0),B.height&&B.height>0&&(B.height=B.height+B.safeAreaTop)),B}if(h&&(B.height=h),l.padding){const P=Le(l.padding);Object.assign(B,P)}return B}),y=t.ref(null),k=()=>{if(i&&y.value&&!an(y.value)){if(!o){const B=Bo(y.value);i.headerAllHeight=B.height}return i.headerMounted=!0,!0}return!1};let b=null;t.onMounted(()=>{i&&(yo(k,50,5,50,!0),window.ResizeObserver&&y.value&&(b=new window.ResizeObserver(()=>{k()}),b.observe(y.value)))}),t.onUnmounted(()=>{i&&(i.headerMounted=!1,b&&(b.disconnect(),b=null))});const f=t.computed(()=>{const B={};return S.value.height!==null&&S.value.height!==void 0&&(B.height=`${S.value.height}px`),S.value.top!==null&&S.value.top!==void 0&&(B.paddingTop=`${S.value.top}px`),S.value.left!==null&&S.value.left!==void 0&&(B.paddingLeft=`${S.value.left}px`),S.value.right!==null&&S.value.right!==void 0&&(B.paddingRight=`${S.value.right}px`),S.value.bottom!==null&&S.value.bottom!==void 0&&(B.paddingBottom=`${S.value.bottom}px`),B}),u=t.computed(()=>!(S.value.height!==null&&S.value.height!==void 0&&S.value.height<=0));function g(){r.emit("back")}function w(){r.emit("click-title")}function T(){r.emit("click-right")}function C(){r.emit("click-right-text")}const A=()=>{if(!l.leftShow)return null;const B=[];if(r.slots.left)B.push(r.slots.left());else{if(r.slots.leftIcon){const P=t.h("view",{class:"left-icon",onClick:g},[r.slots.leftIcon()]);B.push(P)}else if(l.leftIcon){const P=t.h("view",{class:"left-icon",onClick:g},[t.h(l.leftIcon)]);B.push(P)}if(l.leftText){const P=t.h("view",{class:"left-text",onClick:g},[l.leftText]);B.push(P)}}return B.length===0?null:t.h("view",{class:"fox-header-bar__left"},B)},V=()=>{if(!l.rightShow)return null;const B=[];if(r.slots.right)B.push(r.slots.right());else{if(l.rightText){const P=t.h("view",{class:"right-text",onClick:C},[l.rightText]);B.push(P)}if(r.slots.rightIcon){const P=t.h("view",{class:"right-icon",onClick:T},[r.slots.rightIcon()]);B.push(P)}else if(l.rightIcon){const P=t.h("view",{class:"right-icon",onClick:T},[t.h(l.rightIcon)]);B.push(P)}}return B.length===0?null:t.h("view",{class:"fox-header-bar__right"},B)},$=()=>{if(!l.titleShow)return null;const B=[],P=r.slots.default?r.slots.default():null;if(P)B.push(P);else{if(l.title){const L=t.h("view",{class:"title-text"},[l.title]);B.push(L)}if(r.slots.titleIcon){const L=t.h("view",{class:"title-icon",onClick:w},[r.slots.titleIcon()]);B.push(L)}else if(l.titleIcon){const L=t.h("view",{class:"title-icon",onClick:w},[t.h(l.titleIcon)]);B.push(L)}}return B.length===0?null:t.h("view",{class:"fox-header-bar__title"},B)},E=()=>{const B=[],P=r.slots.bottom?r.slots.bottom():null;return P&&B.push(P),B.length===0?null:t.h("view",{class:"fox-header-bar__bottom"},B)};return()=>{if(!u.value)return null;const B=[];if(r.slots.all)B.push(r.slots.all());else{const L=[],D=A();D&&L.push(D);const I=$();I&&L.push(I);const U=V();if(U&&L.push(U),L.length>0){const Y=t.h("view",{class:d.value},L);B.push(Y)}const q=E();q&&B.push(q)}if(B.length===0)return null;const P={class:p.value,style:f.value,ref:y};return t.h("view",P,B)}}}),{componentName:$i,create:Ei,scope:Di}=Q("header-bar"),Ao=Ei(Vi($i,Di,le.Left,!1)),Ii=Symbol.for("InnerPageScopeKey");function xi(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=je(),s=r?mn(r):null,i=t.inject(Ii,!1),c=e,m=t.computed(()=>{const b={[c]:!0,[`${c}--${o.align}`]:!0,[`${c}--border`]:o.border,[`${c}--fixed`]:o.fixed};return i||(b[`${c}--safe-area-inset-bottom`]=o.safeAreaInsetBottom),b}),p=o.height!==null&&o.height!==void 0?ce(o.height):null,d=t.computed(()=>{const b={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(b,f),p&&(s.footerHeight=p),s.footerHeight>0&&(b.height=s.footerHeight),b.safeAreaBottom=s.safeAreaBottom===-1?0:s.safeAreaBottom,b.safeAreaBottom>0&&(b.bottom=b.safeAreaBottom+(f.bottom??0),b.height&&b.height>0&&(b.height=b.height+b.safeAreaBottom)),b}if(p&&(b.height=p),o.padding){const f=Le(o.padding);Object.assign(b,f)}return b}),h=t.ref(null),S=()=>{if(s&&h.value&&!an(h.value)){if(!a){const b=Bo(h.value);s.footerAllHeight=b.height}return s.footerMounted=!0,!0}return!1};let y=null;t.onMounted(()=>{s&&(yo(S,50,5,50,!0),window.ResizeObserver&&(y=new window.ResizeObserver(()=>{S()}),y.observe(h.value)))}),t.onUnmounted(()=>{s&&(s.footerMounted=!1,y&&(y.disconnect(),y=null))});const k=t.computed(()=>{const b={};return d.value.height!==null&&d.value.height!==void 0&&(b.height=ge(d.value.height)),d.value.top!==null&&d.value.top!==void 0&&(b.paddingTop=ge(d.value.top)),d.value.left!==null&&d.value.left!==void 0&&(b.paddingLeft=ge(d.value.left)),d.value.right!==null&&d.value.right!==void 0&&(b.paddingRight=ge(d.value.right)),d.value.bottom!==null&&d.value.bottom!==void 0&&(b.paddingBottom=ge(d.value.bottom)),b});return()=>{const b=l.slots.default?l.slots.default():[],f={ref:h,class:m.value,style:k.value};return t.h("view",f,b)}}}}const{componentName:qi,create:vi,scope:Mi}=Q("footer-bar"),To=vi(xi(qi,Mi,!1));function Pi(e,n){return{props:{padding:{type:[Object],required:!1}},setup(a){const o=je(),l=t.computed(()=>({[e]:!0})),r=o?mn(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=pn(o,r),d=hn(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:",d),console.debug("[content]padding:",r.contentPadding),m.height=h;let S=(r&&r.contentPadding&&r.contentPadding.top)??-1;(S>=0||p>0)&&(S=S<0?0:S,m.paddingTop=`${p+S}px`);let y=(r&&r.contentPadding&&r.contentPadding.bottom)??-1;(y>=0||d>0)&&(y=y<0?0:y,m.paddingBottom=`${d+y}px`);const k=(r&&r.contentPadding&&r.contentPadding.left)??-1;k>=0&&(m.paddingLeft=`${k}px`);const b=(r&&r.contentPadding&&r.contentPadding.right)??-1;return b>=0&&(m.paddingRight=`${b}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=ft(()=>{if(r&&i.value){const m=Sn(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:lA}=Q("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 oe=(e,n)=>{const a=e.__vccOpts||e;for(const[o,l]of n)a[o]=l;return a},Vo=oe(Fi,[["render",Ri]]),gt="GroupStateKey",Cr=Symbol.for("GroupScopeKey");function Cn(){return t.inject(Cr,!1)}function wn(e=!0){t.provide(Cr,e)}function Oi(e,n={}){Reflect.ownKeys(n).forEach(o=>{if(typeof o!="string")return;const l=n[o];Wa(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(gt,r),r}function $o(e,n,a=-1,o=-1,l=!1,r,s,i){const c=e.get(gt);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=ce(r),d=ce(s);i||(i=m.type??"grid");const h=()=>{const S=n===""||n===-1,y=ce(n);let k=me(a);const b=ce(o);if(!S){let g=(y-(k-1)*b)/k;for(;d!==-1&&g>d;)k++,g=(y-(k-1)*b)/k;for(;p!==-1&&k>1&&g<p;)k--,g=(y-(k-1)*b)/k}let f=!1;const u=c.layout;u.value.width=n,u.value.column!==k&&(u.value.column=k,f=!0),u.value.gutter!==b&&(u.value.gutter=b,f=!0),u.value.type!==i&&(u.value.type=i,f=!0),f&&t.triggerRef(u)};if(l)h();else{const S=++c.passport;setTimeout(()=>{S===c.passport&&h()},50)}}function Nn(e,n=!1){let a;return n?a=e.getForParent(gt):a=e.get(gt),a.layout}function Bn(e,n=!1){let a;return n?a=e.getForParent(gt):a=e.get(gt),a.order}function wr(e,n=1){if(n==="stretch")return-1;const a=me(n);return a===-1?100:100*a/e}function An(e,n,a=1,o=0,l){const r={};let s=0;l?s=ce(l):s=wr(n.column,a),s>0&&(r.width=`${s}%`);const i=wr(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 Tn(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=me(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=me(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 Nr=Symbol("RollingStateKey");function Ui(e){t.provide(Nr,e)}function Hi(){return t.inject(Nr,null)}function Eo(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=Eo(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=Eo(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={...pe,...br,...kr};function Xi(e,n,a){return{props:Yi,emits:["update:collapse"],setup(o,l){const r=ko(o.name,o,Sr),s=Ki(r,{type:o.type}),i=Cn();wn(!0);const c=o.rollingDisplay?Hi():null,m=t.ref(null),p=t.computed(()=>o.rollingDisplay?c&&!c.disabled:!1),d=t.computed(()=>i&&r?Nn(r,!0).value:null),h=t.getCurrentInstance(),S=(H,Z=!1)=>{const G=h?.proxy;G&&typeof G.setNameValidateRules=="function"&&G.setNameValidateRules(H,!0,Z)};t.watch([()=>o.rules,()=>o.pureDataRules],([H,Z],[G,_])=>{if(H&&G){const F=t.toRaw(G),te=t.toRaw(H),ne=te?Reflect.ownKeys(te):[];(F?Reflect.ownKeys(F):[]).forEach(de=>{ne.includes(de)||(te[de]=[])}),S(te)}if(Z&&_){const F=t.toRaw(_),te=t.toRaw(Z),ne=te?Reflect.ownKeys(te):[];(F?Reflect.ownKeys(F):[]).forEach(de=>{ne.includes(de)||(te[de]=[])}),S(te,!0)}},{deep:!0});const y=e,k=t.computed(()=>{const H={};if(H.height=I.value,o.width)o.width!=="auto"&&(H.width=ge(o.width));else{const Z=i?Bn(r,!0):null;if(d.value&&Z){if(d.value.type==="grid"){const G=Tn(Z,d.value,o.span,o.offset);Object.assign(H,G)}else if(d.value.type==="flow"){const G=An(Z,d.value,o.span,o.offset,o.width);Object.assign(H,G)}}}return H}),b=t.computed(()=>{const H=s.layout.value.type;return H==="grid"||H==="flow"?{[`${y}--${H}`]:!0,[`${y}--${H}-justify-${o.justify}`]:!0,[`${y}--${H}-align-${o.align}`]:!0,[`${y}--gutter`]:!0}:{[`${y}--${H}`]:!0,[`${y}--gutter`]:!0}}),f=t.computed(()=>{if(s.layout.value.type==="grid"){let Z="";if(o.columnWidth)Z=`repeat(auto-fill, ${o.columnWidth})`;else{const G=Wi(V.value,s.layout.value.column,s.layout.value.gutter);Z=`repeat(${s.layout.value.column}, ${G})`}return{"column-gap":`${s.layout.value.gutter}px`,"grid-template-columns":Z}}}),u=t.toRef(o,"gutter"),g=t.toRef(o,"column"),w=t.computed(()=>i||p.value?!0:he(o.isWrap)),T=[],C=H=>{T.push(H)},A=()=>{let H=T.length;T.splice(0,H)},V=t.ref(-1),$=H=>{const Z=Sn(H).width;Z>0&&Z!==V.value&&(V.value=Z)};$o(r,V.value,g.value,u.value,!0,o.minItemWidth,o.maxItemWidth,o.type),o.autoLayout&&t.watch([V,g,u],([H,Z,G])=>{s.order.index=0,$o(r,H,Z,G,!1,o.minItemWidth,o.maxItemWidth,o.type)});const E=t.computed(()=>U.value?o.expandText??"":o.collapseText??""),B=t.computed(()=>({[`${e}__header-collapse-text`]:!0})),P=t.computed(()=>({[`${e}__header-collapse-icon`]:!0,"is-expand":!U.value,"is-collapse":U.value})),L=t.ref(),D=t.ref(),I=t.computed(()=>q.value||ge(o.height)||""),U=t.ref(!1),q=t.ref(""),Y=t.ref(!1);let j=-1;const J=(H,Z=!0)=>{const G=L.value;if(G&&U.value!==H){if(j=j<=0?ji(G):j,Y.value=!0,Z)if(G.style["will-change"]="height",G.ontransitionend=function(){G.ontransitionend=null,this.style["will-change"]="auto",H||(q.value="",Y.value=!1)},H){let _=0;o.collapseHeight?_=o.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(_=D.value.offsetHeight),q.value=`${j}px`,t.nextTick(()=>{q.value=`${_}px`})}else q.value=`${j}px`;else if(H){let _=0;o.collapseHeight?_=o.collapseHeight:D.value&&D.value.classList.contains(`${e}__header`)&&(_=D.value.offsetHeight),q.value=`${_}px`}else Y.value=!1,q.value=`${j}px`;U.value=H,l.emit("update:collapse",H)}};t.watch(()=>o.collapse,H=>{J(H)});const ee=()=>{W()},W=H=>{H=H??!U.value,J(H)};Ee({toggleCollapse:W,doLayout:()=>{T[0]&&($(T[0]),$o(r,V.value,g.value,u.value,!0,o.minItemWidth,o.maxItemWidth,o.type))}});let z=null,x=!0;const R=H=>{if(o.rules){const Z=t.toRaw(o.rules);S(Z)}if(o.pureDataRules){const Z=t.toRaw(o.pureDataRules);S(Z,!0)}if(nt&&(H&&J(he(o.collapse),!1),o.autoLayout&&Array.isArray(T)&&T.length>0)){const Z=T[0];$(Z),window.ResizeObserver&&(z=new window.ResizeObserver(()=>{$(Z)}),z.observe(Z))}},M=()=>{z?.disconnect(),z=null},O=!p.value||c?.acquire();O&&(m.value=p.value?!0:null),t.onMounted(()=>{if(O&&(R(x),x=!1),p.value&&c){let H=null,Z=c.initialHeight;c.observe(L.value,G=>{if(G!==m.value)if(G)m.value=!0,U.value||(q.value=""),H=setTimeout(()=>{H=null,m.value!==!1&&(R(x),x=!1)},100);else{if(H!==null&&clearTimeout(H),m.value=!1,!U.value)if(x)q.value=c.initialHeight;else{let _=Eo(L.value);_<=0?q.value=Z:(q.value=`${_}px`,Z=q.value)}x||M()}})}}),t.onUnmounted(()=>{z?.disconnect(),c&&c.unobserve(L.value)});const X=(H="right")=>{const Z=[];if(E.value){const te={class:B.value},ne=t.h("span",te,[E.value]);Z.push(ne)}const G={class:P.value},_=o.collapseIcon??a,F=t.h(_,G);return Z.push(F),Z.length>0?t.h("div",{class:{[`${y}__header-collapse`]:!0,[`is-${H}`]:!0},onClick:ee},Z):null},K=(H,Z,G,_)=>{const F={...b.value};return Z===0&&(F[`${y}__first`]=!0),G>=_-1&&(F[`${y}__last`]=!0),t.h("div",{ref:C,key:`${Z}`,class:F,style:f.value},H)};return()=>{if(p.value&&m.value!==!0){const F=o.tag||"div";return t.h(F,{ref:L,prop:o.name,class:{[`${y}`]:!0,"is-collapse":Y.value},style:k.value},[])}s.order.index=0;const H=[];let Z=0;if(l.slots.header){const F={key:`${Z++}`,ref:D,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},te=t.h("div",F,[l.slots.header()]);H.push(te)}else{const F=[],te=o.collapsePosition==="left";if(te&&o.showCollapse){const ne=X("left");ne&&F.push(ne)}if(o.title||l.slots.title){if(o.showMark){const ne={class:{[`${y}__header-mark`]:!0}};o.markColor&&(ne.style={background:o.markColor});const se=t.h("div",ne);F.push(se)}if(l.slots.title){const ne=t.h("div",{class:{[`${y}__header-title`]:!0}},[l.slots.title()]);F.push(ne)}else if(o.title){const ne=t.h("div",{class:{[`${y}__header-title`]:!0}},[o.title]);F.push(ne)}}if(l.slots.toolbar&&F.push(l.slots.toolbar()),!te&&o.showCollapse){const ne=X("right");ne&&F.push(ne)}if(F.length>0){const ne={key:`${Z++}`,ref:D,class:{[`${y}__header`]:!0,[`${y}__first`]:!0}},se=t.h("div",ne,F);H.push(se)}}A();const G=l.slots.default?l.slots.default():[],_=s.layout.value.type;if(_==="grid"){const F=K(G,Z++,0,G.length);H.push(F)}else if(_==="flow"){const F=K(G,Z++,0,G.length);H.push(F)}else for(let F=0;F<G.length;F++){const te=G[F],ne=K([te],Z++,F,G.length);H.push(ne)}if(w.value){const F=o.tag||"div";return t.h(F,{ref:L,prop:o.name,class:{[`${y}`]:!0,"is-collapse":Y.value},style:k.value},[H])}else return H}}}}const{componentName:Qi,create:Gi,scope:Zi}=Q("group"),Do=Gi(Xi(Qi,Zi,le.RectUp));function Ji(e){return e===window}const _i=/matrix\((.+)\)/,Br=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 Ar=new tc,Tr={price:{type:[Number,String],default:0},needSymbol:{type:Boolean,default:!0},symbol:{type:String,default:"¥"},decimalLength:{type:[Number,String],required:!1,default:2},digits:{type:[Number,String],required:!1,default:3},separator:{type:String,required:!1,default:","},position:{type:String,default:"before"},size:{type:String,default:"large"}},{componentName:nc,create:oc}=Q("price"),lc=oc({props:{...Tr},setup(e){const n=t.computed(()=>({[nc]:!0})),a=t.computed(()=>e.needSymbol?e.symbol:""),o=t.computed(()=>be(e.price)==0?"":tn(e.price,e.decimalLength,!0,me(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 Ze=oe(lc,[["render",sc]]),{componentName:Io,create:ic}=Q("hint-text"),cc=ic({components:{Price:Ze},props:{...Tr,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=(B,P,L,D,I,U)=>{const q=document.documentElement.clientWidth||document.body.clientWidth,Y=document.documentElement.clientHeight||document.body.clientHeight,j=B.split("-");let J=[];j[0]==="top"?J=["top","bottom","right","left"]:j[0]==="bottom"?J=["bottom","top","right","left"]:j[0]==="left"?J=["left","top","bottom","right"]:j[0]==="right"&&(J=["right","top","bottom","left"]);const ee={top:null,right:null,bottom:null,left:null},W=[];for(let v=0;v<J.length;v++){const z=J[v];if(W[0]=z,j[1]&&(W[1]=j[1]),z==="top"){const x=P.y-U-e.arrowSize-e.offset;if(x>=0){ee.top=x;let R=0;j[1]==="start"?R=P.x:j[1]==="end"?R=P.x+L-I:R=P.x+L/2-I/2;const M=q-R-I;M<0?(R+=M,d.value=-M):d.value=0,ee.left=R<0?0:R;break}}else if(z==="bottom"){const x=P.y+D+e.arrowSize+e.offset;if(x+U<=Y){ee.top=x;let R=0;j[1]==="start"?R=P.x:j[1]==="end"?R=P.x+L-I:R=P.x+L/2-I/2;const M=q-R-I;M<0?(R+=M,d.value=-M):d.value=0,ee.left=R<0?0:R;break}}else if(z==="left"){const x=P.x-I-e.arrowSize-e.offset;if(x>=0){ee.left=x;let R=0;j[1]==="start"?R=P.y:j[1]==="end"?R=P.y+D-U:R=P.y+D/2-U/2,ee.top=R<0?0:R;break}}else if(z==="right"){const x=P.x+L+e.arrowSize+e.offset;if(x+I<=q){ee.left=x;let R=0;j[1]==="start"?R=P.y:j[1]==="end"?R=P.y+D-U:R=P.y+D/2-U/2,ee.top=R<0?0:R;break}}}return{bestPlacement:W.join("-"),bestInsetRect:ee}},p=(B,P,L=10)=>{if(!nt||P===!1||!B)return;o.value=Br(e.reference),l.value=e.reference.offsetWidth,r.value=e.reference.offsetHeight;const D=c.value.offsetHeight,I=c.value.offsetWidth,{bestPlacement:U,bestInsetRect:q}=m(e.placement,o.value,l.value,r.value,I,D);s.value=U,a.value=q,i.value=!0},d=t.ref(0),h=ft(()=>{p(e.message,e.visible)},10),S=t.ref(e.visible);t.watch(()=>e.visible,B=>{S.value=B});const y=t.computed(()=>S.value&&k.value),k=t.ref(!0),b=ft(B=>{const P=B[0];P&&(k.value=P.isIntersecting)},10),f=new IntersectionObserver(b);t.watch([()=>e.message,()=>e.visible],([B,P])=>{setTimeout(()=>{p(e.message,e.visible)},0)}),t.onMounted(()=>{setTimeout(()=>{p(e.message,e.visible)},0),Ar.watch(e.reference,h),f.observe(e.reference)}),t.onBeforeMount(()=>{Ar.unwatch(e.reference,h),f.unobserve(e.reference),f.disconnect()});const u=t.computed(()=>{const B={[Io]:!0};return s.value.startsWith("top")?B["is-top"]=!0:s.value.startsWith("right")?B["is-right"]=!0:s.value.startsWith("bottom")?B["is-bottom"]=!0:s.value.startsWith("right")&&(B["is-right"]=!0),e.size==="small"?B["is-small"]=!0:e.size==="large"&&(B["is-large"]=!0),e.customClass&&typeof e.customClass=="string"&&(B[`${e.customClass}`]=!0),B}),g=t.computed(()=>{const B={};a.value.top!==null&&(B.top=`${a.value.top}px`),a.value.right!==null&&(B.right=`${a.value.right}px`),a.value.bottom!==null&&(B.bottom=`${a.value.bottom}px`),a.value.left!==null&&(B.left=`${a.value.left}px`),e.autoFit&&(B["min-width"]=`${l.value}px`);const P=document.documentElement.clientWidth||document.body.clientWidth;return B["max-width"]=`${P}px`,i.value&&(B.opacity="1"),e.transition||(B.transition="none"),e.zIndex&&(B["z-index"]=`${e.zIndex}`),e.customStyle&&typeof e.customStyle=="object"&&Object.assign(B,e.customStyle),B}),w=t.computed(()=>{const B=[`${Io}__content`];return e.customTextClass&&B.push(e.customTextClass),B}),T=t.computed(()=>{const B={};return e.customTextStyle&&typeof e.customTextStyle=="object"&&Object.assign(B,e.customTextStyle),B}),C=t.computed(()=>({[`${Io}__arrow`]:!0})),A=t.computed(()=>{const B={};return e.showArrow?(B.width=`${e.arrowSize}px`,B.height=`${e.arrowSize}px`,s.value==="top"?(B.left="50%",B.bottom=`-${e.arrowSize}px`,B.transform=" translate(-50%, 0%)"):s.value==="top-start"?(B.left=`${e.arrowOffset+d.value}px`,B.bottom=`-${e.arrowSize}px`):s.value==="top-end"?(B.right=`${e.arrowOffset-d.value}px`,B.bottom=`-${e.arrowSize}px`):s.value==="right"?(B.left=`-${e.arrowSize}px`,B.top="50%",B.transform=" translate(0%, -50%)"):s.value==="right-start"?(B.left=`-${e.arrowSize}px`,B.top=`${e.arrowOffset}px`):s.value==="right-end"?(B.left=`-${e.arrowSize}px`,B.bottom=`-${e.arrowOffset}px`):s.value==="bottom"?(B.left="50%",B.top=`-${e.arrowSize}px`,B.transform=" translate(-50%, 0%)"):s.value==="bottom-start"?(B.left=`${e.arrowOffset+d.value}px`,B.top=`-${e.arrowSize}px`):s.value==="bottom-end"?(B.right=`${e.arrowOffset-d.value}px`,B.top=`-${e.arrowSize}px`):s.value==="left"?(B.right=`-${e.arrowSize}px`,B.top="50%",B.transform=" translate(0%, -50%)"):s.value==="left-start"?(B.right=`-${e.arrowSize}px`,B.top=`${e.arrowOffset}px`):s.value==="left-end"&&(B.right=`-${e.arrowSize}px`,B.bottom=`-${e.arrowOffset}px`),B):{display:"none"}}),V=t.computed(()=>y.value&&e.closeOnClick),$=t.computed(()=>{const B={};return e.zIndex&&(B["z-index"]=`${e.zIndex}`),B});return{show:y,tipRef:c,classes:u,styles:g,textClasses:w,textStyles:T,arrowClasses:C,arrowStyles:A,overlayShow:V,overlayStyle:$,onClickOverlay:()=>{S.value=!1,n.emit("update:visible",!1)}}}}),dc=["innerHTML"];function uc(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 Vr=oe(cc,[["render",uc]]);class Vn{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 xo={},fc=new Vn,yt=new Map,$n=e=>{if(e){const n=document.getElementById(e);yt.delete(e),n&&n.parentNode?.removeChild(n)}else{for(const n of yt.keys()){const a=document.getElementById(n);a&&a.parentNode?.removeChild(a)}yt.clear()}},mc=e=>{e.unmount=$n;const n=document.getElementById(e.id);if(n){const a=yt.get(e.id);a?e={...xo,...a,...e}:e={...xo,...e},e.transition=!1;const o=t.createVNode(Vr,e);return t.render(o,n),e.id}},pc=e=>{e.unmount=$n;let n=e.id??`hinttext_${fc.get()}`;e={...xo,...e},e.id=n,yt.set(n,e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Vr,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&&yt.has(l)?mc({...a,message:n,reference:e}):(o&&$n(),pc({...a,message:n,reference:e}))},hide(e){$n(e)},install(e){e.config.globalProperties.$hintText=bt}};function gc(e,n,a,o=!1){return{inheritAttrs:!0,props:{...pe,...ye},emits:["appear","disappear"],setup(l,r){const s=l.prop??r.attrs.name;Be({componentName:e,validate:!1},s);const i=je(),c=Cn();wn(!1);const m=t.computed(()=>c&&i?Nn(i,!1).value:null),p=e,d=t.ref(null),h=t.computed(()=>{const F={[p]:!0,[`${p}__gutter`]:m.value&&m.value.type!=="flow",[`${p}__stretch`]:l.span==="stretch",[`${p}__input--border`]:he(l.hasBorder)};if(F[l.errorMarkClass]=!!U.value,F[l.warnMarkClass]=!!D.value,F[l.infoMarkClass]=!!P.value,typeof d.value=="function"){const te=d.value(s);F[te]=!0}else if(typeof d.value=="string"){const te=d.value;F[te]=!0}return F}),S=t.ref(null),y=t.computed(()=>{const F={};if(l.width)l.width!=="auto"&&(F.width=ge(l.width));else{const te=c&&i?Bn(i,!1):null;if(m.value&&te){if(m.value.type==="grid"){const ne=Tn(te,m.value,l.span,l.offset);Object.assign(F,ne)}else if(m.value.type==="flow"){const ne=An(te,m.value,l.span,l.offset,l.width);Object.assign(F,ne)}}}if(typeof S.value=="function"){const te=S.value(s);te&&Object.assign(F,te)}else if(S.value&&typeof S.value=="object"){const te=S.value;Object.assign(F,te)}return F}),k=t.ref(null),b=t.computed({get:()=>k.value??he(l.isRequired),set:F=>{k.value=F}}),f=()=>typeof l.label=="string"&&l.label.length>0||typeof r.slots.label=="function",u=Te(t.toRef(l,"labelPosition"),"labelPosition",bn.Near),g=t.computed(()=>u&&u.value==="top"?"top":u&&u.value==="right"?"right":"left"),w=t.computed(()=>({[`${p}__main`]:!0,[`${p}__main--${g.value}`]:!0})),T=t.computed(()=>({label:!0,[`label--${g.value}`]:!0})),C=Te(t.toRef(l,"labelWidth"),"labelWidth",bn.Near),A=t.computed(()=>C&&C.value?{width:ge(C.value)}:{}),V=t.computed(()=>({"label--string":!0,"label--required":b.value})),$=t.computed(()=>({content:!0,[l.contentClass]:!0})),E=t.computed(()=>({...l.contentStyle})),B=t.shallowReactive({errorTip:"",errorIcon:null,warnTip:"",warnIcon:null,infoTip:"",infoIcon:null});Ee({setRequired(F){b.value=F},setErrorTip(F){B.errorTip=F},setErrorIcon(F){B.errorIcon=F},setWarnTip(F){B.warnTip=F},setWarnIcon(F){B.warnIcon=F},setInfoTip(F){B.infoTip=F},setInfoIcon(F){B.infoIcon=F},setCustomClassName(F){d.value=F},setCustomStyle(F){S.value=F}});const P=t.computed(()=>l.infoTip||B.infoTip),L=t.computed(()=>l.infoIcon||B.infoIcon),D=t.computed(()=>l.warnTip||B.warnTip),I=t.computed(()=>l.warnIcon||B.warnIcon),U=t.computed(()=>l.errorTip||B.errorTip),q=t.computed(()=>l.errorIcon||B.errorIcon),Y=t.computed(()=>U.value?"error":D.value?"warn":P.value?"info":""),j=()=>Y.value.length>0,J=t.computed(()=>Y.value==="error"?U.value:Y.value==="warn"?D.value:Y.value==="info"?P.value:""),ee=t.computed(()=>Y.value==="error"?q.value:Y.value==="warn"?I.value:Y.value==="info"?L.value:null),W=t.computed(()=>{const F={[`${p}__tip`]:!0,[`${p}__tip--${Y.value}`]:!0,[`${p}--animate`]:!0};return Y.value==="error"&&l.errorClass?F[`${l.errorClass}`]=!0:Y.value==="warn"&&l.warnClass?F[`${l.warnClass}`]=!0:Y.value==="info"&&l.infoClass&&(F[`${l.infoClass}`]=!0),F}),v=t.computed(()=>{const F={};return u&&u.value==="top"||!f()?F["padding-left"]="0px":C&&C.value&&(F["padding-left"]=ge(C.value)),F}),z=t.ref();let x="";t.watch([()=>l.hintVisible,()=>l.hintText,()=>l.hintType,()=>l.hintProps],([F,te,ne,se])=>{z.value&&(F&&!ue(te)?x?a.show(z.value,te,{...se,id:x,type:ne},!0):x=a.show(z.value,te,{...se,type:ne},!0):a.hide(x))});let R=null;const M=()=>{R||!z.value||(R=new IntersectionObserver(F=>{let te=!1;for(let ne of F)if(ne.intersectionRatio>0){te=!0,te&&r.emit("appear",ne);break}te||r.emit("disappear")}),R.observe(z.value))},O=()=>{!R||!z.value||(R.unobserve(z.value),R=null)};t.watch(()=>he(l.appearListen),F=>{F?M():O()}),t.onMounted(()=>{he(l.appearListen)&&M()}),t.onUnmounted(O);const X=()=>{if(!f())return null;const F=[],te=r.slots?.label?.()??l.label,ne={class:V.value},se=t.h("div",ne,[te]);if(F.push(se),r.slots.fixedPreTip){const xe=r.slots.fixedPreTip();F.push(xe)}const de={class:T.value,style:A.value};return t.h("div",de,F)},K=()=>{const F=[];if(r.slots.prepend){const ne=r.slots.prepend();F.push(ne)}if(r.slots.default){const ne=r.slots.default();F.push(ne)}if(r.slots.append){const ne=r.slots.append();F.push(ne)}if(r.slots.fixedTip){const ne={class:[`${p}__fixed-tip`]},se=t.h("div",ne,[r.slots.fixedTip()]);F.push(se)}const te={ref:z,class:$.value,style:E.value};return t.h("div",te,F)},H=()=>{const F=ee.value;return F?typeof F=="function"?t.h("div",{class:"fox-item__tip--icon"},[F()]):t.h("div",{class:"fox-item__tip--icon"},[t.h(F)]):null},Z=()=>{const F=J.value;return F?typeof F=="function"?t.h("div",{class:"fox-item__tip--text"},[F()]):t.h("div",{class:"fox-item__tip--text"},[F]):null},G=()=>{if(!j())return null;const F=[],te=H();te&&F.push(te);const ne=Z();ne&&F.push(ne);const se={class:W.value,style:v.value};return t.h("div",se,F)},_=()=>r.slots?.hide?.()??null;return()=>{const F=[],te=[],ne=X();ne&&te.push(ne);const se=K();se&&te.push(se);const de={class:w.value},xe=t.h("div",de,te);F.push(xe);const ve=G();ve&&F.push(ve);const et=_();et&&F.push(et);const Pa={class:h.value,style:y.value,prop:l.prop};return t.h("div",Pa,F)}}}}const{componentName:yc,create:bc,scope:kc}=Q("item"),we=bc(gc(yc,kc,bt,!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=je(),i=Cn();wn(!1);const c=t.computed(()=>{const m={};if(a.width)a.width!=="auto"&&(m.width=ge(a.width));else if(i&&s){const p=Nn(s,!1),d=Bn(s,!1);if(p.value&&d){if(p.value.type==="grid"){const h=Tn(d,p.value,a.span,a.offset);Object.assign(m,h)}else if(p.value.type==="flow"){const h=An(d,p.value,a.span,a.offset,a.width);Object.assign(m,h)}}}return m});return()=>{const m=[];if(o.slots.default){const d=o.slots.default();if(a.divide)for(let h=0;h<d.length;h++){if(h>0){const S=t.h("div",{class:{[`${l}__divide`]:!0}});m.push(S)}m.push(d[h])}else Reflect.apply([].push,m,d)}const p={class:r.value,style:c.value};return t.h("div",p,m)}}}}const{componentName:Cc,create:wc,scope:aA}=Q("row-item"),qo=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=je(),r=Cn();wn(!1);const s=t.computed(()=>r&&l?Nn(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=ge(a.width));else{const d=r&&l?Bn(l,!1):null;if(s.value&&d){if(s.value.type==="grid"){const h=Tn(d,s.value,a.span,a.offset);Object.assign(p,h)}else if(s.value.type==="flow"){const h=An(d,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:rA}=Q("slot-item"),vo=Ac(Nc(Bc)),$r={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 Tc(e,n,a,o){return{props:{...pe,...ye,...$r},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=$e(t.computed(()=>l.readonly)),{emitEvent:c}=Be({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"]),d=t.ref(!1),h=Ie(l,"modelValue",null,c),S=e,y=t.computed(()=>({[S]:!0,"is-disabled":s.value,"is-readonly":i.value})),k=Te(t.computed(()=>l.textAlign),"textAlign"),b=t.computed(()=>{const I={};return k.value&&(I["text-align"]=k.value),I}),f=I=>{let q=I.target.value;l.type==="digit"&&(q=po(q,!0)),l.type==="number"&&(q=po(q,!1)),l.maxLength&&q.length>Number(l.maxLength)&&(q=q.slice(0,Number(l.maxLength))),h.value=q,c("update:modelValue",q,I),c("change",q,I)};let u=Ie(l,"hintText"),g=t.ref(!1);const w=I=>{let q=I.target.value;d.value=!0,ue(u.value)||(g.value=!0),c("focus",q,I)},T=I=>{setTimeout(()=>{g.value&&(g.value=!1),d.value=!1},0);let q=I.target.value;l.maxLength&&q.length>Number(l.maxLength)&&(q=q.slice(0,Number(l.maxLength))),c("blur",q,I)},C=t.computed(()=>({[`${S}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),A=t.computed(()=>{const I={};return r.slots.append&&!V.value&&!L.value&&(I.display="none"),I}),V=t.computed(()=>be(l.unit)>0),$=t.computed(()=>!L.value),E=t.computed(()=>({[`${S}__unit`]:!0,hidden:!$.value})),B=I=>{h.value="",c("update:modelValue","",I),c("change","",I),c("clear","")},P=t.computed(()=>he(l.clearable)&&!s.value&&!i.value),L=t.computed(()=>{let I=be(h.value)>0;return he(l.clearable)&&I&&d.value}),D=t.computed(()=>({action:!0,hidden:!L.value}));return()=>{const I={class:y.value,style:b.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:w,onBlur:T},U=[],q=t.h("input",I);U.push(q);const Y=[];if(P.value){const x={class:["action-icon"]},R=t.h(o,x),M={class:D.value,onClick:B},O=t.h("view",M,{default:()=>[R]});Y.push(O)}if(V.value){const x=t.h("view",{class:E.value},[l.unit]);Y.push(x)}const j={class:C.value,style:A.value},J=t.h("view",j,{default:()=>Y});U.push(J);const ee={default:()=>U};ee.label=r.slots.default,ee.prepend=r.slots.prepend,ee.append=r.slots.append,ee.fixedPreTip=r.slots.fixedPreTip,ee.fixedTip=r.slots.fixedTip;const v={...ut(l,$r),hintText:u.value,hintVisible:g.value,prop:`${l.prop}_item`};return t.h(a,v,ee)}}}}const{componentName:Vc,create:$c,scope:Ec}=Q("input-item"),Mo=$c(Tc(Vc,Ec,we,le.CircleClose));function Er(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 Dr(e,n,a=20){if(typeof n=="string"&&(n=me(n)),n==1||n==-1)return`${e}`;if(n==0)return"0";if(n>0){let o=Ua(`${e}`,`${n}`);return Er(o)}else{let o=io(`${e}`,Ha(`${n}`),20);return Er(o)}}function Dc(e,n=-1,a=!1,o=3,l=","){return tn(e,n,a,o,l)}function Ir(e,n,a,o,l=!0){if(e=="")return"";if(e=ja(e),n=me(n),n==1)return e;if(o)e=Dr(e,n),a&&(e=="0"&&l?e=`${e}.`.padEnd(me(a)+2,"0"):e=io(e,1,me(a)));else{let r=-1*n;e=Dr(e,r)}return e}function xr(e,n){let a={maxValid:!0,minValid:!0,message:""};if(n.min!==void 0){let o=he(n.minInclude),l=co(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=he(n.maxInclude),l=co(e,n.max);(o&&l==1||!o&&(l==0||l==1))&&(a.maxValid=!1)}return a}const qr={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 Ic(e,n,a,o){return{props:{...pe,...ye,...qr},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=$e(t.computed(()=>l.readonly)),{emitEvent:c}=Be({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),m=t.ref(!1),p=Ie(l,"modelValue",null,c),d=t.ref("");t.watch([()=>p.value,()=>l.rates,()=>l.precision],([j,J,ee])=>{if(ue(j)){d.value="";return}const W=Ir(j,J,ee,!1);d.value!==W&&(d.value=W)},{immediate:!0});const h=t.computed(()=>{let j="";return m.value&&(j=d.value),j}),{t:S}=re.useFoxI18n(n),y=t.computed(()=>{let j=l.placeholder??"";return!m.value&&!ue(d.value)?j=Dc(d.value,l.decimalLength,l.autoPadding,l.digits,l.separator):j=ue(j)?S(["placeholder"]):j,j}),k=e,b=t.computed(()=>({[k]:!0,[`${k}__placeholder`]:d.value.length>0,"is-disabled":s.value,"is-readonly":i.value})),f=Te(t.computed(()=>l.textAlign),"textAlign"),u=t.computed(()=>{const j={};return f.value&&(j["text-align"]=f.value),j}),g=t.ref(""),w=t.computed(()=>{let j=g.value;return ue(j)&&(j=l.errorTip??""),j}),T=t.ref(""),C=t.ref(!1),A=j=>{let ee=j.target.value;if(ue(ee)){d.value="",p.value="",c("update:modelValue","",j),c("change","",j),he(l.showTip)&&C.value&&(C.value=!1);return}if(ee.length>=2){let W=ee;if(W.charAt(0)=="-"&&(W=W.substring(1)),W.length>=2&&W.charAt(0)=="0"&&W.charAt(1)!="."){t.triggerRef(d);return}}if(ee!="-"){if(!er(ee)){t.triggerRef(d);return}if(l.integerLength!=-1&&tr(ee)>Number(l.integerLength)){t.triggerRef(d);return}if(l.decimalLength&&l.decimalLength!=-1&&nr(ee)>Number(l.decimalLength)){t.triggerRef(d);return}let W=xr(ee,l);if(W.maxValid===!1){g.value=W.message,t.triggerRef(d);return}}else if(l.min!=null&&me(l.min)>=0){t.triggerRef(d);return}T.value=ee,he(l.showTip)&&(C.value=ee.length>0),d.value=ee,p.value=Ir(ee,l.rates,l.precision,!0),c("update:modelValue",p.value,j),c("change",p.value,j)},V=j=>{if(m.value=!0,he(l.showTip)){let J=d.value;ue(J)&&(J=l.hintText),ue(J)||(T.value=J,C.value=!0)}g.value="",c("focus",p.value,j)},$=j=>{if(setTimeout(()=>{m.value=!1,he(l.showTip)&&C.value===!0&&(C.value=!1)},0),!ue(d.value)){let J=xr(d.value,l);if(J.minValid===!1||J.maxValid===!1){g.value=J.message;return}}c("update:modelValue",p.value,j),c("blur",p.value,j)},E=t.computed(()=>({[`${k}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),B=t.computed(()=>{const j={};return r.slots.append&&!P.value&&!q.value&&(j.display="none"),j}),P=t.computed(()=>be(l.unit)>0),L=t.computed(()=>!q.value),D=t.computed(()=>({[`${k}__unit`]:!0,hidden:!L.value})),I=j=>{p.value="",c("update:modelValue","",j),c("change","",j),c("clear","")},U=t.computed(()=>he(l.clearable)&&!s.value&&!i.value),q=t.computed(()=>{let j=be(p.value)>0;return he(l.clearable)&&j&&m.value}),Y=t.computed(()=>({action:!0,hidden:!q.value}));return()=>{let j={class:b.value,style:u.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:A,onFocus:V,onBlur:$},J=[],ee=t.h("input",j);J.push(ee);let W=[];if(U.value){const X={class:["action-icon"]},K=t.h(o,X),H={class:Y.value,onClick:I},Z=t.h("view",H,{default:()=>[K]});W.push(Z)}if(P.value){const X=t.h("view",{class:D.value},[l.unit]);W.push(X)}const v={class:E.value,style:B.value},z=t.h("view",v,{default:()=>W});J.push(z);const x={default:()=>J};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 M={...ut(l,qr),errorTip:w.value,hintText:T.value,hintVisible:C.value,hintType:"number",prop:`${l.prop}_item`};return t.h(a,M,x)}}}}const{componentName:xc,create:qc,scope:vc}=Q("money-item"),Po=qc(Ic(xc,vc,we,le.CircleClose)),Lo={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}=Q("textarea"),zc=Pc({props:{...Lo},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 S=h.scrollHeight;if(typeof e.autosize=="object"){const{maxHeight:y,minHeight:k}=e.autosize;y!==void 0&&(S=Math.min(S,y)),k!==void 0&&(S=Math.max(S,k))}S&&(h.style.height=S+"px")};t.watch(()=>e.modelValue,()=>{e.autosize&&t.nextTick(i)});const c=(h,S)=>{e.maxLength&&h.length>Number(e.maxLength)&&(h=h.substring(0,Number(e.maxLength))),n("update:modelValue",h,S),n("change",h,S)};return{...o,textareaRef:l,classes:r,styles:s,change:h=>{const S=h.target;c(S.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 En=oe(zc,[["render",Oc]]);function Kc(e,n,a,o){return{props:{...pe,...ye,...Lo},emits:["update:modelValue","change","blur","focus","setValue"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=$e(t.computed(()=>l.readonly)),{emitEvent:c}=Be({componentName:e,get readonly(){return i.value},get disabled(){return s.value}},l.prop??r.attrs.name),m=Ie(l,"modelValue",null,c),p=k=>{m.value=k,c("update:modelValue",k,{}),c("change",k,{})};let d=Ie(l,"hintText"),h=t.ref(!1);const S=k=>{ue(d.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 b={...ke(l,Lo),disabled:s.value,readonly:i.value,value:m.value,"onUpdate:modelValue":p,onFocus:S,onBlur:y},f=[],u=t.h(o,b);f.push(u);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 w=ke(l,ye,pe);return t.h(a,{...w,prop:`${l.prop}_item`},g)}}}}const{componentName:Uc,create:Hc,scope:jc}=Q("textarea-item"),zo=Hc(Kc(Uc,jc,we,En));function Wc(e){return e===window}const De=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 vr=()=>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=vr());const r=t.computed(()=>{const k=e,b=[k,`${k}--${a.position}`];return a.round&&b.push("round"),a.position==="bottom"&&a.safeAreaInsetBottom&&b.push(`${k}--${a.position}--safebottom`),typeof a.popClass=="string"?b.push(a.popClass):Array.isArray(a.popClass)&&a.popClass.forEach(f=>{b.push(f)}),b}),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=vr(),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)},d=k=>{k.stopPropagation(),o("click-close-icon",k),o("update:visible",!1)},h=k=>{o("click-overlay",k),a.closeOnClickOverlay&&o("update:visible",!1)},S=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:d,onClickOverlay:h,onOpened:S,onClosed:y}}});let vt=0;const Mr="fox-overflow-hidden",Pr=()=>nt?document.body:{classList:[]},Qc=e=>[()=>{if(e())try{!vt&&Pr().classList.add(Mr),vt++}catch{}},()=>{if(e()&&vt)try{vt--,!vt&&Pr().classList.remove(Mr)}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}=Q("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 ed(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 st=oe(_c,[["render",ed]]),{componentName:td,create:nd}=Q("popup"),od=nd(Xc(td,{FoxOverLay:st,Close:le.Close}));function ld(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 fe=oe(od,[["render",ld]]),Lr=10;function zr(e,n){return e>n&&e>Lr?"horizontal":n>e&&n>Lr?"vertical":""}function Fo(){const e=window.navigator.userAgent;return"ontouchstart"in window||e.indexOf("touch")!==-1||e.indexOf("mobile")!==-1}function Ro(){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=zr(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 Je(){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(""),d=()=>p.value==="vertical",h=()=>p.value==="horizontal",S=()=>{s.value=0,i.value=0,c.value=0,m.value=0,p.value="",a.value=0};return{move:b=>{if(b.touches){const g=b.touches[0];s.value=g.clientX-e.value,i.value=g.clientY-n.value,l.value=g.clientX,r.value=g.clientY}else{const u=b;s.value=u.clientX-e.value,i.value=u.clientY-n.value,l.value=u.clientX,r.value=u.clientY}c.value=Math.abs(s.value),m.value=Math.abs(i.value),o.value=Date.now()-a.value,p.value||(p.value=zr(c.value,m.value))},start:b=>{if(S(),b.touches){const g=b.touches[0];e.value=g.clientX,n.value=g.clientY}else{const u=b;e.value=u.clientX,n.value=u.clientY}a.value=Date.now()},reset:S,startX:e,startY:n,startTime:a,duration:o,moveX:l,moveY:r,deltaX:s,deltaY:i,offsetX:c,offsetY:m,direction:p,isVertical:d,isHorizontal:h}}const Fr={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}},Oo={...ze,...Fr,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 Rr=36;function ad(){return Rr}function rd(e){Rr=e}function Fe(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function Ko(e,n){return typeof e.childrenKey=="string"&&e.childrenKey.length>0?n[e.childrenKey]:n.children??null}function sd(e,n,a){typeof e.childrenKey=="string"&&e.childrenKey.length>0&&(n[e.childrenKey]=a),n.children=a}function it(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Or(e,n){return typeof e.itemOptions=="function"?e.columnOptions(n):e.columnOptions}let id=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=Ge(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function cd(){const e=t.getCurrentInstance();return new id(e.proxy)}function Kr(e,n,a){const o=Fe(e,n),l=Fe(e,a);if(o!==l)return!1;const r=it(e,n),s=it(e,a);return r===s}function dd(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 Fe(e,p)===i;if(r==="value"){let d=it(e,p);return d==null&&(d=Fe(e,p)),d===i}else if(r==="item")return Kr(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(d=>{if(r==="text")return Fe(e,d)===c;if(r==="value"){let h=it(e,d);return h==null&&(h=Fe(e,d)),h===c}else if(r==="item")return Kr(e,d,c)});if(m==-1)break;l.push(m);const p=Ko(e,s[m]);if(!Array.isArray(p))break;s=p}}return l}function Ur(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=Fe(e,m);if(l.texts.push(p),l.items.push(m),r==="text")l.values.push(p);else if(r==="value"){let d=it(e,m);d==null&&(d=p),l.values.push(d)}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 d=Fe(e,m);if(l.texts.push(d),l.items.push(p),r==="text")l.values.push(d);else if(r==="value"){let h=it(e,m);h==null&&(h=d),l.values.push(h)}else l.values.push(p);if(!Array.isArray(m.children))break;s=m.children}}return l}function Hr(e){return{text:e,value:e}}const ud=15,fd=300,md=200,{create:pd}=Q("picker-column");function hd(e){e.stopPropagation()}function gd(e,n){(typeof e.cancelable!="boolean"||e.cancelable)&&e.preventDefault(),n&&hd(e)}const yd=pd({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},...Fr},emits:["click","change","update:modelValue"],setup(e,{emit:n}){const a=t.computed(()=>({"fox-picker__list":!0})),o=t.computed(()=>({height:`${me(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=A=>A>=d.currIndex+8||A<=d.currIndex-8,i=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`rotate3d(1, 0, 0, ${d.deg})`,top:`${r.value}px`})),c=A=>`transform: rotate3d(1, 0, 0, ${-d.rotation*A}deg) translate3d(0px, 0px, 104px)`,m=t.computed(()=>({transition:`transform ${d.scrollTime}ms cubic-bezier(0.17, 0.89, 0.45, 1)`,transform:`translate3d(0, ${d.scrollDistance+r.value}px, 0)`})),p=t.ref(null),d=t.reactive({currIndex:e.modelValue,startDistance:0,scrollDistance:0,scrollTime:0,moving:!1,rotation:20,deg:0,transitionEndTrigger:null}),h=A=>Fe(e,A),S=A=>it(e,A),y=Je(),k=()=>{d.transitionEndTrigger&&(d.transitionEndTrigger(),d.transitionEndTrigger=null)},b=(A,V=!1,$=!1)=>{if(d.currIndex=A,V){const E=()=>{d.moving=!1,n("update:modelValue",A),n("change",A)};$?d.transitionEndTrigger=E:E()}},f=(A,V,$)=>{let E=A+d.startDistance;if(V==="end"){const B=-(e.source.length-1)*e.itemHeight;E<B&&(E=B),E>0&&(E=0);let P=Math.abs(Math.round(-E/e.itemHeight));const L=-P*e.itemHeight,D=`${(P+1)*d.rotation}deg`,I=$?$>0:!1;b(P,!0,I),u(L,V,$,D)}else{let B=(-E/e.itemHeight+1)*d.rotation;const P=(e.source.length+1)*d.rotation,L=0;if(B=Math.min(Math.max(B,L),P),e.threeDimensional&&(B<L||B>P))return;u(E,null,void 0,`${B}deg`)}},u=(A=0,V,$=md,E)=>{V==="end"?d.scrollTime=$:d.scrollTime=0,d.deg=E,d.scrollDistance=A},g=(A,V)=>(A=Math.abs(A/V)/.003*(A<0?-1:1),A),w=A=>{e.readonly||(d.startDistance=d.scrollDistance,y.start(A),d.transitionEndTrigger=null)},T=A=>{e.readonly||(d.moving=!0,y.move(A),y.isVertical()&&(d.moving=!0,gd(A,!0)),f(y.deltaY.value,"",0))},C=()=>{if(e.readonly)return;const A=y.deltaY.value,V=y.duration.value;if(V<fd&&Math.abs(A)>ud){const E=g(A,V);f(E,"end",e.swipeDuration)}else f(A,"end",0)};return t.watch(()=>e.modelValue,A=>{const V=d.currIndex-A;if(V!==0){d.currIndex=A,d.startDistance=d.scrollDistance;const $=V*e.itemHeight;f($,"",0)}}),t.watch(()=>e.source,A=>{if(d.currIndex>=A.length){const E=(A.length-1-d.currIndex)*e.itemHeight;d.startDistance=d.scrollDistance,f(E,"end",0)}}),t.watch(()=>e.visible,A=>{A===!1&&k()}),t.onMounted(()=>{const A=-e.modelValue*e.itemHeight;f(A)}),{classes:a,styles:o,contentClasses:l,itemText:h,itemValue:S,...t.toRefs(d),roller:p,getItemText:Fe,onTouchStart:w,onTouchMove:T,onTouchEnd:C,isHidden:s,setRollerStyle:c,touchRollerStyle:i,touchTileStyle:m,stopMomentum:k}}}),bd={key:1,class:"fox-picker__item-tile"};function kd(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",bd,t.toDisplayString(e.itemText(s)),1))],64))),128))],6)],38)}const Sd=oe(yd,[["render",kd]]),{create:Cd,componentName:wd,scope:Nd}=Q("picker"),Bd=Cd({components:{Column:Sd,Popup:fe},props:{...Oo},emits:["close","change","confirm","update:visible","update:text","update:modelValue","clear"],setup(e,{emit:n}){const{toLocaleRefs:a,t:o}=re.useFoxI18n(Nd),l=a(e,["title","cancelText","clearText","confirmText"]),r=t.ref(null),s=t.ref(ad());t.watch(()=>e.visible,B=>{B&&s.value<=0&&setTimeout(()=>{if(r.value){const P=De(r.value);s.value=P.height,rd(s.value)}},50)});const i=t.computed(()=>({[wd]:!0})),c=cd(),m=t.ref("singleColumn");let p=t.ref([]);t.watch([()=>e.source,()=>e.params],async([B,P])=>{if(B){let L=await c.load("picker",B,P);if(L.length>0){let D=L[0];if(Array.isArray(D)){if(typeof D[0]=="string"){let I=L,U=[];I.forEach(q=>{let Y=q.map(j=>Hr(j));U.push(Y)}),p.value=U}else p.value=L;m.value="multipleColumn"}else if(typeof D=="string"){let I=L,U=[],q=I.map(Y=>Hr(Y));U.push(q),p.value=U,m.value="singleColumn"}else{const I=Ko(e,D);Array.isArray(I)?(m.value="cascade",p.value=[L]):(m.value="singleColumn",p.value=[L])}}else p.value=[]}},{immediate:!0});const d=t.ref([]),h=t.ref(e.modelValue),S=t.ref([]),y=t.ref([]);t.watch([()=>e.modelValue,()=>p.value],([B,P])=>{let L=dd(e,B,P,m.value);if(!Me(L,y.value)){y.value=L;let D=Ur(e,L,P,m.value);D&&(d.value=D.texts,n("update:text",d.value))}});const k=t.ref(e.visible);t.watch(()=>e.visible,B=>{k.value=B});const b=B=>{let P=Or(e,B);return Ve(P)?P.defaultIndex??0:0},f=B=>{if(e.readonly===!0)return!0;let P=Or(e,B);return Ve(P)?P.readonly??!1:!1},u=(B,P)=>{let L=y.value;L[B]=P;for(let I=0;I<B;I++)L[I]==null&&(L[I]=b(I));if(m.value==="cascade")for(let I=B+1;I<w.value.length;I++){let U=b(I);I<L.length?L[I]=U:L.push(U)}else for(let I=L.length;I<w.value.length;I++){let U=b(I);L.push(U)}y.value=L;let D=Ur(e,L,p.value,m.value);D&&(d.value=D.texts,h.value=D.values,S.value=D.items)},g=B=>B<y.value.length?y.value[B]:b(B),w=t.computed(()=>{if(p.value.length==0)return[];if(m.value=="singleColumn"||m.value=="multipleColumn")return p.value;let B=[],P=0,L=p.value[0],D=0;for(;;){let I=L.map(Y=>{let j=Object.assign({},Y);return sd(e,j,null),j});B.push(I),P>=y.value.length?D=0:D=y.value[P],(D<0||D>=L.length)&&(D=0);let U=L[D];const q=Ko(e,U);if(!Array.isArray(q))break;L=q,P++}return B}),T=t.computed(()=>me(+e.visibleItemCount-1)/2*s.value),C=(B=!1)=>{if(e.readonly===!0){B&&n("update:visible",!1);return}let P=p.value.length-1;for(;P>=0&&!(y.value[P]===null||y.value[P]===void 0);P--);if(P>=0&&u(P,0),m.value==="singleColumn"){let L=h.value.length>0?h.value[0]:"",D=S.value.length>0?S.value[0]:null;n("update:modelValue",L),n("update:text",d.value),n("change",L,D),B&&(n("confirm",L),n("update:visible",!1))}else n("update:modelValue",h.value),n("update:text",d.value),n("change",h.value,S.value),B&&(n("confirm",h.value),n("update:visible",!1))};return{...l,pickerLineRef:r,classes:i,columns:w,dataType:m,show:k,itemHeight:s,top:T,isReadonly:f,getIndex:g,change:(B,P)=>{if(u(B,P),e.isAutoBackFill){const L=!k.value;C(L)}},close:()=>{n("close"),n("update:visible",!1)},confirm:()=>{C(!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)}}}}),Ad={class:"fox-picker__bar"},Td={class:"fox-picker__title"},Vd={class:"fox-picker__bar__action"},$d={class:"fox-picker__column"};function Ed(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",Ad,[t.createElementVNode("view",Td,t.toDisplayString(e.title),1),t.createElementVNode("view",Vd,[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",$d,[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 kt=oe(Bd,[["render",Ed]]);function Dd(e,n,a,o,l,r,s=!0){return{props:{...pe,...ye,...Oo,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=Ae(t.computed(()=>i.disabled)),p=$e(t.computed(()=>i.readonly)),{emitEvent:d}=Be({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),S=h(i,["placeholder"]),y=t.ref(!1),k=Ie(i,"modelValue",null,d),b=t.ref([]),f=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),u="fox-input-item",g=t.computed(()=>({[u]:!0,"is-disabled":m.value,"is-readonly":p.value})),w=Te(t.computed(()=>i.textAlign),"textAlign"),T=t.computed(()=>{const z={};return w.value&&(z["text-align"]=w.value),z}),C=t.ref(!1),A=()=>{C.value=!0},V=z=>{C.value=z},$=z=>{k.value=z,d("update:modelValue",z)},E=(z,x)=>{d("change",z,x)},B=z=>{let R=z.target.value;y.value=!0,d("focus",R,z)},P=z=>{setTimeout(()=>{y.value=!1},0);let R=z.target.value;i.maxLength&&R.length>Number(i.maxLength)&&(R=R.slice(0,Number(i.maxLength))),d("blur",R,z)},L=z=>{b.value=z,Array.isArray(z)&&z.length===0?d("update:text",z[0]):d("update:text",z)},D=t.computed(()=>({[`${u}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),I=t.computed(()=>be(i.unit)>0),U=t.computed(()=>be(i.unit)>0&&!y.value),q=t.computed(()=>({hidden:!U.value})),Y=z=>{k.value="",d("update:modelValue","",z),d("change","",z),d("clear","")},j=t.computed(()=>i.clearable&&!m.value&&!p.value),J=t.computed(()=>be(k.value)>0&&y.value),ee=z=>{J.value?Y(z):A()},W=t.computed(()=>J.value&&j.value?o:l),v=t.computed(()=>({action:!0}));return()=>{const z={class:g.value,style:T.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:A,onFocus:B,onBlur:P};s&&(z.disabled=!0);const x=[],R=t.h("input",z);x.push(R);const M=[],O={class:["action-icon"]},X=t.h(W.value,O),K={class:v.value,onClick:ee},H=t.h("view",K,{default:()=>[X]});if(M.push(H),I.value){const de=t.h("view",{class:q.value},[i.unit]);M.push(de)}const Z={class:D.value},G=t.h("view",Z,{default:()=>M});x.push(G);const _={default:()=>x};_.label=c.slots.default,_.prepend=c.slots.prepend,_.append=c.slots.append,_.fixedPreTip=c.slots.fixedPreTip,_.fixedTip=c.slots.fixedTip;const F=ke(i,Oo);F.disabled=!1,F.readonly=m.value||p.value,F.visible=C.value,F["onUpdate:visible"]=V,F.modelValue=k.value,F["onUpdate:modelValue"]=$,F.text=b.value,F["onUpdate:text"]=L,F.onChange=E;const te=t.h(r,F);_.hide=()=>[te];const ne=ke(i,ye,pe);return t.h(a,ne,_)}}}}const{componentName:Id,create:xd,scope:qd}=Q("picker-item"),Uo=xd(Dd(Id,qd,we,le.CircleClose,le.ArrowRight,kt,!1)),Dn=(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,d={loading:!1,...p,level:n?(n&&n.level||0)+1:0,value:i,text:c,children:m,_parent:n};return d.children&&d.children.length&&(d.children=Dn(d.children,d,a)),d}),jr=(e,n)=>{let a=0,o;for(;(o=e[a++])&&n(o)!==!0;)o.children&&o.children.length&&jr(o.children,n)},vd={topId:null,idKey:"id",pidKey:"pid",sortKey:""},Md=(e,n)=>{const a={...vd,...n||{}},{topId:o,idKey:l,pidKey:r,sortKey:s}=a;let i=[],c={};return e.forEach(m=>{m={...m};const{[l]:p,[r]:d}=m,h=c[d]=c[d]||[];!i.length&&d===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,d)=>p[s]-d[s])}),c=null,i},Pd={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}},Wr=(e,n)=>n[e.textKey],Mt=(e,n)=>n[e.valueKey],Ld=(e,n)=>n[e.visibleKey],Yr=(e,n)=>n[e.disabledKey],zd=(e,n)=>{const a=n[e.doitKey];return he(a)},Fd=(e,n)=>{const a=n[e.numKey];return a==null?null:me(n[a])},Xr=(e,n,a)=>{const o=e.itemOptions;return typeof o=="function"?o(n,a):o||null};function Rd(e,n,a,o=!1){return{props:{...Pd},emits:["update:modelValue","change","click"],setup(l,{slots:r,emit:s}){const i=t.computed(()=>{const W={};return W[`${e}`]=!0,W}),c=t.computed(()=>{const W={};return W[`${e}__titles`]=!0,W[`${l.direction}`]=!0,l.align==="left"&&(W.left=!0),l.scroll===!0&&(W.scrollable=!0),l.shape&&(W[`${l.shape}`]=!0),W}),m=t.computed(()=>({})),p=t.computed(()=>{if(!l.gutter)return 0;const W=ce(l.gutter);return W<=0?0:W}),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,W=>{d.value!==W&&(d.value=W,q(!1))});const h=t.ref({"fox-tabs-bar__popup":!0,"fox-tabs-bar__popup--show":!1,"fox-tabs-bar__popup--hide":!1}),S=t.computed(()=>{const W={};return k.value||(W.display="none"),W}),y=t.ref(),k=t.ref(!1),b=()=>{const W=!k.value;f(W)},f=W=>{const v=W;v?(k.value=v,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))},u=t.ref(),g=t.ref([]),w=(W,v)=>{g.value[v]=W},T=W=>v=>{w(v,W)},C=(W,v)=>{const z=u.value,x=g.value;if(!z||!x||!x[W])return;const R=x[W];let M=0;l.direction==="vertical"?M=R.offsetTop-(z.offsetHeight-R.offsetHeight)/2:M=R.offsetLeft-(z.offsetWidth-R.offsetWidth)/2,A(z,M,v?0:.3,l.direction)},A=(W,v,z,x)=>{let R=0;const M=x==="horizontal"?W.scrollLeft:W.scrollTop,O=z===0?1:Math.round(z*1e3/16);function X(){x==="horizontal"?W.scrollLeft+=(v-M)/O:W.scrollTop+=(v-M)/O,++R<O&&Oe(X)}X()},V=(W,v)=>{const z=Mt(l,W),x={};return x[`${e}__titles-item`]=!0,x.disabled=Yr(l,W),x.active=z===d.value,l.shape&&(x[`${l.shape}`]=!0),l.ellipsis&&(x.ellipsis=!0),v&&(v.class&&(x[`${v.class}`]=!0),v.disabled===!0&&(x.disabled=v.disabled)),x},$=(W,v)=>{const z={};if(p.value>0){const x=Math.abs(p.value/2);l.direction==="vertical"?(z["margin-top"]=`${x}px`,z["margin-bottom"]=`${x}px`):(z["margin-left"]=`${x}px`,z["margin-right"]=`${x}px`)}return v&&v.style&&Object.assign(z,v.style),z},E=(W,v)=>`${Mt(l,W)??v}`,B=(W,v)=>{const z=Mt(l,W),x={};x[`${e}__popup-item`]=!0,x.disabled=Yr(l,W),x.active=z===d.value,l.shape&&(x[`${l.shape}`]=!0);const R=Xr(l,W,v);return R&&R.disabled===!0&&(x.disabled=R.disabled),x},P=t.computed(()=>(l.data??[]).filter(v=>Ld(l,v)!==!1)),L=(W,v)=>{const z=Mt(l,W);if(s("click",W,v),d.value==z)return;const x=()=>{d.value=z,l.scroll&&C(v,!1),s("update:modelValue",z),s("change",W,v)};if(typeof l.beforeChange=="function"){const R=l.beforeChange(W,v);dt(R)?R.then(M=>{M!==!1&&x()}).catch(()=>{x()}):R!==!1&&x()}else x()},D=(W,v)=>function(){L(W,v)},I=(W,v)=>{L(W,v),f(!1)},U=(W,v)=>function(){I(W,v)},q=W=>{if(!Array.isArray(l.data)||!l.scroll)return;const v=l.data.findIndex(z=>Mt(l,z)===d.value);v!==-1&&C(v,W)};t.watch(()=>l.data,()=>{setTimeout(q,0)}),t.onMounted(()=>{q(!0)});const Y=(W,v)=>{if(r.item)return r.item({item:W,index:v});const z=Xr(l,W,v),x=[];if(r.text){const X=r.text({item:W,index:v});x.push(X)}else{const X=[];if(z?.doit===!0||zd(l,W)){const G={class:[`${e}__titles-item-tip`,"doit"]},_=t.h("view",G);X.push(_)}const K=z?.num??Fd(l,W);if(K){let G="";const _=me(K);_>=100?G="99+":G=`${_}`;const F={class:[`${e}__titles-item-tip`,"num"]},te=t.h("view",F,[G]);X.push(te)}const H={class:`${e}__titles-item-text`};X.push(Wr(l,W));const Z=t.h("view",H,X);x.push(Z)}const R={class:`${e}__titles-item-line`},M=t.h("view",R);x.push(M);const O={ref:T(v),class:V(W,z),style:$(W,z),key:E(W,v),onClick:D(W,v)};return t.h("view",O,x)},j=()=>{const W=r.default?r.default():[];if(W.length===0)for(let z=0;z<P.value.length;z++){const x=P.value[z],R=Y(x,z);W.push(R)}const v={ref:u,class:c.value,style:m.value};return t.h("view",v,W)},J=()=>{let W=null;r.navigation?W=r.navigation():W=t.h(a);const v={class:`${e}__navigation`,onClick:b};return t.h("view",v,[W])},ee=()=>{const W=[];for(let z=0;z<P.value.length;z++){const x=P.value[z];let R=null;r.popupItem?R=r.popupItem({item:x,index:z}):R=Wr(l,x);const M={class:B(x,z),key:E(x,z),onClick:U(x,z)},O=t.h("view",M,[R]);W.push(O)}const v={class:h.value,style:S.value};return t.h("view",v,W)};return()=>{const W=[],v=j();if(W.push(v),l.showQuickNavigation){const x=J();W.push(x);const R=ee();W.push(R)}const z={class:i.value};return t.h("view",z,W)}}}}const{create:Od,componentName:Kd,scope:Ud}=Q("tabs-bar"),In=Od(Rd(Kd,Ud,le.MoreH,!1)),Qr=Symbol("TabsStatesKey"),Hd={modelValue:{type:[String,Number]},direction:{type:[String],default:"horizontal"},lazy:{type:[Boolean],default:!0}};function jd(e,n,a=!1){return{props:{...Hd},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 b={name:k};i.current.value===k&&(b.loaded=!0),s.value.push(b),t.triggerRef(s)},remove:k=>{const b=s.value.findIndex(f=>f.name===k);b!==-1&&s.value.splice(b,1)},isLoaded:k=>{if(!o.lazy)return!0;const b=s.value.findIndex(f=>f.name===k);return b!==-1?i.current.value?s.value[b].loaded??!1:b===0:!1}};t.provide(Qr,i);const c=k=>{const b=s.value.findIndex(f=>f.name===k);b!==-1&&(s.value[b].loaded=!0,t.triggerRef(s))};t.watch([()=>o.modelValue,()=>o.direction],([k,b])=>{i.current.value!==k&&(i.current.value=k??"",c(k??"")),i.direction.value!==b&&(i.direction.value=b)});const m=t.ref(null),p=t.ref(null),d=t.computed(()=>({[e]:!0,[`${o.direction}`]:!0}));let h=!0;const S=t.computed(()=>{const k={},b=s.value.length;if(b<=0)return k;const f=s.value.findIndex(u=>u.name===i.current.value);return i.direction.value==="vertical"?i.tabHeight.value>0&&(k.height=`${b*i.tabHeight.value}px`,f!==-1&&(k.transform=`translate(0, -${f*i.tabHeight.value}px)`)):i.tabWidth.value>0&&(k.width=`${b*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 b=Sn(m.value);i.tabWidth.value=b.width,i.tabHeight.value=b.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:S.value,ref:p},b=t.h("view",k,[r?.default?.()]),f={class:d.value,ref:m};return t.h("view",f,[b])}}}}const{create:Wd,componentName:Yd,scope:Xd}=Q("tabs-container"),xn=Wd(jd(Yd,Xd,!1)),Qd={paneKey:{type:[String,Number],required:!0},loaded:{type:[Boolean,String],default:null},emptyIcon:{type:[Object],required:!1},emptyText:{type:[String],required:!1}};function Gd(e,n,a){return{props:{...Qd},setup(o,{emit:l,slots:r}){const s=t.inject(Qr);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?he(o.loaded):s.isLoaded(o.paneKey));return()=>{let m=[];if(c.value)m=r?.default?.()??[];else if(r.empty)m=r.empty();else{const d={class:`${e}__empty-icon`},h=o.emptyIcon??a,S=t.h(h,d),y={class:`${e}__empty-text`},k=o.emptyText??"Loading",b=t.h("view",y,[k]),f={class:`${e}__empty`},u=t.h("view",f,[S,b]);m.push(u)}const p={class:`${e}`,style:i.value};return t.h("view",p,m)}}}}const{create:Zd,componentName:Jd,scope:_d}=Q("tabs-pane"),qn=Zd(Gd(Jd,_d,le.Loading));class Gr{nodes;config;constructor(n,a){this.config={value:"value",text:"text",children:"children",...a||{}},this.nodes=Dn(n,null,this.config)}updateChildren(n,a){a?a.children=Dn(n,a,this.config):this.nodes=Dn(n,null,this.config)}getNodeByValue(n){let a;return jr(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:eu,scope:tu}=Q("cascader-pane"),nu=eu({components:{Loading:le.Loading,Checklist:le.Checklist,TabsBar:In,TabsContainer:xn,TabsPane:qn},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(tu),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 Gr([],{})),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((u,g)=>({text:u.selectedNode?u.selectedNode.text:a("select"),value:g}))),d=new Map;let h;const S=async()=>{d.clear(),c.value=[],l.value=0,r.value=!1,h=null;let{options:u}=e;o.value.convertConfig&&(u=Md(u,o.value.convertConfig)),i.value=new Gr(u,{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 u=s.value;if(u===void 0||!i.value.nodes.length)return;if(u.length===0){l.value=0,c.value=[{nodes:i.value.nodes,selectedNode:null}];return}let g=u;if(m.value&&Array.isArray(u)&&u.length){g=[];let w=i.value.nodes.find(T=>T.value===u[0]);if(w){g=[w.value],r.value=!0;const T=await u.slice(1).reduce(async(C,A)=>{const V=await C;await k(V);const $=V?.children?.find(E=>E.value===A);return $&&g.push(A),Promise.resolve($)},Promise.resolve(w));await k(T),r.value=!1}}g.length&&u===e.modelValue&&i.value.getPathNodesByValue(g).map((T,C)=>{l.value=C,f.handleNode(T,!0)})},k=async u=>{if(!u)return;if(!o.value.lazyLoad){u.leaf=!0;return}if(i.value.isLeaf(u,m.value)||i.value.hasChildren(u,m.value))return;u.loading=!0;const g=u.root?null:u;let w=d.get(u);w||(w=new Promise(C=>{o.value.lazyLoad?.(u,C)}),d.set(u,w));const T=await w;Array.isArray(T)&&T.length>0?i.value.updateChildren(T,g):u.leaf=!0,u.loading=!1,d.delete(u)},b=u=>{const g=u.map(w=>w.value);s.value=g,n("change",g,u),n("update:modelValue",g,u)},f={async handleNode(u,g){const{disabled:w,loading:T}=u;if(!(!g&&w||!c.value[l.value])){if(i.value.isLeaf(u,m.value)){if(u.leaf=!0,c.value[l.value].selectedNode=u,c.value=c.value.slice(0,u.level+1),!g){const C=c.value.map(A=>A.selectedNode);b(C),n("pathChange",C)}return}if(i.value.hasChildren(u,m.value)){const C=u.level+1;if(c.value[l.value].selectedNode=u,c.value=c.value.slice(0,C),c.value.push({nodes:u.children||[],selectedNode:null}),l.value=C,!g){const A=c.value.map(V=>V.selectedNode);n("pathChange",A)}return}h=u,!T&&(await k(u),h===u&&(c.value[l.value].selectedNode=u,f.handleNode(u,g)))}},handleTabChange(u,g){h=null},formatTabTitle(u){return u.selectedNode?u.selectedNode.text:a("select")},isSelected(u,g){return u.selectedNode&&u.selectedNode.value===g.value}};return t.watch([o,()=>e.options],()=>{S()},{deep:!0,immediate:!0}),t.watch(()=>e.modelValue,u=>{u!==s.value&&(s.value=u,y())}),t.watch(()=>e.visible,u=>{u&&Array.isArray(s.value)&&s.value.length>0&&y()}),{panes:c,panesTitles:p,initLoading:r,tabsCursor:l,...f}}}),ou={class:"fox-cascader"},lu={role:"menu",class:"fox-cascader__pane"},au=["aria-checked","aria-disabled","onClick"],ru={class:"fox-cascader__item__title"},su=t.createElementVNode("view",{class:"fox-cascader__pane"},null,-1);function iu(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",ou,[t.createVNode(s,{modelValue:e.tabsCursor,"onUpdate:modelValue":n[0]||(n[0]=d=>e.tabsCursor=d),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]=d=>e.tabsCursor=d)},{default:t.withCtx(()=>[!e.initLoading&&e.panes.length?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.panes,(d,h)=>(t.openBlock(),t.createBlock(m,{"pane-key":h,key:h},{default:t.withCtx(()=>[t.createElementVNode("view",lu,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(d.nodes,S=>(t.openBlock(),t.createElementBlock("view",{key:S.value,class:t.normalizeClass(["fox-cascader__item",{active:e.isSelected(d,S),disabled:S.disabled}]),"aria-checked":e.isSelected(d,S),"aria-disabled":S.disabled||void 0,role:"menuitemradio",onClick:y=>e.handleNode(S,!1)},[t.createElementVNode("view",ru,t.toDisplayString(S.text),1),S.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,au))),128))])]),_:2},1032,["pane-key"]))),128)):(t.openBlock(),t.createBlock(m,{key:1,"pane-key":0},{default:t.withCtx(()=>[su]),_:1}))]),_:1},8,["modelValue"])])}const cu=oe(nu,[["render",iu]]),{create:du}=Q("cascader"),uu=du({components:{FoxCascaderPane:cu,FoxPopup:fe},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}}}),fu=["innerHTML"];function mu(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,fu)):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 vn=oe(uu,[["render",mu]]);function Pt(e,n){const a=e.textKey??"text";return n[a]??""}function Lt(e,n){const a=e.valueKey??"value";return n[a]}function Zr(e,n){const a=e.childrenKey??"children";return n[a]}function Mn(e,n=[]){const a={texts:[],values:[]};for(let o=0;o<n.length;o++){const l=n[o],r=Pt(e,l),s=Lt(e,l);a.texts.push(r),a.values.push(s??"")}return a}function Jr(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Pt(e,n[s])===r){const c=Lt(e,n[s])??"",m={[e.textKey]:r,[e.valueKey]:c};l.push(m);const p=Zr(e,n[s]);Array.isArray(p)&&Jr(e,p,a,o+1,l);return}}function _r(e,n,a,o,l=[]){if(!a)return;const r=a[o];for(let s=0;s<n.length;s++)if(Lt(e,n[s])===r){const c=Pt(e,n[s])??"",m={[e.textKey]:c,[e.valueKey]:r};l.push(m);const p=Zr(e,n[s]);Array.isArray(p)&&_r(e,p,a,o+1,l);return}}function Ho(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=Pt(e,n[o]),r=Pt(e,a[o]);if(l!==r)return!1;const s=Lt(e,n[o]),i=Lt(e,a[o]);if(s!==i)return!1}return!0}let pu=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=Ge(this.proxy,o);return l===null?(console.error(`${o} component not found api function`),[]):(Ve(a)&&t.isReactive(a)&&(a=t.toRaw(a)),await l(n,a))}};function hu(){const e=t.getCurrentInstance();return new pu(e.proxy)}const es={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 gu(e,n,a,o,l,r,s=!1){return{props:{...pe,...ye,...es},emits:["update:modelValue","change","pathChange","blur","focus","clear","update:pathNodes","setValue"],setup(i,c){const m=Ae(t.computed(()=>i.disabled)),p=$e(t.computed(()=>i.readonly)),{emitEvent:d}=Be({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),S=h(i,["placeholder"]),y=t.ref(!1),k=hu(),b=t.ref([]);t.watch([()=>i.source,()=>i.params],async([R,M])=>{R&&(b.value=await k.load(R,M))},{immediate:!0});const f=t.ref([]),u=t.computed(()=>Array.isArray(f.value)?f.value.join(" "):f.value),g=t.ref([]),w=t.ref([]);t.watch([()=>i.modelValue],async([R])=>{if(d("setValue",R),i.lazy===!0){w.value.length==0&&(f.value=Array.isArray(R)?R:[],g.value=Array.isArray(R)?R:[]);return}if(i.valueType==="item"){let M=R;if(!Ho(i,M,w.value)){w.value=M;let O=Mn(i,M);f.value=O.texts,g.value=O.values}}else if(i.valueType==="text"){let M=R,O=[];if(Jr(i,b.value,M,0,O),!Ho(i,O,w.value)){w.value=O;let X=Mn(i,O);M.value=X.texts,g.value=X.values}}else{let M=[];if(_r(i,b.value,R,0,M),!Ho(i,M,w.value)){w.value=M;let O=Mn(i,M);f.value=O.texts,g.value=O.values}}},{immediate:!0});const T="fox-input-item",C=t.computed(()=>({[T]:!0,"is-disabled":m.value,"is-readonly":p.value})),A=Te(t.computed(()=>i.textAlign),"textAlign"),V=t.computed(()=>{const R={};return A.value&&(R["text-align"]=A.value),R}),$=t.ref(!1),E=()=>{m.value===!0||p.value===!0||($.value=!0)},B=R=>{$.value=R},P=(R,M)=>{let O=M.map(K=>{if(K==null)return K;let H={...K};return Reflect.deleteProperty(H,"text"),H[i.textKey]=K.text??"",Reflect.deleteProperty(H,"value"),H[i.valueKey]=K.value??"",H});w.value=O;let X=Mn(i,O);f.value=X.texts,g.value=X.values,i.valueType==="text"?(d("change",f.value,O),d("update:modelValue",f.value)):i.valueType==="item"?(d("change",O,O),d("update:modelValue",O)):(d("change",g.value,O),d("update:modelValue",g.value)),d("update:pathNodes",O)},L=R=>{let M=R.map(O=>{if(O==null)return O;let X={...O};return Reflect.deleteProperty(X,"text"),X[i.textKey]=O.text??"",Reflect.deleteProperty(X,"value"),X[i.valueKey]=O.value??"",X});d("pathChange",M)},D=R=>{y.value=!0,d("focus",g.value,R)},I=R=>{setTimeout(()=>{y.value=!1},0),d("blur",g.value,R)},U=t.computed(()=>({[`${T}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),q=t.computed(()=>be(i.unit)>0),Y=t.computed(()=>be(i.unit)>0&&!y.value),j=t.computed(()=>({hidden:!Y.value})),J=R=>{w.value=[],f.value=[],g.value=[],d("update:modelValue",[]),d("change",[],R),d("clear",[]),d("update:pathNodes",[])},ee=t.computed(()=>i.clearable&&!m.value&&!p.value),W=t.computed(()=>{let R=g.value&&g.value.length>0;return i.clearable&&R&&y.value}),v=R=>{W.value?J(R):E()},z=t.computed(()=>W.value&&ee.value?o:l),x=t.computed(()=>({action:!0}));return()=>{const R={class:C.value,style:V.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:u.value,onClick:E,onFocus:D,onBlur:I};s&&(R.disabled=!0);const M=[],O=t.h("input",R);M.push(O);const X=[],K={class:["action-icon"]},H=t.h(z.value,K),Z={class:x.value,onClick:v},G=t.h("view",Z,{default:()=>[H]});if(X.push(G),q.value){const ve=t.h("view",{class:j.value},[i.unit]);X.push(ve)}const _={class:U.value},F=t.h("view",_,{default:()=>X});M.push(F);const te={default:()=>M};te.label=c.slots.default,te.prepend=c.slots.prepend,te.append=c.slots.append,te.fixedPreTip=c.slots.fixedPreTip,te.fixedTip=c.slots.fixedTip;let ne={};ne.visible=$.value,ne["onUpdate:visible"]=B,ne.modelValue=g.value,ne.onChange=P,ne.onPathChange=L,ne.options=b.value,ne.title=i.title,ne.lazy=i.lazy,ne.lazyLoad=i.lazyLoad,ne.valueKey=i.valueKey,ne.textKey=i.textKey,ne.childrenKey=i.childrenKey,ne.convertConfig=i.convertConfig;const se=t.h(r,ne);te.hide=()=>[se];const de=ut(i,es);return t.h(a,{...de,prop:`${i.prop}_item`},te)}}}}const{componentName:yu,create:bu,scope:ku}=Q("cascader-item"),jo=bu(gu(yu,ku,we,le.CircleClose,le.ArrowRight,vn,!1));var We=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Ye(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var ts={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){var a=1e3,o=6e4,l=36e5,r="millisecond",s="second",i="minute",c="hour",m="day",p="week",d="month",h="quarter",S="year",y="date",k="Invalid Date",b=/^(\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,u={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(L,D,I){var U=String(L);return!U||U.length>=D?L:""+Array(D+1-U.length).join(I)+L},w={s:g,z:function(L){var D=-L.utcOffset(),I=Math.abs(D),U=Math.floor(I/60),q=I%60;return(D<=0?"+":"-")+g(U,2,"0")+":"+g(q,2,"0")},m:function L(D,I){if(D.date()<I.date())return-L(I,D);var U=12*(I.year()-D.year())+(I.month()-D.month()),q=D.clone().add(U,d),Y=I-q<0,j=D.clone().add(U+(Y?-1:1),d);return+(-(U+(I-q)/(Y?q-j:j-q))||0)},a:function(L){return L<0?Math.ceil(L)||0:Math.floor(L)},p:function(L){return{M:d,y:S,w:p,d:m,D:y,h:c,m:i,s,ms:r,Q:h}[L]||String(L||"").toLowerCase().replace(/s$/,"")},u:function(L){return L===void 0}},T="en",C={};C[T]=u;var A=function(L){return L instanceof B},V=function L(D,I,U){var q;if(!D)return T;if(typeof D=="string"){var Y=D.toLowerCase();C[Y]&&(q=Y),I&&(C[Y]=I,q=Y);var j=D.split("-");if(!q&&j.length>1)return L(j[0])}else{var J=D.name;C[J]=D,q=J}return!U&&q&&(T=q),q||!U&&T},$=function(L,D){if(A(L))return L.clone();var I=typeof D=="object"?D:{};return I.date=L,I.args=arguments,new B(I)},E=w;E.l=V,E.i=A,E.w=function(L,D){return $(L,{locale:D.$L,utc:D.$u,x:D.$x,$offset:D.$offset})};var B=function(){function L(I){this.$L=V(I.locale,null,!0),this.parse(I)}var D=L.prototype;return D.parse=function(I){this.$d=function(U){var q=U.date,Y=U.utc;if(q===null)return new Date(NaN);if(E.u(q))return new Date;if(q instanceof Date)return new Date(q);if(typeof q=="string"&&!/Z$/i.test(q)){var j=q.match(b);if(j){var J=j[2]-1||0,ee=(j[7]||"0").substring(0,3);return Y?new Date(Date.UTC(j[1],J,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ee)):new Date(j[1],J,j[3]||1,j[4]||0,j[5]||0,j[6]||0,ee)}}return new Date(q)}(I),this.$x=I.x||{},this.init()},D.init=function(){var I=this.$d;this.$y=I.getFullYear(),this.$M=I.getMonth(),this.$D=I.getDate(),this.$W=I.getDay(),this.$H=I.getHours(),this.$m=I.getMinutes(),this.$s=I.getSeconds(),this.$ms=I.getMilliseconds()},D.$utils=function(){return E},D.isValid=function(){return this.$d.toString()!==k},D.isSame=function(I,U){var q=$(I);return this.startOf(U)<=q&&q<=this.endOf(U)},D.isAfter=function(I,U){return $(I)<this.startOf(U)},D.isBefore=function(I,U){return this.endOf(U)<$(I)},D.$g=function(I,U,q){return E.u(I)?this[U]:this.set(q,I)},D.unix=function(){return Math.floor(this.valueOf()/1e3)},D.valueOf=function(){return this.$d.getTime()},D.startOf=function(I,U){var q=this,Y=!!E.u(U)||U,j=E.p(I),J=function(O,X){var K=E.w(q.$u?Date.UTC(q.$y,X,O):new Date(q.$y,X,O),q);return Y?K:K.endOf(m)},ee=function(O,X){return E.w(q.toDate()[O].apply(q.toDate("s"),(Y?[0,0,0,0]:[23,59,59,999]).slice(X)),q)},W=this.$W,v=this.$M,z=this.$D,x="set"+(this.$u?"UTC":"");switch(j){case S:return Y?J(1,0):J(31,11);case d:return Y?J(1,v):J(0,v+1);case p:var R=this.$locale().weekStart||0,M=(W<R?W+7:W)-R;return J(Y?z-M:z+(6-M),v);case m:case y:return ee(x+"Hours",0);case c:return ee(x+"Minutes",1);case i:return ee(x+"Seconds",2);case s:return ee(x+"Milliseconds",3);default:return this.clone()}},D.endOf=function(I){return this.startOf(I,!1)},D.$set=function(I,U){var q,Y=E.p(I),j="set"+(this.$u?"UTC":""),J=(q={},q[m]=j+"Date",q[y]=j+"Date",q[d]=j+"Month",q[S]=j+"FullYear",q[c]=j+"Hours",q[i]=j+"Minutes",q[s]=j+"Seconds",q[r]=j+"Milliseconds",q)[Y],ee=Y===m?this.$D+(U-this.$W):U;if(Y===d||Y===S){var W=this.clone().set(y,1);W.$d[J](ee),W.init(),this.$d=W.set(y,Math.min(this.$D,W.daysInMonth())).$d}else J&&this.$d[J](ee);return this.init(),this},D.set=function(I,U){return this.clone().$set(I,U)},D.get=function(I){return this[E.p(I)]()},D.add=function(I,U){var q,Y=this;I=Number(I);var j=E.p(U),J=function(v){var z=$(Y);return E.w(z.date(z.date()+Math.round(v*I)),Y)};if(j===d)return this.set(d,this.$M+I);if(j===S)return this.set(S,this.$y+I);if(j===m)return J(1);if(j===p)return J(7);var ee=(q={},q[i]=o,q[c]=l,q[s]=a,q)[j]||1,W=this.$d.getTime()+I*ee;return E.w(W,this)},D.subtract=function(I,U){return this.add(-1*I,U)},D.format=function(I){var U=this,q=this.$locale();if(!this.isValid())return q.invalidDate||k;var Y=I||"YYYY-MM-DDTHH:mm:ssZ",j=E.z(this),J=this.$H,ee=this.$m,W=this.$M,v=q.weekdays,z=q.months,x=function(X,K,H,Z){return X&&(X[K]||X(U,Y))||H[K].slice(0,Z)},R=function(X){return E.s(J%12||12,X,"0")},M=q.meridiem||function(X,K,H){var Z=X<12?"AM":"PM";return H?Z.toLowerCase():Z},O={YY:String(this.$y).slice(-2),YYYY:this.$y,M:W+1,MM:E.s(W+1,2,"0"),MMM:x(q.monthsShort,W,z,3),MMMM:x(z,W),D:this.$D,DD:E.s(this.$D,2,"0"),d:String(this.$W),dd:x(q.weekdaysMin,this.$W,v,2),ddd:x(q.weekdaysShort,this.$W,v,3),dddd:v[this.$W],H:String(J),HH:E.s(J,2,"0"),h:R(1),hh:R(2),a:M(J,ee,!0),A:M(J,ee,!1),m:String(ee),mm:E.s(ee,2,"0"),s:String(this.$s),ss:E.s(this.$s,2,"0"),SSS:E.s(this.$ms,3,"0"),Z:j};return Y.replace(f,function(X,K){return K||O[X]||j.replace(":","")})},D.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},D.diff=function(I,U,q){var Y,j=E.p(U),J=$(I),ee=(J.utcOffset()-this.utcOffset())*o,W=this-J,v=E.m(this,J);return v=(Y={},Y[S]=v/12,Y[d]=v,Y[h]=v/3,Y[p]=(W-ee)/6048e5,Y[m]=(W-ee)/864e5,Y[c]=W/l,Y[i]=W/o,Y[s]=W/a,Y)[j]||W,q?v:E.a(v)},D.daysInMonth=function(){return this.endOf(d).$D},D.$locale=function(){return C[this.$L]},D.locale=function(I,U){if(!I)return this.$L;var q=this.clone(),Y=V(I,U,!0);return Y&&(q.$L=Y),q},D.clone=function(){return E.w(this.$d,this)},D.toDate=function(){return new Date(this.valueOf())},D.toJSON=function(){return this.isValid()?this.toISOString():null},D.toISOString=function(){return this.$d.toISOString()},D.toString=function(){return this.$d.toUTCString()},L}(),P=B.prototype;return $.prototype=P,[["$ms",r],["$s",s],["$m",i],["$H",c],["$W",m],["$M",d],["$y",S],["$D",y]].forEach(function(L){P[L[1]]=function(D){return this.$g(D,L[0],L[1])}}),$.extend=function(L,D){return L.$i||(L(D,B,$),L.$i=!0),$},$.locale=V,$.isDayjs=A,$.unix=function(L){return $(1e3*L)},$.en=C[T],$.Ls=C,$.p={},$})})(ts);var Su=ts.exports;const Re=Ye(Su);var ns={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,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(b){this[k]=+b}},p=[/[+-]\d\d:?(\d\d)?|Z/,function(k){(this.zone||(this.zone={})).offset=function(b){if(!b||b==="Z")return 0;var f=b.match(/([+-]|\d\d)/g),u=60*f[1]+(+f[2]||0);return u===0?0:f[0]==="+"?-u:u}(k)}],d=function(k){var b=i[k];return b&&(b.indexOf?b:b.s.concat(b.f))},h=function(k,b){var f,u=i.meridiem;if(u){for(var g=1;g<=24;g+=1)if(k.indexOf(u(g,0,b))>-1){f=g>12;break}}else f=k===(b?"pm":"PM");return f},S={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 b=i.ordinal,f=k.match(/\d+/);if(this.day=f[0],b)for(var u=1;u<=31;u+=1)b(u).replace(/\[|\]/g,"")===k&&(this.day=u)}],M:[r,m("month")],MM:[l,m("month")],MMM:[s,function(k){var b=d("months"),f=(d("monthsShort")||b.map(function(u){return u.slice(0,3)})).indexOf(k)+1;if(f<1)throw new Error;this.month=f%12||f}],MMMM:[s,function(k){var b=d("months").indexOf(k)+1;if(b<1)throw new Error;this.month=b%12||b}],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 b,f;b=k,f=i&&i.formats;for(var u=(k=b.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function($,E,B){var P=B&&B.toUpperCase();return E||f[B]||a[B]||f[P].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(L,D,I){return D||I.slice(1)})})).match(o),g=u.length,w=0;w<g;w+=1){var T=u[w],C=S[T],A=C&&C[0],V=C&&C[1];u[w]=V?{regex:A,parser:V}:T.replace(/^\[|\]$/g,"")}return function($){for(var E={},B=0,P=0;B<g;B+=1){var L=u[B];if(typeof L=="string")P+=L.length;else{var D=L.regex,I=L.parser,U=$.slice(P),q=D.exec(U)[0];I.call(E,q),$=$.replace(q,"")}}return function(Y){var j=Y.afternoon;if(j!==void 0){var J=Y.hours;j?J<12&&(Y.hours+=12):J===12&&(Y.hours=0),delete Y.afternoon}}(E),E}}return function(k,b,f){f.p.customParseFormat=!0,k&&k.parseTwoDigitYear&&(c=k.parseTwoDigitYear);var u=b.prototype,g=u.parse;u.parse=function(w){var T=w.date,C=w.utc,A=w.args;this.$u=C;var V=A[1];if(typeof V=="string"){var $=A[2]===!0,E=A[3]===!0,B=$||E,P=A[2];E&&(P=A[2]),i=this.$locale(),!$&&P&&(i=f.Ls[P]),this.$d=function(U,q,Y){try{if(["x","X"].indexOf(q)>-1)return new Date((q==="X"?1e3:1)*U);var j=y(q)(U),J=j.year,ee=j.month,W=j.day,v=j.hours,z=j.minutes,x=j.seconds,R=j.milliseconds,M=j.zone,O=new Date,X=W||(J||ee?1:O.getDate()),K=J||O.getFullYear(),H=0;J&&!ee||(H=ee>0?ee-1:O.getMonth());var Z=v||0,G=z||0,_=x||0,F=R||0;return M?new Date(Date.UTC(K,H,X,Z,G,_,F+60*M.offset*1e3)):Y?new Date(Date.UTC(K,H,X,Z,G,_,F)):new Date(K,H,X,Z,G,_,F)}catch{return new Date("")}}(T,V,C),this.init(),P&&P!==!0&&(this.$L=this.locale(P).$L),B&&T!=this.format(V)&&(this.$d=new Date("")),i={}}else if(V instanceof Array)for(var L=V.length,D=1;D<=L;D+=1){A[1]=V[D-1];var I=f.apply(this,A);if(I.isValid()){this.$d=I.$d,this.$L=I.$L,this.init();break}D===L&&(this.$d=new Date(""))}else g.call(this,w)}}})})(ns);var Cu=ns.exports;const wu=Ye(Cu);var os={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,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(),d=(i||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(h){switch(h){case"Q":return Math.ceil((c.$M+1)/3);case"Do":return 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)(d)}}})})(os);var Nu=os.exports;const Bu=Ye(Nu);var ls={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o,l){var r=o.prototype,s=function(d){return d&&(d.indexOf?d:d.s)},i=function(d,h,S,y,k){var b=d.name?d:d.$locale(),f=s(b[h]),u=s(b[S]),g=f||u.map(function(T){return T.slice(0,y)});if(!k)return g;var w=b.weekStart;return g.map(function(T,C){return g[(C+(w||0))%7]})},c=function(){return l.Ls[l.locale()]},m=function(d,h){return d.formats[h]||function(S){return S.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,k,b){return k||b.slice(1)})}(d.formats[h.toUpperCase()])},p=function(){var d=this;return{months:function(h){return h?h.format("MMMM"):i(d,"months")},monthsShort:function(h){return h?h.format("MMM"):i(d,"monthsShort","months",3)},firstDayOfWeek:function(){return d.$locale().weekStart||0},weekdays:function(h){return h?h.format("dddd"):i(d,"weekdays")},weekdaysMin:function(h){return h?h.format("dd"):i(d,"weekdaysMin","weekdays",2)},weekdaysShort:function(h){return h?h.format("ddd"):i(d,"weekdaysShort","weekdays",3)},longDateFormat:function(h){return m(d.$locale(),h)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};r.localeData=function(){return p.bind(this)()},l.localeData=function(){var d=c();return{firstDayOfWeek:function(){return d.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(d,h)},meridiem:d.meridiem,ordinal:d.ordinal}},l.months=function(){return i(c(),"months")},l.monthsShort=function(){return i(c(),"monthsShort","months",3)},l.weekdays=function(d){return i(c(),"weekdays",null,null,d)},l.weekdaysShort=function(d){return i(c(),"weekdaysShort","weekdays",3,d)},l.weekdaysMin=function(d){return i(c(),"weekdaysMin","weekdays",2,d)}}})})(ls);var Au=ls.exports;const Tu=Ye(Au);var as={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,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),d=s(this).endOf(a);if(p.isBefore(d))return 1}var h=s(this).startOf(o).date(m).startOf(a).subtract(1,"millisecond"),S=this.diff(h,a,!0);return S<0?s(this).startOf("week").week():Math.ceil(S)},i.weeks=function(c){return c===void 0&&(c=null),this.week(c)}}})})(as);var Vu=as.exports;const $u=Ye(Vu);var rs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,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}}})})(rs);var Eu=rs.exports;const Du=Ye(Eu);var ss={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,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")}}})})(ss);var Iu=ss.exports;const xu=Ye(Iu);var is={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o){o.prototype.isSameOrAfter=function(l,r){return this.isSame(l,r)||this.isAfter(l,r)}}})})(is);var qu=is.exports;const vu=Ye(qu);var cs={exports:{}};(function(e,n){(function(a,o){e.exports=o()})(We,function(){return function(a,o){o.prototype.isSameOrBefore=function(l,r){return this.isSame(l,r)||this.isBefore(l,r)}}})})(cs);var Mu=cs.exports;const Pu=Ye(Mu);Re.extend(Tu),Re.extend(Bu),Re.extend(wu),Re.extend($u),Re.extend(Du),Re.extend(xu),Re.extend(vu),Re.extend(Pu);const ae={format(e,n){return Re(e).format(n)},parser(e,n){return Re(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)),d=this.date2Str(new Date(m));return[p,d]}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)),d=this.date2Str(new Date(m));return[p,d]}},formatResultDate:function(e){let n=[...e.split("-")];return n[2]=ae.getNumTwoBit(Number(n[2])),n[3]=`${n[0]}-${n[1]}-${n[2]}`,n[4]=ae.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}},ds=new Date().getFullYear(),Wo={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"},Pn=(e,n,a)=>{let o;if(Ke(n)?o=n:typeof n=="string"&&be(n)>0?o=ae.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)},Yo=(e,n,a)=>{Ke(n)||(n=e.minDate);let o=Math.max(n.getTime(),e.minDate.getTime());return o=Math.min(o,e.maxDate.getTime()),ae.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(ds-10,0,1),validator:Ke},maxDate:{type:Date,default:()=>new Date(ds+10,11,31),validator:Ke},visibleItemCount:{type:[Number,String],default:7},threeDimensional:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:1e3},teleportDisable:{type:Boolean}};const{create:Lu,scope:zu}=Q("date-picker"),Fu=Lu({components:{[kt.name]:kt},props:{...Xo},emits:["click","update:visible","update:modelValue","update:dateIndexs","update:close","cancel","confirm","clear"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(zu),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,u=>{l.value=u});function r(u,g){return new Date(u,g,0).getDate()}const s=(u,g)=>{const w=e[`${u}Date`],T=w.getFullYear();let C=1,A=1,V=0,$=0;u==="max"&&(C=12,A=r(g.getFullYear(),g.getMonth()+1),V=23,$=59);const E=$;return g.getFullYear()===T&&(C=w.getMonth()+1,g.getMonth()+1===C&&(A=w.getDate(),g.getDate()===A&&(V=w.getHours(),g.getHours()===V&&($=w.getMinutes())))),{[`${u}Year`]:T,[`${u}Month`]:C,[`${u}Date`]:A,[`${u}Hour`]:V,[`${u}Minute`]:$,[`${u}Seconds`]:E}},i=t.computed(()=>{if(!h.value)return[];const{maxYear:u,maxDate:g,maxMonth:w,maxHour:T,maxMinute:C,maxSeconds:A}=s("max",h.value),{minYear:V,minDate:$,minMonth:E,minHour:B,minMinute:P,minSeconds:L}=s("min",h.value);let D=[{type:"year",range:[V,u]},{type:"month",range:[E,w]},{type:"day",range:[$,g]},{type:"hour",range:[B,T]},{type:"minute",range:[P,C]},{type:"seconds",range:[L,A]}];switch(e.type){case"date":D=D.slice(0,3);break;case"datetime":D=D.slice(0,5);break;case"time":D=D.slice(3,6);break;case"year-month":D=D.slice(0,2);break;case"month-day":D=D.slice(1,3);break;case"datehour":D=D.slice(0,4);break;case"hour-minute":D=D.slice(3,5);break}return D}),c=(u,g,w)=>{if(!(g>u))return null;const T=[];for(;u<=g;)e.isShowChinese?T.push({text:u+o[w],value:u}):T.push({text:`${u}`,value:u}),w==="minute"?u+=e.minuteStep:u++;return T},m=t.computed(()=>{let u=[];return i.value.forEach(g=>{let w=c(g.range[0],g.range[1],g.type);w&&u.push(w)}),u}),p=(u,g)=>u==="year"?g.getFullYear():u==="month"?g.getMonth()+1:u==="day"?g.getDate():u==="hour"?g.getHours():u==="minute"?g.getMinutes():u==="seconds"?g.getSeconds():0,d=t.ref(),h=t.ref(null);t.watch(()=>e.modelValue,u=>{let g;if(typeof u=="string"?u.length==0?g=new Date:e.valueFormat?g=Pn(e,e.modelValue,e.valueFormat):g=Pn(e,u,Wo[e.type]):Ke(u)?g=u:g=new Date,!!g&&(!h.value||g.getTime()!==h.value.getTime())){h.value=g;let w=[];i.value.forEach(T=>{let C=p(T.type,g);w.push(C)}),d.value=w}},{immediate:!0});const S=u=>{if(e.type==="date"){const g=u[0],w=u[1]-1,T=Math.min(u[2],r(g,w+1));T!==u[2]&&(u[2]=T),h.value=new Date(g,w,T)}else if(e.type==="datetime"){const g=u[0],w=u[1]-1,T=Math.min(u[2],r(g,w+1)),C=u[3],A=u[4];T!==u[2]&&(u[2]=T),h.value=new Date(g,w,T,C,A)}else if(e.type==="time"){const g=u[0],w=u[1],T=u[2],C=h.value??new Date,A=new Date(C.getFullYear(),C.getMonth(),C.getDate(),g,w,T);h.value=A}else if(e.type==="year-month"){const g=u[0],w=u[1]-1;h.value=new Date(g,w)}else if(e.type==="month-day"){const w=(h.value??new Date).getFullYear(),T=u[0]-1,C=Math.min(u[1],r(w,T+1));C!==u[1]&&(u[1]=C);const A=new Date(w,T,C);h.value=A}else if(e.type==="datehour"){const g=u[0],w=u[1]-1,T=Math.min(u[2],r(g,w+1)),C=u[3];T!==u[2]&&(u[2]=T),h.value=new Date(g,w,T,C)}else if(e.type==="hour-minute"){const g=u[0],w=u[1],T=h.value??new Date,C=new Date(T.getFullYear(),T.getMonth(),T.getDate(),g,w);h.value=C}d.value=u};return{columns:m,dateIndexs:d,show:l,onChange:u=>{S(u)},onClose:()=>{l.value=!1,n("update:visible",!1),n("update:close",!1)},onConfirm:u=>{S(u),l.value=!1;let g=h.value??new Date;if(e.valueFormat){let w=Yo(e,g,e.valueFormat);n("update:modelValue",w)}else n("update:modelValue",g);n("update:visible",!1),n("confirm",u)},onClear:()=>{n("clear")}}}});function Ru(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 Ln=oe(Fu,[["render",Ru]]),Ou={format:{type:String},placeholder:{type:String},textAlign:{type:String},clearable:{type:Boolean,default:!0}};function Ku(e){let n=e.format;if(!n){let a=e.type??"date";n=Wo[a]}return n}function Uu(e,n,a,o,l,r,s=!1){return{props:{...pe,...ye,...Xo,...Ou},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const m=Ae(t.computed(()=>i.disabled)),p=$e(t.computed(()=>i.readonly)),{emitEvent:d}=Be({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),S=h(i,["placeholder"]),y=t.ref(!1),b=Ie(i,"modelValue",v=>v==null?null:typeof v=="string"?v.length==0?null:i.valueFormat?Pn(i,v,i.valueFormat)??v:Pn(i,v,Wo[i.type])??v:Ke(v)?v:null,d),f=t.computed(()=>{if(!b.value)return"";const v=Ku(i);return Yo(i,b.value,v)}),u="fox-input-item",g=t.computed(()=>({[u]:!0,"is-disabled":m.value,"is-readonly":p.value})),w=Te(t.computed(()=>i.textAlign),"textAlign"),T=t.computed(()=>{const v={};return w.value&&(v["text-align"]=w.value),v}),C=t.ref(!1),A=()=>{C.value=!0},V=()=>{C.value=!1};c.expose({showPicker:A,hidePicker:V});const $=v=>{C.value=v},E=v=>{if(b.value=v,i.valueFormat){let z=Yo(i,v,i.valueFormat);d("update:modelValue",z,{}),d("change",z,{})}else d("update:modelValue",v,{}),d("change",v,{})},B=v=>{let x=v.target.value;y.value=!0,d("focus",x,v)},P=v=>{setTimeout(()=>{y.value=!1},0);let x=v.target.value;i.maxLength&&x.length>Number(i.maxLength)&&(x=x.slice(0,Number(i.maxLength))),d("blur",x,v)},L=t.computed(()=>({[`${u}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),D=t.computed(()=>be(i.unit)>0),I=t.computed(()=>be(i.unit)>0&&!y.value),U=t.computed(()=>({hidden:!I.value})),q=v=>{b.value="",d("update:modelValue","",v),d("change","",v),d("clear",""),V()},Y=t.computed(()=>i.clearable&&!m.value&&!p.value),j=t.computed(()=>{let v=be(b.value)>0;return i.clearable&&v&&y.value}),J=v=>{j.value?q(v):A()},ee=t.computed(()=>j.value&&Y.value?o:l),W=t.computed(()=>({action:!0}));return()=>{const v={class:g.value,style:T.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:A,onFocus:B,onBlur:P};s&&(v.disabled=!0);const z=[],x=t.h("input",v);z.push(x);const R=[],M={class:["action-icon"]},O=t.h(ee.value,M),X={class:W.value,onClick:J},K=t.h("view",X,{default:()=>[O]});if(R.push(K),D.value){const de=t.h("view",{class:U.value},[i.unit]);R.push(de)}const H={class:L.value},Z=t.h("view",H,{default:()=>R});z.push(Z);const G={default:()=>z};G.label=c.slots.default,G.prepend=c.slots.prepend,G.append=c.slots.append,G.fixedPreTip=c.slots.fixedPreTip,G.fixedTip=c.slots.fixedTip;const _=ke(i,Xo);_.valueFormat=null,_.disabled=!1,_.readonly=m.value||p.value,_.visible=C.value,_["onUpdate:visible"]=$,_.modelValue=b.value,_["onUpdate:modelValue"]=E,_.onClear=q;const F={};if(c.slots.top){const de=c.slots.top();F.top=()=>de}if(c.slots.bottom){const de=c.slots.bottom();F.default=()=>de}const te=t.h(r,_,F);G.hide=()=>[te];const ne=ke(i,ye,pe);return t.h(a,{...ne,prop:`${i.prop}_item`},G)}}}}const{create:Hu,componentName:ju,scope:Wu}=Q("date-item"),Qo=Hu(Uu(ju,Wu,we,le.CircleClose,le.Date,Ln,!1)),Yu=39,Xu=64,{create:Qu,scope:Gu}=Q("calendar-pane"),Zu=Qu({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:ae.getDay(0)},endDate:{type:String,default:ae.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(Gu),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),d=t.ref(null),h=t.ref(0),S=t.computed(()=>f.monthsData.slice(f.defaultRange[0],f.defaultRange[1])),y=t.computed(()=>a.btn),k=t.computed(()=>a["top-info"]),b=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}),u=M=>M.split("-"),g=M=>ae.isEqual(f.currDate[0],M),w=M=>ae.isEqual(f.currDate[1],M),T=M=>f.currDate?.length>0?f.currDate?.some(O=>ae.isEqual(O,M)):!1,C=(M,O)=>O.curData[0]+"-"+O.curData[1]+"-"+ae.getNumTwoBit(+M.day),A=(M,O)=>{const X=C(M,O),{type:K}=e;return M.type=="curr"?ae.isEqual(f.currDate,X)||(K=="range"||K=="week")&&(g(X)||w(X))||K=="multiple"&&T(X)?`${f.dayPrefix}--active`:f.propStartDate&&ae.compareDate(X,f.propStartDate)||f.propEndDate&&ae.compareDate(f.propEndDate,X)?`${f.dayPrefix}--disabled`:(K=="range"||K=="week")&&Array.isArray(f.currDate)&&Object.values(f.currDate).length==2&&ae.compareDate(f.currDate[0],X)&&ae.compareDate(X,f.currDate[1])?`${f.dayPrefix}--choose`:null:`${f.dayPrefix}--disabled`},V=()=>{const{type:M}=e;if(M=="range"&&f.chooseData.length==2||M!="range"){let O=f.chooseData.slice(0);M=="week"&&(O={weekDate:[E(f.chooseData[0]),E(f.chooseData[1])]}),n("choose",O),e.poppable&&n("update")}},$=(M,O,X=!1)=>{if(A(M,O)!=`${f.dayPrefix}--disabled`){const{type:K}=e;let[H,Z]=O.curData,G=[...O.curData];if(G[2]=ae.getNumTwoBit(Number(M.day)),G[3]=`${G[0]}-${G[1]}-${G[2]}`,G[4]=ae.getWhatDay(+G[0],+G[1],+G[2]),K=="multiple")if(f.currDate?.length>0){let _;f.currDate?.forEach((F,te)=>{F==G[3]&&(_=te)}),X?f.chooseData.push([...G]):_!==void 0?(f.currDate.splice(_,1),f.chooseData.splice(_,1)):(f.currDate.push(G[3]),f.chooseData.push([...G]))}else f.currDate=[G[3]],f.chooseData=[[...G]];else if(K=="range"){let _=Object.values(f.currDate).length;_==2||_==0?f.currDate=[G[3]]:ae.compareDate(f.currDate[0],G[3])?Array.isArray(f.currDate)&&f.currDate.push(G[3]):Array.isArray(f.currDate)&&f.currDate.unshift(G[3]),f.chooseData.length==2||!f.chooseData.length?f.chooseData=[[...G]]:ae.compareDate(f.chooseData[0][3],G[3])?f.chooseData=[...f.chooseData,[...G]]:f.chooseData=[[...G],...f.chooseData]}else if(K=="week"){let _=ae.getWeekDate(H,Z,M.day,e.firstDayOfWeek);f.propStartDate&&ae.compareDate(_[0],f.propStartDate)&&_.splice(0,1,f.propStartDate),f.propEndDate&&ae.compareDate(f.propEndDate,_[1])&&_.splice(1,1,f.propEndDate),f.currDate=_,f.chooseData=[ae.formatResultDate(_[0]),ae.formatResultDate(_[1])]}else f.currDate=G[3],f.chooseData=[...G];if(!X){let _=f.chooseData;K=="week"&&(_={weekDate:[E(f.chooseData[0]),E(f.chooseData[1])]}),n("select",_),(e.isAutoBackFill||!e.poppable)&&V()}}},E=M=>{let[O,X,K]=M;return{date:M,monthWeekNum:ae.getMonthWeek(O,X,K,e.firstDayOfWeek),yearWeekNum:ae.getYearWeek(O,X,K,e.firstDayOfWeek)}},B=M=>{const O=M=="prev"?f.monthsData[0]:f.monthsData[f.monthsData.length-1];let X=parseInt(O.curData[0]),K=parseInt(O.curData[1].toString().replace(/^0/,""));switch(M){case"prev":K==1&&(X-=1),K=K==1?12:--K;break;case"next":K==12&&(X+=1),K=K==12?1:++K;break}return[X+"",ae.getNumTwoBit(K),ae.getMonthDays(String(X),String(K))+""]},P=(M,O,X)=>{let{year:K,month:H}=X;return O=="prev"&&M>=7&&(M-=7),Array.from(Array(M),(Z,G)=>({day:String(G+1),type:O,year:K,month:H}))},L=(M,O,X,K)=>{M=M-e.firstDayOfWeek;let{year:H,month:Z}=X;return O=="prev"&&M>=7&&(M-=7),Array.from(Array(K),(_,F)=>({day:String(F+1),type:O,year:H,month:Z})).slice(K-M)},D=(M,O)=>{const X=ae.getMonthPreDay(+M[0],+M[1]);let K=Number(M[1])-1,H=Number(M[0]);K<=0&&(K=12,H+=1);const Z=ae.getMonthDays(String(M[0]),String(M[1])),G=ae.getMonthDays(H+"",K+""),_={year:M[0],month:M[1]},F={curData:M,title:l("monthTitle",{year:_.year,month:_.month}),monthData:[...L(X,"prev",{month:String(K),year:String(H)},G),...P(Z,"curr",_)],cssHeight:0,cssScrollHeight:0},te=F.monthData.length>35?6:5;F.cssHeight=Yu+Xu*te;let ne=0;f.monthsData.length>0&&(ne=f.monthsData[f.monthsData.length-1].cssScrollHeight+f.monthsData[f.monthsData.length-1].cssHeight),F.cssScrollHeight=ne,O=="next"?(!f.endData||!ae.compareDate(`${f.endData[0]}-${f.endData[1]}-${ae.getMonthDays(f.endData[0],f.endData[1])}`,`${M[0]}-${M[1]}-${M[2]}`))&&f.monthsData.push(F):!f.startData||!ae.compareDate(`${M[0]}-${M[1]}-${M[2]}`,`${f.startData[0]}-${f.startData[1]}-01`)?f.monthsData.unshift(F):f.unLoadPrev=!0},I=()=>{let M=e.startDate?e.startDate:ae.getDay(0),O=e.endDate?e.endDate:ae.getDay(365);f.propStartDate=M,f.propEndDate=O,f.startData=u(M),f.endData=u(O),(e.defaultValue||Array.isArray(e.defaultValue)&&e.defaultValue.length>0)&&(f.currDate=e.type!=="one"?[...e.defaultValue]:e.defaultValue);const X={year:Number(f.startData[0]),month:Number(f.startData[1])},K={year:Number(f.endData[0]),month:Number(f.endData[1])};let H=K.month-X.month;K.year-X.year>0&&(H=H+12*(K.year-X.year)),H<=0&&(H=1),D(f.startData,"next");let Z=1;do D(B("next"),"next");while(Z++<H);if(f.monthsNum=H,e.type=="range"&&Array.isArray(f.currDate))f.currDate.length>0&&(M&&ae.compareDate(f.currDate[0],M)&&f.currDate.splice(0,1,M),O&&ae.compareDate(O,f.currDate[1])&&f.currDate.splice(1,1,O),f.defaultData=[...u(f.currDate[0]),...u(f.currDate[1])]);else if(e.type=="multiple"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let G=[],_={};f.currDate.forEach(F=>{M&&!ae.compareDate(F,M)&&O&&!ae.compareDate(O,F)&&(Object.hasOwnProperty.call(_,F)||(G.push(F),_[F]=F))}),f.currDate=[...G],f.defaultData=[...u(G[0])]}}else if(e.type=="week"&&Array.isArray(f.currDate)){if(f.currDate.length>0){let[G,_,F]=u(f.currDate[0]),te=ae.getWeekDate(G,_,F,e.firstDayOfWeek);f.currDate=te,M&&ae.compareDate(f.currDate[0],M)&&f.currDate.splice(0,1,M),O&&ae.compareDate(O,f.currDate[1])&&f.currDate.splice(1,1,O),f.defaultData=[...u(f.currDate[0]),...u(f.currDate[1])]}}else f.currDate&&(M&&ae.compareDate(f.currDate,M)?f.currDate=M:O&&!ae.compareDate(f.currDate,O)&&(f.currDate=O),f.defaultData=[...u(f.currDate)])};Ee({scrollToDate:M=>{ae.compareDate(M,f.propStartDate)?M=f.propStartDate:ae.compareDate(M,f.propEndDate)||(M=f.propEndDate);let O=u(M);f.monthsData.forEach((X,K)=>{if(X.title==l("monthTitle",{year:O[0],month:O[1]})&&c.value){let H=f.monthsData[K].cssScrollHeight-c.value.scrollTop;if(e.toDateAnimation){let Z=0,G=setInterval(()=>{if(Z++,c.value){let _=H/10;c.value.scrollTop=c.value.scrollTop+_}Z>=10&&(clearInterval(G),c.value&&(c.value.scrollTop=f.monthsData[K].cssScrollHeight))},40)}else c.value.scrollTop=f.monthsData[K].cssScrollHeight}})},initPosition:()=>{c?.value&&(c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)},doLayout:()=>{let M=0,O=0;f.defaultData.length>0&&f.monthsData.forEach((H,Z)=>{H.title==l("monthTitle",{year:f.defaultData[0],month:f.defaultData[1]})&&(M=Z),(e.type=="range"||e.type=="week")&&H.title==l("monthTitle",{year:f.defaultData[3],month:f.defaultData[4]})&&(O=Z)}),j(f.monthsNum,M),f.currentIndex=M,f.yearMonthTitle=f.monthsData[f.currentIndex].title,f.defaultData.length>0&&(f.isRange?($({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0),$({day:f.defaultData[5],type:"curr"},f.monthsData[O],!0)):e.type=="week"?$({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0):e.type=="multiple"?[...f.currDate].forEach(H=>{let Z=u(H),G=f.currentIndex;f.monthsData.forEach((_,F)=>{_.title==l("monthTitle",{year:Z[0],month:Z[1]})&&(G=F)}),$({day:Z[2],type:"curr"},f.monthsData[G],!0)}):$({day:f.defaultData[2],type:"curr"},f.monthsData[f.currentIndex],!0));let X=f.monthsData[f.monthsData.length-1],K=X.cssHeight+X.cssScrollHeight;Xe(()=>{c?.value&&m?.value&&d?.value&&(h.value=c.value.clientHeight,m.value.style.height=`${K}px`,c.value.scrollTop=f.monthsData[f.currentIndex].cssScrollHeight)}),f.avgHeight=Math.floor(K/(f.monthsNum+1))}});const j=(M,O)=>{M>=3?O>0&&O<M?f.defaultRange=[O-1,O+3]:O==0?f.defaultRange=[O,O+4]:O==M&&(f.defaultRange=[O-2,O+2]):f.defaultRange=[0,M+2];let X=f.monthsData[f.defaultRange[0]].cssScrollHeight;f.translateY=X},J=(M,O)=>(e.type=="range"||e.type=="week")&&M.type=="curr"&&A(M,O)=="fox-calendar__day--active",ee=(M,O)=>J(M,O)&&g(C(M,O)),W=(M,O)=>f.currDate.length>=2&&w(C(M,O))?J(M,O):!1,v=()=>{if(f.currDate.length>=2)return ae.isEqual(f.currDate[0],f.currDate[1])},z=M=>{const O=`${M.year}-${M.month}-${Number(M.day)<10?"0"+M.day:M.day}`;return ae.isEqual(O,ae.date2Str(new Date))},x=M=>{if(f.monthsData.length<=1)return;const O=M.target.scrollTop;let X=Math.floor(O/f.avgHeight);if(X==0)O>=f.monthsData[X+1].cssScrollHeight&&(X+=1);else if(X>0&&X<f.monthsNum-1)O>=f.monthsData[X+1].cssScrollHeight&&(X+=1),O<f.monthsData[X].cssScrollHeight&&(X-=1);else{const K=Math.round(O+h.value);K<f.monthsData[X].cssScrollHeight+f.monthsData[X].cssHeight&&O>f.monthsData[X-1].cssScrollHeight&&(X-=1),X+1<=f.monthsNum&&K>=f.monthsData[X+1].cssScrollHeight+f.monthsData[X+1].cssHeight&&(X+=1),X>=1&&O<f.monthsData[X-1].cssScrollHeight&&(X-=1)}f.currentIndex!==X&&(f.currentIndex=X,j(f.monthsNum,X)),f.yearMonthTitle=f.monthsData[X].title},R=()=>{f.chooseData.splice(0),f.monthsData.splice(0),I()};return I(),t.watch(()=>e.defaultValue,M=>{M&&e.poppable&&R()}),{weeks:i,compConthsData:S,showTopBtn:y,topInfo:k,bottomInfo:b,rangeTip:v,mothsViewScroll:x,getClass:A,isStartTip:ee,isEndTip:W,chooseDay:$,isCurrDay:z,confirm:V,months:c,...t.toRefs(f),...t.toRefs(e),...r,monthsPanel:m,weeksPanel:p,viewArea:d}}}),Ju={class:"fox-calendar__header"},_u={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"},df={key:1,class:"fox-calendar__day-tips fox-calendar__day-tips--bottom"},uf={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",Ju,[e.showTitle?(t.openBlock(),t.createElementBlock("view",_u,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",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",uf,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 us=oe(Zu,[["render",pf]]),hf=e=>!!(!e||typeof e=="string"&&e.length==0||Array.isArray(e)&&e.length==0),zn={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}=Q("calendar"),yf=gf({components:{[us.name]:us,[fe.name]:fe},props:{...zn},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)})}),Ee({scrollToDate:c,initPosition:m});const p=()=>{n("update:visible",!1)},d=()=>{n("close"),n("update:visible",!1)};return{closePopup:()=>{d()},update:p,close:d,select:k=>{n("select",k)},choose:k=>{d(),n("choose",k)},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 Fn=oe(yf,[["render",bf]]),fs={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}},Go=(e,n)=>{let a;return Ke(e)?a=e:typeof e=="string"&&be(e)>0?a=ae.parser(e,n):a=new Date,a},St=(e,n,a)=>(Ke(n)||(n=new Date),ae.format(n,a)),Ct=e=>{let n=`${e.getFullYear()}`,a=`${e.getMonth()+1}`,o=`${e.getDate()}`,l=ae.date2Str(e),r=ae.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:{...pe,...ye,...zn,...fs},emits:["change","update:modelValue","blur","focus","clear","setValue"],setup(i,c){const m=Ae(t.computed(()=>i.disabled)),p=$e(t.computed(()=>i.readonly)),{emitEvent:d}=Be({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),S=h(i,["placeholder"]),y=t.ref(!1),k=t.computed(()=>i.type==="range"),b=t.reactive({startDate:null,endDate:null,startArray:[],endArray:[]}),f=()=>{b.startDate!==null&&(b.startDate=null,b.endDate=null,b.startArray=[],b.endArray=[])},u=(x,R="one",M="YYYY-MM-DD")=>{if(hf(x)){f();return}if(k.value&&Array.isArray(x)&&x.length==2){let O,X;typeof x[0]=="string"?(O=Go(x[0],M),X=Go(x[1],M)):(O=x[0],X=x[1]);let K=Ct(O),H=Ct(X);(b.startDate===null||b.startDate.getTime()!==O.getTime()||b.endDate?.getTime()!==X.getTime())&&(b.startDate=O,b.startArray=K,b.endDate=X,b.endArray=H)}else{let O;typeof x=="string"?O=Go(x,M):O=x;let X=Ct(O);(b.startDate===null||b.startDate.getTime()!==O.getTime())&&(b.startDate=O,b.startArray=X)}};u(i.modelValue,i.type,i.valueFormat),t.watch(()=>i.modelValue,x=>{u(x,i.type,i.valueFormat),d("setValue",x)});const g=t.computed(()=>{if(b.startDate===null)return"";if(k.value){let x=St(i,b.startDate,i.format),R=St(i,b.endDate,i.format);return`${x} ${i.rangeSeparator} ${R}`}else{let x=St(i,b.startDate,i.format);return i.showWeek&&(x=`${x} ${b.startArray[4]}`),x}}),w=t.computed(()=>{if(b.startDate===null)return null;if(k.value){let x=ae.date2Str(b.startDate),R=ae.date2Str(b.endDate??new Date);return[x,R]}else return ae.date2Str(b.startDate)}),T="fox-input-item",C=t.computed(()=>({[T]:!0,"is-disabled":m.value,"is-readonly":p.value})),A=Te(t.computed(()=>i.textAlign),"textAlign"),V=t.computed(()=>{const x={};return A.value&&(x["text-align"]=A.value),x}),$=t.ref(!1),E=()=>{p.value||m.value||($.value=!0)},B=x=>{$.value=x},P=x=>{if(x){if(k.value&&Array.isArray(x)){let R=x[0],M=me(R[0]),O=me(R[1]),X=me(R[2]),K=new Date(M,O-1,X),H=x[1];M=me(H[0]),O=me(H[1]),X=me(H[2]);let Z=new Date(M,O-1,X);if(b.startDate=K,b.startArray=Ct(K),b.endDate=Z,b.endArray=Ct(Z),i.valueFormat){let G=St(i,K,i.valueFormat),_=St(i,Z,i.valueFormat);d("update:modelValue",[G,_],{})}else d("update:modelValue",[K,Z],{})}else{let R=x,M=me(R[0]),O=me(R[1]),X=me(R[2]),K=new Date(M,O-1,X);if(b.startDate=K,b.startArray=Ct(K),i.valueFormat){let H=St(i,K,i.valueFormat);d("update:modelValue",H,{})}else d("update:modelValue",K,{})}d("change",x,{})}},L=x=>{let M=x.target.value;y.value=!0,d("focus",M,x)},D=x=>{setTimeout(()=>{y.value=!1},0);let M=x.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),d("blur",M,x)},I=t.computed(()=>({[`${T}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),U=t.computed(()=>be(i.unit)>0),q=t.computed(()=>be(i.unit)>0&&!y.value),Y=t.computed(()=>({hidden:!q.value})),j=x=>{f(),d("update:modelValue",null,x),d("change","",x),d("clear","")},J=t.computed(()=>i.clearable&&!m.value&&!p.value),ee=t.computed(()=>{let x=be(g.value)>0;return i.clearable&&x&&y.value}),W=x=>{ee.value?j(x):E()},v=t.computed(()=>ee.value&&J.value?l:r),z=t.computed(()=>({action:!0}));return()=>{const x={class:C.value,style:V.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:g.value,onClick:E,onFocus:L,onBlur:D};s&&(x.disabled=!0);const R=[],M=t.h("input",x);R.push(M);const O=[],X={class:["action-icon"]},K=t.h(v.value,X),H={class:z.value,onClick:W},Z=t.h("view",H,{default:()=>[K]});if(O.push(Z),U.value){const ve=t.h("view",{class:Y.value},[i.unit]);O.push(ve)}const G={class:I.value},_=t.h("view",G,{default:()=>O});R.push(_);const F={default:()=>R};F.label=c.slots.default,F.prepend=c.slots.prepend,F.append=c.slots.append,F.fixedPreTip=c.slots.fixedPreTip,F.fixedTip=c.slots.fixedTip;const te=ke(i,zn);te.visible=$.value,te["onUpdate:visible"]=B,te["default-value"]=w.value,te.onChoose=P;const ne={};if(c.slots.btn){const ve=c.slots.btn();ne.btn=()=>ve}c.slots.day&&(ne.day=c.slots.day),c.slots.topInfo&&(ne.topInfo=c.slots.topInfo),c.slots.bottomInfo&&(ne.bottomInfo=c.slots.bottomInfo);const se=t.h(a,te,ne);F.hide=()=>[se];const de=ut(i,zn,fs);return t.h(o,{...de,prop:`${i.prop}_item`},F)}}}}const{componentName:Sf,create:Cf,scope:wf}=Q("calendar-item"),Zo=Cf(kf(Sf,wf,Fn,we,{CloseIcon:le.CircleClose,MarkIcon:le.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 k=ce(o.iconSize),b=o.checkedIcon??a;return y.push("fox-radio__icon"),o.disabled&&y.push("is-disabled"),t.h(b,{width:k,height:k,class:y})}}else{if(r.icon)return r.icon();{const k=ce(o.iconSize),b=o.icon??n;return y.push("fox-radio__icon--unchecked"),o.disabled&&y.push("is-disabled"),t.h(b,{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?.())},d=()=>{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)},S=c.value==="left";return()=>t.h("view",{class:`${e} ${e}--${o.shape} ${S?`${e}--reverse`:""}`,onClick:h},[o.shape=="button"?d():S?[p(),m()]:[m(),p()]])}}}const{componentName:Af,create:Tf}=Q("radio"),Rn=Tf(Bf(Af,{CheckNormal:le.CheckNormal,Checked:le.CheckChecked})),{componentName:ms,create:Vf}=Q("radio-group"),On=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,{slots:n}){const{emitEvent:a}=ht(),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:`${ms} ${ms}--${e.direction}`,style:l},n.default?.())}}});function ps(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(Kn(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if(zt(e,r)===a)return l}return-1}function Kn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function zt(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 Df=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=Ge(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}};function If(){const e=t.getCurrentInstance();return new Df(e.proxy)}function xf(e){return{text:e,value:e}}const hs={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}},vf={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:{...pe,...ye,...hs,...qf,...vf},emits:["change","update:modelValue","setValue"],setup(r,s){const i=$e(t.computed(()=>r.readonly)),c=Ae(t.computed(()=>r.disabled)),m=Te(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return i.value},get disabled(){return c.value}},r.prop??s.attrs.name),d=If(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,u])=>{if(f){const g=await d.load("radio",f,u);if(g.length>0)if(typeof g[0]=="string"){const C=g.map(A=>xf(A));h.value=C}else h.value=g}},{immediate:!0});let S=t.ref(-1);t.watch([()=>r.modelValue,()=>h.value],async([f,u])=>{S.value=ps(r,u,f,r.valueType),p("setValue",f)},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;if(S.value===-1)return null;const f=h.value[S.value];return zt(r,f)}),k=f=>{let u=null,g=null;if(h.value.length>0){let w=ps(r,h.value,f,"value");S.value=w,w>=0&&(g=h.value[w],r.valueType==="text"?u=Kn(r,g):r.valueType==="item"?u=g:u=zt(r,g))}else u=f;p("update:modelValue",u),p("change",u,g)},b=()=>{let f=null,u=null;if(h.value.length>0&&S.value!==-1){let g=h.value[S.value];r.valueType==="text"?f=Kn(r,g):r.valueType==="item"?f=g:f=zt(r,g)}p("update:modelValue",f),p("change",f,u)};if(Ee({clear(){S.value!==-1&&(S.value=-1,b())}}),r.source){const f=()=>{const u=[],g=ke(r,hs);return h.value.forEach((w,T)=>{const C=zt(r,w),A=$f(r,w);let V={...g,label:C,disabled:A};const $=Ef(r,w,T);V={...V,...$},c.value&&(V.disabled=!0),i.value&&(V.readonly=!0);const E={};if(s.slots.icon&&(E.icon=s.slots.icon),s.slots.checkedIcon&&(E.checkedIcon=s.slots.checkedIcon),typeof s.slots.text=="function"){const P=s.slots.text(w);E.default=()=>[P]}else{const P=Kn(r,w);E.default=()=>P}let B=t.h(l,V,E);u.push(B)}),u};return()=>{const u=f(),g={class:`${e}`,direction:r.direction,textPosition:r.textPosition,textAlign:m.value,modelValue:y,"onUpdate:modelValue":k},w=t.h(o,g,{default:()=>u}),T={default:()=>w};T.label=s.slots.default,T.prepend=s.slots.prepend,T.append=s.slots.append,T.fixedPreTip=s.slots.fixedPreTip,T.fixedTip=s.slots.fixedTip;const C=ke(r,ye,pe);return t.h(a,{...C,prop:`${r.prop}_item`},T)}}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}=Q("radio-item"),Jo=Lf(Mf(Pf,zf,we,On,Rn)),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,{slots:r}){const{emitEvent:s}=ht(),i=t.inject("parent",null),c=t.reactive({partialSelect:l.indeterminate});t.watch(()=>l.indeterminate,u=>{c.partialSelect=u});const m=t.computed(()=>!!i),p=t.computed(()=>m.value?i.value.value.includes(l.label):!!l.modelValue),d=t.computed(()=>m.value?i.position:l.textPosition);let h="";const S=(u,g)=>{h="click",s("update:modelValue",u),s("change",u,g)};t.watch(()=>l.modelValue,u=>{h=="click"?h="":s("change",u)});const y=()=>{const u=[];if(c.partialSelect){if(r.indeterminateIcon)return r.indeterminateIcon();{const g=ce(l.iconSize),w=l.indeterminateIcon??o;return u.push("fox-checkbox__icon--indeterminate"),l.disabled&&u.push("is-disabled"),t.h(w,{width:g,height:g,class:u})}}else if(p.value){if(r.checkedIcon)return r.checkedIcon();{const g=ce(l.iconSize),w=l.checkedIcon??a;return u.push("fox-checkbox__icon"),l.disabled&&u.push("is-disabled"),t.h(w,{width:g,height:g,class:u})}}else{if(r.icon)return r.icon();{const g=ce(l.iconSize),w=l.icon??n;return u.push("fox-checkbox__icon--unchecked"),l.disabled&&u.push("is-disabled"),t.h(w,{width:g,height:g,class:u})}}},k=()=>{const u=[`${e}__label`];return l.disabled&&u.push("is-disabled"),t.h("view",{class:u},r.default?.())},b=()=>{const u=[`${e}__button`];return p.value&&u.push(`${e}__button--active`),l.disabled&&u.push("is-disabled"),t.h("view",{class:u},r.default?.())},f=u=>{if(!(l.disabled||l.readonly)){if(p.value&&c.partialSelect){c.partialSelect=!1,S(p.value,r.default?.()[0].children);return}if(S(!p.value,r.default?.()[0].children),m.value){const g=i.value.value,w=i.max.value,{label:T}=l,C=g.indexOf(T);C>-1?g.splice(C,1):C<=-1&&(g.length<w||!w)&&g.push(T),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} ${d.value==="left"?`${e}--reverse`:""}`,onClick:f},[l.shape=="button"?b():[y(),k()]])}}),{componentName:Rf,create:Of}=Q("checkbox"),Un=Of(Ff(Rf,{CheckNormal:le.CheckNormal,Checked:le.Checked,Indeterminate:le.CheckDisabled})),{create:Kf,componentName:gs}=Q("checkbox-group"),Hn=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}){const{emitEvent:a}=ht(),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(d=>{d?.disabled||p.push(d?.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)}),Ee({toggleAll:i,toggleReverse:c}),()=>{const m={};return e.textAlign&&(m["text-align"]=e.textAlign),t.h("view",{class:`${gs} ${gs}--${e.direction}`,style:m},n.default?.())}}});function ys(e,n,a,o="value"){for(let l=0;l<n.length;l++){let r=n[l];if(o==="text"){if(_o(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if(jn(e,r)===a)return l}return-1}function _o(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function jn(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=Ge(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ve(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}},bs={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:{...pe,...ye,...Xf,...bs,...Qf},emits:["change","update:modelValue","setValue"],setup(r,s){const i=Ae(t.computed(()=>r.disabled)),c=Ae(t.computed(()=>r.readonly)),m=Te(t.computed(()=>r.textAlign),"textAlign"),{emitEvent:p}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get readonly(){return c.value},get disabled(){return i.value}},r.prop??s.attrs.name),d=Wf(),h=t.ref([]);t.watch([()=>r.source,()=>r.params],async([f,u])=>{if(f){const g=await d.load("checkbox",f,u);if(g.length>0)if(typeof g[0]=="string"){const C=g.map(A=>Yf(A));h.value=C}else h.value=g}},{immediate:!0});const S=t.ref([]);t.watch([()=>r.modelValue,()=>h.value],async([f,u])=>{const g=[];Array.isArray(f)&&f.forEach(w=>{let T=ys(r,u,w,r.valueType);T!==-1&&g.push(T)}),!Me(g,S.value)&&(S.value=g,p("setValue",g))},{deep:!0});const y=t.computed(()=>{if(!r.source)return r.modelValue;let f=[];return S.value.forEach(u=>{let g=h.value[u];f.push(jn(r,g))}),f}),k=f=>{let u=[],g=[];if(h.value.length>0){const w=[];Array.isArray(f)&&f.forEach(T=>{let C=ys(r,h.value,T,"value");C!==-1&&w.push(C);const A=h.value[C];g.push(A),r.valueType==="text"?u.push(_o(r,A)):r.valueType==="item"?u.push(A):u.push(jn(r,A))}),S.value=w}else u=f;p("update:modelValue",u),p("change",u,g)},b=t.ref();if(Ee({toggleAll:f=>{b.value.toggleAll(f)},toggleReverse:()=>{b.value.toggleReverse()}}),r.source){const f=()=>{const u=[],g=ke(r,bs);return h.value.forEach((w,T)=>{const C=jn(r,w),A=Uf(r,w);let V={...g,label:C,disabled:A};const $=Hf(r,w,T);V={...V,...$},i.value&&(V.disabled=!0),c.value&&(V.readonly=!0);const E={};if(s.slots.icon&&(E.icon=s.slots.icon),s.slots.checkedIcon&&(E.checkedIcon=s.slots.checkedIcon),s.slots.indeterminateIcon&&(E.indeterminateIcon=s.slots.indeterminateIcon),typeof s.slots.text=="function"){const P=s.slots.text(w);E.default=()=>[P]}else{const P=_o(r,w);E.default=()=>P}let B=t.h(l,V,E);u.push(B)}),u};return()=>{const u=f(),g={class:`${e}`,ref:b,direction:r.direction,max:r.max,textPosition:r.textPosition,modelValue:y.value,"onUpdate:modelValue":k},w=t.h(o,g,{default:()=>u}),T={default:()=>w};T.label=s.slots.default,T.prepend=s.slots.prepend,T.append=s.slots.append,T.fixedPreTip=s.slots.fixedPreTip,T.fixedTip=s.slots.fixedTip;const C=ke(r,ye,pe);return t.h(a,{...C,prop:`${r.prop}_item`},T)}}else return()=>{const f=s.slots.options?.()??[];return t.h("view",{class:`${e}`,ref:b,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}=Q("checkbox-item"),el=Jf(Gf(Zf,_f,we,Hn,Un)),tl={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}=Q("switch"),nm=tm({components:{Loading1:le.Loading1},props:{...tl},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 Wn=oe(nm,[["render",lm]]);function am(e,n,a,o){return{props:{...pe,...ye,...tl},emits:["change","update:modelValue","setValue"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=$e(t.computed(()=>l.readonly)),{emitEvent:c}=Be({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=Ie(l,"modelValue",null,c),d=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const S={...ke(l,tl),disabled:s.value||i.value,value:p.value,"onUpdate:modelValue":d},y=[],k=t.h(o,S);y.push(k);const b={default:()=>y};b.label=r.slots.default,b.fixedPreTip=r.slots.fixedPreTip,b.fixedTip=r.slots.fixedTip;const f=ke(l,ye,pe);return f["content-class"]=m,t.h(a,{...f,prop:`${l.prop}_item`},b)}}}}const{componentName:rm,create:sm,scope:im}=Q("switch-item"),nl=sm(am(rm,im,we,Wn));function cm(e,n,a,o){return{props:{...pe,...ye,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=Ae(t.computed(()=>l.disabled)),i=$e(t.computed(()=>l.readonly)),{emitEvent:c}=Be({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"]),d=t.ref(l.modelValue);t.watch(()=>l.modelValue,P=>{d.value=P,c("change",P)});const h=t.computed(()=>({[`${e}`]:!0})),S=t.computed(()=>({[`${e}__main`]:!0,[`${e}__placeholder`]:!s.value&&ue(d.value),"is-disabled":s.value,"is-readonly":i.value})),y=Te(t.computed(()=>l.textAlign),"textAlign"),k=t.computed(()=>{const P={};return y.value&&(P["text-align"]=y.value),P}),b=t.computed(()=>!ue(l.modelValue)||r.slots.main?!0:!!ue(l.desc)),f=t.computed(()=>ue(d.value)?p.placeholder.value:d.value),u=t.computed(()=>!ue(l.desc)||r.slots.sub),g=t.computed(()=>({[`${e}__sub`]:!0})),w=t.computed(()=>{const P={};return y.value&&(P["text-align"]=y.value),P}),T=()=>{c("focus",d.value)},C=()=>{c("blur",d.value)},A=t.computed(()=>({[`${e}__append`]:!0,"is-disabled":s.value,"is-readonly":i.value})),V=t.computed(()=>be(l.unit)>0),$=P=>{s.value==!0||i.value==!0||c("click")},E=t.computed(()=>l.icon??a),B=t.computed(()=>({action:!0}));return()=>{const P=[];if(typeof r.slots.content=="function"){const v=r.slots.content();P.push(v)}else{const v=[];if(b.value){const R={tabIndex:0,class:S.value,style:k.value,onFocus:T,onBlur:C};let M=null;r.slots.main?M=t.h("view",R,[r.slots.main(f.value)]):M=t.h("view",R,[f.value]),v.push(M)}if(u.value){const R={tabIndex:0,class:g.value,style:w.value,onFocus:T,onBlur:C};let M=null;r.slots.sub?M=t.h("view",R,[r.slots.sub(l.desc)]):M=t.h("view",R,[l.desc]),v.push(M)}const z={class:h.value,onClick:$},x=t.h("view",z,v);P.push(x)}const L=[],D=ce(l.iconSize);let I=r.slots.icon;if(!I){const v={width:D,height:D,class:["action-icon"]};I=t.h(E.value,v)}const U={class:B.value,onClick:$},q=t.h("view",U,{default:()=>[I]});if(L.push(q),V.value){const v=t.h("view",{},[l.unit]);L.push(v)}const Y={class:A.value},j=t.h("view",Y,{default:()=>L});P.push(j);const J={default:()=>P};J.label=r.slots.default,J.prepend=r.slots.prepend,J.append=r.slots.append,J.fixedPreTip=r.slots.fixedPreTip,J.fixedTip=r.slots.fixedTip;const ee=ke(l,ye,pe);return t.h(o,{...ee,prop:`${l.prop}_item`},J)}}}}const{componentName:dm,create:um,scope:fm}=Q("link-item"),ol=um(cm(dm,fm,le.ArrowRight,we)),ll={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}=Q("rate"),hm=mm({props:{...ll},emits:["update:modelValue","change"],setup(e,{emit:n,slots:a}){const o=t.ref([]),l=t.computed(()=>({[pm]:!0})),r=S=>{n("update:modelValue",S),n("change",S)},s=(S,y)=>{if(e.disabled||e.readonly)return;let k=0;y===1&&e.modelValue===y||(k=y,e.allowHalf&&S==2&&(k-=.5)),r(k)},i=(S,y,k)=>{let b=0;for(let f=y.value.length-1;f>=0;f--){const u=y.value[f];if(S>u.offsetLeft){k?b=f+(S>u.offsetLeft+u.clientWidth/2?1:.5):b=f+1;break}}return b},c=Je(),m={onTouchStart(S){!e.touchable||e.readonly||c.start(S)},onTouchMove(S){e.touchable&&(c.move(S),c.isHorizontal()&&o.value&&(S.preventDefault(),r(i(c.moveX.value,o,e.allowHalf))))}},p=Math.random().toString(36).slice(-8),d=t.computed(()=>e.customIcon??le.StarFillN);return{classes:l,...m,onClick:s,toPxDesc:ge,renderIcon:(S,y)=>t.h(S,y),rateRefs:o,refRandomId:p,slots:a,customIcon:d}}}),gm=["id"],ym={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",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",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,gm))),128))],34)}const wt=oe(hm,[["render",Sm]]);function Cm(e,n,a,o){return{props:{...pe,...ye,...ll},emits:["change","update:modelValue","setValue"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=$e(t.computed(()=>l.readonly)),{emitEvent:c}=Be({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=Ie(l,"modelValue",null,c),d=h=>{p.value=h,c("update:modelValue",h,{}),c("change",h,{})};return()=>{const S={...ke(l,ll),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":d},y=[],k=t.h(o,S);y.push(k);const b={default:()=>y};if(r.slots.default){const g=r.slots.default();b.label=()=>g}const f=ke(l,ye,pe);return f["content-class"]=m,t.h(a,f,b)}}}}const{componentName:wm,create:Nm,scope:Bm}=Q("rate-item"),al=Nm(Cm(wm,Bm,we,wt)),Am=/scroll|auto|overlay/i,ks=window;function Tm(e){return e.tagName!=="HTML"&&e.tagName!=="BODY"&&e.nodeType===1}function rl(e,n=ks){let a=e;for(;a&&a!==n&&Tm(a);){const{overflowY:o}=window.getComputedStyle(a);if(Am.test(o))return a;a=a.parentNode}return n}function Ss(e,n=ks){const a=t.ref();return t.onMounted(()=>{e.value&&(a.value=rl(e.value,n))}),a}const Cs=()=>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 $m(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=Ss(c),p=t.reactive({beforeScrollTop:0,isInfiniting:!1,y:0,x:0,distance:0}),d=t.computed(()=>({[e]:!0})),h=u=>u?u.offsetTop+h(u.offsetParent):0,S=()=>{let u=0,g=0,w="down";if(m.value==window){const T=Cs();c.value&&(u=h(c.value)+c.value.offsetHeight-T-window.innerHeight),g=T}else{const{scrollHeight:T,clientHeight:C,scrollTop:A}=m.value;u=T-C-A,g=A}return p.beforeScrollTop>g?w="up":w="down",p.beforeScrollTop=g,l("scroll-change",g),u<=o.threshold&&w=="down"},y=()=>{Xe(()=>{if(!S()||!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)},b=()=>{m.value&&m.value.removeEventListener("scroll",y,o.useCapture)};t.onMounted(()=>{k(),o.immediate&&y()}),t.onUnmounted(()=>{b()});const f=t.ref(!1);return t.onActivated(()=>{f.value&&(f.value=!1,k())}),t.onDeactivated(()=>{f.value=!0,b()}),t.watch(()=>o.modelValue,u=>{u||(p.isInfiniting=!1)}),()=>{const u={class:"fox-infinite__container"},g=t.h("view",u,[r?.default?.()]),w=[];if(p.isInfiniting){let V=r?.loading?.()??null;if(!V){let B=r?.loadingIcon?.()??null;if(!B){const D={class:["fox-infinite__bottom-box__img"]};B=t.h(a,D)}const P={class:"fox-infinite__bottom-box__text"},L=t.h("view",P,[i.loadText.value]);V=[B,L]}const $={class:"fox-infinite__bottom-box"},E=t.h("view",$,V);w.push(E)}else if(!o.hasMore){let V=r?.finished?.()??null;if(!V){const $={class:"fox-infinite__bottom-tips"};V=t.h("view",$,[i.loadMoreText.value]),w.push(V)}}const T={class:"fox-infinite__bottom"},C=t.h("view",T,w),A={class:d.value,ref:c};return t.h("view",A,[g,C])}}}}const{componentName:Em,create:Dm,scope:Im}=Q("infinite-loading"),Yn=Dm($m(Em,Im,le.Loading)),{componentName:xm,create:qm}=Q("button"),vm=qm({components:{Loading:le.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),d=y=>{!i.value&&!s.value&&n("click",y)},h=t.computed(()=>{const y=xm;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}}),S=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:d,classes:h,getStyle:S}}}),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 Pe=oe(vm,[["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,{slots:l}){const{emitEvent:r}=ht(),{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})),d=$=>{let B=$.target.value;o.maxLength&&B.length>Number(o.maxLength)&&(B=B.slice(0,Number(o.maxLength))),r("update:modelValue",B,$),r("change",B,$)},h=t.ref({}),S=$=>{let B=$.target.value;c.active=!0,h.value=o.focusStyle,r("focus",B,$)},y=$=>{setTimeout(()=>{c.active=!1},0);let B=$.target.value;o.maxLength&&B.length>Number(o.maxLength)&&(B=B.slice(0,Number(o.maxLength))),h.value={},r("blur",B,$)},k=$=>{r("update:modelValue","",$),r("change","",$),r("clear","")},b=t.computed(()=>String(o.modelValue).length>0),f=t.computed(()=>{const $={};return b.value||($.display="none"),$}),u=()=>{o.autoblur&&A.value?.blur(),r("search",o.modelValue)},g=$=>{r("keyup-input",$),$.key.toLocaleUpperCase()==="ENTER"&&u()},w=$=>{r("click-input",$)},T=$=>{r("click-left-icon",o.modelValue,$)},C=t.computed(()=>({textAlign:o.inputAlign})),A=t.ref(null);t.onMounted(()=>{o.autofocus&&A.value.focus()});const V=()=>{const $=[];if(l.leftin){const D={class:[`${e}__search-icon`,`${e}__input-left-search-icon`],onClick:T},I=t.h("view",D,[l.leftin()]);$.push(I)}const E={ref:A,class:[`${e}__input-inner`],style:C.value,type:o.inputType,maxlengt:o.maxLength,placeholder:i.placeholder.value,value:o.modelValue,disabled:o.disabled,readonly:o.readonly,onClick:w,onInput:d,onFocus:S,onBlur:y,onkeyup:g},B=t.h("input",E);$.push(B);const P=[];if(o.clearable){const D={class:[`${e}__search-icon`,`${e}__input-clear-icon`],style:f.value,onClick:k},I=l?.clear?.()??o.clearIcon??a,U=t.h("view",D,[t.h(I)]);P.push(U)}if(l.rightin){const D={class:[`${e}__search-icon`,`${e}__input-right-search-icon`]},I=t.h("view",D,[l.rightin()]);P.push(I)}if(P.length>0){const D={class:`${e}__input-inner-right`},I=t.h("view",D,P);$.push(I)}const L={class:[`${e}__search-input`,`${o.shape}`],style:{...p.value,...h.value}};return t.h("view",L,$)};return()=>{const $=[];if(o.label){const P={class:`${e}__search-label`},L=t.h("span",P,[o.label]);$.push(L)}if(l.leftout){const P={class:[`${e}__search-icon`,`${e}__left-search-icon`]},L=t.h("view",P,[l.leftout()]);$.push(L)}const E=V();if($.push(E),l.rightout){const P={class:[`${e}__search-icon`,`${e}__right-search-icon`]},L=t.h("view",P,[l.rightout()]);$.push(L)}const B={class:`${e}`,style:m.value};return t.h("view",B,$)}}}),{componentName:Fm,create:Rm,scope:Om}=Q("searchbar"),Xn=Rm(zm(Fm,Om,le.CircleClose)),Qn={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(Gn(e,r)===a)return l}else if(o==="item"){if(Me(a,r))return l}else if(Ns(e,r)===a)return l}return-1}function Gn(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function ws(e,n){return typeof e.subTextKey=="string"&&e.subTextKey.length>0?n[e.subTextKey]:n.text}function Ns(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,d=p+l;d>m.length&&(d=m.length);const h=m.slice(p,d);return{totalSize:m.length,page:h}}if(typeof a=="function")return await Reflect.apply(a,null,[o,l,r,s]);const c=Ge(this.proxy,n);return c===null?(console.error(`${n} component not found api function`),{totalSize:0,page:[]}):(Ve(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:{...Qn},emits:["change","update:modelValue","update:text","loaded-data","update:visible"],setup(d,{slots:h}){const{emitEvent:S}=ht(),{toLocaleRefs:y}=re.useFoxI18n(n),k=y(d,["title","loadText","loadMoreText","seachPlaceholder","confirmText"]),b=Wm(),f=t.ref([]),u=t.ref(0),g=t.ref(""),w=t.shallowRef(null),T=t.computed(()=>{const K={};return d.params&&Object.assign(K,d.params),ue(g.value)||(K[`${d.searchKey}`]=g.value),w.value&&Object.assign(K,w.value),K});let C=!0;const A=async(K,H,Z)=>{try{if($.value===!1)return;let G=null;ue(g.value)||(G=F=>{const te=Gn(d,F);if(typeof te=="string"&&te.includes(g.value))return!0;const ne=ws(d,F);return!!(typeof ne=="string"&&ne.includes(g.value))});const _=await b.load("actionsheet",K,H,Z,T.value,C,G??void 0);C=!1,Array.isArray(_)?(f.value=_,u.value=1,$.value=!1):!Array.isArray(_.page)||_.page.length===0?(console.warn("[FoxUI] can not load more data"),$.value=!1):(Reflect.apply([].push,f.value,_.page),u.value=Math.ceil(f.value.length/d.pageSize),(_.totalSize&&f.value.length>=_.totalSize||Z<_.page.length)&&($.value=!1)),V.value=!1}catch(G){console.error("[FoxUI] ActionSheet load more data fail",G),$.value=!0,u.value=0,f.value=[]}setTimeout(()=>{S("loaded-data")},250)},V=t.ref(!1),$=t.ref(!0),E=async()=>{if(!d.source){V.value=!1;return}await A(d.source,u.value+1,d.pageSize)};t.watch(()=>g.value,(K,H)=>{ue(K)&&!ue(H)&&E()});const B=()=>{$.value=!0,u.value=0,f.value=[],d.source&&E()};t.watch([()=>d.source,()=>d.pageSize,()=>d.params],async([K,H,Z])=>{d.source&&B()},{immediate:!0});const P=t.computed(()=>!d.multiple&&d.isAutoBackFill),L=t.ref([]);let D=null;const I=t.ref(d.visible);t.watch(()=>d.visible,K=>{I.value!==K&&(I.value=K),K?D=[...L.value]:D=null});const U=(K,H)=>{const Z=[];return Array.isArray(K)||(K=[K]),K.forEach(G=>{let _=Km(d,H,G,d.valueType);_!==-1&&Z.push(_)}),Me(Z,L.value)?!1:(L.value=Z,!0)};t.watch([()=>d.modelValue,()=>f.value],([K,H],[Z,G])=>{if(U(K,H)){const F=q();Y(F)}},{deep:!0});const q=()=>{const K=[],H=[],Z=[];for(let te of L.value){const ne=f.value[te];H.push(ne);const se=Gn(d,ne);if(Z.push(se),d.valueType==="item")K.push(ne);else if(d.valueType==="text")K.push(se);else{const de=Ns(d,ne);K.push(de)}}let G=null,_=null,F=null;return d.multiple?(G=K,_=Z,F=H):(G=K[0]??null,_=Z[0]??null,F=H[0]??null),{value:G,text:_,item:F}},Y=K=>{S("update:modelValue",K.value),S("update:text",K.text),S("change",K.value,K.item,K.text)},j=()=>{D&&(L.value=D)},J=K=>{const H=L.value.indexOf(K);d.multiple?H===-1?L.value.push(K):L.value.splice(H,1):H===-1?L.value=[K]:L.value=[],(P.value||!d.poppable&&!d.showFooter)&&v()},ee=K=>{I.value=K,S("update:visible",K)},W=()=>{const K=()=>{j(),ee(!1)},H=d.beforeMethod??d.beforeClose;if(typeof H=="function"){const Z=H("close");dt(Z)?Z.then(G=>{G!==!1&&K()}).catch(()=>{K()}):Z!==!1&&K()}else K()},v=()=>{const K=q(),H=()=>{Y(K),ee(!1)},Z=d.beforeMethod??d.beforeClose;if(typeof Z=="function"){const G=Z("confirm",K.value,K.item,K.text);dt(G)?G.then(_=>{_!==!1&&H()}).catch(()=>{H()}):G!==!1&&H()}else H()},z=()=>{let K=k.title.value??"";h.title&&(K=h.title());const H=t.h("view",{class:["fox-actionsheet__header-title"]},[K]),Z=t.h(c,{class:["fox-actionsheet__header-icon"],onClick:W});return t.h("view",{class:["fox-actionsheet__header"]},[H,Z])},x=()=>{let K=null;if(h.search)K=h.search();else{const H={onSearch:B,placeholder:k.seachPlaceholder.value,disabled:d.disabled,modelValue:g.value,"onUpdate:modelValue":Z=>{g.value=Z}};K=t.h(r,H,{leftin:()=>t.h(m)})}return t.h("view",{class:["fox-actionsheet__searchbar"]},[K])},R=(K,H,Z,G,_)=>{if(h.optionLabel)return h.optionLabel({text:K,checked:H,disabled:Z,subText:G,item:_});const F=[],te=t.h("view",{class:"fox-actionsheet__list-item-text"},[K]);if(F.push(te),G){const ne=t.h("view",{class:"fox-actionsheet__list-item-subtext"},[G]);F.push(ne)}return t.h("view",{class:["fox-actionsheet__list-item-label"]},F)},M=(K,H,Z,G)=>{if(h.optionIcon)return h.optionIcon({checked:K,disabled:H,iconSize:Z,item:G});if(K){if(h.checkedIcon)return h.checkedIcon({disabled:H,item:G});{const _=d.checkedIcon??i;return t.h(_,{width:Z,height:Z,class:["fox-actionsheet__list-item-icon"]})}}else{if(h.icon)return h.icon({disabled:H,item:G});{const _=d.icon??s;return t.h(_,{width:Z,height:Z,class:["fox-actionsheet__list-item-icon"]})}}},O=()=>{const K=[];for(let H=0;H<f.value.length;H++){const Z=f.value[H],G=Gn(d,Z),_=ws(d,Z),F=["fox-actionsheet__list-item"],te={};let ne=Um(d,Z),se=d.iconSize?ce(d.iconSize):null;const de=Hm(d,Z,H);de&&(ne=ne||de.disabled,de.class&&F.push(de.class),de.style&&Object.assign(te,de.style)),ne=!!(d.disabled||ne);const xe=L.value.includes(H);ne&&F.push("is-disabled"),xe&&F.push("is-checked");const ve={class:F,style:te,key:`${H}`,onClick:()=>{ne||J(H)}};let et=[];if(h.option)et.push(h.option({item:Z,checked:xe,disabled:ne}));else{const tA=R(G,xe,ne,_,Z);et.push(tA);const nA=M(xe,ne,se,Z);et.push(nA),d.textPosition==="right"&&et.reverse()}const Pa=t.h("view",ve,et);K.push(Pa)}return K},X=()=>{let K=[];if(h.buttons)K=h.buttons();else{const Z=t.h(l,{type:"primary",block:"block",onClick:v,disabled:d.disabled},{default:()=>k.confirmText.value});K.push(Z)}return t.h("view",{class:"fox-actionsheet__footer"},[K])};return Ee({search:async(K=null,H=!0)=>{w.value=K&&t.toRaw(K),t.triggerRef(w),H&&($.value=!0,u.value=0,f.value=[]),t.nextTick(()=>{E()})},clear:()=>{$.value=!0,u.value=0,f.value=[]},confirm:()=>{v()},cancel:()=>{W()}}),()=>{const K=[];if(d.showHeader){const se=z();K.push(se)}if(d.showSearchbar){const se=x();K.push(se)}let H=null;if(h.content)H=h.content();else{const se=O(),de={hasMore:$.value,loadText:k.loadText.value,loadMoreText:k.loadMoreText.value,modelValue:V.value,"onUpdate:modelValue":xe=>{V.value=xe},onLoadMore:E};H=t.h(o,de,{default:()=>se})}const Z={};d.optionsHeight&&(Z.height=d.optionsHeight);const G={"fox-actionsheet__list":!0};d.poppable||(G["fox-actionsheet__list--inner"]=!0);const _=t.h("view",{class:G,style:Z},[H]);if(K.push(_),d.showFooter&&!P.value){const se=X();K.push(se)}const F=t.h("view",{class:"fox-actionsheet"},K);if(!d.poppable)return F;const te=["fox-actionsheet__popup"];d.popClass&&te.push(d.popClass);const ne={popClass:te.join(" "),visible:I.value,closeable:!1,"onUpdate:visible":ee,position:d.position,round:"round",onClickOverlay:W,closeOnClickOverlay:d.closeOnClickOverlay};return t.h(a,ne,{default:()=>F})}}}}const{componentName:Xm,create:Qm,scope:Gm}=Q("actionsheet-pane"),Zn=Qm(Ym(Xm,Gm,fe,Yn,Pe,Xn,le.CheckNormal,le.Checked,le.Close,le.Search2)),Bs={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:{...pe,...ye,...Bs,...Qn},emits:["change","update:modelValue","blur","focus","clear","update:text","setValue"],setup(i,c){const m=Ae(t.computed(()=>i.disabled)),p=$e(t.computed(()=>i.readonly)),{emitEvent:d}=Be({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),S=h(i,["placeholder"]),y=t.ref(!1),k=Ie(i,"modelValue",null,d),b=t.ref(""),f=t.computed(()=>Array.isArray(b.value)?b.value.join(i.separator):b.value),u="fox-input-item",g=t.computed(()=>({[u]:!0,"is-disabled":m.value,"is-readonly":p.value})),w=Te(t.computed(()=>i.textAlign),"textAlign"),T=t.computed(()=>{const x={};return w.value&&(x["text-align"]=w.value),x}),C=t.ref(!1),A=()=>{C.value=!0},V=x=>{C.value=x},$=x=>{k.value=x,d("update:modelValue",x)},E=(x,R)=>{d("change",x,R)},B=x=>{let M=x.target.value;y.value=!0,d("focus",M,x)},P=x=>{setTimeout(()=>{y.value=!1},0);let M=x.target.value;i.maxLength&&M.length>Number(i.maxLength)&&(M=M.slice(0,Number(i.maxLength))),d("blur",M,x)},L=x=>{b.value=x,d("update:text",x)},D=t.computed(()=>({[`${u}__append`]:!0,"is-disabled":m.value,"is-readonly":p.value})),I=t.computed(()=>be(i.unit)>0),U=t.computed(()=>be(i.unit)>0&&!y.value),q=t.computed(()=>({hidden:!U.value})),Y=x=>{k.value="",d("update:modelValue","",x),d("change","",x),d("clear","")},j=t.computed(()=>i.clearable&&!m.value&&!p.value),J=t.computed(()=>be(k.value)>0&&y.value),ee=x=>{J.value?Y(x):A()},W=t.computed(()=>J.value&&j.value?o:l),v=t.computed(()=>({action:!0})),z=t.ref(null);return Ee({search:x=>{z.value&&z.value.search(x)},clear:()=>{z.value&&z.value.clear},confirm:x=>{z.value&&z.value.confirm()},cancel:()=>{z.value&&z.value.cancel()}}),()=>{const x={class:g.value,style:T.value,type:"text",maxlength:i.maxLength,placeholder:S.placeholder.value,readonly:!0,unselectable:"on",value:f.value,onClick:A,onFocus:B,onBlur:P};s&&(x.disabled=!0);const R=[],M=t.h("input",x);R.push(M);const O=[],X={class:["action-icon"]},K=t.h(W.value,X),H={class:v.value,onClick:ee},Z=t.h("view",H,{default:()=>[K]});if(O.push(Z),I.value){const ve=t.h("view",{class:q.value},[i.unit]);O.push(ve)}const G={class:D.value},_=t.h("view",G,{default:()=>O});R.push(_);const F={default:()=>R};F.label=c.slots.default,F.prepend=c.slots.prepend,F.append=c.slots.append,F.fixedPreTip=c.slots.fixedPreTip,F.fixedTip=c.slots.fixedTip;const te=ke(i,Qn);te.ref=z,te.class=i.actionsheetProps,te.disabled=m.value||p.value,te.visible=C.value,te["onUpdate:visible"]=V,te.modelValue=k.value,te["onUpdate:modelValue"]=$,te.text=b.value,te["onUpdate:text"]=L,te.onChange=E,te.poppable=!0,te["text-position"]=i.textPosition;const ne={title:c.slots.title,search:c.slots.search,option:c.slots.option,optionLabel:c.slots.optionLabel,optionIcon:c.slots.optionIcon,buttons:c.slots.buttons},se=t.h(r,te,ne);F.hide=()=>[se];const de=ut(i,Bs,Qn);return t.h(a,{...de,prop:`${i.prop}_item`},F)}}}}const{componentName:Jm,create:_m,scope:ep}=Q("actionsheet-item"),sl=_m(Zm(Jm,ep,we,le.CircleClose,le.ArrowRight,Zn)),il={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}=Q("input-number"),op=np({components:{Minus:le.Minus,Plus:le.Plus},props:{...il},emits:["update:modelValue","change","blur","focus","reduce","add","overlimit"],setup(e,{emit:n}){const a=t.computed(()=>{const S=tp;return{[S]:!0,[`${S}--disabled`]:e.disabled}}),o=S=>Number(S).toFixed(Number(e.decimalPlaces)),l=S=>{const y=S.target;n("update:modelValue",y.valueAsNumber,S)},r=(S,y)=>{let k=o(S);n("update:modelValue",k,y),n("change",k,y)},s=(S=Number(e.modelValue))=>S<Number(e.max)&&!e.disabled,i=(S=Number(e.modelValue))=>S>Number(e.min)&&!e.disabled,c=S=>{if(n("reduce",S),i()){let y=Number(e.modelValue)-Number(e.step);r(y,S)}else n("overlimit",S,"reduce")},m=S=>{if(n("add",S),s()){let y=Number(e.modelValue)+Number(e.step);r(y,S)}else n("overlimit",S,"add")},p=S=>{e.disabled||e.readonly||n("focus",S)},d=S=>{if(e.disabled||e.readonly)return;let k=S.target.valueAsNumber;k<Number(e.min)?k=Number(e.min):k>Number(e.max)&&(k=Number(e.max)),r(k,S),n("blur",S)},h=S=>{let y=Number(S);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 S=h(e.modelValue);S!==Number(e.modelValue)&&r(S,{})}),{classes:a,change:l,blur:d,focus:p,add:m,addAllow:s,reduce:c,reduceAllow:i,toPxDesc:ge}}}),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 _e=oe(op,[["render",ap]]);function rp(e,n,a,o){return{props:{...pe,...ye,...il},emits:["change","update:modelValue","setValue"],setup(l,r){const s=Ae(t.computed(()=>l.disabled)),i=$e(t.computed(()=>l.readonly)),{emitEvent:c}=Be({componentName:e,validateCheckEvents:["blur","update:modelValue"],validateResetEvents:["focus","setValue"],get validate(){return!s.value&&!i.value}},l.prop??r.attrs.name),m=e,p=Ie(l,"modelValue",null,c),d=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={...ke(l,il),disabled:s.value,readonly:i.value,value:p.value,"onUpdate:modelValue":d},k=t.h(o,y,h),b=[];b.push(k);const f={default:()=>b};f.label=r.slots.default,f.fixedPreTip=r.slots.fixedPreTip,f.fixedTip=r.slots.fixedTip;const u=ke(l,ye,pe);return u["content-class"]=m,t.h(a,{...u,prop:`${l.prop}_item`},f)}}}}const{componentName:sp,create:ip,scope:cp}=Q("inputnumber-item"),cl=ip(rp(sp,cp,we,_e)),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 up(e,n){return typeof e.textKey=="string"&&e.textKey.length>0?n[e.textKey]:n.text}function As(e,n){return typeof e.valueKey=="string"&&e.valueKey.length>0?n[e.valueKey]:n.value}function Ts(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 dl(e,n){return typeof e.statusKey=="string"&&e.statusKey.length>0?n[e.statusKey]:n.statusKey??null}function Vs(e,n){return typeof e.doitKey=="string"&&e.doitKey.length>0?n[e.doitKey]:n.doitKey??null}function $s(e,n){return typeof e.labelKey=="string"&&e.labelKey.length>0?n[e.labelKey]:n.labelKey??null}function ul(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=Ge(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ve(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:{...dp},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(v=>fp(l,v)!==!1)),d=t.ref(-1),h=()=>{const v=l.modelValue,z=p.value.findIndex(x=>As(l,x)===v);d.value!==z&&(d.value=z,l.scroll&&ee(z,!1))};t.watch([()=>l.modelValue,p],()=>{h()});const S=v=>d.value===v,y=v=>{if(v<0&&v>=p.value.length)return!1;const z=p.value[v],R=(ul(l,z,v)??{}).status??dl(l,z);return S(v)||R},k=t.computed(()=>{const v={[i]:!0};return l.mode?v[`is-${l.mode}`]=!0:l.direction&&(v[`is-${l.direction}`]=!0),l.scroll&&(v["is-scroll"]=!0),v}),b=t.computed(()=>({})),f=(v,z,x,R,M)=>{const O={[`${i}__step`]:!0};return M&&(O[`${M}`]=!0),O[`${u.value}`]=!0,R&&(O["is-doit"]=!0),v===d.value?O["is-active"]=!0:z==="done"?O["is-done"]=!0:z==="error"?O["is-error"]=!0:z==="half"?O["is-half"]=!0:x?O["is-disabled"]=!0:O["is-normal"]=!0,O},u=t.computed(()=>{if(l.mode==="simple")return"start";let v=l.align;return v||(l.direction==="vertical"?v="start":v="center"),v}),g=(v,z={})=>{const x={...z};return u.value==="start"&&v===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},w=(v,z)=>{let x={};if(z<p.value.length-1){const R=z+1;y(z)&&y(R)?l.direction==="vertical"?x.height="100%":x.width="100%":x.opacity="0"}return x},T=v=>p.value.length-1===v,C=(v,z)=>{if(l.clickNavigatePolicy==="disabled"||(l.clickNavigatePolicy==="only-back"||l.clickNavigatePolicy==="only-back-reset")&&z>d.value||d.value===z)return;const x=d.value,R=z;d.value=z,l.scroll&&ee(z,!1);const M=As(l,v);s("update:modelValue",M);const O={fromIndex:x,currentIndex:R,item:v,items:p.value,clickNavigatePolicy:l.clickNavigatePolicy};s("change",M,O)},A=t.ref(!0),V=async(v,z)=>{try{const x=await c.load("stesbar",v,z);Array.isArray(x)&&(m.value=x),A.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([v,z])=>{v&&V(v,z)},{immediate:!0});const $=(v,z,x,R,M)=>{let O=null;if(r.icon)O=r.icon({item:v,index:z,status:R});else if(R==="done"){const K={};l.iconSize&&(K.width=l.iconSize,K.height=l.iconSize);const H=l.icon??a;O=t.h(H,K)}else{const K=x??`${z+1}`;O=t.h("span",{},[K])}const X={class:"fox-steps-bar__icon",onClick:()=>{M||C(v,z)}};return t.h("view",X,[O])},E=(v,z,x)=>{const R=t.h("i",{class:"fox-steps-bar__line-inner",style:w(v,z)});return t.h("view",{class:"fox-steps-bar__line"},[R])},B=()=>{let v=null;if(r.markIcon)v=r.markIcon();else{const x={};l.iconSize&&(x.width=l.markIconSize,x.height=l.markIconSize);const R=l.markIcon??o;v=t.h(R,x)}return t.h("view",{class:"fox-steps-bar__mark"},[v])},P=(v,z,x,R,M)=>{const O=[];if(!T(z)){const H=E(v,z);O.push(H)}const X=$(v,z,x,R,M);O.push(X);const K={class:"fox-steps-bar__head"};return t.h("view",K,O)},L=(v,z,x,R)=>{let M=null;r.main?M=r.main({item:v,index:z,status:x}):M=up(l,v);const O={class:"fox-steps-bar__main",onClick:()=>{R||C(v,z)}};return t.h("view",O,[M])},D=(v,z,x)=>{let R=null;if(r.sub){R=r.sub({item:v,index:z,status:x});const M={class:"fox-steps-bar__sub"};return t.h("view",M,[R])}return null},I=(v,z)=>{const x=ul(l,v,z)??{},R=x.status??dl(l,v);let M=Ts(l,v);x.disabled===!0&&(M=!0),l.disabled===!0&&(M=!0);const O=x.label??$s(l,v),X=[],K=$(v,z,O,R,M);K&&X.push(K);const H=L(v,z,R,M);if(H&&X.push(H),!T(z)){const ne=E(v,z);ne&&X.push(ne)}const Z=t.h("view",{class:"fox-steps-bar__head"},X),G=x.class,_=x.style??{};let F=Vs(l,v);x.doit===!0&&(F=!0);const te={ref:J(z),class:f(z,R,M,F,G),style:g(z,_)};return t.h("view",te,[Z])},U=(v,z)=>{const x=ul(l,v,z)??{},R=x.status??dl(l,v);let M=Ts(l,v);x.disabled===!0&&(M=!0),l.disabled===!0&&(M=!0);const O=x.label??$s(l,v),X=[],K=l.layout;for(let F of K)if(F==="head"){const te=P(v,z,O,R,M);X.push(te)}else if(F==="main"){const te=L(v,z,R,M);X.push(te)}else if(F==="sub"){const te=D(v,z,R);X.push(te)}else if(F==="mark"){const te=B();X.push(te)}const H=x.class,Z=x.style??{};let G=Vs(l,v);x.doit===!0&&(G=!0);const _={ref:J(z),class:f(z,R,M,G,H),style:g(z,Z)};return t.h("view",_,X)},q=t.ref(),Y=t.ref([]),j=(v,z)=>{Y.value[z]=v},J=v=>z=>{j(z,v)},ee=(v,z)=>{const x=q.value,R=Y.value;if(!x||!R||!R[v])return;const M=R[v];let O=0;l.direction==="vertical"?O=M.offsetTop-(x.offsetHeight-M.offsetHeight)/2:O=M.offsetLeft-(x.offsetWidth-M.offsetWidth)/2,W(x,O,z?0:.3,l.direction)},W=(v,z,x,R)=>{let M=0;const O=R==="horizontal"?v.scrollLeft:v.scrollTop,X=x===0?1:Math.round(x*1e3/16);function K(){R==="horizontal"?v.scrollLeft+=(z-O)/X:v.scrollTop+=(z-O)/X,++M<X&&Oe(K)}K()};return()=>{const v=[];if(l.mode==="simple")for(let x=0;x<p.value.length;x++){const R=p.value[x],M=I(R,x);v.push(M)}else for(let x=0;x<p.value.length;x++){const R=p.value[x],M=U(R,x);v.push(M)}const z={ref:q,class:k.value,style:b.value};return t.h("view",z,v)}}}}const{componentName:gp,create:yp,scope:bp}=Q("steps-bar"),fl=yp(hp(gp,bp,le.Checklist,le.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=Fo()}open(n){Array.isArray(n)||(n=[n]),this.els=n;const a=Ro(),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 u=[`${e}`];return l.customClass&&u.push(l.customClass),u}),m=t.computed(()=>{const u={};return ue(i.top)||(u.top=i.top),ue(i.right)||(u.right=i.right),ue(i.bottom)||(u.bottom=i.bottom),ue(i.left)||(u.left=i.left),ue(l.width)||(u.width=l.width),ue(l.height)||(u.height=l.height),ue(l.color)||(u.color=l.color),ue(l.background)||(u.background=l.background),ue(l.borderRadius)||(u["border-radius"]=l.borderRadius),u}),p=t.computed(()=>({[`${e}__icon`]:!0})),d=()=>{s("click")},h=t.ref(null),S=()=>{i.top=null,i.right=null,i.bottom=null,i.left=null},y={x:0,y:0},f=Cp(u=>{if(!h.value)return;const g=h.value;S(),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},u=>{if(!h.value)return;const g=h.value;S(),i.left=y.x+u.x,i.top=y.y+u.y,g.style.left=`${i.left}px`,g.style.top=`${i.top}px`});return t.onMounted(()=>{if(l.draggable&&h.value){const u=[h.value];f.open(u)}}),t.onBeforeUnmount(()=>{l.draggable&&h.value&&f.close()}),()=>{let u=[];const g=typeof r.default=="function"?r.default():[];if(g&&g.length>0)u=g;else{const T=t.h(a,{class:p.value});u.push(T)}const w={ref:T=>{h.value=T},class:c.value,style:m.value,onClick:d};return t.h("view",w,u)}}}),{componentName:Bp,create:Ap,scope:Tp}=Q("floating-button"),ml=Ap(Np(Bp,Tp,le.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 $p(e,n,a){return{props:{...Vp},emits:["click","update:modelValue"],setup(o,{emit:l}){const r=t.computed(()=>{const d={[`${e}`]:!0};return o.disabled?d[`${e}--disabled`]=!0:d[`${e}--${o.type}`]=!0,d}),s=Ie(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 d=[];if(i.value){const b={class:c.value},f=t.h("span",b,[i.value]);d.push(f)}const h={class:m.value},S=o.icon??a,y=t.h(S,h);return d.push(y),o.textPosition==="right"&&d.reverse(),t.h("view",{class:r.value,onClick:p},d)}}}}const{componentName:Ep,create:Dp,scope:Ip}=Q("more-button"),pl=Dp($p(Ep,Ip,le.RectUp)),xp={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 vp(e,n,a){return{props:{...xp},setup(o,{attrs:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["confirmText","cancelText"]),c=e,m=t.ref(!0),p=w=>{m.value=w},d=w=>{if(typeof o.unmount=="function")try{o.unmount()}catch(T){console.error(T)}if(typeof o.callback=="function")try{o.callback(w)}catch(T){console.error(T)}},h=()=>{d("confirm")},S=()=>{d("cancel")},y=()=>{o.closeOnClickOverlay!==!1&&d("close")},k=(w,T)=>qp(w)?(T.src=w,t.h("img",T)):typeof w=="string"?(Array.isArray(T.class)?T.class.push(w):T.class&&typeof T.class=="object"?T[`${w}`]=!0:typeof T.class=="string"?T.class=`${T.class}, ${w}`:T.class=w,t.h(o.tag,T)):t.h(w,T),b=()=>{const w=[];if(o.icon){const C={class:[`${c}__header-icon`]},A=k(o.icon,C);w.push(A)}if(o.title){const C=t.h("view",{class:`${c}__header-title`},[o.title]);w.push(C)}if(o.showClose&&o.closeIcon){const C={class:[`${c}__header-close-icon`],onClick:y},A=k(o.closeIcon,C);w.push(A)}const T={class:[`${c}__header`]};return t.h("view",T,w)},f=(w,T)=>{const C=[];if(T){const V={class:`${c}__group-title`},$=t.h("view",V,[T]);C.push($)}if(w){const V=[];Array.isArray(w)||(w=[w]);for(let $ of w){const E={class:`${c}__group-row`,innerHTML:$},B=t.h("view",E);V.push(B)}if(V.length>0){const $={class:`${c}__group-rows`},E=t.h("view",$,V);C.push(E)}}if(C.length===0)return null;const A={class:`${c}__group`};return t.h("view",A,C)},u=()=>{const w=[];if(typeof o.message=="string")w.push(o.message);else if(Array.isArray(o.message))for(let C of o.message)if(typeof C=="string"){const A=f(C);w.push(A)}else{const A=f(C.content,C.title);w.push(A)}else if(typeof o.message=="function"){const C=o.message();w.push(C)}else{const C=o.message;w.push(C)}const T={class:`${c}__body`};return t.h("view",T,w)},g=()=>{const w=[];if(o.showCancelButton){const C={class:[`${c}__footer-button`],style:{},onClick:S};o.cancelButtonClass&&C.class.push(o.cancelButtonClass),o.cancleButtonStyle&&typeof o.cancleButtonStyle=="object"&&Object.assign(C.style,o.cancleButtonStyle);const A=t.h("button",C,[o.cancelButtonText??i.cancelText.value]);w.push(A)}if(o.showConfirmButton){const C={class:[`${c}__footer-button`],style:{},onClick:h};o.confirmButtonClass&&C.class.push(o.confirmButtonClass),o.confirmButtonStyle&&typeof o.confirmButtonStyle=="object"&&Object.assign(C.style,o.confirmButtonStyle);const A=t.h("button",C,[o.confirmButtonText??i.confirmText.value]);w.push(A)}if(w.length===0)return null;const T={class:`${c}__footer`};return t.h("view",T,w)};return()=>{const w=[],T=b();T&&w.push(T);const C=u();C&&w.push(C);const A=g();A&&w.push(A);const V={class:{[`${c}`]:!0,[`${c}--${o.type||"info"}`]:!0}},$=t.h("view",V,w),E=[`${c}__popup`];o.popClass&&E.push(o.popClass);const B={};o.width&&(B.width=typeof o.width=="number"?`${o.width}px`:o.width),o.height&&(B.height=typeof o.height=="number"?`${o.height}px`:o.height);const P={popClass:E.join(" "),style:B,visible:m.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":p,position:o.position,round:"round",onClickOverlay:y,closeOnClickOverlay:o.closeOnClickOverlay};return t.h(a,P,{default:()=>$})}}}}const{componentName:Mp,create:Pp,scope:Lp}=Q("messagebox"),zp=Pp(vp(Mp,Lp,fe)),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 Vn,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)},ct={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=le.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)=>ct.show("alert",e,n,a),confirm:(e,n,a)=>ct.show("confirm",e,n,a),install(e){e.config.globalProperties.$alert=ct.alert,e.config.globalProperties.$confirm=ct.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 Vn,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=C=>(typeof c.beforeClose=="function"&&c.beforeClose(),!1),p=()=>{m()},d=e,h=C=>{S.value=C,i("update:visible",C)},S=t.ref(!1),y=(C,A)=>Xp(C)?(A.src=C,t.h("img",A)):typeof C=="string"?(Array.isArray(A.class)?A.class.push(C):A.class&&typeof A.class=="object"?A[`${C}`]=!0:typeof A.class=="string"?A.class=`${A.class}, ${C}`:A.class=C,t.h(l.tag,A)):t.h(C,A),k=()=>{if(!l.showHeader)return null;const C=[];if(s.header){const V=s.header();C.push(V)}else if(l.title){const V=t.h("view",{class:`${d}__header-title`},[l.title]);C.push(V)}if(C.length===0)return null;const A={class:[`${d}__header`]};return t.h("view",A,C)},b=()=>{if(!l.showClose)return null;const C={class:[`${d}__close-icon`],onClick:p},A=l.closeIcon??o;return y(A,C)};let f=null;const u=C=>{Wp(_p,{},f)},g=Qp(e),w=()=>{h(!0)},T=()=>{if(!f)return;const C=f.querySelector(".fox-overlay");C&&(C.classList.add("overlay-fade-leave-active"),C.classList.add("overlay-fade-leave-to"));const A=f.querySelector(".fox-popup");A&&(A.classList.add(`fox-popup-slide-${l.position}-leave-active`),A.classList.add(`fox-popup-slide-${l.position}-leave-to`),A.addEventListener("animationend",u,{once:!0}),A.addEventListener("transitionend",u,{once:!0})),document.body.classList.remove("fox-overflow-hidden")};return t.onMounted(()=>{f=document.querySelector(`.${g}`),f?.addEventListener(Jp,T,{once:!0}),w()}),()=>{const C=[],A=k();A&&C.push(A);const V=b();V&&C.push(V);const $=s.default?s.default():[];Reflect.apply([].push,C,$);const E={[`${d}`]:!0};l.mode&&(E[`${d}--${l.mode}`]=!0);const B={class:E},P=t.h("view",B,C),L=[`${d}__popup`,g];l.popClass&&L.push(l.popClass),l.position&&L.push(`${d}__popup--${l.position}`);const D={};l.width&&(D.width=typeof l.width=="number"?`${l.width}px`:l.width),l.height&&(D.height=typeof l.height=="number"?`${l.height}px`:l.height);const U={...ke(l,ze),popClass:L.join(" "),style:D,visible:S.value,teleportDisable:!0,closeable:!1,position:l.position,closeOnClickOverlay:l.closeOnClickOverlay,onClickOverlay:p,"onUpdate:visible":h},q=t.h(a,U,{default:()=>P});return t.h("div",{class:[`${d}__root`,g]},[q])}}}}const{componentName:nh,create:oh,scope:lh}=Q("popup-wrapper"),hl=oh(th(nh,lh,fe,le.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),d={class:`${e}`};return t.h("view",d,[p])}}}}const{componentName:sh,create:ih,scope:ch}=Q("dropdown"),gl=ih(rh(sh,ch,fe));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 uh={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:{...uh},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={},w=l.textColor??l.color;return w&&(g.color=w),g}),m=(g,w)=>{let T=null;if(typeof l.highlightFilter=="string"&&l.highlightFilter.length>0){const C=l.highlightFilter;if(g.indexOf(C)!==-1){const V=g.replace(new RegExp(C,"g"),`<span>${C}</span>`);w.innerHTML=V,w.class["is-highlight"]=!0,T=t.h(l.tag,w)}}else if(typeof l.highlightFilter=="function"){const C=l.highlightFilter(g);C&&(w.innerHTML=C,w.class["is-highlight"]=!0,T=t.h(l.tag,w))}return T},p=g=>{r.emit("click",g)};let d="";const h=()=>{const g=s.value;if(!g)return;const w=g.clientWidth;dh(g,T=>{const C=g.innerHTML??"";ue(C)||T<w||(d?a?.show(g,C,{type:"text",id:d,showArrow:l.showArrow},!0):d=a?.show(g,C,{type:"text",showArrow:l.showArrow},!0)??"")})},S=()=>{d&&a?.hide(d)};let y=null;const k=g=>{y||(y=setTimeout(()=>{h(),y=null},l.showAfter??0))},b=g=>{y&&(clearTimeout(y),y=null),setTimeout(()=>{S()},l.hideAfter??0)},f=()=>{const g=s.value;g&&(g.addEventListener("mouseover",k),g.addEventListener("mouseleave",b))},u=()=>{const g=s.value;g&&(g.removeEventListener("mouseover",k),g.removeEventListener("mouseleave",b))};return t.onMounted(()=>{!he(l.showOverflowTooltip)||!a||f()}),t.onBeforeUnmount(()=>{!he(l.showOverflowTooltip)||!a||u()}),()=>{const g={onClick:p,class:i.value,style:c.value,ref:s};let w=null;if(he(l.numberFormat)&&typeof r.slots.default=="function"){const V=r.slots.default();if(Array.isArray(V)&&V.length===1){const $=V[0].type.toString();if($==="Symbol(Text)"||$==="Symbol(v-txt)"){const E=me(l.digits),B=me(l.decimalLength),P=he(l.autoPadding);let L=`${V[0].children}`,D=L.split("").reverse().join("");D=tn(D,B,P,E,l.separator),L=D.split("").reverse().join(""),l.highlightFilter!==void 0&&(w=m(L,g)),w||(g.innerHTML=L,w=t.h(l.tag,g))}}}else{if(l.highlightFilter!==void 0&&typeof r.slots.default=="function"){const V=r.slots.default();if(Array.isArray(V)&&V.length===1){const $=V[0].type.toString();if($==="Symbol(Text)"||$==="Symbol(v-txt)"){const E=`${V[0].children}`;w=m(E,g),w||(g.innerHTML=E,w=t.h(l.tag,g))}}}w||(w=t.h(l.tag,g,{default:r.slots.default}))}if(!l.mark&&!l.icon&&!r.slots.mark)return w;let C=null;if(l.icon){const V={[`${e}__mark-wrap`]:!0};l.type&&(V[`${e}__mark-wrap--${l.type}`]=!0);const $={},E=l.color;E&&($.color=E);const B={class:V,style:$};C=t.h("view",B,t.h(l.icon))}else if(r.slots.mark){const V={[`${e}__mark-wrap`]:!0};l.type&&(V[`${e}__mark-wrap--${l.type}`]=!0);const $={},E=l.color;E&&($.color=E);const B={class:V,style:$};C=t.h("view",B,{default:r.slots.mark})}else{const V={[`${e}__mark`]:!0};l.type&&(V[`${e}__mark--${l.type??"default"}`]=!0);const $={},E=l.color;E&&($["background-color"]=E);const B={class:V,style:$};C=t.h("view",B)}const A={class:{"fox-text__wrap":!0,"text-left":l.textPosition==="left","text-right":l.textPosition==="right"}};return t.h("view",A,[C,w])}}}}const{componentName:mh,create:ph,scope:hh}=Q("text"),yl=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],d=c.find(h=>h[o]===p);if(!d)break;s.push(d[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 d=m.find(h=>h[o]===p);if(!d)break;s.push(d[a])}else{let c=n;for(let m=0;c&&m<r.length;m++){let p=r[m],d=c.find(h=>h[o]===p);if(!d)break;s.push(d[a]),c=d[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=Ge(this.proxy,n);return l===null?(console.error(`${n} component not found api function`),[]):(Ve(o)&&t.isReactive(o)&&(o=t.toRaw(o)),await l(a,o))}}function bh(){const e=t.getCurrentInstance();return new yh(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,d])=>{i.value=await s.load(o.sourceType,p,d)},{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:Ch,create:wh,scope:Nh}=Q("mapping"),bl=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 ur(a.name,()=>a.config),()=>typeof o.default=="function"?o.default():null}}}const{componentName:sA,create:Ah,scope:iA}=Q("domain-provider"),kl=Ah(Bh()),Th={initialVisibleObserverSize:{type:[Number],required:!1},initialInvisibleObserverHeight:{type:[String],required:!1,default:"250px"},disabled:{type:[Boolean],required:!1},loadPolicy:{type:[String],required:!1,default:"rolling"},rootMargin:{type:[String],required:!1,default:"250px 0px 250px 0px"},threshold:{type:[Array],required:!1,default:[0,.25]},root:{type:[Object,String]}};function Vh(e,n){return{inheritAttrs:!1,props:Th,setup(a,{slots:o}){if(nt&&window.IntersectionObserver){const l=new WeakMap;let r=new Map;const s=(h,S)=>{if(p===null){r.set(h,{visible:null,callback:S});return}l.has(h)&&p.unobserve(h),l.set(h,{visible:null,callback:S}),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 d=(h,S,y)=>{p=new IntersectionObserver(k=>{for(let b of k){let f=!1;b.intersectionRatio>0&&(f=!0);const u=l.get(b.target);if(u)try{if(a.loadPolicy==="lazy"&&!f&&u.visible!==null)return;u.visible=f,u.callback(f)}catch(g){console.error(g)}}},{root:h,rootMargin:S,threshold:y}),r.forEach((k,b)=>{l.set(b,k),p?.observe(b)}),r.clear()};t.watch([()=>a.root,()=>a.disabled],([h,S])=>{if(S||!h||p)return;let y=null;typeof h=="string"?y=document.querySelector(h):y=h,y&&d(y,a.rootMargin,a.threshold)},{immediate:!0}),t.onUnmounted(()=>{p&&(p.disconnect(),p=null)})}return()=>typeof o.default=="function"?o.default():null}}}const{componentName:cA,create:$h,scope:dA}=Q("rolling-provider"),Sl=$h(Vh()),{componentName:Eh,create:Dh}=Q("cell"),Ih=Dh({components:{Right:le.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:ge(e.roundRadius)}));return{handleClick:r=>{n("click",r)},classes:a,baseStyle:o}}}),xh={key:0,class:"fox-cell__icon"},qh={key:1,class:"fox-cell__title"},vh={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",xh,[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",vh,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=oe(Ih,[["render",Ph]]),{componentName:Lh,create:zh}=Q("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=oe(Fh,[["render",Uh]]),{componentName:Hh,create:jh}=Q("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:le.Image,ImageError:le.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 S=Hh;return{[S]:!0,[`${S}-round`]:e.round}}),l=t.ref(null),r=t.ref(!1),s=t.ref(null),i=()=>{const S={threshold:[0],rootMargin:"0px"};l.value=new IntersectionObserver(y=>{y.forEach(k=>{k.isIntersecting&&(r.value=!0,l.value.disconnect())})},S),s.value&&l.value.observe(s.value)};t.onMounted(()=>{e.lazyLoad&&i()}),t.onBeforeUnmount(()=>{l.value&&l.value.disconnect()});const c=t.computed(()=>{let S={};return e.width&&(S.width=ge(e.width)),e.height&&(S.height=ge(e.height)),e.radius!==void 0&&e.radius!==null&&(S.overflow="hidden",S.borderRadius=ge(e.radius)),S}),m=t.computed(()=>({objectFit:e.fit,objectPosition:e.position}));t.watch(()=>e.src,S=>{a.isError=!1,a.loading=!0});const p=()=>{a.loading=!1,n("load")},d=()=>{a.isError=!0,a.loading=!1,n("error")},h=S=>{n("click",S)};return{...t.toRefs(a),imageClick:h,classes:o,styles:m,stylebox:c,error:d,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=oe(Wh,[["render",Gh]]),{create:Zh}=Q("layout"),Bl=Zh({}),{componentName:Jh,create:_h}=Q("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=oe(eg,[["render",tg]]),{componentName:ng,create:og}=Q("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"?`
|
|
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 lg(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.renderSlot(e.$slots,"default")],2)}const Bl=oe(og,[["render",lg]]),{create:ag}=Q("sticky"),rg=ag({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=De(a),d=o.value,h=De(d),k=De(m);l.height=p.height;const y=()=>{let b=!1;if(e.position==="top")b=m?r.value>p.top&&k.bottom>0:r.value>p.top;else{const f=document.documentElement.clientHeight;b=m?k.bottom>0&&f-r.value-h.height>k.top:f-r.value<p.bottom}return b},S=()=>{if(m)if(e.position==="top"){const b=k.bottom-r.value-h.height;return b<0?b:0}else{const b=document.documentElement.clientHeight,f=k.bottom-(b-r.value);return f<0?f:0}return 0};l.transform=S(),l.fixed=y()};return t.watch(()=>l.fixed,m=>{n("change",m)}),t.onMounted(()=>{c(),ll(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{ll(a.value).removeEventListener("scroll",c)}),{rootRef:a,rootStyle:s,stickyRef:o,stickyStyle:i}}});function sg(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 zt=oe(rg,[["render",sg]]),{componentName:ig,create:cg}=Q("divider"),dg=cg({props:{contentPosition:{type:String,default:"center"},dashed:{type:Boolean,default:!1},hairline:{type:Boolean,default:!0},direction:{type:String,default:"horizontal"}},components:{},setup(e,n){return{classes:t.computed(()=>{const o=ig;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 ug(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 Al=oe(dg,[["render",ug]]);function fg(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 mg(e,n,a){const o=fg(e.subTree.children,a);n.sort((l,r)=>o.indexOf(l.vnode)-o.indexOf(r.vnode))}function pg(e,n){const a=t.shallowReactive([]),o=t.getCurrentInstance(),l=i=>{i.proxy&&(a.push(t.markRaw(i)),mg(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:$s}=Q("grid"),Vs=Symbol("grid"),hg={props:{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}},setup(e,{slots:n}){pg(Vs,`${$s}-item`)({props:e});const a=t.computed(()=>{const l=$s;return{[l]:!0,[`${l}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const l={};return e.gutter&&(l.paddingLeft=ge(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:gg}=Q("grid"),Tl=gg(hg);function yg(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:bg,componentName:Es}=Q("grid-item"),kg=bg({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=yg(Vs);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[Es]:!0})),s=t.computed(()=>{const m={flexBasis:`${100/+l.columnNum}%`};return l.square?m.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(m.paddingRight=ge(l.gutter),o.value>=l.columnNum&&(m.marginTop=ge(l.gutter))),m}),i=t.computed(()=>{const m=`${Es}__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)}}}}),Sg={class:"fox-grid-item__text"};function Cg(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",Sg,[e.text?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.text),1)],64)):t.renderSlot(e.$slots,"text",{key:1})])],2)],6)}const $l=oe(kg,[["render",Cg]]),{componentName:wg,create:Ng}=Q("navbar"),Bg=Ng({components:{Left:le.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 b=wg;return{[b]:!0,[`${b}--border`]:a.value,[`${b}--fixed`]:o.value,[`${b}--safe-area-inset-top`]:l.value}}),d=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 S(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:p,styles:d,handleLeft:h,handleCenter:k,handleCenterIcon:y,handleRight:S}}}),Ag={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Tg={key:1,class:"fox-navbar__text"},$g={class:"fox-navbar__title"},Vg={key:0,class:"fox-navbar__text"},Eg={key:1,class:"fox-navbar__text"},Dg={class:"fox-navbar__title"},Ig={key:0,class:"fox-navbar__text"};function xg(e,n,a,o,l,r){const s=t.resolveComponent("Left");return e.fixed&&e.placeholder?(t.openBlock(),t.createElementBlock("view",Ag,[t.createElementVNode("view",{class:t.normalizeClass(e.classes),style:t.normalizeStyle(e.styles),ref:"navBarHtml"},[t.createElementVNode("view",{class:"fox-navbar__left",onClick: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",Vg,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",Eg,t.toDisplayString(e.leftText),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"left")]),t.createElementVNode("view",Dg,[e.title?(t.openBlock(),t.createElementBlock("view",{key:0,class:"title",onClick: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 Vl=oe(Bg,[["render",xg]]),qg=(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:(d=!o.visible)=>{l("update:visible",d)},selected:(d,h)=>{l("selected",{item:d,event:h}),c.value=d.id},current:c}}}),{componentName:vg,create:Mg,scope:Pg}=Q("fixednav"),Lg=Mg(qg(vg,Pg,{[st.name]:st,Left:le.Left})),zg={class:"fox-fixednav__list"},Fg=["onClick"],Rg=["src"],Og={class:"span"},Kg={key:0,class:"b"},Ug={class:"text"};function Hg(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",zg,[(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,Rg),t.createElementVNode("view",Og,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Kg,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Fg))),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",Ug,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const El=oe(Lg,[["render",Hg]]),{componentName:jg,create:Wg}=Q("menu"),Yg=Wg({components:{ArrowUp2:le.ArrowUp2,ArrowDown2:le.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 b=t.reactive([]),f=t.reactive([]);return{children:b,linkChildren:g=>{const w=C=>{C.proxy&&(f.push(C),b.push(C.proxy))},T=C=>{if(C.proxy){let A=f.indexOf(C);A>-1&&f.splice(A,1);let $=b.indexOf(C.proxy);A>-1&&b.splice($,1)}};t.provide("menuParent",Object.assign({removeLink:T,link:w,children:b,internalChildren:f},g))}}},{children:i,linkChildren:c}=s(),m=t.computed(()=>i.some(b=>b.state.showWrapper)),p=t.computed(()=>({[jg]:!0,"scroll-fixed":r.value})),d=()=>{if(o.value){const b=De(o);e.direction==="down"?l.value=b.bottom:l.value=window.innerHeight-b.top}};c({props:e,offset:l});const h=b=>{i.forEach((f,u)=>{u===b?(d(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},k=b=>Math.max(0,"scrollTop"in b?b.scrollTop:b.pageYOffset),y=()=>{const{scrollFixed:b}=e,f=k(window);r.value=f>(typeof b=="boolean"?30:Number(b))},S=b=>{let f="";const{titleClass:u}=e;return b&&(f+="active"),u&&(f+=` ${u}`),f};return t.onMounted(()=>{const{scrollFixed:b}=e;b&&window.addEventListener("scroll",y)}),t.onUnmounted(()=>{const{scrollFixed:b}=e;b&&window.removeEventListener("scroll",y)}),{toggleItem:h,children:i,opened:m,classes:p,barRef:o,getClasses:S}}}),Xg=["onClick"],Qg={class:"fox-menu__title-text"},Gg={class:"fox-menu__title-icon"};function Zg(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",Qg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Gg,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Xg))),128))],2),t.renderSlot(e.$slots,"default")],2)}const Dl=oe(Yg,[["render",Zg]]),{componentName:Jg,create:_g}=Q("menu-item"),ey=_g({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:{[fe.name]:fe,Check:le.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:S,removeLink:b}=k;return S(y),t.onUnmounted(()=>{b(y)}),{parent:k}}},{parent:r}=l(),s=t.computed(()=>({[Jg]:!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")}}}}),ty={class:"fox-menu-item__content fox-menu-item__overflow"},ny=["onClick"];function oy(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",ty,[(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,ny))),128)),t.renderSlot(e.$slots,"default")])]),_:3},16,["style","overlayStyle","visible","position","duration","overlay","onClosed","lockScroll","close-on-click-overlay"])],2)),[[t.vShow,e.state.showWrapper]])}const Il=oe(ey,[["render",oy]]),{create:ly}=Q("tabbar"),ay=ly({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 ry(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 xl=oe(ay,[["render",ry]]),{create:sy}=Q("tabbar-item"),iy=sy({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 d=Object.assign(m.proxy,{index:p});a.children.push(d)}})(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}}}),cy={class:"fox-tabbar-item_icon-box"},dy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},uy={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},fy={key:1,class:"fox-tabbar-item_icon-box_dot"},my={key:2},py={key:0};function hy(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",cy,[e.dot?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[e.num&&e.num<=99?(t.openBlock(),t.createElementBlock("view",dy,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",uy,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",fy)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",my,[(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",py,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const ql=oe(iy,[["render",hy]]),{componentName:gy,create:yy}=Q("elevator"),by=yy({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(()=>({[gy]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>a.value.clientHeight),i=(f,u)=>f.getAttribute("data-"+u),c=f=>{t.nextTick(()=>{!o.listGroup.includes(f)&&f!=null&&o.listGroup.push(f)})},m=()=>{let f=0;o.listHeight.push(f);for(let u=0;u<o.listGroup.length;u++){let g=o.listGroup[u];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]))},d=f=>{o.scrollStart=!0;let u=i(f.target,"index"),g=f.touches[0];o.touchState.y1=g.pageY,o.anchorIndex=+u,o.codeIndex=+u,p(+u)},h=f=>{let u=f.touches[0];o.touchState.y2=u.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,u)=>{n.emit("click-item",f,u),o.currentData=u,o.currentKey=f},S=f=>{n.emit("click-index",f)},b=f=>{let g=f.target.scrollTop;const w=o.listHeight;o.scrollY=g;for(let T=0;T<w.length-1;T++){let C=w[T],A=w[T+1];if(o.scrollY>=C&&o.scrollY<A){o.currentIndex=T,o.diff=A-o.scrollY;return}}o.currentIndex=w.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",b)}),Ee({scrollTo:p}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(m)}),t.watch(()=>o.diff,f=>{const u=o.listHeight;let g=f>0&&f<e.titleHeight?f-e.titleHeight:0;o.scrollY+s.value===u[u.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:d,touchMove:h,touchEnd:k,handleClickItem:y,handleClickIndex:S}}}),ky={class:"fox-elevator__list__item__code"},Sy=["onClick"],Cy=["innerHTML"],wy={class:"fox-elevator__fixed-title"},Ny={class:"fox-elevator__bars__inner"},By=["data-index","onClick"];function Ay(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",ky,t.toDisplayString(s[e.acceptKey]),1),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(s.list,i=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__list__item__name",{"fox-elevator__list__item__name--highcolor":e.currentData.id===i.id&&e.currentKey===s[e.acceptKey]}]),key:i.id,onClick:c=>e.handleClickItem(s[e.acceptKey],i)},[e.$slots.default?t.renderSlot(e.$slots,"default",{key:1,item:i}):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:i.name},null,8,Cy))],10,Sy))),128))]))),128)),e.isSticky?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__list__fixed",style:t.normalizeStyle(e.fixedStyle)},[t.createElementVNode("span",wy,t.toDisplayString(e.indexList[e.currentIndex][e.acceptKey]),1)],4)),[[t.vShow,e.scrollY>0]]):t.createCommentVNode("",!0)],4),e.indexList.length?t.withDirectives((t.openBlock(),t.createElementBlock("view",{key:0,class:"fox-elevator__code--current"},t.toDisplayString(e.indexList[e.codeIndex][e.acceptKey]),513)),[[t.vShow,e.scrollStart]]):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-elevator__bars",onTouchstart: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",Ny,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.indexList,(s,i)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-elevator__bars__inner__item",{active:s[e.acceptKey]===e.indexList[e.currentIndex][e.acceptKey]}]),"data-index":i,key:s[e.acceptKey],onClick:c=>e.handleClickIndex(s[e.acceptKey])},t.toDisplayString(s[e.acceptKey]),11,By))),128))])],32)],2)}const Ft=oe(by,[["render",Ay]]),{componentName:uA,create:Ty,scope:$y}=Q("pagination"),Vy=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:k,itemsPerPage:y}=t.toRefs(e),S=+h.value||Math.ceil(+k.value/+y.value);return Math.max(1,S)}),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}),d=t.computed(()=>{if(r.value=="simple")return;let h=[];const k=c.value,y=+s.value;let S=1,b=k;const f=k>y;f&&(S=Math.max(l.value-Math.floor(y/2),1),b=S+y-1,b>k&&(b=k,S=b-y+1));for(var u=S;u<=b;u++){const g=p(u,u,l.value==u);h.push(g)}if(f&&y>0&&i.value){if(S>1){const g=p(S-1,"...");h.unshift(g)}if(b<k){const g=p(b+1,"...");h.push(g)}}return h});return t.watchEffect(()=>{m(l.value,!1)}),{...o,modelValue:l,select:m,countRef:c,mode:r,pages:d,forceEllipses:i}}}),Ey={class:"fox-pagination"},Dy={key:0,class:"fox-pagination-contain"},Iy=["onClick"],xy={key:1,class:"fox-pagination-contain"},qy={class:"fox-pagination-simple"};function vy(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",Ey,[t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-prev",e.mode=="multi"?"":"simple-border",e.modelValue==1?"disabled":""]),onClick: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",xy,[t.createElementVNode("view",qy,t.toDisplayString(e.modelValue)+"/"+t.toDisplayString(e.countRef),1)])):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-pagination-next",e.modelValue>=e.countRef?"disabled":""]),onClick: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 vl=oe(Vy,[["render",vy]]),My=(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=Je();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 Py{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:Ly}=Q("tabs"),zy=Ly({components:{[zt.name]:zt,JoySmile:le.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=E=>{E.forEach((B,P)=>{let L=B.type;if(L=L.name||L,L=="fox-tab-pane"){let D=new Py;if(B.props?.title||B.props?.["pane-key"]||B.props?.paneKey){let I=lt(B.props?.["pane-key"]),U=I=="number"||I=="string"?String(B.props?.["pane-key"]):null,q=lt(B.props?.paneKey),Y=q=="number"||q=="string"?String(B.props?.paneKey):null;D.title=B.props?.title,D.paneKey=U||Y||String(P),D.disabled=B.props?.disabled}r.value.push(D)}else{if(B.children==" ")return;Array.isArray(B.children)&&s(B.children)}})},i=t.ref(e.modelValue||0),c=E=>{let B=r.value.findIndex(P=>P.paneKey==E);r.value.length==0||B==-1||(i.value=B)},m=t.computed(()=>e.titleScroll&&e.direction==="vertical"),p=t.ref(),d=t.ref([]),h=E=>{const B=p.value,P=d.value;if(!B||!P||!P[i.value])return;const L=P[i.value];let D=0;e.direction==="vertical"?D=L.offsetTop-B.offsetTop+10-(B.offsetHeight-L.offsetHeight)/2:D=L.offsetLeft-(B.offsetWidth-L.offsetWidth)/2,k(B,D,E?0:.3,e.direction)},k=(E,B,P,L)=>{let D=0;const I=L==="horizontal"?E.scrollLeft:E.scrollTop,U=P===0?1:Math.round(P*1e3/16);function q(){L==="horizontal"?E.scrollLeft+=(B-I)/U:E.scrollTop+=(B-I)/U,++D<U&&Oe(q)}q()},y=(E=a.default?.())=>{r.value=[],E=E?.filter(B=>typeof B.children!="string"),E&&E.length&&s(E),c(e.modelValue),t.nextTick(()=>{h()})},S=E=>{l=E.fixed};t.watch(()=>a.default?.(),E=>{y(E)});const b=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,E=>{if(c(E),h(),l){let B=De(o.value).top+b(),P=Math.ceil(B-e.top);window.scrollTo({top:P,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:E=>{n("update:modelValue",E.paneKey),n("change",E)},tabChange:(E,B)=>{n("click",E),!(E.disabled||i.value==B)&&(i.value=B,f.updateValue(E))},setTabItemRef:(E,B)=>{d.value[B]=E}},{tabsContentRef:u,touchState:g,touchMethods:w}=My(e,f),T=t.computed(()=>{let E=i.value*100;g.moving&&(E+=g.offset);let B={transform:e.direction=="horizontal"?`translate3d(-${E}%, 0, 0)`:`translate3d( 0,-${E}%, 0)`,transitionDuration:g.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(B={}),B}),C=t.computed(()=>({background:e.background})),A=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),$=t.computed(()=>{if(!e.titleGutter)return{};const E=ge(e.titleGutter);return e.direction==="vertical"?{marginTop:E,marginBottom:E}:{marginLeft:E,marginRight:E}}),V=t.computed(()=>a.fixedTitle);return{navRef:p,tabsContentRef:u,titles:r,contentStyle:T,tabsNavStyle:C,titleStyle:$,tabsActiveStyle:A,container:o,getScrollY:m,onStickyScroll:S,...f,...w,hasFixedTitle:V}}}),Fy=["onClick"],Ry={key:0,class:"fox-tabs__titles-fixed-item"},Oy=["onClick"],Ky={key:0,class:"fox-tabs__titles-fixed-item"};function Uy(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,Fy))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Ry,[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,Oy))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Ky,[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 Ml=oe(zy,[["render",Uy]]),{create:Hy}=Q("tab-pane"),jy=Hy({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 Wy(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 Pl=oe(jy,[["render",Wy]]),{componentName:Ds,create:Yy}=Q("indicator"),Xy=Yy({props:{size:{type:Number,default:3,required:!0},current:{type:Number,default:1,required:!0},block:{type:Boolean,default:!1},align:{type:String,default:"center"},fillZero:{type:Boolean,default:!0}},setup(e){const{block:n,align:a}=t.toRefs(e);return{classes:t.computed(()=>{const l=Ds;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:Ds,padZero:at}}});function Qy(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 Ll=oe(Xy,[["render",Qy]]),{componentName:Gy,create:Zy}=Q("side-navbar"),Jy=Zy({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(()=>({[Gy]:!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}}}),_y={class:"fox-side-navbar__content"},e0={class:"fox-side-navbar__content__list",ref:"list"};function t0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",_y,[t.createElementVNode("view",e0,[t.renderSlot(e.$slots,"default")],512)])],2)}const zl=oe(Jy,[["render",t0]]),{componentName:n0,create:o0}=Q("side-navbar-item"),l0=o0({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[n0]:!0})),handleClick:()=>{n.emit("click")}})}),a0=["ikey"],r0={class:"fox-side-navbar-item__title"};function s0(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",r0,t.toDisplayString(e.title),1)],10,a0)}const Fl=oe(l0,[["render",s0]]),{componentName:i0,create:c0}=Q("sub-side-navbar"),d0=c0({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:le.ArrowDown2,ArrowUp2:le.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=t.reactive({direction:""}),o=t.computed(()=>({[i0]:!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}}}),u0=["ikey"],f0={class:"fox-sub-side-navbar__title__text"},m0={class:"fox-sub-side-navbar__title__icon"};function p0(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",f0,t.toDisplayString(e.title),1),t.createElementVNode("span",m0,[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,u0)}const Rl=oe(d0,[["render",p0]]),{componentName:h0,create:g0}=Q("range"),y0=g0({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=Je(),c=t.computed(()=>{const{marks:D,max:I,min:U}=e;return Object.keys(D).map(parseFloat).sort((j,J)=>j-J).filter(j=>j>=U&&j<=I)}),m=t.computed(()=>Number(e.max)-Number(e.min)),p=t.computed(()=>{const D=h0;return{[D]:!0,[`${D}-disabled`]:e.disabled,[`${D}-vertical`]:e.vertical,[`${D}-show-number`]:!e.hiddenRange}}),d=t.computed(()=>{const D="fox-range-container";return{[D]:!0,[`${D}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),k=t.computed(()=>({borderColor:e.buttonColor})),y=D=>!!e.range&&Array.isArray(D),S=()=>{const{modelValue:D,min:I}=e;return y(D)?`${(D[1]-D[0])*100/m.value}%`:`${(D-Number(I))*100/m.value}%`},b=()=>{const{modelValue:D,min:I}=e;return y(D)?`${(D[0]-Number(I))*100/m.value}%`:"0%"},f=t.computed(()=>e.vertical?{height:S(),top:b(),background:e.activeColor,transition:s.value?"none":void 0}:{width:S(),left:b(),background:e.activeColor,transition:s.value?"none":void 0}),u=D=>{const I="fox-range-mark",{modelValue:U,max:q,min:Y}=e;let j=Number(Y),J=Number(q);if(e.range){const[W,v]=U;j=W,J=v}else J=U;let ee=D<=J&&D>=j;return{[`${I}-text`]:!0,[`${I}-text-active`]:ee}},g=D=>{const{min:I,vertical:U}=e;let q={left:`${(D-Number(I))/m.value*100}%`};return U&&(q={top:`${(D-Number(I))/m.value*100}%`}),q},w=D=>{const{modelValue:I,max:U,min:q}=e;let Y=Number(q),j=Number(U);if(e.range){const[W,v]=I;Y=W,j=v}return{background:D<=j&&D>=Y?e.activeColor:e.inactiveColor}},T=D=>{const{min:I,max:U,step:q}=e;return D=Math.max(+I,Math.min(D,+U)),Math.round(D/+q)*+q},C=(D,I)=>JSON.stringify(D)===JSON.stringify(I),A=D=>D[0]>D[1]?D.slice(0).reverse():D,$=(D,I)=>{y(D)?D=A(D).map(T):D=T(D),C(D,e.modelValue)||n("update:modelValue",D),I&&!C(D,o)&&n("change",D)},V=D=>{if(e.disabled)return;const{min:I,modelValue:U}=e,q=De(r);let Y=D.clientX-q.left,j=q.width;e.vertical&&(Y=D.clientY-q.top,j=q.height);const J=Number(I)+Y/j*m.value;if(y(U)){const[ee,W]=U,v=(ee+W)/2;J<=v?$([J,W],!0):$([ee,J],!0)}else $(J,!0)},E=D=>{e.disabled||(i.start(D),l=e.modelValue,y(l)?o=l.map(T):o=T(l),s.value="start")},B=D=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(D),s.value="draging";const I=De(r);let U=i.deltaX.value,q=I.width,Y=U/q*m.value;e.vertical&&(U=i.deltaY.value,q=I.height,Y=U/q*m.value),y(o)?l[a.value]=o[a.value]+Y:l=o+Y,$(l),D.stopPropagation(),D.preventDefault()},P=()=>{e.disabled||(s.value==="draging"&&($(l,!0),n("drag-end")),s.value="")},L=D=>tn(e.modelValue)&&typeof D=="number"?e.modelValue[D]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:h,buttonStyle:k,onClick:V,onTouchStart:E,onTouchMove:B,onTouchEnd:P,...t.toRefs(e),barStyle:f,curValue:L,buttonIndex:a,containerClasses:d,markClassName:u,marksStyle:g,marksList:c,tickStyle:w}}}),b0={key:0,class:"fox-range-min"},k0={key:0,class:"fox-range-mark"},S0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],C0={key:0,class:"number"},w0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],N0={key:0,class:"number"},B0={key:1,class:"fox-range-max"};function A0(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",b0,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",k0,[(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",C0,t.toDisplayString(e.curValue(s)),1))],4))],42,S0)),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",N0,t.toDisplayString(e.curValue()),1))],4))],40,w0))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",B0,t.toDisplayString(+e.max),1))],2)}const Rt=oe(y0,[["render",A0]]),{create:T0,scope:$0}=Q("short-password"),V0=T0({components:{[fe.name]:fe,Tips:le.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($0),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>m(Number(e.length))),s=t.ref(e.visible),i=d=>{d.stopPropagation(),n("focus")};t.watch(()=>e.visible,d=>{s.value=d}),t.watch(()=>e.modelValue,d=>{l.value=d,String(d).length===r.value&&n("complete",d)});const c=()=>{n("update:visible",!1),n("close")},m=d=>Math.min(Math.max(4,d),6);return{comLen:r,realInput:l,onTouchStart:i,range:m,close:c,onTips:()=>{n("tips")},show:s,...o}}}),E0={class:"fox-short-password-title"},D0={class:"fox-short-password-subtitle"},I0={class:"fox-short-password-wrapper"},x0={key:0,class:"fox-short-password__item-icon"},q0={class:"fox-short-password__message"},v0={class:"fox-short-password--error"},M0={key:0,class:"fox-short-password--forget"};function P0(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",E0,t.toDisplayString(e.title),1),t.createElementVNode("view",D0,t.toDisplayString(e.desc),1),t.createElementVNode("div",I0,[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",x0)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",q0,[t.createElementVNode("view",v0,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",M0,[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 Ol=oe(V0,[["render",P0]]);class L0{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let z0=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 F0{status="ready";message="ready";uid=new Date().getTime().toString();name;url;type;path;percentage=0;formData={}}const Is=(e,{args:n=[],done:a,canceled:o})=>{if(e){const l=e.apply(null,n);dt(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:R0}=Q("progress"),O0=R0({components:{Checked:le.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}}}),K0={class:"fox-progress"},U0={key:0,class:"fox-progress-text"};function H0(e,n,a,o,l,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",K0,[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",U0,[e.status=="active"||e.status==""?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)):e.status=="icon"?t.renderSlot(e.$slots,"icon-name",{key:1},()=>[t.createVNode(s,{width:"15px",height:"15px",color:"#439422"})]):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const Ot=oe(O0,[["render",H0]]),{componentName:j0,create:W0,scope:Y0}=Q("uploader"),X0=W0({components:{[Ot.name]:Ot,Photograph:le.Photograph,Failure:le.Failure,Loading:le.Loading,Del:le.Del,Link:le.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(Y0),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[j0]:!0})),s=()=>{let u={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(u.capture="camera"),t.h("input",u)},i=u=>{u.value=""},c=u=>{n("file-item-click",{fileItem:u})},m=(u,g)=>{const w=new L0;w.url=e.url,w.formData=u.formData,w.timeout=e.timeout*1,w.method=e.method,w.xhrState=e.xhrState,w.headers=e.headers,w.withCredentials=e.withCredentials,w.beforeXhrUpload=e.beforeXhrUpload;try{w.sourceFile=u.formData.get(e.name)}catch{}w.onStart=C=>{u.status="ready",u.message=a("readyUpload"),p(g),n("start",C)},w.onProgress=(C,A)=>{u.status="uploading",u.message=a("uploading"),u.percentage=(C.loaded/C.total*100).toFixed(0),n("progress",{event:C,option:A,percentage:u.percentage})},w.onSuccess=(C,A)=>{u.status="success",u.message=a("success"),n("success",{responseText:C,option:A,fileItem:u}),n("update:fileList",o)},w.onFailure=(C,A)=>{u.status="error",u.message=a("error"),n("failure",{responseText:C,option:A,fileItem:u})};let T=new z0(w);e.autoUpload?T.upload():l.push(new Promise((C,A)=>{C(T)}))},p=(u=-1)=>{u>-1?l.splice(u,1):(l=[],o.splice(0,o.length))},d=()=>{Promise.all(l).then(u=>{u.forEach(g=>g.upload())})},h=u=>{u.forEach((g,w)=>{const T=new FormData;for(const[A,$]of Object.entries(e.data))T.append(A,$);T.append(e.name,g);const C=t.reactive(new F0);if(C.name=g.name,C.status="ready",C.type=g.type,C.formData=T,C.message=a("waitingUpload"),m(C,w),e.isPreview&&g.type.includes("image")){const A=new FileReader;A.onload=$=>{C.url=$.target.result,o.push(C)},A.readAsDataURL(g)}else o.push(C)})},k=u=>{const g=e.maximum*1,w=e.maximize*1,T=new Array;u=u.filter(A=>A.size>w?(T.push(A),!1):!0),T.length&&n("oversize",T);let C=u.length+o.length;return C>g&&u.splice(u.length-(C-g)),u},y=(u,g)=>{o.splice(g,1),n("delete",{file:u,fileList:o,index:g})},S=(u,g)=>{p(g),Is(e.beforeDelete,{args:[u,o],done:()=>y(u,g)})},b=u=>{if(e.disabled)return;const g=u.target;let{files:w}=g;e.beforeUpload?e.beforeUpload(w).then(T=>f(T)):f(w),n("change",{fileList:o,event:u}),e.clearInput&&i(g)},f=u=>{const g=k(new Array().slice.call(u));h(g)};return{onChange:b,onDelete:S,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:p,submit:d,renderInput:s}}}),Q0={key:0,class:"fox-uploader__slot"},G0={key:0,class:"fox-uploader__preview-img"},Z0={key:0,class:"fox-uploader__preview__progress"},J0={class:"fox-uploader__preview__progress__msg"},_0=["onClick"],eb=["onClick","src"],tb={key:3,class:"fox-uploader__preview-img__file"},nb=["onClick"],ob={class:"file__name_tips"},lb={class:"tips"},ab={key:1,class:"fox-uploader__preview-list"},rb=["onClick"],sb={class:"file__name_tips"};function ib(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"),d=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",Q0,[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",G0,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",Z0,[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",J0,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,_0)):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,eb)):(t.openBlock(),t.createElementBlock("view",tb,[t.createElementVNode("view",{onClick:y=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",ob,t.toDisplayString(h.name),1)],8,nb)])),t.createElementVNode("view",lb,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",ab,[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",sb,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,rb),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(d,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const Kl=oe(X0,[["render",ib]]),cb="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1j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/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:ub,scope:fb}=Q("number-keyboard"),mb=ub({components:{[fe.name]:fe},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(fb),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:f}=e;let u={id:"lock",type:"lock"},g=Array.isArray(f)?f:[f];return g.length===1&&(u={id:g[0],type:"custom"}),[...c(),u,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const f=[];for(let u=1;u<=9;u++)f.push({id:u,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function m(){const f=c(),{customKey:u}=e;let g=Array.isArray(u)?u:[u];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()),d=()=>{e.visible&&n("blur")},h=f=>{const u=s.value;u&&!u.contains(f.target)&&d()};t.watch(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function k(f,u){u.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"&&b(),f.type=="delete"&&(n("delete"),n("update:modelValue",e.modelValue.slice(0,e.modelValue.length-1)))}function y(f){f.stopPropagation()}function S(f){f.preventDefault(),l.value=void 0}function b(){n("update:visible",!1),n("close")}return{...o,delImg:cb,lockImg:db,clickKeyIndex:l,defaultKey:i,closeBoard:b,onTouchEnd:S,onTouchMove:y,onTouchstart:k,keysList:p,genCustomKeys:m,getBasicKeys:c,root:s,show:r}}}),pb={ref:"root"},hb={class:"fox-number-keyboard"},gb={key:0,class:"fox-number-keyboard__header"},yb={class:"fox-number-keyboard__title"},bb={class:"fox-number-keyboard__body"},kb={class:"fox-number-keyboard__keys"},Sb=["onTouchstart"],Cb=["src"],wb=["src"],Nb={key:0,class:"fox-number-keyboard__sidebar"},Bb={class:"fox-key__wrapper"},Ab=["src"];function Tb(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",pb,[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",hb,[e.title?(t.openBlock(),t.createElementBlock("div",gb,[t.createElementVNode("h3",yb,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",bb,[t.createElementVNode("div",kb,[(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,Cb)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,wb)):t.createCommentVNode("",!0)],42,Sb)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",Nb,[t.createElementVNode("div",Bb,[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,Ab)],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 Ul=oe(mb,[["render",Tb]]),{componentName:$b,create:Vb}=Q("swipe"),Eb=Vb({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(()=>({[$b]:!0})),o=u=>u.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 d=t.reactive({offset:0,moving:!1}),h=(u="")=>{c=!0,u&&(d.offset=u==="left"?-i.value:r.value),n("open",{name:e.name,position:m||u})},k=()=>{d.offset=0,c=!1,n("close",{name:e.name,position:m})},y=t.computed(()=>({transform:`translate3d(${d.offset}px, 0, 0)`})),S=u=>{m=u>0?"right":"left";let g=u;switch(m){case"left":c&&p===m?g=-i.value:g=Math.abs(u)>i.value?-i.value:u;break;case"right":c&&p===m?g=r.value:g=Math.abs(u)>r.value?r.value:u;break}d.offset=g},b=Je();return{classes:a,touchStyle:y,...{onTouchStart(u){e.disabled||b.start(u)},onTouchMove(u){e.disabled||(b.move(u),b.isHorizontal()&&(d.moving=!0,S(b.deltaX.value),e.touchMovePreventDefault&&u.preventDefault(),e.touchMoveStopPropagation&&u.stopPropagation()))},onTouchEnd(){if(d.moving)switch(d.moving=!1,p=m,m){case"left":Math.abs(d.offset)<=i.value/2?k():(d.offset=-i.value,h());break;case"right":Math.abs(d.offset)<=r.value/2?k():(d.offset=r.value,h());break}}},leftRef:l,rightRef:s,open:h,close:k}}}),Db={class:"fox-swipe__left",ref:"leftRef"},Ib={class:"fox-swipe__content"},xb={class:"fox-swipe__right",ref:"rightRef"};function qb(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",Db,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",Ib,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",xb,[t.renderSlot(e.$slots,"right")],512)],38)}const Kt=oe(Eb,[["render",qb]]),{componentName:vb,create:Mb}=Q("action-sheet"),Pb=Mb({components:{[fe.name]:fe,Loading:le.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(()=>({[vb]:!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}}}),Lb={key:0,class:"fox-action-sheet__title"},zb={key:1},Fb={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},Rb={key:1,class:"fox-action-sheet__menu"},Ob=["onClick"],Kb={key:1},Ub={class:"fox-action-sheet__subdesc"};function Hb(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",Lb,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",zb,[e.description?(t.openBlock(),t.createElementBlock("view",Fb,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",Rb,[(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",Kb,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",Ub,t.toDisplayString(c[e.optionSubTag]),1)],14,Ob))),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 Hl=oe(Pb,[["render",Hb]]),{componentName:jb,create:Wb}=Q("backtop"),jl=Wb({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(()=>({[jb]:!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 S(){var b=e.duration-Math.max(0,o.startTime-+new Date+e.duration),f=b*-o.scrollTop/e.duration+o.scrollTop;i(f),y=Xe(S),(b==e.duration||f==0)&&Ma(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 d(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 S=[];if(typeof a.default=="function")S.push(a.default());else{const f=t.h(le.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});S.push(f)}const b=t.h("div",{class:l.value,style:r.value,onClick:d},S);return y.push(b),y}}}),{componentName:Yb,create:Xb}=Q("drag"),Qb=Xb({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(()=>({[Yb]:!0}));function r(){const d=document.documentElement;o.elWidth=a.value.offsetWidth,o.elHeight=a.value.offsetHeight,o.screenWidth=d.clientWidth,o.screenHeight=d.clientHeight}function s(d){o.boundary.left?+d.style.left.split("px")[0]>o.boundary.left?(d.style.left=+d.style.left.split("px")[0]-10+"px",Oe(()=>{s(d)})):d.style.left=`${o.boundary.left}px`:+d.style.left.split("px")[0]>10?(d.style.left=+d.style.left.split("px")[0]-10+"px",Oe(()=>{s(d)})):d.style.left="0px"}function i(d,h){h-parseInt(d.style.left.split("px")[0])>10?(d.style.left=parseInt(d.style.left.split("px")[0])+10+"px",Oe(()=>{i(d,h)})):d.style.left=h+"px"}function c(d){d.preventDefault();const h=d.currentTarget;if(d.targetTouches.length===1){const k=d.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(d){const h=d.currentTarget;let y=d.changedTouches[0].clientX;const S=o.screenWidth-o.elWidth-o.boundary.right;y>S?y=S:y<o.boundary.left?y=o.boundary.left:y=y<o.screenWidth/2?o.boundary.left:S,e.direction!="y"&&e.attract&&(y<o.screenWidth/2?Oe(()=>{s(h)}):Oe(()=>{i(h,S)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function p(d){const h=d.currentTarget,k=d.touches[0],y=d.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 d=a;d.value.removeEventListener("touchstart",p),d.value.removeEventListener("touchmove",c),d.value.removeEventListener("touchend",m)}),{classes:l,myDrag:a,touchStart:p,touchMove:c,touchEnd:m}}});function Gb(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 Wl=oe(Qb,[["render",Gb]]),Zb={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}},Jb=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function _b(e,n,a,o,l){return{props:{...ze,...Zb},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:m}=re.useFoxI18n(n),p=m(r,["confirmText","cancelText"]),d=e,h=t.ref(r.visible);t.watch(()=>r.visible,C=>{h.value!==C&&(h.value=C,C&&c("opened"))});const k=C=>{h.value=C,c("update:visible",C),c("update",C)},y=C=>{if(c(C),!(C==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const A=r.beforeClose(C);dt(A)?A.then($=>{$&&(k(!1),c("closed",C))}):A===!0&&(k(!1),c("closed",C))}else k(!1),c("closed",C)},S=()=>{y("confirm")},b=()=>{y("cancel")},f=()=>{y("close")},u=(C,A)=>Jb(C)?(A.src=C,t.h("img",A)):typeof C=="string"?(Array.isArray(A.class)?A.class.push(C):A.class&&typeof A.class=="object"?A[`${C}`]=!0:typeof A.class=="string"?A.class=`${A.class}, ${C}`:A.class=C,t.h(r.tag,A)):t.h(C,A),g=()=>{const C=[];if(i.header){const $=i.header();C.push($)}else{if(r.title){const $=t.h("view",{class:`${d}__header-title`},[r.title]);C.push($)}if(r.showClose){const $={class:[`${d}__header-close-icon`],onClick:f},V=r.closeIcon??l,E=u(V,$);C.push(E)}}if(C.length===0)return null;const A={class:[`${d}__header`]};return t.h("view",A,C)},w=()=>{const C=[];if(i.default)C.push(i.default());else{const $={class:[`${d}__content`]};if(r.textAlign&&$.class.push(r.textAlign),typeof r.content=="string"){$.innerHTML=r.content;const V=t.h("view",$);C.push(V)}else if(typeof r.content=="function"){const V=t.h("view",$,[r.content()]);C.push(V)}else{const V=t.h("view",$,[r.content]);C.push(V)}}if(C.length===0)return null;const A={class:[`${d}__body`]};return t.h("view",A,C)},T=()=>{if(!r.showFooter)return null;const C=[];if(i.footer)C.push(i.footer());else if(r.plain){if(r.showCancelButton){const $={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},onClick:b};r.cancelButtonClass&&$.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign($.style,r.cancleButtonStyle);const V=t.h("view",$,[r.cancelButtonText??p.cancelText.value]);C.push(V)}if(r.showConfirmButton){const $={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},onClick:S};r.confirmButtonClass&&$.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign($.style,r.confirmButtonStyle);const V=t.h("view",$,[r.confirmButtonText??p.confirmText.value]);C.push(V)}}else{if(r.showCancelButton){const $={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:b};r.cancelButtonClass&&$.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign($.style,r.cancleButtonStyle);const V=t.h(o,$,{default:()=>[r.cancelButtonText??p.cancelText.value]});C.push(V)}if(r.showConfirmButton){const $={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:S};r.confirmButtonClass&&$.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign($.style,r.confirmButtonStyle);const V=t.h(o,$,{default:()=>[r.confirmButtonText??p.confirmText.value]});C.push(V)}}if(C.length===0)return null;const A={class:[`${d}__footer`,`${d}__footer--${r.footerDirection}`]};return t.h("view",A,C)};return()=>{const C=[],A=g();A&&C.push(A);const $=w();$&&C.push($);const V=T();V&&C.push(V);const E={class:{[`${d}`]:!0,[`${d}--plain`]:r.plain}},B=t.h("view",E,C),P=[`${d}__popup`];r.popClass&&P.push(r.popClass);const L={};r.width&&(L.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(L.height=typeof r.height=="number"?`${r.height}px`:r.height);const I={...ke(r,ze),popClass:P.join(" "),style:L,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":k,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,I,{default:()=>B})}}}}const{componentName:ek,create:tk,scope:nk}=Q("dialog"),xs=tk(_b(ek,nk,fe,Pe,le.Close));class ok{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 lk{options=new ok;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(xs,a)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Ut=function(e){return new lk(e)};Ut.install=e=>{e.use(xs),e.config.globalProperties.$dialog=Ut};const ak={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}},rk=(e,n,a)=>({props:{...ak},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["pullingText","loosingText","loadingText"]),c=zo(),m=t.ref(),p=bs(m),d=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=t.computed(()=>({[e]:!0})),k=t.computed(()=>{switch(d.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:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),S=t.computed(()=>{const A={};return o.headHeight!=50&&(A.height=ge(o.headHeight)),A}),b=A=>{const $=+(o.pullDistance||o.headHeight);let V=A;return A>$&&(A<$*2?V=(A+$)/2:V=$+A/4),Math.round(V)},f=(A,$)=>{const V=+(o.pullDistance||o.headHeight);d.distance=A,$?d.status="loading":A===0?d.status="normal":A<V?d.status="pulling":d.status="loosing",l("change",{status:d.status,distance:A})},u=()=>d.status!=="loading"&&d.status!=="complete",g=()=>p.value==window?ks()==0:p.value&&p.value.scrollTop==0,w=A=>{u()&&(g()?(c.start(A),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},T=A=>{u()&&d.moving&&(c.move(A),c.isVertical()&&c.state.deltaY>0&&d.isPullRefresh&&(A.cancelable&&A.preventDefault(),f(b(c.state.deltaY))))},C=()=>{d.moving=!1,d.isPullRefresh&&u()&&c.state.deltaY&&(d.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,A=>{A?f(+o.headHeight,!0):f(0)}),()=>{const A=[];let $=null;if(d.status==="loading"){if($=r?.loading?.()??null,!$){const U={class:["fox-pull-refresh-container-topbox-icon"]};$=t.h(a,U)}}else d.status==="pulling"?$=r?.pulling?.()??null:d.status==="loosing"&&($=r?.loosing?.()??null);$&&A.push($);const V={class:["fox-pull-refresh-container-topbox-text"]},E=t.h("dive",V,[k.value]);A.push(E);const B={class:["fox-pull-refresh-container-topbox"],style:S.value},P=t.h("div",B,A),L={class:"fox-pull-refresh-container",style:y.value},D=t.h("div",L,[P,r?.default?.()]),I={ref:m,class:h.value};return Lo()?Object.assign(I,{onTouchstart:w,onTouchmove:T,onTouchend:C}):Object.assign(I,{onMousedown:w,onMousemove:T,onMouseup:C}),t.h("div",I,[D])}}}),{componentName:sk,create:ik,scope:ck}=Q("pull-refresh"),Yl=ik(rk(sk,ck,le.Loading)),{create:dk}=Q("notify"),uk=dk({components:{[fe.name]:fe},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 fk(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 Xl=oe(uk,[["render",fk]]),Ql={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let wt=[],Ht=[];const qs=e=>{if(e){const n=document.getElementById(e);Ht=Ht.filter(a=>a.id!==e),wt=wt.filter(a=>a!==e),n&&document.body.removeChild(n)}else wt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Ht=[],wt=[]},mk=e=>{const n=document.getElementById(e.id);if(n){const a=Ht.find(l=>l.id===e.id);a?e={...Ql,...a,...e}:e={...Ql,...e};const o=t.createVNode(Xl,e);return t.render(o,n),o.component.data}},jt=e=>{e.unmount=qs;let n;if(e.id){if(n=e.id,wt.find(r=>r===e.id))return mk(e)}else n=new Date().getTime()+"";e={...Ql,...e},e.id=n,wt.push(e.id),Ht.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(Xl,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},Wt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Gl={text(e,n={}){return Wt(e),jt({...n,msg:e})},primary(e,n={}){return Wt(e),jt({...n,msg:e,type:"primary"})},success(e,n={}){return Wt(e),jt({...n,msg:e,type:"success"})},danger(e,n={}){return Wt(e),jt({...n,msg:e,type:"danger"})},warn(e,n={}){return Wt(e),jt({...n,msg:e,type:"warning"})},hide(){qs()},install(e){e.use(Xl)}},{create:pk}=Q("toast"),hk=pk({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=ce(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]),d=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:d,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),gk={key:1,class:"fox-toast-title"},yk=["innerHTML"];function bk(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",gk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,yk)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const Zl=oe(hk,[["render",bk]]),Jl={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 Nt=[],Yt=[];const vs=e=>{if(e){const n=document.getElementById(e);Yt=Yt.filter(a=>a.id!==e),Nt=Nt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Nt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Yt=[],Nt=[]},kk=e=>{const n=document.getElementById(e.id);if(n){const a=Yt.find(l=>l.id===e.id);a?e={...Jl,...a,...e}:e={...Jl,...e};const o=t.createVNode(Zl,e);return t.render(o,n),Bt}},Xt=e=>{e.unmount=vs;let n;if(e.id){if(n=e.id,Nt.find(l=>l===e.id))return kk(e)}else n=new Date().getTime()+"";e={...Jl,...e},e.id=n,Nt.push(e.id),Yt.push(e);const a=document.createElement("div");a.id=e.id;const o=t.createVNode(Zl,e);return t.render(o,a),document.body.appendChild(a),Bt},Gn=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},Bt={text(e,n={}){return Gn(e),Xt({...n,type:"text",msg:e})},success(e,n={}){return Gn(e),Xt({icon:le.Success,...n,msg:e,type:"success"})},fail(e,n={}){return Gn(e),Xt({icon:le.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return Gn(e),Xt({icon:le.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Xt({icon:le.Loading,...n,msg:e,type:"loading"})},hide(e){vs(e)},install(e){e.use(Zl),e.config.globalProperties.$toast=Bt}},{componentName:fA,create:Sk}=Q("audio"),Ck=Sk({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:le.Service,[Rt.name]:Rt},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 S=["webkitVisibilityState","visibilitychange"];try{for(let b=0;b<S.length;b++)document.addEventListener(S[b],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(b){b.message}});const r=S=>{const b=o.value;e.autoplay&&b&&b.paused&&b.play(),l.second=b.duration,l.duration=y(b.duration),n("can-play",S)},s=S=>{l.currentTime=parseInt(S.target.currentTime)},i=()=>{l.currentTime>0&&l.currentTime--,o.value.currentTime=l.currentTime,n("fastBack",l.currentTime)},c=()=>{const S=o.value;l.playing?(S.pause(),l.handPlaying=!1):(S.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=S=>{l.currentDuration=y(S),l.percent=S/l.second*100},d=()=>{l.playing=!1,n("ended")},h=S=>{const b=o.value;b.currentTime=l.second*S/100,n("changeProgress",b.currentTime)},k=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},y=S=>{if(!S)return"00:00:00";let b=parseInt(S),f=Math.floor(b/3600),u=Math.floor((b-f*3600)/60),g=b-f*3600-u*60,w="";return w+=("0"+f.toString()).slice(-2)+":",w+=("0"+u.toString()).slice(-2)+":",w+=("0"+g.toString()).slice(-2),w};return t.watch(()=>l.currentTime,S=>{p(S)}),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:d,onTimeupdate:s,handleMute:k,onCanplay:r,slots:a}}}),wk={class:"fox-audio"},Nk={key:0,class:"fox-audio__progress"},Bk={class:"fox-audio__time"},Ak={class:"fox-audio__bar"},Tk=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),$k={class:"fox-audio__time"},Vk={key:1,class:"fox-audio__icon"},Ek=["controls","src","preload","autoplay","loop","muted"];function Dk(e,n,a,o,l,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",wk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",Nk,[t.createElementVNode("div",Bk,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Ak,[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(()=>[Tk]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",$k,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Vk,[t.createElementVNode("div",{class:t.normalizeClass(["fox-audio__icon--box",e.playing?"fox-audio__icon--play":"fox-audio__icon--stop"]),onClick: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,Ek)])}const _l=oe(Ck,[["render",Dk]]),{componentName:mA,create:Ik,scope:xk}=Q("audio-operate"),qk=Ik({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(xk),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}}}),vk={class:"fox-audio-operate"};function Mk(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",vk,[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 ea=oe(qk,[["render",Mk]]),{componentName:Pk,create:Lk}=Q("avatar"),zk=Lk({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(()=>({[Pk]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||s?.props?.shape||"normal"}`]:!0})),d=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 S=0;S<y.length;S++)y[S]&&y[S].classList&&y[S].classList[0]=="fox-avatar"&&y[S].setAttribute("data-index",S+1);m.index=i?.value?.dataset?.index,m.index==m.maxIndex&&m.index!=s?.props?.maxCount&&(m.showMax=!0)};return{classes:p,styles:d,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(m)}}});function Fk(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=oe(zk,[["render",Fk]]),{componentName:Rk,create:Ok}=Q("avatar-group"),Kk=Ok({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(()=>({[Rk]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:l}),{classes:r,avatarGroupRef:o}}});function Uk(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 ta=oe(Kk,[["render",Uk]]);var Zn=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(Zn||{});function Hk(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:jk,create:Wk}=Q("list"),Ms=document.documentElement.clientHeight||document.body.clientHeight||667,Yk=Wk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Ms},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,Ms)),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(()=>({[jk]:!0})),p=t.computed(()=>r.list.slice(r.start,c.value)),d=()=>{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(A=>A.nodeType===1);const u=f[0];f.forEach((A,$)=>{if(!A)return;const V=De(A),{height:E}=V,P=r.cachePositions[$+r.start].height-E;P&&(r.cachePositions[$+r.start].bottom-=P,r.cachePositions[$+r.start].height=E,r.cachePositions[$+r.start].dValue=P)});let g=0;u&&(g=r.start);const w=r.cachePositions.length;let T=r.cachePositions[g].dValue;r.cachePositions[g].dValue=0;for(let A=g+1;A<w;++A){const $=r.cachePositions[A];r.cachePositions[A].top=r.cachePositions[A-1].bottom,r.cachePositions[A].bottom=r.cachePositions[A].bottom-T,$.dValue!==0&&(T+=$.dValue,$.dValue=0)}const C=r.cachePositions[w-1].bottom;r.phantomHeight=C},y=(f=0)=>{let u=Hk(r.cachePositions,f,(w,T)=>{const C=w.bottom;return C===T?Zn.eq:C<T?Zn.lt:Zn.gt});return r.cachePositions[u].bottom<f&&(u+=1),u},S=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,a.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},b=()=>{const f=a.value?.scrollTop,{originStartIndex:u}=r,g=y(f);g!==u&&(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{S();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&k()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:d,visibleData:p,classes:m,getContainerHeight:s,handleScrollEvent:b}}});function Xk(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 na=oe(Yk,[["render",Xk]]),{componentName:Qk,create:Gk}=Q("circleprogress"),Zk=Gk({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(()=>({[Qk]:!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(()=>$e(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let p=283,d=p*Number(e.progress)/100;return{stroke:$e(e.color)?`url(#${o})`:e.color,strokeDasharray:`${d}px ${p}px`}}),c=t.computed(()=>({stroke:e.pathColor})),m=t.computed(()=>{if(!$e(e.color))return;let p=e.color;const d=Object.keys(p).sort((k,y)=>parseFloat(k)-parseFloat(y));let h=[];return d.map((k,y)=>{let S={key:"",value:""};S.key=k,S.value=p[k],h.push(S)}),h});return{classes:l,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:m,slotDefault:a,refRandomId:o}}}),Jk={viewBox:"0 0 100 100"},_k=["id"],eS=["offset","stop-color"],tS=["d","stroke-width"],nS=["d","stroke","stroke-linecap","stroke-width"],oS={class:"fox-circleprogress-text"},lS={key:0};function aS(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",Jk,[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,eS))),128))],8,_k)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,tS),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,nS)])),t.createElementVNode("div",oS,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",lS,t.toDisplayString(e.progress)+"%",1))])],6)}const oa=oe(Zk,[["render",aS]]),{componentName:rS,create:sS}=Q("noticebar"),iS=sS({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:le.Notice,CircleClose:le.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(()=>({[rS]:!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 A={};return e.color&&(A.color=e.color),e.background&&(A.background=e.background),e.direction=="vertical"&&(A.height=`${e.height}px`),A}),p=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),d=t.computed(()=>{let A={};if(e.complexAm)A={transform:`translateY(${r.distance}px)`};else if(r.animate){let $=~~(e.height/e.speed/4);A={transition:`all ${$==0?~~(e.height/e.speed):$}s`,"margin-top":`-${e.height}px`}}return A});t.watch(()=>e.text,A=>{h()}),t.watch(()=>e.list,A=>{r.scrollList=[...A]});const h=A=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const $=o.value.getBoundingClientRect().width,V=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?V>$:e.scrollable,r.isCanScroll?(r.wrapWidth=$,r.offsetWidth=V,r.duration=V/e.speed,r.animationClass="play"):r.animationClass=""},0)},k=A=>{n("click",A)},y=A=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",A)},S=A=>{r.firstRound=!1,n("across-end",A),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},b=()=>{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))},u=()=>{r.timer=setInterval(()=>{let A=100;for(let $=0;$<A;$++)g($,!($<A-1))},e.standTime+100*e.speed)},g=(A,$)=>{setTimeout(()=>{r.distance-=e.height/100,$&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},A*e.speed)},w=A=>{n("click",A)},T=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(a.default?C(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?u():b()},e.standTime)):h(e.text)}),t.watch(()=>a.default?a.default():[],A=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),C(A))});const C=A=>{A&&A.length>0&&(r.scrollList=A[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:d,wrap:o,content:l,handleClick:k,onClickIcon:y,onAnimationEnd:S,go:w,handleClickIcon:T,slots:a,toPxDesc:ge,wrapContentClass:c}}}),cS={key:0,class:"fox-noticebar__page-lefticon"},dS={ref:"wrap",class:"fox-noticebar__page-wrap"},uS={class:"showNotica"},fS=["onClick"];function mS(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",cS,[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",dS,[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",uS,[(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:d=>e.go(m)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(m),1)])],12,fS))),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 la=oe(iS,[["render",mS]]),pS="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/yt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ggg==",{componentName:pA,create:yS,scope:bS}=Q("empty"),kS={empty:pS,error:hS,network:gS},SS=yS({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=re.useFoxI18n(bS),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:kS[o.value];return{...a,imageUrl:i,imgStyle:r}}}),CS={class:"fox-empty"},wS=["src"],NS={key:1,class:"fox-empty-description"};function BS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",CS,[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,wS)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",NS,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const aa=oe(SS,[["render",BS]]),{create:AS,scope:TS}=Q("video"),$S=AS({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(TS),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,C=>{C.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,C=>{o.state.isMuted=C?C.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",cn(d,1e3)))},i=()=>{const C=l.value,A=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=C,o.progressBar.progressElm=A,o.progressBar.pos=A.getBoundingClientRect(),o.videoSet.progress.width=Math.round(A.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",cn(d,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{k()}else o.videoElm.pause(),n("pause",o.videoElm)},m=C=>{var A=Math.floor(C/3600);A<10&&(A="0"+A);var $=Math.floor(C%3600/60);$<10&&($="0"+$);var V=Math.round(C%3600%60);V<10&&(V="0"+V);var E="";return A!=0?E=A+":"+$+":"+V:E=$+":"+V,E},p=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},d=()=>{const C=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*C),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},S=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},b=()=>{},f=C=>{let $=C.targetTouches[0].pageX-o.progressBar.pos.left;$<=0&&($=0),$>=o.videoSet.progress.width&&($=o.videoSet.progress.width),o.videoSet.progress.current=$;let V=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&g(V,o.videoElm.duration)},u=C=>{let $=C.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=$;let V=$/o.videoSet.progress.width;o.videoElm.duration&&g(V,o.videoElm.duration)},g=(C,A)=>{o.videoElm.currentTime=Math.floor(C*A)},w=()=>{o.state.isError=!1,s()},T=()=>{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:S,touchSlidSrart:b,touchSlidMove:f,touchSlidEnd:u,retry:w,fullScreen:T,t:a}}}),VS={class:"fox-video",ref:"videocon"},ES=["muted","autoplay","loop","poster","controls","preload"],DS=["src","type"],IS={class:"fox-video-controller__now"},xS={class:"fox-video-controller__progress"},qS={class:"fox-video-controller__progress-value",ref:"progressBar"},vS=[t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1)],MS={class:"fox-video-controller__played",ref:"playedBar"},PS={class:"fox-video-controller__total"},LS={class:"fox-video-error"},zS={class:"fox-video-error-tip"};function FS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",VS,[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,DS)],40,ES),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",IS,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",xS,[t.createElementVNode("div",qS,[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"]))},vS,36),t.createElementVNode("div",MS,null,512)],512)]),t.createElementVNode("div",PS,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",LS,[t.createElementVNode("p",zS,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 At=oe($S,[["render",FS]]),{create:RS,componentName:OS}=Q("steps"),ra=RS({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=OS;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:KS,componentName:US}=Q("step"),HS=KS({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=US;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:s,handleClickStep:i}}}),jS={class:"fox-step-head"},WS=t.createElementVNode("view",{class:"fox-step-line"},null,-1),YS={class:"fox-step-icon-inner"},XS={key:1,class:"fox-step-inner"},QS={class:"fox-step-main"},GS={class:"fox-step-title"},ZS={key:0},JS={key:0,class:"fox-step-content"},_S=["innerHTML"];function e1(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",jS,[WS,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",YS,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",XS,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",QS,[t.createElementVNode("view",GS,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",ZS,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",JS,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,_S)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const sa=oe(HS,[["render",e1]]),{create:t1,componentName:ia}=Q("swiper"),n1=t1({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=Je(),s=t.computed(()=>({[ia]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const q=ia;return{[`${q}-inner`]:!0,[`${q}-vertical`]:i.value}}),m=t.computed(()=>{const q=ia;return{[`${q}-pagination`]:!0,[`${q}-pagination-vertical`]:i.value}}),p=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),d=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),S=t.computed(()=>l.rect?(i.value?l.rect.height:l.rect.width)-k.value*h.value:0),b=t.computed(()=>(l.active+h.value)%h.value),f=()=>{let q=0;q=l.offset,l.style={transitionDuration:`${l.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${q}px)`,[i.value?"height":"width"]:`${k.value*h.value}px`,[i.value?"width":"height"]:`${i.value?l.width:l.height}px`}},u=q=>{let Y=[];const j=l.childrenVNode.length;let J=a?.default?.();if(J=J.filter(ee=>ee.children&&Array.isArray(ee.children)),J.forEach(ee=>{Y=Y.concat(ee.children)}),!j)l.childrenVNode=Y.slice(),q.proxy&&l.children.push(q.proxy);else if(j>Y.length)l.children=l.children.filter(ee=>q.proxy!==ee);else if(j<Y.length){for(let ee=0;ee<j;ee++)if(Y[ee].key!==l.childrenVNode[ee].key){q.proxy&&l.children.splice(ee,0,q.proxy),q.vnode&&l.childrenVNode.splice(ee,0,q.vnode);break}j!==Y.length&&(q.proxy&&l.children.push(q.proxy),q.vnode&&l.childrenVNode.push(q.vnode))}else l.childrenVNode=Y.slice(),q.proxy&&l.children.push(q.proxy)},g=(q,Y=0)=>{let j=q*k.value;e.loop||(j=Math.min(j,-S.value));let J=Y-j;return e.loop||(J=Ue(J,S.value,0)),J},w=q=>{const{active:Y}=l;return q?e.loop?Ue(Y+q,-1,h.value):Ue(Y+q,0,h.value-1):Y},T=({pace:q=0,offset:Y=0,isEmit:j=!1})=>{if(h.value<=1)return;const{active:J}=l,ee=w(q),W=g(ee,Y);if(e.loop){if(l.children[0]&&W!==S.value){const v=W<S.value;l.children[0].setOffset(v?y.value:0)}if(l.children[h.value-1]&&W!==0){const v=W>0;l.children[h.value-1].setOffset(v?-y.value:0)}}l.active=ee,l.offset=W,j&&J!==l.active&&n("change",b.value),f()},C=()=>{l.moving=!0,l.active<=-1&&T({pace:h.value}),l.active>=h.value&&T({pace:-h.value})},A=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},$=q=>{C(),r.reset(),Xe(()=>{Xe(()=>{l.moving=!1,T({pace:q,isEmit:!0})})})},V=()=>{$(-1)},E=()=>{$(1)},B=q=>{C(),r.reset(),Xe(()=>{l.moving=!1;let Y;e.loop&&h.value===q?Y=l.active===0?0:q:Y=q%h.value,T({pace:Y-l.active,isEmit:!0})})},P=()=>{e.autoPlay<=0||h.value<=1||(A(),l.autoplayTimer=setTimeout(()=>{E(),P()},Number(e.autoPlay)))},L=(q=+e.initPage)=>{A(),l.rect=o.value.getBoundingClientRect(),q=Math.min(h.value-1,q),l.width=e.width?+e.width:l.rect.width,l.height=e.height?+e.height:l.rect.height,l.active=q,l.offset=g(l.active),l.moving=!0,f(),P()},D=q=>{e.isPreventDefault&&q.preventDefault(),e.isStopPropagation&&q.stopPropagation(),e.touchable&&(r.start(q),l.touchTime=Date.now(),A(),C())},I=q=>{e.touchable&&l.moving&&(r.move(q),d.value&&T({offset:p.value}))},U=q=>{if(!e.touchable||!l.moving)return;const Y=p.value/(Date.now()-l.touchTime);if((Math.abs(Y)>.3||Math.abs(p.value)>+(k.value/2).toFixed(2))&&d.value){let J=0;const ee=i.value?r.offsetY.value:r.offsetX.value;e.loop?J=ee>0?p.value>0?-1:1:0:J=-Math[p.value>0?"ceil":"floor"](p.value/k.value),T({pace:J,isEmit:!0})}else p.value&&T({pace:0});l.moving=!1,f(),P()};return t.provide("parent",{props:e,size:k,relation:u}),Ee({prev:V,next:E,to:B}),t.onDeactivated(()=>{A()}),t.onBeforeUnmount(()=>{A()}),t.watch(()=>e.initPage,q=>{t.nextTick(()=>{L(Number(q))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{L()})}),t.watch(()=>e.autoPlay,q=>{q>0?P():A()}),{state:l,classes:s,classesInner:c,classesPagination:m,container:o,activePagination:b,onTouchStart:D,onTouchMove:I,onTouchEnd:U}}});function o1(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 Tt=oe(n1,[["render",o1]]),{create:l1,componentName:a1}=Q("swiper-item"),r1=l1({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[a1]:!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")}),Ee({setOffset:s}),{style:r,classes:l}}});function s1(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 $t=oe(r1,[["render",s1]]),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:i1}=Q("image-preview-item"),c1=i1({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:{[At.name]:At,[$t.name]:$t},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=Je(),l=t.computed(()=>{const{rootWidth:V,rootHeight:E}=e,B=E/V;return a.imageRatio>B}),r=t.computed(()=>{const V=e.image;if(V&&V.src){const{scale:E,moveX:B,moveY:P,moving:L,zooming:D}=a,I={transitionDuration:D||L?"0s":".3s"};if(E!==1){const U=B/E,q=P/E;I.transform=`scale(${E}, ${E}) translate(${U}px, ${q}px)`}return I}return{}}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:V,rootHeight:E}=e,B=l.value?E/a.imageRatio:V;return Math.max(0,(a.scale*B-V)/2)}return 0}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:V,rootHeight:E}=e,B=l.value?E:V*a.imageRatio;return Math.max(0,(a.scale*B-E)/2)}return 0}),c=V=>{const{naturalWidth:E,naturalHeight:B}=V.target;a.imageRatio=B/E},m=()=>{p(1),a.moveX=0,a.moveY=0},p=V=>{V=Ue(V,+e.minZoom,+e.maxZoom+1),V!==a.scale&&(a.scale=V,n("scale",{scale:V,index:e.initNo}))},d=()=>{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,S,b,f,u,g;const w=V=>{const{touches:E}=V,{offsetX:B}=o;o.start(V),g=E.length,k=a.moveX,y=a.moveY,u=Date.now(),a.moving=g===1&&a.scale!==1,a.zooming=g===2&&!B.value,a.zooming&&(S=a.scale,b=h(V.touches))},T=V=>{const{touches:E}=V;if(o.move(V),(a.moving||a.zooming)&&mo(V,!0),a.moving){const{deltaX:B,deltaY:P}=o,L=B.value+k,D=P.value+y;a.moveX=Ue(L,-s.value,s.value),a.moveY=Ue(D,-i.value,i.value)}if(a.zooming&&E.length===2){const B=h(E),P=S*B/b;p(P)}},C=()=>{if(g==1&&e.video&&e.video.source||g>1)return;const{offsetX:V,offsetY:E}=o,B=Date.now()-u,P=250,L=5;V.value<L&&E.value<L&&B<P&&(f?(clearTimeout(f),f=null,d()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},P))},A=V=>{let E=!1;(a.moving||a.zooming)&&(E=!0,a.moving&&k===a.moveX&&y===a.moveY&&(E=!1),V.touches.length||(a.zooming&&(a.moveX=Ue(a.moveX,-s.value,s.value),a.moveY=Ue(a.moveY,-i.value,i.value),a.zooming=!1),a.moving=!1,k=0,y=0,S=1,a.scale<1&&m(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),mo(V,E),C(),o.reset()},$=()=>{n("close")};return t.watch(()=>e.initNo,m),t.watch(()=>e.show,V=>{V||m()}),{...t.toRefs(a),onTouchStart:w,onTouchMove:T,onTouchEnd:A,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:$}}}),d1=["src"];function u1(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,d1)):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 f1=oe(c1,[["render",u1]]),{create:m1}=Q("image-preview"),p1=m1({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:f1,CircleClose:le.CircleClose,[fe.name]:fe,[Tt.name]:Tt},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(()=>tn(e.videos)?[].concat(e.videos).concat(e.images):e.images),s=p=>{p!==o.active&&(o.active=p,n("change",o.active))},i=()=>{Is(e.beforeClose,{args:[o.active],done:()=>c()})},c=()=>{o.showPop=!1,n("close")},m=()=>{if(a.value){const p=De(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}}}),h1={class:"fox-image-preview",ref:"swipeRef"},g1={key:0,class:"fox-image-preview-index"};function y1(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",h1,[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,d)=>(t.openBlock(),t.createBlock(s,{key:d,video:d<e.videos.length?p:{},image:d>=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",g1,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=oe(p1,[["render",y1]]);class b1{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 k1{options=new b1;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=ki(a,{name:"image-preview",components:[fe,At,Tt,$t,st],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(Ls,a))}})})}}const Jn=e=>new k1(e);Jn.install=e=>{e.use(Ls)};function S1(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{componentName:gA,create:C1}=Q("countup"),w1=C1({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=$=>{$&&o.value.push($)},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,($,V)=>{d(),b(0)}),t.watch(()=>e.machinePrizeLevel,($,V)=>{r.prizeLevelTrun=$}),t.watch(()=>e.initNum,($,V)=>{r.current=$,r.valFlag=!1,p()}),t.watch(()=>e.endNum,($,V)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;s&&(i||c?m!="machine"&&b():(S(),setTimeout(()=>{r.valFlag=!0},300)))},d=()=>{clearInterval(Number(r.timer)),r.timer=null},h=($,V,E)=>{const B=($.toString().split(".")[1]||"").length,P=(V.toString().split(".")[1]||"").length,L=Math.pow(10,Math.max(B,P));return E=="-"?Number(($*L-V*L).toFixed(0))/L:Number(($*L+V*L).toFixed(0))/L},k=$=>{let{num_total_len:V,pointNum:E,initDigit1:B,initDigit2:P,sortFlag:L}=r,D=L=="add"||L=="equal"?String(P)[$-(V-E)]:10-Number(String(P)[$-(V-E)]),I=L=="add"||L=="equal"?String(B)[$]:10-Number(String(B)[$]),U=$>V-E-1?-D*100+"%":$<=String(B).length-1?-I*100+"%":0;return U=="-1000%"&&(U=0),U},y=$=>{let{num_total_len:V,pointNum:E,initDigit1:B,initDigit2:P,sortFlag:L}=r,D=String(P)[$-(V-E)];return $>V-E-1?D||0:$<=String(B).length-1?String(B)[$]:0},S=()=>{let{endNum:$,initNum:V,speed:E,toFixed:B}=e,P=setInterval(()=>{if(V>$)if(r.current<=$||r.current<=E)r.current=$.toFixed(B),clearInterval(P),n("scroll-end"),r.valFlag=!1;else{let L=parseFloat(String(r.current))-parseFloat(String(E));r.current=L.toFixed(B)}else if(r.current>=$)r.current=$.toFixed(B),clearInterval(P),n("scroll-end"),r.valFlag=!1;else{let L=parseFloat(String(r.current))+parseFloat(String(E));r.current=L.toFixed(B)}},e.during)},b=$=>{let{initNum:V,endNum:E,toFixed:B,customBgImg:P}=e;P&&(V=e.customChangeNum);let L,D,I,U;V!=0?(B!=0&&(V=Number(V.toFixed(B))),String(V).indexOf(".")>-1?(L=String(V).split(".")[0].length,D=String(V).split(".")[1].length):(L=String(V).length,D=0)):(L=1,D=0),E!=0?(B!=0&&(E=Number(E.toFixed(B))),String(E).indexOf(".")>-1?(I=String(E).split(".")[0].length,U=String(E).split(".")[1].length):(I=String(E).length,U=0)):(I=1,U=0);let q=L>=I?L:I,Y=D>=U?D:U;r.num_total_len=q+Y,r.pointNum=Y,V>E?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h(V,E,"-"),r.numberVal=Number(String(V))):V<E?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(E,V,"-"),r.numberVal=Number(String(E))):r.sortFlag="equal";var j=1;for(let ee=0;ee<r.pointNum;ee++)j*=10;var J=r.numberVal*j;if(r.relNum=J,B!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(J).length),String(V).indexOf(".")>-1){let ee=String(V).split(".");r.initDigit1=Number(ee[0]),r.initDigit2=Number(ee[1])}else r.initDigit1=V,r.initDigit2=0;i&&!P?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let ee=o.value[r.num_total_len-1];f(ee)}):$!==0&&w()},f=$=>{d();var V=1;r.pointNum!=0&&(V=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{u($),r.totalCount=h(r.totalCount,V,"-"),r.totalCount<=0&&(d(),n("scroll-end"),r.valFlag=!1)},e.during)},u=$=>{let V=$.getAttribute("turn-number"),E;if(r.sortFlag=="add"?E=parseInt(String(V))+1:E=parseInt(String(V))-1>=0?parseInt(String(V))-1:9,$.setAttribute("turn-number",String(E)),($.style.transition=="none 0s ease 0s"||E==1||!$.style.transition)&&($.style.transition=`all linear ${e.during}ms`),E==10||r.sortFlag=="reduce"&&E==0){var B=null;$.style.top=`-${r.sortFlag=="add"?E*100:(10-E)*100}%`,$.setAttribute("turn-number","0"),B=setTimeout(()=>{B&&clearTimeout(B),$.style.transition="none",$.style.top="0",g($,E)},.975*e.during)}else $.style.top=`-${r.sortFlag=="add"?E*100:(10-E)*100}%`;$.style.top=="-100%"&&r.sortFlag=="reduce"&&u($.previousSibling)},g=($,V)=>{setTimeout(()=>{V==10&&$.previousSibling&&u($.previousSibling)},200)},w=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{a.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},T=()=>{for(r.notPrize=[];r.notPrize.length<3;){var $=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf($)==-1&&r.notPrize.push($)}};S1({machineLuck:()=>{const $=e.machineTurnMore<0?0:e.machineTurnMore;let V=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&T();for(let E=0;E<e.machineNum;E++)setTimeout(()=>{let B=V*(E+1+parseFloat(String($)));r.prizeYPrev.length!=0&&(r.prizeY[E]=r.prizeYPrev[E]);let P=r.prizeYPrev[E]?r.prizeYPrev[E]:0,L=B+P+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+(V-P);r.prizeLevelTrun<0&&(L+=e.numHeight*r.notPrize[E]),A(E,L,P)},500*E)}});const A=($,V,E)=>{let B=setInterval(()=>{if(E<=V)E+=10,r.prizeY[$]=parseFloat(String(E));else if(clearInterval(B),B=null,r.finshMachine+=1,r.prizeY[$]=V,r.finshMachine==e.machineNum){let P=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(D=>{let I=D;for(;I>P;)I-=P;r.prizeYPrev.push(I)}),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(()=>{d(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:k,turnNumber:y}}}),N1={class:"fox-countup"},B1=["turn-number"];function A1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",N1,[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,B1))),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=oe(w1,[["render",A1]]),T1=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:$1,create:V1}=Q("countdown"),E1=V1({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(()=>({[$1]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-T1(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,d(),n("on-end")),y>0&&i()}}))},c=(k,y)=>{const S=k;let b={d:0,h:0,m:0,s:0,ms:0};const f=1e3,u=60*f,g=60*u,w=24*g;return S>0&&(b.d=S>=f?Math.floor(S/w):0,b.h=Math.floor(S%w/g),b.m=Math.floor(S%g/u),b.s=Math.floor(S%u/f),b.ms=Math.floor(S%f)),y=="custom"?b:m({...b})},m=k=>{let{d:y,h:S,m:b,s:f,ms:u}=k,g=e.format;if(g.includes("DD")?g=g.replace("DD",at(y)):S+=Number(y)*24,g.includes("HH")?g=g.replace("HH",at(S)):b+=Number(S)*60,g.includes("mm")?g=g.replace("mm",at(b)):f+=Number(b)*60,g.includes("ss")?g=g.replace("ss",at(f)):u+=Number(f)*1e3,g.includes("S")){const w=at(u,3).toString();g.includes("SSS")?g=g.replace("SSS",w):g.includes("SS")?g=g.replace("SS",w.slice(0,2)):g.includes("S")&&(g=g.replace("SS",w.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))},d=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},h=()=>{e.autoStart||(d(),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&&d()}),t.watch(()=>e.endTime,k=>{s()}),t.watch(()=>e.startTime,k=>{s()}),{...t.toRefs(e),slots:a,classes:l,start:p,pause:d,renderTime:r,reset:h}}}),D1=["innerHTML"];function I1(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,D1))],2)}const da=oe(E1,[["render",I1]]),{create:x1}=Q("badge"),q1=x1({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}}}),v1={class:"fox-badge"},M1=["textContent"];function P1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",v1,[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,M1),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const ua=oe(q1,[["render",P1]]),{componentName:L1,create:z1}=Q("tag"),F1=z1({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:le.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const s=L1;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 R1(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=oe(F1,[["render",R1]]),{create:O1}=Q("popover"),K1=O1({components:{FoxPopup:fe},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 u="fox-popover-arrow",g=e.location,w=g.split("-")[0];return`${u} ${u}-${w} ${u}--${g}`}),c=t.computed(()=>{const u={},{bgColor:g,arrowOffset:w,location:T}=e,C=T.split("-")[0],A=T.split("-")[1],$=16;return g&&(u[`border${m(C)}Color`]=g),e.arrowOffset!=0&&(["bottom","top"].includes(C)&&(A||(u.left=`calc(50% + ${w}px)`),A=="start"&&(u.left=`${$+w}px`),A=="end"&&(u.right=`${$-w}px`)),["left","right"].includes(C)&&(A||(u.top=`calc(50% - ${w}px)`),A=="start"&&(u.top=`${$-w}px`),A=="end"&&(u.bottom=`${$+w}px`))),u}),m=u=>(u=u.toLowerCase(),u=u.replace(/\b\w+\b/g,g=>g.substring(0,1).toUpperCase()+g.substring(1)),u),p=t.computed(()=>{let u={};if(!r.value||!s.value)return{};const g=s.value.width,w=s.value.height,{width:T,height:C,left:A,top:$}=r.value,{location:V,offset:E}=e,B=V.split("-")[0],P=V.split("-")[1];let L=0,D=0;if(tn(E)&&E.length==2&&(L+=Number(E[1]),D+=Number(E[0])),T){if(["bottom","top"].includes(B)){const I=B=="bottom"?C+L:-(w+L);u.top=`${$+I}px`,P||(u.left=`${-(g-T)/2+A+D}px`),P=="start"&&(u.left=`${A+D}px`),P=="end"&&(u.left=`${r.value.right+D}px`)}if(["left","right"].includes(B)){const I=B=="left"?-(g+L):T+L;u.left=`${A+I}px`,P||(u.top=`${$-w/2+C/2-4+D}px`),P=="start"&&(u.top=`${$+D}px`),P=="end"&&(u.top=`${$+C+D}px`)}}return u}),d=t.computed(()=>{const u={};return e.bgColor&&(u.background=e.bgColor),u}),h=()=>{let u=De(a.value);e.targetId&&(u=De(document.querySelector(`#${e.targetId}`))),r.value=u,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,u=>{l.value=u,u?(window.addEventListener("touchstart",f,!0),h()):window.removeEventListener("touchstart",f,!0)});const k=u=>{n("update",u),n("update:visible",u)},y=()=>{k(!e.visible),n("open")},S=()=>{n("update:visible",!1),n("close")},b=(u,g)=>{!u.disabled&&n("choose",u,g),e.closeOnClickAction&&S()},f=u=>{const g=a.value,w=o.value;let T=g&&!g.contains(u.target);if(e.targetId){const C=document.querySelector(`#${e.targetId}`);T=C&&!C.contains(u.target)}T&&w&&!w.contains(u.target)&&e.closeOnClickOutside&&S()};return{showPopup:l,openPopover:y,popoverArrow:i,closePopover:S,chooseItem:b,popoverRef:a,popoverContentRef:o,getRootPosition:p,customStyle:d,popoverArrowStyle:c,renderIcon:hr}}}),U1={ref:"popoverContentRef",class:"fox-popover-content-group"},H1=["onClick"],j1={class:"fox-popover-menu-item-name"};function W1(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",U1,[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",j1,t.toDisplayString(i.name),1)],10,H1))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Zt=oe(K1,[["render",W1]]),Y1=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:X1}=Q("skeleton"),Q1=X1(Y1({[Qt.name]:Qt})),G1={key:0},Z1={key:1,class:"fox-skeleton"},J1={key:0,class:"fox-skeleton-animation"},_1={class:"fox-skeleton-content"};function eC(e,n,a,o,l,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",Z1,[e.animated?(t.openBlock(),t.createElementBlock("view",J1)):t.createCommentVNode("",!0),t.createElementVNode("view",_1,[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",G1,[t.renderSlot(e.$slots,"default")]))}const fa=oe(Q1,[["render",eC]]),{create:tC,componentName:nC}=Q("collapse"),oC=tC({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(()=>({[nC]:!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 lC(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=oe(oC,[["render",lC]]),{create:aC,componentName:rC}=Q("collapse-item"),sC=aC({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:le.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=rC;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"})})},d=()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?p():d()}),{classes:r,renderIcon:hr,wrapperRef:n,contentRef:a,open:p,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:m}}}),iC={class:"fox-collapse-item__title-main"},cC={class:"fox-collapse-item__title-main-value"},dC=["innerHTML"],uC={key:2,class:"fox-collapse-item__title-label"},fC={key:0,class:"fox-collapse-item__title-sub"},mC=["innerHTML"],pC={key:0,class:"fox-collapse__item-extraWrapper"},hC={class:"fox-collapse__item-extraWrapper__extraRender"},gC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function yC(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",iC,[t.createElementVNode("view",cC,[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,dC)),e.label?(t.openBlock(),t.createElementBlock("view",uC,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",fC,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,mC)),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",pC,[t.createElementVNode("div",hC,[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",gC,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const pa=oe(sC,[["render",yC]]),bC=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:kC,create:SC,scope:CC}=Q("table"),wC=SC({components:{RenderColumn:bC,DownArrow:le.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(CC),l=t.reactive({curData:e.data}),r=t.computed(()=>({[kC]:!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(S=>S.key===k);return y[0].stylecolumn?y[0].stylecolumn:""},d=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:d,sortDataItem:h,t:o,stylehead:i,stylecolumn:c}}}),NC={class:"fox-table__main__head"},BC={class:"fox-table__main__head__tr"},AC=["onClick"],TC={class:"fox-table__main__body"},$C={key:1},VC={key:0,class:"fox-table__nodata"},EC={key:0,class:"fox-table__nodata__text"},DC={key:1,class:"fox-table__summary"},IC=["innerHTML"];function xC(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",NC,[t.createElementVNode("view",BC,[(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,AC))),128))])]),t.createElementVNode("view",TC,[(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",$C,t.toDisplayString(c[m]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",VC,[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",EC,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",DC,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,IC)])):t.createCommentVNode("",!0)],2)}const ha=oe(wC,[["render",xC]]),{componentName:qC,create:vC}=Q("ellipsis"),MC=vC({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(()=>({[qC]:!0}));t.watch(()=>e.content,(S,b)=>{S!=b&&c()}),t.onMounted(()=>{c()});const c=()=>{if(!a.value)return;const S=window.getComputedStyle(a.value);o=document.createElement("div"),Array.prototype.slice.apply(S).forEach(u=>{o.style.setProperty(u,S.getPropertyValue(u))}),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(S.lineHeight==="normal"?e.lineHeight:S.lineHeight);l=Math.floor(f*(Number(e.rows)+.5)+h(S.paddingTop)+h(S.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 S=e.content.length,b=Math.floor((0+S)/2),f=e.direction==="middle"?d([0,b],[b,S]):p(0,S);r.value=f,document.body.removeChild(o)}},p=(S,b)=>{const f=s.expanded?e.collapseText:e.expandText,u=e.content.length;if(b-S<=1)return e.direction==="end"?{leading:e.content.slice(0,S)+e.symbol}:{tailing:e.symbol+e.content.slice(b,u)};const g=Math.round((S+b)/2);return e.direction==="end"?o.innerText=e.content.slice(0,g)+e.symbol+f:o.innerText=f+e.symbol+e.content.slice(g,u),o.offsetHeight<=l?e.direction==="end"?p(g,b):p(S,g):e.direction==="end"?p(S,g):p(g,b)},d=(S,b)=>{const f=s.expanded?e.collapseText:e.expandText,u=e.content.length;if(S[1]-S[0]<=1&&b[1]-b[0]<=1)return{leading:e.content.slice(0,S[0])+e.symbol,tailing:e.symbol+e.content.slice(b[1],u)};const g=Math.floor((S[0]+S[1])/2),w=Math.ceil((b[0]+b[1])/2);return o.innerText=e.content.slice(0,g)+e.symbol+f+e.symbol+e.content.slice(w,u),o.offsetHeight<=l?d([g,S[1]],[b[0],w]):d([S[0],g],[w,b[1]])},h=S=>{if(!S)return 0;const b=S.match(/^\d*(\.\d*)?/);return b?Number(b[0]):0},k=S=>{S==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}}}),PC={key:0},LC={key:1},zC={key:2};function FC(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",PC,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",LC,[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",zC,[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=oe(MC,[["render",FC]]),{componentName:RC,create:OC}=Q("animate"),KC=OC({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,[`${RC}-${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}}}),UC={class:"fox-animate"};function HC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",UC,[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=oe(KC,[["render",HC]]),{componentName:jC,create:WC}=Q("watermark"),YC=WC({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:d,content:h,fontStyle:k,fontWeight:y,fontColor:S,fontSize:b,fontFamily:f}=e,u=()=>{const w=document.createElement("canvas"),T=window.devicePixelRatio,C=w.getContext("2d"),A=`${(l+s)*T}px`,$=`${(r+i)*T}px`,V=s*T,E=i*T;if(w.setAttribute("width",A),w.setAttribute("height",$),C){if(m){C.translate(V/2,E/2),C.rotate(Math.PI/180*Number(c));const B=new Image;B.crossOrigin="anonymous",B.referrerPolicy="no-referrer",B.src=m,B.onload=()=>{C.drawImage(B,-p*T/2,-d*T/2,p*T,d*T),C.restore(),a.base64Url=w.toDataURL()}}else if(h){C.textBaseline="middle",C.textAlign="center",C.translate(V/2,E/2),C.rotate(Math.PI/180*Number(c));const B=Number(b)*T;C.font=`${k} normal ${y} ${B}px/${E}px ${f}`,C.fillStyle=S,C.fillText(h,0,0),C.restore(),a.base64Url=w.toDataURL()}}else throw new Error("当前环境不支持Canvas")};u(),t.watch(()=>[o,l,r,s,i,c,m,p,d,h,k,y,S,b,f],()=>{u()});const g=t.computed(()=>{const w=jC;return{[w]:!0,[`${w}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:g}}});function XC(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 ba=oe(YC,[["render",XC]]);function QC(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:GC,create:ZC}=Q("trend-arrow"),JC=ZC({components:{TriangleUp:le.TriangleUp,TriangleDown:le.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(()=>({[GC]:!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?"+":"-":""}${QC(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 _C(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 ka=oe(JC,[["render",_C]]),{create:ew}=Q("tour"),tw=ew({components:{[Zt.name]:Zt,Close:le.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:d,maskHeight:h}=e,{width:k,height:y,left:S,top:b}=o.value,f=[S+k/2,b+y/2],u=Number(d||k),g=Number(h||y);return{width:`${u+ +p[1]*2}px`,height:`${g+ +p[0]*2}px`,top:`${f[1]-g/2-+p[0]}px`,left:`${f[0]-u/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}`),d=De(p);o.value=d},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}}}),nw={key:0,class:"fox-tour-content"},ow={key:0,class:"fox-tour-content-top"},lw={class:"fox-tour-content-inner"},aw={class:"fox-tour-content-bottom"},rw={class:"fox-tour-content-bottom-init"},sw={class:"fox-tour-content-bottom-operate"},iw={key:1,class:"fox-tour-content fox-tour-content-tile"},cw={class:"fox-tour-content-inner"};function dw(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",nw,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",ow,[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",lw,t.toDisplayString(c.content),1),t.createElementVNode("div",aw,[t.createElementVNode("div",rw,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",sw,[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",iw,[t.createElementVNode("div",cw,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const Sa=oe(tw,[["render",dw]]),{componentName:yA,create:uw,scope:fw}=Q("address"),mw=uw({components:{Location:le.Location,Location2:le.Location2,Check:le.Check,Close:le.Close,Left:le.Left,[fe.name]:fe,[Ft.name]:Ft},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(fw),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),d=t.ref([0,0,0,0]),h=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),k=I=>{if(!Array.isArray(I))throw new TypeError("params muse be array.");if(!I.length)return[];I.forEach(q=>{if(!q.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const U=[];return I=I.sort((q,Y)=>q.title.localeCompare(Y.title)),I.forEach(q=>{const Y=U.findIndex(j=>j.title===q.title);Y<=-1?U.push({title:q.title,list:[].concat(q)}):U[Y].list.push(q)}),U};let y=t.ref([]),S=t.reactive({});const b=t.ref("self"),f=t.ref(20),u=()=>{const I=e.modelValue,U=I.length;if(U>0){if(i.value=U-1,h.value.length==0){i.value=0;return}for(let q=0;q<U;q++){let Y=[];switch(q){case 0:Y=e.province;break;case 1:Y=e.city;break;case 2:Y=e.country;break;default:Y=e.town}y.value[q]=Y.filter(j=>j.id==I[q])[0]}w()}},g=(I,U)=>I&&I.name||i.value<U&&I?I.name:e.columnsPlaceholder[U]||a("select"),w=()=>{A(),t.nextTick(()=>{const I=l.value&&l.value.getElementsByClassName("active")[0];if(I){const U=I.offsetLeft;f.value=U||20}})},T=I=>{const U=i.value;c.value=i.value;const q={custom:m.value[U]};y.value[U]=I;for(let Y=U+2;Y<4;Y++)y.value.splice(Y,1);U<3?(i.value=U+1,w(),q.next=m.value[i.value],q.value=I,n("change",q)):(E(),n("update:modelValue"))},C=(I,U)=>{c.value=i.value,g(I,U)&&(i.value=U,w())},A=()=>{const I=p.value,U=c.value,q=d.value[i.value];I?.scrollTop&&(d.value[U]=I?.scrollTop),t.nextTick(()=>{I?.scrollTo({top:q,behavior:"auto"})})},$=I=>{const U=e.existAddress;let q={};U.forEach(Y=>{Y&&Y.selectedAddress&&(q=Y),Y.selectedAddress=!1}),I.selectedAddress=!0,S=I,n("selected",q,I,U),E()},V=()=>{y.value=[],i.value=0,w()},E=(I="self")=>{b.value=I=="cross"?"cross":"self",r.value=!1},B=()=>{b.value="mask"},P=()=>{const I={addressIdStr:"",addressStr:"",province:y.value[0],city:y.value[1],country:y.value[2],town:y.value[3]},U={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(q=>{const Y=y.value[q];I.addressIdStr+=`${q?"_":""}${Y&&Y.id||0}`,I.addressStr+=Y&&Y.name||""}),U.data=I):U.data=S,V(),b.value=="self"?n("close",U):n("close-mask",{closeWay:b}),n("update:visible",!1)},L=()=>{const I=s.value;s.value=I=="exist"?"custom":"exist",V(),n("switch-module",{type:s.value})},D=(I,U)=>{T(U)};return t.watch(()=>e.visible,I=>{r.value=I}),t.watch(()=>r.value,I=>{I&&u()}),{showPopup:r,privateType:s,tabIndex:i,tabName:m,selectedRegion:y,switchModule:L,closeWay:b,close:P,getTabName:g,nextAreaList:T,regionLine:o,tabRegion:l,lineDistance:f,changeRegionTab:C,selectedExist:$,clickOverlay:B,handClose:E,handleElevatorItem:D,initCustomSelected:u,...t.toRefs(e),t:a,regionList:h,transformData:k,scrollDom:p}}}),pw={class:"fox-address"},hw={class:"fox-address__header"},gw={class:"fox-address__header__title"},yw={key:0,class:"fox-address__custom"},bw={class:"fox-address__region",ref:"tabRegion"},kw=["onClick"],Sw={key:0,class:"active fox-address__region-item"},Cw={key:0,class:"fox-address__detail"},ww={class:"fox-address__detail-list",ref:"scrollDom"},Nw=["onClick"],Bw={key:1,class:"fox-address__elevator-group"},Aw={key:1,class:"fox-address__exist"},Tw={class:"fox-address__exist-group"},$w={class:"fox-address__exist-group-list"},Vw=["onClick"],Ew={class:"fox-address__exist-item-info"},Dw={key:0,class:"fox-address__exist-item-info-name"},Iw={key:1,class:"fox-address__exist-item-info-phone"},xw={class:"fox-address__exist-item-info-bottom"},qw={class:"fox-address__exist-choose-btn"};function vw(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"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{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",pw,[t.createElementVNode("view",hw,[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",gw,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",yw,[t.createElementVNode("view",bw,[(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,kw))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",Sw,[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",Cw,[t.createElementVNode("ul",ww,[(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,Nw))),128))],512)])):(t.openBlock(),t.createElementBlock("view",Bw,[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",Aw,[t.createElementVNode("div",Tw,[t.createElementVNode("ul",$w,[(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",Ew,[h.name?(t.openBlock(),t.createElementBlock("div",Dw,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",Iw,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",xw,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,Vw))),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",qw,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 Ca=oe(mw,[["render",vw]]),{componentName:Mw,create:Pw}=Q("barrage"),Lw=Pw({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(()=>({[Mw]:!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),d=e.speeds,h=t.ref(0);t.onMounted(()=>{k(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(S(),p.value=0,y("hidden")):document.visibilityState==="visible"&&k()})}),t.onUnmounted(()=>{i.value=[],S()});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 T=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const C=[];T&&Array.from(T).forEach(A=>{g=="init"?(A.style.opacity="0",C.push(A)):(A.classList="",A.style={})}),g=="init"&&(i.value=C)},S=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,g=>{e.danmu.length>0&&(i.value=[...g])});const b=g=>{const w=p.value%i.value.length;!e.loop&&p.value===i.value.length?i.value.splice(i.value.length,0,g):i.value.splice(w,0,g)},f=()=>{S(),s=setTimeout(()=>{u()},e.frequency)},u=()=>{const g=e.loop?p.value%i.value.length:p.value;let w=document.createElement("view");a&&typeof i.value[g]=="object"?(w=i.value[g],w?.classList?.add("fox-barrage__item")):(w.innerHTML=i.value[g],w.classList.add("fox-barrage__item"),r.value.appendChild(w)),t.nextTick(()=>{const T=w.offsetHeight;if(w?.classList?.add("move"),w.style.animationDuration=`${d}ms`,w.style.top=g%c.value*(T+m.value)+20+"px",w.style.opacity="1",!a){const C=w.offsetWidth;w.style.width=C+20+"px"}w.addEventListener("animationend",()=>{a?w.classList.remove("move"):r.value.removeChild(w)}),!(!e.loop&&p.value>=i.value.length-1)&&(p.value++,p.value>=i.value.length&&(p.value=0),w.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:o,danmuList:i,dmBody:l,dmContainer:r,add:b}}});function zw(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 wa=oe(Lw,[["render",zw]]),{componentName:Fw,create:Rw,scope:Ow}=Q("signature"),Kw=Rw({props:{customClass:{type:String,default:""},lineWidth:{type:Number,default:2},strokeStyle:{type:String,default:()=>document.getElementsByTagName("body")[0].className.indexOf("fox-theme-dark")==-1?"#000":"#fff"},type:{type:String,default:"png"},unSupportTpl:{type:String,default:""}},components:{[Pe.name]:Pe},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:a}=re.useFoxI18n(Ow),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),s=t.computed(()=>({[Fw]:!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 u=document.createElement("canvas");return!!(u.getContext&&u.getContext("2d"))},m=()=>{l.value.addEventListener(i.events[0],p,!1)},p=u=>{u.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(i.events[1],d,!1),l.value.addEventListener(i.events[2],h,!1),l.value.addEventListener(i.events[3],k,!1)},d=u=>{u.preventDefault();let g=i.isSupportTouch?u.touches[0]:u;n("signing",g);let w=l.value.getBoundingClientRect(),T=g.clientX-w.left,C=g.clientY-w.top;i.ctx.lineTo(T,C),i.ctx.stroke()},h=u=>{u.preventDefault(),n("end"),l.value.removeEventListener(i.events[1],d,!1),l.value.removeEventListener(i.events[2],h,!1)},k=u=>{u.preventDefault(),l.value.removeEventListener(i.events[1],d,!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")},S=()=>{f(l.value)},b=u=>{if(!u)return!0;var g=document.createElement("canvas");return g.width=u.width,g.height=u.height,u?.toDataURL()==g.toDataURL()},f=u=>{let g;switch(e.type){case"png":g=u.toDataURL("image/png");break;case"jpg":g=u.toDataURL("image/jpeg",.8);break}const w=b(u)?"请绘制签名":u,T=b(u)?"":g;n("confirm",w,T)};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:S,clear:y,classes:s}}}),Uw={class:"fox-signature-inner",ref:"wrap"},Hw=["height","width"],jw={key:0,class:"fox-signature-unsopport"};function Ww(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",Uw,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,Hw),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",jw,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 Na=oe(Kw,[["render",Ww]]),{componentName:Yw,create:Xw,scope:Qw}=Q("time-select"),Gw=Xw({components:{[fe.name]:fe},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(Qw),o=t.computed(()=>({[Yw]:!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}}}),Zw={class:"fox-time-select__title"},Jw={class:"fox-time-select__title__fixed"},_w={key:0},eN={class:"fox-time-select__content"},tN={class:"fox-time-select__content__pannel"},nN={class:"fox-time-select__content__detail"};function oN(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",Zw,[t.createElementVNode("view",Jw,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",_w,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",eN,[t.createElementVNode("view",tN,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",nN,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Ba=oe(Gw,[["render",oN]]),{componentName:lN,create:aN}=Q("time-pannel"),rN=aN({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(()=>({[lN]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function sN(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 Aa=oe(rN,[["render",sN]]),{componentName:iN,create:cN}=Q("time-detail"),dN=cN({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(()=>({[iN]:!0})),s=m=>{let p=l.currentTime.find(d=>d.key==l.currentKey);if(p)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":p.list.filter(d=>d===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}}}),uN={class:"fox-time-detail__detail fox-time-detail__detail--moring"},fN={class:"fox-time-detail__detail__list"},mN=["onClick"];function pN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",uN,[t.createElementVNode("view",fN,[(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,mN))),128))])])],2)}const Ta=oe(dN,[["render",pN]]),{componentName:bA,create:hN,scope:gN}=Q("sku-header"),yN=hN({props:{goods:{type:Object,default:{}}},emits:[],components:{[Ze.name]:Ze},setup(e,{emit:n,slots:a}){const{t:o}=re.useFoxI18n(gN);return{getSlots:r=>a[r],t:o}}}),bN={class:"fox-sku-header"},kN=["src"],SN={class:"fox-sku-header-right"},CN={key:3,class:"fox-sku-header-right-extra"};function wN(e,n,a,o,l,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",bN,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,kN),t.createElementVNode("view",SN,[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",CN,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const NN=oe(yN,[["render",wN]]),{componentName:kA,create:BN}=Q("sku-select"),AN=BN({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})}}}}),TN={class:"fox-sku-select"},$N={class:"fox-sku-select-item-title"},VN={class:"fox-sku-select-item-skus"},EN=["onClick"];function DN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",TN,[(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",$N,t.toDisplayString(s.name),1),t.createElementVNode("view",VN,[(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,EN))),128))])]))),128))])}const IN=oe(AN,[["render",DN]]),{componentName:SA,create:xN}=Q("sku-stepper"),qN=xN({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:{[_e.name]:_e},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&<(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),vN={class:"fox-sku-stepper"},MN={class:"fox-sku-stepper-title"},PN=["innerHTML"],LN={class:"fox-sku-stepper-count"};function zN(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",vN,[t.createElementVNode("view",MN,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,PN),t.createElementVNode("view",LN,[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 FN=oe(qN,[["render",zN]]),{componentName:CA,create:RN}=Q("sku-operate"),ON=RN({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]}}}),KN={key:0,class:"fox-sku-operate"},UN={key:0,class:"fox-sku-operate-desc"},HN={key:1,class:"fox-sku-operate-btn"},jN=["onClick"];function WN(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",KN,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",UN,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",HN,[(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,jN))),128))]))])):t.createCommentVNode("",!0)}const YN=oe(ON,[["render",WN]]),{componentName:wA,create:XN,scope:QN}=Q("sku"),GN=XN({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:NN,SkuSelect:IN,SkuStepper:FN,SkuOperate:YN,[fe.name]:fe},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=re.useFoxI18n(QN),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,b=>{r.value=b}),t.watch(()=>r.value,b=>{b==!1&&S()}),t.onMounted(()=>{});const i=b=>a[b],c=b=>{n("select-sku",b)},m=b=>{s.value=b,n("change-stepper",b)},p=b=>{n("add",b)},d=b=>{n("reduce",b)},h=b=>{n("over-limit",b)},k=b=>{n("click-btn-operate",{type:b,value:s.value})},y=b=>{b=="icon"&&n("click-close-icon"),b=="overlay"&&n("click-overlay"),b=="close"&&n("close"),r.value=!1},S=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:y,selectSku:c,changeStepper:m,stepperOverLimit:h,clickBtnOperate:k,add:p,reduce:d,getSlots:i,...l}}}),ZN={class:"fox-sku"},JN={class:"fox-sku-content"};function _N(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]=d=>e.showPopup=d),onClickCloseIcon:n[1]||(n[1]=d=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=d=>e.closePopup("overlay")),onClose:n[3]||(n[3]=d=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",ZN,[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",JN,[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=oe(GN,[["render",_N]]),{create:eB}=Q("card"),tB=eB({components:{[Ze.name]:Ze,[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]}}}),nB={class:"fox-card"},oB={class:"fox-card__left"},lB=["src"],aB={class:"fox-card__right"},rB={class:"fox-card__right__title"},sB={key:0,class:"fox-card__right__price"},iB={class:"fox-card__right__other"},cB={class:"fox-card__right__shop"},dB={class:"fox-card__right__shop__name"};function uB(e,n,a,o,l,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",nB,[t.createElementVNode("div",oB,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,lB)]),t.createElementVNode("div",aB,[t.createElementVNode("div",rB,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",sB,[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",iB,[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",cB,[t.createElementVNode("div",dB,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Va=oe(tB,[["render",uB]]),{create:fB,scope:mB}=Q("ecard"),pB=fB({components:{[_e.name]:_e},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(mB),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")},d=h=>{s.value=h,n("changeStep",s.value,l.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:d,change:m,inputClick:p,stepValue:s,currentIndex:o,inputValue:r,money:i,t:a}}}),hB={class:"fox-ecard"},gB={class:"fox-ecard__title"},yB={class:"fox-ecard__list"},bB=["onClick"],kB={class:"fox-ecard__list__input--con"},SB=["placeholder"],CB={class:"fox-ecard__list__step"};function wB(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",hB,[t.createElementVNode("view",gB,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",yB,[(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,bB))),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",kB,[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,SB),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",CB,[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 Ea=oe(pB,[["render",wB]]),{create:NB,scope:BB}=Q("address-list-item"),AB=NB({components:{Del:le.Del,Edit:le.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(BB);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}}}),TB={class:"fox-address-list-item__info"},$B={class:"fox-address-list-item__info-contact"},VB={class:"fox-address-list-item__info-contact-name"},EB={class:"fox-address-list-item__info-contact-tel"},DB={key:0,class:"fox-address-list-item__info-contact-default"},IB={class:"fox-address-list-item__info-handle"},xB={class:"fox-address-list-item__addr"};function qB(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",TB,[t.createElementVNode("div",$B,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",VB,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",EB,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",DB,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",IB,[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",xB,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const zs=oe(AB,[["render",qB]]),{create:vB}=Q("address-list-general"),MB=vB({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:zs,[Pe.name]:Pe,[Kt.name]:Kt},setup(e,{emit:n}){const a=()=>t.h(zs,{item:e.item,onDelIcon(T){s(T)},onEditIcon(T){i(T)},onClickItem(T){c(T)}});let o=null;const l=t.ref(!1),r=t.ref(!1),s=T=>{n("delIcon",T,e.item),T.stopPropagation()},i=T=>{n("editIcon",T,e.item),T.stopPropagation()},c=T=>{l.value||(n("clickItem",T,e.item),T.stopPropagation())},m=T=>{n("longDel",T,e.item),T.stopPropagation()},p=T=>{o=0,r.value=!0,n("longDown",T,e.item)};return{renderCompontent:a,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:m,holddownstart:T=>{o=setTimeout(()=>{p(T)},300)},holddownmove:()=>{clearTimeout(o)},holddownend:()=>{clearTimeout(o)},copyCLick:T=>{n("longCopy",T,e.item),T.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:T=>{n("longSet",T,e.item),T.stopPropagation()},maskClick:T=>{o!=0&&(r.value=!1),T.stopPropagation(),T.preventDefault()},swipeDelClick:T=>{n("swipeDel",T,e.item),T.stopPropagation()},swipestart:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),PB={key:0,class:"fox-address-list-general"},LB={class:"fox-address-list-swipe"};function zB(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",LB,[(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",PB,[(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 FB=oe(MB,[["render",zB]]),{componentName:RB,create:OB,scope:KB}=Q("address-list"),UB=OB({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:FB,[Pe.name]:Pe},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(KB),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[RB]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(S=>nr(l,S,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(S,b)=>{n("delIcon",S,b),S.stopPropagation()},c=(S,b)=>{n("editIcon",S,b),S.stopPropagation()},m=(S,b)=>{n("clickItem",S,b),S.stopPropagation()},p=(S,b)=>{n("longCopy",S,b),S.stopPropagation()},d=(S,b)=>{n("longSet",S,b),S.stopPropagation()},h=(S,b)=>{n("longDel",S,b),S.stopPropagation()},k=(S,b)=>{n("swipeDel",S,b),S.stopPropagation()},y=S=>{n("add",S),S.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:m,clickLongCopy:p,clickLongSet:d,clickLongDel:h,clickSwipeDel:k,addAddress:y,dataArray:o,t:a}}});function HB(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=oe(UB,[["render",HB]]),{componentName:NA,create:jB}=Q("category"),WB=jB({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}}}),YB={class:"fox-category"},XB={class:"fox-category__cateList"},QB={key:0},GB=["onClick"];function ZB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",YB,[t.createElementVNode("div",XB,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",QB,[(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,GB)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const Ia=oe(WB,[["render",ZB]]),{componentName:BA,create:JB}=Q("category-pane"),_B=JB({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),e2={class:"fox-category-pane"},t2={key:0,class:"fox-category-pane__cateListRight"},n2={class:"fox-category-pane__childTitle"},o2={key:0,class:"fox-category-pane__childItemList"},l2=["onClick"],a2=["src"],r2={class:"fox-category-pane__skuImg"},s2={key:1,class:"fox-category-pane__cateListRight"},i2={class:"fox-category-pane__childTitle"},c2={key:0,class:"fox-category-pane__childItemList"},d2=["onClick"],u2={class:"fox-category-pane__skuName"},f2={key:2,class:"fox-category-pane__selfItemList"},m2=["onClick"];function p2(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",e2,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",t2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",n2,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",o2,[(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,a2),t.createElementVNode("div",r2,t.toDisplayString(c?.catName),1)],8,l2))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",s2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",i2,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",c2,[(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",u2,t.toDisplayString(c?.catName),1)],8,d2))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",f2,[(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,m2))),128))])):t.createCommentVNode("",!0)])}const xa=oe(_B,[["render",p2]]),{componentName:AA,create:h2}=Q("comment-header"),g2=h2({components:{[Ct.name]:Ct},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),y2={class:"fox-comment-header__user"},b2={class:"fox-comment-header__user-avter"},k2=["src"],S2={class:"fox-comment-header__user-score"},C2={key:0,class:"fox-comment-header__time"};function w2(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",y2,[t.createElementVNode("view",b2,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,k2)):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",S2,[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",C2,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 N2=oe(g2,[["render",w2]]),{componentName:TA,create:B2}=Q("comment-images"),A2=B2({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:le.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}}}),T2=["onClick"],$2=["src"],V2=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),E2=["onClick"],D2=["src"],I2={key:0,class:"fox-comment-images__mask"};function x2(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,$2),V2],8,T2))),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,D2),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",I2,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,E2)):t.createCommentVNode("",!0)],64))),128))],2)}const q2=oe(A2,[["render",x2]]),{componentName:$A,create:v2,scope:M2}=Q("comment-bottom"),P2=v2({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:le.Fabulous,Comment:le.Comment,MoreX:le.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(M2),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}}}),L2={class:"fox-comment-bottom"},z2={key:0},F2={class:"fox-comment-bottom__cpx"},R2=["onClick"];function O2(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",L2,[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",z2,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",F2,[(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:d=>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]=d=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,R2))),128))])])}const K2=oe(P2,[["render",O2]]),{componentName:U2,create:H2,scope:j2}=Q("comment"),W2=H2({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:N2,CommentImages:q2,CommentBottom:K2,Right:le.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(j2),o=t.computed(()=>({[U2]:!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}}}),Y2=["innerHTML"],X2={class:"fox-comment__follow-title"},Q2={class:"fox-comment__follow-com"},G2={key:0,class:"fox-comment__follow-img"};function Z2(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,Y2),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",X2,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",Q2,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",G2,[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 qa=oe(W2,[["render",Z2]]),J2=[Co,No,Bo,Ao,Vo,we,Io,xo,qo,vo,Po,$n,Oo,Uo,Yo,Qo,zn,Fn,Go,On,Kn,Jo,el,yt,tl,ol,Qn,al,sl,En,Dn,In,dl,ul,fl,ct,ml,pl,hl,gl,yl,bl,Pe,kl,Sl,st,fe,Cl,wl,Nl,Bl,zt,Al,Tl,$l,Vl,El,Dl,Il,xl,ql,Ft,vl,Ml,Pl,Ll,zl,Fl,Rl,Rt,Wn,xn,Ln,Mn,_e,Ct,bt,Ol,Kl,Ul,Kt,Hl,jl,Wl,Ut,jn,Yl,Gl,Hn,Bt,_l,ea,Qt,ta,na,Ot,oa,la,aa,At,ra,sa,Tt,$t,Ze,Jn,ca,da,ua,Gt,Zt,fa,ma,pa,ha,ga,ya,ba,ka,Sa,Ca,wa,Na,Ba,Aa,Ta,$a,Va,Ea,Da,Ia,xa,qa],_2=new bi(J2,"4.0.0");N.ActionSheet=Hl,N.ActionsheetItem=al,N.ActionsheetPane=Qn,N.Address=Ca,N.AddressList=Da,N.Animate=ya,N.Audio=_l,N.AudioOperate=ea,N.Avatar=Qt,N.AvatarGroup=ta,N.BackTop=jl,N.Badge=ua,N.Barrage=wa,N.Broadcast=po,N.BroadcastKey=Ce,N.Button=Pe,N.Calendar=Ln,N.CalendarItem=Qo,N.Card=Va,N.Cascader=xn,N.CascaderItem=Uo,N.Category=Ia,N.CategoryPane=xa,N.Cell=kl,N.CellGroup=Sl,N.Checkbox=On,N.CheckboxGroup=Kn,N.CheckboxItem=Jo,N.CircleProgress=oa,N.Col=Nl,N.Collapse=ma,N.CollapseItem=pa,N.Comment=qa,N.Content=Ao,N.CountDown=da,N.CountUp=ca,N.DataItemsKey=mt,N.DateItem=Yo,N.DatePicker=Mn,N.DateUtils=ae,N.Dialog=Ut,N.Divider=Al,N.Domain=dn,N.DomainKey=qe,N.DomainProvider=yl,N.Drag=Wl,N.Dropdown=pl,N.Ecard=Ea,N.Elevator=Ft,N.Ellipsis=ga,N.Empty=aa,N.FixedNav=El,N.FloatingButton=ul,N.FooterBar=Bo,N.FoxActionSheet=Hl,N.FoxActionsheetItem=al,N.FoxActionsheetPane=Qn,N.FoxAddress=Ca,N.FoxAddressList=Da,N.FoxAnimate=ya,N.FoxAudio=_l,N.FoxAudioOperate=ea,N.FoxAvatar=Qt,N.FoxAvatarGroup=ta,N.FoxBackTop=jl,N.FoxBadge=ua,N.FoxBarrage=wa,N.FoxButton=Pe,N.FoxCalendar=Ln,N.FoxCalendarItem=Qo,N.FoxCard=Va,N.FoxCascader=xn,N.FoxCascaderItem=Uo,N.FoxCategory=Ia,N.FoxCategoryPane=xa,N.FoxCell=kl,N.FoxCellGroup=Sl,N.FoxCheckbox=On,N.FoxCheckboxGroup=Kn,N.FoxCheckboxItem=Jo,N.FoxCircleProgress=oa,N.FoxCol=Nl,N.FoxCollapse=ma,N.FoxCollapseItem=pa,N.FoxComment=qa,N.FoxContent=Ao,N.FoxCountDown=da,N.FoxCountUp=ca,N.FoxDateItem=Yo,N.FoxDatePicker=Mn,N.FoxDialog=Ut,N.FoxDivider=Al,N.FoxDomainProvider=yl,N.FoxDrag=Wl,N.FoxDropdown=pl,N.FoxEcard=Ea,N.FoxElevator=Ft,N.FoxEllipsis=ga,N.FoxEmpty=aa,N.FoxFixedNav=El,N.FoxFloatingButton=ul,N.FoxFooterBar=Bo,N.FoxGrid=Tl,N.FoxGridItem=$l,N.FoxGroup=Vo,N.FoxHeaderBar=No,N.FoxHintText=yt,N.FoxImage=Cl,N.FoxImagePreview=Jn,N.FoxIndicator=Ll,N.FoxInfiniteLoading=jn,N.FoxInputItem=qo,N.FoxInputNumber=_e,N.FoxInputnumberItem=sl,N.FoxItem=we,N.FoxLayout=wl,N.FoxLinkItem=tl,N.FoxList=na,N.FoxMapping=gl,N.FoxMenu=Dl,N.FoxMenuItem=Il,N.FoxMessageBox=ct,N.FoxMoneyItem=vo,N.FoxMoreButton=fl,N.FoxNavbar=Vl,N.FoxNoticeBar=la,N.FoxNotify=Gl,N.FoxNumberKeyboard=Ul,N.FoxOverLay=st,N.FoxPage=Co,N.FoxPagination=vl,N.FoxPicker=bt,N.FoxPickerItem=Oo,N.FoxPopover=Zt,N.FoxPopup=fe,N.FoxPopupWrapper=ml,N.FoxPrice=Ze,N.FoxProgress=Ot,N.FoxPullRefresh=Yl,N.FoxRadio=zn,N.FoxRadioGroup=Fn,N.FoxRadioItem=Go,N.FoxRange=Rt,N.FoxRate=Ct,N.FoxRateItem=ol,N.FoxRollingProvider=bl,N.FoxRow=Bl,N.FoxRowItem=Io,N.FoxSearchBar=Wn,N.FoxShortPassword=Ol,N.FoxSideNavBar=zl,N.FoxSideNavBarItem=Fl,N.FoxSignature=Na,N.FoxSkeleton=fa,N.FoxSku=$a,N.FoxSlotItem=xo,N.FoxStep=sa,N.FoxSteps=ra,N.FoxStepsBar=dl,N.FoxSticky=zt,N.FoxSubSideNavBar=Rl,N.FoxSwipe=Kt,N.FoxSwiper=Tt,N.FoxSwiperItem=$t,N.FoxSwitch=Hn,N.FoxSwitchItem=el,N.FoxTabPane=Pl,N.FoxTabbar=xl,N.FoxTabbarItem=ql,N.FoxTable=ha,N.FoxTabs=Ml,N.FoxTabsBar=En,N.FoxTabsContainer=Dn,N.FoxTabsPane=In,N.FoxTag=Gt,N.FoxText=hl,N.FoxTextarea=$n,N.FoxTextareaItem=Po,N.FoxTimeDetail=Ta,N.FoxTimePannel=Aa,N.FoxTimeSelect=Ba,N.FoxToast=Bt,N.FoxTour=Sa,N.FoxTrendArrow=ka,N.FoxUploader=Kl,N.FoxVideo=At,N.FoxWaterMark=ba,N.Grid=Tl,N.GridItem=$l,N.Group=Vo,N.HeaderBar=No,N.HintText=yt,N.Image=Cl,N.ImagePreview=Jn,N.Indicator=Ll,N.InfiniteLoading=jn,N.InputItem=qo,N.InputNumber=_e,N.InputnumberItem=sl,N.Item=we,N.Layout=wl,N.LinkItem=tl,N.List=na,N.Mapping=gl,N.Menu=Dl,N.MenuItem=Il,N.MessageBox=ct,N.MoneyItem=vo,N.MoreButton=fl,N.Navbar=Vl,N.NoticeBar=la,N.Notify=Gl,N.NumberKeyboard=Ul,N.OverLay=st,N.Page=Co,N.Pagination=vl,N.Picker=bt,N.PickerItem=Oo,N.Popover=Zt,N.Popup=fe,N.PopupWrapper=ml,N.Price=Ze,N.PriorityPolicy=gn,N.Progress=Ot,N.PullRefresh=Yl,N.Radio=zn,N.RadioGroup=Fn,N.RadioItem=Go,N.Range=Rt,N.Rate=Ct,N.RateItem=ol,N.RollingProvider=bl,N.Row=Bl,N.RowItem=Io,N.SearchBar=Wn,N.ShortPassword=Ol,N.SideNavBar=zl,N.SideNavBarItem=Fl,N.Signature=Na,N.Skeleton=fa,N.Sku=$a,N.SlotItem=xo,N.Step=sa,N.Steps=ra,N.StepsBar=dl,N.Sticky=zt,N.SubSideNavBar=Rl,N.Swipe=Kt,N.Swiper=Tt,N.SwiperItem=$t,N.Switch=Hn,N.SwitchItem=el,N.TabPane=Pl,N.Tabbar=xl,N.TabbarItem=ql,N.Table=ha,N.Tabs=Ml,N.TabsBar=En,N.TabsContainer=Dn,N.TabsPane=In,N.Tag=Gt,N.Text=hl,N.Textarea=$n,N.TextareaItem=Po,N.TimeDetail=Ta,N.TimePannel=Aa,N.TimeSelect=Ba,N.Toast=Bt,N.Tour=Sa,N.TrendArrow=ka,N.UniqueID=An,N.Uploader=Kl,N.ValidateSchema=sr,N.ValidateSchemaKey=He,N.Video=At,N.WaterMark=ba,N.cancelRaf=Ma,N.clamp=Ue,N.clearNonNumber=fo,N.clone=co,N.compareTo=so,N.createBroadcast=an,N.createValidateSchema=sn,N.debounce=ft,N.debounceRef=ii,N.decimalLength=er,N.default=_2,N.defineBroadcast=Js,N.defineConfigDomain=cr,N.defineDataItem=ur,N.defineDomain=yo,N.defineItem=Be,N.definePageState=fr,N.deleteGlobalValidator=oi,N.disabledProperty=Ae,N.divide=ro,N.excludeProps=ut,N.extend=ot,N.floatData=nr,N.getGlobalValidateCheckEvents=lr,N.getGlobalValidateResetEvents=rr,N.getPageContentAreaHeight=pn,N.getPageContentAreaWidth=hn,N.getPageFooterAreaHeight=mn,N.getPageHeaderAreaHeight=fn,N.getRootDomain=pt,N.hasSymbol=Ya,N.includeProps=ke,N.indexOf=Gs,N.installRules=dr,N.integerLength=_a,N.isArray=tn,N.isArrayLike=Qa,N.isBrowser=nt,N.isDate=Ke,N.isESModule=js,N.isEmptyString=ue,N.isEqual=Me,N.isFunction=nn,N.isHidden=ln,N.isInnerPage=ui,N.isMap=Ks,N.isNil=Ha,N.isNumberString=Ja,N.isObject=$e,N.isPlainObject=io,N.isPromise=dt,N.isRegExp=Za,N.isSet=Us,N.isString=ja,N.isSubPage=fi,N.isSymbol=Hs,N.isTouch=Lo,N.isWindow=Xa,N.lastIndexOf=Zs,N.makeArray=Qs,N.merge=Ga,N.multiply=Oa,N.negate=Ka,N.nextTick=Ys,N.numberFormat=en,N.objectToString=Wa,N.once=ci,N.overrideGlobalValidateHandler=ti,N.padZero=at,N.preventDefault=mo,N.property=Te,N.raf=Oe,N.readonlyProperty=Ve,N.setGlobalValidateCheckEvents=li,N.setGlobalValidateHandler=ei,N.setGlobalValidateMessages=ri,N.setGlobalValidateResetEvents=ai,N.setGlobalValidator=ni,N.throttle=cn,N.toBoolean=he,N.toNumber=me,N.toPadding=Le,N.toPx=ce,N.toPxDesc=ge,N.toTypeString=on,N.toValue=Ie,N.tryTimes=ho,N.typeOf=lt,N.unNumberFormat=Ua,N.updatePageState=bo,N.useBroadcast=Dt,N.useDomain=je,N.useExpose=Ee,N.useInnerSize=bn,N.usePageState=un,N.usePosition=wr,N.useRawTouch=zo,N.useRect=De,N.useSize=wo,N.useTouch=Je,N.valueLength=be,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
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 Tl=oe(lg,[["render",ag]]),{create:rg}=Q("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=De(a),d=o.value,h=De(d),S=De(m);l.height=p.height;const y=()=>{let b=!1;if(e.position==="top")b=m?r.value>p.top&&S.bottom>0:r.value>p.top;else{const f=document.documentElement.clientHeight;b=m?S.bottom>0&&f-r.value-h.height>S.top:f-r.value<p.bottom}return b},k=()=>{if(m)if(e.position==="top"){const b=S.bottom-r.value-h.height;return b<0?b:0}else{const b=document.documentElement.clientHeight,f=S.bottom-(b-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(),rl(a.value).addEventListener("scroll",c,!0)}),t.onUnmounted(()=>{rl(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 Ft=oe(sg,[["render",ig]]),{componentName:cg,create:dg}=Q("divider"),ug=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=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 Vl=oe(ug,[["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:Es}=Q("grid"),Ds=Symbol("grid"),gg={props:{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}},setup(e,{slots:n}){hg(Ds,`${Es}-item`)({props:e});const a=t.computed(()=>{const l=Es;return{[l]:!0,[`${l}--border`]:e.border&&!e.gutter}}),o=t.computed(()=>{const l={};return e.gutter&&(l.paddingLeft=ge(e.gutter)),l});return()=>t.h("view",{class:a.value,style:o.value},n.default?.())}},{create:yg}=Q("grid"),$l=yg(gg);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:Is}=Q("grid-item"),Sg=kg({props:{text:{type:String}},emits:["click"],setup(e,{emit:n}){const a=bg(Ds);if(!a.parent)return{};const o=a.index,l=a.parent.props,r=t.computed(()=>({[Is]:!0})),s=t.computed(()=>{const m={flexBasis:`${100/+l.columnNum}%`};return l.square?m.paddingTop=`${100/+l.columnNum}%`:l.gutter&&(m.paddingRight=ge(l.gutter),o.value>=l.columnNum&&(m.marginTop=ge(l.gutter))),m}),i=t.computed(()=>{const m=`${Is}__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=oe(Sg,[["render",wg]]),{componentName:Ng,create:Bg}=Q("navbar"),Ag=Bg({components:{Left:le.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 b=Ng;return{[b]:!0,[`${b}--border`]:a.value,[`${b}--fixed`]:o.value,[`${b}--safe-area-inset-top`]:l.value}}),d=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 S(){n("on-click-title")}function y(){n("on-click-icon")}function k(){n("on-click-right")}return{navBarWrap:i,navBarHtml:c,classes:p,styles:d,handleLeft:h,handleCenter:S,handleCenterIcon:y,handleRight:k}}}),Tg={key:0,class:"fox-navbar--placeholder",ref:"navBarWrap"},Vg={key:1,class:"fox-navbar__text"},$g={class:"fox-navbar__title"},Eg={key:0,class:"fox-navbar__text"},Dg={key:1,class:"fox-navbar__text"},Ig={class:"fox-navbar__title"},xg={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",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",Vg,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",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",xg,t.toDisplayString(e.desc),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"right")])],6))}const Dl=oe(Ag,[["render",qg]]),vg=(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:(d=!o.visible)=>{l("update:visible",d)},selected:(d,h)=>{l("selected",{item:d,event:h}),c.value=d.id},current:c}}}),{componentName:Mg,create:Pg,scope:Lg}=Q("fixednav"),zg=Pg(vg(Mg,Lg,{[st.name]:st,Left:le.Left})),Fg={class:"fox-fixednav__list"},Rg=["onClick"],Og=["src"],Kg={class:"span"},Ug={key:0,class:"b"},Hg={class:"text"};function jg(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",Fg,[(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,Og),t.createElementVNode("view",Kg,t.toDisplayString(c.text),1),c.num?(t.openBlock(),t.createElementBlock("view",Ug,t.toDisplayString(c.num),1)):t.createCommentVNode("",!0)],10,Rg))),128))])]),t.createElementVNode("div",{class:"fox-fixednav__btn",onClick:n[1]||(n[1]=c=>e.updateValue())},[t.renderSlot(e.$slots,"btn",{},()=>[t.createVNode(i,{color:"#fff"}),t.createElementVNode("view",Hg,t.toDisplayString(e.visible?e.activeText:e.unActiveText),1)])])],6)}const Il=oe(zg,[["render",jg]]),{componentName:Wg,create:Yg}=Q("menu"),Xg=Yg({components:{ArrowUp2:le.ArrowUp2,ArrowDown2:le.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 b=t.reactive([]),f=t.reactive([]);return{children:b,linkChildren:g=>{const w=C=>{C.proxy&&(f.push(C),b.push(C.proxy))},T=C=>{if(C.proxy){let A=f.indexOf(C);A>-1&&f.splice(A,1);let V=b.indexOf(C.proxy);A>-1&&b.splice(V,1)}};t.provide("menuParent",Object.assign({removeLink:T,link:w,children:b,internalChildren:f},g))}}},{children:i,linkChildren:c}=s(),m=t.computed(()=>i.some(b=>b.state.showWrapper)),p=t.computed(()=>({[Wg]:!0,"scroll-fixed":r.value})),d=()=>{if(o.value){const b=De(o);e.direction==="down"?l.value=b.bottom:l.value=window.innerHeight-b.top}};c({props:e,offset:l});const h=b=>{i.forEach((f,u)=>{u===b?(d(),f.toggle()):f.state.showPopup&&f.toggle(!1,{immediate:!0})})},S=b=>Math.max(0,"scrollTop"in b?b.scrollTop:b.pageYOffset),y=()=>{const{scrollFixed:b}=e,f=S(window);r.value=f>(typeof b=="boolean"?30:Number(b))},k=b=>{let f="";const{titleClass:u}=e;return b&&(f+="active"),u&&(f+=` ${u}`),f};return t.onMounted(()=>{const{scrollFixed:b}=e;b&&window.addEventListener("scroll",y)}),t.onUnmounted(()=>{const{scrollFixed:b}=e;b&&window.removeEventListener("scroll",y)}),{toggleItem:h,children:i,opened:m,classes:p,barRef:o,getClasses:k}}}),Qg=["onClick"],Gg={class:"fox-menu__title-text"},Zg={class:"fox-menu__title-icon"};function Jg(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",Gg,t.toDisplayString(c.renderTitle()),1),t.createElementVNode("span",Zg,[t.renderSlot(e.$slots,"icon",{},()=>[e.direction==="up"?(t.openBlock(),t.createBlock(s,{key:0})):(t.openBlock(),t.createBlock(i,{key:1}))])])],2)],14,Qg))),128))],2),t.renderSlot(e.$slots,"default")],2)}const xl=oe(Xg,[["render",Jg]]),{componentName:_g,create:ey}=Q("menu-item"),ty=ey({props:{title:String,options:{type:Array,default:[]},disabled:{type:Boolean,default:!1},modelValue:null,cols:{type:Number,default:1},activeTitleClass:String,inactiveTitleClass:String,optionIcon:{type:String,default:"Check"}},components:{[fe.name]:fe,Check:le.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 S=t.inject("menuParent",null);if(S){const y=t.getCurrentInstance(),{link:k,removeLink:b}=S;return k(y),t.onUnmounted(()=>{b(y)}),{parent:S}}},{parent:r}=l(),s=t.computed(()=>({[_g]:!0})),i=t.computed(()=>{const S={height:r.offset.value+"px"};return r.props.direction==="down"?S:{...S,top:"auto"}});return{classes:s,placeholderElementStyle:i,renderTitle:()=>{if(e.title)return e.title;const S=e.options?.find(y=>y.value===e.modelValue);return S?S.text:""},state:o,parent:r,toggle:(S=!o.showPopup,y={})=>{S!==o.showPopup&&(o.showPopup=S,o.isShowPlaceholderElement=S,S&&(o.showWrapper=!0,n("open")))},onClick:S=>{o.showPopup=!1,o.isShowPlaceholderElement=!1,S.value!==e.modelValue&&(n("update:modelValue",S.value),n("change",S.value))},handleClose:()=>{n("close"),o.showWrapper=!1,o.isShowPlaceholderElement=!1},handleClickOutside:()=>{o.showPopup=!1,n("close")}}}}),ny={class:"fox-menu-item__content fox-menu-item__overflow"},oy=["onClick"];function ly(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",ny,[(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,oy))),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=oe(ty,[["render",ly]]),{create:ay}=Q("tabbar"),ry=ay({props:{modelValue:{type:[Number,String],default:0},bottom:{type:Boolean,default:!1},size:{type:[String,Number],default:"20px"},inactiveColor:{type:String,default:""},activeColor:{type:String,default:""},safeAreaInsetBottom:{type:Boolean,default:!1}},emits:["change","update:modelValue"],setup(e,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 sy(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 vl=oe(ry,[["render",sy]]),{create:iy}=Q("tabbar-item"),cy=iy({props:{title:{type:String,default:""},icon:{type:Object},num:{type:String,default:""},activeImg:{type:String,default:""},img:{type:String,default:""},dot:{type:Boolean,default:!1}},setup(e,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 d=Object.assign(m.proxy,{index:p});a.children.push(d)}})(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"},uy={key:0,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_num"},fy={key:1,class:"fox-tabbar-item_icon-box_tips fox-tabbar-item_icon-box_nums"},my={key:1,class:"fox-tabbar-item_icon-box_dot"},py={key:2},hy={key:0};function gy(e,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",uy,t.toDisplayString(e.num),1)):e.num&&e.num>100?(t.openBlock(),t.createElementBlock("view",fy,t.toDisplayString("99+"))):t.createCommentVNode("",!0)],64)),e.dot?(t.openBlock(),t.createElementBlock("div",my)):t.createCommentVNode("",!0),e.icon?(t.openBlock(),t.createElementBlock("view",py,[(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.icon),{class:"fox-tabbar-item_icon-box_icon",width:e.state.size,height:e.state.size},null,8,["width","height"]))])):t.createCommentVNode("",!0),!e.icon&&e.activeImg?(t.openBlock(),t.createElementBlock("div",{key:3,class:"fox-tabbar-item_icon-box_icon",style:t.normalizeStyle({backgroundImage:`url(${e.active?e.activeImg:e.img})`,width:e.state.size,height:e.state.size})},null,4)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:t.normalizeClass(["fox-tabbar-item_icon-box_nav-word",{"fox-tabbar-item_icon-box_big-word":!e.icon&&!e.activeImg}])},[e.title?(t.openBlock(),t.createElementBlock("view",hy,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),e.title?t.createCommentVNode("",!0):t.renderSlot(e.$slots,"default",{key:1})],2)])],6)}const Ml=oe(cy,[["render",gy]]),{componentName:yy,create:by}=Q("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(()=>({[yy]:!0})),r=t.computed(()=>({transform:`translate3d(0, ${o.scrollY+o.fixedTop}px, 0)`})),s=t.computed(()=>a.value.clientHeight),i=(f,u)=>f.getAttribute("data-"+u),c=f=>{t.nextTick(()=>{!o.listGroup.includes(f)&&f!=null&&o.listGroup.push(f)})},m=()=>{let f=0;o.listHeight.push(f);for(let u=0;u<o.listGroup.length;u++){let g=o.listGroup[u];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]))},d=f=>{o.scrollStart=!0;let u=i(f.target,"index"),g=f.touches[0];o.touchState.y1=g.pageY,o.anchorIndex=+u,o.codeIndex=+u,p(+u)},h=f=>{let u=f.touches[0];o.touchState.y2=u.pageY;let g=(o.touchState.y2-o.touchState.y1)/e.spaceHeight|0;o.codeIndex=o.anchorIndex+g,p(o.codeIndex)},S=()=>{o.scrollStart=!1},y=(f,u)=>{n.emit("click-item",f,u),o.currentData=u,o.currentKey=f},k=f=>{n.emit("click-index",f)},b=f=>{let g=f.target.scrollTop;const w=o.listHeight;o.scrollY=g;for(let T=0;T<w.length-1;T++){let C=w[T],A=w[T+1];if(o.scrollY>=C&&o.scrollY<A){o.currentIndex=T,o.diff=A-o.scrollY;return}}o.currentIndex=w.length-2};return t.onMounted(()=>{a.value.addEventListener("scroll",b)}),Ee({scrollTo:p}),t.watch(()=>o.listGroup.length,()=>{o.listHeight=[],t.nextTick(m)}),t.watch(()=>o.diff,f=>{const u=o.listHeight;let g=f>0&&f<e.titleHeight?f-e.titleHeight:0;o.scrollY+s.value===u[u.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:d,touchMove:h,touchEnd:S,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 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",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 Rt=oe(ky,[["render",Ty]]),{componentName:fA,create:Vy,scope:$y}=Q("pagination"),Ey=Vy({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:S,itemsPerPage:y}=t.toRefs(e),k=+h.value||Math.ceil(+S.value/+y.value);return Math.max(1,k)}),m=(h,S)=>{h>c.value||h<1||(h!=l.value&&n("update:modelValue",h),S&&n("change",h))},p=(h,S,y=!1)=>({number:h,text:S,active:y}),d=t.computed(()=>{if(r.value=="simple")return;let h=[];const S=c.value,y=+s.value;let k=1,b=S;const f=S>y;f&&(k=Math.max(l.value-Math.floor(y/2),1),b=k+y-1,b>S&&(b=S,k=b-y+1));for(var u=k;u<=b;u++){const g=p(u,u,l.value==u);h.push(g)}if(f&&y>0&&i.value){if(k>1){const g=p(k-1,"...");h.unshift(g)}if(b<S){const g=p(b+1,"...");h.push(g)}}return h});return t.watchEffect(()=>{m(l.value,!1)}),{...o,modelValue:l,select:m,countRef:c,mode:r,pages:d,forceEllipses:i}}}),Dy={class:"fox-pagination"},Iy={key:0,class:"fox-pagination-contain"},xy=["onClick"],qy={key:1,class:"fox-pagination-contain"},vy={class:"fox-pagination-simple"};function My(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,xy))),128))])):t.createCommentVNode("",!0),e.mode=="simple"?(t.openBlock(),t.createElementBlock("view",qy,[t.createElementVNode("view",vy,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 Pl=oe(Ey,[["render",My]]),Py=(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=Je();let m="";const p=(h,S)=>{let y=h;switch(e.direction=="horizontal"?(m=h>0?"right":"left",y=Math.abs(y)/r.value.width*100):(m=S>0?"bottom":"top",y=S,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 Ly{title="";titleSlot;paneKey="";disabled=!1;constructor(){}}const{create:zy}=Q("tabs"),Fy=zy({components:{[Ft.name]:Ft,JoySmile:le.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=E=>{E.forEach((B,P)=>{let L=B.type;if(L=L.name||L,L=="fox-tab-pane"){let D=new Ly;if(B.props?.title||B.props?.["pane-key"]||B.props?.paneKey){let I=lt(B.props?.["pane-key"]),U=I=="number"||I=="string"?String(B.props?.["pane-key"]):null,q=lt(B.props?.paneKey),Y=q=="number"||q=="string"?String(B.props?.paneKey):null;D.title=B.props?.title,D.paneKey=U||Y||String(P),D.disabled=B.props?.disabled}r.value.push(D)}else{if(B.children==" ")return;Array.isArray(B.children)&&s(B.children)}})},i=t.ref(e.modelValue||0),c=E=>{let B=r.value.findIndex(P=>P.paneKey==E);r.value.length==0||B==-1||(i.value=B)},m=t.computed(()=>e.titleScroll&&e.direction==="vertical"),p=t.ref(),d=t.ref([]),h=E=>{const B=p.value,P=d.value;if(!B||!P||!P[i.value])return;const L=P[i.value];let D=0;e.direction==="vertical"?D=L.offsetTop-B.offsetTop+10-(B.offsetHeight-L.offsetHeight)/2:D=L.offsetLeft-(B.offsetWidth-L.offsetWidth)/2,S(B,D,E?0:.3,e.direction)},S=(E,B,P,L)=>{let D=0;const I=L==="horizontal"?E.scrollLeft:E.scrollTop,U=P===0?1:Math.round(P*1e3/16);function q(){L==="horizontal"?E.scrollLeft+=(B-I)/U:E.scrollTop+=(B-I)/U,++D<U&&Oe(q)}q()},y=(E=a.default?.())=>{r.value=[],E=E?.filter(B=>typeof B.children!="string"),E&&E.length&&s(E),c(e.modelValue),t.nextTick(()=>{h()})},k=E=>{l=E.fixed};t.watch(()=>a.default?.(),E=>{y(E)});const b=()=>window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0;t.watch(()=>e.modelValue,E=>{if(c(E),h(),l){let B=De(o.value).top+b(),P=Math.ceil(B-e.top);window.scrollTo({top:P,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:E=>{n("update:modelValue",E.paneKey),n("change",E)},tabChange:(E,B)=>{n("click",E),!(E.disabled||i.value==B)&&(i.value=B,f.updateValue(E))},setTabItemRef:(E,B)=>{d.value[B]=E}},{tabsContentRef:u,touchState:g,touchMethods:w}=Py(e,f),T=t.computed(()=>{let E=i.value*100;g.moving&&(E+=g.offset);let B={transform:e.direction=="horizontal"?`translate3d(-${E}%, 0, 0)`:`translate3d( 0,-${E}%, 0)`,transitionDuration:g.moving?void 0:`${e.animatedTime}ms`};return e.animatedTime==0&&(B={}),B}),C=t.computed(()=>({background:e.background})),A=t.computed(()=>({color:e.type=="smile"?e.color:"",background:e.type=="line"?e.color:""})),V=t.computed(()=>{if(!e.titleGutter)return{};const E=ge(e.titleGutter);return e.direction==="vertical"?{marginTop:E,marginBottom:E}:{marginLeft:E,marginRight:E}}),$=t.computed(()=>a.fixedTitle);return{navRef:p,tabsContentRef:u,titles:r,contentStyle:T,tabsNavStyle:C,titleStyle:V,tabsActiveStyle:A,container:o,getScrollY:m,onStickyScroll:k,...f,...w,hasFixedTitle:$}}}),Ry=["onClick"],Oy={key:0,class:"fox-tabs__titles-fixed-item"},Ky=["onClick"],Uy={key:0,class:"fox-tabs__titles-fixed-item"};function Hy(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,Ry))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Oy,[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,Ky))),128)),e.hasFixedTitle?(t.openBlock(),t.createElementBlock("view",Uy,[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 Ll=oe(Fy,[["render",Hy]]),{create:jy}=Q("tab-pane"),Wy=jy({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 Yy(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 zl=oe(Wy,[["render",Yy]]),{componentName:xs,create:Xy}=Q("indicator"),Qy=Xy({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=xs;return{[l]:!0,[`${l}--block`]:n.value,[`${l}--align__${a.value}`]:n.value&&a.value}}),componentName:xs,padZero:at}}});function Gy(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 Fl=oe(Qy,[["render",Gy]]),{componentName:Zy,create:Jy}=Q("side-navbar"),_y=Jy({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(()=>({[Zy]:!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}}}),e0={class:"fox-side-navbar__content"},t0={class:"fox-side-navbar__content__list",ref:"list"};function n0(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",e0,[t.createElementVNode("view",t0,[t.renderSlot(e.$slots,"default")],512)])],2)}const Rl=oe(_y,[["render",n0]]),{componentName:o0,create:l0}=Q("side-navbar-item"),a0=l0({props:{title:{type:String,default:""},ikey:{type:String,default:""}},emits:["click"],setup:(e,n)=>({classes:t.computed(()=>({[o0]:!0})),handleClick:()=>{n.emit("click")}})}),r0=["ikey"],s0={class:"fox-side-navbar-item__title"};function i0(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",s0,t.toDisplayString(e.title),1)],10,r0)}const Ol=oe(a0,[["render",i0]]),{componentName:c0,create:d0}=Q("sub-side-navbar"),u0=d0({props:{title:{type:String,default:""},ikey:{type:[String,Number],default:""},open:{type:Boolean,default:!0}},components:{ArrowDown2:le.ArrowDown2,ArrowUp2:le.ArrowUp2},emits:["title-click"],setup:(e,n)=>{const a=t.reactive({direction:""}),o=t.computed(()=>({[c0]:!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}}}),f0=["ikey"],m0={class:"fox-sub-side-navbar__title__text"},p0={class:"fox-sub-side-navbar__title__icon"};function h0(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",m0,t.toDisplayString(e.title),1),t.createElementVNode("span",p0,[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,f0)}const Kl=oe(u0,[["render",h0]]),{componentName:g0,create:y0}=Q("range"),b0=y0({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=Je(),c=t.computed(()=>{const{marks:D,max:I,min:U}=e;return Object.keys(D).map(parseFloat).sort((j,J)=>j-J).filter(j=>j>=U&&j<=I)}),m=t.computed(()=>Number(e.max)-Number(e.min)),p=t.computed(()=>{const D=g0;return{[D]:!0,[`${D}-disabled`]:e.disabled,[`${D}-vertical`]:e.vertical,[`${D}-show-number`]:!e.hiddenRange}}),d=t.computed(()=>{const D="fox-range-container";return{[D]:!0,[`${D}-vertical`]:e.vertical}}),h=t.computed(()=>({background:e.inactiveColor})),S=t.computed(()=>({borderColor:e.buttonColor})),y=D=>!!e.range&&Array.isArray(D),k=()=>{const{modelValue:D,min:I}=e;return y(D)?`${(D[1]-D[0])*100/m.value}%`:`${(D-Number(I))*100/m.value}%`},b=()=>{const{modelValue:D,min:I}=e;return y(D)?`${(D[0]-Number(I))*100/m.value}%`:"0%"},f=t.computed(()=>e.vertical?{height:k(),top:b(),background:e.activeColor,transition:s.value?"none":void 0}:{width:k(),left:b(),background:e.activeColor,transition:s.value?"none":void 0}),u=D=>{const I="fox-range-mark",{modelValue:U,max:q,min:Y}=e;let j=Number(Y),J=Number(q);if(e.range){const[W,v]=U;j=W,J=v}else J=U;let ee=D<=J&&D>=j;return{[`${I}-text`]:!0,[`${I}-text-active`]:ee}},g=D=>{const{min:I,vertical:U}=e;let q={left:`${(D-Number(I))/m.value*100}%`};return U&&(q={top:`${(D-Number(I))/m.value*100}%`}),q},w=D=>{const{modelValue:I,max:U,min:q}=e;let Y=Number(q),j=Number(U);if(e.range){const[W,v]=I;Y=W,j=v}return{background:D<=j&&D>=Y?e.activeColor:e.inactiveColor}},T=D=>{const{min:I,max:U,step:q}=e;return D=Math.max(+I,Math.min(D,+U)),Math.round(D/+q)*+q},C=(D,I)=>JSON.stringify(D)===JSON.stringify(I),A=D=>D[0]>D[1]?D.slice(0).reverse():D,V=(D,I)=>{y(D)?D=A(D).map(T):D=T(D),C(D,e.modelValue)||n("update:modelValue",D),I&&!C(D,o)&&n("change",D)},$=D=>{if(e.disabled)return;const{min:I,modelValue:U}=e,q=De(r);let Y=D.clientX-q.left,j=q.width;e.vertical&&(Y=D.clientY-q.top,j=q.height);const J=Number(I)+Y/j*m.value;if(y(U)){const[ee,W]=U,v=(ee+W)/2;J<=v?V([J,W],!0):V([ee,J],!0)}else V(J,!0)},E=D=>{e.disabled||(i.start(D),l=e.modelValue,y(l)?o=l.map(T):o=T(l),s.value="start")},B=D=>{if(e.disabled)return;s.value==="start"&&n("drag-start"),i.move(D),s.value="draging";const I=De(r);let U=i.deltaX.value,q=I.width,Y=U/q*m.value;e.vertical&&(U=i.deltaY.value,q=I.height,Y=U/q*m.value),y(o)?l[a.value]=o[a.value]+Y:l=o+Y,V(l),D.stopPropagation(),D.preventDefault()},P=()=>{e.disabled||(s.value==="draging"&&(V(l,!0),n("drag-end")),s.value="")},L=D=>nn(e.modelValue)&&typeof D=="number"?e.modelValue[D]:Number(e.modelValue);return{root:r,classes:p,wrapperStyle:h,buttonStyle:S,onClick:$,onTouchStart:E,onTouchMove:B,onTouchEnd:P,...t.toRefs(e),barStyle:f,curValue:L,buttonIndex:a,containerClasses:d,markClassName:u,marksStyle:g,marksList:c,tickStyle:w}}}),k0={key:0,class:"fox-range-min"},S0={key:0,class:"fox-range-mark"},C0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax","onTouchstart"],w0={key:0,class:"number"},N0=["tabindex","aria-valuemin","aria-valuenow","aria-valuemax"],B0={key:0,class:"number"},A0={key:1,class:"fox-range-max"};function T0(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",k0,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",S0,[(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",w0,t.toDisplayString(e.curValue(s)),1))],4))],42,C0)),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",B0,t.toDisplayString(e.curValue()),1))],4))],40,N0))],4)],6),e.hiddenRange?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",A0,t.toDisplayString(+e.max),1))],2)}const Ot=oe(b0,[["render",T0]]),{create:V0,scope:$0}=Q("short-password"),E0=V0({components:{[fe.name]:fe,Tips:le.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($0),o=a(e,["title","desc","tips"]),l=t.ref(e.modelValue),r=t.computed(()=>m(Number(e.length))),s=t.ref(e.visible),i=d=>{d.stopPropagation(),n("focus")};t.watch(()=>e.visible,d=>{s.value=d}),t.watch(()=>e.modelValue,d=>{l.value=d,String(d).length===r.value&&n("complete",d)});const c=()=>{n("update:visible",!1),n("close")},m=d=>Math.min(Math.max(4,d),6);return{comLen:r,realInput:l,onTouchStart:i,range:m,close:c,onTips:()=>{n("tips")},show:s,...o}}}),D0={class:"fox-short-password-title"},I0={class:"fox-short-password-subtitle"},x0={class:"fox-short-password-wrapper"},q0={key:0,class:"fox-short-password__item-icon"},v0={class:"fox-short-password__message"},M0={class:"fox-short-password--error"},P0={key:0,class:"fox-short-password--forget"};function L0(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",D0,t.toDisplayString(e.title),1),t.createElementVNode("view",I0,t.toDisplayString(e.desc),1),t.createElementVNode("div",x0,[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",q0)):t.createCommentVNode("",!0)]))),128))],32)]),t.createElementVNode("view",v0,[t.createElementVNode("view",M0,t.toDisplayString(e.errorMsg),1),e.tips?(t.openBlock(),t.createElementBlock("view",P0,[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 Ul=oe(E0,[["render",L0]]);class z0{url="";name="file";fileType="image";formData;sourceFile;method="post";xhrState=200;timeout=30*1e3;headers={};withCredentials=!1;onStart;taroFilePath;onProgress;onSuccess;onFailure;beforeXhrUpload}let F0=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 R0{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);dt(l)?l.then(r=>{r?a(r):o&&o()}).catch(()=>{}):l?a():o&&o()}else a()},{create:O0}=Q("progress"),K0=O0({components:{Checked:le.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}}}),U0={class:"fox-progress"},H0={key:0,class:"fox-progress-text"};function j0(e,n,a,o,l,r){const s=t.resolveComponent("Checked");return t.openBlock(),t.createElementBlock("div",U0,[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",H0,[e.status=="active"||e.status==""?(t.openBlock(),t.createElementBlock("span",{key:0,style:t.normalizeStyle(e.textStyle)},t.toDisplayString(e.percentage)+t.toDisplayString(e.isShowPercentage?"%":""),5)):e.status=="icon"?t.renderSlot(e.$slots,"icon-name",{key:1},()=>[t.createVNode(s,{width:"15px",height:"15px",color:"#439422"})]):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)])}const Kt=oe(K0,[["render",j0]]),{componentName:W0,create:Y0,scope:X0}=Q("uploader"),Q0=Y0({components:{[Kt.name]:Kt,Photograph:le.Photograph,Failure:le.Failure,Loading:le.Loading,Del:le.Del,Link:le.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(X0),o=t.reactive(e.fileList);let l=[];const r=t.computed(()=>({[W0]:!0})),s=()=>{let u={class:"fox-uploader__input",type:"file",accept:e.accept,multiple:e.multiple,name:e.name,disabled:e.disabled};return e.capture&&(u.capture="camera"),t.h("input",u)},i=u=>{u.value=""},c=u=>{n("file-item-click",{fileItem:u})},m=(u,g)=>{const w=new z0;w.url=e.url,w.formData=u.formData,w.timeout=e.timeout*1,w.method=e.method,w.xhrState=e.xhrState,w.headers=e.headers,w.withCredentials=e.withCredentials,w.beforeXhrUpload=e.beforeXhrUpload;try{w.sourceFile=u.formData.get(e.name)}catch{}w.onStart=C=>{u.status="ready",u.message=a("readyUpload"),p(g),n("start",C)},w.onProgress=(C,A)=>{u.status="uploading",u.message=a("uploading"),u.percentage=(C.loaded/C.total*100).toFixed(0),n("progress",{event:C,option:A,percentage:u.percentage})},w.onSuccess=(C,A)=>{u.status="success",u.message=a("success"),n("success",{responseText:C,option:A,fileItem:u}),n("update:fileList",o)},w.onFailure=(C,A)=>{u.status="error",u.message=a("error"),n("failure",{responseText:C,option:A,fileItem:u})};let T=new F0(w);e.autoUpload?T.upload():l.push(new Promise((C,A)=>{C(T)}))},p=(u=-1)=>{u>-1?l.splice(u,1):(l=[],o.splice(0,o.length))},d=()=>{Promise.all(l).then(u=>{u.forEach(g=>g.upload())})},h=u=>{u.forEach((g,w)=>{const T=new FormData;for(const[A,V]of Object.entries(e.data))T.append(A,V);T.append(e.name,g);const C=t.reactive(new R0);if(C.name=g.name,C.status="ready",C.type=g.type,C.formData=T,C.message=a("waitingUpload"),m(C,w),e.isPreview&&g.type.includes("image")){const A=new FileReader;A.onload=V=>{C.url=V.target.result,o.push(C)},A.readAsDataURL(g)}else o.push(C)})},S=u=>{const g=e.maximum*1,w=e.maximize*1,T=new Array;u=u.filter(A=>A.size>w?(T.push(A),!1):!0),T.length&&n("oversize",T);let C=u.length+o.length;return C>g&&u.splice(u.length-(C-g)),u},y=(u,g)=>{o.splice(g,1),n("delete",{file:u,fileList:o,index:g})},k=(u,g)=>{p(g),qs(e.beforeDelete,{args:[u,o],done:()=>y(u,g)})},b=u=>{if(e.disabled)return;const g=u.target;let{files:w}=g;e.beforeUpload?e.beforeUpload(w).then(T=>f(T)):f(w),n("change",{fileList:o,event:u}),e.clearInput&&i(g)},f=u=>{const g=S(new Array().slice.call(u));h(g)};return{onChange:b,onDelete:k,fileList:o,classes:r,fileItemClick:c,clearUploadQueue:p,submit:d,renderInput:s}}}),G0={key:0,class:"fox-uploader__slot"},Z0={key:0,class:"fox-uploader__preview-img"},J0={key:0,class:"fox-uploader__preview__progress"},_0={class:"fox-uploader__preview__progress__msg"},eb=["onClick"],tb=["onClick","src"],nb={key:3,class:"fox-uploader__preview-img__file"},ob=["onClick"],lb={class:"file__name_tips"},ab={class:"tips"},rb={key:1,class:"fox-uploader__preview-list"},sb=["onClick"],ib={class:"file__name_tips"};function cb(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"),d=t.resolveComponent("Photograph");return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[e.$slots.default?(t.openBlock(),t.createElementBlock("view",G0,[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,S)=>(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",Z0,[h.status!="success"?(t.openBlock(),t.createElementBlock("view",J0,[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",_0,t.toDisplayString(h.message),1)])):t.createCommentVNode("",!0),e.isDeletable?(t.openBlock(),t.createElementBlock("view",{key:1,class:"close",onClick:y=>e.onDelete(h,S)},[t.renderSlot(e.$slots,"delete-icon",{},()=>[t.createVNode(s)])],8,eb)):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,tb)):(t.openBlock(),t.createElementBlock("view",nb,[t.createElementVNode("view",{onClick:y=>e.fileItemClick(h),class:"fox-uploader__preview-img__file__name"},[t.createElementVNode("view",lb,t.toDisplayString(h.name),1)],8,ob)])),t.createElementVNode("view",ab,t.toDisplayString(h.name),1)])):e.listType=="list"?(t.openBlock(),t.createElementBlock("view",rb,[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",ib,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,S)},null,8,["onClick"])):t.createCommentVNode("",!0)],10,sb),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(d,{color:"#808080"})]),(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.renderInput),{onChange:e.onChange},null,40,["onChange"]))],2)):t.createCommentVNode("",!0)],2)}const Hl=oe(Q0,[["render",cb]]),db="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAnCAYAAABJ0cukAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyFpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuNS1jMDE0IDc5LjE1MTQ4MSwgMjAxMy8wMy8xMy0xMjowOToxNSAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yV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ck7sUlBtziJ59P/urj33+ZlFIDa8wHAOcAhujftQYwY5xPSOb5FEQX/WPcI3LumqQQPwEMeg8LrD2sq0DnpdajvkFLIW4AvPJcjx/WJ50x5oX/Gs75qiiKpb9XSg2NMc+r5z+KovDBD3V2pgznz/y91noevSOECBbhxtwVt7dFpfEg7aOWVXk+skTfwqZEk7Isr/ytlPIKzvnKAebc62Kx8C5CKlhqTRG2KcRO0W4Mg1ME/z6sUkNr7ThY0NqbaMHwEYyFJGSMzWJ4CCHGRBRqdPRC7QkAzrml1noWQ6lJu43XepNg/wesz3q72bzdr7kMmMeQEEKck3OhYrAs+xRDQkp5AWtDkykXi0nt+krPEa3qkPBhVdVQRzQiYBti9yTv8QRLidPKkBTrPfHYZBCTbSdhgbr5pK5Pt3nCsEoNsNmog9abZcu0QWCz2U5pWVakDQKMDWDtOjaCEAp5vm3luxr37VPrHW0KB5D/8MHTgvW93nL+vWq378uynFZF/hLOfezM0ESN2syYlzGEjlq2TbvtBPiBc0dz6XpMlu3Eah2JHA2DjvbpRKYZlqhwzl12skOHIkQ0hXOh5pOUcgnnwvTf64toRWEgAT73GtTPxMC7cARJh+o+QscDQH1e6iPkPtNJsOmpts3HpqfcNuu7hd3+J/NnqzctNv/KOB/H6azF+oMlJ1k2qlVJ6qHDv4O9684BY631l98BTN/pBDYkabOVT7bmH4HdsTLR1DeYLqyZwv4CcPRPSfNVZqIAAAAASUVORK5CYIINCi0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0tLS0wMTYzMDQxMzE1MzQyMTczMjcwODA5NzYtLQ0K",{create:fb,scope:mb}=Q("number-keyboard"),pb=fb({components:{[fe.name]:fe},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(mb),o=a(e,["confirmText"]),l=t.ref(void 0),r=t.ref(e.visible),s=t.ref();function i(){const{customKey:f}=e;let u={id:"lock",type:"lock"},g=Array.isArray(f)?f:[f];return g.length===1&&(u={id:g[0],type:"custom"}),[...c(),u,{id:0,type:"number"},{id:"delete",type:"delete"}]}function c(){const f=[];for(let u=1;u<=9;u++)f.push({id:u,type:"number"});return e.randomKeys?f.sort(()=>Math.random()>.5?1:-1):f}function m(){const f=c(),{customKey:u}=e;let g=Array.isArray(u)?u:[u];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()),d=()=>{e.visible&&n("blur")},h=f=>{const u=s.value;u&&!u.contains(f.target)&&d()};t.watch(()=>e.visible,f=>{r.value=f,f?window.addEventListener("touchstart",h,!1):window.removeEventListener("touchstart",h,!1)});function S(f,u){u.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"&&b(),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 b(){n("update:visible",!1),n("close")}return{...o,delImg:db,lockImg:ub,clickKeyIndex:l,defaultKey:i,closeBoard:b,onTouchEnd:k,onTouchMove:y,onTouchstart:S,keysList:p,genCustomKeys:m,getBasicKeys:c,root:s,show:r}}}),hb={ref:"root"},gb={class:"fox-number-keyboard"},yb={key:0,class:"fox-number-keyboard__header"},bb={class:"fox-number-keyboard__title"},kb={class:"fox-number-keyboard__body"},Sb={class:"fox-number-keyboard__keys"},Cb=["onTouchstart"],wb=["src"],Nb=["src"],Bb={key:0,class:"fox-number-keyboard__sidebar"},Ab={class:"fox-key__wrapper"},Tb=["src"];function Vb(e,n,a,o,l,r){const s=t.resolveComponent("fox-popup");return t.openBlock(),t.createElementBlock("div",hb,[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",gb,[e.title?(t.openBlock(),t.createElementBlock("div",yb,[t.createElementVNode("h3",bb,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",kb,[t.createElementVNode("div",Sb,[(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,wb)):t.createCommentVNode("",!0),i.type=="delete"?(t.openBlock(),t.createElementBlock("img",{key:2,src:e.delImg},null,8,Nb)):t.createCommentVNode("",!0)],42,Cb)],2))),128))]),e.type=="rightColumn"?(t.openBlock(),t.createElementBlock("div",Bb,[t.createElementVNode("div",Ab,[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,Tb)],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 jl=oe(pb,[["render",Vb]]),{componentName:$b,create:Eb}=Q("swipe"),Db=Eb({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(()=>({[$b]:!0})),o=u=>u.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 d=t.reactive({offset:0,moving:!1}),h=(u="")=>{c=!0,u&&(d.offset=u==="left"?-i.value:r.value),n("open",{name:e.name,position:m||u})},S=()=>{d.offset=0,c=!1,n("close",{name:e.name,position:m})},y=t.computed(()=>({transform:`translate3d(${d.offset}px, 0, 0)`})),k=u=>{m=u>0?"right":"left";let g=u;switch(m){case"left":c&&p===m?g=-i.value:g=Math.abs(u)>i.value?-i.value:u;break;case"right":c&&p===m?g=r.value:g=Math.abs(u)>r.value?r.value:u;break}d.offset=g},b=Je();return{classes:a,touchStyle:y,...{onTouchStart(u){e.disabled||b.start(u)},onTouchMove(u){e.disabled||(b.move(u),b.isHorizontal()&&(d.moving=!0,k(b.deltaX.value),e.touchMovePreventDefault&&u.preventDefault(),e.touchMoveStopPropagation&&u.stopPropagation()))},onTouchEnd(){if(d.moving)switch(d.moving=!1,p=m,m){case"left":Math.abs(d.offset)<=i.value/2?S():(d.offset=-i.value,h());break;case"right":Math.abs(d.offset)<=r.value/2?S():(d.offset=r.value,h());break}}},leftRef:l,rightRef:s,open:h,close:S}}}),Ib={class:"fox-swipe__left",ref:"leftRef"},xb={class:"fox-swipe__content"},qb={class:"fox-swipe__right",ref:"rightRef"};function vb(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",Ib,[t.renderSlot(e.$slots,"left")],512),t.createElementVNode("view",xb,[t.renderSlot(e.$slots,"default")]),t.createElementVNode("view",qb,[t.renderSlot(e.$slots,"right")],512)],38)}const Ut=oe(Db,[["render",vb]]),{componentName:Mb,create:Pb}=Q("action-sheet"),Lb=Pb({components:{[fe.name]:fe,Loading:le.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(()=>({[Mb]:!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}}}),zb={key:0,class:"fox-action-sheet__title"},Fb={key:1},Rb={key:0,class:"fox-action-sheet__item fox-action-sheet__desc"},Ob={key:1,class:"fox-action-sheet__menu"},Kb=["onClick"],Ub={key:1},Hb={class:"fox-action-sheet__subdesc"};function jb(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",zb,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",Fb,[e.description?(t.openBlock(),t.createElementBlock("view",Rb,t.toDisplayString(e.description),1)):t.createCommentVNode("",!0),e.menuItems.length?(t.openBlock(),t.createElementBlock("view",Ob,[(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",Ub,t.toDisplayString(c[e.optionTag]),1)),t.createElementVNode("view",Hb,t.toDisplayString(c[e.optionSubTag]),1)],14,Kb))),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 Wl=oe(Lb,[["render",jb]]),{componentName:Wb,create:Yb}=Q("backtop"),Yl=Yb({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(()=>({[Wb]:!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 b=e.duration-Math.max(0,o.startTime-+new Date+e.duration),f=b*-o.scrollTop/e.duration+o.scrollTop;i(f),y=Xe(k),(b==e.duration||f==0)&&La(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 d(y){o.startTime=+new Date,e.isAnimation&&e.duration>0?c():i(),n("click",y)}function h(){S.value?o.scrollEl=S.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 S=t.computed(()=>{if(typeof a.content=="function"){const y=a.content();return Array.isArray(y)?y[0]:y}return null});return()=>{const y=[];S.value&&y.push(S.value);const k=[];if(typeof a.default=="function")k.push(a.default());else{const f=t.h(le.Top,{class:["fox-backtop-main"],width:"19px",height:"19px"});k.push(f)}const b=t.h("div",{class:l.value,style:r.value,onClick:d},k);return y.push(b),y}}}),{componentName:Xb,create:Qb}=Q("drag"),Gb=Qb({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(()=>({[Xb]:!0}));function r(){const d=document.documentElement;o.elWidth=a.value.offsetWidth,o.elHeight=a.value.offsetHeight,o.screenWidth=d.clientWidth,o.screenHeight=d.clientHeight}function s(d){o.boundary.left?+d.style.left.split("px")[0]>o.boundary.left?(d.style.left=+d.style.left.split("px")[0]-10+"px",Oe(()=>{s(d)})):d.style.left=`${o.boundary.left}px`:+d.style.left.split("px")[0]>10?(d.style.left=+d.style.left.split("px")[0]-10+"px",Oe(()=>{s(d)})):d.style.left="0px"}function i(d,h){h-parseInt(d.style.left.split("px")[0])>10?(d.style.left=parseInt(d.style.left.split("px")[0])+10+"px",Oe(()=>{i(d,h)})):d.style.left=h+"px"}function c(d){d.preventDefault();const h=d.currentTarget;if(d.targetTouches.length===1){const S=d.targetTouches[0];o.nx=S.clientX-o.position.x,o.ny=S.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(d){const h=d.currentTarget;let y=d.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?Oe(()=>{s(h)}):Oe(()=>{i(h,k)})),e.direction!="x"&&(h.style.top=o.yPum+"px")}function p(d){const h=d.currentTarget,S=d.touches[0],y=d.targetTouches[0];o.startTop=h.offsetTop,o.startLeft=h.offsetLeft,o.position.x=S.clientX,o.position.y=S.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 d=a;d.value.removeEventListener("touchstart",p),d.value.removeEventListener("touchmove",c),d.value.removeEventListener("touchend",m)}),{classes:l,myDrag:a,touchStart:p,touchMove:c,touchEnd:m}}});function Zb(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 Xl=oe(Gb,[["render",Zb]]),Jb={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}},_b=e=>typeof e=="string"&&(e.indexOf("/")===0||e.indexOf("./")===0||e.indexOf("data:image/")===0);function ek(e,n,a,o,l){return{props:{...ze,...Jb},setup(r,{attrs:s,slots:i,emit:c}){const{toLocaleRefs:m}=re.useFoxI18n(n),p=m(r,["confirmText","cancelText"]),d=e,h=t.ref(r.visible);t.watch(()=>r.visible,C=>{h.value!==C&&(h.value=C,C&&c("opened"))});const S=C=>{h.value=C,c("update:visible",C),c("update",C)},y=C=>{if(c(C),!(C==="cancel"&&!r.cancelAutoClose))if(typeof r.beforeClose=="function"){const A=r.beforeClose(C);dt(A)?A.then(V=>{V&&(S(!1),c("closed",C))}):A===!0&&(S(!1),c("closed",C))}else S(!1),c("closed",C)},k=()=>{y("confirm")},b=()=>{y("cancel")},f=()=>{y("close")},u=(C,A)=>_b(C)?(A.src=C,t.h("img",A)):typeof C=="string"?(Array.isArray(A.class)?A.class.push(C):A.class&&typeof A.class=="object"?A[`${C}`]=!0:typeof A.class=="string"?A.class=`${A.class}, ${C}`:A.class=C,t.h(r.tag,A)):t.h(C,A),g=()=>{const C=[];if(i.header){const V=i.header();C.push(V)}else{if(r.title){const V=t.h("view",{class:`${d}__header-title`},[r.title]);C.push(V)}if(r.showClose){const V={class:[`${d}__header-close-icon`],onClick:f},$=r.closeIcon??l,E=u($,V);C.push(E)}}if(C.length===0)return null;const A={class:[`${d}__header`]};return t.h("view",A,C)},w=()=>{const C=[];if(i.default)C.push(i.default());else{const V={class:[`${d}__content`]};if(r.textAlign&&V.class.push(r.textAlign),typeof r.content=="string"){V.innerHTML=r.content;const $=t.h("view",V);C.push($)}else if(typeof r.content=="function"){const $=t.h("view",V,[r.content()]);C.push($)}else{const $=t.h("view",V,[r.content]);C.push($)}}if(C.length===0)return null;const A={class:[`${d}__body`]};return t.h("view",A,C)},T=()=>{if(!r.showFooter)return null;const C=[];if(i.footer)C.push(i.footer());else if(r.plain){if(r.showCancelButton){const V={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},onClick:b};r.cancelButtonClass&&V.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(V.style,r.cancleButtonStyle);const $=t.h("view",V,[r.cancelButtonText??p.cancelText.value]);C.push($)}if(r.showConfirmButton){const V={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},onClick:k};r.confirmButtonClass&&V.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(V.style,r.confirmButtonStyle);const $=t.h("view",V,[r.confirmButtonText??p.confirmText.value]);C.push($)}}else{if(r.showCancelButton){const V={class:[`${d}__footer-button`,`${d}__footer-cancel`],style:{},plain:!0,type:"primary",size:"small",onClick:b};r.cancelButtonClass&&V.class.push(r.cancelButtonClass),r.cancleButtonStyle&&typeof r.cancleButtonStyle=="object"&&Object.assign(V.style,r.cancleButtonStyle);const $=t.h(o,V,{default:()=>[r.cancelButtonText??p.cancelText.value]});C.push($)}if(r.showConfirmButton){const V={class:[`${d}__footer-button`,`${d}__footer-confirm`],style:{},plain:!1,type:"primary",size:"small",onClick:k};r.confirmButtonClass&&V.class.push(r.confirmButtonClass),r.confirmButtonStyle&&typeof r.confirmButtonStyle=="object"&&Object.assign(V.style,r.confirmButtonStyle);const $=t.h(o,V,{default:()=>[r.confirmButtonText??p.confirmText.value]});C.push($)}}if(C.length===0)return null;const A={class:[`${d}__footer`,`${d}__footer--${r.footerDirection}`]};return t.h("view",A,C)};return()=>{const C=[],A=g();A&&C.push(A);const V=w();V&&C.push(V);const $=T();$&&C.push($);const E={class:{[`${d}`]:!0,[`${d}--plain`]:r.plain}},B=t.h("view",E,C),P=[`${d}__popup`];r.popClass&&P.push(r.popClass);const L={};r.width&&(L.width=typeof r.width=="number"?`${r.width}px`:r.width),r.height&&(L.height=typeof r.height=="number"?`${r.height}px`:r.height);const I={...ke(r,ze),popClass:P.join(" "),style:L,visible:h.value,teleportDisable:!0,closeable:!1,"onUpdate:visible":S,position:r.position,onClickOverlay:f,closeOnClickOverlay:r.closeOnClickOverlay};return t.h(a,I,{default:()=>B})}}}}const{componentName:tk,create:nk,scope:ok}=Q("dialog"),vs=nk(ek(tk,ok,fe,Pe,le.Close));class lk{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 ak{options=new lk;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(vs,a)}},c=t.createVNode(i);o.appendChild(r),t.render(c,r)}}const Ht=function(e){return new ak(e)};Ht.install=e=>{e.use(vs),e.config.globalProperties.$dialog=Ht};const rk={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}},sk=(e,n,a)=>({props:{...rk},emits:["change","refresh","update:modelValue"],setup(o,{emit:l,slots:r}){const{toLocaleRefs:s}=re.useFoxI18n(n),i=s(o,["pullingText","loosingText","loadingText"]),c=Ro(),m=t.ref(),p=Ss(m),d=t.reactive({isPullRefresh:!1,distance:0,status:"normal",moving:!1}),h=t.computed(()=>({[e]:!0})),S=t.computed(()=>{switch(d.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:d.distance?`translate3d(0,${d.distance}px, 0)`:""})),k=t.computed(()=>{const A={};return o.headHeight!=50&&(A.height=ge(o.headHeight)),A}),b=A=>{const V=+(o.pullDistance||o.headHeight);let $=A;return A>V&&(A<V*2?$=(A+V)/2:$=V+A/4),Math.round($)},f=(A,V)=>{const $=+(o.pullDistance||o.headHeight);d.distance=A,V?d.status="loading":A===0?d.status="normal":A<$?d.status="pulling":d.status="loosing",l("change",{status:d.status,distance:A})},u=()=>d.status!=="loading"&&d.status!=="complete",g=()=>p.value==window?Cs()==0:p.value&&p.value.scrollTop==0,w=A=>{u()&&(g()?(c.start(A),d.isPullRefresh=!0,d.moving=!0):(d.distance=0,d.isPullRefresh=!1))},T=A=>{u()&&d.moving&&(c.move(A),c.isVertical()&&c.state.deltaY>0&&d.isPullRefresh&&(A.cancelable&&A.preventDefault(),f(b(c.state.deltaY))))},C=()=>{d.moving=!1,d.isPullRefresh&&u()&&c.state.deltaY&&(d.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,A=>{A?f(+o.headHeight,!0):f(0)}),()=>{const A=[];let V=null;if(d.status==="loading"){if(V=r?.loading?.()??null,!V){const U={class:["fox-pull-refresh-container-topbox-icon"]};V=t.h(a,U)}}else d.status==="pulling"?V=r?.pulling?.()??null:d.status==="loosing"&&(V=r?.loosing?.()??null);V&&A.push(V);const $={class:["fox-pull-refresh-container-topbox-text"]},E=t.h("dive",$,[S.value]);A.push(E);const B={class:["fox-pull-refresh-container-topbox"],style:k.value},P=t.h("div",B,A),L={class:"fox-pull-refresh-container",style:y.value},D=t.h("div",L,[P,r?.default?.()]),I={ref:m,class:h.value};return Fo()?Object.assign(I,{onTouchstart:w,onTouchmove:T,onTouchend:C}):Object.assign(I,{onMousedown:w,onMousemove:T,onMouseup:C}),t.h("div",I,[D])}}}),{componentName:ik,create:ck,scope:dk}=Q("pull-refresh"),Ql=ck(sk(ik,dk,le.Loading)),{create:uk}=Q("notify"),fk=uk({components:{[fe.name]:fe},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 mk(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 Gl=oe(fk,[["render",mk]]),Zl={type:"base",visible:!0,msg:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:Function,teleport:"",unmount:new Function};let Nt=[],jt=[];const Ms=e=>{if(e){const n=document.getElementById(e);jt=jt.filter(a=>a.id!==e),Nt=Nt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Nt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),jt=[],Nt=[]},pk=e=>{const n=document.getElementById(e.id);if(n){const a=jt.find(l=>l.id===e.id);a?e={...Zl,...a,...e}:e={...Zl,...e};const o=t.createVNode(Gl,e);return t.render(o,n),o.component.data}},Wt=e=>{e.unmount=Ms;let n;if(e.id){if(n=e.id,Nt.find(r=>r===e.id))return pk(e)}else n=new Date().getTime()+"";e={...Zl,...e},e.id=n,Nt.push(e.id),jt.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(Gl,e)}},l=t.createVNode(o);document.body.appendChild(a),t.render(l,a)},Yt=e=>{if(!e){console.warn("[NutUI Notify]: msg不能为空");return}},Jl={text(e,n={}){return Yt(e),Wt({...n,msg:e})},primary(e,n={}){return Yt(e),Wt({...n,msg:e,type:"primary"})},success(e,n={}){return Yt(e),Wt({...n,msg:e,type:"success"})},danger(e,n={}){return Yt(e),Wt({...n,msg:e,type:"danger"})},warn(e,n={}){return Yt(e),Wt({...n,msg:e,type:"warning"})},hide(){Ms()},install(e){e.use(Gl)}},{create:hk}=Q("toast"),gk=hk({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,S=>{S&&s()});const c=t.computed(()=>e.type!=="text"?!0:!!e.icon),m=()=>{const S=ce(e.iconSize);return t.h(e.icon,{width:S,height:S,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]),d=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:d,onAfterLeave:()=>{l(),e.unmount(e.id),e.onClose&&e.onClose()}}}}),yk={key:1,class:"fox-toast-title"},bk=["innerHTML"];function kk(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",yk,t.toDisplayString(e.title),1)):t.createCommentVNode("",!0),t.createElementVNode("view",{class:"fox-toast-text",innerHTML:e.msg},null,8,bk)],4)],6),[[t.vShow,e.state.mounted]])]),_:1},8,["onAfterLeave"])}const _l=oe(gk,[["render",kk]]),ea={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 Bt=[],Xt=[];const Ps=e=>{if(e){const n=document.getElementById(e);Xt=Xt.filter(a=>a.id!==e),Bt=Bt.filter(a=>a!==e),n&&document.body.removeChild(n)}else Bt.forEach(n=>{const a=document.getElementById(n);a&&document.body.removeChild(a)}),Xt=[],Bt=[]},Sk=e=>{const n=document.getElementById(e.id);if(n){const a=Xt.find(l=>l.id===e.id);a?e={...ea,...a,...e}:e={...ea,...e};const o=t.createVNode(_l,e);return t.render(o,n),At}},Qt=e=>{e.unmount=Ps;let n;if(e.id){if(n=e.id,Bt.find(l=>l===e.id))return Sk(e)}else n=new Date().getTime()+"";e={...ea,...e},e.id=n,Bt.push(e.id),Xt.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},Jn=e=>{if(!e){console.warn("[FoxUI Toast]: msg不能为空");return}},At={text(e,n={}){return Jn(e),Qt({...n,type:"text",msg:e})},success(e,n={}){return Jn(e),Qt({icon:le.Success,...n,msg:e,type:"success"})},fail(e,n={}){return Jn(e),Qt({icon:le.Failure,...n,msg:e,type:"fail"})},warn(e,n={}){return Jn(e),Qt({icon:le.Tips,...n,msg:e,type:"warn"})},loading(e,n={}){return Qt({icon:le.Loading,...n,msg:e,type:"loading"})},hide(e){Ps(e)},install(e){e.use(_l),e.config.globalProperties.$toast=At}},{componentName:mA,create:Ck}=Q("audio"),wk=Ck({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:le.Service,[Ot.name]:Ot},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 b=0;b<k.length;b++)document.addEventListener(k[b],()=>{document.hidden?o.value.pause():l.playing&&setTimeout(()=>{o.value.play()},200)})}catch(b){b.message}});const r=k=>{const b=o.value;e.autoplay&&b&&b.paused&&b.play(),l.second=b.duration,l.duration=y(b.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},d=()=>{l.playing=!1,n("ended")},h=k=>{const b=o.value;b.currentTime=l.second*k/100,n("changeProgress",b.currentTime)},S=()=>{l.hanMuted=!l.hanMuted,n("mute",l.hanMuted)},y=k=>{if(!k)return"00:00:00";let b=parseInt(k),f=Math.floor(b/3600),u=Math.floor((b-f*3600)/60),g=b-f*3600-u*60,w="";return w+=("0"+f.toString()).slice(-2)+":",w+=("0"+u.toString()).slice(-2)+":",w+=("0"+g.toString()).slice(-2),w};return t.watch(()=>l.currentTime,k=>{p(k)}),t.provide("audioParent",{children:[],props:e,audioData:l,handleMute:S,forward:m,fastBack:i,changeStatus:c}),{...t.toRefs(e),...t.toRefs(l),audioRef:o,fastBack:i,forward:m,changeStatus:c,progressChange:h,audioEnd:d,onTimeupdate:s,handleMute:S,onCanplay:r,slots:a}}}),Nk={class:"fox-audio"},Bk={key:0,class:"fox-audio__progress"},Ak={class:"fox-audio__time"},Tk={class:"fox-audio__bar"},Vk=t.createElementVNode("div",{class:"fox-audio__button--custom"},null,-1),$k={class:"fox-audio__time"},Ek={key:1,class:"fox-audio__icon"},Dk=["controls","src","preload","autoplay","loop","muted"];function Ik(e,n,a,o,l,r){const s=t.resolveComponent("fox-range"),i=t.resolveComponent("Service");return t.openBlock(),t.createElementBlock("div",Nk,[e.type=="progress"?(t.openBlock(),t.createElementBlock("div",Bk,[t.createElementVNode("div",Ak,t.toDisplayString(e.currentDuration),1),t.createElementVNode("div",Tk,[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(()=>[Vk]),_:1},8,["modelValue","onChange"])]),t.createElementVNode("div",$k,t.toDisplayString(e.duration),1)])):t.createCommentVNode("",!0),e.type=="icon"?(t.openBlock(),t.createElementBlock("div",Ek,[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,Dk)])}const ta=oe(wk,[["render",Ik]]),{componentName:pA,create:xk,scope:qk}=Q("audio-operate"),vk=xk({props:{type:{type:String,default:()=>"play"}},components:{},emits:["click"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(qk),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}}}),Mk={class:"fox-audio-operate"};function Pk(e,n,a,o,l,r){const s=t.resolveComponent("fox-button");return t.openBlock(),t.createElementBlock("div",Mk,[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 na=oe(vk,[["render",Pk]]),{componentName:Lk,create:zk}=Q("avatar"),Fk=zk({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&&S(y)});const p=t.computed(()=>({[Lk]:!0,[`fox-avatar-${n.value||s?.props?.size||"normal"}`]:!0,[`fox-avatar-${a.value||s?.props?.shape||"normal"}`]:!0})),d=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}`})),S=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:d,maxStyles:h,avatarGroup:s,visible:c,avatarRef:i,...t.toRefs(m)}}});function Rk(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 Gt=oe(Fk,[["render",Rk]]),{componentName:Ok,create:Kk}=Q("avatar-group"),Uk=Kk({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(()=>({[Ok]:!0}));return t.onMounted(()=>{}),t.provide("avatarGroup",{props:e,avatarGroupRef:o,index:l}),{classes:r,avatarGroupRef:o}}});function Hk(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 oa=oe(Uk,[["render",Hk]]);var _n=(e=>(e[e.eq=1]="eq",e[e.lt=2]="lt",e[e.gt=3]="gt",e))(_n||{});function jk(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:Wk,create:Yk}=Q("list"),Ls=document.documentElement.clientHeight||document.body.clientHeight||667,Xk=Yk({props:{listData:{type:Array,default:()=>[]},bufferSize:{type:Number,default:5},containerHeight:{type:[Number],default:Ls},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,Ls)),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(()=>({[Wk]:!0})),p=t.computed(()=>r.list.slice(r.start,c.value)),d=()=>{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}},S=()=>{let f=l.value.childNodes;f=Array.from(f).filter(A=>A.nodeType===1);const u=f[0];f.forEach((A,V)=>{if(!A)return;const $=De(A),{height:E}=$,P=r.cachePositions[V+r.start].height-E;P&&(r.cachePositions[V+r.start].bottom-=P,r.cachePositions[V+r.start].height=E,r.cachePositions[V+r.start].dValue=P)});let g=0;u&&(g=r.start);const w=r.cachePositions.length;let T=r.cachePositions[g].dValue;r.cachePositions[g].dValue=0;for(let A=g+1;A<w;++A){const V=r.cachePositions[A];r.cachePositions[A].top=r.cachePositions[A-1].bottom,r.cachePositions[A].bottom=r.cachePositions[A].bottom-T,V.dValue!==0&&(T+=V.dValue,V.dValue=0)}const C=r.cachePositions[w-1].bottom;r.phantomHeight=C},y=(f=0)=>{let u=jk(r.cachePositions,f,(w,T)=>{const C=w.bottom;return C===T?_n.eq:C<T?_n.lt:_n.gt});return r.cachePositions[u].bottom<f&&(u+=1),u},k=()=>{r.originStartIndex=0,r.start=0,r.scrollTop=0,a.value.scrollTop=0,h(),r.phantomHeight=e.height*r.list.length},b=()=>{const f=a.value?.scrollTop,{originStartIndex:u}=r,g=y(f);g!==u&&(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(),S();else{k();return}}),t.watch(()=>r.start,()=>{l.value&&r.list.length>0&&S()}),{...t.toRefs(r),list:a,phantom:o,actualContent:l,getTransform:d,visibleData:p,classes:m,getContainerHeight:s,handleScrollEvent:b}}});function Qk(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 la=oe(Xk,[["render",Qk]]),{componentName:Gk,create:Zk}=Q("circleprogress"),Jk=Zk({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(()=>({[Gk]:!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(()=>Ve(e.color)?`url(#${o})`:e.color),i=t.computed(()=>{let p=283,d=p*Number(e.progress)/100;return{stroke:Ve(e.color)?`url(#${o})`:e.color,strokeDasharray:`${d}px ${p}px`}}),c=t.computed(()=>({stroke:e.pathColor})),m=t.computed(()=>{if(!Ve(e.color))return;let p=e.color;const d=Object.keys(p).sort((S,y)=>parseFloat(S)-parseFloat(y));let h=[];return d.map((S,y)=>{let k={key:"",value:""};k.key=S,k.value=p[S],h.push(k)}),h});return{classes:l,hoverStyle:i,pathStyle:c,path:r,hoverColor:s,stop:m,slotDefault:a,refRandomId:o}}}),_k={viewBox:"0 0 100 100"},eS=["id"],tS=["offset","stop-color"],nS=["d","stroke-width"],oS=["d","stroke","stroke-linecap","stroke-width"],lS={class:"fox-circleprogress-text"},aS={key:0};function rS(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",_k,[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,tS))),128))],8,eS)]),t.createElementVNode("path",{class:"fox-circleprogress-path",style:t.normalizeStyle(e.pathStyle),d:e.path,fill:"none","stroke-width":e.strokeWidth}," > ",12,nS),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,oS)])),t.createElementVNode("div",lS,[t.renderSlot(e.$slots,"default"),e.slotDefault?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",aS,t.toDisplayString(e.progress)+"%",1))])],6)}const aa=oe(Jk,[["render",rS]]),{componentName:sS,create:iS}=Q("noticebar"),cS=iS({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:le.Notice,CircleClose:le.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(()=>({[sS]:!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 A={};return e.color&&(A.color=e.color),e.background&&(A.background=e.background),e.direction=="vertical"&&(A.height=`${e.height}px`),A}),p=t.computed(()=>({animationDelay:(r.firstRound?e.delay:0)+"s",animationDuration:r.duration+"s",transform:`translateX(${r.firstRound?0:r.wrapWidth+"px"})`})),d=t.computed(()=>{let A={};if(e.complexAm)A={transform:`translateY(${r.distance}px)`};else if(r.animate){let V=~~(e.height/e.speed/4);A={transition:`all ${V==0?~~(e.height/e.speed):V}s`,"margin-top":`-${e.height}px`}}return A});t.watch(()=>e.text,A=>{h()}),t.watch(()=>e.list,A=>{r.scrollList=[...A]});const h=A=>{r.showNoticebar!=!1&&setTimeout(()=>{if(!o.value||!l.value)return;const V=o.value.getBoundingClientRect().width,$=l.value.getBoundingClientRect().width;r.isCanScroll=e.scrollable==null?$>V:e.scrollable,r.isCanScroll?(r.wrapWidth=V,r.offsetWidth=$,r.duration=$/e.speed,r.animationClass="play"):r.animationClass=""},0)},S=A=>{n("click",A)},y=A=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",A)},k=A=>{r.firstRound=!1,n("across-end",A),setTimeout(()=>{r.duration=(r.offsetWidth+r.wrapWidth)/e.speed,r.animationClass="play-infinite"},0)},b=()=>{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))},u=()=>{r.timer=setInterval(()=>{let A=100;for(let V=0;V<A;V++)g(V,!(V<A-1))},e.standTime+100*e.speed)},g=(A,V)=>{setTimeout(()=>{r.distance-=e.height/100,V&&(r.scrollList.push(r.scrollList[0]),r.scrollList.shift(),r.distance=0)},A*e.speed)},w=A=>{n("click",A)},T=()=>{e.closeMode&&(r.showNoticebar=!e.closeMode),n("close",r.scrollList[0])};t.onMounted(()=>{e.direction=="vertical"?(a.default?C(a.default()):r.scrollList=[...e.list],setTimeout(()=>{e.complexAm?u():b()},e.standTime)):h(e.text)}),t.watch(()=>a.default?a.default():[],A=>{e.direction==="vertical"&&a.default&&(r.showNotica=!1,setTimeout(()=>{r.showNotica=!0}),C(A))});const C=A=>{A&&A.length>0&&(r.scrollList=A[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:d,wrap:o,content:l,handleClick:S,onClickIcon:y,onAnimationEnd:k,go:w,handleClickIcon:T,slots:a,toPxDesc:ge,wrapContentClass:c}}}),dS={key:0,class:"fox-noticebar__page-lefticon"},uS={ref:"wrap",class:"fox-noticebar__page-wrap"},fS={class:"showNotica"},mS=["onClick"];function pS(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",dS,[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",uS,[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",fS,[(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:d=>e.go(m)},[t.renderSlot(e.$slots,"item",{},()=>[t.createTextVNode(t.toDisplayString(m),1)])],12,mS))),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 ra=oe(cS,[["render",pS]]),hS="data:image/png;base64,iVBORw0KGgoAAA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FFxO9FKsBZzZZZSWQBY3nNKllAOdG70CtDcP9/s4DHtSzEDOqdONf4OQ+Kn1qWWOINqh1ZBjUXjxsoJs9GbAZpmvCgFnxvLOg1vFzwilYCioZUXMwnV+CIcMwQB151N/pIseoLCXcCR/HcCEv8qj/w1eMsSoQEjE9HMOzIF/HOlFS259e4gCrASGRsY1Uy4KcnXzx89vH3tcvOMSOAiF8ip/EGm7+XYxxChFDHKCpKRkyEkFljufOyZal5WhQJxNdna04jCeUMcevuGXLgDlRZpjUBEL+MEpl+7zrnrft8lnLNGDONJGCSvRneJjEbCBEK6klqm8BIVo5ymhBJfNAE0X0Kymip7QStUE3fqKblBLVpxMpRDs1hiMcmvMT/biJnNKYn+jHqFNOyTxgNiinZB4oOZRTMg/IvZRPfRTRk40Cj37S95s9OyYCGIShALrVQIVgBAMVUQsdGBgqgKGHCRz2GEBDhvc05PJzPwTVxpa6np+o+lhK9jclqt1OpSr2iWsN6ntZp0T2zW1abtcpsZ3tqdmYEt8h9AEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIC/PTgkAAAAABD0/7U3DAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAzAUMS6uSWMRCGwAAAABJRU5ErkJggg==",{componentName:hA,create:bS,scope:kS}=Q("empty"),SS={empty:hS,error:gS,network:yS},CS=bS({props:{image:{type:String,default:"empty"},imageSize:{type:[Number,String],default:""},description:{type:String,default:""}},setup(e){const{toLocaleRefs:n}=re.useFoxI18n(kS),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:SS[o.value];return{...a,imageUrl:i,imgStyle:r}}}),wS={class:"fox-empty"},NS=["src"],BS={key:1,class:"fox-empty-description"};function AS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",wS,[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,NS)):t.createCommentVNode("",!0)],64))],4),e.$slots.description?t.renderSlot(e.$slots,"description",{key:0}):(t.openBlock(),t.createElementBlock("view",BS,t.toDisplayString(e.description),1)),e.$slots.default?t.renderSlot(e.$slots,"default",{key:2}):t.createCommentVNode("",!0)])}const sa=oe(CS,[["render",AS]]),{create:TS,scope:VS}=Q("video"),$S=TS({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(VS),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,C=>{C.src&&t.nextTick(()=>{o.videoElm.load()})},{immediate:!0,deep:!0}),t.watch(()=>e.options,C=>{o.state.isMuted=C?C.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",un(d,1e3)))},i=()=>{const C=l.value,A=l.value.getElementsByClassName("fox-video-controller__progress-value")[0];o.player.$player=C,o.progressBar.progressElm=A,o.progressBar.pos=A.getBoundingClientRect(),o.videoSet.progress.width=Math.round(A.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",un(d,1e3)),o.videoElm.addEventListener("ended",h),n("play",o.videoElm)}catch{S()}else o.videoElm.pause(),n("pause",o.videoElm)},m=C=>{var A=Math.floor(C/3600);A<10&&(A="0"+A);var V=Math.floor(C%3600/60);V<10&&(V="0"+V);var $=Math.round(C%3600%60);$<10&&($="0"+$);var E="";return A!=0?E=A+":"+V+":"+$:E=V+":"+$,E},p=()=>{o.videoSet.loaded&&(o.videoSet.loaded=o.videoElm.buffered.end(0)/o.videoElm.duration*100)},d=()=>{const C=o.videoElm.currentTime/o.videoElm.duration;o.videoSet.progress.current=Math.round(o.videoSet.progress.width*C),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)},S=()=>{o.state.isError=!0},y=()=>{o.state.vol=e.options.volume},k=()=>{o.state.isMuted=!o.state.isMuted,o.videoElm.muted=o.state.isMuted},b=()=>{},f=C=>{let V=C.targetTouches[0].pageX-o.progressBar.pos.left;V<=0&&(V=0),V>=o.videoSet.progress.width&&(V=o.videoSet.progress.width),o.videoSet.progress.current=V;let $=o.videoSet.progress.current/o.videoSet.progress.width;o.videoElm.duration&&g($,o.videoElm.duration)},u=C=>{let V=C.changedTouches[0].pageX-o.progressBar.pos.left;o.videoSet.progress.current=V;let $=V/o.videoSet.progress.width;o.videoElm.duration&&g($,o.videoElm.duration)},g=(C,A)=>{o.videoElm.currentTime=Math.floor(C*A)},w=()=>{o.state.isError=!1,s()},T=()=>{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:S,isDisabled:r,play:c,handleMuted:k,touchSlidSrart:b,touchSlidMove:f,touchSlidEnd:u,retry:w,fullScreen:T,t:a}}}),ES={class:"fox-video",ref:"videocon"},DS=["muted","autoplay","loop","poster","controls","preload"],IS=["src","type"],xS={class:"fox-video-controller__now"},qS={class:"fox-video-controller__progress"},vS={class:"fox-video-controller__progress-value",ref:"progressBar"},MS=[t.createElementVNode("div",{class:"fox-video-controller__ball-move"},null,-1)],PS={class:"fox-video-controller__played",ref:"playedBar"},LS={class:"fox-video-controller__total"},zS={class:"fox-video-error"},FS={class:"fox-video-error-tip"};function RS(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",ES,[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,IS)],40,DS),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",xS,t.toDisplayString(e.videoSet.displayTime),1),t.createElementVNode("div",qS,[t.createElementVNode("div",vS,[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"]))},MS,36),t.createElementVNode("div",PS,null,512)],512)]),t.createElementVNode("div",LS,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",zS,[t.createElementVNode("p",FS,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 Tt=oe($S,[["render",RS]]),{create:OS,componentName:KS}=Q("steps"),ia=OS({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=KS;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:US,componentName:HS}=Q("step"),jS=US({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=HS;return{[c]:!0,[`${c}-${r.value}`]:!0}}),i=()=>{n.onEmit(o.value)};return{...t.toRefs(a),index:o,classes:s,handleClickStep:i}}}),WS={class:"fox-step-head"},YS=t.createElementVNode("view",{class:"fox-step-line"},null,-1),XS={class:"fox-step-icon-inner"},QS={key:1,class:"fox-step-inner"},GS={class:"fox-step-main"},ZS={class:"fox-step-title"},JS={key:0},_S={key:0,class:"fox-step-content"},e1=["innerHTML"];function t1(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",WS,[YS,t.createElementVNode("view",{class:t.normalizeClass(["fox-step-icon",[e.dot?"":"is-icon"]])},[t.createElementVNode("view",XS,[t.renderSlot(e.$slots,"icon",{},()=>[e.dot?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[],64)):(t.openBlock(),t.createElementBlock("view",QS,t.toDisplayString(e.index),1))])])],2)]),t.createElementVNode("view",GS,[t.createElementVNode("view",ZS,[e.$slots.title?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",JS,t.toDisplayString(e.title),1)),t.renderSlot(e.$slots,"title")]),e.content||e.$slots.content?(t.openBlock(),t.createElementBlock("view",_S,[e.$slots.content?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("span",{key:0,innerHTML:e.content},null,8,e1)),t.renderSlot(e.$slots,"content")])):t.createCommentVNode("",!0)])],2)}const ca=oe(jS,[["render",t1]]),{create:n1,componentName:da}=Q("swiper"),o1=n1({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=Je(),s=t.computed(()=>({[da]:!0})),i=t.computed(()=>e.direction==="vertical"),c=t.computed(()=>{const q=da;return{[`${q}-inner`]:!0,[`${q}-vertical`]:i.value}}),m=t.computed(()=>{const q=da;return{[`${q}-pagination`]:!0,[`${q}-pagination-vertical`]:i.value}}),p=t.computed(()=>i.value?r.deltaY.value:r.deltaX.value),d=t.computed(()=>r.direction.value===e.direction),h=t.computed(()=>l.children.length),S=t.computed(()=>l[i.value?"height":"width"]),y=t.computed(()=>h.value*S.value),k=t.computed(()=>l.rect?(i.value?l.rect.height:l.rect.width)-S.value*h.value:0),b=t.computed(()=>(l.active+h.value)%h.value),f=()=>{let q=0;q=l.offset,l.style={transitionDuration:`${l.moving?0:e.duration}ms`,transform:`translate${i.value?"Y":"X"}(${q}px)`,[i.value?"height":"width"]:`${S.value*h.value}px`,[i.value?"width":"height"]:`${i.value?l.width:l.height}px`}},u=q=>{let Y=[];const j=l.childrenVNode.length;let J=a?.default?.();if(J=J.filter(ee=>ee.children&&Array.isArray(ee.children)),J.forEach(ee=>{Y=Y.concat(ee.children)}),!j)l.childrenVNode=Y.slice(),q.proxy&&l.children.push(q.proxy);else if(j>Y.length)l.children=l.children.filter(ee=>q.proxy!==ee);else if(j<Y.length){for(let ee=0;ee<j;ee++)if(Y[ee].key!==l.childrenVNode[ee].key){q.proxy&&l.children.splice(ee,0,q.proxy),q.vnode&&l.childrenVNode.splice(ee,0,q.vnode);break}j!==Y.length&&(q.proxy&&l.children.push(q.proxy),q.vnode&&l.childrenVNode.push(q.vnode))}else l.childrenVNode=Y.slice(),q.proxy&&l.children.push(q.proxy)},g=(q,Y=0)=>{let j=q*S.value;e.loop||(j=Math.min(j,-k.value));let J=Y-j;return e.loop||(J=Ue(J,k.value,0)),J},w=q=>{const{active:Y}=l;return q?e.loop?Ue(Y+q,-1,h.value):Ue(Y+q,0,h.value-1):Y},T=({pace:q=0,offset:Y=0,isEmit:j=!1})=>{if(h.value<=1)return;const{active:J}=l,ee=w(q),W=g(ee,Y);if(e.loop){if(l.children[0]&&W!==k.value){const v=W<k.value;l.children[0].setOffset(v?y.value:0)}if(l.children[h.value-1]&&W!==0){const v=W>0;l.children[h.value-1].setOffset(v?-y.value:0)}}l.active=ee,l.offset=W,j&&J!==l.active&&n("change",b.value),f()},C=()=>{l.moving=!0,l.active<=-1&&T({pace:h.value}),l.active>=h.value&&T({pace:-h.value})},A=()=>{l.autoplayTimer&&clearTimeout(l.autoplayTimer)},V=q=>{C(),r.reset(),Xe(()=>{Xe(()=>{l.moving=!1,T({pace:q,isEmit:!0})})})},$=()=>{V(-1)},E=()=>{V(1)},B=q=>{C(),r.reset(),Xe(()=>{l.moving=!1;let Y;e.loop&&h.value===q?Y=l.active===0?0:q:Y=q%h.value,T({pace:Y-l.active,isEmit:!0})})},P=()=>{e.autoPlay<=0||h.value<=1||(A(),l.autoplayTimer=setTimeout(()=>{E(),P()},Number(e.autoPlay)))},L=(q=+e.initPage)=>{A(),l.rect=o.value.getBoundingClientRect(),q=Math.min(h.value-1,q),l.width=e.width?+e.width:l.rect.width,l.height=e.height?+e.height:l.rect.height,l.active=q,l.offset=g(l.active),l.moving=!0,f(),P()},D=q=>{e.isPreventDefault&&q.preventDefault(),e.isStopPropagation&&q.stopPropagation(),e.touchable&&(r.start(q),l.touchTime=Date.now(),A(),C())},I=q=>{e.touchable&&l.moving&&(r.move(q),d.value&&T({offset:p.value}))},U=q=>{if(!e.touchable||!l.moving)return;const Y=p.value/(Date.now()-l.touchTime);if((Math.abs(Y)>.3||Math.abs(p.value)>+(S.value/2).toFixed(2))&&d.value){let J=0;const ee=i.value?r.offsetY.value:r.offsetX.value;e.loop?J=ee>0?p.value>0?-1:1:0:J=-Math[p.value>0?"ceil":"floor"](p.value/S.value),T({pace:J,isEmit:!0})}else p.value&&T({pace:0});l.moving=!1,f(),P()};return t.provide("parent",{props:e,size:S,relation:u}),Ee({prev:$,next:E,to:B}),t.onDeactivated(()=>{A()}),t.onBeforeUnmount(()=>{A()}),t.watch(()=>e.initPage,q=>{t.nextTick(()=>{L(Number(q))})}),t.watch(()=>l.children.length,()=>{t.nextTick(()=>{L()})}),t.watch(()=>e.autoPlay,q=>{q>0?P():A()}),{state:l,classes:s,classesInner:c,classesPagination:m,container:o,activePagination:b,onTouchStart:D,onTouchMove:I,onTouchEnd:U}}});function l1(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 Vt=oe(o1,[["render",l1]]),{create:a1,componentName:r1}=Q("swiper-item"),s1=a1({setup(e,{slots:n}){const a=t.inject("parent");a.relation(t.getCurrentInstance());const o=t.reactive({offset:0}),l=t.computed(()=>({[r1]:!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")}),Ee({setOffset:s}),{style:r,classes:l}}});function i1(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 $t=oe(s1,[["render",i1]]),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:c1}=Q("image-preview-item"),d1=c1({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:{[Tt.name]:Tt,[$t.name]:$t},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=Je(),l=t.computed(()=>{const{rootWidth:$,rootHeight:E}=e,B=E/$;return a.imageRatio>B}),r=t.computed(()=>{const $=e.image;if($&&$.src){const{scale:E,moveX:B,moveY:P,moving:L,zooming:D}=a,I={transitionDuration:D||L?"0s":".3s"};if(E!==1){const U=B/E,q=P/E;I.transform=`scale(${E}, ${E}) translate(${U}px, ${q}px)`}return I}return{}}),s=t.computed(()=>{if(a.imageRatio){const{rootWidth:$,rootHeight:E}=e,B=l.value?E/a.imageRatio:$;return Math.max(0,(a.scale*B-$)/2)}return 0}),i=t.computed(()=>{if(a.imageRatio){const{rootWidth:$,rootHeight:E}=e,B=l.value?E:$*a.imageRatio;return Math.max(0,(a.scale*B-E)/2)}return 0}),c=$=>{const{naturalWidth:E,naturalHeight:B}=$.target;a.imageRatio=B/E},m=()=>{p(1),a.moveX=0,a.moveY=0},p=$=>{$=Ue($,+e.minZoom,+e.maxZoom+1),$!==a.scale&&(a.scale=$,n("scale",{scale:$,index:e.initNo}))},d=()=>{const $=a.scale>1?1:2;p($),a.moveX=0,a.moveY=0},h=$=>Math.sqrt(($[0].clientX-$[1].clientX)**2+($[0].clientY-$[1].clientY)**2);let S,y,k,b,f,u,g;const w=$=>{const{touches:E}=$,{offsetX:B}=o;o.start($),g=E.length,S=a.moveX,y=a.moveY,u=Date.now(),a.moving=g===1&&a.scale!==1,a.zooming=g===2&&!B.value,a.zooming&&(k=a.scale,b=h($.touches))},T=$=>{const{touches:E}=$;if(o.move($),(a.moving||a.zooming)&&ho($,!0),a.moving){const{deltaX:B,deltaY:P}=o,L=B.value+S,D=P.value+y;a.moveX=Ue(L,-s.value,s.value),a.moveY=Ue(D,-i.value,i.value)}if(a.zooming&&E.length===2){const B=h(E),P=k*B/b;p(P)}},C=()=>{if(g==1&&e.video&&e.video.source||g>1)return;const{offsetX:$,offsetY:E}=o,B=Date.now()-u,P=250,L=5;$.value<L&&E.value<L&&B<P&&(f?(clearTimeout(f),f=null,d()):f=setTimeout(()=>{e.contentClose&&n("close"),f=null},P))},A=$=>{let E=!1;(a.moving||a.zooming)&&(E=!0,a.moving&&S===a.moveX&&y===a.moveY&&(E=!1),$.touches.length||(a.zooming&&(a.moveX=Ue(a.moveX,-s.value,s.value),a.moveY=Ue(a.moveY,-i.value,i.value),a.zooming=!1),a.moving=!1,S=0,y=0,k=1,a.scale<1&&m(),a.scale>e.maxZoom&&(a.scale=+e.maxZoom))),ho($,E),C(),o.reset()},V=()=>{n("close")};return t.watch(()=>e.initNo,m),t.watch(()=>e.show,$=>{$||m()}),{...t.toRefs(a),onTouchStart:w,onTouchMove:T,onTouchEnd:A,getDistance:h,imageStyle:r,imageLoad:c,closeSwiper:V}}}),u1=["src"];function f1(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,u1)):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 m1=oe(d1,[["render",f1]]),{create:p1}=Q("image-preview"),h1=p1({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:m1,CircleClose:le.CircleClose,[fe.name]:fe,[Vt.name]:Vt},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(()=>nn(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=De(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}}}),g1={class:"fox-image-preview",ref:"swipeRef"},y1={key:0,class:"fox-image-preview-index"};function b1(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",g1,[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,d)=>(t.openBlock(),t.createBlock(s,{key:d,video:d<e.videos.length?p:{},image:d>=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",y1,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=oe(h1,[["render",b1]]);class k1{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 S1{options=new k1;constructor(n){const a=Object.assign(this.options,n),{unmount:o}=Si(a,{name:"image-preview",components:[fe,Tt,Vt,$t,st],wrapper:()=>({setup(){return()=>(a.onClose=()=>{a.show=!1,t.nextTick(()=>{o()})},t.h(Fs,a))}})})}}const eo=e=>new S1(e);eo.install=e=>{e.use(Fs)};function C1(e){const n=t.getCurrentInstance();if(n&&n.proxy){let a=n.proxy;Object.assign(a,e)}}const{componentName:yA,create:w1}=Q("countup"),N1=w1({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=V=>{V&&o.value.push(V)},r=t.reactive({valFlag:!1,current:0,sortFlag:"add",initDigit1:0,initDigit2:0,to0_10:[0,1,2,3,4,5,6,7,8,9,0],to10_0:[0,9,8,7,6,5,4,3,2,1,1],timer:null,totalCount:0,pointNum:0,numberVal:0,num_total_len:0,relNum:0,customNumber:1,prizeLevelTrun:0,prizeY:[],prizeYPrev:[],finshMachine:0,notPrize:[],typeMachine:""}),{startFlag:s,scrolling:i,customBgImg:c,type:m}=t.reactive(e);t.watch(()=>e.customChangeNum,(V,$)=>{d(),b(0)}),t.watch(()=>e.machinePrizeLevel,(V,$)=>{r.prizeLevelTrun=V}),t.watch(()=>e.initNum,(V,$)=>{r.current=V,r.valFlag=!1,p()}),t.watch(()=>e.endNum,(V,$)=>{r.current=e.initNum,r.valFlag=!1,p()});const p=()=>{if(r.valFlag)return!1;s&&(i||c?m!="machine"&&b():(k(),setTimeout(()=>{r.valFlag=!0},300)))},d=()=>{clearInterval(Number(r.timer)),r.timer=null},h=(V,$,E)=>{const B=(V.toString().split(".")[1]||"").length,P=($.toString().split(".")[1]||"").length,L=Math.pow(10,Math.max(B,P));return E=="-"?Number((V*L-$*L).toFixed(0))/L:Number((V*L+$*L).toFixed(0))/L},S=V=>{let{num_total_len:$,pointNum:E,initDigit1:B,initDigit2:P,sortFlag:L}=r,D=L=="add"||L=="equal"?String(P)[V-($-E)]:10-Number(String(P)[V-($-E)]),I=L=="add"||L=="equal"?String(B)[V]:10-Number(String(B)[V]),U=V>$-E-1?-D*100+"%":V<=String(B).length-1?-I*100+"%":0;return U=="-1000%"&&(U=0),U},y=V=>{let{num_total_len:$,pointNum:E,initDigit1:B,initDigit2:P,sortFlag:L}=r,D=String(P)[V-($-E)];return V>$-E-1?D||0:V<=String(B).length-1?String(B)[V]:0},k=()=>{let{endNum:V,initNum:$,speed:E,toFixed:B}=e,P=setInterval(()=>{if($>V)if(r.current<=V||r.current<=E)r.current=V.toFixed(B),clearInterval(P),n("scroll-end"),r.valFlag=!1;else{let L=parseFloat(String(r.current))-parseFloat(String(E));r.current=L.toFixed(B)}else if(r.current>=V)r.current=V.toFixed(B),clearInterval(P),n("scroll-end"),r.valFlag=!1;else{let L=parseFloat(String(r.current))+parseFloat(String(E));r.current=L.toFixed(B)}},e.during)},b=V=>{let{initNum:$,endNum:E,toFixed:B,customBgImg:P}=e;P&&($=e.customChangeNum);let L,D,I,U;$!=0?(B!=0&&($=Number($.toFixed(B))),String($).indexOf(".")>-1?(L=String($).split(".")[0].length,D=String($).split(".")[1].length):(L=String($).length,D=0)):(L=1,D=0),E!=0?(B!=0&&(E=Number(E.toFixed(B))),String(E).indexOf(".")>-1?(I=String(E).split(".")[0].length,U=String(E).split(".")[1].length):(I=String(E).length,U=0)):(I=1,U=0);let q=L>=I?L:I,Y=D>=U?D:U;r.num_total_len=q+Y,r.pointNum=Y,$>E?(r.sortFlag="reduce",r.to0_10=[0,9,8,7,6,5,4,3,2,1,0],r.totalCount=h($,E,"-"),r.numberVal=Number(String($))):$<E?(r.sortFlag="add",r.to0_10=[0,1,2,3,4,5,6,7,8,9,0],r.totalCount=h(E,$,"-"),r.numberVal=Number(String(E))):r.sortFlag="equal";var j=1;for(let ee=0;ee<r.pointNum;ee++)j*=10;var J=r.numberVal*j;if(r.relNum=J,B!=0&&(r.pointNum=String(r.numberVal).split(".")[1]?String(r.numberVal).split(".")[1].length:0,r.num_total_len=String(J).length),String($).indexOf(".")>-1){let ee=String($).split(".");r.initDigit1=Number(ee[0]),r.initDigit2=Number(ee[1])}else r.initDigit1=$,r.initDigit2=0;i&&!P?t.nextTick(()=>{if(r.sortFlag=="equal")return!1;let ee=o.value[r.num_total_len-1];f(ee)}):V!==0&&w()},f=V=>{d();var $=1;r.pointNum!=0&&($=1/Math.pow(10,r.pointNum)),r.timer=setInterval(()=>{u(V),r.totalCount=h(r.totalCount,$,"-"),r.totalCount<=0&&(d(),n("scroll-end"),r.valFlag=!1)},e.during)},u=V=>{let $=V.getAttribute("turn-number"),E;if(r.sortFlag=="add"?E=parseInt(String($))+1:E=parseInt(String($))-1>=0?parseInt(String($))-1:9,V.setAttribute("turn-number",String(E)),(V.style.transition=="none 0s ease 0s"||E==1||!V.style.transition)&&(V.style.transition=`all linear ${e.during}ms`),E==10||r.sortFlag=="reduce"&&E==0){var B=null;V.style.top=`-${r.sortFlag=="add"?E*100:(10-E)*100}%`,V.setAttribute("turn-number","0"),B=setTimeout(()=>{B&&clearTimeout(B),V.style.transition="none",V.style.top="0",g(V,E)},.975*e.during)}else V.style.top=`-${r.sortFlag=="add"?E*100:(10-E)*100}%`;V.style.top=="-100%"&&r.sortFlag=="reduce"&&u(V.previousSibling)},g=(V,$)=>{setTimeout(()=>{$==10&&V.previousSibling&&u(V.previousSibling)},200)},w=()=>{r.pointNum!=0&&Math.pow(10,r.pointNum),t.nextTick(()=>{a.value.addEventListener("webkitTransitionEnd",()=>{n("scroll-end"),r.valFlag=!1})})},T=()=>{for(r.notPrize=[];r.notPrize.length<3;){var V=Math.floor(Math.random()*e.machinePrizeNum+1);r.notPrize.indexOf(V)==-1&&r.notPrize.push(V)}};C1({machineLuck:()=>{const V=e.machineTurnMore<0?0:e.machineTurnMore;let $=e.numHeight*e.machinePrizeNum;r.prizeLevelTrun<0&&T();for(let E=0;E<e.machineNum;E++)setTimeout(()=>{let B=$*(E+1+parseFloat(String(V)));r.prizeYPrev.length!=0&&(r.prizeY[E]=r.prizeYPrev[E]);let P=r.prizeYPrev[E]?r.prizeYPrev[E]:0,L=B+P+(e.machinePrizeNum-r.prizeLevelTrun+1)*e.numHeight+($-P);r.prizeLevelTrun<0&&(L+=e.numHeight*r.notPrize[E]),A(E,L,P)},500*E)}});const A=(V,$,E)=>{let B=setInterval(()=>{if(E<=$)E+=10,r.prizeY[V]=parseFloat(String(E));else if(clearInterval(B),B=null,r.finshMachine+=1,r.prizeY[V]=$,r.finshMachine==e.machineNum){let P=e.numHeight*e.machinePrizeNum;r.prizeYPrev=[],JSON.parse(JSON.stringify(r.prizeY)).forEach(D=>{let I=D;for(;I>P;)I-=P;r.prizeYPrev.push(I)}),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(()=>{d(),r.timer=null}),{...t.toRefs(r),...t.toRefs(t.reactive(e)),runNumberImg:a,setRef:l,topNumber:S,turnNumber:y}}}),B1={class:"fox-countup"},A1=["turn-number"];function T1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",B1,[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,A1))),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 ua=oe(N1,[["render",T1]]),V1=e=>{if(!e)return Date.now();let n=Number(e),a=n>0?+n:n.toString().replace(/\-/g,"/");return new Date(a).getTime()},{componentName:$1,create:E1}=Q("countdown"),D1=E1({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(()=>({[$1]:!0})),r=t.computed(()=>c(o.restTime)),s=()=>{o.handleEndTime=e.endTime,o.diffTime=Date.now()-V1(e.startTime),o.counting||(o.counting=!0),i()},i=()=>{window!==void 0&&(o.timer=requestAnimationFrame(()=>{if(o.counting){const S=Date.now()-o.diffTime,y=Math.max(o.handleEndTime-S,0);o.restTime=y,y||(o.counting=!1,d(),n("on-end")),y>0&&i()}}))},c=(S,y)=>{const k=S;let b={d:0,h:0,m:0,s:0,ms:0};const f=1e3,u=60*f,g=60*u,w=24*g;return k>0&&(b.d=k>=f?Math.floor(k/w):0,b.h=Math.floor(k%w/g),b.m=Math.floor(k%g/u),b.s=Math.floor(k%u/f),b.ms=Math.floor(k%f)),y=="custom"?b:m({...b})},m=S=>{let{d:y,h:k,m:b,s:f,ms:u}=S,g=e.format;if(g.includes("DD")?g=g.replace("DD",at(y)):k+=Number(y)*24,g.includes("HH")?g=g.replace("HH",at(k)):b+=Number(k)*60,g.includes("mm")?g=g.replace("mm",at(b)):f+=Number(b)*60,g.includes("ss")?g=g.replace("ss",at(f)):u+=Number(f)*1e3,g.includes("S")){const w=at(u,3).toString();g.includes("SSS")?g=g.replace("SSS",w):g.includes("SS")?g=g.replace("SS",w.slice(0,2)):g.includes("S")&&(g=g.replace("SS",w.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))},d=()=>{cancelAnimationFrame(o.timer),o.counting=!1,n("on-paused",o.restTime)},h=()=>{e.autoStart||(d(),o.restTime=e.time)};return t.onBeforeMount(()=>{e.autoStart?s():o.restTime=e.time}),t.watch(()=>o.restTime,S=>{let y=c(S,"custom");n("update:modelValue",y),n("input",y)}),t.watch(()=>e.paused,(S,y)=>{y?(o.counting||(o.counting=!0,o.handleEndTime=Date.now()+Number(o.restTime),i()),n("on-restart",o.restTime)):o.counting&&d()}),t.watch(()=>e.endTime,S=>{s()}),t.watch(()=>e.startTime,S=>{s()}),{...t.toRefs(e),slots:a,classes:l,start:p,pause:d,renderTime:r,reset:h}}}),I1=["innerHTML"];function x1(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,I1))],2)}const fa=oe(D1,[["render",x1]]),{create:q1}=Q("badge"),v1=q1({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}}}),M1={class:"fox-badge"},P1=["textContent"];function L1(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",M1,[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,P1),[[t.vShow,!e.hidden&&(e.content||e.dot)]])])}const ma=oe(v1,[["render",L1]]),{componentName:z1,create:F1}=Q("tag"),R1=F1({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:le.Close},emits:["close","click"],setup(e,{emit:n}){return{classes:t.computed(()=>{const s=z1;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 O1(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 Zt=oe(R1,[["render",O1]]),{create:K1}=Q("popover"),U1=K1({components:{FoxPopup:fe},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 u="fox-popover-arrow",g=e.location,w=g.split("-")[0];return`${u} ${u}-${w} ${u}--${g}`}),c=t.computed(()=>{const u={},{bgColor:g,arrowOffset:w,location:T}=e,C=T.split("-")[0],A=T.split("-")[1],V=16;return g&&(u[`border${m(C)}Color`]=g),e.arrowOffset!=0&&(["bottom","top"].includes(C)&&(A||(u.left=`calc(50% + ${w}px)`),A=="start"&&(u.left=`${V+w}px`),A=="end"&&(u.right=`${V-w}px`)),["left","right"].includes(C)&&(A||(u.top=`calc(50% - ${w}px)`),A=="start"&&(u.top=`${V-w}px`),A=="end"&&(u.bottom=`${V+w}px`))),u}),m=u=>(u=u.toLowerCase(),u=u.replace(/\b\w+\b/g,g=>g.substring(0,1).toUpperCase()+g.substring(1)),u),p=t.computed(()=>{let u={};if(!r.value||!s.value)return{};const g=s.value.width,w=s.value.height,{width:T,height:C,left:A,top:V}=r.value,{location:$,offset:E}=e,B=$.split("-")[0],P=$.split("-")[1];let L=0,D=0;if(nn(E)&&E.length==2&&(L+=Number(E[1]),D+=Number(E[0])),T){if(["bottom","top"].includes(B)){const I=B=="bottom"?C+L:-(w+L);u.top=`${V+I}px`,P||(u.left=`${-(g-T)/2+A+D}px`),P=="start"&&(u.left=`${A+D}px`),P=="end"&&(u.left=`${r.value.right+D}px`)}if(["left","right"].includes(B)){const I=B=="left"?-(g+L):T+L;u.left=`${A+I}px`,P||(u.top=`${V-w/2+C/2-4+D}px`),P=="start"&&(u.top=`${V+D}px`),P=="end"&&(u.top=`${V+C+D}px`)}}return u}),d=t.computed(()=>{const u={};return e.bgColor&&(u.background=e.bgColor),u}),h=()=>{let u=De(a.value);e.targetId&&(u=De(document.querySelector(`#${e.targetId}`))),r.value=u,setTimeout(()=>{s.value={height:o.value?.clientHeight,width:o.value?.clientWidth}},0)};t.onMounted(()=>{setTimeout(()=>{h()},200)}),t.watch(()=>e.visible,u=>{l.value=u,u?(window.addEventListener("touchstart",f,!0),h()):window.removeEventListener("touchstart",f,!0)});const S=u=>{n("update",u),n("update:visible",u)},y=()=>{S(!e.visible),n("open")},k=()=>{n("update:visible",!1),n("close")},b=(u,g)=>{!u.disabled&&n("choose",u,g),e.closeOnClickAction&&k()},f=u=>{const g=a.value,w=o.value;let T=g&&!g.contains(u.target);if(e.targetId){const C=document.querySelector(`#${e.targetId}`);T=C&&!C.contains(u.target)}T&&w&&!w.contains(u.target)&&e.closeOnClickOutside&&k()};return{showPopup:l,openPopover:y,popoverArrow:i,closePopover:k,chooseItem:b,popoverRef:a,popoverContentRef:o,getRootPosition:p,customStyle:d,popoverArrowStyle:c,renderIcon:yr}}}),H1={ref:"popoverContentRef",class:"fox-popover-content-group"},j1=["onClick"],W1={class:"fox-popover-menu-item-name"};function Y1(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",H1,[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",W1,t.toDisplayString(i.name),1)],10,j1))),128))],512)]),_:3},8,["visible","pop-class","style","teleport-disable","overlay","duration","overlay-style","overlay-class","close-on-click-overlay"])],6)],64)}const Jt=oe(U1,[["render",Y1]]),X1=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:Q1}=Q("skeleton"),G1=Q1(X1({[Gt.name]:Gt})),Z1={key:0},J1={key:1,class:"fox-skeleton"},_1={key:0,class:"fox-skeleton-animation"},eC={class:"fox-skeleton-content"};function tC(e,n,a,o,l,r){const s=t.resolveComponent("fox-avatar");return e.loading?(t.openBlock(),t.createElementBlock("view",J1,[e.animated?(t.openBlock(),t.createElementBlock("view",_1)):t.createCommentVNode("",!0),t.createElementVNode("view",eC,[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",Z1,[t.renderSlot(e.$slots,"default")]))}const pa=oe(G1,[["render",tC]]),{create:nC,componentName:oC}=Q("collapse"),lC=nC({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(()=>({[oC]:!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 aC(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=oe(lC,[["render",aC]]),{create:rC,componentName:sC}=Q("collapse-item"),iC=rC({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:le.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=sC;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"})})},d=()=>{const h=a.value?.offsetHeight;i.value=h?`${h}px`:"auto",requestAnimationFrame(()=>{requestAnimationFrame(()=>{i.value="0px"})})};return t.watch(s,h=>{h?p():d()}),{classes:r,renderIcon:yr,wrapperRef:n,contentRef:a,open:p,toggle:c,wrapperHeight:i,expanded:s,onTransitionEnd:m}}}),cC={class:"fox-collapse-item__title-main"},dC={class:"fox-collapse-item__title-main-value"},uC=["innerHTML"],fC={key:2,class:"fox-collapse-item__title-label"},mC={key:0,class:"fox-collapse-item__title-sub"},pC=["innerHTML"],hC={key:0,class:"fox-collapse__item-extraWrapper"},gC={class:"fox-collapse__item-extraWrapper__extraRender"},yC={class:"fox-collapse__item-wrapper__content",ref:"contentRef"};function bC(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",cC,[t.createElementVNode("view",dC,[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,uC)),e.label?(t.openBlock(),t.createElementBlock("view",fC,t.toDisplayString(e.label),1)):t.createCommentVNode("",!0)])]),e.$slots.value?(t.openBlock(),t.createElementBlock("view",mC,[t.renderSlot(e.$slots,"value")])):(t.openBlock(),t.createElementBlock("view",{key:1,innerHTML:e.value,class:"fox-collapse-item__title-sub"},null,8,pC)),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",hC,[t.createElementVNode("div",gC,[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",yC,[t.renderSlot(e.$slots,"default")],512)],36)],2)}const ga=oe(iC,[["render",bC]]),kC=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:SC,create:CC,scope:wC}=Q("table"),NC=CC({components:{RenderColumn:kC,DownArrow:le.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(wC),l=t.reactive({curData:e.data}),r=t.computed(()=>({[SC]:!0})),s=S=>({"fox-table__main__head__tr--border":e.bordered,[`fox-table__main__head__tr--align${S.align?S.align:""}`]:!0}),i=S=>S.stylehead?S.stylehead:"",c=S=>S.stylecolumn?S.stylecolumn:"",m=S=>e.columns.filter(y=>y.key===S)[0],p=S=>{const y=e.columns.filter(k=>k.key===S);return y[0].stylecolumn?y[0].stylecolumn:""},d=S=>{S.sorter&&(n("sorter",S),l.curData=typeof S.sorter=="function"?l.curData.sort(S.sorter):S.sorter==="default"?l.curData.sort():l.curData)},h=()=>e.columns.map(S=>[S.key,S.render]);return t.watch(()=>e.data,S=>{l.curData=S.slice()}),{...t.toRefs(l),classes:r,cellClasses:s,getColumnItem:m,getColumnItemStyle:p,handleSorterClick:d,sortDataItem:h,t:o,stylehead:i,stylecolumn:c}}}),BC={class:"fox-table__main__head"},AC={class:"fox-table__main__head__tr"},TC=["onClick"],VC={class:"fox-table__main__body"},$C={key:1},EC={key:0,class:"fox-table__nodata"},DC={key:0,class:"fox-table__nodata__text"},IC={key:1,class:"fox-table__summary"},xC=["innerHTML"];function qC(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",BC,[t.createElementVNode("view",AC,[(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,TC))),128))])]),t.createElementVNode("view",VC,[(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",$C,t.toDisplayString(c[m]),1))],6))),128))]))),128))])],2),e.curData.length?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("view",EC,[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",DC,t.toDisplayString(e.t("noData")),1))],2)])),e.summary?(t.openBlock(),t.createElementBlock("view",IC,[t.createElementVNode("span",{class:"fox-table__summary__text",innerHTML:e.summary().value},null,8,xC)])):t.createCommentVNode("",!0)],2)}const ya=oe(NC,[["render",qC]]),{componentName:vC,create:MC}=Q("ellipsis"),PC=MC({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(()=>({[vC]:!0}));t.watch(()=>e.content,(k,b)=>{k!=b&&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(u=>{o.style.setProperty(u,k.getPropertyValue(u))}),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,b=Math.floor((0+k)/2),f=e.direction==="middle"?d([0,b],[b,k]):p(0,k);r.value=f,document.body.removeChild(o)}},p=(k,b)=>{const f=s.expanded?e.collapseText:e.expandText,u=e.content.length;if(b-k<=1)return e.direction==="end"?{leading:e.content.slice(0,k)+e.symbol}:{tailing:e.symbol+e.content.slice(b,u)};const g=Math.round((k+b)/2);return e.direction==="end"?o.innerText=e.content.slice(0,g)+e.symbol+f:o.innerText=f+e.symbol+e.content.slice(g,u),o.offsetHeight<=l?e.direction==="end"?p(g,b):p(k,g):e.direction==="end"?p(k,g):p(g,b)},d=(k,b)=>{const f=s.expanded?e.collapseText:e.expandText,u=e.content.length;if(k[1]-k[0]<=1&&b[1]-b[0]<=1)return{leading:e.content.slice(0,k[0])+e.symbol,tailing:e.symbol+e.content.slice(b[1],u)};const g=Math.floor((k[0]+k[1])/2),w=Math.ceil((b[0]+b[1])/2);return o.innerText=e.content.slice(0,g)+e.symbol+f+e.symbol+e.content.slice(w,u),o.offsetHeight<=l?d([g,k[1]],[b[0],w]):d([k[0],g],[w,b[1]])},h=k=>{if(!k)return 0;const b=k.match(/^\d*(\.\d*)?/);return b?Number(b[0]):0},S=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:S,handleClick:y}}}),LC={key:0},zC={key:1},FC={key:2};function RC(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",LC,t.toDisplayString(e.content),1)),e.exceeded&&!e.expanded?(t.openBlock(),t.createElementBlock("view",zC,[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",FC,[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 ba=oe(PC,[["render",RC]]),{componentName:OC,create:KC}=Q("animate"),UC=KC({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,[`${OC}-${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}}}),HC={class:"fox-animate"};function jC(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",HC,[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 ka=oe(UC,[["render",jC]]),{componentName:WC,create:YC}=Q("watermark"),XC=YC({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:d,content:h,fontStyle:S,fontWeight:y,fontColor:k,fontSize:b,fontFamily:f}=e,u=()=>{const w=document.createElement("canvas"),T=window.devicePixelRatio,C=w.getContext("2d"),A=`${(l+s)*T}px`,V=`${(r+i)*T}px`,$=s*T,E=i*T;if(w.setAttribute("width",A),w.setAttribute("height",V),C){if(m){C.translate($/2,E/2),C.rotate(Math.PI/180*Number(c));const B=new Image;B.crossOrigin="anonymous",B.referrerPolicy="no-referrer",B.src=m,B.onload=()=>{C.drawImage(B,-p*T/2,-d*T/2,p*T,d*T),C.restore(),a.base64Url=w.toDataURL()}}else if(h){C.textBaseline="middle",C.textAlign="center",C.translate($/2,E/2),C.rotate(Math.PI/180*Number(c));const B=Number(b)*T;C.font=`${S} normal ${y} ${B}px/${E}px ${f}`,C.fillStyle=k,C.fillText(h,0,0),C.restore(),a.base64Url=w.toDataURL()}}else throw new Error("当前环境不支持Canvas")};u(),t.watch(()=>[o,l,r,s,i,c,m,p,d,h,S,y,k,b,f],()=>{u()});const g=t.computed(()=>{const w=WC;return{[w]:!0,[`${w}-full-page`]:e.fullPage}});return{...t.toRefs(a),classes:g}}});function QC(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 Sa=oe(XC,[["render",QC]]);function GC(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:ZC,create:JC}=Q("trend-arrow"),_C=JC({components:{TriangleUp:le.TriangleUp,TriangleDown:le.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(()=>({[ZC]:!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?"+":"-":""}${GC(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 ew(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 Ca=oe(_C,[["render",ew]]),{create:tw}=Q("tour"),nw=tw({components:{[Jt.name]:Jt,Close:le.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:d,maskHeight:h}=e,{width:S,height:y,left:k,top:b}=o.value,f=[k+S/2,b+y/2],u=Number(d||S),g=Number(h||y);return{width:`${u+ +p[1]*2}px`,height:`${g+ +p[0]*2}px`,top:`${f[1]-g/2-+p[0]}px`,left:`${f[0]-u/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}`),d=De(p);o.value=d},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}}}),ow={key:0,class:"fox-tour-content"},lw={key:0,class:"fox-tour-content-top"},aw={class:"fox-tour-content-inner"},rw={class:"fox-tour-content-bottom"},sw={class:"fox-tour-content-bottom-init"},iw={class:"fox-tour-content-bottom-operate"},cw={key:1,class:"fox-tour-content fox-tour-content-tile"},dw={class:"fox-tour-content-inner"};function uw(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",ow,[e.showTitleBar?(t.openBlock(),t.createElementBlock("div",lw,[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",aw,t.toDisplayString(c.content),1),t.createElementVNode("div",rw,[t.createElementVNode("div",sw,t.toDisplayString(e.active+1)+"/"+t.toDisplayString(e.steps.length),1),t.createElementVNode("div",iw,[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",cw,[t.createElementVNode("div",dw,t.toDisplayString(c.content),1)])):t.createCommentVNode("",!0)])]),_:2},1032,["visible","location","bgColor","theme","offset","arrowOffset"])],64)):t.createCommentVNode("",!0)]))),128))],2)}const wa=oe(nw,[["render",uw]]),{componentName:bA,create:fw,scope:mw}=Q("address"),pw=fw({components:{Location:le.Location,Location2:le.Location2,Check:le.Check,Close:le.Close,Left:le.Left,[fe.name]:fe,[Rt.name]:Rt},inheritAttrs:!1,props:{...ze,modelValue:{type:Array,default:()=>[]},type:{type:String,default:"custom"},customAddressTitle:{type:String,default:""},province:{type:Array,default:()=>[]},city:{type:Array,default:()=>[]},country:{type:Array,default:()=>[]},town:{type:Array,default:()=>[]},isShowCustomAddress:{type:Boolean,default:!0},existAddress:{type:Array,default:()=>[]},existAddressTitle:{type:String,default:""},customAndExistTitle:{type:String,default:""},height:{type:[String,Number],default:"200px"},columnsPlaceholder:{type:[String,Array],default:""}},emits:["update:visible","update:modelValue","type","change","selected","close","close-mask","switch-module"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(mw),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),d=t.ref([0,0,0,0]),h=t.computed(()=>{switch(i.value){case 0:return e.province;case 1:return e.city;case 2:return e.country;default:return e.town}}),S=I=>{if(!Array.isArray(I))throw new TypeError("params muse be array.");if(!I.length)return[];I.forEach(q=>{if(!q.title){console.warn("[NutUI] <Address> 请检查数组选项的 title 值是否有设置 ,title 为必填项 .");return}});const U=[];return I=I.sort((q,Y)=>q.title.localeCompare(Y.title)),I.forEach(q=>{const Y=U.findIndex(j=>j.title===q.title);Y<=-1?U.push({title:q.title,list:[].concat(q)}):U[Y].list.push(q)}),U};let y=t.ref([]),k=t.reactive({});const b=t.ref("self"),f=t.ref(20),u=()=>{const I=e.modelValue,U=I.length;if(U>0){if(i.value=U-1,h.value.length==0){i.value=0;return}for(let q=0;q<U;q++){let Y=[];switch(q){case 0:Y=e.province;break;case 1:Y=e.city;break;case 2:Y=e.country;break;default:Y=e.town}y.value[q]=Y.filter(j=>j.id==I[q])[0]}w()}},g=(I,U)=>I&&I.name||i.value<U&&I?I.name:e.columnsPlaceholder[U]||a("select"),w=()=>{A(),t.nextTick(()=>{const I=l.value&&l.value.getElementsByClassName("active")[0];if(I){const U=I.offsetLeft;f.value=U||20}})},T=I=>{const U=i.value;c.value=i.value;const q={custom:m.value[U]};y.value[U]=I;for(let Y=U+2;Y<4;Y++)y.value.splice(Y,1);U<3?(i.value=U+1,w(),q.next=m.value[i.value],q.value=I,n("change",q)):(E(),n("update:modelValue"))},C=(I,U)=>{c.value=i.value,g(I,U)&&(i.value=U,w())},A=()=>{const I=p.value,U=c.value,q=d.value[i.value];I?.scrollTop&&(d.value[U]=I?.scrollTop),t.nextTick(()=>{I?.scrollTo({top:q,behavior:"auto"})})},V=I=>{const U=e.existAddress;let q={};U.forEach(Y=>{Y&&Y.selectedAddress&&(q=Y),Y.selectedAddress=!1}),I.selectedAddress=!0,k=I,n("selected",q,I,U),E()},$=()=>{y.value=[],i.value=0,w()},E=(I="self")=>{b.value=I=="cross"?"cross":"self",r.value=!1},B=()=>{b.value="mask"},P=()=>{const I={addressIdStr:"",addressStr:"",province:y.value[0],city:y.value[1],country:y.value[2],town:y.value[3]},U={data:{},type:s.value};["custom","custom2"].includes(s.value)?([0,1,2,3].forEach(q=>{const Y=y.value[q];I.addressIdStr+=`${q?"_":""}${Y&&Y.id||0}`,I.addressStr+=Y&&Y.name||""}),U.data=I):U.data=k,$(),b.value=="self"?n("close",U):n("close-mask",{closeWay:b}),n("update:visible",!1)},L=()=>{const I=s.value;s.value=I=="exist"?"custom":"exist",$(),n("switch-module",{type:s.value})},D=(I,U)=>{T(U)};return t.watch(()=>e.visible,I=>{r.value=I}),t.watch(()=>r.value,I=>{I&&u()}),{showPopup:r,privateType:s,tabIndex:i,tabName:m,selectedRegion:y,switchModule:L,closeWay:b,close:P,getTabName:g,nextAreaList:T,regionLine:o,tabRegion:l,lineDistance:f,changeRegionTab:C,selectedExist:V,clickOverlay:B,handClose:E,handleElevatorItem:D,initCustomSelected:u,...t.toRefs(e),t:a,regionList:h,transformData:S,scrollDom:p}}}),hw={class:"fox-address"},gw={class:"fox-address__header"},yw={class:"fox-address__header__title"},bw={key:0,class:"fox-address__custom"},kw={class:"fox-address__region",ref:"tabRegion"},Sw=["onClick"],Cw={key:0,class:"active fox-address__region-item"},ww={key:0,class:"fox-address__detail"},Nw={class:"fox-address__detail-list",ref:"scrollDom"},Bw=["onClick"],Aw={key:1,class:"fox-address__elevator-group"},Tw={key:1,class:"fox-address__exist"},Vw={class:"fox-address__exist-group"},$w={class:"fox-address__exist-group-list"},Ew=["onClick"],Dw={class:"fox-address__exist-item-info"},Iw={key:0,class:"fox-address__exist-item-info-name"},xw={key:1,class:"fox-address__exist-item-info-phone"},qw={class:"fox-address__exist-item-info-bottom"},vw={class:"fox-address__exist-choose-btn"};function Mw(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"),d=t.resolveComponent("fox-popup");return t.openBlock(),t.createBlock(d,{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",hw,[t.createElementVNode("view",gw,[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",yw,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",bw,[t.createElementVNode("view",kw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.selectedRegion,(h,S)=>(t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(["fox-address__region-item",S==e.tabIndex?"active":""]),key:S,onClick:y=>e.changeRegionTab(h,S)},[t.createElementVNode("view",null,t.toDisplayString(e.getTabName(h,S)),1)],10,Sw))),128)),e.tabIndex==e.selectedRegion.length?(t.openBlock(),t.createElementBlock("view",Cw,[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",ww,[t.createElementVNode("ul",Nw,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.regionList,(h,S)=>(t.openBlock(),t.createElementBlock("li",{key:S,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,Bw))),128))],512)])):(t.openBlock(),t.createElementBlock("view",Aw,[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",Tw,[t.createElementVNode("div",Vw,[t.createElementVNode("ul",$w,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.existAddress,(h,S)=>(t.openBlock(),t.createElementBlock("li",{class:t.normalizeClass(["fox-address__exist-group-item",h.selectedAddress?"active":""]),key:S,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",Dw,[h.name?(t.openBlock(),t.createElementBlock("div",Iw,t.toDisplayString(h.name),1)):t.createCommentVNode("",!0),h.phone?(t.openBlock(),t.createElementBlock("div",xw,t.toDisplayString(h.phone),1)):t.createCommentVNode("",!0),t.createElementVNode("div",qw,[t.createElementVNode("view",null,t.toDisplayString(h.provinceName+h.cityName+h.countyName+h.townName+h.addressDetail),1)])])],10,Ew))),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",vw,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 Na=oe(pw,[["render",Mw]]),{componentName:Pw,create:Lw}=Q("barrage"),zw=Lw({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(()=>({[Pw]:!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),d=e.speeds,h=t.ref(0);t.onMounted(()=>{S(),a&&document.addEventListener("visibilitychange",function(){document.visibilityState==="hidden"?(k(),p.value=0,y("hidden")):document.visibilityState==="visible"&&S()})}),t.onUnmounted(()=>{i.value=[],k()});const S=()=>{h.value=l.value.offsetWidth,a&&y("init"),setTimeout(()=>{l.value?.style.setProperty("--move-distance",`-${h.value}px`),f()},300)},y=g=>{let T=document.getElementsByClassName("slotBody"+n)?.[0]?.children||[];const C=[];T&&Array.from(T).forEach(A=>{g=="init"?(A.style.opacity="0",C.push(A)):(A.classList="",A.style={})}),g=="init"&&(i.value=C)},k=()=>{s&&(clearTimeout(s),s=null)};t.watch(()=>e.danmu,g=>{e.danmu.length>0&&(i.value=[...g])});const b=g=>{const w=p.value%i.value.length;!e.loop&&p.value===i.value.length?i.value.splice(i.value.length,0,g):i.value.splice(w,0,g)},f=()=>{k(),s=setTimeout(()=>{u()},e.frequency)},u=()=>{const g=e.loop?p.value%i.value.length:p.value;let w=document.createElement("view");a&&typeof i.value[g]=="object"?(w=i.value[g],w?.classList?.add("fox-barrage__item")):(w.innerHTML=i.value[g],w.classList.add("fox-barrage__item"),r.value.appendChild(w)),t.nextTick(()=>{const T=w.offsetHeight;if(w?.classList?.add("move"),w.style.animationDuration=`${d}ms`,w.style.top=g%c.value*(T+m.value)+20+"px",w.style.opacity="1",!a){const C=w.offsetWidth;w.style.width=C+20+"px"}w.addEventListener("animationend",()=>{a?w.classList.remove("move"):r.value.removeChild(w)}),!(!e.loop&&p.value>=i.value.length-1)&&(p.value++,p.value>=i.value.length&&(p.value=0),w.removeEventListener("animationend",()=>{}),f())})};return{classTime:n,classes:o,danmuList:i,dmBody:l,dmContainer:r,add:b}}});function Fw(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 Ba=oe(zw,[["render",Fw]]),{componentName:Rw,create:Ow,scope:Kw}=Q("signature"),Uw=Ow({props:{customClass:{type:String,default:""},lineWidth:{type:Number,default:2},strokeStyle:{type:String,default:()=>document.getElementsByTagName("body")[0].className.indexOf("fox-theme-dark")==-1?"#000":"#fff"},type:{type:String,default:"png"},unSupportTpl:{type:String,default:""}},components:{[Pe.name]:Pe},emits:["start","end","signing","confirm","clear"],setup(e,{emit:n}){const{toLocaleRefs:a}=re.useFoxI18n(Kw),o=a(e,["unSupportTpl","reSign","confirmText"]),l=t.ref(null),r=t.ref(null),s=t.computed(()=>({[Rw]:!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 u=document.createElement("canvas");return!!(u.getContext&&u.getContext("2d"))},m=()=>{l.value.addEventListener(i.events[0],p,!1)},p=u=>{u.preventDefault(),i.ctx.beginPath(),i.ctx.lineWidth=e.lineWidth,i.ctx.strokeStyle=e.strokeStyle,n("start"),l.value.addEventListener(i.events[1],d,!1),l.value.addEventListener(i.events[2],h,!1),l.value.addEventListener(i.events[3],S,!1)},d=u=>{u.preventDefault();let g=i.isSupportTouch?u.touches[0]:u;n("signing",g);let w=l.value.getBoundingClientRect(),T=g.clientX-w.left,C=g.clientY-w.top;i.ctx.lineTo(T,C),i.ctx.stroke()},h=u=>{u.preventDefault(),n("end"),l.value.removeEventListener(i.events[1],d,!1),l.value.removeEventListener(i.events[2],h,!1)},S=u=>{u.preventDefault(),l.value.removeEventListener(i.events[1],d,!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)},b=u=>{if(!u)return!0;var g=document.createElement("canvas");return g.width=u.width,g.height=u.height,u?.toDataURL()==g.toDataURL()},f=u=>{let g;switch(e.type){case"png":g=u.toDataURL("image/png");break;case"jpg":g=u.toDataURL("image/jpeg",.8);break}const w=b(u)?"请绘制签名":u,T=b(u)?"":g;n("confirm",w,T)};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}}}),Hw={class:"fox-signature-inner",ref:"wrap"},jw=["height","width"],Ww={key:0,class:"fox-signature-unsopport"};function Yw(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",Hw,[t.withDirectives(t.createElementVNode("canvas",{ref:"canvas",height:e.canvasHeight,width:e.canvasWidth},null,8,jw),[[t.vShow,e.isCanvasSupported()]]),e.isCanvasSupported()?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("p",Ww,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 Aa=oe(Uw,[["render",Yw]]),{componentName:Xw,create:Qw,scope:Gw}=Q("time-select"),Zw=Qw({components:{[fe.name]:fe},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(Gw),o=t.computed(()=>({[Xw]:!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}}}),Jw={class:"fox-time-select__title"},_w={class:"fox-time-select__title__fixed"},eN={key:0},tN={class:"fox-time-select__content"},nN={class:"fox-time-select__content__pannel"},oN={class:"fox-time-select__content__detail"};function lN(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",Jw,[t.createElementVNode("view",_w,[e.$slots.title?t.renderSlot(e.$slots,"title",{key:1}):(t.openBlock(),t.createElementBlock("span",eN,t.toDisplayString(e.title||e.t("pickupTime")),1))])]),t.createElementVNode("view",tN,[t.createElementVNode("view",nN,[t.renderSlot(e.$slots,"pannel")]),t.createElementVNode("view",oN,[t.renderSlot(e.$slots,"detail")])])],2)]),_:3},8,["teleportDisable","visible","style","lock-scroll","onClickOverlay","onClickCloseIcon"])}const Ta=oe(Zw,[["render",lN]]),{componentName:aN,create:rN}=Q("time-pannel"),sN=rN({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(()=>({[aN]:!0,"fox-time-pannel--curr":o.currentKey==e.pannelKey})),r=s=>{n.emit("change",s)};return{...t.toRefs(o),classes:l,handlePannel:r}}});function iN(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=oe(sN,[["render",iN]]),{componentName:cN,create:dN}=Q("time-detail"),uN=dN({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(()=>({[cN]:!0})),s=m=>{let p=l.currentTime.find(d=>d.key==l.currentKey);if(p)return{"fox-time-detail__detail__list__item":!0,"fox-time-detail__detail__list__item--curr":p.list.filter(d=>d===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}}}),fN={class:"fox-time-detail__detail fox-time-detail__detail--moring"},mN={class:"fox-time-detail__detail__list"},pN=["onClick"];function hN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",{class:t.normalizeClass(e.classes)},[t.createElementVNode("view",fN,[t.createElementVNode("view",mN,[(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,pN))),128))])])],2)}const $a=oe(uN,[["render",hN]]),{componentName:kA,create:gN,scope:yN}=Q("sku-header"),bN=gN({props:{goods:{type:Object,default:{}}},emits:[],components:{[Ze.name]:Ze},setup(e,{emit:n,slots:a}){const{t:o}=re.useFoxI18n(yN);return{getSlots:r=>a[r],t:o}}}),kN={class:"fox-sku-header"},SN=["src"],CN={class:"fox-sku-header-right"},wN={key:3,class:"fox-sku-header-right-extra"};function NN(e,n,a,o,l,r){const s=t.resolveComponent("fox-price");return t.openBlock(),t.createElementBlock("view",kN,[t.createElementVNode("img",{class:"fox-sku-header-img",src:e.goods.imagePath},null,8,SN),t.createElementVNode("view",CN,[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",wN,t.toDisplayString(e.t("skuId"))+" : "+t.toDisplayString(e.goods.skuId),1)):t.createCommentVNode("",!0)])])}const BN=oe(bN,[["render",NN]]),{componentName:SA,create:AN}=Q("sku-select"),TN=AN({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})}}}}),VN={class:"fox-sku-select"},$N={class:"fox-sku-select-item-title"},EN={class:"fox-sku-select-item-skus"},DN=["onClick"];function IN(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("view",VN,[(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",$N,t.toDisplayString(s.name),1),t.createElementVNode("view",EN,[(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,DN))),128))])]))),128))])}const xN=oe(TN,[["render",IN]]),{componentName:CA,create:qN}=Q("sku-stepper"),vN=qN({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:{[_e.name]:_e},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&<(c)=="function"?c():""},changeStepper:c=>{a.value=c,n("changeStepper",c)}}}}),MN={class:"fox-sku-stepper"},PN={class:"fox-sku-stepper-title"},LN=["innerHTML"],zN={class:"fox-sku-stepper-count"};function FN(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",MN,[t.createElementVNode("view",PN,t.toDisplayString(e.stepperTitle),1),t.createElementVNode("view",{class:"fox-sku-stepper-limit",innerHTML:e.getExtraText()},null,8,LN),t.createElementVNode("view",zN,[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 RN=oe(vN,[["render",FN]]),{componentName:wA,create:ON}=Q("sku-operate"),KN=ON({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]}}}),UN={key:0,class:"fox-sku-operate"},HN={key:0,class:"fox-sku-operate-desc"},jN={key:1,class:"fox-sku-operate-btn"},WN=["onClick"];function YN(e,n,a,o,l,r){return e.btnOptions.length>0?(t.openBlock(),t.createElementBlock("view",UN,[e.btnExtraText?(t.openBlock(),t.createElementBlock("view",HN,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",jN,[(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,WN))),128))]))])):t.createCommentVNode("",!0)}const XN=oe(KN,[["render",YN]]),{componentName:NA,create:QN,scope:GN}=Q("sku"),ZN=QN({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:BN,SkuSelect:xN,SkuStepper:RN,SkuOperate:XN,[fe.name]:fe},setup(e,{emit:n,slots:a}){const{toLocaleRefs:o}=re.useFoxI18n(GN),l=o(e,["confirmText","buyText","stepperTitle","addCartText"]),r=t.ref(e.visible),s=t.ref(e.stepperMin);t.watch(()=>e.visible,b=>{r.value=b}),t.watch(()=>r.value,b=>{b==!1&&k()}),t.onMounted(()=>{});const i=b=>a[b],c=b=>{n("select-sku",b)},m=b=>{s.value=b,n("change-stepper",b)},p=b=>{n("add",b)},d=b=>{n("reduce",b)},h=b=>{n("over-limit",b)},S=b=>{n("click-btn-operate",{type:b,value:s.value})},y=b=>{b=="icon"&&n("click-close-icon"),b=="overlay"&&n("click-overlay"),b=="close"&&n("close"),r.value=!1},k=()=>{n("update:visible",!1)};return{showPopup:r,closePopup:y,selectSku:c,changeStepper:m,stepperOverLimit:h,clickBtnOperate:S,add:p,reduce:d,getSlots:i,...l}}}),JN={class:"fox-sku"},_N={class:"fox-sku-content"};function eB(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]=d=>e.showPopup=d),onClickCloseIcon:n[1]||(n[1]=d=>e.closePopup("icon")),onClickOverlay:n[2]||(n[2]=d=>e.closePopup("overlay")),onClose:n[3]||(n[3]=d=>e.closePopup("close")),style:{height:"75%"},teleportDisable:e.teleportDisable,teleport:e.teleport},{default:t.withCtx(()=>[t.createElementVNode("view",JN,[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",_N,[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 Ea=oe(ZN,[["render",eB]]),{create:tB}=Q("card"),nB=tB({components:{[Ze.name]:Ze,[Zt.name]:Zt},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]}}}),oB={class:"fox-card"},lB={class:"fox-card__left"},aB=["src"],rB={class:"fox-card__right"},sB={class:"fox-card__right__title"},iB={key:0,class:"fox-card__right__price"},cB={class:"fox-card__right__other"},dB={class:"fox-card__right__shop"},uB={class:"fox-card__right__shop__name"};function fB(e,n,a,o,l,r){const s=t.resolveComponent("fox-price"),i=t.resolveComponent("fox-tag");return t.openBlock(),t.createElementBlock("div",oB,[t.createElementVNode("div",lB,[t.createElementVNode("img",{src:e.imgUrl,alt:""},null,8,aB)]),t.createElementVNode("div",rB,[t.createElementVNode("div",sB,t.toDisplayString(e.title),1),t.renderSlot(e.$slots,"prolist"),e.isNeedPrice?(t.openBlock(),t.createElementBlock("div",iB,[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",cB,[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",dB,[t.createElementVNode("div",uB,t.toDisplayString(e.shopName),1),t.renderSlot(e.$slots,"footer")])])])}const Da=oe(nB,[["render",fB]]),{create:mB,scope:pB}=Q("ecard"),hB=mB({components:{[_e.name]:_e},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(pB),o=t.ref(null),l=t.ref(null),r=t.ref(""),s=t.ref(e.cardAmountMin),i=t.ref(e.modelValue),c=(h,S)=>{o.value=S,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")},d=h=>{s.value=h,n("changeStep",s.value,l.value)};return t.watch(()=>e.modelValue,h=>{i.value=h}),{handleClick:c,changeStep:d,change:m,inputClick:p,stepValue:s,currentIndex:o,inputValue:r,money:i,t:a}}}),gB={class:"fox-ecard"},yB={class:"fox-ecard__title"},bB={class:"fox-ecard__list"},kB=["onClick"],SB={class:"fox-ecard__list__input--con"},CB=["placeholder"],wB={class:"fox-ecard__list__step"};function NB(e,n,a,o,l,r){const s=t.resolveComponent("fox-input-number");return t.openBlock(),t.createElementBlock("view",gB,[t.createElementVNode("view",yB,t.toDisplayString(e.chooseText||e.t("chooseText")),1),t.createElementVNode("view",bB,[(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,kB))),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",SB,[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,CB),[[t.vModelText,e.inputValue]]),t.createTextVNode(" "+t.toDisplayString(e.suffix),1)])],2),t.createElementVNode("view",wB,[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 Ia=oe(hB,[["render",NB]]),{create:BB,scope:AB}=Q("address-list-item"),TB=BB({components:{Del:le.Del,Edit:le.Edit},props:{item:{type:Object,default:{}}},emits:["delIcon","editIcon","clickItem"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(AB);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}}}),VB={class:"fox-address-list-item__info"},$B={class:"fox-address-list-item__info-contact"},EB={class:"fox-address-list-item__info-contact-name"},DB={class:"fox-address-list-item__info-contact-tel"},IB={key:0,class:"fox-address-list-item__info-contact-default"},xB={class:"fox-address-list-item__info-handle"},qB={class:"fox-address-list-item__addr"};function vB(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",VB,[t.createElementVNode("div",$B,[t.renderSlot(e.$slots,"content-top",{},()=>[t.createElementVNode("div",EB,t.toDisplayString(e.item.addressName),1),t.createElementVNode("div",DB,t.toDisplayString(e.item.phone),1),e.item.defaultAddress?(t.openBlock(),t.createElementBlock("div",IB,t.toDisplayString(e.t("default")),1)):t.createCommentVNode("",!0)])]),t.createElementVNode("div",xB,[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",qB,[t.renderSlot(e.$slots,"content-addr",{},()=>[t.createTextVNode(t.toDisplayString(e.item.fullAddress),1)])])])}const Rs=oe(TB,[["render",vB]]),{create:MB}=Q("address-list-general"),PB=MB({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:Rs,[Pe.name]:Pe,[Ut.name]:Ut},setup(e,{emit:n}){const a=()=>t.h(Rs,{item:e.item,onDelIcon(T){s(T)},onEditIcon(T){i(T)},onClickItem(T){c(T)}});let o=null;const l=t.ref(!1),r=t.ref(!1),s=T=>{n("delIcon",T,e.item),T.stopPropagation()},i=T=>{n("editIcon",T,e.item),T.stopPropagation()},c=T=>{l.value||(n("clickItem",T,e.item),T.stopPropagation())},m=T=>{n("longDel",T,e.item),T.stopPropagation()},p=T=>{o=0,r.value=!0,n("longDown",T,e.item)};return{renderCompontent:a,showMaskRef:r,clickItem:c,editClick:i,delClick:s,delLongClick:m,holddownstart:T=>{o=setTimeout(()=>{p(T)},300)},holddownmove:()=>{clearTimeout(o)},holddownend:()=>{clearTimeout(o)},copyCLick:T=>{n("longCopy",T,e.item),T.stopPropagation()},hideMaskClick:()=>{r.value=!1},setDefault:T=>{n("longSet",T,e.item),T.stopPropagation()},maskClick:T=>{o!=0&&(r.value=!1),T.stopPropagation(),T.preventDefault()},swipeDelClick:T=>{n("swipeDel",T,e.item),T.stopPropagation()},swipestart:()=>{l.value=!1},swipemove:()=>{l.value=!0}}}}),LB={key:0,class:"fox-address-list-general"},zB={class:"fox-address-list-swipe"};function FB(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",zB,[(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",LB,[(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 RB=oe(PB,[["render",FB]]),{componentName:OB,create:KB,scope:UB}=Q("address-list"),HB=KB({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:RB,[Pe.name]:Pe},emits:["delIcon","editIcon","clickItem","longCopy","longSet","longDel","swipeDel","add"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(UB),o=t.ref([]),l=t.reactive({id:1,addressName:"",phone:"",defaultAddress:!1,fullAddress:""}),r=t.computed(()=>({[OB]:!0})),s=()=>{Object.keys(e.dataOptions).length>0&&(o.value=e.data.map(k=>lr(l,k,e.dataOptions)))};t.watch(()=>e.data,()=>s(),{deep:!0});const i=(k,b)=>{n("delIcon",k,b),k.stopPropagation()},c=(k,b)=>{n("editIcon",k,b),k.stopPropagation()},m=(k,b)=>{n("clickItem",k,b),k.stopPropagation()},p=(k,b)=>{n("longCopy",k,b),k.stopPropagation()},d=(k,b)=>{n("longSet",k,b),k.stopPropagation()},h=(k,b)=>{n("longDel",k,b),k.stopPropagation()},S=(k,b)=>{n("swipeDel",k,b),k.stopPropagation()},y=k=>{n("add",k),k.stopPropagation()};return t.onMounted(()=>{s()}),{classes:r,clickDelIcon:i,clickEditIcon:c,clickContentItem:m,clickLongCopy:p,clickLongSet:d,clickLongDel:h,clickSwipeDel:S,addAddress:y,dataArray:o,t:a}}});function jB(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 xa=oe(HB,[["render",jB]]),{componentName:BA,create:WB}=Q("category"),YB=WB({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}}}),XB={class:"fox-category"},QB={class:"fox-category__cateList"},GB={key:0},ZB=["onClick"];function JB(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",XB,[t.createElementVNode("div",QB,[e.type=="classify"||e.type=="text"?(t.openBlock(),t.createElementBlock("div",GB,[(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,ZB)]))),128))])):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default")])])}const qa=oe(YB,[["render",JB]]),{componentName:AA,create:_B}=Q("category-pane"),e2=_B({props:{type:{type:String,default:"classify"},categoryChild:{type:Array,default:()=>[]},customCategory:{type:Array,default:()=>[]}},setup(e,{emit:n}){return{onChange:o=>{n("onChange",o)}}}}),t2={class:"fox-category-pane"},n2={key:0,class:"fox-category-pane__cateListRight"},o2={class:"fox-category-pane__childTitle"},l2={key:0,class:"fox-category-pane__childItemList"},a2=["onClick"],r2=["src"],s2={class:"fox-category-pane__skuImg"},i2={key:1,class:"fox-category-pane__cateListRight"},c2={class:"fox-category-pane__childTitle"},d2={key:0,class:"fox-category-pane__childItemList"},u2=["onClick"],f2={class:"fox-category-pane__skuName"},m2={key:2,class:"fox-category-pane__selfItemList"},p2=["onClick"];function h2(e,n,a,o,l,r){return t.openBlock(),t.createElementBlock("div",t2,[e.type=="classify"?(t.openBlock(),t.createElementBlock("div",n2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",o2,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",l2,[(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,r2),t.createElementVNode("div",s2,t.toDisplayString(c?.catName),1)],8,a2))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="text"?(t.openBlock(),t.createElementBlock("div",i2,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.categoryChild,(s,i)=>(t.openBlock(),t.createElementBlock("div",{key:i},[t.createElementVNode("div",c2,t.toDisplayString(s?.catName),1),s?.catType==1?(t.openBlock(),t.createElementBlock("div",d2,[(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",f2,t.toDisplayString(c?.catName),1)],8,u2))),128))])):t.createCommentVNode("",!0)]))),128))])):t.createCommentVNode("",!0),e.type=="custom"?(t.openBlock(),t.createElementBlock("div",m2,[(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,p2))),128))])):t.createCommentVNode("",!0)])}const va=oe(e2,[["render",h2]]),{componentName:TA,create:g2}=Q("comment-header"),y2=g2({components:{[wt.name]:wt},props:{type:{type:String,default:"default"},info:{type:Object,default:()=>{}},labels:{type:Function,default:()=>""}},emits:["handleClick"],setup(e,{emit:n}){return{handleClick:()=>{n("handleClick")}}}}),b2={class:"fox-comment-header__user"},k2={class:"fox-comment-header__user-avter"},S2=["src"],C2={class:"fox-comment-header__user-score"},w2={key:0,class:"fox-comment-header__time"};function N2(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",b2,[t.createElementVNode("view",k2,[e.info.avatar?(t.openBlock(),t.createElementBlock("img",{key:0,src:e.info.avatar},null,8,S2)):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",C2,[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",w2,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 B2=oe(y2,[["render",N2]]),{componentName:VA,create:A2}=Q("comment-images"),T2=A2({props:{type:{type:String,default:"one"},videos:{type:Array,default:()=>[]},images:{type:Array,default:()=>[]}},components:{Right:le.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}}}),V2=["onClick"],$2=["src"],E2=t.createElementVNode("view",{class:"fox-comment-images__play"},null,-1),D2=["onClick"],I2=["src"],x2={key:0,class:"fox-comment-images__mask"};function q2(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,$2),E2],8,V2))),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,I2),e.type=="multi"&&e.totalImages.length>9&&e.videos.length+c>7?(t.openBlock(),t.createElementBlock("view",x2,[t.createElementVNode("span",null,"共 "+t.toDisplayString(e.totalImages.length)+" 张",1),t.createVNode(s,{style:{width:"12px"}})])):t.createCommentVNode("",!0)],8,D2)):t.createCommentVNode("",!0)],64))),128))],2)}const v2=oe(T2,[["render",q2]]),{componentName:$A,create:M2,scope:P2}=Q("comment-bottom"),L2=M2({props:{type:{type:String,default:"base"},info:{type:Object,default:()=>({})},operation:{type:Array,default:["replay","like","more"]}},components:{Fabulous:le.Fabulous,Comment:le.Comment,MoreX:le.MoreX},emits:["clickOperate","handleClick"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(P2),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}}}),z2={class:"fox-comment-bottom"},F2={key:0},R2={class:"fox-comment-bottom__cpx"},O2=["onClick"];function K2(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",z2,[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",F2,t.toDisplayString(e.info.size),1)):t.createCommentVNode("",!0)]),t.createElementVNode("view",R2,[(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:d=>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]=d=>e.operate("popover"))},t.toDisplayString(e.t("complaintsText")),1)):t.createCommentVNode("",!0)],64)):t.createCommentVNode("",!0)],10,O2))),128))])])}const U2=oe(L2,[["render",K2]]),{componentName:H2,create:j2,scope:W2}=Q("comment"),Y2=j2({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:B2,CommentImages:v2,CommentBottom:U2,Right:le.Right},emits:["click","clickImages","clickOperate"],setup(e,{emit:n}){const{t:a}=re.useFoxI18n(W2),o=t.computed(()=>({[H2]:!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}}}),X2=["innerHTML"],Q2={class:"fox-comment__follow-title"},G2={class:"fox-comment__follow-com"},Z2={key:0,class:"fox-comment__follow-img"};function J2(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,X2),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",Q2,t.toDisplayString(e.t("additionalReview",e.follow.days)),1),t.createElementVNode("view",G2,t.toDisplayString(e.follow.content),1),e.follow.images&&e.follow.images.length>0?(t.openBlock(),t.createElementBlock("view",Z2,[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=oe(Y2,[["render",J2]]),_2=[No,Ao,To,Vo,Do,we,qo,vo,Mo,Po,zo,En,Uo,jo,Qo,Zo,Rn,On,Jo,Un,Hn,el,nl,bt,ol,al,Zn,sl,cl,In,xn,qn,fl,ml,pl,ct,hl,gl,yl,bl,kl,Sl,Pe,Cl,wl,st,fe,Nl,Bl,Al,Tl,Ft,Vl,$l,El,Dl,Il,xl,ql,vl,Ml,Rt,Pl,Ll,zl,Fl,Rl,Ol,Kl,Ot,Xn,vn,Fn,Ln,_e,wt,kt,Ul,Hl,jl,Ut,Wl,Yl,Xl,Ht,Yn,Ql,Jl,Wn,At,ta,na,Gt,oa,la,Kt,aa,ra,sa,Tt,ia,ca,Vt,$t,Ze,eo,ua,fa,ma,Zt,Jt,pa,ha,ga,ya,ba,ka,Sa,Ca,wa,Na,Ba,Aa,Ta,Va,$a,Ea,Da,Ia,xa,qa,va,Ma],eA=new ki(_2,"4.0.0");N.ActionSheet=Wl,N.ActionsheetItem=sl,N.ActionsheetPane=Zn,N.Address=Na,N.AddressList=xa,N.Animate=ka,N.Audio=ta,N.AudioOperate=na,N.Avatar=Gt,N.AvatarGroup=oa,N.BackTop=Yl,N.Badge=ma,N.Barrage=Ba,N.Broadcast=go,N.BroadcastKey=Ce,N.Button=Pe,N.Calendar=Fn,N.CalendarItem=Zo,N.Card=Da,N.Cascader=vn,N.CascaderItem=jo,N.Category=qa,N.CategoryPane=va,N.Cell=Cl,N.CellGroup=wl,N.Checkbox=Un,N.CheckboxGroup=Hn,N.CheckboxItem=el,N.CircleProgress=aa,N.Col=Al,N.Collapse=ha,N.CollapseItem=ga,N.Comment=Ma,N.Content=Vo,N.CountDown=fa,N.CountUp=ua,N.DataItemsKey=mt,N.DateItem=Qo,N.DatePicker=Ln,N.DateUtils=ae,N.Dialog=Ht,N.Divider=Vl,N.Domain=fn,N.DomainKey=qe,N.DomainProvider=kl,N.Drag=Xl,N.Dropdown=gl,N.Ecard=Ia,N.Elevator=Rt,N.Ellipsis=ba,N.Empty=sa,N.FixedNav=Il,N.FloatingButton=ml,N.FooterBar=To,N.FoxActionSheet=Wl,N.FoxActionsheetItem=sl,N.FoxActionsheetPane=Zn,N.FoxAddress=Na,N.FoxAddressList=xa,N.FoxAnimate=ka,N.FoxAudio=ta,N.FoxAudioOperate=na,N.FoxAvatar=Gt,N.FoxAvatarGroup=oa,N.FoxBackTop=Yl,N.FoxBadge=ma,N.FoxBarrage=Ba,N.FoxButton=Pe,N.FoxCalendar=Fn,N.FoxCalendarItem=Zo,N.FoxCard=Da,N.FoxCascader=vn,N.FoxCascaderItem=jo,N.FoxCategory=qa,N.FoxCategoryPane=va,N.FoxCell=Cl,N.FoxCellGroup=wl,N.FoxCheckbox=Un,N.FoxCheckboxGroup=Hn,N.FoxCheckboxItem=el,N.FoxCircleProgress=aa,N.FoxCol=Al,N.FoxCollapse=ha,N.FoxCollapseItem=ga,N.FoxComment=Ma,N.FoxContent=Vo,N.FoxCountDown=fa,N.FoxCountUp=ua,N.FoxDateItem=Qo,N.FoxDatePicker=Ln,N.FoxDialog=Ht,N.FoxDivider=Vl,N.FoxDomainProvider=kl,N.FoxDrag=Xl,N.FoxDropdown=gl,N.FoxEcard=Ia,N.FoxElevator=Rt,N.FoxEllipsis=ba,N.FoxEmpty=sa,N.FoxFixedNav=Il,N.FoxFloatingButton=ml,N.FoxFooterBar=To,N.FoxGrid=$l,N.FoxGridItem=El,N.FoxGroup=Do,N.FoxHeaderBar=Ao,N.FoxHintText=bt,N.FoxImage=Nl,N.FoxImagePreview=eo,N.FoxIndicator=Fl,N.FoxInfiniteLoading=Yn,N.FoxInputItem=Mo,N.FoxInputNumber=_e,N.FoxInputnumberItem=cl,N.FoxItem=we,N.FoxLayout=Bl,N.FoxLinkItem=ol,N.FoxList=la,N.FoxMapping=bl,N.FoxMenu=xl,N.FoxMenuItem=ql,N.FoxMessageBox=ct,N.FoxMoneyItem=Po,N.FoxMoreButton=pl,N.FoxNavbar=Dl,N.FoxNoticeBar=ra,N.FoxNotify=Jl,N.FoxNumberKeyboard=jl,N.FoxOverLay=st,N.FoxPage=No,N.FoxPagination=Pl,N.FoxPicker=kt,N.FoxPickerItem=Uo,N.FoxPopover=Jt,N.FoxPopup=fe,N.FoxPopupWrapper=hl,N.FoxPrice=Ze,N.FoxProgress=Kt,N.FoxPullRefresh=Ql,N.FoxRadio=Rn,N.FoxRadioGroup=On,N.FoxRadioItem=Jo,N.FoxRange=Ot,N.FoxRate=wt,N.FoxRateItem=al,N.FoxRollingProvider=Sl,N.FoxRow=Tl,N.FoxRowItem=qo,N.FoxSearchBar=Xn,N.FoxShortPassword=Ul,N.FoxSideNavBar=Rl,N.FoxSideNavBarItem=Ol,N.FoxSignature=Aa,N.FoxSkeleton=pa,N.FoxSku=Ea,N.FoxSlotItem=vo,N.FoxStep=ca,N.FoxSteps=ia,N.FoxStepsBar=fl,N.FoxSticky=Ft,N.FoxSubSideNavBar=Kl,N.FoxSwipe=Ut,N.FoxSwiper=Vt,N.FoxSwiperItem=$t,N.FoxSwitch=Wn,N.FoxSwitchItem=nl,N.FoxTabPane=zl,N.FoxTabbar=vl,N.FoxTabbarItem=Ml,N.FoxTable=ya,N.FoxTabs=Ll,N.FoxTabsBar=In,N.FoxTabsContainer=xn,N.FoxTabsPane=qn,N.FoxTag=Zt,N.FoxText=yl,N.FoxTextarea=En,N.FoxTextareaItem=zo,N.FoxTimeDetail=$a,N.FoxTimePannel=Va,N.FoxTimeSelect=Ta,N.FoxToast=At,N.FoxTour=wa,N.FoxTrendArrow=Ca,N.FoxUploader=Hl,N.FoxVideo=Tt,N.FoxWaterMark=Sa,N.Grid=$l,N.GridItem=El,N.Group=Do,N.HeaderBar=Ao,N.HintText=bt,N.Image=Nl,N.ImagePreview=eo,N.Indicator=Fl,N.InfiniteLoading=Yn,N.InputItem=Mo,N.InputNumber=_e,N.InputnumberItem=cl,N.Item=we,N.Layout=Bl,N.LinkItem=ol,N.List=la,N.Mapping=bl,N.Menu=xl,N.MenuItem=ql,N.MessageBox=ct,N.MoneyItem=Po,N.MoreButton=pl,N.Navbar=Dl,N.NoticeBar=ra,N.Notify=Jl,N.NumberKeyboard=jl,N.OverLay=st,N.Page=No,N.Pagination=Pl,N.Picker=kt,N.PickerItem=Uo,N.Popover=Jt,N.Popup=fe,N.PopupWrapper=hl,N.Price=Ze,N.PriorityPolicy=bn,N.Progress=Kt,N.PullRefresh=Ql,N.Radio=Rn,N.RadioGroup=On,N.RadioItem=Jo,N.Range=Ot,N.Rate=wt,N.RateItem=al,N.RollingProvider=Sl,N.Row=Tl,N.RowItem=qo,N.SearchBar=Xn,N.ShortPassword=Ul,N.SideNavBar=Rl,N.SideNavBarItem=Ol,N.Signature=Aa,N.Skeleton=pa,N.Sku=Ea,N.SlotItem=vo,N.Step=ca,N.Steps=ia,N.StepsBar=fl,N.Sticky=Ft,N.SubSideNavBar=Kl,N.Swipe=Ut,N.Swiper=Vt,N.SwiperItem=$t,N.Switch=Wn,N.SwitchItem=nl,N.TabPane=zl,N.Tabbar=vl,N.TabbarItem=Ml,N.Table=ya,N.Tabs=Ll,N.TabsBar=In,N.TabsContainer=xn,N.TabsPane=qn,N.Tag=Zt,N.Text=yl,N.Textarea=En,N.TextareaItem=zo,N.TimeDetail=$a,N.TimePannel=Va,N.TimeSelect=Ta,N.Toast=At,N.Tour=wa,N.TrendArrow=Ca,N.UniqueID=Vn,N.Uploader=Hl,N.ValidateSchema=cr,N.ValidateSchemaKey=He,N.Video=Tt,N.WaterMark=Sa,N.cancelRaf=La,N.clamp=Ue,N.clearNonNumber=po,N.clone=fo,N.compareTo=co,N.createBroadcast=rn,N.createValidateSchema=cn,N.debounce=ft,N.debounceRef=ci,N.decimalLength=nr,N.default=eA,N.defineBroadcast=ei,N.defineConfigDomain=ur,N.defineDataItem=mr,N.defineDomain=ko,N.defineItem=Be,N.definePageState=pr,N.defineSimpleItem=ht,N.deleteGlobalValidator=ai,N.disabledProperty=Ae,N.divide=io,N.excludeProps=ut,N.extend=ot,N.floatData=lr,N.getGlobalValidateCheckEvents=rr,N.getGlobalValidateResetEvents=ir,N.getPageContentAreaHeight=gn,N.getPageContentAreaWidth=yn,N.getPageFooterAreaHeight=hn,N.getPageHeaderAreaHeight=pn,N.getRootDomain=pt,N.hasSymbol=Qa,N.includeProps=ke,N.indexOf=Js,N.installRules=fr,N.integerLength=tr,N.isArray=nn,N.isArrayLike=Za,N.isBrowser=nt,N.isDate=Ke,N.isESModule=Ys,N.isEmptyString=ue,N.isEqual=Me,N.isFunction=on,N.isHidden=an,N.isInnerPage=fi,N.isMap=Hs,N.isNil=Wa,N.isNumberString=er,N.isObject=Ve,N.isPlainObject=uo,N.isPromise=dt,N.isRegExp=_a,N.isSet=js,N.isString=Ya,N.isSubPage=mi,N.isSymbol=Ws,N.isTouch=Fo,N.isWindow=Ga,N.lastIndexOf=_s,N.makeArray=Zs,N.merge=Ja,N.multiply=Ua,N.negate=Ha,N.nextTick=Qs,N.numberFormat=tn,N.objectToString=Xa,N.once=di,N.overrideGlobalValidateHandler=oi,N.padZero=at,N.preventDefault=ho,N.property=Te,N.raf=Oe,N.readonlyProperty=$e,N.setGlobalValidateCheckEvents=ri,N.setGlobalValidateHandler=ni,N.setGlobalValidateMessages=ii,N.setGlobalValidateResetEvents=si,N.setGlobalValidator=li,N.throttle=un,N.toBoolean=he,N.toNumber=me,N.toPadding=Le,N.toPx=ce,N.toPxDesc=ge,N.toTypeString=ln,N.toValue=Ie,N.tryTimes=yo,N.typeOf=lt,N.unNumberFormat=ja,N.updatePageState=So,N.useBroadcast=It,N.useDomain=je,N.useExpose=Ee,N.useInnerSize=Sn,N.usePageState=mn,N.usePosition=Br,N.useRawTouch=Ro,N.useRect=De,N.useSize=Bo,N.useTouch=Je,N.valueLength=be,Object.defineProperties(N,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|